/* ═══════════════════════════════════════════════════════════════
   CODQI.COM — Main Stylesheet (v2 — Premium Redesign)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary: #6c27e8;
  --primary-dark: #5a1ed4;
  --primary-light: #8b46f5;
  --primary-glow: rgba(108,39,232,0.2);
  --accent: #06b6d4;
  --accent2: #f59e0b;
  --bg: #fdfcff;
  --bg2: #f5f3ff;
  --bg3: #ede9ff;
  --bg4: #e4ddff;
  --border: rgba(108,39,232,0.1);
  --border2: rgba(108,39,232,0.2);
  --border-glow: rgba(108,39,232,0.4);
  --text: #0a0820;
  --text-muted: #6b6a8a;
  --text-dim: #a09ec0;
  --green: #059669;
  --red: #dc2626;
  --amber: #d97706;
  --blue: #2563eb;
  --success-bg: rgba(5,150,105,0.08);
  --error-bg: rgba(220,38,38,0.07);
  --shadow: 0 8px 40px rgba(108,39,232,0.1);
  --shadow-glow: 0 0 40px rgba(108,39,232,0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --gradient-primary: linear-gradient(135deg, #6c27e8 0%, #8b46f5 100%);
  --gradient-primary2: linear-gradient(135deg, #5a1ed4 0%, #6c27e8 50%, #8b46f5 100%);
  --gradient-text: linear-gradient(135deg, #0a0820 0%, #3b0f9e 50%, #6c27e8 100%);
  --gradient-card: linear-gradient(145deg, rgba(108,39,232,0.04) 0%, transparent 60%);
}

/* ── TOPBAR (sitewide) ── */
[x-cloak] { display: none !important; }
.hp-topbar {
  background: #15102a;
  padding: 9px 48px 9px 24px;
  font-size: 13px;
  font-weight: 500;
  color: #d8d3ee;
  letter-spacing: .01em;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.hp-topbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; text-align: center;
}
.hp-topbar strong { font-weight: 600; color: #fff; }
.hp-topbar-link {
  color: #b3a3f5; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(179,163,245,.3);
  padding-bottom: 1px; transition: color .15s, border-color .15s;
}
.hp-topbar-link:hover { color: #d4c8ff; border-color: rgba(179,163,245,.7); }
.hp-topbar-arrow { font-size: 11px; opacity: .8; margin-left: 2px; }
.hp-topbar-close {
  position: absolute; top: 50%; right: 18px; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,.45);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px;
  border-radius: 4px; transition: color .15s, background .15s;
}
.hp-topbar-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.hp-topbar--info    { background: #0f2548; color: #cdd9ee; }
.hp-topbar--success { background: #082b1f; color: #c5e8d8; }
.hp-topbar--warning { background: #2e1d09; color: #f0d9b1; }
.hp-topbar--dark    { background: #0a0820; color: #c8c4e0; }

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.text-muted { color: var(--text-muted); }
.fs-sm { font-size: 12px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-primary);
  color: #fff; font-weight: 600;
  padding: 12px 24px; border-radius: var(--radius); border: none;
  cursor: pointer; font-size: 15px; transition: all 0.25s;
  font-family: inherit; position: relative; overflow: hidden;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); color: #fff; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-muted); font-weight: 500;
  padding: 11px 22px; border-radius: var(--radius);
  border: 1px solid var(--border2); cursor: pointer; font-size: 14px;
  transition: all 0.25s; font-family: inherit;
}
.btn-outline:hover {
  color: var(--text); border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.1);
  box-shadow: 0 4px 20px rgba(124,58,237,0.15);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg3); color: var(--text); font-weight: 500;
  padding: 11px 22px; border-radius: var(--radius);
  border: 1px solid var(--border); cursor: pointer; font-size: 14px;
  transition: all 0.25s; font-family: inherit;
}
.btn-secondary:hover { background: var(--bg4); border-color: var(--border2); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 4px 16px rgba(239,68,68,0.3); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239,68,68,0.4); color:#fff; }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.btn-success:hover { transform: translateY(-2px); color:#fff; }

/* ── HEADER (sticky main nav on scroll; promo topbar above scrolls away) ── */
.site-nav-root {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1100;
  isolation: isolate;
}
/* Solid bar — always above drawer backdrop so Menu/Cart stay clickable */
.site-header {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  transition: box-shadow 0.3s;
}
.site-nav-root.is-scrolled .site-header,
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(108,39,232,0.08);
}
.site-header__inner {
  position: relative;
  z-index: 2;
}
.site-header .navbar,
.site-header .nav-actions {
  position: relative;
  z-index: 3;
  overflow: visible;
}
.site-header,
.site-header__inner {
  overflow: visible;
}
.navbar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 32px);
  padding: 14px 0;
  width: 100%;
  min-width: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}
.logo-icon { font-size: 18px; }
.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.nav-search-desktop {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 280px;
  width: 100%;
}
#nav-search-wrap .search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1110;
}
.nav-link {
  color: var(--text-muted); font-weight: 500; font-size: 14px;
  padding: 7px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(108,39,232,0.07); }
.nav-link.active { color: var(--primary-light); background: rgba(124,58,237,0.1); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; position: relative; z-index: 5; }
.nav-actions .nav-desktop-auth {
  white-space: nowrap;
  flex-shrink: 0;
}
.cart-btn {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  z-index: 2;
}
.cart-btn i {
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}
.cart-btn:hover { color:var(--text); border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.08); }
.cart-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--gradient-primary); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(124,58,237,0.5);
  pointer-events: none;
}
.user-menu {
  position: relative;
  z-index: 1112;
  flex-shrink: 0;
}
.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text-muted); padding: 8px 14px;
  border-radius: var(--radius); cursor: pointer; font-size: 14px;
  font-weight: 500;
  font-family: inherit; transition: all 0.2s;
  max-width: min(220px, 42vw);
}
.user-btn-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-btn:hover { color: var(--text); border-color: var(--border2); }
.user-btn-chevron {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.user-menu.is-open .user-btn-chevron {
  transform: rotate(180deg);
}
.site-header .user-menu .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  min-width: 100%;
  width: max(220px, 100%);
  background: #ffffff;
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 6px 0;
  box-shadow: 0 12px 40px rgba(15, 10, 30, 0.14), 0 0 0 1px rgba(108, 39, 232, 0.06);
  z-index: 1113;
  overflow: hidden;
}
.site-header .user-menu.is-open .dropdown {
  display: block;
}
.site-header .user-menu .dropdown a,
.site-header .user-menu .dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  min-height: auto;
  transition: background 0.15s, color 0.15s;
}
.site-header .user-menu .dropdown a:hover,
.site-header .user-menu .dropdown .dropdown-item:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--text);
}
.site-header .user-menu .dropdown a i,
.site-header .user-menu .dropdown .dropdown-item i {
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}
.site-header .user-menu .dropdown .dropdown-item--logout {
  color: var(--red);
}
.site-header .user-menu .dropdown .dropdown-item--logout i {
  color: var(--red);
}
.site-header .user-menu .dropdown .dropdown-item--logout:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}
.site-header .user-menu .dropdown-form {
  margin: 0;
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.mobile-toggle {
  display: none;
  align-items: center; justify-content: center; gap: 6px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); font-size: 18px; cursor: pointer;
  padding: 8px 12px; border-radius: var(--radius);
  font-family: inherit; line-height: 1;
  transition: border-color 0.2s, background 0.2s;
}
.mobile-toggle:hover {
  border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.08);
}
.mobile-toggle-label {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
}
/* Dim layer — sibling before header: below drawer (in header) and page chrome */
.site-nav-root > .nav-drawer-backdrop {
  display: none !important;
  pointer-events: none !important;
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(15, 10, 30, 0.45);
  border: none;
  padding: 0;
  margin: 0;
}
.site-nav-root > .nav-drawer-backdrop.is-open {
  display: block !important;
  pointer-events: auto !important;
}
.site-nav-root > .nav-drawer-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
}
body.nav-menu-open {
  overflow: hidden;
}
@media (min-width: 769px) {
  .site-nav-root > .nav-drawer-backdrop {
    display: none !important;
    pointer-events: none !important;
  }
  body.nav-menu-open { overflow: auto; }
}
@media (max-width: 768px) {
  /* Backdrop below header + drawer panel (panel was unclickable when trapped under backdrop) */
  .site-nav-root > .nav-drawer-backdrop.is-open {
    z-index: 1090;
  }
  .site-nav-root.nav-menu-active .site-header,
  .site-header.nav-open {
    position: relative;
    z-index: 1100;
  }
  .site-header .nav-actions {
    z-index: 1102;
  }
  .site-header .mobile-toggle,
  .site-header .cart-btn {
    position: relative;
    z-index: 1103;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
  }
}

