/* ==========================================================================
   SHARED STYLES (every page): colours, header, buttons, footer, cart widgets.
   Page-only styles live in home.css and shop.css, so editing one never breaks the other.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #FAF5EC; --surface: #FFFFFF; --surface-glass: rgba(255,255,255,.95); --nav-bg: rgba(255,255,255,.92);
  --border: rgba(64,25,34,.15); --text-main: #2C1217; --text-muted: #6B4E54;
  --primary: #941834; --primary-glow: rgba(148,24,52,.28);
  --accent-turmeric: #E89E19; --accent-chilli: #D8311E; --accent-leaf: #2A6F41; --accent-brass: #C5882B;
  --wood-shelf: linear-gradient(180deg,#A86D39 0%,#7A461A 100%);
  --card-shadow: 0 10px 25px -5px rgba(78,20,31,.08);
  --sat: env(safe-area-inset-top,0px); --sab: env(safe-area-inset-bottom,0px);
  --sal: env(safe-area-inset-left,0px); --sar: env(safe-area-inset-right,0px);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050505; --surface: #0f0f0f; --surface-glass: rgba(15,15,15,.95); --nav-bg: rgba(14,10,12,.92);
  --border: #2c2c2c; --text-main: #FFFFFF; --text-muted: #A39B98;
  --primary: #FF4D6D; --primary-glow: rgba(255,77,109,.35);
  --accent-turmeric: #FDBF44; --accent-chilli: #FF5A45; --accent-leaf: #49B368; --accent-brass: #E0AA4E;
  --wood-shelf: linear-gradient(180deg,#2b1704 0%,#120901 100%);
  --card-shadow: 0 8px 24px rgba(0,0,0,.9);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background-color: var(--bg); color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.6;
  overflow-x: hidden; overflow-x: clip; width: 100%;
  min-height: 100vh; min-height: 100dvh;
  transition: background-color .3s ease, color .3s ease;
}
img, svg, video { max-width: 100%; }
button, a, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent-brass); outline-offset: 3px; }
h1, h2, h3, .serif-font { font-family: 'Rozha One', serif; font-weight: 400; }
.signature-font { font-family: 'Alex Brush', cursive; letter-spacing: 1px; }
#spice-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* ---------- Buttons ---------- */
.primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent-chilli)); color: #FFF; border: none;
  padding: 12px 22px; min-height: 44px; font-size: .9rem; font-weight: 600; font-family: inherit;
  border-radius: 50px; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 20px var(--primary-glow); transition: transform .2s, box-shadow .2s;
}
html[data-theme="dark"] .primary-btn { background: linear-gradient(135deg,#D6304F,#C8341F); }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px var(--primary-glow); }
.primary-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.secondary-btn {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--text-main);
  border: 1px solid var(--border); padding: 11px 20px; min-height: 44px; font-size: .9rem; font-weight: 600;
  border-radius: 50px; cursor: pointer; text-decoration: none;
}

/* ---------- Section headings (shared by home + shop) ---------- */
.section-shell { position: relative; padding: 65px 20px; z-index: 1; }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 36px; }
.section-tag { color: var(--accent-brass); font-size: .82rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 6px; display: block; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.6rem); margin-bottom: 4px; overflow-wrap: break-word; }
.section-tag-sig { font-size: 2rem; color: var(--accent-chilli); margin-bottom: 8px; line-height: 1.2; }

