:root {
  --ink: #17231d;
  --muted: #68766d;
  --bg: #f8f5ee;
  --paper: #fffdf7;
  --line: #ded8ca;
  --leaf: #173f2e;
  --moss: #8b9b72;
  --clay: #b96845;
  --gold: #c9a553;
  --shadow: 0 18px 55px rgba(36, 43, 35, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(14px, 4vw, 54px);
  background: rgba(248, 245, 238, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 216, 202, .75);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
}
.brand img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}
nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
}
nav a {
  color: #33463a;
  text-decoration: none;
  font-weight: 800;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero {
  min-height: auto;
  display: block;
  padding: clamp(28px, 6vw, 78px) clamp(16px, 5vw, 72px) clamp(34px, 6vw, 82px);
  background:
    radial-gradient(circle at 18% 12%, rgba(201,165,83,.14), transparent 34%),
    linear-gradient(135deg, rgba(255,253,247,.97), rgba(236,232,219,.84)),
    linear-gradient(45deg, #cfd9c4, #f8f5ee);
  border-bottom: 1px solid rgba(222,216,202,.8);
}
.hero-copy {
  max-width: 760px;
}
.hero h1 {
  margin: 10px 0 16px;
  max-width: 700px;
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  line-height: 1.06;
  letter-spacing: 0;
}
.hero p:last-of-type {
  max-width: 650px;
  margin: 0 0 26px;
  color: #435346;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.85;
}
.hero-logo,
.hero-mark,
.hero h1 img {
  display: none !important;
}
.eyebrow {
  margin: 0;
  color: var(--clay);
  font-weight: 900;
  font-size: .84rem;
}

.section {
  padding: clamp(34px, 6vw, 74px) clamp(16px, 5vw, 72px);
}
.story-band, .contact {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: center;
  background: var(--leaf);
  color: #fffdf7;
}
.order-tracking {
  background: #fffdf7;
}
.track-grid {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
  gap: 16px;
}
.track-form, .track-result {
  display: grid;
  gap: 10px;
}
.track-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #faf8f1;
  min-height: 118px;
}
.track-result.edited {
  border-color: #4078c0;
  box-shadow: 0 0 0 3px rgba(64, 120, 192, .12);
}
.order-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: #edf1e7;
  color: var(--leaf);
  font-weight: 900;
}
.tracked-order {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.story-band p, .contact p {
  color: #dce5dc;
  font-size: 1.08rem;
  line-height: 1.85;
}
.story-band .eyebrow, .contact .eyebrow { color: #e3ba68; }
.section h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}
.section-head input {
  max-width: 340px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}
.category-chip {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--leaf);
  padding: 8px 14px;
  font-weight: 900;
}
.category-chip.active,
.category-chip:hover {
  background: var(--leaf);
  color: #fff;
  border-color: var(--leaf);
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  max-height: 280px;
  display: grid;
  place-items: center;
  background: #f7f5ed;
  color: var(--leaf);
  font-size: 3rem;
  font-weight: 900;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
}
.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.product-content {
  padding: 16px;
  display: grid;
  gap: 10px;
  flex: 1;
  background: var(--paper);
  position: relative;
  z-index: 1;
}
.product-content h3 { margin: 0; font-size: 1.2rem; }
.product-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.price {
  color: var(--leaf);
  font-size: 1.18rem;
  font-weight: 900;
}

.product-details-modal {
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(20, 35, 26, .28);
}
.product-details-modal::backdrop {
  background: rgba(18, 31, 23, .58);
}
.product-details-shell {
  position: relative;
  padding: 20px;
}
.product-details-close {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--leaf);
  font-size: 1.5rem;
  font-weight: 900;
}
.product-details-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
.product-details-image {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f7f5ed;
  color: var(--leaf);
  font-size: 4rem;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-details-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.product-details-copy {
  display: grid;
  gap: 14px;
  padding: 28px 4px 4px;
}
.product-details-copy h2,
.product-details-copy h3,
.product-details-copy p {
  margin: 0;
}
.product-details-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.product-details-copy section {
  display: grid;
  gap: 6px;
}
.product-details-copy section p {
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
}
.product-detail-meta {
  color: var(--muted);
}
.product-details-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.floating-whatsapp {
  position: fixed;
  inset-inline-end: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 30;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(23, 63, 46, .28);
}
.floating-whatsapp svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}
.floating-whatsapp span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.floating-whatsapp:hover {
  transform: translateY(-2px);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fffefa;
  color: var(--ink);
  outline: none;
}
input:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(139,155,114,.18);
}
input:invalid:focus {
  border-color: #b64c3f;
  box-shadow: 0 0 0 3px rgba(182,76,63,.14);
}