/* ── FLASH MESSAGES ── */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; font-size: 14px; font-weight: 500;
  position: relative;
}
.flash-success { background: var(--success-bg); color: var(--green); border-bottom: 1px solid rgba(16,185,129,0.15); }
.flash-error   { background: var(--error-bg);   color: var(--red);   border-bottom: 1px solid rgba(239,68,68,0.15); }
.flash-warning { background: #fffbeb; color: #92400e; border-bottom: 1px solid rgba(252,211,77,0.35); }
.flash-close { margin-left: auto; background: none; border: none; color: inherit; font-size: 18px; cursor: pointer; opacity: 0.6; }
.flash-close:hover { opacity: 1; }
.flash-close:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; opacity: 1; }

/* ── HERO ── */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 100%, rgba(99,102,241,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 85% 100%, rgba(168,85,247,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.12);
  color: var(--primary-light);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 8px 20px; border-radius: 100px; font-size: 13px; font-weight: 600;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 6px; height: 6px; background: var(--primary-light);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 72px); font-weight: 900;
  line-height: 1.1; margin-bottom: 24px; letter-spacing: -1.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 18px; color: var(--text-muted); max-width: 520px;
  margin: 0 auto 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-primary { padding: 16px 36px; font-size: 16px; }
.hero-actions .btn-outline { padding: 15px 32px; font-size: 16px; }
.hero-stats {
  display: flex; justify-content: center; gap: 0;
  margin-top: 72px; padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-stat {
  flex: 1; max-width: 180px; padding: 0 32px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-number {
  font-size: 36px; font-weight: 900; letter-spacing: -1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 13px; color: var(--text-dim); margin-top: 4px; font-weight: 500; }

/* ── SECTION TITLES ── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 520px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  color: var(--primary-light); border: 1px solid rgba(124,58,237,0.25);
  padding: 5px 14px; border-radius: 100px; font-size: 11px; font-weight: 700;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1.5px;
}

/* ── PRODUCT CARD ── */
.products-section { padding: 80px 0; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.product-card {
  background: #ffffff;
  border: 1px solid rgba(108,39,232,0.12);
  border-radius: var(--radius-xl); overflow: hidden; transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 2px 8px rgba(108,39,232,0.05);
}
.product-card-interactive {
  position: relative;
  z-index: 4;
}
/* ── Media (image) zone ── */
.product-card-media {
  position: relative;
  background: linear-gradient(135deg, #f1edff 0%, #e8e4f8 100%);
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
}
.product-card-media-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
}
.product-card-media-link:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: -2px;
  z-index: 2;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s;
  position: relative;
  z-index: 0;
}
.product-card:hover .product-card-media img { transform: scale(1.03); }
.product-card-media .product-img-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.product-card-media-chip {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: rgba(10, 8, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.product-card:hover .product-card-media-chip,
.product-card:focus-within .product-card-media-chip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.product-card-media-chip:hover {
  background: rgba(108, 39, 232, 0.9);
  color: #fff;
}
@media (hover: none) {
  .product-card-media-chip {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
/* ── Text info zone (no ghost overlay) ── */
.product-card-info {
  padding: 18px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid rgba(108, 39, 232, 0.06);
  position: relative;
  z-index: 1;
}
.product-title-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.35;
  transition: color 0.2s;
}
.product-title-link:hover { color: var(--primary-light); }
.product-title-arrow {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 12px;
  color: var(--primary-light);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.product-title-link:hover .product-title-arrow,
.product-title-link:focus-visible .product-title-arrow {
  opacity: 1;
  transform: translateX(0);
}
.product-see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light);
  text-decoration: none;
}
.product-see-more:hover { text-decoration: underline; color: var(--primary); }
.product-see-more i { font-size: 10px; }
/* ── Cart / preview strip ── */
.product-card-shop {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  background: #fff;
}
.product-card-shop .btn-primary {
  flex: 1;
  justify-content: center;
  font-size: 13.5px;
  padding: 11px 14px;
}
.product-card-shop .btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border2);
  color: var(--text-muted);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  flex-shrink: 0;
  background: var(--bg2);
  text-decoration: none;
}
.product-card-shop .btn-demo:hover {
  border-color: rgba(124,58,237,0.4);
  color: var(--primary-light);
  background: rgba(124,58,237,0.08);
}
@media (max-width: 480px) {
  .product-card-shop .btn-demo-label { display: none; }
}
.product-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(108,39,232,0.03) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none; z-index: 0;
}
.product-card:hover {
  border-color: rgba(108,39,232,0.35);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(108,39,232,0.14), 0 0 0 1px rgba(108,39,232,0.12), 0 0 40px rgba(108,39,232,0.06);
}
.product-card:hover::before { opacity: 1; }
/* legacy .product-img — prefer .product-card-media */
.product-img {
  position: relative;
  background: linear-gradient(135deg, #f1edff 0%, #e8e4f8 100%);
  aspect-ratio: 16/10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transition: transform 0.4s;
}
.product-card:hover .product-img img { transform: scale(1.02); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background:
    radial-gradient(ellipse 70% 70% at 50% 38%, rgba(139,92,246,0.20) 0%, transparent 62%),
    linear-gradient(135deg, #f1edff 0%, #e7dfff 60%, #ede8ff 100%);
  position: relative; overflow: hidden;
}
.product-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(108,39,232,0.10) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 0%, transparent 75%);
  opacity: .6;
}
.product-img-placeholder::after {
  content: '';
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, transparent 60%);
  filter: blur(12px); pointer-events: none;
}
.product-img-placeholder-icon {
  font-size: 52px; position: relative; z-index: 1;
  filter: drop-shadow(0 6px 20px rgba(124,58,237,0.45));
}
.product-img-placeholder-text {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: #6c27e8; position: relative; z-index: 1; opacity: .8;
}
.product-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 12px; border-radius: 100px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}
.product-sale-badge {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; padding: 5px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(239,68,68,0.4);
}
.product-install-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(0,0,0,0.6); color: var(--green);
  padding: 5px 12px; border-radius: 100px; font-size: 11px; font-weight: 600;
  backdrop-filter: blur(8px); border: 1px solid rgba(16,185,129,0.25);
}
.product-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,8,32,0.15) 0%, rgba(10,8,32,0.72) 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease; z-index: 3;
  pointer-events: none;
}
.product-card:hover .product-img-overlay,
.product-card:focus-within .product-img-overlay { opacity: 1; }
.product-img-overlay-actions {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: auto;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-overlay-actions,
.product-card:focus-within .product-img-overlay-actions { transform: translateY(0); }
.product-img-overlay-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
  padding: 10px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  backdrop-filter: blur(12px); text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.product-img-overlay-btn--primary {
  background: rgba(108, 39, 232, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(108, 39, 232, 0.45);
}
.product-img-overlay-btn:hover { background: rgba(255,255,255,0.28); color: #fff; }
.product-img-overlay-btn--primary:hover { background: #5b21b6; color: #fff; }
.product-body { padding: 20px 22px 18px; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; }
.product-title { margin: 0 0 8px; }
.product-desc { color: var(--text-muted); font-size: 13.5px; margin-bottom: 10px; line-height: 1.6; }
.product-card-info .product-desc { flex: 0; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 12px; }
.rating-count { color: var(--text-dim); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.price-current {
  font-size: 26px; font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.price-original { font-size: 14px; color: var(--text-dim); text-decoration: line-through; }
.price-prefix { font-size: 11px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.product-actions .btn-primary { flex: 1; min-width: 120px; justify-content: center; font-size: 13.5px; padding: 11px 14px; }
.btn-demo {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border2); color: var(--text-muted);
  padding: 11px 13px; border-radius: var(--radius); font-size: 13px;
  transition: all 0.2s; width: 40px; flex-shrink: 0; background: var(--bg2);
}
.btn-demo:hover { border-color: rgba(124,58,237,0.4); color: var(--primary-light); background: rgba(124,58,237,0.08); }

/* ── PRODUCT CARD FOOTER META STRIP ── */
.product-card-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
  position: relative; z-index: 1;
}
.product-card-footer-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--text-dim);
}
.product-card-footer-badge i { font-size: 10px; color: var(--primary-light); opacity: 0.7; }
.product-card-footer-sep { color: var(--border2); font-size: 14px; }
.product-card-install {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--green);
}
.product-card-install i { font-size: 10px; }

/* ── CATEGORIES GRID ── */
.categories-section { padding: 70px 0; }
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.category-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 16px;
  text-align: center; transition: all 0.25s; cursor: pointer;
  position: relative; overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.category-card:hover {
  border-color: rgba(108,39,232,0.3);
  background: rgba(108,39,232,0.05);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(108,39,232,0.1);
}
.category-card:hover::before { transform: scaleX(1); }
.category-icon { font-size: 34px; margin-bottom: 10px; }
.category-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.category-count { font-size: 12px; color: var(--text-dim); }

/* ── FEATURE CARDS ── */
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gradient-primary);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(108,39,232,0.25); box-shadow: 0 12px 30px rgba(108,39,232,0.1); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(168,85,247,0.08));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}

