/* ─────────────────────────────────────────────
   ShopX – Premium Physical Store CSS
   ───────────────────────────────────────────── */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* High-End Obsidian Glass Theme */
  --bg:        #000000;
  --bg-2:      #050505;
  --bg-card:   rgba(10, 10, 12, 0.6);
  --border:    rgba(255,255,255,0.04);
  --border-h:  rgba(255,255,255,0.12);
  --text:      #f4f4f5;
  --text-muted:#828282;
  --purple:    #007aff;
  --purple-l:  #1a8bff;
  --cyan:      #10b981; 
  --pink:      #ec4899;
  --gold:      #f59e0b;
  --green:     #10b981;
  --red:       #ef4444;
  --gradient:  linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.0));
  --accent-gradient: linear-gradient(135deg, #007aff, #00c6ff);
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --shadow:    0 30px 60px -10px rgba(0,0,0,0.8);
  --trans:     0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
}

/* ── DOUBLE-BEZEL / BENTO UTILS ── */
.db-outer {
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.db-inner {
  border-radius: calc(var(--radius) - 1px);
  overflow: hidden;
  position: relative;
}
.db-glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.db-solid {
  background: var(--bg-2);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 99px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: var(--accent-gradient);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  white-space: nowrap;
  position: relative; z-index: 1;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 1.5px;
  border-radius: 10.5px;
  background: #0a0a0c;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.btn-primary:hover::before { opacity: 0; }
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 12px 40px rgba(0, 122, 255, 0.4); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: transparent;
  border: 1.5px solid var(--border-h);
  color: var(--text); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, color 0.4s ease;
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple-l); transform: translateY(-4px) scale(1.02); }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 10px 20px; border-radius: 10px;
  color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  transition: var(--trans);
}
.btn-ghost:hover { color: var(--text); background: var(--border); }

.btn-ghost-white {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease; backdrop-filter: blur(10px);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-4px) scale(1.02); }

