/* =========================================================
   CRAZYCRAVE storefront design system
   Loaded after style.css (base layout). Replaces theme-app.css + store.css.
   Palette is taken from the logo: pearl rose, sage leaf, champagne gold,
   on a deep plum ink. Headings use a serif, everything else a clean sans.
   ========================================================= */

body.store{
  /* brand tokens */
  --ink:#2a1b26; --ink-soft:#5b4a55; --muted:#7a6a75;
  --rose:#b0365f; --rose-dark:#8e2a4c; --rose-soft:#f9e9ef; --rose-tint:#fdf4f7;
  --sage:#4a7358; --sage-soft:#e8f0ea;
  --gold:#a98450; --gold-soft:#f5ecdd; --star:#d39a1f;
  --plum-soft:#efe8ee;
  --canvas:#fcf9fa; --surface:#fff; --line:#eadde3; --line-strong:#d9c6cf;
  --danger-c:#b42318; --ok:#2f6b47;

  /* legacy variable names used by style.css and the page-level inline styles */
  --bg:var(--canvas); --panel:var(--surface); --text:var(--ink);
  --primary:var(--rose); --primary2:var(--rose); --primary-dark:var(--rose-dark); --primary-light:var(--rose-soft);
  --accent:var(--rose); --accent-dark:var(--rose-dark); --accent-soft:var(--rose-soft);
  --pink:var(--rose); --pink-soft:var(--rose-soft); --pink-grad:var(--rose); --grad:var(--rose); --grad-soft:var(--rose-soft);
  --danger:var(--rose-dark); --success:var(--ok); --warning:#8a5a12;
  --border:var(--line); --paper:var(--canvas); --card:var(--surface);
  --radius:14px; --radius-md:12px; --radius-sm:10px; --radius-lg:20px;
  --shadow-sm:0 1px 2px rgba(42,27,38,.05);
  --shadow:0 8px 24px -10px rgba(42,27,38,.16);
  --shadow-lg:0 18px 40px -14px rgba(42,27,38,.22);
  --shadow-hover:var(--shadow-lg);
  --ease:cubic-bezier(.22,1,.36,1);

  --f-body:'Manrope','Noto Sans Devanagari','Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
  --f-display:'DM Serif Display','Tiro Devanagari Hindi','Noto Serif Devanagari',Georgia,serif;

  background:var(--canvas);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.6;animation:none;
}
body.store h1,body.store h2,body.store h3,body.store h4{line-height:1.25;letter-spacing:0}
body.store h1,body.store h2{font-family:var(--f-display);font-weight:400}
body.store a{transition:color .15s}
body.store :focus-visible{outline:2px solid var(--rose);outline-offset:2px}
.skip-link{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:10px 14px;border-radius:8px;z-index:999}
.skip-link:focus{left:8px}
body.store .reveal{opacity:1;transform:none}
body.store .container{width:min(1200px,92%)}