/* ── TESTIMONIALS ── */
.testimonials-section { padding: 80px 0; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.testimonial-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  transition: all 0.25s; position: relative;
}
.testimonial-card:hover { border-color: rgba(124,58,237,0.25); }
.testimonial-stars { color: #f59e0b; margin-bottom: 14px; font-size: 14px; letter-spacing: 2px; }
.testimonial-text { color: var(--text-muted); font-size: 14px; line-height: 1.75; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 38px; height: 38px;
  background: var(--gradient-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-product { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ── FORMS ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-muted); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.8px;
}
.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border2);
  color: var(--text); padding: 12px 16px; border-radius: var(--radius);
  font-size: 15px; font-family: inherit; transition: all 0.2s;
}
.form-control:focus { outline: none; border-color: rgba(124,58,237,0.6); background: rgba(124,58,237,0.05); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b85b0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-error { color: var(--red); font-size: 12px; margin-top: 6px; }
.form-hint { color: var(--text-dim); font-size: 12px; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── AUTH ── */
.auth-split {
  min-height: 100vh; display: grid; grid-template-columns: 400px 1fr;
}
.auth-panel {
  background: #fafafe;
  border-right: 1px solid #ececf6;
  padding: 64px 48px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-panel::before {
  content: ''; position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108,39,232,.08) 0%, transparent 70%);
  top: -120px; right: -120px; pointer-events: none;
}
.auth-panel-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 48px;
  font-size: 24px; font-weight: 800; color: #1a1530; text-decoration: none;
  position: relative; z-index: 1;
}
.auth-panel-logo-icon { font-size: 20px; color: var(--primary); }
.auth-panel-headline {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: #1a1530;
  line-height: 1.2; letter-spacing: -0.4px; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.auth-panel-sub {
  color: #5b5775; font-size: 15px; line-height: 1.65;
  margin-bottom: 32px; position: relative; z-index: 1;
}
.auth-panel-features {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
  position: relative; z-index: 1;
}
.auth-panel-features li {
  display: flex; align-items: center; gap: 12px;
  color: #3a3552; font-size: 14px; font-weight: 500;
}
.auth-panel-features li .apf-icon {
  width: 28px; height: 28px; background: rgba(108,39,232,.08);
  color: var(--primary);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
.auth-panel-trust {
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid #ececf6;
  color: #807a99; font-size: 12px; position: relative; z-index: 1;
}
.auth-form-wrap {
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 40px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: #ffffff; border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 44px;
  box-shadow: 0 24px 80px rgba(108,39,232,0.1), 0 0 0 1px rgba(108,39,232,0.06);
}
.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header h1 { font-size: 26px; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-header p { color: var(--text-muted); font-size: 15px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.auth-divider span { color:var(--text-dim); font-size:13px; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-muted); font-size: 14px; }
.auth-footer a { color: var(--primary-light); font-weight: 600; }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-form-wrap { padding: 40px 24px; min-height: 100vh; }
}

/* ── CART ── */
.page-section { padding: 44px 0 80px; }
.page-header { margin-bottom: 40px; }
.page-header h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; }
.page-header p { color: var(--text-muted); margin-top: 8px; }
.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 16px;
  transition: border-color 0.2s;
}
.cart-item:hover { border-color: var(--border2); }
.cart-item-img {
  width: 80px; height: 50px; background: var(--bg3);
  border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.cart-item-plan { font-size: 13px; color: var(--text-muted); }
.cart-item-price {
  font-size: 20px; font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.cart-item-actions { display: flex; gap: 8px; margin-top: 10px; }
.order-summary {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 80px;
}
.order-summary h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--text-muted); font-size: 14px; }
.summary-row.total { color: var(--text); font-weight: 800; font-size: 18px; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }
.summary-row .discount-val { color: var(--green); }
.coupon-form { margin: 16px 0; }
.coupon-form input {
  width: 100%; background: #ffffff; border: 1px solid var(--border2);
  color: var(--text); padding: 10px 14px; border-radius: var(--radius);
  font-family: inherit; margin-bottom: 8px;
}

/* ── PRODUCT DETAIL ── */
.product-detail { padding: 0 0 60px; }

/* Hero Banner */
.pd-hero {
  background:
    radial-gradient(ellipse 50% 70% at 90% 25%, rgba(139,70,245,.13) 0%, transparent 60%),
    radial-gradient(ellipse 45% 60% at 8% 95%, rgba(108,39,232,.08) 0%, transparent 60%),
    linear-gradient(135deg, #f6f3ff 0%, #ede8ff 50%, #f1edff 100%);
  border-bottom: 1px solid rgba(108,39,232,0.10);
  padding: 48px 0 44px;
  margin-bottom: 48px;
  position: relative; overflow: hidden;
}
.pd-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(108,39,232,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
  opacity: .5;
}
.pd-hero::after {
  content: ''; position: absolute; pointer-events: none;
  width: 360px; height: 360px; border-radius: 50%;
  right: -120px; top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,.18) 0%, transparent 65%);
  filter: blur(8px);
}
.pd-hero-inner { position: relative; z-index: 1; }
.pd-hero-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.pd-hero-cat {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  box-shadow: 0 2px 10px rgba(108,39,232,0.08);
  backdrop-filter: blur(6px);
}
.pd-hero-title {
  font-size: clamp(30px, 3.6vw, 42px); font-weight: 900; line-height: 1.1;
  color: var(--text); margin-bottom: 14px; letter-spacing: -0.8px;
}
.pd-hero-desc { color: var(--text-muted); font-size: 16px; margin-bottom: 22px; max-width: 640px; line-height: 1.65; }
.pd-hero-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim);
}
.pd-hero-meta-item { display: flex; align-items: center; gap: 7px; }
.pd-hero-meta-sep {
  font-size: 0; line-height: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: #c4b5fd; display: inline-block; opacity: .85;
}
.pd-hero-stars { color: #f59e0b; letter-spacing: 1px; }

/* Main grid */
.product-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.product-gallery img { width: 100%; border-radius: var(--radius-lg); }
.thumbnail-strip { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }

/* Feature highlights */
.pd-highlights {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 24px 0;
}
.pd-highlight-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1px solid #ece6ff;
  border-radius: var(--radius-lg); padding: 20px 14px;
  text-align: center; transition: transform .2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(108,39,232,.04);
}
.pd-highlight-card:hover {
  transform: translateY(-2px);
  border-color: #c4b5fd;
  box-shadow: 0 14px 32px rgba(108,39,232,0.10);
}
.pd-highlight-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(108,39,232,0.16), rgba(139,92,246,0.06));
  border: 1px solid rgba(108,39,232,0.10);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 18px; color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 12px rgba(108,39,232,.10);
}
.pd-highlight-label { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.3; letter-spacing: -0.1px; }
.pd-highlight-sub { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* ── PRODUCT DESCRIPTION PROSE ── */
.pd-description { color: var(--text-muted); font-size: 15px; line-height: 1.85; }
.pd-description h2 {
  font-size: 22px; font-weight: 800; color: var(--text);
  margin: 32px 0 12px; letter-spacing: -0.3px; line-height: 1.25;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.pd-description h2:first-child { margin-top: 0; }
.pd-description h3 {
  font-size: 16px; font-weight: 700; color: var(--text);
  margin: 24px 0 10px; letter-spacing: -0.1px;
  display: flex; align-items: center; gap: 8px;
}
.pd-description h3::before {
  content: ''; display: inline-block; width: 4px; height: 16px;
  background: var(--gradient-primary); border-radius: 2px; flex-shrink: 0;
}
.pd-description p { margin: 0 0 14px; }
.pd-description p:last-child { margin-bottom: 0; }
.pd-description strong { color: var(--text); font-weight: 700; }
.pd-description a { color: var(--primary); text-decoration: underline; }
.pd-description ul, .pd-description ol {
  margin: 4px 0 18px; padding: 0;
  list-style: none; display: grid;
  grid-template-columns: 1fr 1fr; gap: 8px;
}
.pd-description li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 13.5px;
  line-height: 1.45; color: var(--text-muted);
  transition: border-color 0.2s;
}
.pd-description li::before {
  content: ''; display: inline-block; width: 18px; height: 18px;
  border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: rgba(16,185,129,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2310b981' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.pd-description li:hover { border-color: rgba(108,39,232,0.2); }
@media (max-width: 640px) {
  .pd-description ul, .pd-description ol { grid-template-columns: 1fr; }
  .pd-description h2 { font-size: 18px; }
}

/* ── OVERVIEW META CARDS ── */
.pd-meta-section {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.pd-meta-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 8px; padding: 18px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: border-color 0.2s, box-shadow 0.2s;
}
.pd-meta-card:hover { border-color: rgba(108,39,232,0.25); box-shadow: 0 4px 16px rgba(108,39,232,0.08); }
.pd-meta-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(108,39,232,0.12), rgba(139,92,246,0.12));
  display: flex; align-items: center; justify-content: center;
}
.pd-meta-icon i { color: var(--primary); font-size: 14px; }
.pd-meta-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); }
.pd-meta-value { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.pd-meta-link { color: var(--primary) !important; text-decoration: none; font-weight: 700; }
.pd-meta-link:hover { text-decoration: underline; }
/* Meta cards: product-detail.css handles responsive layout on PDP */

/* ── TAGS ── */
.pd-tags-section { margin-top: 24px; }
.pd-tags-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 10px; }
.pd-tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tag {
  background: rgba(108,39,232,0.08); color: var(--primary);
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; border: 1px solid rgba(108,39,232,0.15);
  transition: background 0.2s;
}
.pd-tag:hover { background: rgba(108,39,232,0.14); }

