/* ============================================================
   Malabar Idiyirachi — design system
   Warm Kerala premium: smoky bark + cream + chilli + spice gold
   ============================================================ */

:root {
  --c-bark: #2C1E14;
  --c-bark-2: #3A2A1C;
  --c-leaf: #2F4A38;
  --c-cream: #FBF5EA;
  --c-sand: #F1E6D2;
  --c-card: #FFFDF8;
  --c-chilli: #B4322A;
  --c-chilli-dark: #93271F;
  --c-gold: #C98A2D;
  --c-ink: #2B2118;
  --c-muted: #8A7A6A;
  --c-line: #E7DAC4;
  --c-wa: #1DA851;
  --c-wa-dark: #178A43;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(44, 30, 20, 0.06), 0 6px 24px rgba(44, 30, 20, 0.08);
  --shadow-lg: 0 4px 12px rgba(44, 30, 20, 0.1), 0 16px 48px rgba(44, 30, 20, 0.16);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 var(--s4); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-chilli); }

button { font: inherit; cursor: pointer; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--s4); }
.wrap.narrow { max-width: 720px; }
.section { padding-block: var(--s7); }
.section-sub { color: var(--c-muted); margin-top: calc(-1 * var(--s3)); }

/* spice-gold flourish under section headings */
.section > .wrap > h2::after,
.section > h2::after,
.story-copy h2::after {
  content: ""; display: block;
  width: 58px; height: 4px; margin-top: var(--s3);
  background: linear-gradient(90deg, var(--c-gold), var(--c-chilli));
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--c-bark); color: var(--c-cream); padding: var(--s2) var(--s4);
}
.skip-link:focus { left: 0; }