.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ── ADD TO CART BUTTON ── */
.btn-cart {
  width: 100%; padding: 12px; border-radius: 12px;
  background: var(--accent-gradient);
  color: #fff; font-weight: 600; font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-cart::before {
  content: ''; position: absolute; inset: 1.5px;
  border-radius: 10.5px;
  background: #0a0a0c;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.btn-cart:hover::before { opacity: 0; }
.btn-cart:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4); color: #fff; }
.btn-cart.added::before {
  opacity: 0;
}
.btn-cart.added {
  background: linear-gradient(135deg,#10b981,#059669);
}

.btn-checkout {
  margin-bottom: 12px;
}

/* ── GRADIENT TEXT ── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────
   CART OVERLAY & DRAWER
   ───────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 95vw;
  z-index: 1200;
  background: rgba(18, 18, 20, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--border-h);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.cart-header-count {
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
}
.cart-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1rem;
  cursor: pointer; transition: var(--trans);
  display: flex; align-items: center; justify-content: center;
}
.cart-close:hover { border-color: var(--red); color: var(--red); }

.cart-items {
  flex: 1; overflow-y: auto; padding: 16px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px;
  height: 100%; text-align: center; color: var(--text-muted);
}
.cart-empty-icon { font-size: 3.5rem; opacity: 0.5; }
.cart-empty p { font-size: 1rem; font-weight: 600; color: var(--text); }
.cart-empty span { font-size: 0.85rem; }

/* ── CART ITEM ── */
.cart-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
  animation: slideInCart 0.3s ease;
}
@keyframes slideInCart {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ci-emoji {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
}
.ci-info { flex: 1; min-width: 0; }
.ci-info strong {
  display: block; font-size: 0.88rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.ci-price { font-size: 0.95rem; font-weight: 700; color: var(--purple-l); }
.ci-controls {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.ci-qty-btn {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border-h);
  color: var(--text); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--trans);
  display: flex; align-items: center; justify-content: center;
}
.ci-qty-btn:hover { border-color: var(--purple); color: var(--purple-l); }
.ci-qty { font-size: 0.9rem; font-weight: 600; color: #fff; min-width: 20px; text-align: center; }
.ci-remove {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
  color: var(--red); font-size: 0.8rem;
  cursor: pointer; transition: var(--trans);
  display: flex; align-items: center; justify-content: center;
  margin-left: 4px;
}
.ci-remove:hover { background: rgba(239,68,68,0.2); }

.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
}
.cart-subtotal span { color: var(--text-muted); font-size: 0.9rem; }
.cart-subtotal strong { font-size: 1.3rem; font-weight: 800; color: #fff; }
.cart-shipping-note {
  text-align: center; font-size: 0.8rem; color: var(--green);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px; padding: 8px;
}

/* ─────────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────────── */
.floating-navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#navbar.floating-navbar.scrolled {
  top: 12px;
  width: calc(100% - 48px);
  left: 24px;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.08);
  border-radius: 99px;
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
#navbar.floating-navbar.scrolled .nav-container {
  padding: 12px 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  text-decoration: none;
}
.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  border: 1.5px solid rgba(56, 189, 248, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
}
.logo-icon { font-size: 1.5rem; }
.logo-text { color: #fff; display: flex; align-items: center; gap: 4px; }
.logo-accent {
  color: #38bdf8;
  background: linear-gradient(135deg, #38bdf8, #007aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex; gap: 8px; align-items: center;
}
.nav-links a {
  padding: 8px 16px; border-radius: 8px;
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: var(--trans);
}
.nav-links a:hover { color: var(--text); background: var(--border); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ── CART BUTTON ── */
.cart-btn {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border-h);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--trans);
  color: #fff;
  display: flex; align-items: center; gap: 4px;
}
.cart-btn:hover { border-color: var(--purple); box-shadow: 0 0 20px rgba(124,58,237,0.3); }

.cart-badge {
  position: absolute;
  top: -8px; right: -8px;
  min-width: 20px; height: 20px;
  border-radius: 99px; padding: 0 5px;
  background: var(--gradient);
  color: #fff; font-size: 0.72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  border: 2px solid var(--bg);
}
.cart-badge.bump {
  animation: badgeBump 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes badgeBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.cart-btn-mobile {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 12px 16px; border-radius: 10px;
  background: var(--gradient); border: none;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; width: 100%; position: relative;
}
.cart-badge-sm {
  background: rgba(255,255,255,0.25);
  border-radius: 99px; padding: 2px 8px;
  font-size: 0.8rem; font-weight: 700;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 99px; transition: var(--trans);
}
.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 24px 24px;
  background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  position: absolute;
  top: calc(100% + 12px); left: 0; width: 100%;
  opacity: 0; pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#navbar.floating-navbar.scrolled .mobile-menu {
  width: 100%; left: 0; margin: 0;
}
.mobile-menu a {
  padding: 12px 16px; border-radius: 10px;
  color: var(--text-muted); font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0; transform: translateX(-10px);
}
.mobile-menu a:hover { background: var(--border); color: var(--text); }
.mobile-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.mobile-menu.open a { opacity: 1; transform: translateX(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open button { opacity: 1; transform: translateX(0); transition: all 0.3s ease 0.25s; }
.mobile-menu button { opacity: 0; transform: translateX(-10px); }

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px;
  padding: 80px 7%;
  position: relative; overflow: hidden;
  max-width: 1300px; margin: 0 auto;
}

.hero-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.35;
}
.orb-1 { width: 600px; height: 600px; background: var(--purple); top: -200px; left: -100px; animation: orbFloat 8s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: var(--cyan); top: 40%; right: -100px; animation: orbFloat 10s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; background: var(--pink); bottom: 0; left: 40%; animation: orbFloat 12s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { flex: 1; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 99px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple-l); font-size: 0.85rem; font-weight: 500;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple-l);
  box-shadow: 0 0 10px var(--purple-l);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.85)} }

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.15;
  color: #fff; margin-bottom: 24px;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 36px; max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.4rem; font-weight: 800; color: #fff; }
.stat span { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border-h); }

