/* ===== RESET & ROOT ===== */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}

:root {
  --black: #09090A;
  --black-rich: #060504;
  --black-surface: #0c0c0e;
  --card-bg: #131315;
  --card-hover: #17150f;
  --border-gold: rgba(201,168,76,0.22);
  --border-gold-bright: rgba(201,168,76,0.52);
  --border-subtle: rgba(255,255,255,0.055);

  --gold: #C9A84C;
  --gold-light: #E8C56A;
  --gold-pale: #F5DFA0;
  --gold-dim: rgba(201,168,76,0.12);
  --gold-glow: rgba(201,168,76,0.18);
  --gold-gradient: linear-gradient(135deg, #C9A84C 0%, #E8C56A 50%, #C9A84C 100%);
  --gold-gradient-text: linear-gradient(110deg, #B8952E 0%, #E8C84A 35%, #F5DFA0 52%, #D4A830 75%, #C9A84C 100%);

  --white: #FFFFFF;
  --white-muted: #D4C9B0;
  --white-dim: #A89880;
  --white-ghost: #3A352C;

  --mpesa-green: #00C853;
  --wa-green: #25D366;

  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.2s cubic-bezier(0.25,0.46,0.45,0.94);
  --transition-spring: 0.28s cubic-bezier(0.2,0.9,0.4,1.05);
  --shadow-gold: 0 0 40px rgba(201,168,76,0.1);
  --shadow-card: 0 8px 48px rgba(0,0,0,0.75);
  --shadow-card-hover: 0 24px 64px rgba(0,0,0,0.82), 0 0 0 1px rgba(201,168,76,0.15);
}

html{scroll-behavior:smooth;}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body::before {
  content:'';
  position:fixed;
  inset:0;
  background-image:
    radial-gradient(rgba(201,168,76,0.025) 1px, transparent 1px),
    radial-gradient(rgba(201,168,76,0.015) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E") !important;
  background-size:50px 50px, 100px 100px, 300px 300px !important;
  pointer-events:none;
  z-index:0;
}

body::after {
  content:'';
  position:fixed;
  top:-200px;
  left:50%;
  transform:translateX(-50%);
  width:min(1400px, 100vw);
  height:900px;
  background:radial-gradient(ellipse at center, rgba(201,168,76,0.065) 0%, rgba(201,168,76,0.025) 38%, transparent 70%);
  pointer-events:none;
  z-index:0;
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
  0%,100% { opacity: 0.06; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.12; transform: translateX(-50%) scale(1.1); }
}

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,.heading-serif {
  font-family:'Playfair Display', serif;
  font-weight:800;
  color:var(--white);
  line-height:1.12;
}
h1{font-size:clamp(1.9rem,4vw,3.2rem); letter-spacing:-0.03em;}
h2{font-size:clamp(1.6rem,3.2vw,2.4rem); letter-spacing:-0.028em; line-height:1.08;}
h3{font-size:1rem; font-family:'DM Sans',sans-serif; font-weight:700;}
p{font-size:0.875rem; line-height:1.68; color:var(--white-dim);}

.gold-text {
  background:var(--gold-gradient-text);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}

/* ===== BRAND LOGO ===== */
.logo-ace {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.38rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(175deg, #FFFFFF 0%, #E8F0F8 20%, #B8CEDE 50%, #D8E8F4 75%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.9)) drop-shadow(0 2px 6px rgba(0,0,0,0.95)) drop-shadow(0 0 2px rgba(180,210,240,0.3));
}
.logo-core {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.38rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(175deg, #F5DFA0 0%, #E8C56A 20%, #C9A84C 50%, #D4B055 75%, #F5DFA0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(245,223,160,0.5)) drop-shadow(0 2px 6px rgba(0,0,0,0.95)) drop-shadow(0 0 10px rgba(201,168,76,0.5));
}

/* ===== LAYOUT ===== */
.container{max-width:1360px;margin:0 auto;padding:0 2rem;position:relative;z-index:2;}
section{padding:3.5rem 0;}

.section-chip {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(201,168,76,0.07);
  border:1px solid rgba(201,168,76,0.28);
  border-radius:40px;
  padding:5px 16px;
  font-size:0.68rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.13em;
  color:var(--gold);
  margin-bottom:1.2rem;
  box-shadow:0 0 0 3px rgba(201,168,76,0.04), 0 0 14px rgba(201,168,76,0.06);
}

/* ===== NAVIGATION ===== */
nav {
  position:sticky;
  top:0;
  z-index:200;
  background:rgba(3,2,1,0.94);
  backdrop-filter:blur(24px) saturate(200%);
  -webkit-backdrop-filter:blur(24px) saturate(200%);
  border-bottom:1px solid rgba(201,168,76,0.14);
  box-shadow:0 1px 0 rgba(201,168,76,0.05), 0 4px 40px rgba(0,0,0,0.5);
}
nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.5) 25%, rgba(245,223,160,1) 50%, rgba(201,168,76,0.5) 75%, transparent 100%);
  pointer-events: none;
}
.nav-container {
  max-width:1360px;
  margin:0 auto;
  padding:0 2rem;
  height:68px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:1rem;
}
.nav-container .nav-left-slot { display:flex; align-items:center; justify-content:flex-start; }
.nav-container .nav-right-slot { display:flex; align-items:center; justify-content:flex-end; }
.nav-logo {
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  flex-shrink:0;
  user-select:none;
  text-decoration:none;
  justify-content:center;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity:0.85; }
.nav-logo-mark { width:40px; height:40px; position:relative; flex-shrink:0; }

.nav-links{display:flex;gap:0.2rem;list-style:none;}
.nav-links a {
  display:inline-flex;
  padding:0.5rem 1.1rem;
  border-radius:40px;
  font-size:0.8rem;
  font-weight:600;
  color:var(--white-dim);
  transition:var(--transition);
  cursor:pointer;
  white-space:nowrap;
  text-decoration:none;
}
.nav-links a:hover,.nav-links a.active{
  background:rgba(201,168,76,0.1);
  color:var(--gold-light);
  box-shadow:inset 0 0 0 1px rgba(201,168,76,0.2);
}
.nav-links a:focus-visible{outline:2px solid var(--gold);outline-offset:2px;}

.nav-dropdown{position:relative;}
.nav-dropdown-menu {
  display:none;
  position:absolute;
  top:calc(100% + 5px);
  left:0;
  background:rgba(8,7,5,0.98);
  backdrop-filter:blur(20px);
  border:1px solid rgba(201,168,76,0.2);
  border-radius:16px;
  padding:6px;
  min-width:190px;
  z-index:300;
  box-shadow:0 16px 40px rgba(0,0,0,0.8),0 0 20px rgba(201,168,76,0.05);
  padding-top:10px;
  margin-top:-5px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.touch-open{display:block;}
.nav-dropdown-item {
  display:flex!important;
  align-items:center;
  padding:10px 14px!important;
  border-radius:10px!important;
  font-size:0.78rem!important;
  font-weight:600;
  color:var(--white-dim)!important;
  cursor:pointer;
  gap:8px;
  transition:0.15s;
  white-space:nowrap;
}
.nav-dropdown-item:hover{background:rgba(201,168,76,0.09)!important;color:var(--gold)!important;}

.nav-right{display:flex;align-items:center;gap:0.5rem;flex-shrink:0;}

/* Buttons */
.btn-gold,.btn-outline,.btn-dark,.btn-green{
  border:none;
  font-weight:700;
  font-family:'DM Sans',sans-serif;
  border-radius:50px;
  cursor:pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 30px;
  font-size:0.83rem;
  letter-spacing:0.02em;
  white-space:nowrap;
  position:relative;
  overflow:hidden;
}
/* Shimmer sweep on all buttons */
.btn-gold::after,.btn-green::after{
  content:'';
  position:absolute;
  top:0;left:-100%;
  width:60%;height:100%;
  background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,0.18) 50%,transparent 60%);
  transition:left 0.55s ease;
  pointer-events:none;
}
.btn-gold:hover::after,.btn-green:hover::after{ left:160%; }
.btn-gold{
  background: linear-gradient(110deg,#B8952E 0%,#E8C84A 38%,#F5DFA0 55%,#D4A830 78%,#9A7520 100%);
  color:#0a0800;
  font-weight:800;
  box-shadow: 0 4px 18px rgba(201,168,76,0.35), 0 1px 0 rgba(255,255,255,0.22) inset, 0 -1px 0 rgba(0,0,0,0.18) inset;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.btn-gold:hover{
  transform:translateY(-2px) scale(1.012);
  box-shadow: 0 10px 32px rgba(201,168,76,0.52), 0 1px 0 rgba(255,255,255,0.25) inset;
}
.btn-gold:active{ transform:translateY(0) scale(0.99); }
.btn-outline{
  background:transparent;
  border:1.5px solid rgba(201,168,76,0.75);
  color:var(--gold);
  box-shadow: 0 0 0 0 rgba(201,168,76,0);
  backdrop-filter: blur(4px);
}
.btn-outline:hover{
  background:rgba(201,168,76,0.08);
  border-color:var(--gold);
  transform:translateY(-2px);
  box-shadow: 0 0 22px rgba(201,168,76,0.2), inset 0 0 0 1.5px rgba(201,168,76,0.4);
}
.btn-outline:active{ transform:translateY(0); }
.btn-dark{
  background:rgba(201,168,76,0.08);
  border:1px solid rgba(201,168,76,0.22);
  color:var(--gold-light);
  backdrop-filter:blur(4px);
}
.btn-dark:hover{ background:rgba(201,168,76,0.16); transform:translateY(-2px); box-shadow:0 6px 20px rgba(201,168,76,0.12); }
.btn-green{
  background: linear-gradient(110deg,#00B84A 0%,#00D45A 45%,#00C853 100%);
  color:#fff;
  font-weight:800;
  box-shadow: 0 4px 18px rgba(0,200,83,0.32), 0 1px 0 rgba(255,255,255,0.2) inset, 0 -1px 0 rgba(0,0,0,0.15) inset;
}
.btn-green:hover{
  transform:translateY(-2px) scale(1.012);
  box-shadow: 0 10px 28px rgba(0,200,83,0.45), 0 1px 0 rgba(255,255,255,0.22) inset;
}
.btn-green:active{ transform:translateY(0) scale(0.99); }
.btn-wa-nav{
  background:var(--wa-green);
  border:none;
  padding:7px 18px;
  border-radius:40px;
  font-weight:800;
  font-size:0.73rem;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#000;
  cursor:pointer;
  transition:0.2s;
  white-space:nowrap;
}
.btn-wa-nav:hover{transform:scale(1.03);filter:brightness(1.06);}
button{font-family:'DM Sans',sans-serif;}

/* Hamburger */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  padding:6px;
  border:1px solid rgba(201,168,76,0.2);
  border-radius:10px;
  background:rgba(201,168,76,0.04);
}
.hamburger span{display:block;width:22px;height:2px;background:var(--gold);border-radius:2px;transition:0.25s;}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
@media(max-width:900px){
  .hamburger{display:flex;}
  .nav-links{display:none;}
  .btn-wa-nav{display:none;}
  .nav-container{
    grid-template-columns:auto 1fr auto;
    padding:0 0.75rem;
    gap:0.5rem;
  }
  .nav-right{gap:0.3rem;}
  .nav-icon-btn, .nav-search-btn,.nav-cart-btn,.nav-wishlist-btn{
    width:36px;height:36px;
  }
}

/* Mobile Menu */
.mobile-menu{
  display:none;
  position:fixed;
  top:68px;left:0;right:0;bottom:0;
  background:rgba(0,0,0,0.97);
  backdrop-filter:blur(20px);
  z-index:199;
  flex-direction:column;
  padding:2rem;
  gap:0.5rem;
  overflow-y:auto;
}
.mobile-menu.open{display:flex;}
.mobile-menu a{
  display:flex;
  align-items:center;
  padding:1rem 1.2rem;
  border-radius:16px;
  font-size:1rem;
  font-weight:600;
  color:var(--white-muted);
  cursor:pointer;
  border:1px solid transparent;
  transition:0.2s;
}
.mobile-menu a:hover,.mobile-menu a.active{
  background:rgba(201,168,76,0.07);
  border-color:rgba(201,168,76,0.25);
  color:var(--gold);
}
.mobile-menu-divider{height:1px;background:rgba(255,255,255,0.06);margin:0.5rem 0;}
.mobile-menu-cats-label{font-size:0.68rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:rgba(201,168,76,0.55);padding:0.5rem 0.2rem 0.3rem;}
.mobile-menu-chips{display:flex;flex-wrap:wrap;gap:0.45rem;padding:0.2rem 0 0.5rem;}
.mobile-menu-chip{background:rgba(201,168,76,0.07);border:1px solid rgba(201,168,76,0.22);color:var(--gold);border-radius:20px;padding:0.45rem 0.9rem;font-size:0.78rem;font-weight:600;cursor:pointer;transition:0.18s;white-space:nowrap;}
.mobile-menu-chip:hover,.mobile-menu-chip:active{background:rgba(201,168,76,0.18);border-color:var(--gold);}
.mobile-wa-full{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.6rem;
  background:var(--wa-green);
  color:#000;
  font-weight:800;
  font-size:0.9rem;
  padding:1rem;
  border-radius:16px;
  border:none;
  cursor:pointer;
  margin-top:0.5rem;
}

/* Hero Section */
.hero{
  display:grid;
  grid-template-columns:1fr 400px;
  gap:3rem;
  align-items:center;
  padding-top:0;
}
.hero-eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:1.2rem;}
.live-dot{
  width:8px;height:8px;
  background:var(--mpesa-green);
  border-radius:50%;
  box-shadow:0 0 10px var(--mpesa-green);
  animation:livePulse 2s ease-in-out infinite;
}
@keyframes livePulse{0%,100%{opacity:1;transform:scale(1);}50%{opacity:0.5;transform:scale(1.4);}}
.hero-desc{font-size:0.85rem;color:var(--white-dim);max-width:520px;margin:0.8rem 0 1.6rem;line-height:1.7;}
.hero-cta-row{display:flex;gap:0.75rem;flex-wrap:wrap;align-items:center;}

.hero-card{
  background:linear-gradient(148deg,#110e08,#0c0b08);
  border:1px solid rgba(201,168,76,0.24);
  border-radius:28px;
  padding:1.8rem;
  box-shadow:0 28px 80px rgba(0,0,0,0.75), 0 0 0 1px rgba(201,168,76,0.06), inset 0 1px 0 rgba(245,223,160,0.08);
  position:relative;
  overflow:hidden;
}
.hero-card::before{
  content:'';
  position:absolute;
  top:-80px;right:-80px;
  width:280px;height:280px;
  background:radial-gradient(circle,rgba(201,168,76,0.1) 0%,transparent 65%);
  pointer-events:none;
}
.deal-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:rgba(201,168,76,0.12);
  border:1px solid rgba(201,168,76,0.35);
  border-radius:30px;
  padding:4px 14px;
  font-size:0.65rem;
  font-weight:800;
  color:var(--gold);
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:0.8rem;
}
.deal-highlight{
  background:rgba(201,168,76,0.06);
  border-radius:14px;
  margin-top:1rem;
  padding:0.9rem 1rem;
  display:flex;
  align-items:center;
  gap:0.9rem;
  border-left:3px solid var(--gold);
}
.phone-icon-large{font-size:2.8rem;}
.price-large{
  font-family:'Playfair Display',serif;
  font-weight:800;
  font-size:1.4rem;
  background:var(--gold-gradient-text);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  margin:4px 0;
}

/* Stats */
.stats-group{display:flex;gap:1rem;margin-top:2.5rem;flex-wrap:wrap;}
.stat-item{
  background:linear-gradient(145deg,#131109,#0d0c09);
  border-radius:18px;
  padding:0.75rem 1.3rem;
  border:1px solid rgba(201,168,76,0.18);
  box-shadow:0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
  flex:1;
  min-width:90px;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-item:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(0,0,0,0.5),0 0 16px rgba(201,168,76,0.07);}
.stat-number{
  font-family:'Playfair Display',serif;
  font-size:1.3rem;
  font-weight:800;
  background:var(--gold-gradient-text);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}
.stat-label{font-size:0.62rem;color:var(--white-dim);text-transform:uppercase;letter-spacing:0.05em;margin-top:2px;}

/* Trust Band */
.trust-band{
  background:linear-gradient(90deg, #060504, #0a0906, #060504);
  border-top:1px solid rgba(201,168,76,0.14);
  border-bottom:1px solid rgba(201,168,76,0.14);
  padding:0.7rem 0;
  overflow:hidden;
  width:100%;
  max-width:100%;
}
.trust-track{display:inline-flex;animation:scrollTrust 32s linear infinite;white-space:nowrap;}
.trust-track span{
  padding:0 2rem;
  font-size:0.68rem;
  font-weight:600;
  color:var(--white-muted);
  letter-spacing:0.02em;
}
.trust-track span::before{content:"◆";color:var(--gold-light);margin-right:10px;font-size:0.5rem;}
@keyframes scrollTrust{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}

/* Brand Scroll */
.brand-scroll-section{
  padding:2.5rem 0;
  overflow:hidden;
  width:100%;
  max-width:100%;
  border-top:1px solid var(--border-gold);
  border-bottom:1px solid var(--border-gold);
  background:linear-gradient(180deg, transparent 0%, rgba(201,168,76,0.018) 50%, transparent 100%);
}
.brand-scroll-label{
  text-align:center;
  font-size:0.62rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:var(--white-dim);
  margin-bottom:1.5rem;
}
.brand-track-wrapper{overflow:hidden;}
.brand-track{
  display:inline-flex;
  gap:2.5rem;
  animation:scrollBrands 22s linear infinite;
  align-items:center;
}
.brand-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0.4rem;
  opacity:0.55;
  transition:0.3s;
  cursor:default;
  flex-shrink:0;
}
.brand-item:hover{opacity:1;}
.brand-logo-box{
  width:60px;height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg, rgba(201,168,76,0.07), rgba(201,168,76,0.04));
  border:1px solid rgba(201,168,76,0.13);
  border-radius:10px;
  font-size:0.62rem;
  font-weight:800;
  color:var(--gold-pale);
  letter-spacing:0.04em;
  font-family:'Playfair Display',serif;
  box-shadow:0 2px 10px rgba(0,0,0,0.3);
  transition:opacity 0.3s, box-shadow 0.3s;
}
.brand-item:hover .brand-logo-box{box-shadow:0 4px 16px rgba(201,168,76,0.15);}
.brand-name{font-size:0.6rem;color:var(--white-dim);font-weight:600;}
@keyframes scrollBrands{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}

/* Pillars Grid */
.pillars-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.2rem;
  margin-top:2.5rem;
}
@media(max-width:900px){
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
.pillar-card{
  background:linear-gradient(155deg,#131009,#0d0b08);
  border-radius:20px;
  padding:1.8rem 1.4rem;
  border:1px solid rgba(255,255,255,0.045);
  box-shadow:0 4px 24px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.025);
  transition:transform 0.28s var(--transition-spring), box-shadow 0.28s ease, border-color 0.22s;
  position:relative;
  overflow:hidden;
}
.pillar-card:hover{
  transform:translateY(-6px);
  border-color:rgba(201,168,76,0.3);
  box-shadow:0 20px 48px rgba(0,0,0,0.7), 0 0 28px rgba(201,168,76,0.08);
}
.pillar-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;height:48px;
  background:rgba(201,168,76,0.08);
  border:1px solid rgba(201,168,76,0.18);
  border-radius:14px;
  font-size:1.5rem;
  margin-bottom:1rem;
  box-shadow:0 4px 16px rgba(0,0,0,0.3);
}
.pillar-title{font-size:0.9rem;font-weight:700;color:var(--white);margin-bottom:0.4rem;}
.pillar-desc{font-size:0.75rem;color:var(--white-dim);line-height:1.55;}

/* Shop Page */
.shop-wrapper{display:grid;grid-template-columns:260px 1fr;gap:2rem;align-items:start;}
@media(max-width:900px){
  .shop-wrapper{grid-template-columns:1fr;}
  .sidebar{position:static;border-radius:16px;padding:1.2rem;margin-bottom:0.5rem;}
}
.sidebar{
  background:linear-gradient(158deg,#0c0b08,#090807);
  border-radius:24px;
  padding:1.6rem;
  border:1px solid rgba(201,168,76,0.18);
  position:sticky;
  top:84px;
  box-shadow:0 8px 48px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.025);
}
.filter-header{
  font-size:0.65rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.1em;
  margin-bottom:0.9rem;
  color:var(--gold);
}
.filter-buttons{display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:1.5rem;}
.filter-chip{
  background:transparent;
  border:1px solid rgba(201,168,76,0.18);
  border-radius:40px;
  padding:6px 16px;
  font-size:0.68rem;
  font-weight:700;
  color:var(--white-dim);
  cursor:pointer;
  transition:0.18s;
}
.filter-chip.active,.filter-chip:hover{
  background:rgba(201,168,76,0.1);
  border-color:var(--gold);
  color:var(--gold);
}
.filter-chip.ram-chip { border-color: rgba(99,179,255,0.2); }
.filter-chip.ram-chip.active, .filter-chip.ram-chip:hover {
  background: rgba(99,179,255,0.1); border-color: #63B3FF; color: #63B3FF;
}
.filter-chip.stor-chip { border-color: rgba(160,120,255,0.2); }
.filter-chip.stor-chip.active, .filter-chip.stor-chip:hover {
  background: rgba(160,120,255,0.1); border-color: #A078FF; color: #A078FF;
}
.filter-divider { height:1px; background:rgba(255,255,255,0.06); margin:1.1rem 0; }
.search-input{
  width:100%;
  padding:13px 20px;
  background:var(--card-bg);
  border:1px solid rgba(201,168,76,0.18);
  border-radius:50px;
  color:var(--white);
  font-size:0.82rem;
  margin-bottom:1rem;
  outline:none;
  transition:0.2s;
  font-family:'DM Sans',sans-serif;
}
.search-input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,168,76,0.12),0 0 16px rgba(201,168,76,0.06);}
.results-count{font-size:0.68rem;color:var(--gold);margin-bottom:1rem;font-weight:600;}
.sidebar-trust{
  background:rgba(201,168,76,0.05);border-radius:14px;
  padding:10px 14px;font-size:0.68rem;color:var(--white-muted);
  margin-top:1rem;line-height:1.55;border:1px solid var(--border-gold);
}