/* Tech badges */
.pd-tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pd-tech-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 100px; font-size: 12px;
  font-weight: 600; color: var(--text-muted);
}

/* Gallery wrapper */
.pd-gallery-wrap {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
}
.pd-gallery-img {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 70% at 50% 38%, rgba(139,92,246,0.12) 0%, transparent 62%),
    linear-gradient(135deg, #f7f3ff 0%, #efe7ff 60%, #f4eeff 100%);
}
.pd-gallery-img img { width: 100%; height: 100%; object-fit: cover; background: transparent; transition: transform 0.4s; }
.pd-gallery-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(10,8,32,0.65); color: #fff;
  padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 600;
  backdrop-filter: blur(6px); z-index: 2;
}
.pd-gallery-strip { padding: 10px 12px 12px; display: flex; gap: 8px; overflow-x: auto; }
.pd-gallery-strip img {
  width: 80px; height: 52px; object-fit: cover; flex-shrink: 0;
  border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s, transform 0.15s;
}
.pd-gallery-strip img.active, .pd-gallery-strip img:hover { border-color: var(--primary); transform: scale(1.05); }

/* Included section in purchase box */
.pd-included { margin-top: 20px; }
.pd-included-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 10px; }
.pd-included-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pd-included-item {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  color: var(--text-muted); padding: 8px 10px;
  background: var(--bg3); border-radius: var(--radius); border: 1px solid var(--border);
}
.pd-included-item i { color: var(--primary); font-size: 12px; flex-shrink: 0; }
.thumbnail-strip img {
  width: 80px; height: 50px; object-fit: cover;
  border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: border-color 0.2s;
}
.thumbnail-strip img.active, .thumbnail-strip img:hover { border-color: var(--primary); }
.purchase-box {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border: 1px solid #ece6ff;
  border-radius: var(--radius-xl); padding: 28px; position: sticky; top: 80px;
  box-shadow: 0 12px 44px rgba(108,39,232,0.12), 0 0 0 1px rgba(108,39,232,0.05), inset 0 1px 0 #fff;
}
.pd-preview-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px 20px; margin-bottom: 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108,39,232,0.10), rgba(139,92,246,0.10));
  border: 1.5px solid rgba(108,39,232,0.28);
  color: var(--primary); font-size: 14px; font-weight: 700;
  text-decoration: none; box-sizing: border-box;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.pd-preview-btn:hover {
  background: linear-gradient(135deg, rgba(108,39,232,0.18), rgba(139,92,246,0.18));
  border-color: rgba(108,39,232,0.55);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(108,39,232,0.16);
}
.pd-preview-arrow { font-size: 11px; opacity: .65; font-weight: 500; }
.purchase-price { margin-bottom: 20px; }
.purchase-sale-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color:#fff; padding: 5px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
.purchase-price-current { font-size: clamp(28px, 7vw, 40px); font-weight: 900; color: var(--text); }
.purchase-price-original { font-size: 18px; color: var(--text-dim); text-decoration: line-through; margin-left: 10px; }
.plan-selector { margin: 20px 0; }
.plan-option {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px;
  cursor: pointer; transition: all 0.2s;
}
.plan-option:hover { border-color: rgba(124,58,237,0.4); background: rgba(124,58,237,0.06); }
.plan-option.selected { border-color: var(--primary); background: rgba(124,58,237,0.1); }
.plan-option input[type=radio] { accent-color: var(--primary); }
.plan-info { flex: 1; }
.plan-name { font-weight: 700; font-size: 14px; }
.plan-desc { color: var(--text-muted); font-size: 12px; }
.plan-price { font-weight: 900; font-size: 18px; color: var(--primary-light); }
.guarantee-list { margin: 20px 0; }
.guarantee-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted); padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.guarantee-item:last-child { border-bottom: none; }
.guarantee-item i { color: var(--green); width: 16px; flex-shrink: 0; }
.product-tabs { margin-top: 40px; }
.tabs-header {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 32px; overflow-x: auto;
}
.tab-btn {
  padding: 14px 22px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.2s;
  font-family: inherit; white-space: nowrap; position: relative;
}
.tab-btn:hover { color: var(--text); background: rgba(108,39,232,.04); border-radius: 8px 8px 0 0; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: linear-gradient(180deg, transparent 0%, rgba(108,39,232,.04) 100%); border-radius: 8px 8px 0 0; }