/* ── FLOATING CARDS ── */
.hero-visual { flex: 1; max-width: 440px; position: relative; height: 480px; perspective: 1000px; }
.floating-cards { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.float-card {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
}
.float-card .fc-content {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
}
.float-card:hover { transform: scale(1.08) translateZ(30px) !important; z-index: 10; }
.fc-icon { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; }
.fc-text { display: flex; flex-direction: column; }
.fc-text h4 { font-weight: 700; color: #fff; font-size: 0.95rem; line-height: 1.2; margin-bottom: 2px; }
.fc-text span { font-size: 0.8rem; color: var(--purple-l); }
.fc-1 { top: 30px; left: 20px; animation: float1 5s ease-in-out infinite; transform: translateZ(10px); }
.fc-2 { top: 140px; right: 0; animation: float2 6s ease-in-out infinite; transform: translateZ(20px); }
.fc-3 { top: 270px; left: 30px; animation: float1 7s ease-in-out infinite 1s; transform: translateZ(30px); }
.fc-4 { bottom: 20px; right: 20px; animation: float2 5.5s ease-in-out infinite 0.5s; transform: translateZ(40px); }
@keyframes float1 { 0%,100%{transform:translateY(0) rotateX(2deg) rotateY(-2deg)} 50%{transform:translateY(-14px) rotateX(-2deg) rotateY(2deg)} }
@keyframes float2 { 0%,100%{transform:translateY(0) rotateX(-2deg) rotateY(2deg)} 50%{transform:translateY(14px) rotateX(2deg) rotateY(-2deg)} }

/* ─────────────────────────────────────────────
   TRUSTED BY
   ───────────────────────────────────────────── */
.trusted {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 7%; text-align: center;
  background: var(--bg-2);
}
.trusted-label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }
.trusted-logos {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 40px;
}
.trusted-logos span {
  font-weight: 700; font-size: 1.1rem; color: rgba(255,255,255,0.25);
  letter-spacing: 1px; text-transform: uppercase;
  transition: color 0.3s;
}
.trusted-logos span:hover { color: rgba(255,255,255,0.6); }

/* ─────────────────────────────────────────────
   SECTION HEADERS
   ───────────────────────────────────────────── */
.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px; border-radius: 99px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  color: var(--purple-l); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 16px;
  text-transform: uppercase;
}
.section-header h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: #fff; margin-bottom: 14px;
}
.section-header p { color: var(--text-muted); max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

/* ─────────────────────────────────────────────
   CATEGORIES
   ───────────────────────────────────────────── */
.categories-section {
  padding: 80px 7%;
  background: var(--bg-2);
}
.categories-section .section-header { max-width: 1200px; margin: 0 auto 56px; }
.categories-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.category-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 40px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--trans);
  cursor: pointer; text-align: center;
  position: relative; overflow: hidden;
}
.category-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.3s;
}
.cat-ai::before       { background: linear-gradient(135deg,rgba(124,58,237,0.12),transparent); }
.cat-software::before { background: linear-gradient(135deg,rgba(16,185,129,0.12),transparent); }
.cat-media::before    { background: linear-gradient(135deg,rgba(59,130,246,0.12),transparent); }
.cat-design::before   { background: linear-gradient(135deg,rgba(236,72,153,0.12),transparent); }
.category-card:hover { border-color: var(--border-h); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.category-card:hover::before { opacity: 1; }
.cat-icon { font-size: 3rem; }
.category-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; }
.category-card span { font-size: 0.82rem; color: var(--text-muted); }

/* ─────────────────────────────────────────────
   PRODUCTS
   ───────────────────────────────────────────── */
