/* ================================================================
   REACT BITS ANIMATIONS
   ================================================================ */

/* ---- Scroll Reveal (FadeContent pattern) ---- */
.rb-hidden {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(.2,.8,.2,1), transform 0.55s cubic-bezier(.2,.8,.2,1);
}
.rb-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ---- Aurora gradient text ---- */
@keyframes aurora {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.aurora-text {
  background: linear-gradient(135deg, #7c3aed, #e879f9, #f97316, #5eead4, #7c3aed);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aurora 6s ease infinite;
}

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, #7c3aed, #e879f9, #f97316);
  z-index: 9999; pointer-events: none;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(232,121,249,0.7);
  transition: width 80ms linear;
}

/* ---- Animated gradient border on featured cards ---- */
@keyframes border-spin {
  to { --border-angle: 360deg; }
}

/* ---- Glow pulse on WhatsApp button ---- */
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 24px rgba(16,185,129,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 24px rgba(16,185,129,0.45), 0 0 0 8px rgba(37,211,102,0); }
}
.btn-wa { animation: wa-pulse 3s ease-in-out infinite; }

/* ---- Shimmer on stat numbers ---- */
@keyframes stat-shimmer {
  0%   { opacity: 0.85; }
  50%  { opacity: 1; }
  100% { opacity: 0.85; }
}
.stat-glass .sn { animation: stat-shimmer 3s ease-in-out infinite; }

/* ---- Logo glow spin ---- */
@keyframes logo-spin {
  to { filter: hue-rotate(360deg) blur(2px); }
}
.logo .glow { animation: float 6s ease-in-out infinite, logo-spin 8s linear infinite; }

/* ---- Card hover shimmer ---- */
.pcard::after, .cat-card::after, .how-step::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}
.pcard:hover::after, .cat-card:hover::after, .how-step:hover::after {
  transform: translateX(100%);
}

/* ---- Hero eyebrow animate in ---- */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { animation: slideDown 0.7s cubic-bezier(.2,.8,.2,1) both; }

/* ---- Hero h1 word-by-word reveal ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: fadeUp 0.9s 0.2s cubic-bezier(.2,.8,.2,1) both; }
.hero .lead { animation: fadeUp 0.9s 0.4s cubic-bezier(.2,.8,.2,1) both; }
.hero-ctas  { animation: fadeUp 0.9s 0.55s cubic-bezier(.2,.8,.2,1) both; }
.hero-trust { animation: fadeUp 0.9s 0.7s cubic-bezier(.2,.8,.2,1) both; }
.hero-visual { animation: fadeUp 1.1s 0.3s cubic-bezier(.2,.8,.2,1) both; }

/* ---- Section title gradient ---- */
.section-title .grad {
  background-size: 200% auto;
  animation: aurora 4s linear infinite;
}

/* ---- How step numbered orbs pulse ---- */
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(124,58,237,0.4); }
  50%       { box-shadow: 0 8px 32px rgba(232,121,249,0.7), 0 0 0 6px rgba(124,58,237,0.12); }
}
.how-num { animation: orb-pulse 2.5s ease-in-out infinite; }

/* ---- Floating price card in hero ---- */
@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%       { transform: translateY(-8px) rotate(-4deg); }
}
.hero-price { animation: float-card 4s ease-in-out infinite; }

/* ---- Brand pill hover glow ---- */
.brand-pill {
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
}
.brand-pill:hover {
  box-shadow: 0 0 20px rgba(232,121,249,0.3);
  transform: translateY(-3px);
}

/* ================================================================
   MEGA MENU — desktop dropdown panels
   ================================================================ */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-chevron {
  flex-shrink: 0;
  opacity: 0.45;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), opacity 0.2s;
}
.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 640px;
  max-width: none;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(124,58,237,0.16), 0 4px 24px rgba(0,0,0,0.07),
              0 1px 0 rgba(255,255,255,1) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 500;
}
.nav-item:hover .mega-panel,
.nav-item.open .mega-panel,
.mega-panel:focus-within {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Invisible bridge so cursor can move from nav link to panel */
.mega-panel::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0; height: 12px;
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr auto 168px auto 148px;
  padding: 22px 20px;
  align-items: start;
}
.mega-col { padding: 0 8px; }
.mega-col-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple); font-weight: 700; margin-bottom: 12px; line-height: 1;
}
.mega-sub-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 13px; color: var(--ink-2);
  transition: all .15s; margin-bottom: 2px; white-space: nowrap;
}
.mega-sub-link:hover {
  background: rgba(124,58,237,0.07);
  color: var(--purple);
  transform: translateX(2px);
}
.mega-sub-icon { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }
.mega-view-all {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; padding: 7px 13px;
  border-radius: 100px; font-size: 11.5px; font-weight: 700;
  color: var(--purple); background: rgba(124,58,237,0.08);
  transition: all .15s; white-space: nowrap;
}
.mega-view-all:hover { background: rgba(124,58,237,0.14); }