/* Price Range Slider */
.price-range-wrap {
  position: relative;
  width: 100%;
  height: 36px;
  margin: 0.6rem 0 0.2rem;
  user-select: none;
}
.price-range-track {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  transform: translateY(-50%);
  pointer-events: none;
}
.price-range-fill {
  position: absolute;
  top: 0; height: 100%;
  background: var(--gold-gradient);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(201,168,76,0.25);
}
.price-range-input {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
}
.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #000;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2), 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: all;
  cursor: grab;
  transition: transform 0.15s, box-shadow 0.15s;
}
.price-range-input::-webkit-slider-thumb:hover,
.price-range-input:active::-webkit-slider-thumb {
  transform: scale(1.2);
  box-shadow: 0 0 0 5px rgba(201,168,76,0.25), 0 2px 12px rgba(0,0,0,0.6);
  cursor: grabbing;
}
.price-range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.price-range-label-val {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 3px 9px;
  min-width: 80px;
  text-align: center;
}
.price-range-sep { font-size: 0.6rem; color: var(--white-dim); padding: 0 4px; }

/* Shop Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.sort-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.sort-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  white-space: nowrap;
}
.sort-select-wrap { position: relative; }
.sort-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 0.75rem;
  pointer-events: none;
}
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--card-bg);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 40px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 32px 8px 14px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.sort-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.08); }
.sort-select option { background: #111; color: #fff; }
.sort-active-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  /* Hidden by default — shown via JS style.display='block' OR .visible class */
  display: none;
  box-shadow: 0 0 6px rgba(201,168,76,0.5);
}
/* .visible class — kept as an alternative toggle path alongside JS style.display */
.sort-active-dot.visible { display: block; }