.icon { display: inline-flex; }
.icon svg { width: 1.35em; height: 1.35em; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
/* shine sweep across primary buttons on hover */
.btn-primary, .btn-wa { position: relative; overflow: hidden; }
.btn-primary::after, .btn-wa::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after, .btn-wa:hover::after { left: 125%; }
.btn-lg { padding: 13px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-chilli); color: var(--c-cream); }
.btn-primary:hover { background: var(--c-chilli-dark); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-wa { background: var(--c-wa); color: #fff; }
.btn-wa:hover { background: var(--c-wa-dark); }

/* ---- intro entrance curtain (home, once per session) ---- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 90% 90% at 50% 30%, var(--c-bark-2), var(--c-bark) 75%);
  animation: intro-leave 0.65s cubic-bezier(0.7, 0, 0.3, 1) 1.7s both;
}
@keyframes intro-leave {
  to { transform: translateY(-101%); visibility: hidden; }
}
.intro-inner {
  position: relative; text-align: center; color: var(--c-cream);
  animation: intro-pop 0.7s cubic-bezier(0.2, 1.4, 0.5, 1) both;
}
@keyframes intro-pop { from { opacity: 0; transform: scale(0.8); } }
.intro-inner img { margin: 0 auto var(--s3); }
.intro-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  margin: 0 0 var(--s1);
}
.intro-tag {
  margin: 0; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--c-gold), #E08A52);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro-smoke { position: absolute; left: 50%; top: -30px; }

/* ---- rotating headline word ---- */
.rotator {
  display: inline-block;
  background: linear-gradient(100deg, var(--c-gold), #E85D45);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity 0.26s ease, transform 0.26s ease;
}
.rotator.is-out { opacity: 0; transform: translateY(-0.45em); }
.rotator.is-in { animation: word-in 0.38s ease; }
@keyframes word-in { from { opacity: 0; transform: translateY(0.45em); } }

/* ---- announcement + header ---- */
.announce {
  background: linear-gradient(90deg, var(--c-leaf), #3E6049 30%, var(--c-leaf) 60%, #3E6049);
  background-size: 200% 100%;
  animation: announce-shimmer 9s linear infinite;
  color: var(--c-cream);
  text-align: center; font-size: 0.82rem; font-weight: 500;
  padding: 6px var(--s4);
}
@keyframes announce-shimmer { to { background-position: -200% 0; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bark); color: var(--c-cream);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.header-row { display: flex; align-items: center; gap: var(--s4); height: 60px; }

.brand {
  display: flex; align-items: center; gap: var(--s2);
  color: var(--c-cream); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  margin-right: auto; white-space: nowrap;
}
.brand img { width: 45px; height: 36px; object-fit: contain; }

.site-nav { display: flex; gap: var(--s5); }
.site-nav a {
  color: var(--c-cream); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  opacity: 0.9;
}
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.header-actions { display: flex; align-items: center; gap: var(--s2); }

.cart-btn, .menu-btn {
  position: relative;
  background: none; border: 0; color: var(--c-cream);
  padding: var(--s2); border-radius: var(--radius-sm);
}
.cart-btn:hover, .menu-btn:hover { background: rgba(255, 255, 255, 0.1); }
.cart-btn .icon svg, .menu-btn .icon svg { width: 24px; height: 24px; }

.cart-badge {
  position: absolute; top: 0; right: 0;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--c-chilli); color: #fff;
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 600; line-height: 18px; text-align: center;
}
.cart-badge.pop { animation: badge-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes badge-pop { 45% { transform: scale(1.5); } }

.menu-btn { display: none; }

@media (max-width: 899px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--c-bark-2);
    padding: var(--s2) 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: var(--s3) var(--s5); }
}

/* ---- hero ---- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 55% 65% at 12% 90%, rgba(180, 50, 42, 0.22), transparent 65%),
    radial-gradient(ellipse 45% 55% at 90% 85%, rgba(47, 74, 56, 0.35), transparent 65%),
    radial-gradient(ellipse 80% 90% at 75% 20%, var(--c-bark-2), var(--c-bark) 65%);
  color: var(--c-cream);
  overflow: hidden;
}
.hero-grid {
  display: grid; gap: var(--s6);
  padding-block: var(--s7);
  align-items: center;
}
.hero-kicker {
  color: var(--c-gold); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: var(--s3);
}
.hero h1 { margin-bottom: var(--s4); }
.hero-sub { font-size: 1.08rem; opacity: 0.85; max-width: 34em; margin-bottom: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 8%;
  background: radial-gradient(circle, rgba(201, 138, 45, 0.28), transparent 70%);
  border-radius: 50%;
  animation: glow-breathe 6s ease-in-out infinite;
}
.hero-media img { position: relative; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
.hero-media picture { display: block; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes glow-breathe { 50% { opacity: 0.55; transform: scale(1.06); } }

/* smoke wisps rising off the plate */
.smoke { position: absolute; left: 50%; top: 6%; z-index: 2; }
.smoke i {
  position: absolute; bottom: 0;
  width: 16px; height: 48px;
  background: rgba(251, 245, 234, 0.16);
  border-radius: 50%;
  filter: blur(7px);
  animation: rise-smoke 5.5s ease-in-out infinite;
}
.smoke i:nth-child(2) { left: -26px; height: 38px; animation-delay: 1.8s; animation-duration: 6.5s; }
.smoke i:nth-child(3) { left: 24px; height: 42px; animation-delay: 3.4s; animation-duration: 6s; }
@keyframes rise-smoke {
  0% { transform: translateY(10px) scaleY(0.6); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-110px) translateX(14px) scaleY(1.5) scaleX(1.6); opacity: 0; }
}

/* brush-stroke highlight behind a headline word */
.brush { position: relative; z-index: 0; white-space: nowrap; }
.brush::after {
  content: ""; position: absolute; z-index: -1;
  left: -3%; right: -3%; bottom: 0.06em; height: 0.34em;
  background: linear-gradient(90deg, rgba(201, 138, 45, 0), rgba(201, 138, 45, 0.6) 15%, rgba(180, 50, 42, 0.55) 85%, rgba(180, 50, 42, 0));
  border-radius: 4px;
  transform: skewX(-14deg) rotate(-1deg);
  transform-origin: left;
  animation: brush-in 0.9s 0.5s ease both;
}
@keyframes brush-in { from { transform: skewX(-14deg) rotate(-1deg) scaleX(0); } }

/* ---- CSS food art: chillies and curry leaves ---- */
.deco { position: absolute; pointer-events: none; opacity: 0.85; }
.deco-chilli {
  width: 48px; height: 15px;
  background: linear-gradient(100deg, #C74232, #8E2419);
  border-radius: 46% 60% 62% 50% / 55% 95% 100% 45%;
  animation: sway 9s ease-in-out infinite;
}
.deco-chilli::before { /* stem */
  content: ""; position: absolute; left: -9px; top: 1px;
  width: 14px; height: 7px;
  background: var(--c-leaf);
  border-radius: 40% 60% 60% 40% / 60% 60% 40% 40%;
  transform: rotate(-24deg);
}
.deco-leaf {
  width: 38px; height: 15px;
  background: linear-gradient(120deg, #3E6049, #2F4A38);
  border-radius: 2% 98% 2% 98% / 50% 50% 50% 50%;
  animation: sway 11s ease-in-out infinite reverse;
}
.deco-leaf::before { /* centre vein */
  content: ""; position: absolute; left: 8%; right: 8%; top: 48%;
  height: 1px; background: rgba(251, 245, 234, 0.35);
}
@keyframes sway {
  0%, 100% { transform: rotate(var(--r, 0deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--r, 0deg) + 9deg)); }
}

.deco-1 { top: 14%; right: 6%; --r: -30deg; }
.deco-2 { bottom: 16%; left: 4%; --r: 15deg; opacity: 0.5; }
.deco-3 { top: 22%; left: 42%; --r: -60deg; opacity: 0.35; }
.deco-4 { top: 10%; right: 8%; --r: -20deg; opacity: 0.5; }
.deco-5 { bottom: 12%; left: 46%; --r: 25deg; opacity: 0.55; }
@media (max-width: 639px) { .deco { display: none; } }

/* soft entrance */
.hero-copy, .hero-media { animation: rise 0.7s ease both; }
.hero-media { animation-delay: 0.15s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-media { animation: none; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; padding-block: var(--s8); }
}

/* ---- trust strip ---- */
.trust { background: var(--c-sand); border-bottom: 1px solid var(--c-line); }
.trust-list {
  list-style: none; margin: 0 auto; max-width: 1120px;
  padding: var(--s4);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3) var(--s4);
}
.trust-list li {
  display: flex; align-items: center; gap: var(--s2);
  font-size: 0.88rem; font-weight: 500;
  justify-content: center;
}
.trust-list li:nth-child(1) .icon { color: var(--c-leaf); }
.trust-list li:nth-child(2) .icon { color: var(--c-gold); }
.trust-list li:nth-child(3) .icon { color: #4C8C5C; }
.trust-list li:nth-child(4) .icon { color: var(--c-chilli); }
@media (min-width: 640px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }

/* subtle spice-dot texture behind the shop grid */
.shop {
  background-image: radial-gradient(rgba(201, 138, 45, 0.09) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* ---- filter pills ---- */
.filter-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.pill {
  padding: 7px 18px;
  border: 1.5px solid var(--c-line); border-radius: 999px;
  background: var(--c-card); color: var(--c-ink);
  font-size: 0.9rem; font-weight: 500;
  transition: all 0.15s;
}
.pill:hover { border-color: var(--c-gold); }
.pill.is-active { background: var(--c-chilli); border-color: var(--c-chilli); color: var(--c-cream); }

/* ---- product grid + cards ---- */
.grid {
  display: grid; gap: var(--s5);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: var(--shadow-lg); }

.card-media { display: block; aspect-ratio: 4 / 5; background: #EFEDE8; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media picture { display: contents; }
/* warm glaze at the bottom of the photo so it melts into the card */
.card-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%;
  background: linear-gradient(to top, rgba(44, 30, 20, 0.14), transparent);
  pointer-events: none;
}

.card-flag {
  position: absolute; top: var(--s3); left: var(--s3);
  background: var(--c-gold); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 999px;
}

.card-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s1); flex: 1; }
.card-name { margin: 0; font-size: 1.1rem; }
.card-name a { color: inherit; text-decoration: none; }
/* stretched link: whole card clicks through to the product */
.card-name a::after { content: ""; position: absolute; inset: 0; }
.card-tagline {
  color: var(--c-muted); font-size: 0.86rem; margin: 0;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: var(--s3); }
.card-price { font-weight: 700; font-size: 1.05rem; color: var(--c-chilli); }
.card-price small { color: var(--c-muted); font-weight: 500; }
.card-cta { color: var(--c-chilli); font-weight: 600; font-size: 0.9rem; }
.btn-quick-add {
  position: relative; z-index: 1; /* above the stretched link */
  background: var(--c-chilli); color: var(--c-cream);
  border: 0; border-radius: var(--radius-sm);
  padding: 7px 14px; font-size: 0.85rem; font-weight: 600;
}
.btn-quick-add:hover { background: var(--c-chilli-dark); }

/* ---- story ---- */
.story {
  background: var(--c-sand);
  position: relative;
  /* kasavu-style double gold border, like a Kerala mundu */
  border-top: 1px solid var(--c-gold);
  box-shadow: inset 0 5px 0 -3px var(--c-gold);
}
.story-grid { display: grid; gap: var(--s6); align-items: center; }
.story-media img { filter: drop-shadow(0 16px 32px rgba(44, 30, 20, 0.25)); }
.story-cert { color: var(--c-leaf); font-weight: 600; font-size: 0.9rem; }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; } }

/* ---- testimonials ---- */
.testimonial-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.testimonial {
  margin: 0; background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow);
}
.testimonial blockquote { margin: 0 0 var(--s3); font-style: italic; }
.testimonial figcaption { color: var(--c-muted); font-size: 0.9rem; }