.primary-btn, .ghost-btn, .icon-btn, .primary-link, .ghost-link {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 15px;
  font-weight: 900;
}
.primary-btn, .primary-link {
  background: var(--leaf);
  color: #fff;
}
.primary-link, .ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}
.ghost-link {
  background: transparent;
  color: #fffdf7;
  border-color: rgba(255, 253, 247, .32);
}
.contact-links {
  display: grid;
  gap: 10px;
  justify-self: end;
  min-width: min(100%, 320px);
}
.ghost-btn, .icon-btn {
  background: var(--paper);
  color: var(--leaf);
  border-color: var(--line);
}
.full { width: 100%; }
.icon-btn {
  width: 42px;
  padding: 0;
  font-size: 1.4rem;
}

.drawer {
  position: fixed;
  top: 0;
  inset-inline-end: 0;
  width: min(430px, 100vw);
  height: 100vh;
  z-index: 30;
  background: var(--paper);
  box-shadow: -18px 0 55px rgba(30, 36, 30, .18);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateX(105%);
  transition: transform .22s ease;
}
[dir="rtl"] .drawer {
  transform: translateX(-105%);
  box-shadow: 18px 0 55px rgba(30, 36, 30, .18);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.drawer h2 { margin: 0; }
.cart-items {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  overflow: auto;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8f1;
}
.qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--leaf);
  font-weight: 900;
}
.total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 1.12rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(18, 31, 23, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.toast {
  position: fixed;
  z-index: 40;
  inset-inline: 24px auto;
  bottom: 24px;
  max-width: 360px;
  background: #10281d;
  color: white;
  padding: 12px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
}
[dir="ltr"] .toast { inset-inline: auto 24px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 840px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 10px;
  }
  .brand { order: 1; }
  .actions { order: 2; justify-content: end; }
  nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  .hero, .story-band, .contact {
    grid-template-columns: 1fr;
  }
  .track-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    gap: 18px;
    padding-top: 28px;
  }
  .contact-links {
    justify-self: stretch;
  }
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .section-head input {
    max-width: none;
  }
  .product-details-layout {
    grid-template-columns: 1fr;
  }
  .product-details-image {
    max-height: 46vh;
  }
  .product-details-copy {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 10px 14px 8px;
  }
  .brand span {
    font-size: 1rem;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  nav a {
    font-size: .95rem;
  }
  .actions {
    margin-inline-start: auto;
  }
  .actions .primary-btn,
  .actions .ghost-btn {
    min-height: 38px;
    padding: 8px 12px;
  }
  .hero {
    text-align: start;
    padding: 30px 22px 28px;
  }
  .hero h1 {
    font-size: clamp(3.15rem, 13.3vw, 4.45rem);
    line-height: 1;
    max-width: 390px;
  }
  .hero p:last-of-type {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 20px;
  }
  .primary-link {
    min-height: 46px;
    padding-inline: 18px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-image {
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
  }
  .product-content {
    padding: 10px;
    gap: 8px;
  }
  .product-content h3 {
    min-height: 2.5em;
    font-size: .95rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-foot {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .product-foot .price {
    font-size: 1rem;
  }
  .product-foot button {
    width: 100%;
    min-height: 38px;
    padding: 8px 6px;
    font-size: .82rem;
  }
  .product-details-shell {
    padding: 14px;
  }
  .product-details-layout {
    gap: 14px;
  }
  .product-details-image {
    max-height: 42vh;
  }
  .product-details-copy h2 {
    padding-inline-end: 42px;
    font-size: 1.65rem;
  }
  .product-details-buy {
    align-items: stretch;
    flex-direction: column;
  }
  .product-details-buy button {
    width: 100%;
  }
}

/* Emergency hero reset for deployed cache mismatches */
.hero-logo,
.hero-mark,
.hero h1 img {
  display: none !important;
}
.hero {
  display: block !important;
  min-height: auto !important;
}
@media (max-width: 520px) {
  .hero {
    padding: 30px 22px 28px !important;
  }
  .hero h1 {
    display: block !important;
    font-size: clamp(3.15rem, 13.3vw, 4.45rem) !important;
    line-height: 1 !important;
  }
}
