/* ============ TOKENS ============ */
:root{
  --blue:#1565C0;
  --blue-dark:#0d47a1;
  --orange:#FF6F00;
  --gold:#FFC107;
  --white:#FFFFFF;
  --grey:#F8FAFC;
  --navy:#0B1220;
  --navy-2:#111c30;
  --ink:#1c2536;
  --muted:#67728a;
  --line:rgba(11,18,32,.08);
  --radius:20px;
  --radius-sm:12px;
  --shadow-sm:0 4px 18px rgba(11,18,32,.06);
  --shadow-md:0 14px 40px rgba(11,18,32,.10);
  --shadow-lg:0 28px 70px rgba(11,18,32,.20);
  --grad-brand:linear-gradient(135deg,var(--blue) 0%,#1e88e5 45%,var(--orange) 100%);
  --grad-navy:radial-gradient(ellipse 120% 90% at 20% -10%, #16244a 0%, var(--navy) 55%, #060a14 100%);
  --grad-gold:linear-gradient(135deg,var(--gold),var(--orange));
  --ff-head:'Poppins',sans-serif;
  --ff-body:'Inter',sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--ff-body);
  color:var(--ink);
  background:var(--grey);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:var(--ff-head); font-weight:700; letter-spacing:-.02em; color:var(--navy);}
img,svg{display:block;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none;}
input{font-family:inherit;}
.container{width:100%; max-width:1280px; margin:0 auto; padding:0 28px;}
::selection{background:var(--gold); color:var(--navy);}
:focus-visible{outline:3px solid var(--gold); outline-offset:3px; border-radius:6px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important;}
}