/* Product Grid */
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem;width:100%;align-items:start;}
@media(max-width:1100px){.product-grid{grid-template-columns:repeat(2,1fr);gap:1.2rem;}}
@media(max-width:600px){
  .product-grid{grid-template-columns:repeat(2,1fr);gap:0.65rem;}

  /* ── Fix: button text must fit in narrow 2-col cards ── */
  .add-cart-btn{
    padding:7px 5px;
    font-size:0.62rem;
    gap:3px;
    letter-spacing:0;
  }
  .order-wa-btn{
    padding:8px 5px;
    font-size:0.63rem;
    gap:3px;
    letter-spacing:0;
  }
  /* Tighter product-info padding on mobile */
  .product-info{
    padding:0.75rem 0.75rem 0.75rem;
  }
  .product-title{
    font-size:0.78rem;
  }
  .price-product{
    font-size:1rem;
  }
  .specs-sm{
    font-size:0.62rem;
  }
  .auth-badge{
    font-size:0.48rem;
    padding:2px 5px;
  }
}
@media(max-width:360px){
  .product-grid{grid-template-columns:1fr;}
  .add-cart-btn{
    padding:9px 14px;
    font-size:0.72rem;
    gap:5px;
    letter-spacing:0.01em;
  }
  .order-wa-btn{
    padding:10px;
    font-size:0.72rem;
    gap:5px;
    letter-spacing:0.02em;
  }
  .product-info{padding:1rem 1rem 1rem;}
  .product-title{font-size:0.9rem;}
  .price-product{font-size:1.1rem;}
}
.product-card{
  background:linear-gradient(165deg,#18150e 0%,#0f0d0a 45%,#080706 100%);
  border:1px solid rgba(201,168,76,0.10);
  border-radius:22px;
  box-shadow:0 4px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.035);
  transition:transform 0.3s var(--transition-spring), box-shadow 0.3s ease, border-color 0.25s ease;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  cursor:pointer;
  position:relative;
  animation: aceCardIn 0.42s cubic-bezier(0.22,1,0.36,1) both;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.product-card:hover{
  transform:translateY(-8px) scale(1.012);
  border-color:rgba(201,168,76,0.38);
  box-shadow:0 28px 60px rgba(0,0,0,0.78), 0 0 0 1px rgba(201,168,76,0.16), 0 0 40px rgba(201,168,76,0.09);
}
@keyframes aceCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.product-grid .product-card:nth-child(1)  { animation-delay: 0.04s; }
.product-grid .product-card:nth-child(2)  { animation-delay: 0.09s; }
.product-grid .product-card:nth-child(3)  { animation-delay: 0.14s; }
.product-grid .product-card:nth-child(4)  { animation-delay: 0.19s; }
.product-grid .product-card:nth-child(5)  { animation-delay: 0.24s; }
.product-grid .product-card:nth-child(6)  { animation-delay: 0.29s; }
.product-grid .product-card:nth-child(7)  { animation-delay: 0.34s; }
.product-grid .product-card:nth-child(8)  { animation-delay: 0.39s; }
.product-grid .product-card:nth-child(n+9) { animation-delay: 0.44s; }

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(110deg, transparent 30%, rgba(201,168,76,0.07) 45%, rgba(232,197,106,0.13) 50%, rgba(201,168,76,0.07) 55%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.product-card:hover::after { opacity: 1; animation: goldShimmer 1.4s ease-in-out; }
@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.product-img{
  /* 4:3 ratio — taller than 1:1, shows more of portrait phone renders */
  aspect-ratio: 4 / 3;
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(ellipse at 50% 60%, rgba(201,168,76,0.10) 0%, rgba(201,168,76,0.03) 40%, #0a0806 70%);
  position:relative;
  overflow:hidden;
  flex-shrink:0;
}
.product-img::after{
  content:'';
  position:absolute;
  bottom:0;left:0;right:0;
  height:50px;
  background:linear-gradient(transparent,var(--card-bg));
  pointer-events:none;
  z-index:2;
}
.product-img::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:1.5px;
  background:linear-gradient(90deg, transparent 5%, rgba(201,168,76,0.7) 35%, rgba(245,223,160,1) 50%, rgba(201,168,76,0.7) 65%, transparent 95%);
  opacity:0.7;
  z-index:3;
}
.product-img img{
  /* Absolute fill: image never affects the container's height */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit:contain;
  padding:10px 14px 4px;
  box-sizing:border-box;
  transition:transform 0.38s cubic-bezier(0.2,0.9,0.4,1.05), filter 0.3s ease;
  z-index:1;
  filter:drop-shadow(0 8px 20px rgba(0,0,0,0.6));
  display:block;
}
.product-card:hover .product-img img{
  transform:scale(1.11) translateY(-7px);
  filter:drop-shadow(0 14px 28px rgba(0,0,0,0.7)) drop-shadow(0 0 12px rgba(201,168,76,0.07));
}
.product-img .img-fallback{
  font-size:3.2rem;
  position:relative;
  z-index:1;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,0.4));
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
}
.emoji-big{font-size:3.8rem;}