/* ---------- Buttons ---------- */
body.store .btn,body.store button{
  background:var(--rose);background-image:none;color:#fff;border:0;border-radius:10px;
  box-shadow:none;min-height:44px;padding:10px 20px;font-weight:700;font-size:.92rem;letter-spacing:0;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;
  transition:background .15s,box-shadow .15s,border-color .15s,color .15s;
}
body.store .btn:hover,body.store button:hover{background:var(--rose-dark);transform:none;box-shadow:none;filter:none}
body.store .btn:active,body.store button:active{transform:scale(.985)}
body.store .btn.secondary{background:var(--surface);color:var(--ink);border:1.5px solid var(--line-strong)}
body.store .btn.secondary:hover{background:var(--surface);border-color:var(--ink);color:var(--ink)}
body.store .btn.danger{background:var(--surface);color:var(--danger-c);border:1.5px solid #efc9c4}
body.store .btn.danger:hover{background:#fdf1ef}
body.store .btn.small{min-height:36px;padding:6px 14px;font-size:.86rem}
body.store .btn:disabled,body.store button:disabled{background:#cfc4ca;color:#fff;border-color:transparent;cursor:not-allowed}
body.store .btn .ic{flex:none}

/* ---------- Forms, tables, alerts ---------- */
body.store .field label{font-weight:700;font-size:.86rem;color:var(--ink)}
body.store .field input,body.store .field select,body.store .field textarea,
body.store .cs-area select,body.store .cs-coupon input{
  border:1.5px solid var(--line);border-radius:10px;background:#fff;min-height:46px;color:var(--ink);
}
body.store .field input:focus,body.store .field select:focus,body.store .field textarea:focus{
  border-color:var(--rose);box-shadow:0 0 0 4px var(--rose-soft);outline:0;
}
body.store .card,body.store .form-card{border-radius:var(--radius);border:1px solid var(--line);box-shadow:none;background:#fff;animation:none}
body.store .card:hover{transform:none;box-shadow:none;border-color:var(--line)}
body.store .form-card{padding:24px}
body.store .table th{background:var(--rose-tint);color:var(--ink-soft)}
body.store .pill{background:var(--rose-soft);color:var(--rose-dark)}
body.store .price{color:var(--ink)}
body.store .empty{border-radius:var(--radius);background:#fff;border:1px dashed var(--line-strong);color:var(--muted)}
.flash-stack{padding-top:16px}
body.store .alert{border-radius:12px;box-shadow:none;animation:none;font-weight:600;border:1px solid transparent}
body.store .alert.success{background:var(--sage-soft);color:#24523a;border-color:#cfe2d5}
body.store .alert.error,body.store .alert.danger{background:#fdeeed;color:#8e1f15;border-color:#f3cfcb}
body.store .alert.warning{background:var(--gold-soft);color:#6e4b13;border-color:#ead8b5}

/* ---------- Announcement bar ---------- */
.announce{background:var(--ink);color:#e9dfe5;font-size:.8rem}
.announce .container{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:8px 0}
.announce strong{color:#fff;font-weight:700}
@media(max-width:700px){.announce .container{justify-content:center;text-align:center}.announce-alt{display:none}}

/* ---------- Header ---------- */
body.store .topbar{position:sticky;top:0;z-index:100;background:#fff;backdrop-filter:none;animation:none;border-bottom:1px solid var(--line)}
body.store .nav{display:flex;align-items:center;gap:20px;min-height:72px;padding:10px 0;flex-wrap:nowrap}
body.store .brand{display:flex;align-items:center;gap:10px;flex:none;color:var(--ink);background:none;filter:none;transform:none;
  font-family:var(--f-display);font-size:1.4rem;letter-spacing:.04em;-webkit-text-fill-color:currentColor}
body.store .brand:hover{color:var(--rose);filter:none;transform:none}
body.store .brand img{width:44px;height:44px;object-fit:contain}
body.store .nav-search{flex:1;max-width:520px;position:relative;display:flex}
body.store .nav-search input{width:100%;height:46px;border:1.5px solid var(--line);border-radius:999px;padding:0 54px 0 20px;background:var(--rose-tint);font-size:.92rem;transition:border-color .15s,background .15s,box-shadow .15s}
body.store .nav-search input:focus{outline:0;border-color:var(--rose);background:#fff;box-shadow:0 0 0 4px var(--rose-soft)}
body.store .nav-search button{position:absolute;right:5px;top:5px;width:36px;height:36px;min-height:0;padding:0;border-radius:50%}
body.store .nav-links{display:flex;align-items:center;gap:6px;margin-left:auto}
body.store .nav-links a{padding:8px 12px;border-radius:999px;font-size:.9rem;font-weight:600;color:var(--ink-soft)}
body.store .nav-links a::after{display:none}
body.store .nav-links a:hover{color:var(--rose);background:var(--rose-tint)}
body.store .nav-links a.is-active{color:var(--rose-dark);background:var(--rose-soft)}
body.store .nav-links a.nav-register{background:var(--ink);color:#fff}
body.store .nav-links a.nav-register:hover{background:var(--rose)}
.nav-tools{display:flex;align-items:center;gap:6px;flex:none}
.nav-icon{position:relative;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.nav-icon:hover{background:var(--rose-tint);color:var(--rose)}
.nav-count{position:absolute;top:3px;right:1px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--rose);color:#fff;font-size:.68rem;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff;line-height:1}
body.store .menu-toggle{display:none}
body.store .catbar{background:#fff;border-top:1px solid var(--line)}
body.store .catbar .container{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
body.store .catbar .container::-webkit-scrollbar{display:none}
body.store .catbar a{flex:none;padding:11px 14px;font-size:.86rem;font-weight:600;color:var(--ink-soft);border-bottom:2px solid transparent;white-space:nowrap}
body.store .catbar a:hover{color:var(--rose)}
body.store .catbar a.is-active{color:var(--rose-dark);border-bottom-color:var(--rose)}
@media(max-width:900px){
  body.store .nav{flex-wrap:wrap;gap:10px;min-height:0}
  body.store .brand{font-size:1.2rem}
  body.store .brand img{width:38px;height:38px}
  .nav-tools{margin-left:auto}
  .nav-icon.nav-cart{display:none}
  body.store .menu-toggle{display:flex;min-width:44px;padding:0;background:#fff;color:var(--ink);border:1.5px solid var(--line)}
  body.store .menu-toggle:hover{background:var(--rose-tint)}
  body.store .nav-search{order:3;flex:1 1 100%;max-width:none}
  body.store .nav-links{order:4;flex:1 1 100%;margin:0;flex-direction:column;align-items:stretch;gap:0;max-height:0;overflow:hidden;opacity:0;transition:max-height .25s,opacity .2s}
  body.store .nav-links.open{max-height:420px;opacity:1;padding:4px 0}
  body.store .nav-links a{padding:13px 4px;border-radius:0;border-bottom:1px solid var(--line);background:none}
  body.store .nav-links a.nav-register{background:none;color:var(--rose-dark)}
}

/* ---------- Page chrome ---------- */
body.store main{min-height:55vh;padding-bottom:12px}
body.store .section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:44px 0 18px;padding:0}
body.store .section-title::before{display:none}
body.store .section-title h2{margin:0;font-size:clamp(1.5rem,2.4vw,1.95rem);color:var(--ink);background:none;-webkit-text-fill-color:currentColor}
body.store .section-title a{font-size:.88rem;font-weight:700;color:var(--rose-dark);background:none;padding:0;border-radius:0;box-shadow:none}
body.store .section-title a:hover{color:var(--rose);transform:none;box-shadow:none}
body.store .home-page{--home-gap:44px}
@media(max-width:700px){body.store .home-page{--home-gap:30px}body.store .section-title{margin:32px 0 14px}}

/* ---------- Home: brand hero (shown when no admin banners exist) ---------- */
.hero-brand{display:grid;grid-template-columns:1.15fr 1fr;gap:32px;align-items:center;margin:22px 0 0;padding:clamp(26px,4vw,52px);
  background:linear-gradient(120deg,var(--rose-soft) 0%,var(--rose-tint) 60%,#fff 100%);border:1px solid var(--line);border-radius:var(--radius-lg)}
.hero-brand h1{margin:0 0 14px;font-size:clamp(2.1rem,4.6vw,3.6rem);line-height:1.15;color:var(--ink)}
.hero-brand p{margin:0;max-width:46ch;color:var(--ink-soft);font-size:1.02rem}
.hb-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.hb-actions .btn{min-height:50px;padding:12px 26px}
.hb-points{display:flex;gap:8px 20px;flex-wrap:wrap;list-style:none;margin:24px 0 0;padding:0;color:var(--ink-soft);font-size:.86rem;font-weight:600}
.hb-points li{display:flex;align-items:center;gap:7px}
.hb-points li::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--sage)}
.hb-art{position:relative;aspect-ratio:1;max-width:400px;width:100%;justify-self:center;display:flex;align-items:center;justify-content:center}
.hb-art::before{content:"";position:absolute;inset:6%;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,var(--sage-soft) 62%,#dbe7de 100%);border:1px solid #d3e1d7}
.hb-art img{position:relative;width:86%;height:86%;object-fit:contain}
@media(max-width:820px){.hero-brand{grid-template-columns:1fr;padding:26px 22px}.hb-art{order:-1;max-width:190px}.hb-actions .btn{flex:1}}

/* ---------- Home: admin hero slider (keeps slider mechanics from index.php) ---------- */
body.store .home-page .hero-slider{height:380px;margin:22px 0 0;border-radius:var(--radius-lg);box-shadow:none;border:1px solid var(--line)}
body.store .home-page .hero-slide.is-active .hero-slide-bg{animation:none}
body.store .home-page .hero-blob{display:none}
body.store .home-page .hero-slide-overlay{background:linear-gradient(90deg,rgba(42,27,38,.78) 0%,rgba(42,27,38,.4) 50%,rgba(42,27,38,0) 85%)}
body.store .home-page .hero-slide-content{color:#fff;max-width:560px}
body.store .home-page .hero-slide-content h1{font-family:var(--f-display);font-weight:400;font-size:clamp(1.8rem,3.8vw,3rem);line-height:1.15;color:#fff}
body.store .home-page .hero-slide-content p{color:rgba(255,255,255,.9)}
body.store .home-page .hero-cta{background:#fff;color:var(--ink);border-radius:10px;padding:12px 26px;font-weight:800;box-shadow:none}
body.store .home-page .hero-cta:hover{background:var(--rose);color:#fff}
body.store .home-page .hero-nav{color:#fff;background:rgba(42,27,38,.35)}
body.store .home-page .hero-nav:hover{background:rgba(42,27,38,.6)}
body.store .home-page .hero-dot{background:rgba(255,255,255,.4)}
body.store .home-page .hero-dot-fill{background:#fff}
@media(max-width:768px){body.store .home-page .hero-slider,body.store .home-page .hero-slider.full-bleed{height:230px}}

/* ---------- Home: trust strip ---------- */
.home-trust{display:grid;grid-template-columns:repeat(4,1fr);margin:16px 0 0;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.home-trust>div{display:flex;align-items:center;gap:12px;padding:16px 18px;border-left:1px solid var(--line)}
.home-trust>div:first-child{border-left:0}
.home-trust .ht-ic{width:42px;height:42px;border-radius:12px;background:var(--rose-soft);color:var(--rose-dark);display:flex;align-items:center;justify-content:center;flex:none}
.home-trust>div:nth-child(2) .ht-ic{background:var(--sage-soft);color:var(--sage)}
.home-trust>div:nth-child(3) .ht-ic{background:var(--gold-soft);color:var(--gold)}
.home-trust>div:nth-child(4) .ht-ic{background:var(--plum-soft);color:var(--ink-soft)}
.home-trust strong{display:block;font-size:.9rem;line-height:1.3}
.home-trust small{display:block;color:var(--muted);font-size:.78rem;line-height:1.35}
@media(max-width:900px){.home-trust{grid-template-columns:1fr 1fr}.home-trust>div:nth-child(3){border-left:0}.home-trust>div:nth-child(n+3){border-top:1px solid var(--line)}}
@media(max-width:480px){.home-trust>div{padding:12px;gap:10px}.home-trust .ht-ic{width:36px;height:36px}.home-trust small{display:none}}

/* ---------- Home: categories ---------- */
body.store .home-page .cat-carousel{padding:0;margin:0}
body.store .home-page .cat-carousel .cat-track{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;overflow:visible;padding:0}
body.store .home-page .cat-carousel .cat-chip{
  width:auto;min-width:0;flex:none;display:flex;flex-direction:row;align-items:center;gap:14px;text-align:left;
  padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--tile,var(--rose-soft));box-shadow:none;transform:none;
  transition:border-color .15s,box-shadow .15s;
}
body.store .home-page .cat-carousel .cat-chip:nth-child(4n+2){--tile:var(--sage-soft);--tile-ink:var(--sage)}
body.store .home-page .cat-carousel .cat-chip:nth-child(4n+3){--tile:var(--gold-soft);--tile-ink:var(--gold)}
body.store .home-page .cat-carousel .cat-chip:nth-child(4n+4){--tile:var(--plum-soft);--tile-ink:var(--ink-soft)}
body.store .home-page .cat-carousel .cat-chip:hover,body.store .home-page .cat-carousel .cat-chip:focus-visible{border-color:var(--ink);box-shadow:var(--shadow);transform:none}
body.store .home-page .cat-carousel .cat-chip .cat-icon{
  width:52px;height:52px;border-radius:14px;flex:none;background:#fff;color:var(--tile-ink,var(--rose));
  font-family:var(--f-display);font-weight:400;font-size:1.6rem;display:flex;align-items:center;justify-content:center;box-shadow:none;
}
body.store .home-page .cat-carousel .cat-chip h3{margin:0;font-family:var(--f-body);font-size:1rem;font-weight:700;color:var(--ink);text-align:left}
body.store .home-page .cat-carousel .cat-chip p.muted{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:2px 0 0;font-size:.8rem;line-height:1.4;color:var(--ink-soft);text-align:left}
body.store .home-page .cat-carousel .cat-nav{display:none}
@media(max-width:640px){
  body.store .home-page .cat-carousel .cat-track{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;margin:0 -4vw;padding:0 4vw 4px}
  body.store .home-page .cat-carousel .cat-track::-webkit-scrollbar{display:none}
  body.store .home-page .cat-carousel .cat-chip{flex:0 0 240px;scroll-snap-align:start}
}

/* ---------- Product card (.pc) ---------- */
.pc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
@media(max-width:1024px){.pc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.pc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
.pc{position:relative;display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;min-width:0;transition:border-color .15s,box-shadow .2s}
.pc:hover{border-color:var(--line-strong);box-shadow:var(--shadow)}
.pc-media{position:relative;display:block;aspect-ratio:4/5;background:var(--rose-tint);overflow:hidden}
.pc-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s var(--ease)}
.pc:hover .pc-media img{transform:scale(1.04)}
.pc-media img.is-fallback,img.is-fallback{object-fit:contain;padding:22%;background:var(--rose-tint)}
.pc.is-soldout .pc-media img{opacity:.55;filter:grayscale(.4)}
.pc-tag{position:absolute;left:10px;top:10px;background:var(--rose);color:#fff;font-size:.72rem;font-weight:800;padding:4px 10px;border-radius:999px;line-height:1.3}
.pc-tag-dark{background:var(--ink)}
body.store .pc-heart{position:absolute;top:8px;right:8px;margin:0;z-index:2}
body.store .pc-heart button{width:38px;height:38px;min-height:0;padding:0;border-radius:50%;background:rgba(255,255,255,.94);color:var(--ink);border:1px solid var(--line);box-shadow:var(--shadow-sm)}
body.store .pc-heart button:hover{background:#fff;color:var(--rose);border-color:var(--rose)}
body.store .pc-heart button.is-saved{color:var(--rose);border-color:var(--rose-soft);background:#fff}
body.store .pc-heart button.is-saved svg{fill:var(--rose)}
.pc-body{display:flex;flex-direction:column;gap:5px;padding:14px 14px 14px;flex:1}
.pc-cat{margin:0;font-size:.76rem;font-weight:600;color:var(--muted)}
.pc-title{margin:0;font-family:var(--f-body);font-size:.95rem;font-weight:700;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.pc-title a:hover{color:var(--rose)}
.pc-rating{margin:0;display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--muted)}
.pc-stars{position:relative;width:72px;height:13px;background:linear-gradient(90deg,var(--star) var(--fill),#e4d7dc var(--fill));-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='13' viewBox='0 0 72 13'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M6.5 0l1.9 4.1 4.4.5-3.3 3 .9 4.4-3.9-2.2-3.9 2.2.9-4.4-3.3-3 4.4-.5z'/%3E%3Cuse href='%23s' x='14.5'/%3E%3Cuse href='%23s' x='29'/%3E%3Cuse href='%23s' x='43.5'/%3E%3Cuse href='%23s' x='58'/%3E%3C/g%3E%3C/svg%3E") center/72px 13px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='13' viewBox='0 0 72 13'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M6.5 0l1.9 4.1 4.4.5-3.3 3 .9 4.4-3.9-2.2-3.9 2.2.9-4.4-3.3-3 4.4-.5z'/%3E%3Cuse href='%23s' x='14.5'/%3E%3Cuse href='%23s' x='29'/%3E%3Cuse href='%23s' x='43.5'/%3E%3Cuse href='%23s' x='58'/%3E%3C/g%3E%3C/svg%3E") center/72px 13px no-repeat}
.pc-price{margin:2px 0 0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.pc-price strong{font-size:1.05rem;font-weight:800;color:var(--ink)}
.pc-price s{font-size:.8rem;color:var(--muted)}
.pc-saved{margin:0;font-size:.76rem;color:var(--muted)}
.pc-cta{margin:auto 0 0;padding-top:8px}
body.store .pc-add{width:100%;min-height:42px;padding:8px 12px;font-size:.86rem;background:#fff;color:var(--ink);border:1.5px solid var(--ink)}
body.store .pc-add:hover{background:var(--ink);color:#fff}
body.store .pc-add:disabled{background:#f4eff2;color:var(--muted);border-color:var(--line)}
@media(max-width:700px){.pc-body{padding:11px}.pc-title{font-size:.88rem}.pc-price strong{font-size:.98rem}}

/* horizontal rails for the home page */
.pc-rail-wrap{position:relative}
.pc-rail{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x proximity;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-x:contain;padding:2px 2px 6px;cursor:grab}
.pc-rail::-webkit-scrollbar{display:none}
.pc-rail.dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.pc-rail.dragging a{pointer-events:none}
.pc-rail .pc{flex:0 0 clamp(172px,19vw,230px);scroll-snap-align:start}
body.store .rail-nav{position:absolute;top:38%;z-index:3;width:42px;height:42px;min-height:0;padding:0;border-radius:50%;background:#fff;color:var(--ink);border:1px solid var(--line-strong);box-shadow:var(--shadow)}
body.store .rail-nav:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
.rail-prev{left:-14px}.rail-next{right:-14px}
@media(max-width:900px){body.store .rail-nav{display:none}}

/* ---------- Home: sponsored banners ---------- */
body.store .home-page .ad-banner-card{border-radius:var(--radius);border:1px solid var(--line);box-shadow:none}
body.store .home-page .ad-banner-tag{background:var(--gold-soft);color:var(--gold)}

/* ---------- Wishlist page ---------- */
.wl-page{padding-bottom:28px}
.wl-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 24px;flex-wrap:wrap;margin:34px 0 22px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.wl-head h1{margin:0;font-size:clamp(2rem,3.4vw,2.7rem)}
.wl-sub{margin:4px 0 0;display:flex;align-items:center;gap:10px;color:var(--ink-soft);font-size:.95rem}
.wl-sub strong{color:var(--ink)}
.wl-dot{width:4px;height:4px;border-radius:50%;background:var(--line-strong)}
.wl-actions{display:flex;gap:10px;flex-wrap:wrap}
.wl-actions form{margin:0}
.wl-empty{max-width:520px;margin:56px auto 24px;text-align:center;padding:44px 28px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg)}
.wl-empty-ic{width:78px;height:78px;border-radius:50%;background:var(--rose-soft);color:var(--rose);display:inline-flex;align-items:center;justify-content:center;margin-bottom:16px}
.wl-empty h1{margin:0 0 8px;font-size:clamp(1.7rem,3vw,2.2rem)}
.wl-empty p{margin:0 auto 22px;max-width:40ch;color:var(--ink-soft)}
.wl-empty-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.wl-empty-cats{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.wl-empty-cats a{padding:7px 14px;border:1px solid var(--line-strong);border-radius:999px;font-size:.84rem;font-weight:600;color:var(--ink-soft)}
.wl-empty-cats a:hover{border-color:var(--rose);color:var(--rose-dark);background:var(--rose-tint)}
@media(max-width:600px){.wl-head{margin-top:22px}.wl-actions{width:100%}.wl-actions>*,.wl-actions form,.wl-actions .btn{flex:1;width:100%}}

/* ---------- Shop listing (products.php) ---------- */
body.store .products-page{--primary:var(--rose);--primary-dark:var(--rose-dark);--primary-light:var(--rose-soft);--accent:var(--rose);--paper:var(--canvas);--ink:#2a1b26;--border:var(--line);--muted:#7a6a75;background:var(--canvas);font-family:var(--f-body);padding-top:22px}
body.store .products-page .pp-bar{border-radius:var(--radius);box-shadow:none}
body.store .products-page .pp-bar-title h1{font-family:var(--f-display);font-size:1.25rem;font-weight:400}
body.store .products-page .pp-apply-btn{border-radius:8px;min-height:34px;padding:0 14px}
body.store .products-page .pp-empty{border-radius:var(--radius);background:#fff;border:1px dashed var(--line-strong)}

/* ---------- Product detail ---------- */
body.store .product-page .btn-buy{background:var(--ink);color:#fff;border-radius:10px;min-height:46px}
body.store .product-page .btn-buy:hover{background:var(--rose)}
body.store .product-page .actions form{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
body.store .product-page h1{font-family:var(--f-display);font-weight:400}
body.store .product-detail{gap:30px}
body.store .product-detail .form-card{padding:28px}
body.store .product-detail .image,body.store .product-gallery-frame{border-radius:var(--radius);background:var(--rose-tint);border:1px solid var(--line)}
.cod-badge{display:flex;align-items:center;gap:10px;margin-top:16px;padding:12px 14px;background:var(--sage-soft);border:1px solid #cfe2d5;border-radius:12px;color:#24523a;font-size:.9rem;font-weight:600}
.cod-badge span{font-size:1.2rem}
body.store .related-grid .product-card,body.store .product-page .related-grid .product-card{border-radius:var(--radius);box-shadow:none}

/* ---------- Footer ---------- */
.site-footer{margin-top:64px;background:#fff;border-top:1px solid var(--line);color:var(--ink-soft)}
.site-footer .sf-assure{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:28px 0;border-bottom:1px solid var(--line)}
.site-footer .sf-assure>div{display:flex;align-items:flex-start;gap:12px}
.site-footer .sf-assure .ic{color:var(--rose);flex:none;margin-top:2px}
.site-footer .sf-assure strong{display:block;color:var(--ink);font-size:.92rem}
.site-footer .sf-assure small{display:block;font-size:.8rem;color:var(--muted);line-height:1.4}
.site-footer .sf-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.2fr;gap:28px;padding:32px 0}
.site-footer h4{margin:0 0 12px;color:var(--ink);font-size:.9rem;font-family:var(--f-body);font-weight:800}
.site-footer .sf-grid a{display:block;padding:4px 0;font-size:.9rem}
.site-footer .sf-grid a:hover{color:var(--rose)}
.site-footer .sf-grid a.brand{display:inline-flex;padding:0}
.site-footer .sf-about p{font-size:.9rem;line-height:1.65;margin:12px 0 0;max-width:330px}
.site-footer .sf-pay{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.site-footer .sf-pay span{border:1px solid var(--line-strong);border-radius:8px;padding:6px 10px;font-size:.78rem;font-weight:700;color:var(--ink)}
.site-footer .sf-copy{border-top:1px solid var(--line);padding:16px 0 24px;font-size:.82rem;color:var(--muted)}
@media(max-width:900px){.site-footer .sf-assure{grid-template-columns:1fr 1fr}.site-footer .sf-grid{grid-template-columns:1fr 1fr}.site-footer .sf-about{grid-column:1/-1}}
@media(max-width:480px){.site-footer .sf-assure small{display:none}}

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav{display:none}
@media(max-width:900px){
  body.store{padding-bottom:86px}
  .bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:200;display:flex;align-items:flex-end;justify-content:space-around;background:#fff;border-top:1px solid var(--line);padding:8px 6px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px -12px rgba(42,27,38,.18)}
  .bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:.68rem;font-weight:700;color:#8d7c87}
  .bottom-nav a.is-active{color:var(--rose)}
  .bottom-nav .bn-cart{margin-top:-28px}
  .bn-cart-btn{position:relative;width:56px;height:56px;border-radius:50%;background:var(--rose);color:#fff;display:flex;align-items:center;justify-content:center;border:4px solid #fff;box-shadow:0 8px 18px -4px rgba(176,54,95,.5)}
  .bn-cart-btn em{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:var(--ink);color:#fff;font-size:.68rem;font-style:normal;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 5px}
}

/* ---------- Cart ---------- */
.cart-page{padding-bottom:30px}
.cart-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:32px 0 20px;flex-wrap:wrap}
.cart-head h1{margin:0;font-size:clamp(1.8rem,3vw,2.4rem)}
.cart-head a{color:var(--rose-dark);font-weight:700;font-size:.9rem}
.cart-layout{display:grid;grid-template-columns:1.7fr 1fr;gap:24px;align-items:start}
.cart-list{display:flex;flex-direction:column;gap:12px}
.cart-item{display:grid;grid-template-columns:92px 1fr auto;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:12px}
.cart-item img{width:92px;height:92px;border-radius:10px;object-fit:cover;background:var(--rose-tint)}
.cart-item h3{margin:0 0 4px;font-family:var(--f-body);font-size:.98rem;font-weight:700}
.cart-item h3 a:hover{color:var(--rose)}
.cart-item .ci-price{color:var(--muted);font-size:.86rem}
.cart-item .ci-vat{color:var(--muted);font-size:.78rem}
.cart-item .ci-side{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.cart-item .ci-total{font-weight:800;font-size:1.02rem}
.ci-qty{display:inline-flex;align-items:center;border:1.5px solid var(--line-strong);border-radius:10px;overflow:hidden;margin-top:8px;background:#fff}
body.store .ci-qty button{min-height:38px;width:38px;padding:0;border-radius:0;background:#fff;color:var(--ink);font-size:1.15rem}
body.store .ci-qty button:hover{background:var(--rose-soft);color:var(--rose-dark)}
body.store .ci-qty button:disabled{background:#fff;color:#c9bcc3}
.ci-qty span{min-width:38px;text-align:center;font-weight:800}
body.store .ci-remove{background:none;color:var(--muted);min-height:0;padding:0;font-size:.82rem;font-weight:600;text-decoration:underline}
body.store .ci-remove:hover{background:none;color:var(--danger-c)}
.cart-summary{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px;position:sticky;top:140px}
.cart-summary h2{margin:0 0 14px;font-size:1.4rem}
.cs-row{display:flex;justify-content:space-between;gap:10px;padding:7px 0;font-size:.92rem;color:var(--ink-soft)}
.cs-row strong{color:var(--ink)}
.cs-total{border-top:1px solid var(--line);margin-top:8px;padding-top:14px;font-size:1.1rem;font-weight:800;color:var(--ink)}
.cs-total strong{color:var(--rose-dark)}
.cs-area{margin:12px 0 4px}
.cs-area label{display:block;font-weight:700;font-size:.84rem;margin-bottom:6px}
.cs-area select{width:100%;height:46px;padding:0 12px}
.cs-cod{display:flex;gap:10px;align-items:center;margin:14px 0;padding:11px 12px;background:var(--sage-soft);border:1px solid #cfe2d5;border-radius:10px;color:#24523a;font-size:.86rem;font-weight:600}
body.store .cs-order{display:flex;width:100%;min-height:52px;font-size:1rem;margin-top:6px}
.cs-coupon{margin-top:14px}
.cs-coupon summary{cursor:pointer;color:var(--rose-dark);font-weight:700;font-size:.88rem}
.cs-coupon form{display:flex;gap:8px;margin-top:10px}
.cs-coupon input{flex:1;min-width:0;height:44px;padding:0 12px}
.cart-empty{text-align:center;background:#fff;border:1px dashed var(--line-strong);border-radius:var(--radius-lg);padding:56px 20px;margin:20px 0}
.cart-empty .ce-ic{font-size:2.6rem}
.cart-empty h2{margin:8px 0 4px}
.cart-empty p{color:var(--muted);margin:0 0 18px}
@media(max-width:860px){
  .cart-layout{grid-template-columns:1fr}.cart-summary{position:static}
  .cart-item{grid-template-columns:72px 1fr}.cart-item img{width:72px;height:72px}
  .cart-item .ci-side{grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:center}
}

/* ---------- Order confirmation / track / auth ---------- */
.oc-page{max-width:860px;margin:0 auto;padding:10px 0 20px}
.oc-hero{text-align:center;background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:30px 20px;margin:28px 0 18px}
.oc-hero .oc-check{width:64px;height:64px;border-radius:50%;background:var(--sage-soft);color:var(--ok);display:inline-flex;align-items:center;justify-content:center;margin-bottom:10px}
.oc-hero .oc-check svg{width:32px;height:32px}
.oc-hero h1{margin:0 0 6px;font-size:1.9rem}
.oc-hero p{margin:4px 0;color:var(--ink-soft)}
.oc-no{display:inline-block;margin-top:10px;background:var(--rose-tint);border:1px dashed var(--line-strong);border-radius:10px;padding:8px 16px;font-weight:800;letter-spacing:.03em}
.oc-cod{display:flex;gap:12px;align-items:flex-start;text-align:left;background:var(--sage-soft);border:1px solid #cfe2d5;border-radius:12px;padding:14px 16px;margin:18px auto 0;max-width:560px;color:#24523a}
.oc-cod span{font-size:1.4rem}
.oc-timeline{display:flex;justify-content:space-between;gap:6px;margin:22px 0 4px;padding:0;list-style:none}
.oc-timeline li{flex:1;text-align:center;font-size:.78rem;font-weight:600;color:var(--muted);position:relative}
.oc-timeline li::before{content:"";display:block;width:22px;height:22px;border-radius:50%;background:var(--line);margin:0 auto 6px;position:relative;z-index:1}
.oc-timeline li::after{content:"";position:absolute;top:10px;left:calc(50% + 11px);right:calc(-50% + 11px);height:2px;background:var(--line)}
.oc-timeline li:last-child::after{display:none}
.oc-timeline li.done{color:var(--ink)}
.oc-timeline li.done::before,.oc-timeline li.done::after{background:var(--sage)}
.oc-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.oc-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.oc-box h3{margin:0 0 10px;font-size:1rem}
.oc-box p{margin:4px 0;font-size:.92rem;color:var(--ink-soft)}
.oc-box .cs-row{padding:5px 0}
.oc-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px}
.oc-save{background:var(--gold-soft);border:1px solid #ead8b5;color:#6e4b13;border-radius:12px;padding:12px 14px;font-size:.88rem;margin-top:14px;text-align:left}
@media(max-width:640px){.oc-grid{grid-template-columns:1fr}.oc-timeline li{font-size:.7rem}}
.track-card,.auth-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);padding:30px;margin:40px auto}
.track-card{max-width:520px}
.auth-card{max-width:440px}
.track-card h1,.auth-card h1{margin:0 0 4px;font-size:2rem}
.track-card p,.auth-card .sub{margin:0 0 20px;color:var(--muted);font-size:.92rem}
.auth-card button[type=submit]{width:100%;min-height:48px}
.auth-card .alt{text-align:center;margin:16px 0 0;font-size:.9rem;color:var(--muted)}
.auth-card .alt a{color:var(--rose-dark);font-weight:700}

/* motion preferences */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms !important;transition-duration:.001ms !important;scroll-behavior:auto !important}}

/* ---------- late fixes ---------- */
body.store .section-title h2::after,body.store .section-title::after,body.store h2::after{display:none;content:none}
body.store .home-page .story-rail{margin-top:var(--home-gap)}
body.store .home-page .cat-carousel{margin-bottom:0}

/* ---------- compact brand hero with the animated banner ---------- */
.hero-brand{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(18px,3vw,40px);padding:clamp(18px,2.4vw,30px) clamp(20px,3vw,40px);margin-top:18px;background:linear-gradient(110deg,var(--rose-soft) 0%,var(--rose-tint) 70%,#fff 100%)}
.hero-brand h1{font-size:clamp(1.7rem,3.1vw,2.55rem);margin-bottom:10px}
.hero-brand p{font-size:.96rem}
.hb-actions{margin-top:18px}
.hb-actions .btn{min-height:46px;padding:10px 22px}
.hb-points{margin-top:16px}
.hb-art{max-width:none;aspect-ratio:2/1;justify-self:stretch;border-radius:16px;overflow:hidden;background:#e9dcf9;border:1px solid var(--line-strong);box-shadow:0 14px 30px -16px rgba(42,27,38,.35)}
.hb-art::before{display:none}
.hb-art img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:820px){.hero-brand{grid-template-columns:1fr;padding:16px;gap:16px}.hb-art{order:-1;max-width:none;width:100%}.hb-points{display:none}.hero-brand p{font-size:.9rem}}