/* ---- delivery ---- */
.delivery-grid { display: grid; gap: var(--s4); }
.delivery-card {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-gold);
  border-radius: var(--radius); padding: var(--s5);
}
.delivery-card h3 { margin-bottom: var(--s2); }
.delivery-card p { margin: 0; }
.delivery-card:nth-child(1) { border-left-color: var(--c-leaf); }
.delivery-card:nth-child(1) h3 { color: var(--c-leaf); }
.delivery-card:nth-child(2) { border-left-color: var(--c-chilli); }
.delivery-card:nth-child(2) h3 { color: var(--c-chilli); }
@media (min-width: 640px) { .delivery-grid { grid-template-columns: 1fr 1fr; } }

/* ---- FAQ ---- */
.faq-list details {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); margin-bottom: var(--s3);
  padding: 0;
}
.faq-list summary {
  padding: var(--s4) var(--s5);
  font-weight: 600; cursor: pointer;
  list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: var(--s5);
  color: var(--c-gold); font-size: 1.3rem; line-height: 1;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 var(--s5) var(--s4); margin: 0; color: var(--c-ink); }
.faq-list details[open] p { animation: fade-in 0.35s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---- footer ---- */
.site-footer {
  background: var(--c-bark); color: rgba(251, 245, 234, 0.85); margin-top: var(--s7);
  border-top: 1px solid var(--c-gold);
  box-shadow: inset 0 5px 0 -3px var(--c-gold);
}
.footer-grid {
  display: grid; gap: var(--s6);
  padding-block: var(--s7) var(--s5);
}
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--c-cream); margin-bottom: var(--s2); }
.footer-head { font-weight: 600; color: var(--c-gold); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; margin-bottom: var(--s3); }
.footer-cert { font-size: 0.85rem; color: rgba(251, 245, 234, 0.6); }
.footer-links a { display: block; color: rgba(251, 245, 234, 0.85); text-decoration: none; padding-block: 3px; font-size: 0.95rem; }
.footer-links a:hover { color: var(--c-cream); text-decoration: underline; }
.footer-contact a { color: var(--c-cream); }
.footer-bar {
  border-top: 1px solid rgba(251, 245, 234, 0.15);
  padding-block: var(--s4);
  font-size: 0.82rem; color: rgba(251, 245, 234, 0.55);
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; } }