.product-info{padding:1rem 1rem 1rem;flex:1;display:flex;flex-direction:column;min-width:0;overflow:hidden;}
.brand-tag{
  font-size:0.6rem;
  font-weight:800;
  letter-spacing:0.11em;
  color:var(--gold);
  text-transform:uppercase;
  margin-bottom:5px;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.product-title{font-size:0.88rem;font-weight:700;color:var(--white);margin-bottom:4px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.price-product{
  font-family:'Playfair Display',serif;
  font-weight:800;
  font-size:1.22rem;
  background:var(--gold-gradient-text);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  margin:6px 0 4px;
  letter-spacing:-0.01em;
  line-height:1.1;
}
.specs-sm{font-size:0.67rem;color:var(--white-dim);margin-bottom:auto;line-height:1.5;padding-bottom:4px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}

.order-wa-btn{
  width:100%;
  background:linear-gradient(135deg,#C9A84C 0%,#E8C56A 50%,#C9A84C 100%);
  border:none;
  color:#000;
  font-weight:800;
  font-size:0.72rem;
  padding:10px;
  border-radius:40px;
  margin-top:12px;
  cursor:pointer;
  transition:0.22s cubic-bezier(0.2,0.9,0.4,1.05);
  font-family:'DM Sans',sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  letter-spacing:0.02em;
  box-shadow:0 4px 16px rgba(201,168,76,0.28);
}
.order-wa-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(201,168,76,0.45);
  filter:brightness(1.08);
}
.add-cart-btn{
  width:100%;margin-top:0.4rem;
  padding:9px 14px;border-radius:50px;border:1.5px solid rgba(201,168,76,0.3);
  background:rgba(201,168,76,0.06);color:var(--gold);
  font-size:0.72rem;font-weight:700;
  font-family:'DM Sans',sans-serif;
  cursor:pointer;transition:0.18s;
  display:flex;align-items:center;justify-content:center;gap:5px;
}
.add-cart-btn:hover{background:rgba(201,168,76,0.15);border-color:var(--gold);}
.add-cart-btn.added{background:rgba(201,168,76,0.18);border-color:var(--gold);color:var(--gold-light);}

/* Stock Badge */
.stock-badge{display:inline-flex;align-items:center;gap:4px;font-size:0.6rem;font-weight:700;padding:3px 8px;border-radius:20px;margin-bottom:6px;}
.stock-badge.in-stock{background:rgba(0,200,83,0.1);color:#00C853;border:1px solid rgba(0,200,83,0.25);}
.stock-badge.low-stock{background:rgba(255,165,0,0.1);color:#FFA500;border:1px solid rgba(255,165,0,0.25);}
.stock-badge.out-stock{background:rgba(255,70,70,0.08);color:#FF6B6B;border:1px solid rgba(255,70,70,0.2);}

/* Auth Badges */
.auth-badge-strip{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  margin:5px 0 6px;
}
.auth-badge{
  display:inline-flex;
  align-items:center;
  gap:3px;
  font-size:0.52rem;
  font-weight:800;
  letter-spacing:0.04em;
  padding:3px 7px 3px 5px;
  border-radius:20px;
  line-height:1;
  white-space:nowrap;
}
.auth-badge.sealed{ background:rgba(201,168,76,0.1); border:1px solid rgba(201,168,76,0.3); color:#C9A84C; }
.auth-badge.warranty{ background:rgba(37,211,102,0.08); border:1px solid rgba(37,211,102,0.25); color:#25d366; }
.auth-badge.original{ background:rgba(99,179,255,0.08); border:1px solid rgba(99,179,255,0.22); color:#63B3FF; }
.auth-badge.acc-genuine{ background:rgba(201,168,76,0.07); border:1px solid rgba(201,168,76,0.2); color:rgba(201,168,76,0.85); }
.auth-badge.lipa-auth{ background:rgba(201,168,76,0.07); border:1px solid rgba(201,168,76,0.2); color:rgba(201,168,76,0.8); }
.auth-badge-strip.modal-badges .auth-badge{ font-size:0.6rem; padding:4px 9px 4px 6px; }
.auth-badge svg{flex-shrink:0;}

/* Stars Row */
.stars-row{display:flex;align-items:center;gap:5px;margin:4px 0 2px;flex-wrap:wrap;}

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8,7,5,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), background 0.18s, border-color 0.18s;
  flex-shrink: 0;
  padding: 0;
}
.wishlist-btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.4);
  transform: scale(1.12);
}
.wishlist-btn.wishlisted {
  background: rgba(220,60,80,0.15);
  border-color: rgba(220,60,80,0.45);
}
.wishlist-btn.wishlisted svg { fill: #e63950; stroke: #e63950; }
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); }
  65%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.wishlist-btn.pop { animation: heartPop 0.38s cubic-bezier(0.34,1.56,0.64,1); }

/* ══════════════════════════════════════════════════
   NAV ICON BUTTONS — Premium v2
   Wrap + button + tooltip + animated badge counts
   ══════════════════════════════════════════════════ */

/* Wrapper provides the tooltip positioning context */
.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip label — appears below the icon */
.nav-icon-tooltip {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: linear-gradient(135deg, #1a1710, #0d0c09);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.nav-icon-wrap:hover .nav-icon-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* The icon button itself */
.nav-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.16);
  border-radius: 12px;
  cursor: pointer;
  color: rgba(201,168,76,0.8);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.18s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-icon-btn:hover {
  background: rgba(201,168,76,0.13);
  border-color: rgba(201,168,76,0.5);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(201,168,76,0.15);
}
.nav-icon-btn:active {
  transform: translateY(0) scale(0.94);
  box-shadow: none;
}

/* Keep legacy class names pointing to the same button */
.nav-search-btn, .nav-cart-btn, .nav-wishlist-btn {
  /* handled by .nav-icon-btn above */
}

/* Ripple effect on click */
.nav-icon-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(201,168,76,0.25) 0%, transparent 65%);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.nav-icon-btn:active .nav-icon-ripple {
  opacity: 1;
  transform: scale(2.2);
}

/* Badge counts — cart & wishlist */
.cart-count, .wishlist-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  background: linear-gradient(135deg, #e63950, #c4233c);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a0807;
  box-shadow: 0 2px 8px rgba(230,57,80,0.45);
  animation: badgePop 0.3s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 1;
}
@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
/* Wishlist heart fill — active state set by JS */
.nav-wishlist-btn.has-items svg {
  fill: rgba(230,57,80,0.18);
  stroke: #e63950;
}
.wishlist-count { background: linear-gradient(135deg, #e63950, #c4233c); }

/* Nav Search Overlay */
.nav-search-overlay{
  display:none;position:fixed;top:68px;left:0;right:0;z-index:190;
  background:rgba(8,7,5,0.98);
  backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(201,168,76,0.18);
  padding:1rem;
  width:100%;
  box-sizing:border-box;
}
.nav-search-overlay.open{display:block;}
.nav-search-inner{
  max-width:700px;margin:0 auto;
  display:flex;align-items:center;gap:0.8rem;
}
.nav-search-field{
  flex:1;padding:12px 20px;
  background:var(--card-bg);
  border:1px solid rgba(201,168,76,0.25);
  border-radius:50px;
  color:var(--white);font-size:0.88rem;
  font-family:'DM Sans',sans-serif;
  outline:none;transition:0.2s;
}
.nav-search-field:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,168,76,0.08);}
.nav-search-close{
  background:transparent;border:1px solid rgba(255,255,255,0.1);
  border-radius:50%;width:32px;height:32px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;color:var(--white-dim);font-size:1rem;
  flex-shrink:0;transition:0.2s;
}
.nav-search-close:hover{border-color:var(--gold);color:var(--gold);}
.nav-search-results{ max-width:700px; margin:0.8rem auto 0; display:none; }
.nav-search-results.has-results{display:block;}
.nav-search-result-item{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:0.75rem 1rem;border-radius:14px;
  border:1px solid rgba(201,168,76,0.1);
  background:var(--card-bg);margin-bottom:0.4rem;
  cursor:pointer;transition:0.18s;
}
.nav-search-result-item:hover{border-color:rgba(201,168,76,0.35);background:var(--card-hover);}
.nav-sri-name{font-size:0.82rem;font-weight:600;color:var(--white);}
.nav-sri-price{font-size:0.78rem;font-weight:700;color:var(--gold);white-space:nowrap;}
.nav-sri-brand{font-size:0.62rem;color:var(--white-dim);margin-top:1px;}
.nav-search-no-result{font-size:0.8rem;color:var(--white-dim);padding:0.5rem 0.2rem;}

/* Cart & Wishlist Drawers */
.cart-overlay, .wishlist-overlay{
  display:none;position:fixed;inset:0;z-index:400;
  background:rgba(0,0,0,0.65);backdrop-filter:blur(4px);
}
.cart-overlay.open, .wishlist-overlay.open{display:block;}
.cart-drawer, .wishlist-drawer{
  position:fixed;top:0;right:-420px;width:min(420px,100vw);height:100%;
  background:var(--black-surface);
  border-left:1px solid rgba(201,168,76,0.2);
  z-index:401;transition:right 0.32s cubic-bezier(0.22,1,0.36,1);
  display:flex;flex-direction:column;
  overflow:hidden;
  box-shadow:-8px 0 60px rgba(0,0,0,0.8), -1px 0 0 rgba(201,168,76,0.1);
}
.cart-drawer.open, .wishlist-drawer.open{right:0;}
.cart-header, .wishlist-drawer-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:1.2rem 1.4rem;
  border-bottom:1px solid rgba(201,168,76,0.15);
  flex-shrink:0;
}
.cart-header-title, .wishlist-drawer-title{
  font-family:'Playfair Display',serif;
  font-size:1.1rem;font-weight:700;
  display:flex;align-items:center;gap:0.5rem;
}
.cart-header-title{color:var(--gold);}
.wishlist-drawer-title{color:#e63950;}
.cart-close-btn, .wishlist-drawer-close{
  background:transparent;border:1px solid rgba(255,255,255,0.1);
  border-radius:50%;width:32px;height:32px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;color:var(--white-dim);font-size:1.1rem;transition:0.2s;
}
.cart-close-btn:hover, .wishlist-drawer-close:hover{border-color:var(--gold);color:var(--gold);}
.cart-body, .wishlist-drawer-body{flex:1;overflow-y:auto;padding:1rem 1.4rem;}
.cart-empty, .wishlist-empty{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  height:60%;gap:0.8rem;color:var(--white-dim);text-align:center;
}
.cart-empty-icon, .wishlist-empty-icon{font-size:3rem;opacity:0.4;}
.cart-item, .wishlist-item{
  display:flex;gap:0.9rem;align-items:flex-start;
  padding:0.9rem 0;border-bottom:1px solid rgba(255,255,255,0.05);
}
.cart-item-thumb, .wishlist-item-thumb{
  width:54px;height:54px;min-width:54px;
  border-radius:10px;
  background:linear-gradient(145deg,#0f0d0a,#161309);
  border:1px solid rgba(201,168,76,0.15);
  overflow:hidden;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.cart-item-details, .wishlist-item-details{flex:1;min-width:0;}
.cart-item-name, .wishlist-item-name{font-size:0.82rem;font-weight:600;color:var(--white);line-height:1.3;}
.cart-item-price, .wishlist-item-price{font-size:0.78rem;font-weight:700;color:var(--gold);margin-top:3px;}
.cart-item-qty{display:flex;align-items:center;gap:0.5rem;margin-top:6px;}
.qty-btn{
  width:24px;height:24px;border-radius:50%;
  background:rgba(201,168,76,0.1);border:1px solid rgba(201,168,76,0.25);
  color:var(--gold);font-size:0.9rem;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:0.15s;flex-shrink:0;
}
.qty-btn:hover{background:rgba(201,168,76,0.22);}
.qty-num{font-size:0.78rem;font-weight:700;color:#fff;min-width:16px;text-align:center;}
.cart-item-remove, .wishlist-item-remove{
  background:transparent;border:none;
  color:rgba(255,255,255,0.2);cursor:pointer;
  font-size:1rem;padding:2px;transition:0.15s;flex-shrink:0;
}
.cart-item-remove:hover, .wishlist-item-remove:hover{color:#ff6b6b;}
.cart-footer, .wishlist-footer{
  padding:1.2rem 1.4rem;
  border-top:1px solid rgba(201,168,76,0.15);
  flex-shrink:0;
  background:var(--black-surface);
}
.wishlist-footer.visible{display:block;}

.cart-total-row{
  display:flex;justify-content:space-between;align-items:center;
  margin-bottom:1rem;
}
.cart-total-label{font-size:0.75rem;color:var(--white-dim);text-transform:uppercase;letter-spacing:0.06em;}
.cart-total-amount{
  font-family:'Playfair Display',serif;
  font-size:1.3rem;font-weight:800;
  background:var(--gold-gradient-text);
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
}
.cart-checkout-btn, .cart-clear-btn, .wishlist-wa-all, .wishlist-clear-btn{ width:100%; margin-top:0.5rem; padding:12px; border-radius:14px; cursor:pointer; transition:0.18s; font-family:'DM Sans',sans-serif; font-weight:700; }

/* Floating WA */
.floating-wa{position:fixed;bottom:24px;right:24px;z-index:350;}
.floating-wa-tooltip{
  position:absolute;right:68px;top:50%;transform:translateY(-50%);
  background:linear-gradient(135deg,rgba(10,9,7,0.97),rgba(20,18,12,0.97));
  border:1px solid rgba(37,211,102,0.35);
  color:#fff;font-size:0.72rem;font-weight:600;white-space:nowrap;
  padding:7px 14px;border-radius:30px;pointer-events:none;
  opacity:0;transition:opacity 0.22s,transform 0.22s;
  transform:translateY(-50%) translateX(6px);
  box-shadow:0 4px 20px rgba(0,0,0,0.5);
  letter-spacing:0.01em;
}
.floating-wa:hover .floating-wa-tooltip{opacity:1;transform:translateY(-50%) translateX(0);}

/* Online indicator dot */
.floating-wa-online-dot{
  position:absolute;top:3px;right:3px;
  width:11px;height:11px;
  background:#25d366;border-radius:50%;
  border:2px solid #0a0807;
  z-index:1;
  box-shadow:0 0 6px rgba(37,211,102,0.7);
  animation:onlinePulse 2.4s ease-in-out infinite;
}
@keyframes onlinePulse{
  0%,100%{box-shadow:0 0 5px rgba(37,211,102,0.6);}
  50%{box-shadow:0 0 12px rgba(37,211,102,0.9),0 0 20px rgba(37,211,102,0.3);}
}

.floating-wa-btn{
  width:56px;height:56px;border-radius:50%;border:none;
  background:linear-gradient(145deg,#2dce6a,#20b857);
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 32px rgba(37,211,102,0.42), 0 2px 8px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
  transition:transform 0.24s var(--transition-spring), box-shadow 0.24s ease;
  position:relative;overflow:hidden;
}
.floating-wa-btn::before{
  content:'';
  position:absolute;inset:0;
  background:radial-gradient(circle at 35% 35%,rgba(255,255,255,0.18),transparent 65%);
  border-radius:50%;
  pointer-events:none;
}
.floating-wa-btn:hover{
  transform:scale(1.1) translateY(-3px);
  box-shadow:0 16px 44px rgba(37,211,102,0.58),0 4px 14px rgba(0,0,0,0.5),inset 0 1px 0 rgba(255,255,255,0.2);
}
.floating-wa-btn:active{transform:scale(0.95) translateY(0);}

/* Pulse ring that breathes behind the FAB */
.floating-wa-pulse{
  position:absolute;inset:-4px;
  border-radius:50%;
  border:2px solid rgba(37,211,102,0.35);
  animation:waPulseRing 2.8s ease-out infinite;
  pointer-events:none;
}
@keyframes waPulseRing{
  0%{transform:scale(1);opacity:0.7;}
  70%{transform:scale(1.35);opacity:0;}
  100%{transform:scale(1.35);opacity:0;}
}

/* Scroll Top */
.scroll-top{
  position:fixed;bottom:90px;right:26px;z-index:299;
  width:40px;height:40px;
  background:rgba(15,13,9,0.9);border:1px solid rgba(201,168,76,0.25);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  cursor:pointer;opacity:0;pointer-events:none;
  transition:opacity 0.3s,transform 0.2s;backdrop-filter:blur(10px);
}
.scroll-top.visible{opacity:1;pointer-events:all;}
.scroll-top:hover{transform:translateY(-2px);border-color:var(--gold);}

/* Toast */
.toast-msg{
  position:fixed;bottom:90px;left:50%;transform:translateX(-50%);
  background:var(--gold-gradient);color:#000;
  padding:9px 22px;border-radius:40px;
  font-size:0.75rem;font-weight:800;z-index:600;
  display:none;white-space:nowrap;
  box-shadow:0 8px 28px rgba(201,168,76,0.35), 0 2px 8px rgba(0,0,0,0.4);
}
.toast-msg.show{display:block;animation:fadeToast 2.5s ease forwards;}
@keyframes fadeToast{
  0%{opacity:0;transform:translateX(-50%) translateY(8px)}
  15%{opacity:1;transform:translateX(-50%) translateY(0)}
  75%{opacity:1}
  100%{opacity:0;transform:translateX(-50%) translateY(-4px)}
}

/* Modals */
.modal-overlay, .specs-modal-overlay, .confirm-modal-overlay{
  position:fixed;top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,0.94);backdrop-filter:blur(20px);
  z-index:500;display:none;align-items:center;justify-content:center;padding:1rem;
}
.modal-overlay.active, .specs-modal-overlay.active, .confirm-modal-overlay.active{display:flex;}
.payment-modal, .specs-modal, .confirm-modal{
  background:var(--black-surface);
  border:1px solid rgba(201,168,76,0.22);
  border-radius:28px;
  max-width:560px;
  width:100%;
  padding:2rem;
  position:relative;
  box-shadow:0 40px 80px rgba(0,0,0,0.88), 0 0 0 1px rgba(201,168,76,0.06), inset 0 1px 0 rgba(245,223,160,0.05);
  max-height:90vh;
  overflow-y:auto;
}
.modal-close{
  position:absolute;
  top:18px;right:22px;
  font-size:20px;
  cursor:pointer;
  color:var(--white-dim);
  background:none;
  border:none;
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
  border-radius:50%;
  transition:0.15s;
}
.modal-close:hover{background:rgba(255,255,255,0.08);color:#fff;}
.modal-tabs{
  display:flex;gap:0.5rem;margin-bottom:1.5rem;
  background:var(--card-bg);
  border-radius:14px;
  padding:4px;
}
.modal-tab{
  flex:1;padding:9px;border-radius:10px;border:none;
  background:transparent;color:var(--white-dim);
  font-size:0.72rem;font-weight:700;cursor:pointer;transition:0.2s;
}
.modal-tab.active{background:var(--gold-gradient);color:#000;}
.tab-content{display:none;}
.tab-content.active{display:block;}
.payment-info-box{
  background:var(--black);border-radius:18px;
  padding:1.1rem;margin:1rem 0;
  border:1px solid var(--border-gold);
}
.payment-steps{list-style:none;margin:1rem 0;}
.payment-steps li{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-size:0.8rem;}
.step-num{
  width:28px;height:28px;min-width:28px;
  background:var(--gold-gradient);
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.68rem;
  font-weight:800;
  color:#000;
}

/* In The Box – removed from display, but keep styles for any accidental usage */
.in-the-box { display: none; }

/* Specs Grid */
.specs-price{
  font-family:'Playfair Display',serif;font-weight:800;font-size:1.5rem;
  background:var(--gold-gradient-text);-webkit-background-clip:text;
  background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  margin:0.5rem 0 1rem;
}
.specs-grid{display:grid;grid-template-columns:1fr 1fr;gap:0.6rem;margin:1rem 0;}
.spec-item{
  background:var(--card-bg);border-radius:12px;
  padding:0.65rem 0.9rem;border:1px solid var(--border-subtle);
}
.spec-label{font-size:0.6rem;color:var(--white-dim);text-transform:uppercase;letter-spacing:0.06em;margin-bottom:2px;}
.spec-value{font-size:0.78rem;font-weight:600;color:var(--white);}
.you-may-like{margin-top:1.2rem;}
.you-may-like h4{font-size:0.72rem;font-weight:800;text-transform:uppercase;letter-spacing:0.08em;color:var(--gold);margin-bottom:0.7rem;}
.you-may-like-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0.6rem;}
.similar-card{
  background:var(--card-bg);border-radius:12px;padding:0.7rem;
  cursor:pointer;border:1px solid var(--border-subtle);transition:0.2s;
}
.similar-card:hover{border-color:var(--border-gold);}
.s-name{font-size:0.72rem;font-weight:700;color:var(--white);}
.s-price{font-size:0.7rem;color:var(--gold);font-weight:700;margin-top:2px;}

/* Recently Viewed */
.recently-viewed-section { padding: 2.5rem 0 0.5rem; border-top: 1px solid rgba(201,168,76,0.1); margin-top: 2.5rem; }
.rv-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; gap: 1rem; }
.rv-title { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); display: flex; align-items: center; gap: 7px; }
.rv-clear-btn { background: transparent; border: 1px solid rgba(255,255,255,0.08); border-radius: 30px; padding: 4px 12px; font-size: 0.62rem; font-weight: 700; color: var(--white-dim); cursor: pointer; transition: 0.18s; }
.rv-clear-btn:hover { border-color: rgba(201,168,76,0.35); color: var(--gold); }
.rv-track { display: flex; gap: 0.85rem; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-card { flex-shrink: 0; width: 140px; background: var(--card-bg); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 0.75rem; cursor: pointer; transition: var(--transition); position: relative; overflow: hidden; }
.rv-card:hover { border-color: rgba(201,168,76,0.35); background: var(--card-hover); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(201,168,76,0.07); }
.rv-img { width: 100%; height: 90px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg,#0f0d0a,#161309); border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden; }
.rv-brand { font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--gold); margin-bottom: 2px; }
.rv-name { font-size: 0.7rem; font-weight: 700; color: var(--white); line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-price { font-size: 0.78rem; font-weight: 800; background: var(--gold-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* Flash Sale */
.flash-sale-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(255,80,0,0.15), rgba(201,168,76,0.12));
  border: 1.5px solid rgba(255,120,0,0.4);
  border-radius: 30px; padding: 5px 14px;
  font-size: 0.62rem; font-weight: 800; color: #ff8c42;
  text-transform: uppercase; letter-spacing: 0.07em;
  animation: flashBadgePulse 2s ease-in-out infinite;
}
.flash-dot { width: 7px; height: 7px; background: #ff6030; border-radius: 50%; box-shadow: 0 0 8px rgba(255,96,48,0.8); animation: livePulse 1.2s ease-in-out infinite; flex-shrink: 0; }
.flash-countdown-wrap {
  background: linear-gradient(135deg, rgba(255,80,0,0.07), rgba(201,168,76,0.06));
  border: 1px solid rgba(255,120,0,0.2);
  border-radius: 14px; padding: 0.8rem 1rem;
  margin-top: 0.8rem; display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
}
.flash-countdown-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: #ff8c42; white-space: nowrap; flex-shrink: 0; }
.flash-countdown-timer { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.flash-unit { display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,0.35); border-radius: 8px; padding: 4px 8px; min-width: 38px; border: 1px solid rgba(255,120,0,0.2); }
.flash-num { font-family: 'Orbitron', monospace; font-size: 1.1rem; font-weight: 900; color: var(--white); line-height: 1; letter-spacing: 0.04em; }
.flash-num.urgent { animation: urgencyBlink 0.8s ease-in-out infinite; }
@keyframes urgencyBlink { 0%, 100% { color: var(--gold); } 50% { color: #ff8c42; } }
.flash-lbl { font-size: 0.48rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white-dim); margin-top: 2px; }
.flash-sep { font-size: 1rem; font-weight: 900; color: rgba(255,120,0,0.5); margin: 0 1px; align-self: flex-start; margin-top: 3px; }

.flash-banner {
  background: linear-gradient(135deg, #1a0800, #110a00, #1a0800);
  border-top: 1px solid rgba(255,120,0,0.25);
  border-bottom: 1px solid rgba(255,120,0,0.25);
  padding: 0; position: relative; overflow: hidden;
}
.flash-banner-inner {
  max-width: 1360px; margin: 0 auto; padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.flash-banner-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #ff6030, #c94000);
  color: #fff; border: none; border-radius: 50px;
  padding: 11px 22px; font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem; font-weight: 800; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(255,96,48,0.35);
  white-space: nowrap; flex-shrink: 0;
  animation: flashPulse 2s ease-in-out infinite;
}
@keyframes flashPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); } 50% { box-shadow: 0 0 0 8px rgba(201,168,76,0); } }

/* Footer */
footer{
  background:var(--black-rich);
  border-top:1px solid rgba(201,168,76,0.12);
  padding:3.5rem 0 1.5rem;
  margin-top:2rem;
  box-shadow:0 -1px 0 rgba(201,168,76,0.05);
}
.footer-inner{
  max-width:1360px;margin:auto;padding:0 2rem;
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;
}
.footer-tagline{font-size:0.72rem;color:var(--white-dim);line-height:1.6;max-width:240px;margin-top:0.6rem;}
.footer-col h4{
  font-size:0.62rem;text-transform:uppercase;letter-spacing:0.1em;
  color:var(--gold);margin-bottom:1rem;font-weight:800;
}
.footer-col a,.footer-col span{
  display:block;font-size:0.73rem;color:var(--white-dim);
  margin-bottom:0.5rem;cursor:pointer;transition:0.15s;text-decoration:none;
}
.footer-col a:hover{color:var(--white-muted);}
.footer-bottom{
  max-width:1360px;margin:2rem auto 0;
  padding:1.2rem 2rem 0;
  border-top:1px solid var(--border-subtle);
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:0.5rem;
}
.copyright{font-size:0.63rem;color:var(--white-ghost);}
.footer-badges{display:flex;gap:0.6rem;flex-wrap:wrap;}
.footer-badge{
  background:var(--card-bg);border:1px solid var(--border-subtle);
  border-radius:30px;padding:4px 12px;font-size:0.6rem;color:var(--white-dim);
}
.social-row{display:flex;gap:0.7rem;margin-top:0.8rem;flex-wrap:wrap;}
.social-pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:6px 14px;border-radius:40px;
  border:1px solid rgba(201,168,76,0.2);
  font-size:0.68rem;font-weight:700;
  color:var(--white-dim);cursor:pointer;
  text-decoration:none;transition:0.2s;
}
.social-pill:hover{border-color:var(--gold);color:var(--gold);background:var(--gold-dim);}

/* Blog & Testimonials */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;margin-top:2rem;}
.blog-card{
  background:var(--card-bg);border-radius:20px;overflow:hidden;
  border:1px solid var(--border-subtle);transition:var(--transition);cursor:pointer;
}
.blog-card:hover{border-color:var(--border-gold);transform:translateY(-4px);}
.blog-card-header{ height:100px; background:linear-gradient(135deg,#0f0d09,#1a1710); display:flex; align-items:center; justify-content:center; font-size:3rem; border-bottom:1px solid var(--border-subtle); }
.blog-card-body{padding:1.2rem;}
.blog-tag{ display:inline-block; background:rgba(201,168,76,0.1); border-radius:20px; padding:3px 10px; font-size:0.6rem; font-weight:800; text-transform:uppercase; letter-spacing:0.07em; color:var(--gold); margin-bottom:0.6rem; }
.blog-title{font-size:0.88rem;font-weight:700;color:var(--white);line-height:1.4;margin-bottom:0.4rem;}
.blog-snippet{font-size:0.73rem;color:var(--white-dim);line-height:1.55;}
.blog-date{font-size:0.62rem;color:var(--white-ghost);margin-top:0.6rem;}
.blog-modal-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3);
  border-radius: 40px; padding: 4px 14px; font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold);
  margin-bottom: 0.9rem;
}
#blogModalContent h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800; color: var(--white); margin-bottom: 0.6rem;
  line-height: 1.2; letter-spacing: -0.02em;
}
#blogModalContent h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--gold-light);
  margin: 1.4rem 0 0.5rem; letter-spacing: -0.01em; line-height: 1.25;
}
#blogModalContent p { font-size: 0.85rem; color: var(--white-muted); line-height: 1.75; margin-bottom: 0.7rem; }

.testimonials-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.2rem; margin-top:2rem; }
.testimonial-card{
  background:var(--card-bg); border-radius:20px; padding:1.5rem;
  border:1px solid var(--border-subtle); transition:var(--transition-spring); position:relative;
}
.testimonial-card:hover{border-color:var(--border-gold);box-shadow:var(--shadow-card-hover);}
.testimonial-quote{font-family:'Playfair Display',serif;font-size:3rem;color:var(--gold);line-height:1;opacity:0.3;position:absolute;top:10px;left:18px;}
.testimonial-text{font-size:0.8rem;color:var(--white-muted);line-height:1.65;margin-top:1.8rem;position:relative;z-index:1;}
.testimonial-author{display:flex;align-items:center;gap:0.8rem;margin-top:1rem;}
.testimonial-avatar{ width:36px; height:36px; border-radius:50%; background:var(--gold-dim); display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0; }
.testimonial-name{font-size:0.8rem;font-weight:700;color:var(--white);}
.testimonial-location{font-size:0.65rem;color:var(--white-dim);}
.verified-badge{ display:inline-flex; align-items:center; gap:3px; background:rgba(0,200,83,0.08); border:1px solid rgba(0,200,83,0.2); border-radius:20px; padding:2px 8px; font-size:0.58rem; font-weight:700; color:#00C853; white-space:nowrap; }
.stars{ display:inline-flex; gap:1px; font-size:0.7rem; line-height:1; }
.stars .s-full{color:#F5C518;}
.stars .s-half{color:#F5C518;opacity:0.6;}
.stars .s-empty{color:rgba(255,255,255,0.15);}

/* FAQ */
.faq-category{
  font-size:0.65rem;font-weight:800;text-transform:uppercase;
  letter-spacing:0.1em;color:var(--gold);
  margin:2rem 0 0.8rem;
  padding-bottom:0.5rem;
  border-bottom:1px solid var(--border-gold);
}
.faq-item{
  background:var(--card-bg);border-radius:16px;
  padding:1.1rem 1.3rem;margin-bottom:0.6rem;
  border:1px solid var(--border-subtle);cursor:pointer;transition:0.2s;
}
.faq-item:hover{border-color:var(--border-gold);}
.faq-item.open{border-color:rgba(201,168,76,0.3);}
.faq-q{display:flex;justify-content:space-between;align-items:center;font-size:0.85rem;font-weight:700;color:var(--white);}
.faq-arrow{font-size:0.7rem;color:var(--gold);transition:0.2s;flex-shrink:0;}
.faq-item.open .faq-arrow{transform:rotate(180deg);}
.faq-a{max-height:0;overflow:hidden;font-size:0.8rem;color:var(--white-dim);line-height:1.6;transition:max-height 0.35s ease,padding 0.3s;}
.faq-item.open .faq-a{max-height:300px;padding-top:0.8rem;}

/* Compare Table */
.compare-wrapper{overflow-x:auto;margin-top:1.5rem;-webkit-overflow-scrolling:touch;}
.compare-table{width:100%;border-collapse:collapse;}
.compare-table th,.compare-table td{ padding:12px 16px;text-align:left; font-size:0.8rem; border-bottom:1px solid var(--border-subtle); }
.compare-table th{font-size:0.7rem;font-weight:800;text-transform:uppercase;letter-spacing:0.07em;}
.cash-col{color:var(--gold);}
.lipa-col{color:#7eb8f7;}
.check{color:var(--mpesa-green);font-weight:700;}

/* About Page */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;}
.founder-portrait{
  background:linear-gradient(145deg,#0f0d09,#1a1708);
  border:1px solid rgba(201,168,76,0.3);
  border-radius:28px;
  padding:2.5rem;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.founder-avatar{font-size:5rem;margin-bottom:1rem;}
.founder-name{ font-family:'Playfair Display',serif; font-size:1.4rem; font-weight:800; background:var(--gold-gradient-text); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
.founder-title{font-size:0.75rem;color:var(--white-dim);margin-top:0.3rem;text-transform:uppercase;letter-spacing:0.08em;}
.founder-divider{width:50px;height:2px;background:var(--gold-gradient);margin:1rem auto;}

/* Contact Page */
.contact-flex{display:grid;grid-template-columns:1fr 1fr;gap:1.8rem;}
.contact-card-premium{
  background:var(--black-surface);
  border-radius:28px;
  padding:2rem;
  border:1px solid var(--border-gold);
  transition:var(--transition);
}
.contact-card-premium:hover{border-color:rgba(201,168,76,0.4);box-shadow:var(--shadow-gold);}
.card-divider{width:40px;height:2px;background:var(--gold-gradient);margin:0.8rem 0 1rem;}
.payment-row{
  display:flex;
  align-items:center;
  gap:1rem;
  background:var(--black);
  border-radius:14px;
  padding:0.9rem 1.1rem;
  margin-bottom:0.8rem;
  border:1px solid var(--border-subtle);
}
.copy-btn,.copy-small{
  background:rgba(201,168,76,0.08);
  border:1px solid rgba(201,168,76,0.25);
  border-radius:30px;
  padding:4px 12px;
  font-size:0.62rem;
  font-weight:700;
  color:var(--gold);
  cursor:pointer;
  transition:0.15s;
  white-space:nowrap;
}
.mpesa-section{
  background:linear-gradient(135deg,rgba(0,200,83,0.06),rgba(201,168,76,0.06));
  border:1px solid rgba(0,200,83,0.2);
  border-radius:24px;
  padding:1.8rem;
  margin-top:1.2rem;
}
.mpesa-steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-top:1rem;}
.mpesa-step{
  display:flex;
  gap:0.8rem;
  align-items:flex-start;
  background:rgba(0,0,0,0.3);
  border-radius:14px;
  padding:0.9rem 1rem;
}
.btn-mpesa{
  background:linear-gradient(108deg,#00C853,#009624);
  border:none;
  color:#fff;
  font-weight:800;
  font-size:0.8rem;
  padding:11px 22px;
  border-radius:40px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:var(--transition);
  box-shadow:0 4px 16px rgba(0,200,83,0.25);
  white-space:nowrap;
}
.stk-box{
  background:rgba(0,200,83,0.05);
  border:1px solid rgba(0,200,83,0.15);
  border-radius:16px;
  padding:1.1rem;
  margin-top:1rem;
}
.delivery-estimator{margin-top:1.2rem;}
.county-select-wrap{position:relative;}
.county-select-wrap::after{content:'▾';position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--gold);font-size:0.8rem;pointer-events:none;}
.county-select{width:100%;background:rgba(255,255,255,0.04);border:1px solid var(--border-gold);border-radius:12px;color:#fff;font-family:'DM Sans',sans-serif;font-size:0.82rem;padding:11px 36px 11px 14px;appearance:none;cursor:pointer;}
.delivery-result{display:none;margin-top:0.85rem;background:linear-gradient(135deg,rgba(201,168,76,0.08),rgba(201,168,76,0.03));border:1px solid rgba(201,168,76,0.25);border-radius:14px;padding:0.9rem 1rem;}
.delivery-result.show{display:block;}
.map-embed-placeholder{ background:var(--card-bg); border:1px solid var(--border-gold); border-radius:20px; overflow:hidden; height:300px; display:flex; align-items:center; justify-content:center; font-size:0.82rem; color:var(--white-dim); position:relative; }
.map-embed-placeholder iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

/* Lead Bar */
.lead-bar {
  background: linear-gradient(135deg, #0d0c0a 0%, #141108 50%, #0d0c0a 100%);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 2.2rem 0;
  position: relative;
  overflow: hidden;
}
.lead-bar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.lead-bar-copy { flex: 1; min-width: 220px; }
.lead-bar-eyebrow { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 0.35rem; display: flex; align-items: center; gap: 6px; }
.lead-bar-headline { font-family: 'Playfair Display', serif; font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 0.3rem; }
.lead-bar-sub { font-size: 0.78rem; color: var(--white-dim); line-height: 1.5; }
.lead-bar-form { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; flex-shrink: 0; }
.lead-phone-input { padding: 12px 18px; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(201,168,76,0.3); border-radius: 50px; color: var(--white); font-size: 0.84rem; font-family: 'DM Sans', sans-serif; outline: none; width: 220px; min-width: 180px; }
.lead-phone-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); }
.lead-wa-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; background: linear-gradient(135deg, #25d366, #128c7e); border: none; border-radius: 50px; color: #fff; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 800; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap; box-shadow: 0 4px 18px rgba(37,211,102,0.25); flex-shrink: 0; }
.lead-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(37,211,102,0.38); }
.lead-success-state { display: none; align-items: center; gap: 10px; background: rgba(37,211,102,0.08); border: 1px solid rgba(37,211,102,0.25); border-radius: 50px; padding: 11px 20px; font-size: 0.82rem; font-weight: 700; color: #25d366; }
.lead-success-state.show { display: flex; }
.lead-bar-dismiss { position: absolute; top: 12px; right: 16px; background: transparent; border: none; color: var(--white-dim); font-size: 1rem; cursor: pointer; opacity: 0.5; transition: opacity 0.2s; padding: 4px; line-height: 1; }
.lead-bar-dismiss:hover { opacity: 1; }

/* Policy & Warranty */
.policy-section{margin-bottom:1.8rem;}
.policy-section h3{color:var(--white);margin-bottom:0.7rem;}
.policy-section ul{padding-left:1.3rem;}
.policy-section ul li{font-size:0.82rem;color:var(--white-dim);line-height:1.6;margin-bottom:0.4rem;}
.policy-highlight{
  background:rgba(201,168,76,0.06);border-left:4px solid var(--gold);
  border-radius:0 18px 18px 0;padding:1.2rem 1.5rem;
  font-size:0.85rem;color:var(--white-muted);line-height:1.65;margin-bottom:2rem;
}

/* Confirmation Modal */
.confirm-modal-header{
  background:linear-gradient(135deg,rgba(201,168,76,0.12),rgba(201,168,76,0.03));
  border-bottom:1px solid rgba(201,168,76,0.12);
  padding:1.8rem 1.8rem 1.4rem;
  border-radius:28px 28px 0 0;
  text-align:center;
}
.confirm-checkmark{
  width:64px;height:64px;border-radius:50%;
  background:linear-gradient(135deg,rgba(37,211,102,0.15),rgba(37,211,102,0.05));
  border:2px solid rgba(37,211,102,0.4);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 1rem;font-size:1.8rem;
  animation:confirmPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes confirmPop{ 0%{transform:scale(0);opacity:0;} 60%{transform:scale(1.15);} 100%{transform:scale(1);opacity:1;} }
.confirm-order-num{ font-size:0.65rem; font-weight:800; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); margin-bottom:0.3rem; }
.confirm-title{ font-family:'Playfair Display',serif; font-size:1.3rem; font-weight:700; color:#fff; margin-bottom:0.25rem; }
.confirm-subtitle{font-size:0.76rem;color:var(--white-dim);line-height:1.5;}
.confirm-body{padding:1.4rem 1.8rem;}
.confirm-section-label{ font-size:0.6rem; font-weight:800; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold); margin-bottom:0.6rem; }
.confirm-items{ background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07); border-radius:14px; overflow:hidden; margin-bottom:1rem; }
.confirm-item{ display:flex; justify-content:space-between; align-items:center; padding:0.75rem 1rem; gap:0.5rem; border-bottom:1px solid rgba(255,255,255,0.05); }
.confirm-total-row{
  display:flex; justify-content:space-between; align-items:center;
  background:rgba(201,168,76,0.06); border:1px solid rgba(201,168,76,0.18);
  border-radius:12px; padding:0.85rem 1rem; margin-bottom:1rem;
}
.confirm-info-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0.6rem; margin-bottom:1.2rem; }
.confirm-info-cell{ background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07); border-radius:12px; padding:0.75rem 0.9rem; }
.confirm-steps{ background:rgba(37,211,102,0.04); border:1px solid rgba(37,211,102,0.12); border-radius:14px; padding:0.9rem 1rem; margin-bottom:1rem; }
.confirm-step{ display:flex; align-items:flex-start; gap:10px; margin-bottom:0.5rem; font-size:0.75rem; color:var(--white-dim); line-height:1.45; }
.confirm-wa-btn{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:14px; border-radius:16px; background:linear-gradient(135deg,#25d366,#128c7e); border:none; color:#fff; font-family:'DM Sans',sans-serif; font-size:0.88rem; font-weight:700; cursor:pointer; transition:transform 0.2s,box-shadow 0.2s; margin-bottom:0.75rem; text-decoration:none; }
.confirm-wa-btn:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(37,211,102,0.35); }
.confirm-close-btn{ display:block; width:100%; padding:12px; border-radius:14px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); color:var(--white-dim); font-family:'DM Sans',sans-serif; font-size:0.82rem; cursor:pointer; transition:background 0.2s; }
.confirm-close-btn:hover{ background:rgba(255,255,255,0.09); }

/* Trust Badges Row */
.trust-badges-row{ display:flex; flex-wrap:wrap; gap:0.8rem; margin-top:1.5rem; }
.trust-badge-item{ display:flex; align-items:center; gap:8px; background:var(--card-bg); border:1px solid var(--border-gold); border-radius:40px; padding:8px 18px; font-size:0.72rem; font-weight:600; color:var(--white-muted); }
.trust-badge-item .tb-icon{font-size:1rem;}

/* Hero Mobile Strip */
.heroMobileStrip {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 40px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--white-muted);
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .heroMobileStrip { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-card { display: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: 0; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .compare-wrapper { overflow-x: auto; }
  .compare-table { min-width: 480px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; padding: 0 1.2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.8rem; padding: 1rem 1.2rem 0; }
  .container { padding: 0 1.2rem; }
  section { padding: 3rem 0; }
  .btn-gold, .btn-outline, .btn-dark, .btn-green { padding: 11px 20px; font-size: 0.78rem; }
}
@media (max-width: 480px) {
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn-gold, .hero-cta-row .btn-outline, .hero-cta-row .btn-green { width: 100%; justify-content: center; }
  .stats-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
  .stat-item { padding: 0.55rem 0.9rem; }
}
@media (max-width: 380px) {
  .pillars-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.85rem; }
}

/* ===== GLOBAL MOBILE OVERFLOW CONTAINMENT =====
   Prevents any descendant from stretching the viewport width.
   Applied broadly so individual components stay contained.
   ================================================= */
@media (max-width: 900px) {
  .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  section {
    width: 100%;
    overflow-x: hidden;
  }

  /* Prevent any inline-flex scrolling track from expanding the page */
  .trust-band,
  .brand-scroll-section,
  .brand-track-wrapper {
    width: 100%;
    overflow: hidden;
  }

  /* Flash banner inner — prevent overflow from flex children */
  .flash-banner-inner {
    width: 100%;
    box-sizing: border-box;
  }

  /* Nav search overlay — full-width contained */
  .nav-search-overlay {
    padding: 0.9rem 1rem;
  }

  /* Hero cta row — allow wrapping */
  .hero-cta-row {
    flex-wrap: wrap;
  }

  /* Footer inner — constrain */
  .footer-inner,
  .footer-bottom {
    box-sizing: border-box;
    width: 100%;
  }

  /* Prevent any button or badge from stretching */
  .deal-badge,
  .section-chip,
  .flash-sale-badge,
  .verified-badge {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  /* Prevent wide inline-block/flex items from overflowing */
  .stats-group,
  .trust-badges-row,
  .hero-cta-row {
    max-width: 100%;
    overflow: hidden;
  }

  /* Horizontal scroll tracks stay inside their parent */
  .rv-track,
  .filter-buttons {
    max-width: 100%;
  }

  /* Product cards */
  .product-card,
  .lipa-card,
  .pillar-card {
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 600px) {
  /* Ensure no fixed or large min-width leaks out */
  .payment-modal,
  .specs-modal,
  .confirm-modal {
    width: calc(100% - 2rem);
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Search quick chips wrap on small screens */
  #navSearchQuickChips {
    flex-wrap: wrap;
  }

  /* Hero stat numbers — prevent clipping */
  .stat-number {
    font-size: 1.1rem;
  }

  /* Flash countdown units wrap on small screens */
  .flash-countdown-wrap {
    flex-wrap: wrap;
  }

  /* Trust badges row — allow full wrap */
  .trust-badges-row {
    gap: 0.5rem;
  }
  .trust-badge-item {
    padding: 6px 12px;
    font-size: 0.67rem;
  }

  /* Mobile menu chips */
  .mobile-menu-chips {
    gap: 0.35rem;
  }
  .mobile-menu-chip {
    font-size: 0.72rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ===== LIPA PAGE — MKOPA / SUNKING CARDS ===== */
.lipa-provider-card {
  background: linear-gradient(160deg,#131109,#0c0b08);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 24px;
  padding: 1.6rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.lipa-providers-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1.2rem;
  width: 100%;
}
@media(max-width:700px) {
  .lipa-providers-grid {
    grid-template-columns: 1fr;
  }
}

/* Lipa plan phone cards */
.lipa-phone-card {
  background: linear-gradient(160deg,#131109,#0c0b08);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 1rem;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.lipa-phones-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1rem;
  width: 100%;
}
@media(max-width:600px) {
  .lipa-phones-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 0.65rem;
  }
  .lipa-phone-card {
    border-radius: 16px;
    padding: 0.85rem;
  }
}
@media(max-width:380px) {
  .lipa-phones-grid {
    grid-template-columns: 1fr;
  }
}

/* Lipa calculator removed — Lipa Pole Pole page uses specific MKOPA & SunKing phone cards only. */

/* ===== SHOP PAGE — FILTER BAR MOBILE ===== */
@media(max-width:900px) {
  .sidebar {
    position: static !important;
    top: auto;
    padding: 1rem;
    border-radius: 16px;
    overflow: hidden;
  }
  .filter-buttons {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.4rem;
    padding-bottom: 4px;
  }
  .filter-buttons::-webkit-scrollbar { display: none; }
  .filter-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .price-range-labels {
    flex-wrap: wrap;
    gap: 4px;
  }
}

/* ===== SHOP TOOLBAR MOBILE ===== */
@media(max-width:600px) {
  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .sort-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .sort-select {
    flex: 1;
  }
  .results-count {
    font-size: 0.72rem;
  }
}

/* ===== PRODUCT CARD — MOBILE TIGHTENING ===== */
@media(max-width:600px) {
  /* aspect-ratio on .product-img handles sizing — no fixed height override needed */
  .product-img { aspect-ratio: 3 / 2; }
  .product-img img { padding: 8px 10px 4px; }
  .product-info { padding: 0.85rem 0.8rem 0.8rem; }
  .product-title { font-size: 0.82rem; }
  .price-product { font-size: 1.08rem; }
  .specs-sm { font-size: 0.64rem; }
  .order-wa-btn { font-size: 0.67rem; padding: 8px; }
  .add-cart-btn { font-size: 0.68rem; padding: 7px 10px; }
  .auth-badge { font-size: 0.48rem; padding: 2px 5px 2px 4px; }
  .wishlist-btn { width: 28px; height: 28px; }
}
@media(max-width:380px) {
  /* On very small screens tighten the ratio slightly so cards don't get too tall */
  .product-img { aspect-ratio: 3 / 2; }
  .product-img img { padding: 6px 8px 3px; }
  .product-title { font-size: 0.77rem; }
  .price-product { font-size: 1rem; }
}

/* ===== FLASH BANNER MOBILE ===== */
@media(max-width:600px) {
  .flash-banner-inner {
    padding: 0.9rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .flash-countdown-wrap {
    flex-direction: column;
    gap: 0.5rem;
  }
  .flash-banner-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ===== MODALS — MOBILE FULL-SCREEN ===== */
@media(max-width:600px) {
  .payment-modal, .specs-modal, .confirm-modal {
    padding: 1.4rem 1.1rem;
    border-radius: 22px;
    max-height: 92vh;
  }
  .confirm-info-grid {
    grid-template-columns: 1fr;
  }
  .modal-tabs {
    gap: 0.3rem;
  }
  .modal-tab {
    font-size: 0.65rem;
    padding: 8px 6px;
  }
}

/* ===== DELIVERY / LOCATION SECTION MOBILE ===== */
@media(max-width:600px) {
  .contact-flex {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .mpesa-steps-grid {
    grid-template-columns: 1fr;
  }
  .lead-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
  }
  .lead-bar-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .lead-phone-input {
    width: 100%;
    min-width: unset;
  }
  .lead-wa-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== FLOATING WA + SCROLL-TOP — SAFE AREA ===== */
.floating-wa {
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  right: max(24px, env(safe-area-inset-right, 24px));
}
.scroll-top {
  bottom: max(90px, calc(env(safe-area-inset-bottom, 0px) + 90px));
}

/* ===== LIPA TABS & PROVIDER PANELS — CANONICAL DEFINITION ===== */
/*
  ⚠️  SINGLE SOURCE OF TRUTH — do NOT redeclare these in lipa.php or accessories.php inline <style> blocks.
  Issue #19: triple-declaration was causing specificity conflicts. All lipa-tab and
  lipa-provider-panel styles must live here only. Inline duplicates in lipa.php and
  accessories.php should be removed when those files are next edited.
*/
.lipa-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.lipa-tab {
  padding: 9px 22px;
  border-radius: 50px;
  border: 1px solid rgba(201,168,76,0.25);
  background: transparent;
  color: var(--white-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.lipa-tab.active,
.lipa-tab:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold);
}
.lipa-provider-panel {
  display: none;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.lipa-provider-panel.active {
  display: block;
}
.lipa-provider-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.lipa-provider-logo {
  font-size: 2rem;
  flex-shrink: 0;
}
.lipa-provider-header > div {
  min-width: 0;
  flex: 1;
}
.lipa-note-banner {
  background: rgba(0,200,83,0.06);
  border: 1px solid rgba(0,200,83,0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--white-muted);
  margin-bottom: 1.2rem;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* ===== LIPA PRODUCT CARDS — FULL DESIGN SYSTEM ===== */
/*
  These classes are emitted by renderLipaProducts() in main.js.
  All font sizes, spacing, and colour tokens follow the ACECORE
  design system (CSS vars defined in :root above).
*/

/* Grid container — wider min-width than the skeleton placeholder */
.lipa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  align-items: start;
}
@media (max-width: 600px) {
  .lipa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}
@media (max-width: 360px) {
  .lipa-grid {
    grid-template-columns: 1fr;
  }
}

/* Card shell */
.lipa-card {
  position: relative;
  background: linear-gradient(160deg, #131109 0%, #0c0b08 100%);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 20px;
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2,0.9,0.4,1.05),
              border-color 0.2s,
              box-shadow 0.2s;
  overflow: hidden;
  box-sizing: border-box;
}
.lipa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.45) 40%, rgba(245,223,160,0.7) 50%, rgba(201,168,76,0.45) 60%, transparent);
  opacity: 0;
  transition: opacity 0.22s;
}
.lipa-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201,168,76,0.42);
  box-shadow: 0 10px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(201,168,76,0.12);
}
.lipa-card:hover::before { opacity: 1; }

/* Provider accent — top-left corner glow */
.lipa-card--mkopa {
  background: linear-gradient(160deg, #0e1209 0%, #0c0b08 60%);
}
.lipa-card--mkopa::after {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(0,200,83,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.lipa-card--sunking {
  background: linear-gradient(160deg, #13100a 0%, #0c0b08 60%);
}
.lipa-card--sunking::after {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,183,0,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Card header: brand badge + phone icon */
.lipa-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.lipa-card-badge {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.09);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 30px;
  padding: 3px 9px;
  line-height: 1;
}
.lipa-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Phone model name — primary text */
.lipa-card-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0.55rem;
  min-height: 2.4em; /* two-line reserve keeps cards aligned */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Total cost row */
.lipa-card-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.lipa-total-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white-dim);
  white-space: nowrap;
  flex-shrink: 0;
}
.lipa-total-amount {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 800;
  background: linear-gradient(110deg, #C9A84C 0%, #F5DFA0 50%, #C9A84C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Divider */
.lipa-card-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.18), transparent);
  margin-bottom: 0.75rem;
}

/* Payment stats grid */
.lipa-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

/* Stat pill (deposit / daily / weekly) */
.lipa-stat-pill {
  flex: 1 1 auto;
  min-width: 55px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
}
.lipa-stat-pill--deposit {
  background: rgba(0,200,83,0.05);
  border-color: rgba(0,200,83,0.18);
}
.lipa-stat-pill--weekly {
  background: rgba(201,168,76,0.05);
  border-color: rgba(201,168,76,0.18);
}

.lipa-stat-label {
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--white-dim);
  line-height: 1;
}
.lipa-stat-value {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}
.lipa-stat-value--deposit {
  color: #00C853;
}

/* Apply CTA button */
.lipa-apply-btn {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: linear-gradient(135deg, #1a3c26 0%, #0f2218 100%);
  border: 1px solid rgba(0,200,83,0.35);
  border-radius: 12px;
  color: #00C853;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  white-space: nowrap;
}
.lipa-apply-btn:hover {
  background: linear-gradient(135deg, #1e4a2e 0%, #122a1c 100%);
  border-color: rgba(0,200,83,0.65);
  box-shadow: 0 4px 18px rgba(0,200,83,0.18);
  transform: translateY(-1px);
}
.lipa-apply-btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .lipa-card {
    padding: 0.9rem 0.9rem 0.85rem;
    border-radius: 16px;
  }
  .lipa-card-name  { font-size: 0.82rem; }
  .lipa-total-amount { font-size: 0.92rem; }
  .lipa-stat-value { font-size: 0.78rem; }
  .lipa-apply-btn  { font-size: 0.68rem; padding: 8px 10px; }
}
@media (max-width: 360px) {
  .lipa-card-name  { font-size: 0.78rem; }
  .lipa-total-amount { font-size: 0.86rem; }
}


/* ===== GET DIRECTIONS BUTTON ===== */
.directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.directions-btn:hover {
  background: rgba(201,168,76,0.16);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ===== GLOBAL OVERFLOW GUARD ===== */
html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
*, *::before, *::after {
  box-sizing: border-box;
  max-width: 100%;
}
img, video, iframe, embed, object {
  max-width: 100%;
}

/* ===== VARIANT SELECTOR INSIDE MODAL ===== */
.variant-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0 1.2rem;
}
.variant-btn {
  background: rgba(201,168,76,0.08);
  border: 1.5px solid rgba(201,168,76,0.25);
  border-radius: 40px;
  padding: 8px 18px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.4;
  font-family: 'DM Sans', sans-serif;
}
.variant-btn:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.variant-btn.active {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #000;
  box-shadow: 0 4px 14px rgba(201,168,76,0.3);
}
.variant-price {
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-block;
  margin-top: 2px;
  white-space: nowrap;
}
.variant-badge {
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold-light);
  display: inline-block;
  margin: 6px 0 4px;
  text-align: center;
  width: fit-content;
}
.product-card .price-product {
  font-size: 1rem;
  margin: 6px 0;
}
@media (max-width: 600px) {
  .variant-btn {
    padding: 6px 12px;
    font-size: 0.65rem;
  }
  .variant-price {
    font-size: 0.7rem;
  }
  .variant-badge {
    font-size: 0.55rem;
  }
}
.specs-modal {
  max-width: 700px !important;
  padding: 2rem 1.5rem !important;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.spec-item {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: border 0.2s;
}
.spec-item:hover {
  border-color: rgba(201,168,76,0.3);
}
.spec-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 4px;
}
.spec-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}
.flash-countdown-wrap {
  background: linear-gradient(135deg, rgba(255,80,0,0.1), rgba(201,168,76,0.05));
  border-radius: 20px;
  padding: 0.8rem 1rem;
}
.flash-unit {
  background: rgba(0,0,0,0.4);
  min-width: 42px;
}
.flash-num {
  font-size: 1.2rem;
}
button, .filter-chip, .variant-btn, .mobile-menu-chip {
  touch-action: manipulation;
}
@media (max-width: 768px) {
  .btn-gold, .btn-outline, .btn-green {
    padding: 12px 20px;
    font-size: 0.8rem;
  }
  .product-card {
    border-radius: 18px;
  }
  .specs-modal {
    padding: 1.5rem 1rem !important;
  }
}

/* =====================================================================
   ISSUE-5 FIXES — All missing / broken product card & overlay classes
   ===================================================================== */

/* 1. @keyframes flashBadgePulse — was referenced but never defined */
@keyframes flashBadgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.82; transform: scale(1.03); }
}

/* 2. .out-of-stock-card — product cards marked out of stock in renderCash */
.out-of-stock-card {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.35);
  position: relative;
}
.out-of-stock-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: rgba(0,0,0,0.18);
  z-index: 4;
  pointer-events: none;
}
/* Re-enable click so users can still see specs (pointer-events on card itself is
   intentionally blocked above; individual buttons inside need no override because
   out-of-stock logic in JS skips the card click handler entirely). */

/* 3. .wishlist-btn-modal — heart button inside the specs/product modal */
.wishlist-btn-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 9px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white-dim);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.wishlist-btn-modal:hover {
  background: rgba(220,60,80,0.1);
  border-color: rgba(220,60,80,0.35);
  color: #e63950;
  transform: scale(1.05);
}
.wishlist-btn-modal.wishlisted {
  background: rgba(220,60,80,0.15);
  border-color: rgba(220,60,80,0.45);
  color: #e63950;
}
.wishlist-btn-modal.wishlisted svg { fill: #e63950; stroke: #e63950; }
.wishlist-btn-modal.pop { animation: heartPop 0.38s cubic-bezier(0.34,1.56,0.64,1); }

/* 4. .rv-emoji — emoji fallback inside Recently Viewed card image area */
.rv-emoji {
  font-size: 2.8rem;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.4));
}

/* 5. .rv-scroll-wrap — horizontal scroll container for Recently Viewed strip */
.rv-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.rv-scroll-wrap::-webkit-scrollbar { display: none; }

/* 6. .specs-btn — "🔍 Specs" button on each product card (was 100% inline-styled) */
.specs-btn {
  flex: 0.7;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.22);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 10px;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.specs-btn:hover {
  background: rgba(201,168,76,0.18);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
@media (max-width: 600px) {
  .specs-btn {
    font-size: 0.65rem;
    padding: 8px;
  }
}

/* 7. Overlay .active state — JS adds .active, CSS only had .open.
      cart-wishlist.js injects a runtime patch; these canonical rules prevent
      a flash-of-no-overlay on first open before the patch fires. */
.cart-overlay.active    { display: block; }
.wishlist-overlay.active { display: block; }
.nav-search-overlay.active { display: block; }

/* 8. .order-confirm-box & header — defined inline in shop-phones.php;
      moved here so they're pre-loaded and don't FOUC on modal open. */
.order-confirm-box {
  position: relative;
  background: linear-gradient(160deg, #0f0d09 0%, #0a0800 100%);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.8rem 1.8rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.06);
  animation: modalIn 0.26s cubic-bezier(0.22,1,0.36,1);
}
.order-confirm-header {
  text-align: center;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.order-confirm-icon { font-size: 2.2rem; margin-bottom: 0.7rem; }

/* Ensure the orderConfirmModal overlay also responds to .active */
#orderConfirmModal.active { display: flex; }

/* ── Stylish enhancements (Issue-5 note: top-tier, theme-consistent) ── */

/* Product card — refined image-area gradient for deeper richness */
.product-img {
  background: radial-gradient(ellipse at 50% 60%,
    rgba(201,168,76,0.11) 0%,
    rgba(201,168,76,0.04) 30%,
    #0a0806 65%);
}

/* Stock badge inside image area — absolute positioned for cleanliness */
.product-img .stock-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 5;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Specs-btn — gold gradient fill on hover for premium feel */
.specs-btn:hover {
  background: rgba(201,168,76,0.14);
  box-shadow: 0 4px 14px rgba(201,168,76,0.12);
}

/* Recently Viewed card — micro polish */
.rv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 10%, rgba(201,168,76,0.5) 50%, transparent 90%);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 16px 16px 0 0;
}
.rv-card:hover::before { opacity: 1; }
/* ── Popular Right Now — badge + subtitle ───────────────────────────── */
.popular-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(201,168,76,0.13);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 0.52rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.popular-card .rv-img {
  background: linear-gradient(145deg, #0d0b08, #1a1610);
}
.rv-subtitle {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--white-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wishlist modal button — premium size on mobile */
@media (max-width: 600px) {
  .wishlist-btn-modal {
    padding: 8px 14px;
    font-size: 0.7rem;
  }
  .order-confirm-box {
    padding: 1.6rem 1.2rem 1.4rem;
    border-radius: 20px;
  }
}
/* =======================================================================
   BLOG PAGE — FULL ARTICLE VIEW
   Covers: listing section, card link, article layout, featured image,
   post typography, back link, social share, related posts, progress bar.
   Responsive breakpoints: 900px / 600px / 480px
   ======================================================================= */

/* --- Listing Section Wrapper --- */
.blog-listing-section {
  padding: 4rem 0 5rem;
}

/* --- Blog card entrance animation (matches product-card style) --- */
@keyframes blogCardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.blog-card {
  animation: blogCardIn 0.42s cubic-bezier(0.22,1,0.36,1) both;
}
.blog-grid .blog-card-link:nth-child(1) .blog-card { animation-delay: 0.05s; }
.blog-grid .blog-card-link:nth-child(2) .blog-card { animation-delay: 0.10s; }
.blog-grid .blog-card-link:nth-child(3) .blog-card { animation-delay: 0.15s; }
.blog-grid .blog-card-link:nth-child(4) .blog-card { animation-delay: 0.20s; }
.blog-grid .blog-card-link:nth-child(5) .blog-card { animation-delay: 0.25s; }

/* --- Featured Blog Card (hero-style, above the grid) --- */
.blog-featured-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: linear-gradient(150deg, #17140e 0%, #0e0c09 60%, #080706 100%);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s cubic-bezier(0.2,0.9,0.4,1.05),
              border-color 0.22s,
              box-shadow 0.28s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: blogCardIn 0.45s cubic-bezier(0.22,1,0.36,1) 0.02s both;
  position: relative;
}
.blog-featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, rgba(201,168,76,0.7) 35%, rgba(245,223,160,1) 50%, rgba(201,168,76,0.7) 65%, transparent 95%);
  opacity: 0.8;
}
.blog-featured-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 20px 55px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.15), 0 0 30px rgba(201,168,76,0.08);
}
.bfc-image {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  background: radial-gradient(ellipse at 50% 50%, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0.04) 50%, transparent 100%);
  border-right: 1px solid rgba(201,168,76,0.14);
  min-height: 180px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.bfc-body {
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
}
.bfc-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.bfc-read-time {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--white-dim);
  letter-spacing: 0.03em;
}
.bfc-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.bfc-desc {
  font-size: 0.8rem;
  color: var(--white-dim);
  line-height: 1.65;
  max-width: 540px;
}
.bfc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
  transition: gap 0.2s;
}
.blog-featured-card:hover .bfc-cta { gap: 10px; }

