@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700;800&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ink: #1f1710;
  --soil: #6b4329;
  --soil-dark: #2b1c13;
  --soil-light: #a06a43;
  --moss: #2f3f27;
  --moss-light: #71805c;
  --sand: #efe1c9;
  --sand-light: #fbf5ea;
  --cream: #fffaf2;
  --white: #ffffff;
  --border: #dec8a7;
  --muted: #6b5b4a;
  --danger: #b54432;

  --shadow-sm: 0 3px 10px rgba(43, 28, 19, 0.08);
  --shadow-md: 0 8px 26px rgba(43, 28, 19, 0.14);
  --shadow-lg: 0 14px 42px rgba(43, 28, 19, 0.22);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff8ec 0%, #f3e4cc 48%, #fffaf2 100%);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--body);
  cursor: pointer;
  outline: none;
}

.main-viewport {
  width: 100%;
}

/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 65px;
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.nav-logo {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1;
}

.nav-logo em {
  font-style: normal;
  color: var(--soil);
}

.nav-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--ink);
  position: relative;
  transition: 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.nav-icon-btn:hover {
  background: var(--moss);
  color: var(--white);
  border-color: var(--moss);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 50px;
  background: var(--soil);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}

/* SIDE MENU */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 23, 16, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1000;
  backdrop-filter: blur(3px);
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  left: -310px;
  top: 0;
  width: 300px;
  height: 100dvh;
  background: var(--cream);
  z-index: 1001;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.side-menu.open {
  left: 0;
}

.menu-head {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.menu-head .nav-logo {
  font-size: 21px;
}

.menu-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  border: none;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.menu-links {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 20px;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid rgba(222, 200, 167, 0.5);
  transition: 0.2s ease;
}

.menu-link:hover {
  background: var(--sand-light);
  padding-left: 26px;
}

.menu-link i {
  width: 22px;
  color: var(--moss);
  font-size: 16px;
}

/* HOMEPAGE HERO */

.hero-full {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--soil-dark);
}

.hero-full img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  opacity: 0.85;
}

.hero-float-card {
  position: relative;
  margin: -64px 14px 0;
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
  z-index: 2;
}

.hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--soil);
  margin-bottom: 10px;
}

.hero-float-card h1 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}

.hero-float-card p {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--moss);
  color: var(--white);
  border: none;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.2s;
}

.hero-cta-btn:hover {
  background: var(--soil-dark);
}

/* VALUE STRIP */

.value-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 22px 14px 4px;
  -webkit-overflow-scrolling: touch;
}

.value-strip::-webkit-scrollbar {
  display: none;
}

.value-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.value-pill i {
  color: var(--moss);
  font-size: 14px;
}

/* SEARCH */

.search-wrap {
  padding: 18px 14px 0;
}

.search-bar {
  background: var(--soil-dark);
  border: 1px solid var(--soil-dark);
  border-radius: 50px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: 0.2s;
}

.search-bar:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.search-bar i {
  color: var(--sand);
  font-size: 17px;
}

.search-bar span {
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

/* SECTIONS */

.section {
  padding: 34px 14px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--display);
  font-size: 29px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.section-link {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--soil);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

/* CATEGORY RAIL */

.category-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-tile {
  flex: 0 0 auto;
  width: 156px;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.category-tile img {
  width: 100%;
  height: 188px;
  object-fit: cover;
}

.category-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,28,19,0) 42%, rgba(43,28,19,0.85) 100%);
}

.category-tile span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

/* CATEGORY PRODUCT BLOCKS */

.category-products-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.category-product-block {
  background: rgba(255,250,242,0.72);
  border: 1px solid rgba(80,62,42,0.14);
  border-radius: 22px;
  padding: 18px 14px;
  box-shadow: 0 8px 24px rgba(46,35,24,0.06);
}

.cat-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cat-block-title {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.12;
}

.cat-block-link {
  font-size: 12px;
  font-weight: 800;
  color: var(--moss);
  white-space: nowrap;
}

.cat-view-btn {
  width: 100%;
  margin-top: 14px;
  background: var(--cream);
  border: 1.5px solid rgba(47,63,39,0.28);
  color: var(--moss);
  border-radius: 14px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 900;
}

.cat-view-btn:disabled {
  display: none;
}