.mega-divider {
  width: 1px; background: var(--line); margin: 4px 14px; align-self: stretch;
}
.mega-brand-pill {
  display: block; padding: 7px 10px; border-radius: 10px;
  font-size: 12.5px; color: var(--ink-2); transition: all .15s; margin-bottom: 2px;
  white-space: nowrap;
}
.mega-brand-pill:hover {
  background: rgba(255,255,255,0.9); color: var(--purple);
  box-shadow: 0 2px 8px rgba(124,58,237,0.1);
  transform: translateX(2px);
}

.mega-cta-col {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(135deg, rgba(124,58,237,0.06), rgba(232,121,249,0.06));
  border-radius: 16px; padding: 18px 16px;
  border: 1px solid rgba(124,58,237,0.1);
}
.mega-badge {
  display: inline-block; padding: 4px 10px; border-radius: 100px;
  background: linear-gradient(135deg, #7c3aed, #e879f9); color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; width: fit-content;
}
.mega-meta { font-size: 12px; color: var(--ink-3); line-height: 1.6; flex: 1; }
.mega-btn {
  display: block; padding: 11px 14px; border-radius: 100px; text-align: center;
  background: linear-gradient(135deg, #7c3aed, #e879f9); color: white;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
  transition: all .2s; white-space: nowrap;
}
.mega-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,0.45); }

/* Hide mega on tablet/mobile */
@media (max-width: 1024px) {
  .mega-panel { display: none !important; }
  .nav-chevron { display: none; }
}

/* ================================================================
   DRAWER ACCORDION — subcategory expand/collapse
   ================================================================ */