/* ---- WhatsApp float ---- */
.wa-float {
  position: fixed; right: var(--s4); bottom: var(--s4); z-index: 40;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-wa); color: #fff; border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon svg { width: 28px; height: 28px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  animation: wa-ping 3.2s ease-out infinite;
}
@keyframes wa-ping {
  0% { box-shadow: 0 0 0 0 rgba(29, 168, 81, 0.45); }
  55%, 100% { box-shadow: 0 0 0 16px rgba(29, 168, 81, 0); }
}

/* ---- cart drawer ---- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(30, 20, 12, 0.55);
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(400px, 100vw);
  background: var(--c-cream);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { transform: none; }
@media (prefers-reduced-motion: reduce) { .cart-drawer { transition: none; } }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--c-line);
}
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-close { background: none; border: 0; padding: var(--s2); color: var(--c-ink); }

.drawer-items { list-style: none; margin: 0; padding: var(--s4) var(--s5); overflow-y: auto; flex: 1; }
.drawer-item {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--c-line);
}
.drawer-item img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.drawer-item-info { flex: 1; display: flex; flex-direction: column; gap: var(--s1); }
.drawer-item-info > a { color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.drawer-item-variant { color: var(--c-muted); font-size: 0.82rem; }
.drawer-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.line-remove {
  background: none; border: 0; color: var(--c-muted);
  font-size: 0.78rem; text-decoration: underline; padding: 0;
}
.line-remove:hover { color: var(--c-chilli); }

.drawer-empty { padding: var(--s6) var(--s5); text-align: center; color: var(--c-muted); }
.drawer-foot { padding: var(--s4) var(--s5) var(--s5); border-top: 1px solid var(--c-line); }
.drawer-subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: var(--s2); }
.drawer-note { color: var(--c-muted); font-size: 0.82rem; margin-bottom: var(--s3); }

/* ---- qty stepper ---- */
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-card);
}
.qty button {
  width: 38px; height: 38px;
  background: none; border: 0;
  font-size: 1.1rem; color: var(--c-ink);
}
.qty button:hover { color: var(--c-chilli); }
.qty output { min-width: 32px; text-align: center; font-weight: 600; }
.qty-sm button { width: 28px; height: 28px; font-size: 0.95rem; }
.qty-sm output { min-width: 24px; font-size: 0.9rem; }