/* ── CHECKOUT ── */
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.checkout-step {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px;
}
.checkout-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.step-num {
  width: 28px; height: 28px;
  background: var(--gradient-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.security-note {
  background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius); padding: 14px; font-size: 13px;
  color: var(--amber); margin-top: 16px;
}
.install-fields { margin-top: 16px; display: none; }
.install-fields.show { display: block; }

/* ── SUCCESS ── */
.success-page { padding: 80px 0; text-align: center; }
.success-icon {
  font-size: 72px; margin-bottom: 24px;
  filter: drop-shadow(0 8px 24px rgba(16,185,129,0.4));
}
.success-page h1 { font-size: 40px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.success-page p { color: var(--text-muted); font-size: 16px; max-width: 540px; margin: 0 auto 32px; }
.order-items-list {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); max-width: 600px; margin: 0 auto 40px; overflow: hidden;
}
.order-item-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.order-item-row:last-child { border: none; }
.order-item-key {
  font-family: 'Courier New', monospace; font-size: 13px;
  background: rgba(124,58,237,0.1); padding: 5px 12px; border-radius: 8px;
  color: var(--primary-light); border: 1px solid rgba(124,58,237,0.2);
}

/* ── BLOG ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card {
  background: #ffffff; border: 1px solid rgba(108,39,232,0.12);
  border-radius: var(--radius-xl); overflow: hidden; transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 8px rgba(108,39,232,0.05);
}
.blog-card:hover {
  border-color: rgba(108,39,232,0.3); transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(108,39,232,0.13), 0 0 0 1px rgba(108,39,232,0.1);
}
.blog-card-img { aspect-ratio: 16/9; background: var(--bg3); overflow: hidden; }
.blog-card-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px; }
.blog-card-category {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(108,39,232,0.1); color: var(--primary-light);
  border: 1px solid rgba(108,39,232,0.2);
  padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.7px; margin-bottom: 12px;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 12px; margin-bottom: 10px; flex-wrap: wrap;
}
.blog-card-meta-dot { color: var(--border2); }
.blog-card-title { font-size: 17px; font-weight: 800; margin-bottom: 10px; line-height: 1.4; letter-spacing: -0.2px; }
.blog-card-title a { color: var(--text); transition: color 0.2s; }
.blog-card-title a:hover { color: var(--primary-light); }
.blog-card-excerpt { color: var(--text-muted); font-size: 13.5px; line-height: 1.65; margin-bottom: 14px; }

/* ── INNER HERO (all inner pages) ── */
.inner-hero {
  padding: 36px 0 30px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid #ececf6;
  background: #fafafe;
  --inner-accent: #6c27e8;
  --inner-accent-soft: rgba(108,39,232,.08);
  --inner-accent-tint: #f6f3ff;
}
.inner-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -20%, var(--inner-accent-soft) 0%, transparent 65%);
  pointer-events: none;
}
.inner-hero::after { display: none; }
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero-tag {
  display: inline-block;
  background: var(--inner-accent-soft); color: var(--inner-accent);
  /* Fallback for Safari < 16.2 / older browsers without color-mix() support */
  border: 1px solid rgba(108, 39, 232, 0.18);
  border: 1px solid color-mix(in srgb, var(--inner-accent) 18%, transparent);
  padding: 5px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.4px; margin-bottom: 16px;
}
.inner-hero h1 {
  font-size: clamp(26px, 3vw, 38px); font-weight: 800;
  letter-spacing: -0.8px; margin-bottom: 10px;
  color: #0f0a26;
}

/* Per-page accent variants (subtle differentiation) */
.inner-hero--about    { --inner-accent: #2563eb; --inner-accent-soft: rgba(37,99,235,.08);  --inner-accent-tint: #f1f6ff; background: #f7faff; }
.inner-hero--contact  { --inner-accent: #059669; --inner-accent-soft: rgba(5,150,105,.08);  --inner-accent-tint: #f1fbf6; background: #f7fcfa; }
.inner-hero--blog     { --inner-accent: #d97706; --inner-accent-soft: rgba(217,119,6,.08);  --inner-accent-tint: #fef9f1; background: #fcfaf6; }
.inner-hero--faq      { --inner-accent: #7c3aed; --inner-accent-soft: rgba(124,58,237,.08); --inner-accent-tint: #f6f3ff; background: #fafafe; }
.inner-hero--bundles  { --inner-accent: #6c27e8; --inner-accent-soft: rgba(108,39,232,.08); --inner-accent-tint: #f6f3ff; background: #faf9fe; }
.inner-hero--legal    { --inner-accent: #475569; --inner-accent-soft: rgba(71,85,105,.08);  --inner-accent-tint: #f4f6f9; background: #f8fafc; }
.inner-hero-meta-item i { color: var(--inner-accent, var(--primary-light)) !important; }
.inner-hero p {
  color: var(--text-muted); font-size: 17px; max-width: 560px;
  line-height: 1.7;
}
.inner-hero-meta {
  display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap;
}
.inner-hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}
.inner-hero-meta-item i { color: var(--primary-light); }

/* ── STATIC PAGES ── */
.static-page { max-width: 820px; margin: 0 auto; padding: 60px 24px 100px; }
.static-page h1 {
  font-size: 44px; font-weight: 900; margin-bottom: 16px; letter-spacing: -1px;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.static-page .subtitle { color: var(--text-muted); font-size: 17px; margin-bottom: 52px; border-bottom: 1px solid var(--border); padding-bottom: 40px; }
.static-page h2 { font-size: 22px; font-weight: 800; margin: 44px 0 14px; color: var(--text); }
.static-page h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.static-page p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.85; }
.static-page ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 16px; }
.static-page ul li { margin-bottom: 10px; line-height: 1.8; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 10px; overflow: hidden; transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(124,58,237,0.3); }
.faq-q {
  padding: 18px 22px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; transition: color 0.2s;
}
.faq-q:hover { color: var(--primary-light); }
.faq-a { padding: 0 22px 18px; color: var(--text-muted); font-size: 14px; line-height: 1.75; }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg2);
  border-top: 3px solid transparent;
  border-image: var(--gradient-primary) 1;
  padding: 72px 0 0;
  position: relative;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-primary);
}
.footer-cta {
  background: linear-gradient(135deg, rgba(108,39,232,0.08) 0%, rgba(168,85,247,0.04) 100%);
  border: 1px solid var(--border2); border-radius: var(--radius-xl);
  padding: 40px 48px; margin-bottom: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-cta-text h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.3px; }
.footer-cta-text p { color: var(--text-muted); font-size: 14px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 56px;
}
.footer-brand-desc { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-trust {
  background: var(--bg); border: 1px solid var(--border2);
  padding: 5px 12px; border-radius: 100px; font-size: 11px; font-weight: 600; color: var(--text-muted);
}
.footer-col h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text-dim); margin-bottom: 18px;
}
.footer-col a {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 14px; margin-bottom: 12px;
  transition: all 0.2s;
}
.footer-col a:hover { color: var(--primary-light); transform: translateX(2px); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  color: var(--text-dim); font-size: 13px; flex-wrap: wrap;
}
.payment-logos { display: flex; gap: 8px; align-items: center; }
.payment-logos span {
  background: #fff; border: 1px solid rgba(108,39,232,0.15);
  padding: 5px 12px; border-radius: 8px; font-size: 10px; font-weight: 900;
  letter-spacing: 0.8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.payment-logos .pay-visa   { color: #1a1f71; }
.payment-logos .pay-mc    { color: #eb001b; }
.payment-logos .pay-amex  { color: #006fcf; }
.payment-logos .pay-discover { color: #ff6000; }
.payment-logos .pay-square { color: #006aff; font-size: 9px; letter-spacing: 0.4px; }

/* PayPal Standard Checkout — hosted card fields (container height required by PayPal) */
.paypal-checkout-block { min-width: 0; }
#paypal-button-container {
  min-height: 48px;
  max-width: 100%;
}
.paypal-loading {
  margin: 0;
  padding: 16px 0;
  font-size: 14px;
  color: #7a749f;
  text-align: center;
}
.paypal-pay-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a749f;
}
.paypal-pay-divider::before,
.paypal-pay-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ddd6fe;
}
.paypal-card-fields-panel {
  background: #fff;
  border: 1.5px solid #ddd6fe;
  border-radius: 14px;
  padding: 20px 20px 18px;
  box-shadow: 0 4px 24px -8px rgba(108, 39, 232, 0.12);
}
.paypal-card-fields-title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: #0a0820;
}
.paypal-card-fields {
  display: grid;
  gap: 14px;
}
.paypal-card-fields__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .paypal-card-fields__row { grid-template-columns: 1fr; }
}
.paypal-card-field-group { min-width: 0; }
.paypal-card-field-box {
  background: #fff;
  border: 1.5px solid #e4dff8;
  border-radius: 10px;
  min-height: 52px;
  height: 52px;
  overflow: visible;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.paypal-card-field-box iframe {
  min-height: 48px !important;
  width: 100% !important;
}
.paypal-card-fields-section {
  margin-top: 4px;
}
.paypal-card-field-box:hover {
  border-color: #c4b5fd;
}
.paypal-card-field-box:focus-within {
  border-color: #6c27e8;
  box-shadow: 0 0 0 3px rgba(108, 39, 232, 0.15);
}
.paypal-card-field-box--wide { width: 100%; }
.paypal-card-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #5a5680;
  margin-bottom: 8px;
}
.paypal-card-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  min-height: 48px;
}
.paypal-error-alert {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.5;
}
.paypal-error-alert.is-visible { display: block; }
.paypal-error-alert i { margin-right: 6px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-dim); font-size: 13px; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-muted); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; transition: all 0.2s;
}
.pagination a:hover { border-color: rgba(124,58,237,0.4); color: var(--primary-light); background: rgba(124,58,237,0.08); }
.pagination .current { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(124,58,237,0.4); }