.drawer-item { display: flex; flex-direction: column; }
.drawer-link-row { display: flex; align-items: center; }
.drawer-link-row .drawer-link { flex: 1; border-radius: 16px 0 0 16px !important; padding-right: 8px; }
.drawer-expand {
  width: 48px; height: 52px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--ink-3); border-radius: 0 16px 16px 0;
  background: transparent; transition: all .2s;
}
.drawer-expand:hover { background: rgba(124,58,237,0.08); color: var(--purple); }
.drawer-expand svg { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.drawer-item.open .drawer-expand { color: var(--purple); background: rgba(124,58,237,0.06); }
.drawer-item.open .drawer-expand svg { transform: rotate(90deg); }

.drawer-subs {
  display: none;
  padding: 2px 8px 8px 50px;
  flex-direction: column; gap: 2px;
}
.drawer-item.open .drawer-subs {
  display: flex;
}
.drawer-sub-link {
  padding: 9px 14px; border-radius: 12px;
  font-size: 13.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 10px;
  transition: all .15s; min-height: 40px;
}
.drawer-sub-link:hover { color: var(--purple); background: rgba(124,58,237,0.07); }
.drawer-sub-link span { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }
.drawer-sub-all {
  color: var(--purple); font-weight: 600; font-size: 12.5px;
  margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px;
}

/* ================================================================
   HAMBURGER BUTTON
   ================================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge);
  flex-shrink: 0;
  transition: all .25s;
}
.hamburger:hover { background: white; transform: scale(1.05); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.2,.8,.2,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ================================================================
   MOBILE DRAWER
   ================================================================ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26, 26, 46, 0.45);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(340px, 88vw);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-left: 1px solid var(--glass-edge);
  box-shadow: -20px 0 60px rgba(124,58,237,0.15), -4px 0 20px rgba(232,121,249,0.1);
  display: flex; flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.28s cubic-bezier(.16,1,.3,1);
  overflow-y: auto;
  z-index: 201;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.drawer-logo {
  font-family: var(--serif); font-size: 18px;
  background: linear-gradient(135deg, #7c3aed, #e879f9, #f97316);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  display: flex; align-items: center; gap: 8px;
}
.drawer-logo .glow {
  width: 22px; height: 22px; border-radius: 50%;
  background: conic-gradient(from 0deg, #e879f9, #7c3aed, #5eead4, #fdba74, #e879f9);
  filter: blur(2px); flex-shrink: 0;
}
.drawer-close {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.7); border: 1px solid var(--glass-edge);
  color: var(--ink-2); transition: all .2s;
}
.drawer-close:hover { background: white; color: var(--purple); transform: rotate(90deg); }

.drawer-nav {
  flex: 1; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.drawer-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  color: var(--ink); font-size: 15px; font-weight: 500;
  transition: all .2s;
  min-height: 52px;
}
.drawer-link:hover, .drawer-link.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.09), rgba(232,121,249,0.07));
  color: var(--purple);
}
.drawer-icon {
  font-size: 20px; width: 28px; text-align: center; flex-shrink: 0;
}

.drawer-footer {
  padding: 18px 16px 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}
.drawer-wa-btn {
  display: block; padding: 15px 20px; border-radius: 100px; text-align: center;
  background: linear-gradient(135deg, #25d366, #128c7e); color: white;
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(16,185,129,0.4);
  transition: all .25s;
}
.drawer-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,185,129,0.55); }
.drawer-mail-btn {
  display: block; padding: 13px 20px; border-radius: 100px; text-align: center;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3);
  color: var(--purple); font-size: 13.5px; font-weight: 700;
  transition: all .25s;
}
.drawer-mail-btn:hover { background: rgba(99,102,241,0.18); }
.drawer-phone-btn {
  display: block; padding: 13px 20px; border-radius: 100px; text-align: center;
  background: rgba(255,255,255,0.7); border: 1px solid var(--glass-edge);
  color: var(--purple); font-size: 13.5px; font-weight: 700;
  transition: all .25s;
}
.drawer-phone-btn:hover { background: white; }
.drawer-tagline {
  text-align: center; font-size: 11.5px; color: var(--ink-3);
  letter-spacing: 0.06em; margin-top: 4px;
}

/* ================================================================
   TOPBAR — Mobile
   ================================================================ */
.tb-mobile { display: none; }

/* Mobile-only UI elements — hidden at desktop, shown in media queries below */
.mobile-filter-bar { display: none; }

/* ================================================================
   HEADER ACTIONS — WhatsApp button on mobile
   ================================================================ */
.header-wa-btn { padding: 11px 20px; font-size: 12.5px; }

/* ================================================================
   BREAKPOINTS — 1024px TABLET
   ================================================================ */
@media (max-width: 1024px) {

  .hamburger { display: flex; }
  .nav { display: none !important; }
  .header-actions .icon-btn { display: none; }

  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(48px, 8vw, 80px); }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .hero-trust { grid-template-columns: repeat(4,1fr); gap: 10px; }

  /* Categories */
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }

  /* Featured grid */
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid-cat { grid-template-columns: repeat(3, 1fr); }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* How */
  .how-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  /* Brands page */
  .fb-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }

  /* Contact */
  .cc-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }

  /* Product detail */
  .pdp-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { position: static; }
  .desc-grid { grid-template-columns: 1fr; }

  /* Category page sidebar */
  .layout { grid-template-columns: 240px 1fr; gap: 20px; }
}

/* ================================================================
   BREAKPOINTS — 768px MOBILE LANDSCAPE
   ================================================================ */