.products-section {
  padding: 80px 7%;
  max-width: 1300px; margin: 0 auto;
}
.products-filter {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 48px;
}
.filter-btn {
  padding: 9px 22px; border-radius: 99px;
  background: transparent;
  border: 1.5px solid var(--border-h);
  color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  cursor: pointer; transition: var(--trans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* ── PRODUCT CARD ── */
.product-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.product-card:hover.db-outer {
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
}
.pc-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 12px; border-radius: 99px; z-index: 2;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  color: var(--gold); font-size: 0.75rem; font-weight: 700;
}
.pc-badge.popular { background: rgba(124,58,237,0.2); border-color: rgba(124,58,237,0.4); color: var(--purple-l); }
.pc-badge.new-badge { background: rgba(16,185,129,0.2); border-color: rgba(16,185,129,0.4); color: var(--green); }

.pc-header {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

.pc-header.img-header {
  background: var(--bg-card); /* Fallback */
  padding: 0;
  overflow: hidden;
}

.pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .pc-img {
  transform: scale(1.05);
}
.pc-emoji { font-size: 3.5rem; }

.pc-wishlist {
  position: absolute; top: 16px; left: 16px;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
  transition: var(--trans); z-index: 2;
  color: rgba(255,255,255,0.7);
}
.pc-wishlist:hover { color: #ef4444; transform: scale(1.15); }
.pc-wishlist.wishlisted { color: #ef4444; }

.pc-body { 
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  flex: 1; 
}
.pc-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.pc-category {
  font-size: 0.72rem; font-weight: 600; color: var(--purple-l);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pc-rating { font-size: 0.75rem; color: var(--gold); }
.pc-rating span { color: var(--text-muted); }
.pc-body h3 { 
  font-size: 1.05rem; 
  font-weight: 700; 
  color: #fff; 
  margin-bottom: 14px; 
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── PRICES ── */
.pc-price { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-amount { font-size: 1.5rem; font-weight: 800; color: #fff; }
.price-original {
  font-size: 0.9rem; color: var(--text-muted);
  text-decoration: line-through;
}
.price-discount {
  font-size: 0.75rem; font-weight: 700;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.25);
  color: var(--green); padding: 2px 7px; border-radius: 6px;
}

/* ── STOCK ── */
.pc-stock {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--green);
  margin-bottom: auto; /* Push everything below it or it pushes itself */
}
.pc-stock.low-stock { color: var(--gold); }
.pc-stock.out-of-stock { color: var(--gold); opacity: 0.7; }
.stock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.stock-dot.red { background: var(--gold); box-shadow: 0 0 6px var(--gold); }

/* Cart Button specific spacing for flex body */
.product-card .btn-cart {
  margin-top: 16px;
}

/* ─────────────────────────────────────────────
   DEAL / FLASH SALE BANNER
   ───────────────────────────────────────────── */
.deal-section {
  padding: 80px 7%;
  background: var(--bg);
}
.deal-inner {
  max-width: 900px; margin: 0 auto;
  text-align: center;
}
.deal-island {
  padding: 60px 40px;
  position: relative;
}
.deal-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.deal-orb-1 { width: 400px; height: 400px; background: var(--purple); opacity: 0.15; top: -150px; left: -150px; }
.deal-orb-2 { width: 300px; height: 300px; background: var(--cyan); opacity: 0.12; bottom: -100px; right: -100px; }
.deal-content { position: relative; z-index: 1; }
.deal-tag {
  display: inline-block;
  padding: 6px 16px; border-radius: 99px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 16px;
}
.deal-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: #fff; margin-bottom: 12px;
}
.deal-content > p { color: var(--text-muted); margin-bottom: 32px; font-size: 1rem; }

.deal-timer {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 36px;
}
.timer-block {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: 14px; padding: 16px 24px;
  min-width: 80px;
}
.timer-block span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1;
}
.timer-block small { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.timer-sep { font-size: 2rem; font-weight: 800; color: var(--purple-l); margin-bottom: 24px; }

/* ─────────────────────────────────────────────
   FEATURES
   ───────────────────────────────────────────── */
.features-section {
  padding: 80px 7%;
  background: var(--bg);
}
.features-section .section-header { max-width: 1300px; margin: 0 auto 56px; }
.features-grid.bento-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 24px;
}
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; grid-row: span 1; }
.bento-tall { grid-column: span 1; grid-row: span 2; }
.bento-square { grid-column: span 1; grid-row: span 1; }

@media (max-width: 900px) {
  .features-grid.bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-large, .bento-wide { grid-column: span 2; }
  .bento-tall, .bento-square { grid-column: span 1; }
}
@media (max-width: 500px) {
  .features-grid.bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide, .bento-tall, .bento-square { grid-column: span 1; grid-row: auto; }
}
.feature-card {
  transition: var(--trans);
  position: relative;
}
.feature-card .fc-content {
  padding: 32px;
  height: 100%;
  display: flex; flex-direction: column;
}
.feature-card::before {
  content: ''; position: absolute; inset: 1px; border-radius: calc(var(--radius) - 1px);
  z-index: 0;
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.fc-accent-1::before { background: linear-gradient(135deg, rgba(124,58,237,0.1), transparent); }
.fc-accent-2::before { background: linear-gradient(135deg, rgba(6,182,212,0.1), transparent); }
.fc-accent-3::before { background: linear-gradient(135deg, rgba(16,185,129,0.1), transparent); }
.fc-accent-4::before { background: linear-gradient(135deg, rgba(245,158,11,0.1), transparent); }
.fc-accent-5::before { background: linear-gradient(135deg, rgba(236,72,153,0.1), transparent); }
.fc-accent-6::before { background: linear-gradient(135deg, rgba(99,102,241,0.1), transparent); }

.feature-card:hover { transform: translateY(-4px) scale(1.02); }
.feature-card:hover.db-outer {
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2.2rem; margin-bottom: 18px; z-index: 1; position: relative; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 10px; z-index: 1; position: relative; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; z-index: 1; position: relative; }

/* ─────────────────────────────────────────────
   REVIEWS
   ───────────────────────────────────────────── */
.reviews-section {
  padding: 80px 7%;
  background: var(--bg-2);
}
.reviews-section .section-header { max-width: 1200px; margin: 0 auto 56px; }
.reviews-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: var(--trans);
}
.review-card:hover { border-color: var(--border-h); transform: translateY(-4px); }
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 0.92rem; line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 14px; }
.reviewer-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 0.85rem; flex-shrink: 0;
}
.reviewer-info { display: flex; flex-direction: column; }
.reviewer-info strong { font-size: 0.9rem; font-weight: 700; color: #fff; }
.reviewer-info span { font-size: 0.78rem; color: var(--green); }

/* ─────────────────────────────────────────────
   CTA SECTION
   ───────────────────────────────────────────── */
.cta-section {
  padding: 80px 7%;
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.08));
  border-top: 1px solid rgba(124,58,237,0.2);
}
.cta-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.cta-orb-1 { width: 400px; height: 400px; background: var(--purple); opacity: 0.2; top: -100px; left: -100px; }
.cta-orb-2 { width: 300px; height: 300px; background: var(--cyan); opacity: 0.15; bottom: -80px; right: -80px; }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; margin-bottom: 16px;
}
.cta-content > p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.cta-note { color: var(--text-muted); font-size: 0.82rem; }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.footer {
  background: #030308;
  border-top: 1px solid var(--border);
  padding: 64px 7% 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 60px; flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { max-width: 260px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin: 16px 0 24px; line-height: 1.6; }
.social-links { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted); transition: var(--trans);
}
.social-btn:hover { border-color: var(--purple); color: var(--purple-l); }
.footer-links { flex: 1; display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 130px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--purple-l); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--text-muted); font-size: 0.82rem;
}

/* ─────────────────────────────────────────────
   HIDDEN / ANIMATIONS
   ───────────────────────────────────────────── */
.product-card.hidden { display: none; }
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Toast notification */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: 14px; padding: 14px 24px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; font-weight: 500; color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
  opacity: 0;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 110px; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-visual { width: 100%; max-width: 500px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .hero { gap: 40px; }
  .hero-visual { height: 380px; }
  .fc-2 { right: -20px; }
  .fc-4 { right: 0; }
  .cart-drawer { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 5%; min-height: auto; }
  .products-section, .features-section, .categories-section, .reviews-section, .cta-section, .deal-section { padding: 80px 5%; }
  .footer { padding: 48px 5% 24px; }
  .deal-timer { gap: 8px; }
  .timer-block { padding: 12px 16px; min-width: 65px; }
  .timer-block span { font-size: 1.8rem; }
}

/* ── CHECKOUT MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-overlay .modal {
  background: #0d0d0f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: 0 40px 80px rgba(0,0,0,0.9);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-overlay input {
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}
.modal-overlay input:focus {
  border-color: var(--purple) !important;
}