@media (max-width: 700px) {
  .blog-featured-card {
    grid-template-columns: 1fr;
  }
  .bfc-image {
    min-height: 100px;
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.14);
    font-size: 3.2rem;
  }
  .bfc-body {
    padding: 1.2rem 1.3rem;
  }
  .bfc-title {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .bfc-image { min-height: 80px; font-size: 2.6rem; }
}

/* Make the entire card a clickable link, preserving card look */
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  outline-offset: 3px;
}
.blog-card-link:focus-visible {
  outline: 2px solid var(--gold);
}
/* Remove the cursor:pointer on .blog-card since the <a> provides it */
.blog-card-link .blog-card {
  cursor: pointer;
}

/* --- Article Wrapper --- */
.blog-post {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

/* --- Back Link --- */
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white-dim);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 7px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  background: rgba(255,255,255,0.03);
  transition: var(--transition);
  margin-bottom: 2rem;
}
.blog-back-link:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: var(--gold-dim);
}

/* --- Article Header --- */
.blog-post-header {
  margin-bottom: 2.5rem;
}
.blog-post-header .blog-tag {
  font-size: 0.68rem;
  padding: 5px 14px;
  margin-bottom: 1rem;
}
.blog-post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

/* --- Post Meta (date · read time · author) --- */
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--white-dim);
  margin-bottom: 1.8rem;
  line-height: 1.4;
}
.blog-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Featured Image --- */
.blog-featured-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, #111008, #0d0c09);
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
}