@media (max-width: 768px) {

  .container { padding: 0 18px; }

  /* Header */
  .header { margin: 10px auto 0; padding: 0 12px; }
  .header-inner { padding: 8px 12px 8px 16px; gap: 10px; }
  .logo { font-size: 18px; }
  .logo .glow { width: 20px; height: 20px; }
  .header-wa-btn { display: none !important; }

  /* Topbar */
  .topbar { padding: 0 12px; margin: 10px auto 0; }
  .topbar-inner { padding: 7px 16px; flex-direction: column; gap: 0; }
  .tb-left, .tb-right { display: none; }
  .tb-mobile { display: flex; justify-content: center; align-items: center; }
  .tb-mobile .phone {
    color: var(--purple); font-weight: 700;
    font-size: 13px; letter-spacing: 0.04em;
  }

  /* Hero */
  .hero { padding: 40px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(38px, 10vw, 64px); line-height: 1.0; margin-bottom: 18px; }
  .hero .lead { font-size: 15px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; padding: 16px 24px; font-size: 14px; }
  .hero-visual { max-width: 320px; aspect-ratio: 1; }
  .hero-price { left: -10px; bottom: 16px; }
  .hero-price .pp { font-size: 28px; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trust-pill { padding: 12px 10px; }
  .trust-pill .n { font-size: 24px; }
  .trust-pill .l { font-size: 9px; }

  /* Warning */
  .warning-glass { flex-direction: column; gap: 12px; padding: 18px; border-radius: 20px; }
  .warning-glass .icn { margin: 0 auto; }

  /* Categories */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-emoji { font-size: 28px; }
  .cat-name { font-size: 16px; }
  .cat-count { font-size: 9.5px; }

  /* Section headers */
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
  .section-title { font-size: clamp(32px, 8vw, 48px); }

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

  /* Product cards */
  .pcard .pname { font-size: 18px; min-height: 40px; }
  .pcard .pprice { font-size: 22px; }
  .pcard .pinfo { padding: 12px 14px 16px; }
  .pcard .pact-call { flex: 0 0 44px; width: 44px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-glass .sn { font-size: 44px; }
  .stat-glass { padding: 28px 20px; }

  /* How */
  .how-grid { grid-template-columns: 1fr; gap: 12px; }
  .how { padding: 60px 0; }

  /* CTA strip */
  .cta-strip { padding: 60px 0; }
  .cta-card { padding: 48px 24px; border-radius: 28px; }
  .cta-card h3 { font-size: clamp(32px, 8vw, 52px); }
  .cta-card .ctas { flex-direction: column; }
  .cta-card .ctas .btn { width: 100%; padding: 16px 24px; }

  /* Footer */
  .footer { margin-top: 60px; padding: 0 12px 20px; }
  .footer-inner { padding: 36px 24px 20px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: 12px; }
  .footer ul a, .footer ul li { min-height: 36px; display: flex; align-items: center; }
  .footer-disc { border-radius: 16px; font-size: 12px; }

  /* Brands page */
  .brands-hero-card { padding: 36px 24px; }
  .brands-hero-card h1 { font-size: clamp(36px, 9vw, 60px); }
  .brands-hero-card .sub { font-size: 14px; }
  .bh-stats { flex-direction: row; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .bh-stat { min-width: 110px; padding: 12px 18px; }
  .bh-stat .n { font-size: 22px; }
  .controls-card { border-radius: 20px; padding: 16px; }
  .controls-row { flex-direction: column; gap: 10px; }
  .alphabet { gap: 4px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .alphabet::-webkit-scrollbar { display: none; }
  .alphabet button { flex-shrink: 0; scroll-snap-align: start; min-width: 38px; height: 38px; }
  .fb-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .brand-card { padding: 14px 16px; border-radius: 80px; }
  .letter-head .letter { font-size: 40px; }

  /* Contact page */
  .ch-card h1 { font-size: clamp(36px, 9vw, 64px); }
  .cc-grid { grid-template-columns: 1fr; gap: 14px; }
  .cc { padding: 30px 24px; border-radius: 24px; }
  .usa-card { grid-template-columns: 1fr; gap: 18px; }
  .usa-card .ic-big { margin: 0 auto; }
  .usa-card .points { grid-template-columns: 1fr 1fr; gap: 10px; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .faq-side h2 { font-size: clamp(32px, 8vw, 48px); }

  /* Category page */
  .layout { grid-template-columns: 1fr; }
  .layout > main, .layout > aside { min-width: 0; }
  .layout > aside { display: none; }
  .layout > aside.open { display: block; }
  .layout .product-grid-cat { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .sidebar { position: relative; top: 0; }
  .mobile-filter-bar { display: flex; gap: 10px; margin-bottom: 16px; }
  .mobile-filter-btn {
    flex: 1; padding: 13px 18px; border-radius: 100px;
    background: var(--glass-2); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-edge);
    color: var(--purple); font-size: 13px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .mobile-sort-select {
    flex: 1; padding: 13px 18px; border-radius: 100px;
    background: rgba(255,255,255,0.7); border: 1px solid var(--glass-edge);
    color: var(--ink); font-size: 13px; font-weight: 600;
    appearance: none; -webkit-appearance: none;
  }
  .main-bar { padding: 12px 16px; border-radius: 20px; flex-wrap: wrap; gap: 8px; }
  .main-bar .lhs { font-size: 13px; }
  .main-bar .rhs { gap: 6px; flex-wrap: wrap; }
  .main-bar select { font-size: 12px; padding: 8px 12px; }
  .per-page { display: none; }
  .cat-hero-card { padding: 30px 22px; border-radius: 24px; }
  .cat-hero-card h1 { font-size: clamp(36px, 9vw, 60px); }
  .cat-hero-card .sub { font-size: 14px; }
  .meta-pills { gap: 6px; flex-wrap: wrap; }
  .meta-pill { font-size: 12px; padding: 8px 14px; }

  /* Product detail */
  .pdp { padding: 20px 0 30px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery { grid-template-columns: 60px 1fr; gap: 10px; position: static; }
  .main-image { border-radius: 20px; }
  .pdp-title { font-size: clamp(28px, 7vw, 44px); }
  .price-main { font-size: clamp(44px, 10vw, 60px); }
  .pdp-actions { gap: 8px; }
  .pdp-wa, .pdp-phone { padding: 16px 20px; font-size: 13px; }
  .pdp-actions .row2 { grid-template-columns: 1fr 1fr; }
  .trust-points { grid-template-columns: 1fr 1fr; gap: 8px; }
  .specs { grid-template-columns: 110px 1fr; }
  .specs > div { padding: 10px 14px; font-size: 13px; }
  .desc-card { padding: 30px 22px; border-radius: 24px; }
  .desc-grid { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Breadcrumb */
  .breadcrumb { font-size: 11px; padding: 16px 0 0; }

  /* Pagination */
  .pagination { gap: 4px; }
  .pagination button { min-width: 36px; height: 36px; font-size: 12px; }
}

/* ================================================================
   BREAKPOINTS — 480px MOBILE PORTRAIT
   ================================================================ */
@media (max-width: 480px) {

  .container { padding: 0 14px; }

  /* Topbar */
  .topbar { display: none; }

  /* Logo */
  .logo { font-size: 16px; }

  /* Hero */
  .hero { padding: 30px 0 50px; }
  .hero h1 { font-size: clamp(34px, 11vw, 52px); }
  .hero-visual { max-width: 280px; }
  .hero-price { display: none; }
  .hero-stamp { right: 12px; top: -10px; font-size: 10px; padding: 7px 14px; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); gap: 6px; }

  /* Categories */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-card { padding: 14px 12px; aspect-ratio: 0.9; }
  .cat-emoji { font-size: 24px; }
  .cat-name { font-size: 14px; }

  /* Section title */
  .section-title { font-size: clamp(28px, 9vw, 42px); }

  /* Product cards */
  .pcard .pname { font-size: 16px; min-height: 36px; }
  .pcard .pprice { font-size: 20px; }
  .pcard .pinfo { padding: 10px 12px 14px; }
  .pcard .pact-wa { font-size: 10.5px; padding: 9px 8px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* How steps */
  .how-step { padding: 24px 20px; }

  /* CTA */
  .cta-card { padding: 36px 18px; }
  .cta-card h3 { font-size: clamp(28px, 9vw, 44px); }

  /* Footer */
  .footer-inner { padding: 28px 18px 16px; }

  /* Category grid — force 2 col even at small phones */
  .layout .product-grid-cat { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .product-grid-cat { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* Brands A-Z nav */
  .alphabet { gap: 3px; }
  .alphabet button { width: 34px; height: 34px; font-size: 12px; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .brand-card { padding: 12px 14px; }

  /* Contact */
  .usa-card { padding: 28px 20px; }
  .usa-card .points { grid-template-columns: 1fr; }
  .faq-q { padding: 18px 20px; font-size: 14px; }

  /* Product detail */
  .gallery { grid-template-columns: 50px 1fr; }
  .pdp-title { font-size: clamp(26px, 8vw, 38px); }
  .specs { grid-template-columns: 1fr; }
  .specs .lbl { border-bottom: none; padding-bottom: 2px; }
  .specs .val { padding-top: 2px; }

  /* Pagination */
  .pagination .nav-btn { padding: 0 12px; font-size: 11px; }
  .pagination button { min-width: 32px; height: 32px; }
}

/* ================================================================
   ACCESSIBILITY & TOUCH TARGETS
   ================================================================ */
.footer ul a,
.drawer-link,
.nav a,
.cat-tree a,
.brand-row,
.faq-q,
.alphabet button {
  min-height: 44px;
}

@media (max-width: 768px) {
  input, select, textarea {
    min-height: 48px;
    font-size: 16px !important; /* prevents iOS zoom */
  }
  .brand-search, .brand-search-big, .brand-search-input, .sort-select {
    min-height: 48px;
    font-size: 16px !important;
  }
}

/* ================================================================
   UTILS
   ================================================================ */
.mobile-only { display: none; }
@media (max-width: 768px) { .mobile-only { display: block; } .desktop-only { display: none !important; } }

/* Prevent horizontal overflow everywhere */
* { max-width: 100%; box-sizing: border-box; }
img, video, iframe, svg { max-width: 100%; }
.orbs { clip-path: inset(0); }

/* Grid/flex item min-width fix — prevents implicit auto min-content from causing overflow */
@media (max-width: 1024px) {
  .layout > *, .footer-grid > *, .hero-grid > *,
  .cat-grid > *, .product-grid > *, .product-grid-cat > *,
  .stats-grid > *, .how-grid > *, .cc-grid > *,
  .usa-card > *, .desc-grid > *, .pdp-grid > * {
    min-width: 0;
  }
}

