:root {
  --walnut: #4b2a1a;
  --dark: #2d180d;
  --saffron: #d88925;
  --parchment: #f7f0e3;
  --cream: #fffaf1;
  --ink: #35271f;
  --muted: #79695f;
  --line: #dfd0bc;
  --green: #1e7b45;
  --danger: #a83326;
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

html.nav-locked,
html.nav-locked body {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, .brand {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.05;
  margin: 0.2em 0;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.narrow { max-width: 760px; }
.center { text-align: center; }
[x-cloak] { display: none !important; }

.announcement {
  background: var(--dark);
  color: #f8e6c8;
  text-align: center;
  padding: 6px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.site-header {
  background: rgba(255, 250, 241, 0.97);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.nav {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--walnut);
  white-space: nowrap;
}

.site-menu {
  display: flex;
  gap: 1.4rem;
  margin-right: auto;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
  font-size: 0.9rem;
}

.nav-actions form { margin: 0; }

.icon-button,
.link-button {
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 0.25rem;
}

.icon-button { font-size: 1.4rem; line-height: 1; }
.count {
  background: var(--saffron);
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.75rem;
}

.search-bar {
  display: flex;
  gap: 8px;
  padding: 0 0 12px;
}

.search-bar input { flex: 1; }
.mobile-only { display: none; }
.desktop-only { display: inline-flex; }
.menu-close,
.menu-backdrop { display: none; }

.flash {
  margin-top: 1rem;
  padding: 12px 16px;
  border: 1px solid #9fcca8;
  background: #e8f5e9;
}

.flash-success { background: #e8f5e9; border-color: #9fcca8; }
.flash-error { background: #fff0ed; border-color: #e2a69c; color: var(--danger); }
.flash ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.hero {
  min-height: min(70vh, 620px);
  background: linear-gradient(120deg, var(--walnut), #916138);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-content { padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero-content > * { max-width: 36rem; }
.hero-content p { font-size: 1.05rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--saffron);
}
.eyebrow.light { color: #ffd68c; }

.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  background: var(--walnut);
  color: #fffaf1;
  border: 1px solid var(--walnut);
  cursor: pointer;
  transition: 0.2s ease;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}

.button:hover { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.button:disabled { opacity: 0.65; cursor: wait; }
.button-light { background: var(--cream); color: var(--walnut); border-color: var(--cream); }
.button-outline { background: transparent; color: var(--walnut); }
.button-wide { width: 100%; }
.button-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.button-ghost {
  background: transparent;
  color: var(--walnut);
  border-color: var(--line);
}
.button-ghost:hover {
  background: #fff;
  border-color: var(--walnut);
  color: var(--walnut);
}
.button-ghost.danger,
.text-button.danger,
.danger {
  color: var(--danger);
}
.button-ghost.danger {
  border-color: #e4c3be;
}
.button-ghost.danger:hover {
  background: #fdf2f0;
  border-color: var(--danger);
  color: var(--danger);
}
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

.text-button {
  border: 0;
  background: none;
  padding: 0.35rem 0;
  cursor: pointer;
  color: var(--walnut);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-tint { background: var(--parchment); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-grid,
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card { min-width: 0; }
.product-image {
  aspect-ratio: 4 / 5;
  background: #eadfce;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover img { transform: scale(1.03); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--saffron);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.72rem;
}
.product-info { padding: 12px 2px; }
.price { color: var(--walnut); font-weight: 600; }
.price del { color: var(--muted); font-weight: 400; margin-left: 8px; }
.price.large { font-size: 1.5rem; }

.taxonomy-card {
  min-height: 280px;
  padding: 1.4rem;
  display: flex;
  align-items: end;
  color: #fff;
  background-color: var(--walnut);
  background-size: cover;
  background-position: center;
}

.story-banner {
  padding: 4.5rem 0;
  text-align: center;
  background: var(--walnut);
  color: #fff;
}

.page-hero { padding-top: 3.5rem; text-align: center; }
.page-hero p,
.lead { color: var(--muted); }
.empty-inline { color: var(--muted); }

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 2rem;
}

.control,
input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
  appearance: auto;
}

select.control,
select {
  min-height: 46px;
  background-color: #fff;
}

textarea { min-height: 110px; }

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.gallery img:first-child { grid-column: 1 / -1; }
.image-placeholder {
  aspect-ratio: 4 / 5;
  background: #eadfce;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.product-panel { position: sticky; top: 120px; align-self: start; }

.field {
  border: 0;
  padding: 0;
  margin: 1.4rem 0;
  min-width: 0;
}
.field legend { font-weight: 600; margin-bottom: 0.5rem; }
.field-help { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.9rem; }
.req,
.error { color: var(--danger); }

.choice-list {
  display: grid;
  gap: 0.55rem;
}

.choice-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.choice-row input {
  width: auto;
  min-width: 1.1rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
  flex-shrink: 0;
  accent-color: var(--saffron);
}

.choice-copy {
  display: block;
  line-height: 1.4;
}

.choice-copy em {
  font-style: normal;
  color: var(--muted);
  margin-left: 0.35rem;
  font-size: 0.9em;
}

.choice-row:has(input:checked) {
  border-color: var(--saffron);
  background: #fff1d9;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.choice span {
  display: block;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.65rem 0.9rem;
  transition: 0.15s ease;
}

.choice span em {
  font-style: normal;
  color: var(--muted);
  margin-left: 0.35rem;
  font-size: 0.85em;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

.choice input:checked + span {
  border-color: var(--saffron);
  background: #fff1d9;
  color: var(--walnut);
}

.purchase-row {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 10px;
  margin-top: 1rem;
}

.qty { max-width: 85px; }
.rich-text { margin-top: 2rem; color: var(--muted); }
.rich-text a { color: var(--saffron); text-decoration: underline; }

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 2rem;
  align-items: start;
}

.cart-list { min-width: 0; }

.cart-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 1rem 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-item-media img,
.cart-item-placeholder {
  width: 100px;
  height: 120px;
  object-fit: cover;
  background: #eadfce;
}

.cart-item-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-item-info h2 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.cart-item-info small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.cart-item-info .price {
  margin: 0.55rem 0 0;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  min-width: 140px;
}

.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.cart-qty-form .qty {
  width: 64px;
  max-width: 64px;
  margin: 0;
  padding: 0.55rem 0.45rem;
}

.summary,
.form-card,
.success-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.summary { position: sticky; top: 120px; }
.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.7rem 0;
}

.summary .button { margin-top: 1rem; }

.form-card label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.9rem;
}

.span-2 { grid-column: 1 / -1; }
.check { display: flex !important; align-items: center; gap: 8px; }
.check input { width: auto; }
.text-link { color: var(--saffron); text-decoration: underline; }

.empty-state {
  text-align: center;
  padding: 4rem 1.25rem;
  border: 1px dashed var(--line);
}

.page-image {
  height: min(42vh, 360px);
  background-size: cover;
  background-position: center;
}

.site-footer {
  background: var(--dark);
  color: #e8d9c7;
  padding: 3.5rem 0 1.25rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer a { display: block; margin: 0.45rem 0; }
.site-footer a:hover { color: #ffd89d; }
.site-footer .brand { color: #ffd89d; display: inline-block; margin-bottom: 0.5rem; }
.footer-contact a { color: #ffd89d; }

.copyright {
  border-top: 1px solid #634b3d;
  margin-top: 2.5rem;
  padding-top: 1.1rem;
  font-size: 0.8rem;
}

.whatsapp-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
  z-index: 50;
}

.whatsapp-button {
  background: var(--green);
  border-color: var(--green);
}

@media (max-width: 960px) {
  .mobile-only { display: inline-flex; }
  .desktop-only { display: none !important; }

  .site-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 320px);
    height: 100dvh;
    margin: 0;
    padding: 4.5rem 1.25rem 1.5rem;
    background: var(--cream);
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 60;
    overflow-y: auto;
  }

  .site-menu a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .site-menu.open { display: flex; }

  .menu-close {
    display: inline-flex;
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    border: 0;
    background: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
  }

  .menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(45, 24, 13, 0.45);
    z-index: 55;
  }

  .product-grid,
  .taxonomy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .product-detail,
  .checkout-layout,
  .cart-layout { grid-template-columns: 1fr; }

  .product-panel,
  .summary { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1 / -1; }

  .cart-item {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
  }

  .cart-qty-form { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.25rem, 1180px); }
  :root { --header-h: 66px; }
  .nav { min-height: var(--header-h); gap: 0.6rem; }
  .nav-actions { gap: 0.55rem; }
  .hero { min-height: 520px; }
  .product-grid,
  .taxonomy-grid { gap: 0.75rem; }
  .taxonomy-card { min-height: 210px; padding: 1rem; }
  .filters,
  .form-grid { grid-template-columns: 1fr; }
  .gallery { display: block; }
  .gallery img { margin-bottom: 0.65rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .purchase-row { grid-template-columns: 72px 1fr; }
}