/* PRODUCT GRID */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.product-card {
  background: var(--cream);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--soil-light);
}

.prod-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.prod-img-wrap img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: 0.5s;
  display: block;
}

.product-card:hover .prod-img-wrap img {
  transform: scale(1.05);
}

.prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--soil-dark);
  color: var(--white);
}

.prod-badge.hot {
  background: var(--soil);
}

.prod-badge.new {
  background: var(--moss);
}

.prod-badge.sale {
  background: var(--danger);
}

.prod-oos {
  position: absolute;
  inset: 0;
  background: rgba(31, 23, 16, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prod-oos span {
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 20px;
}

.prod-body {
  padding: 15px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prod-name {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  flex: 1;
  min-height: 42px;
}

.prod-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.prod-price-prefix {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--moss);
  text-transform: uppercase;
}

.prod-price {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  color: var(--soil-dark);
}

.prod-price-original {
  font-size: 13px;
  font-weight: 800;
  color: var(--danger);
  text-decoration: line-through;
}

.prod-btn {
  margin-top: 14px;
  width: 100%;
  background: var(--moss);
  color: var(--white);
  border: none;
  padding: 13px 10px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 800;
  transition: 0.2s;
}

.prod-btn:hover:not(:disabled) {
  background: var(--soil-dark);
}

.prod-btn:disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

/* WHOLESALE BAND */

.wholesale-band {
  margin: 34px 14px 0;
  background: var(--soil-dark);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  color: var(--white);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 14px;
}

.wholesale-band h3 {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.wholesale-band p {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}

.wholesale-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25D366;
  color: var(--white);
  border: none;
  padding: 13px 20px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 800;
}

/* SUBSTRATE EDUCATION CARDS */

.substrate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.substrate-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--soil);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.substrate-card.moss-accent {
  border-left-color: var(--moss);
}

.substrate-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--soil-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.moss-accent .substrate-icon {
  color: var(--moss);
}

.substrate-card h4 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 5px;
}

.substrate-card p {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.55;
}

/* REVIEWS */

.review-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: -6px;
  margin-bottom: 12px;
}

.reviews-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 2px 18px;
  -webkit-overflow-scrolling: touch;
}

.reviews-scroll::-webkit-scrollbar {
  display: none;
}

.review-card {
  scroll-snap-align: start;
  flex: 0 0 82%;
  max-width: 310px;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--soil-dark);
  border: 1px solid var(--border);
}

.review-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SKELETON / EMPTY */

.skel {
  background: linear-gradient(90deg, var(--sand) 25%, var(--sand-light) 50%, var(--sand) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s infinite;
  border-radius: var(--r-md);
}

@keyframes skel-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skel-card {
  height: 280px;
}

.state-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
}

.state-empty i {
  font-size: 40px;
  margin-bottom: 14px;
  display: block;
  color: var(--moss);
}

/* FOOTER */

.footer {
  margin-top: 45px;
  background: var(--soil-dark);
  color: var(--white);
  padding: 45px 20px 35px;
}

.footer-brand {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin-bottom: 32px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
}

.footer-link {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  margin-bottom: 14px;
  transition: 0.2s;
}

.footer-link:hover {
  padding-left: 6px;
  color: var(--white);
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.footer-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  transition: 0.2s;
}

.footer-social-btn:hover {
  background: var(--white);
  color: var(--soil-dark);
  transform: translateY(-2px);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.16);
  margin: 30px 0 22px;
}

.footer-copy {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
}

/* WHATSAPP */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25D366;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  z-index: 800;
  transition: 0.25s;
}

.wa-float:hover {
  transform: scale(1.1);
}

/* RESPONSIVE */

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .substrate-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-card {
    flex-basis: 310px;
  }
}

@media (min-width: 900px) {
  .navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
  }

  .main-viewport {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .hero-full img {
    height: 440px;
  }

  .hero-float-card {
    max-width: 620px;
    margin: -84px auto 0;
    padding: 34px 38px;
  }

  .hero-float-card h1 {
    font-size: 38px;
  }

  .category-tile {
    width: 200px;
  }

  .category-tile img {
    height: 226px;
  }

  .category-product-block {
    padding: 22px;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 40px 20px 0;
  }

  .search-wrap {
    padding: 20px 20px 0;
  }

  .substrate-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
}