/* ---- breadcrumb ---- */
.breadcrumb { padding-block: var(--s4); font-size: 0.85rem; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-chilli); }

/* ---- product page ---- */
.product-layout { display: grid; gap: var(--s6); margin-bottom: var(--s6); }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1fr 1fr; } }

.gallery-main {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--c-line); background: #EFEDE8;
  box-shadow: var(--shadow);
}
.gallery-main img { width: 100%; height: auto; }
.gallery-thumbs {
  display: flex; gap: var(--s2); margin-top: var(--s3);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--s1);
}
.gallery-thumb {
  flex: 0 0 72px; scroll-snap-align: start;
  border: 2px solid var(--c-line); border-radius: var(--radius-sm);
  padding: 0; overflow: hidden; background: #EFEDE8;
}
.gallery-thumb img { width: 100%; height: 90px; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--c-gold); }

.product-info h1 { margin-bottom: var(--s1); }
.product-tagline { color: var(--c-muted); font-size: 1.02rem; margin-bottom: var(--s4); }
.product-price { font-size: 1.9rem; font-weight: 700; font-family: var(--font-head); color: var(--c-bark); margin-bottom: var(--s4); }

.variant-row { display: flex; gap: var(--s2); margin-bottom: var(--s4); flex-wrap: wrap; }
.variant-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 92px; padding: var(--s2) var(--s4);
  background: var(--c-card);
  border: 2px solid var(--c-line); border-radius: var(--radius-sm);
  font-weight: 600;
}
.variant-btn small { color: var(--c-muted); font-weight: 500; }
.variant-btn:hover { border-color: var(--c-gold); }
.variant-btn.is-active { border-color: var(--c-chilli); background: #FBEFEA; }
.variant-btn.is-active small { color: var(--c-chilli); }
.variant-single { color: var(--c-muted); margin-bottom: var(--s4); }

.buy-row { display: flex; gap: var(--s3); margin-bottom: var(--s3); flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 160px; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: var(--s4) 0; }
.chip {
  background: var(--c-sand); color: var(--c-leaf);
  border: 1px solid var(--c-line); border-radius: 999px;
  padding: 4px 12px; font-size: 0.8rem; font-weight: 500;
}
.chip-gold { background: var(--c-gold); color: #fff; border-color: var(--c-gold); }

.product-desc { margin-block: var(--s4); }

.specs { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-block: var(--s4); }
.specs th, .specs td { text-align: left; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.specs th { color: var(--c-muted); font-weight: 600; white-space: nowrap; width: 110px; }

.related h2 { margin-bottom: var(--s5); }

/* ---- checkout ---- */
.checkout h1 { margin-bottom: var(--s5); }
.checkout h2 { font-size: 1.35rem; margin-top: var(--s6); }
.checkout-empty { text-align: center; padding-block: var(--s7); }
.checkout-empty p { color: var(--c-muted); font-size: 1.1rem; }

.checkout-items { list-style: none; margin: 0 0 var(--s5); padding: 0; }
.checkout-item {
  display: flex; gap: var(--s3); align-items: flex-start;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--c-line);
}
.checkout-item img { width: 72px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.checkout-item-info { flex: 1; display: flex; flex-direction: column; gap: var(--s1); }
.checkout-item-info > a { color: var(--c-ink); text-decoration: none; font-weight: 600; }
.checkout-item-info > span { color: var(--c-muted); font-size: 0.85rem; }
.checkout-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }

.totals {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: var(--s4) var(--s5);
}
.totals-row { display: flex; justify-content: space-between; padding-block: var(--s1); }
.totals-grand { border-top: 1px solid var(--c-line); margin-top: var(--s2); padding-top: var(--s3); font-size: 1.1rem; }

.form-hint { color: var(--c-muted); font-size: 0.88rem; }
.address-form { display: flex; flex-direction: column; gap: var(--s4); }
.address-form label { display: flex; flex-direction: column; gap: var(--s1); font-weight: 600; font-size: 0.92rem; }
.address-form label small { color: var(--c-muted); font-weight: 400; }
.address-form input, .address-form textarea {
  font: inherit; font-weight: 400;
  padding: 11px var(--s3);
  border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
  background: var(--c-card); color: var(--c-ink);
  width: 100%;
}
.address-form input:focus, .address-form textarea:focus {
  outline: 2px solid var(--c-gold); outline-offset: 1px; border-color: var(--c-gold);
}
.phone-wrap { display: flex; align-items: center; gap: var(--s2); }
.phone-wrap > span {
  padding: 11px var(--s3);
  background: var(--c-sand); border: 1.5px solid var(--c-line);
  border-radius: var(--radius-sm); font-weight: 500;
}
.form-row { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field-error { display: none; color: var(--c-chilli); font-size: 0.8rem; font-weight: 500; }
label.is-invalid .field-error { display: block; }
label.is-invalid input, label.is-invalid textarea { border-color: var(--c-chilli); }

.form-note { color: var(--c-muted); font-size: 0.85rem; text-align: center; margin-top: var(--s2); }

/* ---- 404 ---- */
.notfound { text-align: center; padding-block: var(--s8); }
.notfound p { color: var(--c-muted); margin-bottom: var(--s5); }

/* ---- reveal on scroll (only hidden when JS is running) ----
   Uses a one-shot animation (not a transition) so it never interferes
   with the elements' own hover transitions. The final keyframe omits
   transform on purpose: after the reveal, hover transforms take over. */
.js .reveal { opacity: 0; }
.js .reveal.in-view { animation: reveal-in 0.55s ease var(--rd, 0ms) both; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; }
}

/* stagger cards and trust items that reveal together */
.grid > :nth-child(2), .trust-list li:nth-child(2) { --rd: 80ms; }
.grid > :nth-child(3), .trust-list li:nth-child(3) { --rd: 160ms; }
.grid > :nth-child(4), .trust-list li:nth-child(4) { --rd: 240ms; }
.grid > :nth-child(5) { --rd: 320ms; }
.grid > :nth-child(6) { --rd: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  .js .reveal.in-view { animation: none; }
  .hero-media picture, .hero-media::before, .smoke i,
  .deco, .wa-float::before, .brush::after, .cart-badge.pop,
  .announce, .intro-inner { animation: none; }
  .smoke { display: none; }
  .announce { background: var(--c-leaf); }
}
