/* ==========================================================================
   Bhakti Sansar Grah — Design tokens
   Palette: kumkum maroon, temple brass gold, turmeric saffron, sandalwood ivory
   ========================================================================== */

:root{
  color-scheme: light; /* tells the browser not to auto-dark-mode this page */
  --maroon: #7A1F3B;
  --maroon-dark: #4E1226;
  --maroon-soft: #9A3358;
  --gold: #C79A3B;
  --gold-light: #E8C874;
  --gold-pale: #F1DFA7;
  --saffron: #E08B2F;
  --saffron-dark: #C46E1B;
  --ivory: #FAF3E6;
  --ivory-deep: #F1E4C8;
  --ink: #2B1B14;
  --ink-soft: #6B5540;
  --white: #FFFDF9;

  --font-eyebrow: 'Cinzel', serif;
  --font-display: 'Marcellus', serif;
  --font-quote: 'Cormorant Garamond', serif;
  --font-body: 'Mukta', sans-serif;

  --radius: 4px;
  --shadow-card: 0 10px 30px -14px rgba(74, 22, 41, 0.35);
  --shadow-pop: 0 20px 60px -20px rgba(43, 27, 20, 0.45);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; }
:focus-visible{ outline: 2px solid var(--saffron); outline-offset: 2px; }

.container{
  width:100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--font-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--maroon);
  font-weight: 600;
}

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--maroon-dark);
  margin: 0.2em 0;
  font-weight: 400;
}

/* ---------- scalloped temple-dome divider (signature motif) ---------- */
.dome-divider{
  height: 22px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 44px 22px;
}
.dome-divider.gold{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 22 C0 8 8 0 22 0 C36 0 44 8 44 22 Z' fill='%23C79A3B'/%3E%3C/svg%3E");
}
.dome-divider.maroon{
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 22 C0 8 8 0 22 0 C36 0 44 8 44 22 Z' fill='%237A1F3B'/%3E%3C/svg%3E");
}
.dome-divider.flip{ transform: scaleY(-1); }

/* ---------------------------------- header ---------------------------------- */
.site-header{
  position: sticky; top:0; z-index: 40;
  background: var(--ivory);
  border-bottom: 1px solid var(--gold-pale);
  /* keep the bar clear of the status bar / notch (viewport-fit=cover) */
  padding-top: env(safe-area-inset-top);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 0;
  gap: 16px;
}
.brand{
  display:flex; align-items:center; gap:10px;
}
.brand-mark{
  width:38px; height:38px; flex:none;
  object-fit: contain; border-radius: 6px;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text .name{
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--maroon-dark);
}
.brand-text .tag{
  font-family: var(--font-eyebrow);
  font-size: 9.5px;
  letter-spacing:0.18em;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-search{
  flex:1; max-width: 420px;
  display:flex; align-items:center;
  background: var(--white);
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius);
  padding: 9px 14px;
  gap:8px;
}
.nav-search input{
  border:none; outline:none; background:transparent; width:100%;
  font-family: var(--font-body); font-size:14px; color: var(--ink);
}
.header-actions{ display:flex; align-items:center; gap:14px; }
.icon-btn{
  position:relative;
  background:none; border:none;
  color: var(--maroon-dark);
  display:flex; align-items:center; justify-content:center;
  width:40px; height:40px;
}
.cart-count{
  position:absolute; top:2px; right:2px;
  background: var(--saffron); color:#fff;
  font-size:10px; font-weight:700;
  min-width:16px; height:16px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  padding: 0 3px;
}