/* ── BADGES ── */
.badge { display: inline-block; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.badge-green { background: rgba(16,185,129,0.12); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.badge-red { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.badge-amber { background: rgba(245,158,11,0.12); color: var(--amber); border: 1px solid rgba(245,158,11,0.2); }
.badge-blue { background: rgba(59,130,246,0.12); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }
.badge-purple { background: rgba(124,58,237,0.12); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.2); }
.badge-gray { background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border2); }

/* ── PRODUCTS PAGE FILTERS ── */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-bar .form-control { width: auto; min-width: 160px; }
.category-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 32px; }
.category-pill {
  padding: 8px 18px; border-radius: 100px; font-size: 12px; font-weight: 700;
  border: 1.5px solid rgba(108,39,232,0.15); color: var(--text-muted);
  background: #ffffff; transition: all 0.22s cubic-bezier(0.4,0,0.2,1); cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 1px 4px rgba(108,39,232,0.06);
}
.category-pill:hover {
  background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.3); color: var(--primary);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(108,39,232,0.1);
}
.category-pill.active {
  background: var(--gradient-primary); border-color: transparent; color: #fff;
  box-shadow: 0 4px 16px rgba(108,39,232,0.3);
  transform: translateY(-1px);
}

/* ── PRODUCTS PAGE HEADER ── */
.products-page-header {
  padding: 60px 0 40px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,0.12) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}

/* ── CUSTOMER DASHBOARD ── */
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.dash-stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; transition: all 0.2s;
}
.dash-stat-card:hover { border-color: rgba(124,58,237,0.25); }
.dash-stat-label { font-size: 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.dash-stat-val { font-size: 28px; font-weight: 900; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.dash-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.dash-section-header h3 { font-size: 15px; font-weight: 700; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); padding: 12px 20px; background: var(--bg2); border-bottom: 1px solid var(--border); text-align: left; }
.dash-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.dash-table tbody tr:last-child td { border-bottom: none; }
.dash-table tbody tr:hover td { background: rgba(124,58,237,0.04); }

/* ── PRODUCTS LISTING PAGE ── */
.products-filters {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 28px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}

/* ── MISC ── */
code, .mono { font-family: 'Courier New', monospace; font-size: 13px; }
.text-primary { color: var(--primary-light); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-dim { color: var(--text-dim); }
.mb-1 { margin-bottom: 8px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }

/* ── BLOG CARD PLACEHOLDER (gradient like product cards) ── */
.blog-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #ede9ff 0%, #e4ddff 50%, #f0eeff 100%);
  position: relative; overflow: hidden;
}
.blog-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(124,58,237,0.12) 0%, transparent 70%);
}
.blog-img-placeholder-icon {
  font-size: 40px; position: relative; z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(124,58,237,0.4));
}
.blog-img-placeholder-text {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text-dim); position: relative; z-index: 1;
}

/* ── ABOUT PAGE ── */
.about-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 36px;
}
.about-stat {
  background: var(--bg2); padding: 28px 24px; text-align: center;
}
.about-stat-num {
  font-size: 36px; font-weight: 900; letter-spacing: -1px;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block;
}
.about-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.about-section { padding: 72px 0; }
.about-section + .about-section { border-top: 1px solid var(--border); }
.about-values-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-top: 40px;
}
.about-value-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.about-value-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.about-value-card:hover { border-color: rgba(108,39,232,0.25); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(108,39,232,0.1); }
.about-value-card:hover::before { transform: scaleX(1); }
.about-value-icon {
  width: 48px; height: 48px;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.about-value-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.about-value-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.about-process-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px; margin-top: 40px; position: relative;
}
.about-process-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.about-process-num {
  font-size: 48px; font-weight: 900; line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.about-process-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.about-process-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.about-cta-section {
  padding: 80px 0; text-align: center;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(124,58,237,0.15) 0%, transparent 60%);
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; padding: 72px 0 100px;
}
.contact-form-card {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-xl); padding: 36px;
  box-shadow: 0 8px 40px rgba(108,39,232,0.08), 0 0 0 1px rgba(108,39,232,0.08);
}
.contact-form-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.contact-form-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.contact-info-stack { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: border-color 0.2s;
}
.contact-info-item:hover { border-color: rgba(124,58,237,0.25); }
.contact-info-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--primary-light); font-size: 15px;
}
.contact-info-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 4px; }
.contact-info-value { font-size: 15px; font-weight: 600; color: var(--text); }
.contact-info-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.contact-quick-links {
  background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, rgba(168,85,247,0.03) 100%);
  border: 1px solid rgba(124,58,237,0.15); border-radius: var(--radius-lg); padding: 22px;
}
.contact-ql-heading {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-dim); margin-bottom: 14px;
}
.contact-ql-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; transition: all 0.2s;
}
.contact-ql-link:last-child { border-bottom: none; padding-bottom: 0; }
.contact-ql-link:hover { color: var(--text); transform: translateX(3px); }
.contact-ql-link i { color: var(--primary-light); width: 16px; text-align: center; flex-shrink: 0; }

/* ── HERO FLOATING CARDS ── */
.hero-trust-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 40px; flex-wrap: wrap;
}
.hero-trust-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border2);
  padding: 8px 16px; border-radius: 100px;
  font-size: 12px; color: var(--text-muted);
}
.hero-trust-item i { color: var(--primary-light); }