/* ---------- Header ---------- */
header.nav-bar {
  position: sticky; top: 0; z-index: 1000; background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.nav-container { max-width: 1250px; margin: 0 auto; padding: 10px max(20px,var(--sal)) 10px max(20px,var(--sar)); display: flex; align-items: center; gap: 14px; }
.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; margin-right: auto; }
.logo-img { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-brass); box-shadow: 0 0 12px var(--primary-glow); }
.brand-text { min-width: 0; }
.brand-title { display: block; font-size: 1.2rem; line-height: 1.1; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag-sig { display: block; font-size: 1.15rem; line-height: 1; color: var(--accent-chilli); white-space: nowrap; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }

.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links > li > a, .nav-links > li > .drop-btn {
  text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: .95rem; position: relative; padding: 4px 0;
  transition: color .25s ease; background: transparent; border: none; font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active, .nav-links .drop-btn:hover { color: var(--primary); }
.nav-links > li > a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width .3s ease; }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { width: 100%; }
.dropdown { position: relative; }
.dropdown-content { position: absolute; top: 100%; right: 0; background: var(--surface); min-width: 180px; box-shadow: var(--card-shadow); border: 1px solid var(--border); border-radius: 12px; padding: 8px 0; display: none; z-index: 101; list-style: none; }
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { display: block; }
.dropdown-content li a { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; color: var(--text-muted); font-size: .88rem; text-decoration: none; transition: background .2s, color .2s; }
.dropdown-content li a:hover { background: rgba(148,24,52,.08); color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; flex: none; }
.nav-cta { padding: 9px 20px; font-size: .88rem; }
.icon-btn { position: relative; width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-main); cursor: pointer; text-decoration: none; transition: transform .25s, border-color .25s; }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--primary); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-sun { display: none; }
html[data-theme="dark"] .ico-sun { display: block; }
html[data-theme="dark"] .ico-moon { display: none; }
.burger { display: none; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--primary); color: #FFF; font-size: .7rem; font-weight: 700; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; display: grid; place-items: center; line-height: 1; }
.install-nav-btn { display: none; align-items: center; gap: 6px; min-height: 44px; background: rgba(42,111,65,.12); color: var(--accent-leaf); border: 1px solid rgba(42,111,65,.3); padding: 6px 14px; font-size: .8rem; font-weight: 700; border-radius: 24px; cursor: pointer; transition: all .2s ease; white-space: nowrap; }
.install-nav-btn.show { display: inline-flex; }
.install-nav-btn:hover { background: var(--accent-leaf); color: #FFF; }

.mnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px rgba(0,0,0,.18); padding: 6px max(16px,var(--sal)) calc(18px + var(--sab)) max(16px,var(--sar)); max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mnav.open { display: block; animation: drop .25s ease both; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mnav a, .mnav button.mnav-item { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 8px; text-decoration: none; font: inherit; font-weight: 700; color: var(--text-main); background: transparent; border: 0; border-bottom: 1px solid var(--border); text-align: left; cursor: pointer; }
.mnav a.active { color: var(--primary); }
.mnav .mnav-title { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--text-muted); padding: 14px 8px 4px; }
.mnav .primary-btn { width: 100%; margin-top: 14px; border-bottom: 0; color: #fff; min-height: 48px; justify-content: center; }

/* ---------- Ticker ---------- */
.scrolling-ticker-wrapper { max-width: 1340px; margin: 12px auto 0; padding: 0 max(20px,var(--sal)) 0 max(20px,var(--sar)); position: relative; z-index: 99; }
.scrolling-ticker-bar { background: linear-gradient(135deg, var(--primary), var(--accent-chilli)); color: #FFF; padding: 10px 16px; overflow: hidden; white-space: nowrap; border-radius: 14px; box-shadow: 0 4px 16px rgba(148,24,52,.22); border: 1px solid rgba(255,255,255,.15); }
html[data-theme="dark"] .scrolling-ticker-bar { background: linear-gradient(135deg,#9E1B3A,#C8341F); }
.ticker-track { display: inline-block; animation: tickerScroll 42s linear infinite; padding-left: 100%; font-size: .9rem; font-weight: 600; letter-spacing: .5px; will-change: transform; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-block; padding-right: 60px; }
.ticker-item a.whatsapp-highlight { background: #25D366; color: #FFF !important; padding: 3px 10px; border-radius: 16px; font-weight: 700; margin-left: 4px; display: inline-block; box-shadow: 0 2px 8px rgba(0,0,0,.2); text-decoration: none; }
@keyframes tickerScroll { 0% { transform: translate3d(0,0,0); } 100% { transform: translate3d(-100%,0,0); } }

/* ---------- Floating cart / PWA prompt / toast / scroll-top ---------- */
.floating-quick-cart { position: fixed; bottom: calc(78px + var(--sab)); right: max(20px,var(--sar)); background: linear-gradient(135deg, var(--primary), var(--accent-chilli)); color: #FFF; padding: 11px 20px; border-radius: 50px; box-shadow: 0 10px 30px rgba(148,24,52,.4); display: flex; align-items: center; gap: 12px; cursor: pointer; z-index: 1050; text-decoration: none; transform: translateY(100px) scale(.8); opacity: 0; pointer-events: none; transition: transform .4s cubic-bezier(.175,.885,.32,1.275), opacity .3s ease, box-shadow .2s; }
.floating-quick-cart.visible { transform: none; opacity: 1; pointer-events: auto; animation: cartBounce 2s ease-in-out infinite; }
.floating-quick-cart:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 36px rgba(148,24,52,.55); }
@keyframes cartBounce { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.02); } }
.floating-cart-icon { font-size: 1.15rem; position: relative; }
.floating-cart-badge { position: absolute; top: -8px; right: -10px; background: var(--accent-turmeric); color: #2C1217; font-size: .68rem; font-weight: 800; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 9px; display: grid; place-items: center; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.floating-cart-text { font-weight: 700; font-size: .88rem; }
.floating-cart-total { background: rgba(255,255,255,.2); padding: 3px 8px; border-radius: 12px; font-size: .8rem; font-weight: 700; white-space: nowrap; }

.pwa-bottom-prompt { position: fixed; bottom: calc(20px + var(--sab)); left: max(20px,var(--sal)); right: max(20px,var(--sar)); max-width: 460px; margin: 0 auto; background: var(--surface); border: 1.5px solid var(--accent-brass); box-shadow: 0 16px 36px rgba(0,0,0,.28); border-radius: 20px; padding: 16px 20px; z-index: 1060; display: flex; align-items: center; gap: 14px; transform: translateY(120%); opacity: 0; pointer-events: none; transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s ease; }
.pwa-bottom-prompt.active { transform: none; opacity: 1; pointer-events: auto; }
.pwa-prompt-icon { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; border: 1px solid var(--accent-brass); flex-shrink: 0; }
.pwa-prompt-text { flex-grow: 1; min-width: 0; }
.pwa-prompt-title { font-size: .95rem; font-weight: 700; line-height: 1.2; }
.pwa-prompt-sub { font-size: .78rem; color: var(--text-muted); }
.pwa-prompt-actions { display: flex; gap: 4px; align-items: center; flex: none; }
.pwa-install-btn { background: linear-gradient(135deg, var(--primary), var(--accent-chilli)); color: #FFF; border: none; border-radius: 20px; padding: 10px 16px; min-height: 44px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.pwa-dismiss-btn { background: transparent; border: none; font-size: 1.2rem; color: var(--text-muted); cursor: pointer; min-width: 44px; min-height: 44px; }

.cart-toast { position: fixed; bottom: calc(30px + var(--sab)); left: 50%; transform: translateX(-50%) translateY(100px); width: max-content; max-width: calc(100vw - 32px); background: var(--surface); border: 1.5px solid var(--accent-brass); color: var(--text-main); padding: 14px 24px; border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 1300; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s ease; }
.cart-toast span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cart-toast.active { transform: translateX(-50%) translateY(0); opacity: 1; }

.scroll-top-btn { position: fixed; bottom: calc(20px + var(--sab)); right: max(20px,var(--sar)); width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-brass); box-shadow: 0 6px 20px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; opacity: 0; pointer-events: none; transform: translateY(20px); transition: all .3s ease; padding: 2px; }
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top-btn.visible:hover { transform: translateY(-3px) scale(1.05); border-color: var(--primary); }
.scroll-top-btn img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.scroll-top-arrow { position: absolute; top: -6px; right: -2px; background: var(--primary); color: #FFF; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; display: grid; place-items: center; font-weight: bold; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--surface); border-top: 1px solid var(--border); position: relative; z-index: 1; padding: 40px 20px calc(30px + var(--sab)); }
.footer-bottom { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-weight: 600; text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-links a:hover { color: var(--primary); }

/* ---------- Responsive (header/footer) ---------- */
@media (min-width: 1181px) and (max-width: 1320px) {
  .nav-links { gap: 16px; }
  .nav-links > li > a, .nav-links > li > .drop-btn { font-size: .9rem; }
  .brand-tag-sig { font-size: 1.05rem; }
}
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .burger { display: inline-grid; }
  .nav-actions .primary-btn, .nav-actions .install-nav-btn { display: none !important; }
}
@media (min-width: 1181px) { .mnav { display: none !important; } }
@media (max-width: 600px) {
  .nav-container { padding: 8px max(12px,var(--sar)) 8px max(12px,var(--sal)); gap: 8px; }
  .logo-img { width: 40px; height: 40px; }
  .brand-logo { gap: 9px; }
  .brand-title { font-size: 1.1rem; }
  .brand-tag-sig { font-size: 1.05rem; }
  .nav-actions { gap: 6px; }
  .icon-btn { width: 42px; height: 42px; }
  .icon-btn svg { width: 20px; height: 20px; }
  html { scroll-padding-top: 66px; }
  .scrolling-ticker-wrapper { padding: 0 12px; margin-top: 10px; }
  .scrolling-ticker-bar { padding: 9px 12px; border-radius: 12px; }
  .ticker-track { font-size: .84rem; }
  .section-shell { padding: 44px 14px; }
  .section-header { margin-bottom: 26px; }
  .section-tag-sig { font-size: 1.7rem; }
  .floating-quick-cart { right: max(12px,var(--sar)); padding: 10px 16px; gap: 10px; }
  .floating-cart-text { display: none; }
  .scroll-top-btn { right: max(14px,var(--sar)); }
  .pwa-bottom-prompt { left: max(10px,var(--sal)); right: max(10px,var(--sar)); bottom: calc(10px + var(--sab)); padding: 10px 12px; gap: 10px; }
  .pwa-prompt-icon { width: 44px; height: 44px; }
  .pwa-prompt-sub { display: none; }
  .pwa-install-btn { padding: 8px 14px; }
  .cart-toast { padding: 12px 18px; border-radius: 20px; font-size: .86rem; bottom: calc(86px + var(--sab)); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .cta-group .primary-btn, .cta-group .secondary-btn { width: 100%; }
}
@media (max-width: 380px) { .brand-tag-sig { display: none; } .brand-title { font-size: 1.05rem; } }
@media (max-width: 340px) { .logo-img { width: 36px; height: 36px; } .icon-btn { width: 40px; height: 40px; } .nav-actions { gap: 4px; } }
@media (max-height: 480px) and (orientation: landscape) { .floating-quick-cart { bottom: calc(70px + var(--sab)); } }
@media (hover: none) {
  .icon-btn:hover, .primary-btn:hover, .floating-quick-cart:hover, .scroll-top-btn.visible:hover { transform: none; }
  .install-nav-btn:hover { background: rgba(42,111,65,.12); color: var(--accent-leaf); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .scrolling-ticker-bar { overflow-x: auto; }
  .ticker-track { padding-left: 0; }
}
