@font-face {
    font-family: "Oswald";
    src: url(assets/fonts/Oswald-VariableFont_wght.woff);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-size: cover;
    background-repeat: repeat;
    background-attachment: fixed;
    height: 100%;
}

body {
	display: flex;
	flex-direction: column;	
	min-height: 100%;
}
.text { text-align: center; }

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
  padding: 0.05rem 1rem; 
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1000;
}

.nav-left {
  justify-self: start;
}

.nav-center {
  justify-self: center;
}

.nav-right {
  justify-self: end;
}


.exclusive-btn {
	font-family: Arial;
	font-size: 18px;
	font-weight: bold;
	padding: 5px 15px;
	color: #f7de1e;
	outline: 2px solid #111;
	border-radius: 10px;
	text-decoration: none;
}

.cart-container {
    position: relative;
    cursor: pointer;
}

.cart-icon {
    width: 35px;
    height: 35px;
}

.cart-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 2rem;
    background-color: white;
    color: black;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Display cart dropdown when hovering over cart icon */
.cart-container:hover .cart-dropdown {
    display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;

  max-width: 980px;   /* adjust to your container width */
  margin-inline: auto;

  border-top: 1px solid #111;
  justify-items: center;
  margin-bottom: 35px;
}

.product-section {
    background-color: transparent;
    padding: 4rem 2rem;
}

.product-card {
    margin-top: 20px;
    background-color: #fff;
    padding: 1rem;
    width: 200px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: scale(1.1);
}

.product-title {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.product-price {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.add-to-cart,
.Buy-now {
    background-color: #111; 
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-bottom: 0.5rem;
}

.add-to-cart:hover,
.Buy-now:hover, .contact-form button:hover
 {
    background-color: #3c3c3c;
}

.exclusive-btn:hover {
    color: #E0BD00;
    transition: color 0.3s;
    text-decoration:underline;
}

.form-container {
    display: flex;
    justify-content: center;
    font-family: "Oswald";
    font-size: 24px;
}

.contact-form {
    width: 420px;
    display: flex;
    flex-direction: column;
}

.contact-form button {
    background-color: #111; 
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 0.5rem;

}
.contact-form input {padding-block: 5px;}
.contact-form hr {margin-block: 10px;}

.footer {
    margin-top: auto;
    background-color: transparent;
    color: white;
    padding: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Center all items in the footer */
    align-items: center;
    flex-direction: column; /* Stack items vertically */
    text-align: center; /* Center text for the logo and links */
}

.footer-nav {
    display: flex;
    gap: 1rem; /* Space between items */
    align-items: center;
    justify-content: center; /* Center items within footer nav */
    margin-top: 1rem; /* Add some space above */
}

.footer-logo {
    font-size: 1.2rem;
}

.footer-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 1.5rem;
}

.social-links a {
    color: #111;
    text-decoration: none;
}

.product-card { position: relative; }

.product-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1; /* adjust if needed */
  cursor: default;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 220ms ease, transform 220ms ease;
  backface-visibility: hidden;
}

.product-img.back {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

.product-media:hover .product-img.back,
.product-media:focus .product-img.back,
.product-media:focus-within .product-img.back {
  opacity: 1;
  transform: none;
}

.product-media:hover .product-img.front,
.product-media:focus .product-img.front,
.product-media:focus-within .product-img.front {
  opacity: 0;
}

@media (max-width: 900px) {
    .product-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-card {
        width: 150px;
        height: 150px;
    }

    .contact-section {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

@keyframes cart-grow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.cart-icon.animate {
    animation: cart-grow 0.3s ease-in-out;
}

@media (orientation: portrait) {
    .coming-soon {
        font-size: 5rem;
    }
}

.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50; /* Green background */
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1000;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes cart-shake {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.cart-icon.animate {
    animation: cart-shake 0.6s ease-in-out;
}


/* Tab List Implementation*/
.tablist[role="tablist"] {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.5rem;
  max-width: max-content;
  margin-inline: auto;
  margin-top: 125px;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  font: inherit;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  transition: border-bottom-width 0.3s ease;
}


.tab:is(:hover, :focus-visible) {
  color: #111;
}

.tab.is-active {
  color: #111;
  border-bottom-color: #111;
}

.tabpanel {
  padding-top: 1rem;
}

.tabpanel[hidden] {
  display: none;
}