/* ── PRODUCTS PAGE ── */
.products-inner-hero {
  padding: 52px 0 44px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid #ddd8ff;
  background: linear-gradient(160deg, #ece8ff 0%, #f5f2ff 50%, #fdfcff 100%);
}
.products-inner-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -5%, rgba(124,58,237,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 96% 70%, rgba(168,85,247,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.products-inner-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}
.products-inner-hero-stats {
  display: flex; align-items: center; gap: 24px;
  margin-top: 20px; flex-wrap: wrap;
}
.products-inner-hero-stat {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-dim);
}
.products-inner-hero-stat strong { color: var(--text); font-weight: 700; }
.products-inner-hero-stat i { color: var(--primary-light); font-size: 11px; }
.products-inner-hero .container { position: relative; z-index: 1; }
.products-inner-hero h1 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 900;
  letter-spacing: -1px; margin-bottom: 12px;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.products-inner-hero p { color: var(--text-muted); font-size: 17px; line-height: 1.7; }
.products-filters-bar {
  background: #ffffff; border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 18px 24px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(108,39,232,0.06);
  margin-bottom: 28px;
}
.blog-inner-hero {
  padding: 52px 0 48px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid #ddd8ff;
  background: linear-gradient(160deg, #ece8ff 0%, #f5f2ff 50%, #fdfcff 100%);
}
.blog-inner-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(124,58,237,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 40% 55% at 90% 80%, rgba(168,85,247,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.blog-inner-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}
.blog-inner-hero .container { position: relative; z-index: 1; }
.blog-inner-hero h1 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 900;
  letter-spacing: -1px; margin-bottom: 12px;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.blog-inner-hero p { color: var(--text-muted); font-size: 17px; max-width: 520px; line-height: 1.7; }

/* ── UTILITY ── */
.hidden { display: none !important; }
.section-h2 {
  font-size: clamp(24px, 3vw, 40px); font-weight: 900;
  letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.15;
  color: var(--text);
}
.section-h2-lg {
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 900;
  letter-spacing: -0.5px; margin-bottom: 14px; line-height: 1.1;
  color: var(--text);
}
.section-p { color: var(--text-muted); font-size: 16px; line-height: 1.85; margin-bottom: 16px; }
.section-p-lg { color: var(--text-muted); font-size: 17px; line-height: 1.7; max-width: 480px; margin: 0 auto 36px; }
.flex-btns { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.flex-btns-center { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.empty-state { text-align: center; padding: 80px 0; }
.empty-state-icon { font-size: 56px; margin-bottom: 20px; filter: drop-shadow(0 4px 16px rgba(124,58,237,0.3)); }
.empty-state h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.empty-state-sub { color: var(--text-muted); font-size: 15px; max-width: 400px; margin: 0 auto 28px; line-height: 1.65; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }
.read-more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--primary-light); }
.read-more-link:hover { color: var(--primary); }
.read-more-link i { font-size: 11px; }
.card-cat-label { color: var(--primary-light); font-weight: 700; }
.promise-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px 20px;
}
.promise-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.promise-title { font-size: 14px; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.promise-desc { font-size: 13px; color: var(--text-muted); }
.promise-list { display: flex; flex-direction: column; gap: 14px; }
.two-col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.section-header--left { text-align: left; }
.section-header--left p { margin-left: 0; }
.filter-icon { color: var(--text-dim); flex-shrink: 0; }
.filter-input { max-width: 240px; }
.filter-select { max-width: 200px; }
.filter-select-sm { max-width: 180px; }

/* ── SHARED COMPONENTS (used by customer dashboard + admin) ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; cursor: pointer; border: none; font-weight: 600; transition: all 0.2s; border-radius: var(--radius); text-decoration: none; }

.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: all 0.2s; }
.stat-card:hover { border-color: rgba(124,58,237,0.25); }
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 10px; }
.stat-value { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -0.5px; }
.stat-value.green { color: var(--green); }
.stat-value.blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-value.purple { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-value.amber { color: var(--amber); }
.stat-value.red { color: var(--red); }

.admin-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.admin-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.admin-card-header h3 { font-size: 15px; font-weight: 700; }
.admin-card-body { padding: 24px; }
.admin-card-actions { display: flex; gap: 8px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); padding: 12px 20px; background: var(--bg2); border-bottom: 1px solid var(--border); text-align: left; }
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(108,39,232,0.04); }
.data-table a { color: var(--primary); }
.data-table a:hover { color: var(--primary-dark); }
.data-table strong { color: var(--text); }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.page-header p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.text-dim { color: var(--text-dim); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.mono { font-family: 'Courier New', monospace; font-size: 13px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.5); }

/* ── RESPONSIVE ── */
/* old 768px block removed — replaced by comprehensive responsive section at end of file */

/* ── IMAGE LIGHTBOX ── */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(10,8,32,0.92);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
  backdrop-filter: blur(6px);
}
.lb-overlay.open { opacity: 1; pointer-events: all; }
.lb-img-wrap { position: relative; max-width: 90vw; max-height: 88vh; }
.lb-img-wrap img { max-width: 90vw; max-height: 88vh; border-radius: 10px; display: block; }
.lb-close {
  position: fixed; top: 20px; right: 24px;
  width: 40px; height: 40px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  color: #fff; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-caption {
  position: absolute; bottom: -36px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,0.7); font-size: 13px;
}
.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.55); font-size: 13px;
}

/* ── SALE COUNTDOWN ── */
.pd-countdown {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(220,38,38,0.06));
  border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 16px;
}
.pd-countdown-label { font-size: 12px; font-weight: 700; color: var(--red); flex: 1; }
.pd-countdown-timer { display: flex; gap: 6px; }
.pd-countdown-unit {
  background: var(--red); color: #fff; border-radius: 6px;
  padding: 4px 8px; font-size: 13px; font-weight: 800; min-width: 36px; text-align: center;
}
.pd-countdown-sep { color: var(--red); font-weight: 800; line-height: 26px; }

/* ── WISHLIST HEART ── */
.wishlist-btn {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.wishlist-btn:hover { transform: scale(1.1); background: #fff; }
.wishlist-btn i { font-size: 13px; color: #ccc; transition: color 0.2s; }
.wishlist-btn.wishlisted i { color: #ef4444; }
.wishlist-btn.wishlisted { background: #fff; }

/* ── SOCIAL SHARING ── */
.pd-sharing {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
}
.pd-sharing-label { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.pd-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border2); color: var(--text-muted);
  text-decoration: none; font-size: 13px; transition: all 0.2s;
}
.pd-share-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(108,39,232,0.06); }
.pd-share-copy { background: none; cursor: pointer; }

/* ── COUPON FIELD ── */
.pd-coupon-wrap { margin: 16px 0; }
.pd-coupon-toggle {
  font-size: 13px; color: var(--primary); font-weight: 600; cursor: pointer;
  background: none; border: none; padding: 0; text-decoration: underline; text-underline-offset: 3px;
}
.pd-coupon-row {
  display: none; margin-top: 10px;
  display: flex; gap: 8px; align-items: center;
}
.pd-coupon-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border2);
  border-radius: var(--radius); font-size: 14px; font-family: inherit;
  background: var(--bg); color: var(--text);
  transition: border-color 0.2s;
}
.pd-coupon-input:focus { outline: none; border-color: var(--primary); }
.pd-coupon-msg { font-size: 12px; margin-top: 6px; font-weight: 600; }
.pd-coupon-msg.ok { color: var(--green); }
.pd-coupon-msg.err { color: var(--red); }

/* ── SEARCH AUTOCOMPLETE ── */
.search-wrap { position: relative; }
.search-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 500;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 12px 40px rgba(108,39,232,0.15);
  display: none;
}
.search-dropdown.open { display: block; }
.search-drop-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; text-decoration: none; color: var(--text);
  transition: background 0.15s; font-size: 14px;
}
.search-drop-item:hover { background: var(--bg3); }
.search-drop-item img { width: 36px; height: 24px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-drop-item-noimg { width: 36px; height: 24px; background: var(--bg3); border-radius: 4px; flex-shrink: 0; display:flex;align-items:center;justify-content:center;font-size:14px; }
.search-drop-name { font-weight: 600; flex: 1; }
.search-drop-price { color: var(--primary); font-weight: 700; font-size: 13px; white-space: nowrap; }
.search-drop-footer {
  padding: 8px 14px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim); text-align: center;
}

/* ── DOWNLOAD PROGRESS ── */
.dl-progress-wrap {
  margin-top: 12px; display: none;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
}
.dl-progress-bar-bg {
  height: 6px; background: var(--border2); border-radius: 3px; overflow: hidden; margin: 8px 0;
}
.dl-progress-bar { height: 100%; background: var(--gradient-primary); border-radius: 3px; width: 0%; transition: width 0.2s; }
.dl-progress-label { font-size: 12px; color: var(--text-dim); display: flex; justify-content: space-between; }

/* ── DRAG REORDER HANDLE ── */
.ss-drag-handle {
  cursor: grab; padding: 4px; color: var(--text-dim); font-size: 13px;
  display: flex; align-items: center;
}
.ss-drag-handle:active { cursor: grabbing; }
.ss-sortable-item.dragging { opacity: 0.4; border: 2px dashed var(--primary); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — SITE HEADER
   ≤768px   mobile — hamburger; menu + search + auth in drawer
   769–1199 tablet — logo + inline menu + cart/user (search hidden)
   1200px+  desktop — logo + menu + search + cart/user
   ═══════════════════════════════════════════════════════ */

.mobile-nav-search,
.mobile-nav-auth { display: none !important; }

/* ── MOBILE (phones) ── */
@media (max-width: 768px) {
  .nav-search-desktop { display: none !important; }
  .nav-desktop-auth   { display: none !important; }

  .site-header .container { position: relative; }
  .site-header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: unset;
    grid-template-areas: unset;
    padding: 12px 0;
    gap: 12px;
    position: relative;
    flex-wrap: nowrap;
  }
  .site-header .logo { flex: 0 0 auto; }
  .site-header .nav-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .site-nav-root .mobile-nav-drawer {
    display: none;
    position: fixed;
    top: var(--mobile-nav-top, var(--nav-h, 57px));
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1101;
    pointer-events: auto;
    background: #ffffff;
    border-top: 1px solid var(--border2);
    box-shadow: 0 -4px 32px rgba(15, 10, 30, 0.12);
    flex-direction: column;
    padding: 0;
    margin: 0;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav-root .mobile-nav-drawer.open {
    display: flex !important;
  }
  .site-header.nav-open .mobile-toggle-label { display: none; }
  .mobile-toggle { display: inline-flex !important; }
  .site-header .cart-btn,
  .site-header .mobile-toggle {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 10, 30, 0.08);
  }
}