/* --- Article Body Typography --- */
.blog-post-content {
  font-family: 'DM Sans', sans-serif;
  color: var(--white-muted);
  line-height: 1.8;
  font-size: 0.93rem;
  margin-top: 2.5rem;
}
.blog-post-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 2.2rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.blog-post-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 1.6rem 0 0.5rem;
}
.blog-post-content p {
  font-size: 0.93rem;
  color: var(--white-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.blog-post-content p strong {
  color: var(--white);
  font-weight: 700;
}
.blog-post-content ul,
.blog-post-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}
.blog-post-content ul {
  list-style: none;
  padding-left: 0;
}
.blog-post-content ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.75;
  margin-bottom: 0.55rem;
}
.blog-post-content ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.1em;
  font-size: 0.45rem;
  color: var(--gold);
  line-height: 2;
}
.blog-post-content ol li {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.75;
  margin-bottom: 0.55rem;
}
.blog-post-content a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(232,197,106,0.35);
  text-underline-offset: 3px;
  transition: color 0.18s, text-decoration-color 0.18s;
}
.blog-post-content a:hover {
  color: var(--gold-pale);
  text-decoration-color: var(--gold);
}

/* --- Social Share --- */
.social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3rem;
  padding: 1.2rem 1.4rem;
  background: rgba(201,168,76,0.04);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
}
.social-share span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white-dim);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.social-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 40px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
/* WhatsApp */
.share-wa {
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25D366;
}
.share-wa:hover {
  background: rgba(37,211,102,0.2);
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,211,102,0.2);
}
/* Facebook */
.share-fb {
  background: rgba(66,103,178,0.1);
  border: 1px solid rgba(66,103,178,0.3);
  color: #7B9CE8;
}
.share-fb:hover {
  background: rgba(66,103,178,0.2);
  border-color: rgba(66,103,178,0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(66,103,178,0.15);
}
/* Twitter / X */
.share-tw {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white-muted);
}
.share-tw:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Related Posts --- */
.related-posts {
  margin-top: 2.5rem;
  padding: 1.6rem 1.8rem;
  background: linear-gradient(145deg, #111008, #0d0c09);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.related-posts h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.related-posts ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition);
  line-height: 1.4;
}
.related-posts ul li a::before {
  content: '→';
  color: var(--gold);
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.18s;
}
.related-posts ul li a:hover {
  background: rgba(201,168,76,0.06);
  border-color: var(--border-gold);
  color: var(--white);
}
.related-posts ul li a:hover::before {
  transform: translateX(4px);
}

/* --- Reading Progress Bar --- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(201,168,76,0.5);
}

/* =======================================================================
   BLOG ARTICLE — RESPONSIVE
   ======================================================================= */

@media (max-width: 900px) {
  .blog-post {
    padding-top: 1.8rem;
    padding-bottom: 4rem;
  }
  .blog-post-header h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

@media (max-width: 600px) {
  .blog-listing-section {
    padding: 2.5rem 0 3.5rem;
  }
  .blog-post {
    padding-top: 1.2rem;
    padding-bottom: 3rem;
  }
  .blog-back-link {
    font-size: 0.7rem;
    padding: 6px 13px;
    margin-bottom: 1.4rem;
  }
  .blog-post-header h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
  .blog-post-meta {
    font-size: 0.68rem;
    gap: 0.2rem;
  }
  .blog-featured-image {
    border-radius: 14px;
  }
  .blog-post-content {
    font-size: 0.88rem;
  }
  .blog-post-content h2 {
    font-size: 1.05rem;
    margin: 1.8rem 0 0.6rem;
  }
  .blog-post-content p,
  .blog-post-content ul li,
  .blog-post-content ol li {
    font-size: 0.88rem;
  }
  .social-share {
    padding: 1rem 1.1rem;
    gap: 0.5rem;
  }
  .social-share a {
    padding: 6px 14px;
    font-size: 0.68rem;
  }
  .related-posts {
    padding: 1.2rem 1.2rem;
    border-radius: 16px;
  }
  .related-posts ul li a {
    font-size: 0.78rem;
    padding: 9px 10px;
  }
}

@media (max-width: 480px) {
  .blog-post-header .blog-tag {
    font-size: 0.62rem;
    padding: 4px 10px;
  }
  .social-share {
    flex-direction: column;
    align-items: flex-start;
  }
  .social-share a {
    width: 100%;
    justify-content: center;
  }
}
/* ── Cash Advantage Micro-Info Panel (product pages) ───────────── */
.cash-advantage-panel {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, rgba(201,168,76,0.03) 100%);
  border: 1px solid rgba(201,168,76,0.22);
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 0.85rem 1rem;
  margin: 0.9rem 0;
  position: relative;
  overflow: hidden;
}
.cash-advantage-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cash-advantage-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.cash-advantage-body {}
.cash-advantage-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.cash-advantage-text {
  font-size: 0.75rem;
  color: var(--white-dim);
  line-height: 1.6;
}
.cash-advantage-text strong {
  color: var(--white-muted);
  font-weight: 700;
}