* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, serif;
  background: #f8f1e8;
  color: #2d2118;
  overflow-x: hidden;
}

/* HERO */
.hero {
  min-height: 75vh;
  background: linear-gradient(135deg, #f8f1e8, #ead8c7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px 60px;
}

.logo {
  width: 260px;
  height: auto;
  object-fit: contain;
  margin-bottom: 25px;
  mix-blend-mode: multiply;
}

.hero h1 {
  font-size: 42px;
  color: #2d2118;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 500;
}

.hero p {
  font-size: 17px;
  color: #7a6657;
  letter-spacing: 1px;
}

/* PRODUCTS */
.products {
  padding: 80px 8%;
}

.products:nth-of-type(even) {
  background: #f3e7da;
}

.products h2 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 18px;
  color: #2d2118;
  letter-spacing: 1px;
  position: relative;
  font-weight: 500;
}

.products h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background: #7a6657;
  margin: 14px auto 0;
}

.section-text {
  text-align: center;
  color: #7a6657;
  margin-bottom: 35px;
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* HORIZONTAL SCROLL */
.scroll-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.grid.horizontal-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 6px 28px;
  -webkit-overflow-scrolling: touch;
}

.grid.horizontal-scroll::-webkit-scrollbar {
  height: 7px;
}

.grid.horizontal-scroll::-webkit-scrollbar-track {
  background: #ead8c7;
  border-radius: 20px;
}

.grid.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #7a6657;
  border-radius: 20px;
}

.grid.horizontal-scroll .card {
  min-width: 250px;
  max-width: 250px;
  flex: 0 0 250px;
  scroll-snap-align: start;
}

/* REMOVE SCROLL ARROWS */
.scroll-btn {
  display: none !important;
}

/* CARD */
.card {
  background: #fffaf3;
  padding: 12px 12px 20px;
  border-radius: 26px;
  text-align: center;
  overflow: hidden;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(45, 33, 24, 0.14);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0 auto;
  display: block;
}

.card h3 {
  margin-top: 12px;
  font-size: 18px;
  color: #2d2118;
  font-weight: 500;
}

.card p {
  margin: 6px 0 8px;
  color: #7a6657;
  font-size: 15px;
}

/* STOCK STATUS */
.stock {
  display: block;
  width: fit-content;
  margin: 6px auto 12px;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-align: center;
}

.stock.available {
  color: #2f6b3f;
  background: #e6f1e8;
}

.stock.out {
  color: #8b2f2f;
  background: #f3e1dd;
}

/* BUTTON */
button,
.card button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: #2d2118;
  color: white;
  padding: 10px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-family: Georgia, serif;
  transition: 0.3s ease;
  font-size: 14px;
}

button:hover,
.card button:hover {
  background: #5b4433;
}

/* OUT OF STOCK BUTTON */
.disabled-btn {
  background: #c8b8a8 !important;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}

.disabled-btn:hover {
  background: #c8b8a8 !important;
  transform: none;
}

/* IMAGE POPUP */
.image-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 33, 24, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 25px;
}

.image-popup img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  background: #fffaf3;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.close-popup {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #fffaf3;
  font-size: 42px;
  cursor: pointer;
  z-index: 10000;
}

.close-popup:hover {
  color: #d8bfa8;
}

/* CART */
.cart {
  background: #efe1d3;
  text-align: center;
  padding: 45px 20px 50px;
}

.cart h2 {
  font-size: 28px;
  margin-bottom: 18px;
  font-weight: 500;
}

#cart-items {
  list-style: none;
  max-width: 520px;
  margin: 0 auto 18px;
}

#cart-items li {
  background: #fffaf3;
  padding: 14px 18px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quantity-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.quantity-controls button {
  padding: 5px 10px;
  border-radius: 50%;
}

#total {
  font-size: 21px;
  margin: 16px 0 14px;
  font-weight: 500;
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, #2d2118, #4a382d);
  padding: 55px 20px 60px;
  text-align: center;
  margin-top: 0;
}

footer h2 {
  color: #ffffff;
  font-size: 34px;
  margin-bottom: 28px;
  letter-spacing: 1px;
  font-weight: 500;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 22px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  transition: all 0.35s ease;
}

.footer-contact p:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.footer-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.footer-contact p:hover .footer-icon {
  transform: rotate(-6deg) scale(1.1);
}

.footer-contact a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.4px;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #ead8c7;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 32px;
  }

  .logo {
    width: 220px;
  }

  .grid.horizontal-scroll .card {
    min-width: 230px;
    max-width: 230px;
    flex: 0 0 230px;
  }

  .card img {
    height: 170px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 60vh;
    padding: 60px 18px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero p {
    font-size: 14px;
  }

  .logo {
    width: 190px;
  }

  .products {
    padding: 60px 6%;
  }

  .products h2 {
    font-size: 28px;
  }

  .grid.horizontal-scroll {
    gap: 18px;
    padding-bottom: 24px;
  }

  .grid.horizontal-scroll .card {
    min-width: 220px;
    max-width: 220px;
    flex: 0 0 220px;
  }

  .card {
    padding: 10px 10px 18px;
  }

  .card img {
    height: 180px;
  }

  .cart {
    padding: 38px 18px 42px;
  }

  .cart h2 {
    font-size: 26px;
  }

  #total {
    font-size: 19px;
  }

  #cart-items li {
    flex-direction: column;
    gap: 12px;
  }

  footer {
    padding: 45px 18px 50px;
  }

  footer h2 {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .footer-contact p {
    padding: 11px 18px;
  }

  .footer-contact a {
    font-size: 14px;
  }

  .footer-icon {
    width: 24px;
    height: 24px;
  }

  .image-popup img {
    max-width: 95%;
    max-height: 75vh;
  }

  .close-popup {
    top: 18px;
    right: 24px;
    font-size: 36px;
  }
}