/* ── TABLET: menu in header, no search bar ── */
@media (min-width: 769px) and (max-width: 1199px) {
  .nav-search-desktop,
  #nav-search-wrap {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
    flex: 0 0 0 !important;
  }
  .mobile-nav-search { display: none !important; }
  .mobile-toggle { display: none !important; }
  .nav-desktop-auth { display: flex !important; }

  .site-header .navbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo links actions";
    align-items: center;
    column-gap: clamp(10px, 2vw, 20px);
    padding: 12px 0;
  }
  .site-header .logo { grid-area: logo; }
  .site-header .nav-links {
    grid-area: links;
    display: flex !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .site-header .nav-search-desktop { display: none !important; }
  .site-header .nav-actions {
    grid-area: actions;
    margin-left: 0;
  }
  .user-btn { max-width: min(180px, 28vw); padding: 8px 12px; font-size: 13px; }
}

/* ── DESKTOP: logo + menu + search + actions ── */
@media (min-width: 1200px) {
  .nav-search-desktop { display: block !important; }
  .mobile-toggle { display: none !important; }
  .mobile-nav-search,
  .mobile-nav-auth { display: none !important; }
  .nav-desktop-auth { display: flex !important; }

  .site-header .navbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(160px, 280px) auto;
    grid-template-areas: "logo links search actions";
    align-items: center;
    column-gap: clamp(12px, 2vw, 24px);
    padding: 14px 0;
  }
  .site-header .logo { grid-area: logo; }
  .site-header .nav-links {
    grid-area: links;
    display: flex !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .site-header .nav-search-desktop {
    grid-area: search;
    display: block !important;
    max-width: 280px;
    width: 100%;
    justify-self: end;
  }
  .site-header .nav-actions {
    grid-area: actions;
    margin-left: 0;
    justify-self: end;
    gap: 12px;
  }
  .nav-link { padding: 7px 14px; font-size: 14px; }
}

@media (max-width: 768px) {
  .navbar { gap: 0; }

  /* === HERO === */
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.5px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 20px; }

  /* === ANNOUNCEMENT BAR === */
  .hp-topbar { font-size: 12px; padding: 9px 16px; }

  /* === INNER HERO === */
  .inner-hero { padding: 28px 0 26px; }
  .inner-hero h1 { font-size: clamp(24px, 6vw, 38px); }
  .inner-hero p { font-size: 15px; }
  .inner-hero-meta { gap: 12px; }

  /* === LAYOUTS === */
  .cart-grid, .checkout-grid, .product-detail-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; top: auto; }
  .checkout-gate-grid .checkout-gate-summary { order: 2; }
  .checkout-gate-grid .checkout-gate-auth { order: 1; }
  .bundle-grid { grid-template-columns: 1fr !important; }
  .bundle-detail-layout { grid-template-columns: 1fr !important; }
  .pd-split-grid { grid-template-columns: 1fr !important; }
  .two-col-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-hero-stats { grid-template-columns: 1fr 1fr; }

  /* === PRODUCT DETAIL === */
  .product-detail-grid { gap: 28px; }
  .pd-hero { padding: 32px 0 28px; }
  .pd-hero-title { font-size: 26px; }
  .pd-hero-desc { font-size: 14px; }
  .pd-hero-meta { gap: 12px; flex-wrap: wrap; }
  .pd-hero-meta-sep { display: none; }
  .pd-gallery-strip { padding: 8px; }
  .pd-included-grid { grid-template-columns: 1fr; }
  .purchase-box { position: static; top: auto; padding: 18px 16px; }
  .purchase-price-current { font-size: 32px; }
  .plan-option { padding: 10px 12px; }
  .plan-price { font-size: 15px; }
  .product-tabs { margin-top: 24px; }
  .tabs-header { margin-bottom: 18px; -webkit-overflow-scrolling: touch; }
  .tab-btn { padding: 8px 12px; font-size: 12px; }
  /* PDP meta cards: see product-detail.css */
  .pd-split-grid > div { padding: 10px 12px !important; font-size: 13px !important; }
  .pd-sharing { flex-wrap: wrap; }

  /* === FOOTER === */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-cta-wrap { padding: 28px 24px; }

  /* === TABLES (admin + data) === */
  .table-wrap, .tbl-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 560px; }

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

  /* === BLOG === */
  .blog-inner-hero p { font-size: 15px; }

  /* === MISC === */
  .section { padding: 60px 0; }
}

/* ── TABLET-ONLY TWEAKS (768–1024) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-detail-grid { grid-template-columns: 1fr 300px; gap: 28px; }
  .checkout-grid { grid-template-columns: 1fr 300px; gap: 24px; }
  .cart-grid { grid-template-columns: 1fr 280px; gap: 24px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
  .two-col-grid { gap: 36px; }
}

/* ── SMALL PHONE (≤480px) ── */
@media (max-width: 480px) {
  /* Container breathing room */
  .container { padding: 0 16px; }

  /* Announcement bar */
  .hp-topbar { font-size: 11px; padding: 8px 12px; letter-spacing: 0; }

  /* Navbar */
  .logo { font-size: 18px; }
  .cart-btn { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }

  /* Hero */
  .hero h1 { font-size: 28px; }
  .inner-hero { padding: 24px 0 22px; }
  .inner-hero h1 { font-size: clamp(22px, 7vw, 30px); letter-spacing: -0.5px; }
  .inner-hero p { font-size: 14px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-cta-wrap { padding: 22px 18px; flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Buttons */
  .btn-primary, .btn-outline { padding: 11px 20px; font-size: 14px; }

  .pd-hero-title { font-size: 22px; }

  /* Dashboard */
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 16px; }
  .stat-num { font-size: 26px; }

  /* Tables on phone */
  table { min-width: 480px; }
  .tbl-td-sm { display: none; }

  /* Forms */
  .card { padding: 20px 16px; }
  .form-grid { gap: 12px; }

  /* Blog */
  .blog-card { border-radius: var(--radius-lg); }

  /* Checkout & cart */
  .page-header h1 { font-size: 26px; }
  .cart-item { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .cart-item-img { width: 60px; height: 60px; }
  .cart-item-price { font-size: 17px; }
  .checkout-step { padding: 18px 16px; }
  .checkout-step h3 { font-size: 16px; }

  /* Product detail */
  .pd-sharing { gap: 6px; }
  .pd-countdown { flex-wrap: wrap; gap: 8px; }

  /* Flash messages */
  .flash { font-size: 13px; padding: 12px 14px; }

  /* Misc layout */
  .section { padding: 44px 0; }
  .section-header { margin-bottom: 28px; }
  .section-header h2 { font-size: clamp(22px, 6vw, 28px); }
}

/* ── VERY SMALL (≤360px) ── */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .inner-hero h1 { font-size: 20px; }
  .navbar { padding: 10px 0; }
  .cart-btn { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
  .mobile-toggle { font-size: 17px; }
  .btn-primary, .btn-outline { padding: 10px 16px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE UTILITIES — shared layout classes
   ═══════════════════════════════════════════════════════ */
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}
.bundle-detail-layout {
  display: grid;
  grid-template-columns: 1fr min(340px, 100%);
  gap: 32px;
  align-items: start;
}
.pd-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dash-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.dash-profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* Checkout gate: auth + summary side-by-side (avoids sticky summary covering login) */
.checkout-gate-grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}
.checkout-gate-auth { min-width: 0; }
.checkout-gate-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.checkout-gate-line-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.checkout-gate-line-img--placeholder {
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-gate-line-info { flex: 1; min-width: 0; }
.checkout-gate-line-name {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}
.checkout-gate-line-plan { font-size: 12px; color: var(--text-muted); }
.checkout-gate-line-price {
  font-weight: 700;
  color: var(--primary-light);
  white-space: nowrap;
  flex-shrink: 0;
}
.checkout-gate-perks {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checkout-gate-perks i { color: #22c55e; width: 16px; }
.checkout-gate-secure {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
@media (min-width: 769px) {
  .checkout-gate-grid.checkout-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 32px;
  }
  .checkout-gate-grid .checkout-gate-summary.order-summary {
    position: sticky;
    top: 88px;
  }
}
@media (max-width: 768px) {
  .dash-profile-grid,
  .dash-profile-fields { grid-template-columns: 1fr; }
}