/* ---------------------------------- home banner slider (full-width, admin-managed) ---------------------------------- */
.home-banner-slider{
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--maroon);
}
.banner-slide-track{ position:absolute; inset:0; }
.banner-slide{
  position:absolute; inset:0;
  opacity:0; pointer-events:none;
  transition: opacity .6s ease;
  display:block;
}
.banner-slide.active{ opacity:1; pointer-events:auto; }
.banner-slide img{ width:100%; height:100%; object-fit:cover; display:block; }
#bannerDefaultSlide{
  background: radial-gradient(130% 160% at 12% 10%, var(--maroon-soft) 0%, var(--maroon) 45%, var(--maroon-dark) 100%);
  display:flex; align-items:center;
}
#bannerDefaultSlide::before{
  content:'';
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(232,200,116,0.20) 1.6px, transparent 1.6px);
  background-size: 26px 26px;
  pointer-events:none;
}
.banner-default-content{ position:relative; z-index:1; max-width: 560px; }
.banner-default-content .eyebrow{ color: var(--gold-light); }
.banner-default-content h1{ font-size: 38px; line-height:1.16; margin: 12px 0 20px; color: #fff; }
.banner-default-content h1 em{ font-style: normal; color: var(--gold-light); }
.banner-default-content .btn-primary{ background: var(--gold); color: var(--maroon-dark); }
.banner-default-content .btn-primary:hover{ background: var(--gold-light); }

.banner-dots{
  position:absolute; left:0; right:0; bottom:16px; z-index:2;
  display:flex; justify-content:center; gap:6px;
}
.banner-dot{
  width:7px; height:7px; border-radius:50%;
  background: rgba(255,255,255,0.5); border:none; padding:0;
  transition: all .25s ease;
}
.banner-dot.active{ background: var(--gold-light); width:20px; border-radius:4px; }

.banner-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:38px; height:38px; border-radius:50%;
  background: rgba(43,27,20,0.4); color:#fff; border:none;
  font-size:20px; line-height:1; display:flex; align-items:center; justify-content:center;
}
.banner-arrow:hover{ background: rgba(43,27,20,0.65); }
.banner-arrow.prev{ left:16px; }
.banner-arrow.next{ right:16px; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-eyebrow);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--maroon); color: var(--white); box-shadow: var(--shadow-card); }
.btn-primary:hover{ background: var(--maroon-dark); }
.btn-outline{ background:transparent; border-color: var(--maroon); color: var(--maroon); }
.btn-gold{ background: var(--saffron); color:#fff; }
.btn-gold:hover{ background: var(--saffron-dark); }
.btn-block{ width:100%; justify-content:center; }
.btn[disabled]{ opacity:0.5; cursor:not-allowed; transform:none; }

/* ---------------------------------- category pills ---------------------------------- */
.categories{
  display:flex; gap:10px;
  padding: 6px 0 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar{ display:none; }
.pill{
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold-pale);
  background: var(--white);
  font-size: 13.5px; font-weight:600; color: var(--ink-soft);
  white-space: nowrap;
  flex: none;
}
.pill.active{
  background: var(--maroon); border-color: var(--maroon); color: var(--white);
}

/* ---------------------------------- product grid ---------------------------------- */
.section-head{
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 22px;
  text-align:center;
}
.product-grid{
  display:grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-bottom: 50px;
}
.card{
  background: var(--white);
  border: 1px solid var(--ivory-deep);
  border-radius: var(--radius);
  overflow: hidden;
  display:flex; flex-direction:column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover{ box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card-media{
  aspect-ratio: 1/1;
  background: var(--ivory-deep);
  position:relative;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  cursor:pointer;
}
.card-media img{ width:100%; height:100%; object-fit:cover; }
.card-media .ph{ width:34%; opacity:.55; }
.card-badge{
  position:absolute; top:10px; left:10px;
  background: var(--saffron); color:#fff;
  font-family: var(--font-eyebrow); font-size:9.5px; letter-spacing:0.08em;
  padding: 4px 9px; border-radius: 3px; text-transform:uppercase;
}
.card-badge.badge-sale{ background: var(--saffron); }
.card-badge.badge-new{ background: var(--maroon); }
.card-badge.badge-hot{ background: #C4471C; }
.card-badge.badge-best-seller{ background: var(--gold); color: var(--maroon-dark); }
.card-badge.badge-limited-stock{ background: var(--ink); }
.modal-badge{
  display:inline-block; margin-bottom:10px;
  background: var(--saffron); color:#fff;
  font-family: var(--font-eyebrow); font-size:10px; letter-spacing:0.08em;
  padding: 4px 10px; border-radius: 3px; text-transform:uppercase;
}
.modal-badge.badge-new{ background: var(--maroon); }
.modal-badge.badge-hot{ background: #C4471C; }
.modal-badge.badge-best-seller{ background: var(--gold); color: var(--maroon-dark); }
.modal-badge.badge-limited-stock{ background: var(--ink); }
.card-body{ padding: 14px 16px 16px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card-cat{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; color: var(--gold); font-weight:700; }
.card-name{
  font-family: var(--font-display); font-size: 17px; color: var(--ink);
  cursor:pointer;
}
.card-price{ font-weight:700; color: var(--maroon-dark); font-size:15px; margin-top:auto; }
.mrp{ text-decoration: line-through; }
.card-price .mrp{ color: var(--ink-soft); font-weight:400; font-size:12.5px; margin-left:6px; }
.modal-info .price .mrp{ color: var(--ink-soft); font-weight:400; margin-left:8px; }
.card-add{
  margin-top:8px;
  border: 1px solid var(--maroon); color: var(--maroon); background: transparent;
  border-radius: var(--radius);
  padding: 9px; font-size:13px; font-weight:700;
  display:flex; align-items:center; justify-content:center; gap:6px;
}
.card-add:hover{ background: var(--maroon); color:#fff; }
.card-add.in-cart{ background: var(--maroon); color:#fff; }
.card-qty-stepper{
  margin-top:8px;
  display:flex; align-items:stretch; justify-content:space-between;
  border: 1px solid var(--maroon); border-radius: var(--radius);
  overflow:hidden;
}
.card-qty-stepper .qty-btn{
  flex:1; width:auto; height:auto; border-radius:0;
  background: var(--maroon); color:#fff; border:none;
  padding: 8px 0; font-weight:700; font-size:16px; line-height:1;
}
.card-qty-stepper .qty-val{
  flex:1.2; display:flex; align-items:center; justify-content:center;
  font-weight:700; color: var(--maroon-dark); font-size:13.5px; background:#fff;
}

.empty-state{
  text-align:center; padding: 60px 20px; color: var(--ink-soft);
}

/* ---------------------------------- footer ---------------------------------- */
.site-footer{ background: var(--maroon-dark); color: var(--ivory); padding: 40px 0 26px; }
.footer-row{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.footer-row h3{ color: var(--gold-light); font-size:18px; }
.footer-row p, .footer-row a{ color: rgba(250,243,230,0.75); font-size:14px; }
.footer-bottom{ margin-top: 26px; padding-top:18px; border-top:1px solid rgba(255,255,255,0.12); font-size:12.5px; color: rgba(250,243,230,0.55); text-align:center; }

.dev-credit{
  background: var(--maroon-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  text-align:center;
}
.dev-credit a{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; color: rgba(250,243,230,0.75);
}
.dev-credit a:hover{ color: var(--gold-light); }
.dev-credit img{ width:20px; height:20px; border-radius:5px; }

/* ---------------------------------- modal / drawer shared ---------------------------------- */
.overlay{
  position:fixed; inset:0; background: rgba(43,27,20,0.55);
  z-index:60; opacity:0; pointer-events:none; transition: opacity .2s ease;
}
.overlay.open{ opacity:1; pointer-events:auto; }

.drawer{
  position:fixed; top:0; right:0; height:100%;
  width: 420px; max-width: 92vw;
  background: var(--ivory);
  z-index:70;
  transform: translateX(100%);
  transition: transform .25s ease;
  display:flex; flex-direction:column;
  box-shadow: -12px 0 40px rgba(43,27,20,0.25);
}
.drawer.open{ transform: translateX(0); }
.drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 20px;
  background: var(--maroon);
  color: var(--white);
}
.drawer-head h2{ color:#fff; font-size:19px; margin:0; }
.drawer-close{ background:none; border:none; color:#fff; font-size:20px; }
.drawer-body{ flex:1; overflow-y:auto; padding: 16px 20px; }
.drawer-foot{ padding: 16px 20px 20px; border-top:1px solid var(--gold-pale); background: var(--white); }

.cart-item{ display:flex; gap:12px; padding: 12px 0; border-bottom: 1px solid var(--ivory-deep); }
.cart-item img{ width:64px; height:64px; object-fit:cover; border-radius:4px; background:var(--ivory-deep); flex:none; }
.cart-item-info{ flex:1; min-width:0; }
.cart-item-info .n{ font-family: var(--font-display); font-size:15px; }
.cart-item-variation{ font-size:12px; color: var(--ink-soft); margin-top:2px; }
.cart-item-info .p{ color: var(--maroon-dark); font-weight:700; font-size:13.5px; margin-top:2px; }
.qty-row{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.qty-btn{
  width:24px; height:24px; border-radius:50%;
  border:1px solid var(--maroon); background:#fff; color: var(--maroon);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; line-height:1;
}
.qty-val{ font-weight:700; min-width:16px; text-align:center; }
.remove-link{ font-size:12px; color: var(--ink-soft); text-decoration:underline; margin-left:auto; background:none; border:none; }

.cart-total-row{ display:flex; justify-content:space-between; font-family: var(--font-display); font-size:20px; color: var(--maroon-dark); margin-bottom:14px; }

.form-group{ margin-bottom: 14px; }
.form-group label{ display:block; font-size:12.5px; font-weight:700; color: var(--ink-soft); margin-bottom:6px; text-transform:uppercase; letter-spacing:.04em; }
.form-group input, .form-group textarea, .form-group select{
  width:100%; padding: 11px 13px; border:1px solid var(--gold-pale); border-radius:4px;
  font-family: var(--font-body); font-size:14.5px; background:#fff; color:var(--ink);
}
.form-group textarea{ resize:vertical; min-height:70px; }
.form-error{ color:#B3261E; font-size:12px; margin-top:4px; display:none; }
.form-hint{ font-size:12px; color: var(--ink-soft); margin-top:8px; }

/* product modal */
.modal{
  position:fixed; top:50%; left:50%; transform: translate(-50%,-46%);
  width: 880px; max-width: 94vw; max-height: 90vh; overflow:auto;
  background: var(--white); border-radius: 8px; z-index:70;
  opacity:0; pointer-events:none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow-pop);
}
.modal.open{ opacity:1; pointer-events:auto; transform: translate(-50%,-50%); }
.modal-close{
  position:absolute; top:14px; right:14px; background: var(--white);
  border:1px solid var(--ivory-deep); border-radius:50%; width:34px; height:34px;
  display:flex; align-items:center; justify-content:center; z-index:3;
}
.modal-grid{ display:grid; grid-template-columns: 1.05fr 1fr; }
.modal-media{ position:relative; background: var(--ivory-deep); aspect-ratio:1/1; overflow:hidden; }
.modal-slide-track{ position:absolute; inset:0; }
.modal-slide{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition: opacity .4s ease;
}
.modal-slide.active{ opacity:1; }
.modal.open .modal-slide.active{ pointer-events:auto; }
.modal-slide img{ width:100%; height:100%; object-fit:cover; }
.modal-slide .ph{ width:30%; opacity:.5; }
.modal-slider-dots{
  position:absolute; left:0; right:0; bottom:12px; z-index:2;
  display:flex; justify-content:center; gap:6px;
}
.modal-slider-dots .banner-dot{ background: rgba(43,27,20,0.3); }
.modal-slider-dots .banner-dot.active{ background: var(--maroon); }
.modal-slider-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:34px; height:34px; border-radius:50%;
  background: rgba(255,255,255,0.85); color: var(--maroon-dark); border:none;
  font-size:18px; line-height:1; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 14px rgba(43,27,20,0.2);
}
.modal-slider-arrow.prev{ left:12px; }
.modal-slider-arrow.next{ right:12px; }
.modal-info{ padding: 36px 36px 36px 30px; display:flex; flex-direction:column; }
.modal-info .cat{ font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: var(--gold); font-weight:700; margin-bottom:8px; }
.modal-info h2{ font-size:30px; margin: 0 0 10px; }
.modal-info .price{ font-size:22px; font-weight:700; color: var(--maroon-dark); margin-bottom:18px; }
.modal-info .desc{ color: var(--ink-soft); font-size:15.5px; line-height:1.8; margin-bottom:26px; }
.modal-sticky-footer{
  position: sticky; bottom: 0;
  background: var(--white);
  margin-top: auto;
  border-top: 1px solid var(--ivory-deep);
  padding-top: 12px;
  z-index: 2;
}
.modal-actions{
  display:flex; gap:10px;
  padding: 10px 0 4px;
}
.variation-picker{ margin-bottom: 4px; }
.variation-label{
  display:block; font-size:12px; font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; color: var(--ink-soft); margin-bottom:8px;
}
.variation-options{ display:flex; flex-wrap:wrap; gap:8px; }
.variation-pill{
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--gold-pale);
  background: var(--white);
  font-size: 13px; font-weight:600; color: var(--ink);
  min-height: 38px;
}
.variation-pill.active{
  background: var(--maroon); border-color: var(--maroon); color: var(--white);
}
.modal-actions .btn-primary{ flex:1; }
.share-btn{
  width:48px; height:48px; flex:none;
  border-radius: var(--radius);
  border: 1px solid var(--maroon);
  background: transparent; color: var(--maroon);
  display:flex; align-items:center; justify-content:center;
}
.share-btn:hover{ background: var(--maroon); color:#fff; }
.share-btn svg{ width:19px; height:19px; }

.toast{
  position:fixed; bottom:26px; left:50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color:#fff; padding: 13px 22px; border-radius: 6px;
  font-size:14px; z-index:90; opacity:0; pointer-events:none; transition: all .25s ease;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

.step{ display:none; }
.step.active{ display:block; }
.checkout-back{ background:none; border:none; color: var(--maroon); font-size:13px; font-weight:700; margin-bottom:14px; display:inline-flex; align-items:center; gap:4px; }

/* ---------------------------------- mobile app-style nav (hidden by default, shown on mobile) ---------------------------------- */
.mobile-nav{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:55;
  background: var(--white);
  border-top:1px solid var(--ivory-deep);
  padding: 7px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -14px rgba(43,27,20,0.35);
}
.mobile-nav-item{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:3px;
  background:none; border:none; color: var(--ink-soft); font-size:10px; font-weight:700;
  padding:5px 0; position:relative; text-decoration:none;
}
.mobile-nav-item svg{ width:21px; height:21px; }
.mobile-nav-item:active{ color: var(--maroon); }
.mobile-nav-badge{
  position:absolute; top:0; right:22%;
  background: var(--saffron); color:#fff; font-size:9px; font-weight:700;
  min-width:15px; height:15px; border-radius:999px;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
}
.mini-cart-bar{
  display:none;
  align-items:center; justify-content:space-between; gap:12px;
  position:fixed; left:12px; right:12px; bottom: calc(62px + env(safe-area-inset-bottom));
  z-index:54;
  background: var(--maroon); color:#fff;
  padding: 12px 16px; border-radius:12px;
  box-shadow: 0 16px 36px -14px rgba(43,27,20,0.55);
}
.mini-cart-info{ display:flex; flex-direction:column; line-height:1.25; }
.mini-cart-info .count{ font-size:11px; opacity:0.85; }
.mini-cart-info .total{ font-family:var(--font-display); font-size:17px; }
.mini-cart-bar .btn{ padding:9px 16px; font-size:11px; flex:none; }

/* ---------------------------------- responsive ---------------------------------- */
@media (max-width: 980px){
  .product-grid{ grid-template-columns: repeat(3, 1fr); }
  .banner-default-content h1{ font-size: 32px; }
}
@media (max-width: 680px){
  .header-row{ flex-wrap: wrap; padding: 12px 0; row-gap:10px; }
  .brand-text .tag{ display:none; }
  .brand-mark{ width:32px; height:32px; }
  .brand-text .name{ font-size:18px; }
  .nav-search{ order:3; flex: 1 1 100%; max-width:none; }

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

  .home-banner-slider{ aspect-ratio: 4/3; }
  .banner-default-content{ padding: 0 16px; max-width: 100%; }
  .banner-default-content h1{ font-size: 22px; margin: 10px 0 16px; }
  .banner-default-content .btn{ padding: 10px 18px; font-size:11px; }
  .banner-arrow{ width:30px; height:30px; font-size:16px; }
  .banner-arrow.prev{ left:8px; }
  .banner-arrow.next{ right:8px; }

  .card-name{ font-size:14px; }
  .card-price{ font-size:13.5px; }
  .card-cat{ font-size:10px; }
  .card-add{ padding:8px; font-size:12px; }
  .card-body{ padding: 10px 12px 12px; gap:4px; }

  /* product detail becomes a full-screen sheet — bigger, clearer, easier to read */
  .modal{
    top:auto; left:0; bottom:0; transform: translateY(100%);
    width:100%; max-width:100%; max-height: 95vh;
    border-radius: 16px 16px 0 0;
  }
  .modal.open{ transform: translateY(0); }
  .modal-grid{ grid-template-columns: 1fr; }
  .modal-media{ aspect-ratio: 1/1; }
  .modal-info{ padding: 22px 20px 16px; }
  .modal-info h2{ font-size: 24px; }
  .modal-info .price{ font-size:19px; }
  .modal-info .desc{ font-size:14.5px; }
  .modal-close{ top:12px; right:12px; }

  .modal-sticky-footer{ padding-top:10px; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .variation-label{ font-size:11px; margin-bottom:6px; }
  .variation-options{
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom:2px;
  }
  .variation-options::-webkit-scrollbar{ display:none; }
  .variation-pill{ flex:none; padding:7px 13px; font-size:12.5px; min-height:36px; }
  .modal-actions{ padding: 8px 0 4px; gap:8px; }
  .modal-actions .btn-primary{ padding: 12px 18px; font-size:11.5px; }
  .share-btn{ width:44px; height:44px; }

  .drawer{ width:100%; max-width:100%; }
  .container{ padding: 0 16px; }
  .footer-row{ flex-direction:column; }

  /* app-like chrome: bottom nav + floating cart bar, room made at page bottom */
  .mobile-nav{ display:flex; }
  .mini-cart-bar.show{ display:flex; }
  .site-footer{ padding-bottom: 76px; }
  .dev-credit{ padding-bottom: calc(14px + 62px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); gap:10px; }
  .card-body{ padding: 10px 12px 12px; }
}

/* ---------------------------------- page loader ---------------------------------- */
.page-loader{
  position:fixed; inset:0; z-index:200;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
  background: var(--ivory);
  transition: opacity .45s ease, visibility .45s ease;
}
.page-loader.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.page-loader img{
  width:84px; height:84px; object-fit:contain; border-radius:16px;
  box-shadow: 0 10px 26px -10px rgba(74,22,41,0.35);
}
.loader-ring{
  width:36px; height:36px;
  border:3px solid var(--ivory-deep);
  border-top-color: var(--maroon);
  border-radius:50%;
  animation: loader-spin 0.85s linear infinite;
}
@keyframes loader-spin{ to{ transform:rotate(360deg); } }
.loader-text{
  font-family: var(--font-eyebrow); font-size:11px; letter-spacing:.16em;
  text-transform:uppercase; color: var(--maroon);
}
@media (max-width: 680px){
  .page-loader img{ width:68px; height:68px; }
  .loader-ring{ width:30px; height:30px; }
}

/* ---------------------------------- disclaimer modal ---------------------------------- */
body.disclaimer-lock{ overflow:hidden; }

.disclaimer-overlay{
  position:fixed; inset:0; background: rgba(43,27,20,0.6);
  z-index:210; opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .25s ease, visibility .25s ease;
}
.disclaimer-overlay.open{ opacity:1; visibility:visible; pointer-events:auto; }

.disclaimer-modal{
  position:fixed; top:50%; left:50%; transform: translate(-50%,-46%) scale(.97);
  width: 560px; max-width: 92vw; max-height: 88vh;
  z-index:211; opacity:0; visibility:hidden; pointer-events:none;
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}
.disclaimer-modal.open{ opacity:1; visibility:visible; pointer-events:auto; transform: translate(-50%,-50%) scale(1); }

.disclaimer-card{
  background: var(--white); border-radius: 10px;
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow-pop);
  max-height: 88vh; display:flex; flex-direction:column;
  overflow:hidden;
}
.disclaimer-eyebrow{
  font-family: var(--font-eyebrow); font-size:10.5px; letter-spacing:.18em;
  text-transform:uppercase; color: var(--gold); font-weight:600;
  padding: 22px 28px 0;
}
.disclaimer-title{
  font-family: var(--font-display); font-size:26px; color: var(--maroon-dark);
  margin: 6px 28px 2px;
}
.disclaimer-subtitle{
  font-size:12.5px; color: var(--ink-soft); margin: 0 28px 16px;
  padding-bottom:14px; border-bottom: 1px solid var(--gold-pale);
}
.disclaimer-body{ padding: 0 28px; overflow-y:auto; flex:1; }
.disclaimer-body p{ font-size:14.5px; line-height:1.75; color: var(--ink); margin: 0 0 14px; }
.disclaimer-highlights{ margin:0 0 16px; padding-left:20px; }
.disclaimer-highlights li{ font-size:13.5px; line-height:1.65; color: var(--ink-soft); margin-bottom:8px; }
.disclaimer-highlights li strong{ color: var(--maroon-dark); }

.disclaimer-readmore{
  display:flex; align-items:center; justify-content:center; gap:6px;
  width:100%; background: var(--ivory); border: 1px solid var(--gold-pale);
  border-radius: 6px; color: var(--maroon); font-weight:700; font-size:12.5px;
  letter-spacing:.04em; text-transform:uppercase; padding: 10px; margin-bottom:16px;
  transition: background .15s ease;
}
.disclaimer-readmore:hover{ background: var(--gold-pale); }
.disclaimer-readmore svg{ transition: transform .2s ease; }
.disclaimer-readmore[aria-expanded="true"] svg{ transform: rotate(180deg); }

.disclaimer-full{ display:none; }
.disclaimer-full.open{ display:block; animation: disclaimer-fade .25s ease; }
@keyframes disclaimer-fade{ from{ opacity:0; transform: translateY(-4px); } to{ opacity:1; transform:translateY(0); } }
.disclaimer-full h4{
  font-family: var(--font-body); font-weight:700; font-size:14.5px; color: var(--maroon-dark);
  margin: 20px 0 8px;
}
.disclaimer-full h4:first-child{ margin-top:4px; }
.disclaimer-full ul, .disclaimer-full ol{ padding-left:22px; margin:0 0 14px; }
.disclaimer-full li{ font-size:13.5px; line-height:1.7; color: var(--ink-soft); margin-bottom:5px; }
.disclaimer-confirmation{
  background: var(--ivory); border-left:3px solid var(--gold);
  border-radius:4px; padding: 12px 14px; margin: 8px 0 20px;
}
.disclaimer-confirmation p{ font-size:12.5px; color: var(--ink-soft); margin:0; }

.disclaimer-footer{ padding: 16px 28px 22px; border-top:1px solid var(--gold-pale); background: var(--white); }

@media (max-width:560px){
  .disclaimer-modal{ width:94vw; }
  .disclaimer-eyebrow{ padding: 18px 20px 0; }
  .disclaimer-title{ font-size:22px; margin:6px 20px 2px; }
  .disclaimer-subtitle{ margin:0 20px 14px; }
  .disclaimer-body{ padding: 0 20px; }
  .disclaimer-footer{ padding: 14px 20px 18px; }
}

/* ---------------------------------- language toggle ---------------------------------- */
.lang-toggle{
  display:inline-flex; align-items:center; gap:2px; flex:none;
  border:1px solid var(--gold-pale); background: var(--white);
  border-radius:999px; padding:3px; cursor:pointer;
}
.lang-toggle .lang-opt{
  font-family: var(--font-body); font-size:12px; font-weight:700; line-height:1;
  color: var(--ink-soft); padding:5px 9px; border-radius:999px;
  transition: background .18s ease, color .18s ease;
}
.lang-toggle .lang-opt.active{ background: var(--maroon); color: var(--white); }

/* ---------------------------------- SEO / about copy ----------------------------------
   Kept deliberately quiet — sits above the footer for search engines and
   skim-readers, styled small + muted so it doesn't compete with the shop. */
.seo-about{ padding: 2px 0 26px; }
.seo-about h2{
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: .03em;
  color: var(--ink-soft);
  margin: 14px 0 5px;
}
.seo-about p{
  max-width: 74ch;
  font-size: 12.5px; line-height: 1.65;
  color: var(--ink-soft); opacity: .78;
}

@media (max-width: 680px){
  .header-actions{ gap: 10px; }
  .lang-toggle{ order: 2; }
  .lang-toggle .lang-opt{ padding:6px 8px; font-size:11.5px; }
}
@media (max-width: 360px){
  .header-row{ column-gap: 10px; }
  .brand-text .name{ font-size: 17px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}