/* ============ PRELOADER ============ */
#preloader{display:none !important; visibility:hidden !important; opacity:0 !important; pointer-events:none !important; position:fixed; inset:0; background:var(--navy); z-index:9999; display:flex; align-items:center; justify-content:center; transition:opacity .4s ease, visibility .4s ease; animation: autoHidePreloader 0.3s ease 0.8s forwards;}
#preloader.hide{opacity:0 !important; visibility:hidden !important; pointer-events:none !important; display:none !important;}
@keyframes autoHidePreloader {
  to { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
}
.pl-book{width:128px; height:88px; position:relative; perspective:800px;}
.pl-book span{position:absolute; inset:0; background:var(--grad-gold); border-radius:4px; transform-origin:left center; animation:pageflip 1.1s ease-in-out infinite;}
.pl-book span:nth-child(2){animation-delay:.15s; background:var(--orange);}
.pl-book span:nth-child(3){animation-delay:.3s; background:var(--blue);}
@keyframes pageflip{0%,100%{transform:rotateY(0deg);}50%{transform:rotateY(-160deg);}}
.pl-label{position:absolute; margin-top:140px; color:#9fb2d6; font-size:22px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; font-family:var(--ff-head);}

/* ============ SCROLL REVEAL ============ */
.reveal{opacity:1 !important; transform:none !important; visibility:visible !important;}

/* ============ NAVBAR ============ */
header.nav{position:fixed; top:0; left:0; right:0; z-index:1000; padding:16px 0; transition:.4s cubic-bezier(0.4, 0, 0.2, 1);}
header.nav .navbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--blue); backdrop-filter:blur(24px) saturate(180%); -webkit-backdrop-filter:blur(24px) saturate(180%);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:100px; padding:8px 16px; box-shadow:0 12px 32px rgba(0,0,0,0.15); transition:.4s cubic-bezier(0.4, 0, 0.2, 1);
}
header.nav.scrolled{padding:8px 0;}
header.nav.scrolled .navbar{box-shadow:0 16px 40px rgba(0,0,0,0.2); background:var(--blue-dark);}
.logo{display:flex; align-items:center; gap:8px; font-family:var(--ff-head); font-weight:800; font-size:19px; color:#fff; flex-shrink:0;}
.logo .mark{width:38px; height:38px; border-radius:11px; background:var(--grad-brand); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm); flex-shrink:0;}
.logo .mark svg{width:20px; height:20px;}
.logo span em{color:var(--orange); font-style:normal;}
.nav-links{display:flex; align-items:center; gap:2px;}
.nav-links a{font-size:13.5px; font-weight:600; color:#e2e8f0; padding:8px 10px; border-radius:100px; transition:all .3s ease; -webkit-tap-highlight-color: transparent; white-space:nowrap;}
.nav-links a:hover, .nav-links a:focus{background:rgba(255,255,255,0.15); color:#fff; transform:translateY(-2px); box-shadow:0 4px 10px rgba(0,0,0,0.15);}
.nav-links a:active{transform:translateY(1px); background:rgba(0,0,0,0.15); color:var(--gold); box-shadow:inset 0 3px 6px rgba(0,0,0,0.3);}
.nav-actions{display:flex; align-items:center; gap:8px; flex-shrink:0;}
.icon-btn{position:relative; width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:50%; color:#fff; transition:.3s ease; -webkit-tap-highlight-color: transparent;}
.icon-btn:hover, .icon-btn:focus{background:rgba(255,255,255,0.15); transform:translateY(-2px); box-shadow:0 4px 10px rgba(0,0,0,0.15); color:#fff;}
.icon-btn:active{transform:translateY(1px); background:rgba(0,0,0,0.15); color:var(--gold); box-shadow:inset 0 3px 6px rgba(0,0,0,0.3);}
.icon-btn svg{width:20px; height:20px;}
.badge-count{position:absolute; top:0; right:0; background:var(--gold); color:var(--navy); font-size:11px; font-weight:800; width:18px; height:18px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 2px rgba(15, 23, 42, 1);}
.btn-shop{background:var(--gold); color:var(--navy); font-weight:800; font-size:14px; padding:12px 24px; border-radius:100px; box-shadow:0 8px 20px rgba(251, 191, 36, .2); transition:.3s;}
.btn-shop:hover{transform:translateY(-2px) scale(1.02); box-shadow:0 12px 26px rgba(251, 191, 36, .35); background:#fcd34d;}
.burger{display:none; width:42px; height:42px; align-items:center; justify-content:center; border-radius:50%; color:#fff;}
.burger svg{width:22px;height:22px;}

/* Navbar Search Panel */
.nav-search-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(11,18,32,0.1); border-radius: 12px;
  padding: 6px 12px; margin: 0 16px;
  flex: 1; max-width: 280px;
  transition: all 0.3s ease;
}
.nav-search-bar:focus-within {
  background: #fff; border-color: var(--blue); box-shadow: var(--shadow-sm);
}
.nav-search-bar svg {
  width: 16px; height: 16px; color: var(--muted); flex-shrink: 0;
}
.nav-search-bar input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 13.5px; color: var(--ink); min-width: 0;
}
.nav-search-bar button {
  background: var(--grad-brand); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; transition: transform 0.2s;
}
.nav-search-bar button:hover {
  transform: scale(1.05);
}
@media (max-width: 900px) {
  .nav-search-bar { display: none; }
}

/* ============ HERO ============ */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  background:var(--grad-navy); overflow:hidden; padding:150px 0 90px;
}
.hero::before{
  content:''; position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(21,101,192,.35), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255,111,0,.28), transparent 45%),
    radial-gradient(circle at 60% 10%, rgba(255,193,7,.15), transparent 40%);
  animation:bgshift 14s ease-in-out infinite alternate;
}
@keyframes bgshift{0%{opacity:.7;}100%{opacity:1; transform:scale(1.05);}}
.hero-grid{position:relative; z-index:2; display:grid; grid-template-columns:1.05fr .95fr; gap:40px; align-items:center;}
.eyebrow-pill{display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); color:#ffd98c; font-size:12.5px; font-weight:600; padding:8px 16px; border-radius:99px; margin-bottom:22px; backdrop-filter:blur(8px);}
.eyebrow-pill .dot{width:7px; height:7px; border-radius:50%; background:var(--gold); box-shadow:0 0 10px var(--gold); animation:pulse 1.6s infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.4;}}
.hero h1{font-size:clamp(36px,4.6vw,58px); color:#fff; line-height:1.08; margin-bottom:20px;}
.hero h1 .grad{background:linear-gradient(100deg,var(--gold),var(--orange)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.hero p.lead{color:#aebbd6; font-size:17.5px; line-height:1.65; max-width:520px; margin-bottom:32px;}
.search-bar{
  display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.94); backdrop-filter:blur(10px);
  border-radius:16px; padding:8px 8px 8px 20px; box-shadow:var(--shadow-lg); max-width:560px; margin-bottom:30px;
  border:1px solid rgba(255,255,255,.5);
}
.search-bar svg{width:19px; height:19px; color:var(--muted); flex-shrink:0;}
.search-bar input{flex:1; border:none; outline:none; font-size:14.5px; padding:12px 0; background:transparent; color:var(--ink);}
.search-bar button{background:var(--grad-brand); color:#fff; font-weight:700; font-size:14px; padding:13px 22px; border-radius:11px; white-space:nowrap; transition:.3s;}
.search-bar button:hover{transform:scale(1.03);}
.hero-ctas{display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:36px;}
.btn-primary{background:var(--grad-gold); color:var(--navy); font-weight:700; font-size:15px; padding:15px 28px; border-radius:14px; box-shadow:0 10px 28px rgba(255,193,7,.3); transition:.3s; position:relative; overflow:hidden;}
.btn-primary:hover{transform:translateY(-3px); box-shadow:0 16px 34px rgba(255,193,7,.4);}
.btn-outline{border:1.5px solid rgba(255,255,255,.35); color:#fff; font-weight:700; font-size:15px; padding:15px 28px; border-radius:14px; transition:.3s; backdrop-filter:blur(6px);}
.btn-outline:hover{background:rgba(255,255,255,.12); border-color:#fff; transform:translateY(-3px);}
.hero-badges{display:flex; gap:14px; flex-wrap:wrap;}
.mini-badge{display:flex; align-items:center; gap:8px; color:#dbe4f5; font-size:13px; font-weight:600;}
.mini-badge .ic{width:30px; height:30px; border-radius:9px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15); display:flex; align-items:center; justify-content:center;}
.mini-badge svg{width:15px; height:15px; color:var(--gold);}

/* Hero 3D scene */
.hero-scene{position:relative; height:520px; perspective:1400px;}
.book-stack{position:absolute; top:50%; left:50%; transform-style:preserve-3d; transform:translate(-50%,-55%) rotateX(8deg) rotateY(-18deg);}
.stack-book{
  position:absolute; width:190px; height:250px; border-radius:10px 14px 14px 10px;
  box-shadow:0 30px 60px -10px rgba(0,0,0,.5), inset -6px 0 14px rgba(0,0,0,.15);
  display:flex; flex-direction:column; justify-content:flex-end; padding:18px;
  animation:floaty 5s ease-in-out infinite;
}
.stack-book .t{color:#fff; font-family:var(--ff-head); font-weight:700; font-size:13px; line-height:1.3; opacity:.95;}
.stack-book .s{color:rgba(255,255,255,.7); font-size:10.5px; margin-top:4px;}
.stack-book::before{content:''; position:absolute; left:0; top:8%; bottom:8%; width:9px; background:rgba(0,0,0,.18); border-radius:3px;}
.b1{background:linear-gradient(160deg,#1e88e5,#0d47a1); z-index:3; transform:translate3d(-30px,10px,90px) rotateZ(-4deg);}
.b2{background:linear-gradient(160deg,var(--orange),#c94e00); z-index:2; transform:translate3d(30px,-20px,40px) rotateZ(5deg); animation-delay:.4s;}
.b3{background:linear-gradient(160deg,var(--gold),#e08e00); z-index:1; transform:translate3d(0,55px,0px) rotateZ(1deg); animation-delay:.8s;}
@keyframes floaty{0%,100%{translate:0 0;}50%{translate:0 -16px;}}
.open-book{
  position:absolute; width:230px; height:150px; left:calc(50% - 5px); top:56%;
  transform:translate(-50%,-50%) translateZ(130px) rotateX(50deg) rotateZ(-2deg);
  display:flex; z-index:4; filter:drop-shadow(0 24px 30px rgba(0,0,0,.4));
}
.open-book .page{width:50%; height:100%; background:linear-gradient(180deg,#fff,#eef2f8); position:relative; overflow:hidden;}
.open-book .page.l{border-radius:6px 0 0 6px; transform-origin:right; animation:flipL 3.2s ease-in-out infinite;}
.open-book .page.r{border-radius:0 6px 6px 0;}
.open-book .page span{position:absolute; left:10px; right:10px; height:3px; background:rgba(11,18,32,.08); border-radius:2px;}
@keyframes flipL{0%,15%{transform:rotateY(0);}45%,55%{transform:rotateY(-25deg);}85%,100%{transform:rotateY(0);}}
.float-item{position:absolute; width:52px; height:52px; border-radius:14px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center; box-shadow:0 14px 30px rgba(0,0,0,.25); animation:floaty 6s ease-in-out infinite;}
.float-item svg{width:24px; height:24px; color:var(--gold);}
.fi1{top:2%; right:8%; animation-delay:.2s;}
.fi2{bottom:8%; left:0%; animation-delay:1.1s;}
.fi3{top:38%; right:-4%; animation-delay:1.8s;}
.fi4{bottom:34%; right:20%; animation-delay:.7s; width:40px; height:40px;}
.hero-scroll{position:absolute; bottom:26px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:8px; color:#7f8cab; font-size:11px; letter-spacing:.14em; text-transform:uppercase; z-index:2;}
.hero-scroll .line{width:1px; height:34px; background:linear-gradient(#fff,transparent); position:relative; overflow:hidden;}
.hero-scroll .line::after{content:''; position:absolute; top:-100%; left:0; width:100%; height:100%; background:var(--gold); animation:scrolldown 1.8s infinite;}
@keyframes scrolldown{0%{top:-100%;}100%{top:100%;}}

/* ============ TRUST STRIP ============ */
.trust-strip{background:var(--white); border-bottom:1px solid var(--line); padding:22px 0;}
.trust-strip .row{display:flex; justify-content:space-between; flex-wrap:wrap; gap:18px;}
.trust-item{display:flex; align-items:center; gap:10px; color:var(--ink); font-size:13.5px; font-weight:600;}
.trust-item .ic{width:36px; height:36px; border-radius:10px; background:rgba(21,101,192,.08); display:flex; align-items:center; justify-content:center;}
.trust-item svg{width:18px; height:18px; color:var(--blue);}

/* ============ SECTION HEAD ============ */
.section{padding:96px 0;}
.section.grey{background:var(--grey);}
.sec-head{display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:48px; flex-wrap:wrap;}
.sec-head .eyebrow{color:var(--orange); font-weight:700; font-size:13px; letter-spacing:.12em; text-transform:uppercase; margin-bottom:10px; display:block;}
.sec-head h2{font-size:clamp(26px,3vw,38px);}
.sec-head p{color:var(--muted); font-size:15.5px; max-width:460px; margin-top:8px;}
.link-all{display:flex; align-items:center; gap:6px; font-weight:700; color:var(--blue); font-size:14.5px; padding:12px 20px; border:1.5px solid rgba(21,101,192,.25); border-radius:12px; transition:.3s; flex-shrink:0;}
.link-all:hover{background:var(--blue); color:#fff; transform:translateX(3px);}
.link-all svg{width:15px; height:15px;}

/* ============ BENTO CATEGORY GRID ============ */
.bento{display:grid; grid-template-columns:repeat(3,1fr); grid-auto-rows:220px; gap:16px;}
.cat-card{
  position:relative; border-radius:var(--radius); padding:20px; color:#fff; overflow:hidden;
  display:flex; flex-direction:column; justify-content:space-between; cursor:pointer;
  transition:transform .35s cubic-bezier(.16,.8,.3,1), box-shadow .35s;
  box-shadow:var(--shadow-sm);
}
.cat-card:hover{transform:translateY(-6px) scale(1.015); box-shadow:var(--shadow-lg);}
.cat-card::after{content:''; position:absolute; inset:0; background:radial-gradient(circle at 85% 15%, rgba(255,255,255,.28), transparent 55%);}
.cat-card .ic{width:56px; height:56px; border-radius:12px; background:rgba(255,255,255,.18); backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; z-index:1;}
.cat-card .ic svg{width:28px; height:28px;}
.cat-card .name{font-family:var(--ff-head); font-weight:700; font-size:20px; margin-bottom: 4px; z-index:1;}
.cat-card .count{font-size:13px; opacity:.85; font-weight:600; z-index:1;}
.c-big{grid-column:span 2; grid-row:span 2;}
.c-big .name{font-size:19px;}
.c1{background:linear-gradient(150deg,#1e88e5,var(--blue-dark));}
.c2{background:linear-gradient(150deg,var(--orange),#c94e00);}
.c3{background:linear-gradient(150deg,#26a69a,#00695c);}
.c4{background:linear-gradient(150deg,var(--gold),#e08e00); color:var(--navy);}
.c4 .ic{background:rgba(11,18,32,.12);}
.c5{background:linear-gradient(150deg,#8e63e0,#5e35b1);}
.c6{background:linear-gradient(150deg,#ec407a,#ad1457);}
.c7{background:linear-gradient(150deg,#42a5f5,#1565c0);}
.c8{background:linear-gradient(150deg,#455a64,var(--navy));}
.c9{background:linear-gradient(150deg,#ff8a65,#e64a19);}

/* ============ PRODUCT GRID ============ */
.filter-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:38px;}
.chip{padding:9px 18px; border-radius:99px; border:1.5px solid var(--line); font-size:13.5px; font-weight:600; color:var(--muted); background:#fff; transition:.25s;}
.chip.active,.chip:hover{background:var(--navy); color:#fff; border-color:var(--navy);}
.product-grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px;}
.p-card{
  background:rgba(255,255,255,.75); backdrop-filter:blur(14px); border:1px solid var(--gold);
  border-radius:var(--radius); padding:18px; box-shadow:var(--shadow-sm); position:relative;
  transition:box-shadow .4s ease; perspective:1000px;
}
.p-card:hover{box-shadow:var(--shadow-lg);}
.p-cover-wrap{perspective:900px; margin-bottom:16px;}
.p-cover{
  position:relative; aspect-ratio:3/4; height:auto; border-radius:14px; display:flex; align-items:flex-end; padding:16px;
  transition:transform .45s cubic-bezier(.16,.8,.3,1); transform-style:preserve-3d; box-shadow:0 16px 26px -8px rgba(0,0,0,.25);
  overflow:hidden;
}
.p-card:hover .p-cover{transform:rotateY(-14deg) rotateX(6deg) scale(1.03);}
.p-cover::before{content:''; position:absolute; inset:0; background:linear-gradient(120deg,rgba(255,255,255,.35),transparent 40%);}
.p-cover::after{content:''; position:absolute; left:0; top:6%; bottom:6%; width:8px; background:rgba(0,0,0,.2);}
.p-cover .p-title{color:#fff; font-family:var(--ff-head); font-weight:700; font-size:13.5px; line-height:1.3; position:relative; z-index:1;}
.badges-row{position:absolute; top:12px; left:12px; display:flex; flex-direction:column; gap:6px; z-index:2;}
.pill{font-size:10px; font-weight:800; padding:4px 9px; border-radius:99px; letter-spacing:.03em; text-transform:uppercase; box-shadow:0 4px 10px rgba(0,0,0,.15);}
.pill.best{background:var(--gold); color:var(--navy);}
.pill.new{background:var(--blue); color:#fff;}
.pill.off{background:var(--orange); color:#fff;}
.quick-actions{position:absolute; top:12px; right:12px; display:flex; flex-direction:column; gap:8px; z-index:2;}
.qa-btn{width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; box-shadow:0 4px 10px rgba(0,0,0,.15); transition:.25s;}
.qa-btn:hover{background:var(--gold); transform:scale(1.1);}
.qa-btn svg{width:15px; height:15px; color:var(--navy);}
.p-meta{font-size:11.5px; color:var(--muted); font-weight:600; margin-bottom:6px; display:flex; gap:6px; flex-wrap:wrap;}
.p-meta span{background:rgba(21,101,192,.08); color:var(--blue); padding:2px 8px; border-radius:6px;}
.p-name{font-family:var(--ff-head); font-weight:700; font-size:15px; margin-bottom:4px; line-height:1.35;}
.p-author{font-size:12.5px; color:var(--muted); margin-bottom:8px;}
.p-rating{display:flex; align-items:center; gap:6px; margin-bottom:10px;}
.stars{color:var(--gold); font-size:13px; letter-spacing:1px;}
.p-rating .rv{font-size:11.5px; color:var(--muted); font-weight:600;}
.p-stock{font-size:11px; font-weight:700; color:#2e7d32; margin-bottom:10px; display:flex; align-items:center; gap:5px;}
.p-stock .d{width:6px; height:6px; border-radius:50%; background:#2e7d32;}
.p-price-row{display:flex; align-items:center; justify-content:space-between; margin-bottom:14px;}
.p-price{display:flex; align-items:baseline; gap:8px;}
.p-price .now{font-family:var(--ff-head); font-weight:800; font-size:19px; color:var(--navy);}
.p-price .old{font-size:13px; color:var(--muted); text-decoration:line-through;}
.p-price .save{font-size:11px; color:var(--orange); font-weight:700;}
.p-actions{display:flex; gap:8px;}
.btn-cart{flex:1; background:var(--navy); color:#fff; font-weight:700; font-size:13px; padding:12px; border-radius:11px; display:flex; align-items:center; justify-content:center; gap:7px; transition:.3s; position:relative; overflow:hidden;}
.btn-cart:hover{background:var(--blue);}
.btn-cart svg{width:15px; height:15px;}
.btn-buy{padding:12px 14px; border-radius:11px; background:var(--grad-gold); color:var(--navy); font-weight:700; font-size:13px; transition:.3s;}
.btn-buy:hover{filter:brightness(1.06); transform:translateY(-1px);}

/* toast */
.toast{position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(140%); background:var(--navy); color:#fff; padding:14px 24px; border-radius:12px; font-size:13.5px; font-weight:600; display:flex; align-items:center; gap:10px; box-shadow:var(--shadow-lg); z-index:3000; transition:transform .45s cubic-bezier(.16,.8,.3,1);}
.toast.show{transform:translateX(-50%) translateY(0);}
.toast svg{width:17px; height:17px; color:var(--gold);}

/* ============ OFFERS BANNER ============ */
.offer-wrap{display:grid; grid-template-columns:1.3fr 1fr; gap:24px;}
.offer-main{
  position:relative; border-radius:24px; background:linear-gradient(120deg,var(--orange),#ff9800 60%,var(--gold)); padding:44px; overflow:hidden;
  min-height:280px; display:flex; flex-direction:column; justify-content:center;
}
.offer-main::before{content:''; position:absolute; right:-40px; bottom:-40px; width:220px; height:220px; border-radius:50%; background:rgba(255,255,255,.15);}
.offer-main::after{content:''; position:absolute; right:60px; top:-30px; width:120px; height:120px; border-radius:34px; background:rgba(255,255,255,.12); transform:rotate(20deg);}
.offer-main h3{color:#fff; font-size:clamp(24px,3vw,34px); max-width:420px; position:relative; z-index:1;}
.offer-main p{color:rgba(255,255,255,.9); margin:12px 0 22px; max-width:380px; position:relative; z-index:1;}
.countdown{display:flex; gap:12px; position:relative; z-index:1; margin-bottom:24px;}
.countdown .cell{background:rgba(255,255,255,.2); backdrop-filter:blur(6px); border-radius:12px; padding:10px 14px; text-align:center; min-width:64px;}
.countdown .cell b{display:block; font-family:var(--ff-head); font-size:22px; color:#fff;}
.countdown .cell span{font-size:10px; color:rgba(255,255,255,.85); text-transform:uppercase; letter-spacing:.08em;}
.offer-side{display:flex; flex-direction:column; gap:24px;}
.offer-card{flex:1; border-radius:22px; padding:30px; color:#fff; display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden;}
.offer-card.a{background:linear-gradient(135deg,var(--blue),var(--blue-dark));}
.offer-card.b{background:linear-gradient(135deg,#2e7d32,#1b5e20);}
.offer-card h4{color:#fff; font-size:19px; margin-bottom:8px;}
.offer-card p{font-size:13px; color:rgba(255,255,255,.85); margin-bottom:14px;}
.offer-card a.cta{font-size:13px; font-weight:700; display:inline-flex; align-items:center; gap:6px; color:var(--gold);}

/* ============ PRODUCT DETAIL PREVIEW (in modal) ============ */
.modal-overlay{position:fixed; inset:0; background:rgba(11,18,32,.6); backdrop-filter:blur(6px); z-index:4000; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:.35s ease; padding:24px;}
.modal-overlay.show{opacity:1; visibility:visible;}
.qv-modal{background:#fff; border-radius:24px; max-width:840px; width:100%; display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); overflow:hidden; box-shadow:var(--shadow-lg); transform:scale(.92) translateY(20px); transition:.4s cubic-bezier(.16,.8,.3,1); max-height:88vh;}
.modal-overlay.show .qv-modal{transform:scale(1) translateY(0);}
.qv-visual{background:var(--grad-navy); display:flex; align-items:center; justify-content:center; padding:40px; position:relative; perspective:900px;}
.qv-book{width:200px; aspect-ratio:3/4; height:auto; border-radius:8px 14px 14px 8px; display:flex; align-items:flex-end; padding:20px; box-shadow:0 30px 60px rgba(0,0,0,.5); animation:qvspin 6s ease-in-out infinite;}
@keyframes qvspin{0%,100%{transform:rotateY(-16deg);}50%{transform:rotateY(16deg);}}
.qv-book .t{color:#fff; font-family:var(--ff-head); font-weight:700; font-size:16px; z-index:1;}
.qv-info{padding:36px; overflow-y:auto;}
.qv-info h3{font-size:22px; margin-bottom:6px;}
.qv-info .p-author{margin-bottom:14px;}
.qv-detail-list{display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:10px 18px; margin:18px 0; font-size:12.5px;}
.qv-detail-list div{color:var(--muted);}
.qv-detail-list b{display:block; color:var(--ink); font-size:13.5px; margin-top:2px;}
.modal-close{position:absolute; top:16px; right:16px; width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.9); display:flex; align-items:center; justify-content:center; z-index:5; box-shadow:var(--shadow-sm); transition:.25s;}
.modal-close:hover{background:var(--orange); color:#fff; transform:rotate(90deg);}
.modal-close svg{width:16px; height:16px;}

/* ============ TRUST / WHY US ============ */
.why-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.why-card{background:#fff; border-radius:var(--radius); padding:30px 24px; text-align:center; box-shadow:var(--shadow-sm); transition:.35s;}
.why-card:hover{transform:translateY(-8px); box-shadow:var(--shadow-lg);}
.why-card .ic{width:58px; height:58px; border-radius:16px; background:var(--grad-brand); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; box-shadow:var(--shadow-sm);}
.why-card .ic svg{width:26px; height:26px; color:#fff;}
.why-card h4{font-size:16px; margin-bottom:8px;}
.why-card p{font-size:13px; color:var(--muted); line-height:1.6;}
.stat-strip{display:flex; justify-content:space-around; margin-top:56px; flex-wrap:wrap; gap:30px;}
.stat{text-align:center;}
.stat b{font-family:var(--ff-head); font-size:38px; color:var(--navy); display:block;}
.stat b .plus{color:var(--orange);}
.stat span{font-size:13px; color:var(--muted); font-weight:600;}

/* ============ NEWSLETTER ============ */
.newsletter{background:var(--grad-navy); border-radius:28px; margin:0 auto; padding:56px; text-align:center; position:relative; overflow:hidden;}
.newsletter::before{content:''; position:absolute; inset:0; background:radial-gradient(circle at 20% 30%, rgba(21,101,192,.35), transparent 45%), radial-gradient(circle at 80% 70%, rgba(255,111,0,.3), transparent 45%);}
.newsletter h3{color:#fff; font-size:clamp(22px,3vw,30px); position:relative; z-index:1;}
.newsletter p{color:#aebbd6; margin:10px 0 26px; position:relative; z-index:1;}
.nl-form{display:flex; gap:10px; max-width:440px; margin:0 auto; position:relative; z-index:1;}
.nl-form input{flex:1; padding:15px 20px; border-radius:13px; border:none; font-size:14px; outline:none;}
.nl-form button{background:var(--grad-gold); color:var(--navy); font-weight:700; padding:15px 26px; border-radius:13px; transition:.3s;}
.nl-form button:hover{transform:translateY(-2px);}

/* ============ FOOTER ============ */
footer{background:var(--blue); color:#e2e8f0; padding-top:80px;}
.foot-grid{display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; padding-bottom:50px; border-bottom:1px solid rgba(255,255,255,0.1);}
.foot-grid h5{color:#fff; font-size:14px; margin-bottom:18px; letter-spacing:.03em;}
.foot-grid ul li{margin-bottom:11px;}
.foot-grid ul li a{font-size:13.5px; transition:.25s;}
.foot-grid ul li a:hover{color:#fff; padding-left:3px;}
.foot-about p{font-size:13.5px; line-height:1.7; margin:16px 0 20px; max-width:280px;}
.soc-row{display:flex; gap:10px;}
.soc-row a{width:38px; height:38px; border-radius:11px; background:rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; transition:.3s;}
.soc-row a:hover{background:rgba(255,255,255,0.2); transform:translateY(-3px); color:#fff;}
.soc-row svg{width:16px; height:16px; color:#e2e8f0;}
.soc-row a:hover svg{color:#fff;}
.foot-bottom{display:flex; justify-content:space-between; align-items:center; padding:26px 0; flex-wrap:wrap; gap:14px; font-size:12.5px;}
.pay-icons{display:flex; gap:8px;}
.pay-icons span{background:rgba(255,255,255,0.1); padding:6px 12px; border-radius:8px; font-size:11px; font-weight:700; color:#fff;}

/* ============ CART DRAWER ============ */
.cart-overlay{position:fixed; inset:0; background:rgba(11,18,32,.55); backdrop-filter:blur(4px); z-index:3500; opacity:0; visibility:hidden; transition:.4s;}
.cart-overlay.show{opacity:1; visibility:visible;}
.cart-drawer{position:fixed; top:0; right:0; height:100%; width:420px; max-width:92vw; background:#fff; z-index:3600; transform:translateX(100%); transition:.45s cubic-bezier(.16,.8,.3,1); display:flex; flex-direction:column; box-shadow:-20px 0 50px rgba(0,0,0,.2);}
.cart-drawer.show{transform:translateX(0);}
.cart-head{display:flex; align-items:center; justify-content:space-between; padding:24px; border-bottom:1px solid var(--line);}
.cart-head h3{font-size:18px;}
.cart-items{flex:1; overflow-y:auto; padding:18px 24px;}
.cart-item{display:flex; gap:14px; padding:16px 0; border-bottom:1px solid var(--line);}
.ci-cover{width:56px; height:74px; border-radius:8px; flex-shrink:0; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 14px rgba(0,0,0,.15);}
.ci-cover svg{width:22px; height:22px; color:rgba(255,255,255,.85);}
.ci-info{flex:1;}
.ci-info .n{font-weight:700; font-size:13.5px; margin-bottom:3px;}
.ci-info .m{font-size:11.5px; color:var(--muted); margin-bottom:8px;}
.ci-qty{display:flex; align-items:center; gap:10px;}
.ci-qty button{width:24px; height:24px; border-radius:7px; background:var(--grey); font-weight:700; display:flex; align-items:center; justify-content:center;}
.ci-price{text-align:right; display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between;}
.ci-price .p{font-weight:700; font-size:13.5px;}
.ci-price button{color:var(--orange); font-size:11px; font-weight:700;}
.cart-empty{text-align:center; padding:60px 20px; color:var(--muted); display:none;}
.cart-empty svg{width:50px; height:50px; margin:0 auto 14px; opacity:.4;}
.cart-foot{padding:22px 24px; border-top:1px solid var(--line);}
.coupon-row{display:flex; gap:8px; margin-bottom:16px;}
.coupon-row input{flex:1; padding:11px 14px; border-radius:10px; border:1.5px solid var(--line); font-size:13px; outline:none;}
.coupon-row button{padding:11px 16px; border-radius:10px; background:var(--navy); color:#fff; font-size:12.5px; font-weight:700;}
.sum-row{display:flex; justify-content:space-between; font-size:13.5px; margin-bottom:9px; color:var(--muted);}
.sum-row.total{color:var(--navy); font-weight:800; font-size:16.5px; margin-top:12px; padding-top:12px; border-top:1px dashed var(--line);}
.btn-checkout{width:100%; margin-top:16px; background:var(--grad-brand); color:#fff; font-weight:700; padding:16px; border-radius:14px; font-size:14.5px; box-shadow:0 10px 24px rgba(21,101,192,.35); transition:.3s;}
.btn-checkout:hover{transform:translateY(-2px);}

/* ============ RESPONSIVE ============ */
@media (max-width:1080px){
  .nav-links{display:none;}
  .burger{display:flex;}
  .hero-grid{grid-template-columns:1fr;}
  .hero-scene{height:400px; order:-1;}
  .product-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .why-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .offer-wrap{grid-template-columns:1fr;}
  .bento{grid-template-columns:repeat(4,1fr);}
  .c-big{grid-column:span 2; grid-row:span 1;}
  .foot-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);}
}
@media (max-width:760px){
  .product-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:14px;}
  .bento{grid-template-columns:repeat(2, minmax(0, 1fr)); grid-auto-rows:120px;}
  .qv-modal{grid-template-columns:1fr;}
  .qv-visual{padding:26px;}
  .stat-strip{gap:22px;}
  .stat b{font-size:28px;}
  .why-grid{grid-template-columns:1fr;}
  .section{padding:64px 0;}
  .foot-grid{grid-template-columns:1fr;}
  .newsletter{padding:36px 22px;}
}

/* ============ PAGE HERO (subpages) ============ */
.page-hero{position:relative; background:var(--grad-navy); overflow:hidden; padding:150px 0 70px;}
.page-hero::before{content:''; position:absolute; inset:0; background-image:
    radial-gradient(circle at 15% 20%, rgba(21,101,192,.35), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255,111,0,.28), transparent 45%);}
.page-hero .container{position:relative; z-index:1;}
.breadcrumb{display:flex; align-items:center; gap:8px; color:#9fb2d6; font-size:13px; font-weight:600; margin-bottom:18px;}
.breadcrumb a{color:#dbe4f5; transition:.2s;}
.breadcrumb a:hover{color:var(--gold);}
.breadcrumb .sep{opacity:.5;}
.breadcrumb .cur{color:var(--gold);}
.page-hero h1{color:#fff; font-size:clamp(30px,4vw,46px); line-height:1.1; margin-bottom:14px;}
.page-hero h1 .grad{background:linear-gradient(100deg,var(--gold),var(--orange)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.page-hero p.lead{color:#aebbd6; font-size:16px; max-width:560px; line-height:1.6;}
.page-hero-stats{display:flex; gap:28px; margin-top:28px; flex-wrap:wrap;}
.page-hero-stats .st b{color:#fff; font-family:var(--ff-head); font-size:24px; display:block;}
.page-hero-stats .st span{color:#9fb2d6; font-size:12px; font-weight:600;}

/* ============ SHOP LAYOUT (books.html) ============ */
.shop-layout{display:grid; grid-template-columns:270px 1fr; gap:32px; align-items:start;}
.filter-card{background:#fff; border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-sm); position:sticky; top:100px;}
.filter-card h4{font-size:14px; margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid var(--line);}
.filter-group{margin-bottom:22px;}
.filter-group:last-child{margin-bottom:0;}
.filter-group .fg-title{font-size:12.5px; font-weight:700; color:var(--navy); margin-bottom:10px; display:flex; justify-content:space-between; align-items:center;}
.filter-check{display:flex; align-items:center; gap:9px; font-size:13px; color:var(--muted); padding:6px 0; cursor:pointer; font-weight:500;}
.filter-check input{width:16px; height:16px; accent-color:var(--blue);}
.filter-check .n{margin-left:auto; font-size:11px; color:#a3adc2;}
.price-range{display:flex; align-items:center; gap:8px;}
.price-range input[type=range]{flex:1; accent-color:var(--orange);}
.price-range-vals{display:flex; justify-content:space-between; font-size:11.5px; color:var(--muted); font-weight:600; margin-top:6px;}
.btn-clear-filter{width:100%; margin-top:8px; padding:11px; border-radius:10px; border:1.5px solid var(--line); font-size:12.5px; font-weight:700; color:var(--muted); transition:.25s;}
.btn-clear-filter:hover{border-color:var(--orange); color:var(--orange);}
.shop-toolbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; flex-wrap:wrap; gap:14px;}
.results-count{font-size:13.5px; color:var(--muted); font-weight:600;}
.results-count b{color:var(--navy);}
.sort-select{padding:11px 16px; border-radius:11px; border:1.5px solid var(--line); background:#fff; font-size:13px; font-weight:600; color:var(--ink); outline:none;}
.shop-product-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px;}
.pagination{display:flex; justify-content:center; align-items:center; gap:8px; margin-top:48px;}
.pagination button{width:40px; height:40px; border-radius:11px; border:1.5px solid var(--line); background:#fff; font-weight:700; font-size:13.5px; color:var(--ink); transition:.25s;}
.pagination button.active,.pagination button:hover{background:var(--navy); color:#fff; border-color:var(--navy);}
.pagination .nav-arrow{width:40px; display:flex; align-items:center; justify-content:center;}
.pagination .nav-arrow svg{width:15px; height:15px;}
.mobile-filter-btn{display:none; align-items:center; gap:8px; background:#fff; border:1.5px solid var(--line); padding:11px 18px; border-radius:11px; font-weight:700; font-size:13px;}
.mobile-filter-btn svg{width:16px; height:16px;}

/* ============ EBOOK CARDS ============ */
.ebook-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.ebook-card{background:#fff; border-radius:var(--radius); padding:18px; box-shadow:var(--shadow-sm); transition:.35s;}
.ebook-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-lg);}
.ebook-cover{position:relative; aspect-ratio:3/4; height:auto; border-radius:14px; display:flex; align-items:flex-end; padding:16px; margin-bottom:14px; overflow:hidden; box-shadow:0 16px 26px -8px rgba(0,0,0,.25);}
.ebook-cover::before{content:''; position:absolute; inset:0; background:linear-gradient(120deg,rgba(255,255,255,.35),transparent 40%);}
.ebook-cover .fmt-pill{position:absolute; top:12px; right:12px; background:rgba(255,255,255,.92); color:var(--navy); font-size:10px; font-weight:800; padding:4px 9px; border-radius:99px; z-index:1;}
.ebook-cover .p-title{color:#fff; font-family:var(--ff-head); font-weight:700; font-size:13px; line-height:1.3; position:relative; z-index:1;}
.ebook-meta-row{display:flex; gap:10px; font-size:11px; color:var(--muted); font-weight:600; margin-bottom:8px;}
.ebook-meta-row span{display:flex; align-items:center; gap:4px;}
.ebook-meta-row svg{width:12px; height:12px;}
.instant-badge{display:inline-flex; align-items:center; gap:5px; background:rgba(46,125,50,.1); color:#2e7d32; font-size:10.5px; font-weight:700; padding:4px 9px; border-radius:99px; margin-bottom:10px;}
.instant-badge svg{width:11px; height:11px;}
.format-strip{display:flex; gap:14px; margin:56px 0; justify-content:center; flex-wrap:wrap;}
.format-item{display:flex; align-items:center; gap:10px; background:#fff; padding:14px 22px; border-radius:14px; box-shadow:var(--shadow-sm); font-weight:700; font-size:13.5px;}
.format-item .ic{width:34px; height:34px; border-radius:10px; background:var(--grad-brand); display:flex; align-items:center; justify-content:center;}
.format-item .ic svg{width:17px; height:17px; color:#fff;}
.reader-cta{display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:0; border-radius:28px; overflow:hidden; box-shadow:var(--shadow-lg);}
.reader-cta .txt{background:var(--grad-navy); color:#fff; padding:50px; display:flex; flex-direction:column; justify-content:center;}
.reader-cta .txt h3{color:#fff; font-size:clamp(22px,3vw,30px); margin-bottom:14px;}
.reader-cta .txt p{color:#aebbd6; margin-bottom:24px; line-height:1.65;}
.reader-cta .visual{background:linear-gradient(150deg,var(--gold),var(--orange)); display:flex; align-items:center; justify-content:center; padding:40px;}
.reader-cta .visual svg{width:120px; height:120px; color:rgba(255,255,255,.9);}

/* ============ OFFERS PAGE ============ */
.deal-hero-banner{border-radius:28px; background:linear-gradient(120deg,var(--orange),#ff9800 55%,var(--gold)); padding:56px; position:relative; overflow:hidden; text-align:center;}
.deal-hero-banner::before{content:''; position:absolute; left:-60px; top:-60px; width:260px; height:260px; border-radius:50%; background:rgba(255,255,255,.15);}
.deal-hero-banner::after{content:''; position:absolute; right:-40px; bottom:-60px; width:220px; height:220px; border-radius:50%; background:rgba(255,255,255,.12);}
.deal-hero-banner h2{color:#fff; font-size:clamp(26px,4vw,42px); position:relative; z-index:1; max-width:640px; margin:0 auto 14px;}
.deal-hero-banner p{color:rgba(255,255,255,.92); position:relative; z-index:1; max-width:520px; margin:0 auto 26px;}
.coupon-strip{display:flex; gap:16px; flex-wrap:wrap; justify-content:center; margin-top:56px;}
.coupon-tag{background:#fff; border:2px dashed rgba(11,18,32,.15); border-radius:16px; padding:20px 26px; display:flex; align-items:center; gap:16px; min-width:250px; box-shadow:var(--shadow-sm);}
.coupon-tag .code{font-family:var(--ff-head); font-weight:800; font-size:18px; color:var(--blue); background:rgba(21,101,192,.08); padding:8px 14px; border-radius:10px;}
.coupon-tag .desc{font-size:12.5px; color:var(--muted); font-weight:600; line-height:1.4;}
.coupon-tag .desc b{display:block; color:var(--navy); font-size:13.5px;}
.deal-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.deal-card{border-radius:var(--radius); padding:28px; color:#fff; position:relative; overflow:hidden; min-height:200px; display:flex; flex-direction:column; justify-content:space-between; transition:.35s; box-shadow:var(--shadow-sm);}
.deal-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-lg);}
.deal-card::after{content:''; position:absolute; inset:0; background:radial-gradient(circle at 85% 15%, rgba(255,255,255,.25), transparent 55%);}
.deal-card .tag{position:relative; z-index:1; align-self:flex-start; background:rgba(255,255,255,.2); font-size:11px; font-weight:800; padding:5px 12px; border-radius:99px; text-transform:uppercase; letter-spacing:.04em;}
.deal-card h4{color:#fff; font-size:20px; position:relative; z-index:1; margin:14px 0 6px;}
.deal-card p{font-size:13px; color:rgba(255,255,255,.88); position:relative; z-index:1; margin-bottom:14px;}
.deal-card a{position:relative; z-index:1; font-weight:700; font-size:13px; color:var(--gold); display:inline-flex; align-items:center; gap:6px;}
.d1{background:linear-gradient(150deg,#1e88e5,var(--blue-dark));}
.d2{background:linear-gradient(150deg,var(--orange),#c94e00);}
.d3{background:linear-gradient(150deg,#26a69a,#00695c);}
.d4{background:linear-gradient(150deg,#8e63e0,#5e35b1);}
.d5{background:linear-gradient(150deg,#ec407a,#ad1457);}
.d6{background:linear-gradient(150deg,#455a64,var(--navy));}
.combo-strip{display:flex; align-items:center; gap:18px; background:#fff; border-radius:20px; padding:22px 28px; box-shadow:var(--shadow-sm); margin-top:18px;}
.combo-strip .num{width:44px; height:44px; border-radius:12px; background:var(--grad-gold); color:var(--navy); font-family:var(--ff-head); font-weight:800; font-size:18px; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.combo-strip p{font-size:13.5px; color:var(--ink); font-weight:600; flex:1;}
.combo-strip p span{color:var(--muted); font-weight:500; display:block; font-size:12.5px; margin-top:2px;}

/* ============ WHY US PAGE ============ */
.mission-split{display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:56px; align-items:center;}
.mission-split .visual{position:relative; border-radius:28px; overflow:hidden; min-height:380px; background:var(--grad-navy); display:flex; align-items:center; justify-content:center;}
.mission-split .visual svg{width:180px; aspect-ratio:3/4; height:auto; color:rgba(255,193,7,.9);}
.mission-split h2{font-size:clamp(26px,3.4vw,36px); margin-bottom:16px;}
.mission-split p{color:var(--muted); font-size:15px; line-height:1.7; margin-bottom:16px;}
.timeline{position:relative; max-width:760px; margin:0 auto; padding-left:4px;}
.timeline::before{content:''; position:absolute; left:20px; top:6px; bottom:6px; width:2px; background:var(--line);}
.tl-item{position:relative; padding:0 0 40px 60px;}
.tl-item:last-child{padding-bottom:0;}
.tl-item .dot{position:absolute; left:9px; top:2px; width:24px; height:24px; border-radius:50%; background:var(--grad-brand); display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 6px var(--grey);}
.tl-item .dot::after{content:''; width:8px; height:8px; border-radius:50%; background:#fff;}
.tl-item .yr{color:var(--orange); font-weight:800; font-size:13px; font-family:var(--ff-head); margin-bottom:4px;}
.tl-item h4{font-size:16.5px; margin-bottom:6px;}
.tl-item p{color:var(--muted); font-size:13.5px; line-height:1.6; max-width:500px;}
.testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.testi-card{background:#fff; border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm); transition:.3s;}
.testi-card:hover{transform:translateY(-5px); box-shadow:var(--shadow-md);}
.testi-card .stars{color:var(--gold); font-size:14px; letter-spacing:1px; margin-bottom:12px; display:block;}
.testi-card p{font-size:13.5px; color:var(--ink); line-height:1.65; margin-bottom:18px;}
.testi-who{display:flex; align-items:center; gap:12px;}
.testi-who .av{width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-family:var(--ff-head); font-size:15px; flex-shrink:0;}
.testi-who .n{font-weight:700; font-size:13.5px;}
.testi-who .r{font-size:11.5px; color:var(--muted);}
.team-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.team-card{text-align:center;}
.team-card .ph{width:100%; aspect-ratio:1; border-radius:20px; margin-bottom:14px; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm);}
.team-card .ph svg{width:46%; height:46%; color:rgba(255,255,255,.85);}
.team-card h4{font-size:15px; margin-bottom:3px;}
.team-card span{font-size:12px; color:var(--muted); font-weight:600;}
.logo-strip{display:flex; justify-content:space-around; align-items:center; flex-wrap:wrap; gap:30px; margin-top:20px; opacity:.75;}
.logo-strip span{font-family:var(--ff-head); font-weight:800; font-size:17px; color:var(--muted);}

/* ============ CONTACT PAGE ============ */
.contact-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:32px; align-items:start;}
.info-card{background:#fff; border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm); display:flex; gap:16px; align-items:flex-start; margin-bottom:18px;}
.info-card .ic{width:48px; height:48px; border-radius:13px; background:var(--grad-brand); display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:var(--shadow-sm);}
.info-card .ic svg{width:22px; height:22px; color:#fff;}
.info-card h4{font-size:15px; margin-bottom:5px;}
.info-card p{font-size:13px; color:var(--muted); line-height:1.55;}
.social-block{background:var(--grad-navy); border-radius:var(--radius); padding:26px; text-align:center;}
.social-block h4{color:#fff; font-size:15px; margin-bottom:14px;}
.contact-form-card{background:#fff; border-radius:var(--radius); padding:36px; box-shadow:var(--shadow-sm);}
.contact-form-card h3{font-size:20px; margin-bottom:6px;}
.contact-form-card>p{color:var(--muted); font-size:13.5px; margin-bottom:26px;}
.form-row{display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; margin-bottom:16px;}
.form-field{display:flex; flex-direction:column; gap:7px;}
.form-field.full{grid-column:1/-1;}
.form-field label{font-size:12.5px; font-weight:700; color:var(--navy);}
.form-field input,.form-field select,.form-field textarea{padding:13px 16px; border-radius:12px; border:1.5px solid var(--line); font-size:13.5px; outline:none; color:var(--ink); transition:.25s; font-family:inherit;}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:var(--blue); box-shadow:0 0 0 3px rgba(21,101,192,.1);}
.form-field textarea{resize:vertical; min-height:120px;}
.btn-submit{background:var(--grad-brand); color:#fff; font-weight:700; font-size:14.5px; padding:15px 28px; border-radius:13px; box-shadow:0 10px 24px rgba(21,101,192,.35); transition:.3s; width:100%; margin-top:6px;}
.btn-submit:hover{transform:translateY(-2px);}
.map-wrap{border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); height:340px; position:relative; background:linear-gradient(150deg,#dfe7f3,#c9d6e8);}
.map-wrap .pin{position:absolute; top:50%; left:50%; transform:translate(-50%,-100%); width:44px; height:44px; border-radius:50% 50% 50% 0; background:var(--orange); rotate:-45deg; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 20px rgba(0,0,0,.25);}
.map-wrap .pin svg{rotate:45deg; width:20px; height:20px; color:#fff;}
.map-wrap .grid-lines{position:absolute; inset:0; background-image:linear-gradient(rgba(11,18,32,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(11,18,32,.06) 1px, transparent 1px); background-size:36px 36px;}
.faq-list{max-width:820px; margin:0 auto;}
.faq-item{background:#fff; border-radius:16px; box-shadow:var(--shadow-sm); margin-bottom:12px; overflow:hidden;}
.faq-q{display:flex; justify-content:space-between; align-items:center; padding:20px 24px; cursor:pointer; font-weight:700; font-size:14.5px; color:var(--navy);}
.faq-q svg{width:18px; height:18px; color:var(--blue); transition:.3s; flex-shrink:0;}
.faq-item.open .faq-q svg{transform:rotate(180deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .35s ease;}
.faq-item.open .faq-a{max-height:200px;}
.faq-a p{padding:0 24px 20px; font-size:13.5px; color:var(--muted); line-height:1.65;}

/* ============ RESPONSIVE ADD-ONS ============ */
@media (max-width:1080px){
  .shop-layout{grid-template-columns:1fr;}
  .filter-card{position:static; display:none;}
  .filter-card.show{display:block;}
  .mobile-filter-btn{display:flex;}
  .shop-product-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .ebook-grid{grid-template-columns:repeat(3,1fr);}
  .deal-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .mission-split{grid-template-columns:1fr;}
  .testi-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);}
  .team-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);}
  .contact-grid{grid-template-columns:1fr;}
  .reader-cta{grid-template-columns:1fr;}
}
@media (max-width:760px){
  .shop-product-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:14px;}
  .ebook-grid{grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);}
  .deal-grid{grid-template-columns:1fr;}
  .testi-grid{grid-template-columns:1fr;}
  .team-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .coupon-tag{min-width:0; width:100%;}
  .page-hero{padding:130px 0 50px;}
}
/* ============ CHECKOUT & FORMS ============ */
.checkout-empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.checkout-empty svg { width: 64px; height: 64px; color: var(--muted); margin-bottom: 20px; }
.checkout-empty h3 { margin-bottom: 10px; }
.checkout-empty p { color: var(--muted); margin-bottom: 24px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } }

.checkout-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.checkout-card h3 { display: flex; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 6px; }
.checkout-card h3 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.checkout-card .sub { color: var(--muted); margin-left: 40px; margin-bottom: 24px; font-size: 14.5px; }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 14.5px; font-family: inherit; color: var(--ink); outline: none; transition: .25s; background: var(--grey); }
.form-field input:focus, .form-field select:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(21,101,192,.1); }

.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-left: 36px; }
.pay-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; transition: .3s; position: relative; }
.pay-opt input { display: none; }
.pay-opt .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--grey); display: flex; align-items: center; justify-content: center; color: var(--ink); transition: .3s; }
.pay-opt .lbl { display: flex; flex-direction: column; gap: 2px; }
.pay-opt .lbl b { font-size: 14.5px; color: var(--ink); }
.pay-opt .lbl span { font-size: 12.5px; color: var(--muted); }
.pay-opt .tick { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(-50%) scale(0.5); transition: .3s; }
.pay-opt .tick svg { width: 14px; height: 14px; }
.pay-opt.checked { border-color: var(--blue); background: rgba(21,101,192,.03); }
.pay-opt.checked .ic { background: var(--blue); color: #fff; }
.pay-opt.checked .tick { opacity: 1; transform: translateY(-50%) scale(1); }

.order-summary { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: sticky; top: 100px; }
.order-summary h3 { margin-bottom: 24px; font-size: 19px; }

.oi-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; max-height: 300px; overflow-y: auto; padding-right: 10px; }
.oi-item { display: flex; align-items: center; gap: 14px; }
.oi-cover { width: 50px; height: 65px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.15); flex-shrink: 0; }
.oi-info { flex: 1; }
.oi-info .n { font-size: 13.5px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oi-info .m { font-size: 12px; color: var(--muted); }
.oi-price { font-weight: 700; font-size: 14px; color: var(--blue); }

/* ============ SUCCESS MODAL ============ */
.success-overlay { position: fixed; inset: 0; background: rgba(11,18,32,.7); backdrop-filter: blur(8px); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: .4s; }
.success-overlay.show { opacity: 1; visibility: visible; }
.success-modal { background: #fff; width: 100%; max-width: 440px; border-radius: 24px; padding: 40px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2); transform: scale(0.9); transition: .4s cubic-bezier(.16,.8,.3,1); }
.success-overlay.show .success-modal { transform: scale(1); }
.success-tick { width: 64px; height: 64px; border-radius: 50%; background: #e8f5e9; color: #2e7d32; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-tick svg { width: 32px; height: 32px; }
.success-modal h3 { font-size: 22px; margin-bottom: 12px; }
.success-modal p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.success-modal .oid { display: inline-block; padding: 8px 16px; border-radius: 8px; background: var(--grey); font-family: monospace; font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 30px; border: 1.5px dashed var(--line); }
.success-actions { display: flex; flex-direction: column; gap: 12px; }
.success-actions a { padding: 14px; border-radius: 12px; font-weight: 700; font-size: 14.5px; transition: .3s; display:block; }
.success-actions a:hover { transform: translateY(-2px); }

/* ============ MOBILE NAV & ADDITIONAL RESPONSIVE ============ */
.mobile-nav-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; opacity: 0; visibility: hidden; transition: 0.35s ease;
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav-overlay a { font-size: 24px; font-weight: 700; color: var(--navy); transition: 0.2s; }
.mobile-nav-overlay a:hover { color: var(--blue); }
.mobile-nav-overlay .close-btn { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--grey); display: flex; align-items: center; justify-content: center; color: var(--navy); }

@media (max-width: 500px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 32px; }
  .hero-scene { height: 320px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .c-big { grid-column: span 1; }
  .product-grid, .ebook-grid, .shop-product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .p-card, .ebook-card { padding: 12px; }
  .p-cover, .ebook-cover { padding: 10px; }
  .p-name { font-size: 13px; line-height: 1.2; }
  .p-price .now { font-size: 16px; }
  .btn-cart { padding: 10px; font-size: 12px; }
  .quick-actions { top: 8px; right: 8px; gap: 6px; }
  .qa-btn { width: 28px; height: 28px; }
  .team-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .hero-ctas { justify-content: center; flex-direction: column; width: 100%; }
  .hero-ctas .btn-primary, .hero-ctas .btn-outline { width: 100%; text-align: center; }
  .search-bar { flex-direction: column; align-items: stretch; border-radius: 12px; padding: 12px; }
  .search-bar input { padding: 8px 0; }
  .search-bar button { width: 100%; }
  .deal-hero-banner { padding: 30px 20px; }
  .deal-hero-banner h2 { font-size: 24px; }
  .combo-strip { flex-direction: column; text-align: center; }
  .mission-split .visual { min-height: 240px; }
  .trust-item { font-size: 12px; width: 100%; justify-content: center; }
  .cart-drawer { width: 100%; }
  .page-hero h1 { font-size: 28px; }
  .page-hero-stats { gap: 16px; justify-content: center; }
}


/* ================= 3D CAROUSEL BANNERS ================= */
.banner-3d {
  position: relative;
  width: 100%;
  padding: 60px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  margin-bottom: -40px;
}
.banner-3d .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.banner-3d-text {
  max-width: 50%;
}
.banner-3d-text h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.banner-3d-text p {
  font-size: 18px;
  opacity: 0.9;
}

/* --- 3D CAROUSEL --- */
.scene-3d {
  width: 300px;
  height: 300px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-3d-spinner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-item-3d {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60%;
  height: 70%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 10px;
  text-align: center;
  color: #fff;
}
.carousel-item-3d .p-cover {
  width: 120px;
  height: 160px;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  padding: 10px;
  background: var(--navy);
  margin-bottom: 10px;
}
.carousel-item-3d h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
  .banner-3d .container { flex-direction: column; text-align: center; }
  .banner-3d-text { max-width: 100%; }
  .scene-3d { height: 250px; margin-top: 20px; }
  .banner-3d-text h1 { font-size: 32px; }
}

.p-cover img, .carousel-item-3d img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* ============ MOBILE FIXES ============ */
.co-indented { margin-left: 36px; }
@media (max-width: 760px) {
  .co-indented { margin-left: 0 !important; }
  .pay-grid { grid-template-columns: 1fr !important; margin-left: 0 !important; }
  .checkout-card .sub { margin-left: 0 !important; }
  .p-actions { flex-direction: column; gap: 8px; }
  .btn-cart, .btn-buy { width: 100%; }
}

/* ============ P-META MOBILE FIX ============ */
@media (max-width: 760px) {
  .p-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .p-meta span { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ============ MIN-WIDTH 0 FIX ============ */
.p-card, .p-meta { min-width: 0; }

.p-card *, .p-meta span { min-width: 0; }

/* ============ AUTOCOMPLETE DROPDOWN ============ */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11,18,32,0.08);
  max-height: 320px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1050;
  padding: 8px 0;
}
.autocomplete-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ac-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--ink);
}
.ac-item:hover {
  background: rgba(21,101,192,0.06);
}
.ac-item svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}
.ac-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ac-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-title strong {
  color: var(--orange);
}
.ac-type {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.ac-item.empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  cursor: default;
}
.ac-item.empty:hover {
  background: transparent;
}

.publisher-group { margin-bottom: 6px; }
.sub-tabs { padding-left: 24px; margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }


/* 3D CAROUSEL */
.hero-scene { perspective: 1200px; display: flex; align-items: center; justify-content: center; position: relative; height: 450px; }
.book-carousel { position: relative; width: 220px; height: 320px; transform-style: preserve-3d; animation: spinCarousel 20s infinite linear; }
.carousel-container { width: 100%; height: 100%; position: absolute; transform-style: preserve-3d; }
.book-item { position: absolute; width: 100%; height: 100%; left: 0; top: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.2); background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.4); padding: 15px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.book-item .img-wrap { width: 100%; height: 210px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; overflow: hidden; }
.book-item img { width: 100%; height: 100%; object-fit: contain; }
.book-item .title { font-weight: 800; font-size: 14px; color: var(--navy); line-height: 1.3; margin-top: 10px; text-transform: uppercase; font-family: var(--ff-head); }
.item-1 { transform: rotateY(0deg) translateZ(260px); }
.item-2 { transform: rotateY(72deg) translateZ(260px); }
.item-3 { transform: rotateY(144deg) translateZ(260px); }
.item-4 { transform: rotateY(216deg) translateZ(260px); }
.item-5 { transform: rotateY(288deg) translateZ(260px); }
@keyframes spinCarousel { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }

@media (max-width: 760px) {
  .hero-scene { height: 320px; perspective: 800px; margin-top: 30px; overflow-x: hidden; width: 100vw; margin-left: calc(-50vw + 50%); }
  .book-carousel { width: 140px; height: 210px; }
  .book-item .img-wrap { height: 130px; }
  .book-item .title { font-size: 10px; margin-top: 5px; }
  .item-1 { transform: rotateY(0deg) translateZ(160px); }
  .item-2 { transform: rotateY(72deg) translateZ(160px); }
  .item-3 { transform: rotateY(144deg) translateZ(160px); }
  .item-4 { transform: rotateY(216deg) translateZ(160px); }
  .item-5 { transform: rotateY(288deg) translateZ(160px); }
}

@media (max-width: 760px) { header.nav .navbar { flex-wrap: wrap; gap: 12px; } .nav-search-bar { order: 3; width: 100%; max-width: 100%; margin: 0; } .btn-shop { display: none; } }
\n
/* ============ PREMIUM 3D GLASSMORPHISM MOBILE NAV ============ */
.bottom-dock {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 360px; height: 68px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  z-index: 2001; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  transition: 0.3s; position: relative;
}
.dock-item svg { width: 22px; height: 22px; transition: 0.3s; }
.dock-item.active { color: var(--blue); }
.dock-item.active svg { transform: translateY(-2px); }

/* Central Orb */
.dock-orb-wrap {
  position: relative; top: -16px;
}
.dock-orb {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  box-shadow: 0 14px 28px rgba(255, 111, 0, 0.3), inset 0 4px 10px rgba(255, 255, 255, 0.4), inset 0 -4px 10px rgba(0, 0, 0, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; overflow: hidden;
}
.dock-orb svg { width: 26px; height: 26px; transition: 0.4s; z-index: 2; }
.dock-orb:hover, .dock-orb:active { transform: scale(1.08); box-shadow: 0 18px 36px rgba(255, 111, 0, 0.4), inset 0 4px 10px rgba(255, 255, 255, 0.5); }

/* Liquid Ripple */
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255, 255, 255, 0.4);
  animation: ripple-anim 0.6s linear; pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* Glass Menu Overlay */
.glass-menu-overlay {
  position: fixed; inset: 0; width: 100%; height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(28px) saturate(200%); -webkit-backdrop-filter: blur(28px) saturate(200%);
  z-index: 2000; opacity: 0; visibility: hidden; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; justify-content: center; padding: 40px;
}
.glass-menu-overlay.open { opacity: 1; visibility: visible; }
.glass-menu-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(21,101,192,0.1), transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(255,193,7,0.15), transparent 45%);
}

.gm-links {
  display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1;
}

.gm-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--navy); font-size: 17px; font-weight: 700; font-family: var(--ff-head);
  transform: translateY(30px); opacity: 0; transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden; position: relative;
}
.glass-menu-overlay.open .gm-link { transform: translateY(0); opacity: 1; }
/* Staggering delays */
.gm-link:nth-child(1) { transition-delay: 0.05s; }
.gm-link:nth-child(2) { transition-delay: 0.1s; }
.gm-link:nth-child(3) { transition-delay: 0.15s; }
.gm-link:nth-child(4) { transition-delay: 0.2s; }
.gm-link:nth-child(5) { transition-delay: 0.25s; }
.gm-link:nth-child(6) { transition-delay: 0.3s; }

.gm-link .gm-text { position: relative; z-index: 2; }
.gm-link svg { width: 20px; height: 20px; color: var(--orange); position: relative; z-index: 2; opacity: 0.7; transition: 0.3s; }
.gm-link:hover, .gm-link:active {
  box-shadow: 0 12px 30px rgba(21, 101, 192, 0.15), inset 0 1px 2px rgba(255, 255, 255, 1);
  transform: scale(1.02); color: var(--blue);
}
.gm-link:hover svg { opacity: 1; transform: translateX(3px); }

/* Hide Desktop Header Burger */
@media (max-width: 760px) {
  
}
@media (min-width: 761px) {
  .bottom-dock { display: none !important; }
}
\n

/* Fix for Top Nav Actions */
.top-burger-btn {
  background: linear-gradient(135deg, var(--blue), var(--orange)) !important;
  box-shadow: 0 4px 14px rgba(255, 111, 0, 0.3) !important;
  color: white !important;
  position: relative;
  overflow: hidden;
}
.top-burger-btn:hover {
  transform: scale(1.05) !important;
}
.bottom-dock { display: none !important; }
@media (max-width: 760px) {
  header.nav .top-burger-btn { display: flex !important; }
  .btn-shop { display: none !important; }
}
\n
/* Show search bar directly on pages on mobile */
@media (max-width: 900px) {
  header.nav .navbar {
    flex-wrap: wrap;
    padding: 12px 20px;
  }
  .nav-search-bar {
    display: flex !important;
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 0 0;
  }
}
\n\n
/* Glass Menu Close Button */
.glass-close-btn {
  position: absolute; top: 24px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); z-index: 10; box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: 0.3s;
}
.glass-close-btn:hover { background: var(--orange); color: #fff; transform: scale(1.1); }
.glass-close-btn svg { width: 24px; height: 24px; }
\n\n
/* Hide burger button on desktop */
@media (min-width: 1081px) {
  .top-burger-btn, #topBurger {
    display: none !important;
  }
}
\n\n
/* Glass Accordion Filter Panel */
.fc-head { display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 900px) { #closeFilterMobile { display: flex !important; } }

.fc-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.08); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 24px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}
.fc-search svg { width: 18px; height: 18px; color: #888; }
.fc-search input { border: none; background: transparent; outline: none; flex: 1; font-family: var(--ff-body); font-size: 14px;}

.accordion-item {
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03), inset 0 1px 1px rgba(255,255,255,1);
  overflow: hidden; transition: all 0.3s ease;
}
.accordion-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06), inset 0 1px 1px rgba(255,255,255,1);
  transform: translateY(-1px);
}
.acc-head {
  padding: 14px 16px; cursor: pointer; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  user-select: none; position: relative; z-index: 2; font-size: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
}
.acc-badge {
  background: var(--blue); color: #fff; font-size: 11px; padding: 2px 7px;
  border-radius: 10px; font-weight: 700; opacity: 0; transition: 0.3s;
  margin-left: auto; margin-right: 8px;
}
.acc-badge.show { opacity: 1; }
.acc-arrow { width: 18px; height: 18px; transition: 0.3s; color: #666; }
.accordion-item.active .acc-arrow { transform: rotate(180deg); color: var(--blue); }

.acc-body {
  padding: 0 16px; max-height: 0; opacity: 0; visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.active .acc-body {
  padding: 0 16px 16px 16px; max-height: 500px; opacity: 1; visibility: visible;
}

/* Glass Checkboxes */
.glass-check {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 8px 10px; margin-bottom: 4px; border-radius: 8px;
  transition: 0.3s; font-size: 13.5px; color: var(--ink);
}
.glass-check:hover { background: rgba(25, 118, 210, 0.05); color: var(--blue); }
.glass-check input { display: none; }
.chk-box {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink:0;
  border: 1.5px solid #c2c9d6; background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  transition: 0.3s; position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.glass-check input:checked + .chk-box {
  background: var(--blue); border-color: var(--blue);
  box-shadow: 0 0 10px rgba(25,118,210,0.4);
}
.glass-check input:checked + .chk-box::after {
  content: ''; width: 4px; height: 8px; border: solid white;
  border-width: 0 2px 2px 0; transform: rotate(45deg); margin-bottom: 2px;
}
\n\n
/* AI Search Bar UI */
.nav-search-bar {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.nav-search-bar.expanded {
  background: rgba(255,255,255,1);
  border-color: rgba(25, 118, 210, 0.4);
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1), 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 12px 12px 0 0;
}

.ai-search-dropdown {
  position: absolute;
  top: 100%; left: -1px; right: -1px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(25, 118, 210, 0.4);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  opacity: 0; visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  max-height: 450px; overflow-y: auto;
}
.ai-search-dropdown.show {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.search-result-item {
  display: flex; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-decoration: none; transition: 0.2s;
}
.search-result-item:hover {
  background: rgba(25, 118, 210, 0.05);
}
.sr-thumb {
  width: 48px; height: 64px; flex-shrink: 0;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-info { display: flex; flex-direction: column; justify-content: center; flex: 1; }
.sr-title { margin: 0 0 4px 0; font-size: 14px; color: var(--navy); font-weight: 600; line-height: 1.3; }
.sr-title mark { background: rgba(25, 118, 210, 0.15); color: var(--blue); padding: 0 2px; border-radius: 2px; }
.sr-meta { font-size: 11px; color: #666; margin-bottom: 6px; }
.sr-bot { display: flex; align-items: center; justify-content: space-between; }
.sr-price { font-size: 13px; font-weight: 700; color: var(--orange); }
.sr-stock { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 8px; text-transform: uppercase; }
.sr-stock.in-stock { background: #e8f5e9; color: #2e7d32; }
.sr-stock.out-stock { background: #ffebee; color: #c62828; }

.no-results { padding: 32px 20px; text-align: center; color: #666; }
.no-results svg { width: 32px; height: 32px; margin-bottom: 12px; opacity: 0.5; }
.no-results p { margin: 0 0 4px 0; font-size: 15px; color: var(--navy); }
.no-results span { font-size: 12px; }

.sr-view-all {
  display: block; text-align: center; padding: 12px;
  background: #f8f9fa; color: var(--blue);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: 0.2s;
}
.sr-view-all:hover { background: #eef2f6; }
\n
/* ============ ADVANCED 3D BENTO ANIMATION ============ */
.bento {
  perspective: 1200px;
}
.bento .cat-card {
  opacity: 0;
  transform: translateY(60px) rotateX(15deg) scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  transform-style: preserve-3d;
}
.bento.reveal.in .cat-card {
  animation: bentoPopIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.bento.reveal.in .cat-card:nth-child(1) { animation-delay: 0.1s; }
.bento.reveal.in .cat-card:nth-child(2) { animation-delay: 0.2s; }
.bento.reveal.in .cat-card:nth-child(3) { animation-delay: 0.3s; }
.bento.reveal.in .cat-card:nth-child(4) { animation-delay: 0.4s; }
.bento.reveal.in .cat-card:nth-child(5) { animation-delay: 0.5s; }
.bento.reveal.in .cat-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes bentoPopIn {
  0% { opacity: 0; transform: translateY(60px) rotateX(15deg) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

/* Override the standard hover for 3D effect */
.bento.reveal.in .cat-card:hover {
  transform: translateY(-10px) rotateX(4deg) rotateY(-4deg) scale(1.05);
  box-shadow: -10px 20px 40px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.3);
  z-index: 10;
}

/* ================= ULTRA PREMIUM 3D BENTO OVERHAUL ================= */
.bento {
  perspective: 1500px;
  transform-style: preserve-3d;
}

/* Reset previous simple 3D */
.bento.reveal.in .cat-card:hover {
  transform: none; box-shadow: none; z-index: initial;
}
.bento.reveal.in .cat-card:hover::after { background: none; }

.cat-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --rotateX: 0deg;
  --rotateY: 0deg;
  position: relative;
  border-radius: var(--radius);
  padding: 0;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease;
  transform: perspective(1500px) rotateX(var(--rotateX)) rotateY(var(--rotateY)) scale3d(1, 1, 1);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
  background: transparent !important; /* Move background to border/glare layers */
  z-index: 1;
}

/* Magnetic Hover Active State */
.cat-card.hover-active {
  transform: perspective(1500px) rotateX(var(--rotateX)) rotateY(var(--rotateY)) scale3d(1.04, 1.04, 1.04);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,0.4), 0 20px 40px -20px rgba(0,0,0,0.3);
  z-index: 10;
}

/* Card Backgrounds applied to the border layer */
.cat-card .card-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  z-index: -2;
  transition: opacity 0.4s ease;
}
.cat-card.c1 .card-border { background: linear-gradient(150deg, #1e88e5, var(--blue-dark)); }
.cat-card.c2 .card-border { background: linear-gradient(150deg, var(--orange), #c94e00); }
.cat-card.c3 .card-border { background: linear-gradient(150deg, #26a69a, #00695c); }
.cat-card.c4 .card-border { background: linear-gradient(150deg, var(--gold), #e08e00); }
.cat-card.c5 .card-border { background: linear-gradient(150deg, #8e63e0, #5e35b1); }
.cat-card.c6 .card-border { background: linear-gradient(150deg, #ec407a, #ad1457); }
.cat-card.c7 .card-border { background: linear-gradient(150deg, #42a5f5, #1565c0); }
.cat-card.c8 .card-border { background: linear-gradient(150deg, #455a64, var(--navy)); }
.cat-card.c9 .card-border { background: linear-gradient(150deg, #ff8a65, #e64a19); }

/* Dynamic Border Glow */
.cat-card .card-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.6), transparent 40%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}
.cat-card.hover-active .card-border::before {
  opacity: 1;
}

/* Internal Inner Background for Glassmorphism */
.cat-card .card-border::after {
  content: "";
  position: absolute;
  inset: 1px; /* create a 1px border */
  border-radius: calc(var(--radius) - 1px);
  background: inherit;
  z-index: 0;
}

/* Glare Layer */
.cat-card .card-glare {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.4), transparent 40%);
  opacity: 0;
  z-index: -1;
  mix-blend-mode: overlay;
  transition: opacity 0.4s;
}
.cat-card.hover-active .card-glare {
  opacity: 1;
}

/* Card Content Parallax */
.cat-card .card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  pointer-events: none;
  transform: translateZ(30px);
  transition: transform 0.4s ease;
}
.cat-card.hover-active .card-content {
  transform: translateZ(50px);
}

/* Animated Arrow */
.cat-card .card-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-10px, 10px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cat-card.hover-active .card-arrow {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
.cat-card .card-arrow svg {
  width: 16px;
  height: 16px;
  color: #fff;
}
.cat-card.c4 .card-arrow svg { color: var(--navy); }

/* Icon Morph & Bounce */
.cat-card .ic {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}
.cat-card.hover-active .ic {
  transform: scale(1.15) rotate(-5deg);
  background: rgba(255,255,255,0.3);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.cat-card.c4.hover-active .ic { background: rgba(11,18,32,0.2); }

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  z-index: 5;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Override existing entrance animations */
.bento.reveal.in .cat-card {
  animation: bentoPremiumPop 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bentoPremiumPop {
  0% { opacity: 0; transform: translateY(80px) rotateX(20deg) scale(0.8); box-shadow: none; }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); }
}

/* Stagger adjustments */
.bento.reveal.in .cat-card:nth-child(1) { animation-delay: 0.1s; }
.bento.reveal.in .cat-card:nth-child(2) { animation-delay: 0.2s; }
.bento.reveal.in .cat-card:nth-child(3) { animation-delay: 0.3s; }
.bento.reveal.in .cat-card:nth-child(4) { animation-delay: 0.4s; }
.bento.reveal.in .cat-card:nth-child(5) { animation-delay: 0.5s; }
.bento.reveal.in .cat-card:nth-child(6) { animation-delay: 0.6s; }

/* Desktop-only constraint for heavy 3D */
@media (max-width: 768px) {
  .cat-card {
    transform: none !important;
  }
  .cat-card .card-content {
    transform: none !important;
  }
}

/* ================= MOBILE SEARCH BAR FIX ================= */
@media (max-width: 900px) {
  /* Unhide the search bar on mobile */
  .nav-search-bar {
    display: flex !important;
    order: 3;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 12px !important;
  }
  
  /* Change navbar from pill to rounded box on mobile to fit the search bar cleanly */
  header.nav .navbar {
    flex-wrap: wrap !important;
    border-radius: 20px !important;
    padding: 14px 20px !important;
    gap: 0 !important;
  }
  
  /* Keep the logo and icons on the top row */
  .logo { order: 1; margin-right: auto; }
  .nav-actions { order: 2; }
  
  /* Make sure dropdown stays within screen width */
  .ai-search-dropdown {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* ================= SOCIAL PROOF NOTIFICATION ================= */
.social-proof-popup {
    position: fixed;
    bottom: 30px;
    left: -400px;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 15px;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}
.social-proof-popup.show {
    left: 30px;
    opacity: 1;
}
.social-proof-popup img {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.social-proof-popup .sp-content {
    flex-grow: 1;
}
.social-proof-popup .sp-name {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 3px;
}
.social-proof-popup .sp-name b {
    color: #1a1a1a;
}
.social-proof-popup .sp-product {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2b7a78;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.social-proof-popup .sp-time {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}
.social-proof-popup .sp-time i {
    color: #2b7a78;
}
.sp-close {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.sp-close:hover {
    color: #333;
}
@media (max-width: 768px) {
    .social-proof-popup {
        bottom: 20px;
        width: calc(100% - 40px);
        left: -100% !important;
    }
    .social-proof-popup.show {
        left: 20px !important;
    }
}

/* ================= PROMO BANNER POPUP ================= */
.promo-banner-popup {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: stretch;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 9998;
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    width: 420px;
    max-width: 95vw;
    height: 120px;
    overflow: hidden;
}
.promo-banner-popup.show {
    bottom: 30px;
    opacity: 1;
}
.promo-banner-popup.theme-stationery {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #333;
}
.promo-banner-popup.theme-toys {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    color: #333;
}
.promo-banner-popup .promo-icon {
    width: 40%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.4);
    font-size: 2.5rem;
}
.promo-banner-popup .promo-content-wrapper {
    width: 60%;
    padding: 15px 35px 15px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}
.promo-banner-popup .promo-text {
    font-size: 0.9rem;
    line-height: 1.2;
}
.promo-banner-popup .promo-text strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 2px;
    font-weight: 800;
}
.promo-banner-popup .promo-btn {
    background: #fff;
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.promo-banner-popup .promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.promo-banner-popup .promo-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.promo-banner-popup .promo-close:hover {
    opacity: 1;
}
@media (max-width: 768px) {
    .promo-banner-popup {
        width: 90vw;
        height: 110px;
    }
    .promo-banner-popup.show {
        bottom: 110px; /* Adjust to stay above social proof */
    }
    .promo-banner-popup .promo-text {
        font-size: 0.85rem;
    }
    .promo-banner-popup .promo-text strong {
        font-size: 0.95rem;
    }
}
.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: white;
}

