/* =========================================================
   NITEC — Luxury Soft UI / Bento Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --font: 'Outfit', system-ui, sans-serif;
  --font-display: 'Syne', 'Outfit', system-ui, sans-serif;

  --bg: #e6e6e8;
  --bg-soft: #f0f0f2;
  --surface: #ffffff;
  --surface-2: #f5f5f6;
  --surface-3: #ececed;
  --text: #111111;
  --text-2: #6b6b6b;
  --text-3: #9a9a9a;
  --border: rgba(0, 0, 0, 0.045);
  --border-strong: rgba(0, 0, 0, 0.09);

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.045);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 10px 28px rgba(198, 255, 0, 0.35);

  --lime: #c6ff00;
  --lime-hover: #b8f000;
  --lime-deep: #a8e000;
  --blue: #2563eb;
  --blue-soft: #3b82f6;
  --red: #ef4444;
  --orange: #f97316;
  --cyan: #22d3ee;
  --green: #22c55e;
  --star: #fbbf24;

  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --radius-full: 999px;

  --container: 1280px;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0e0e11;
  --bg-soft: #16161a;
  --surface: #1a1a1f;
  --surface-2: #222228;
  --surface-3: #2a2a32;
  --text: #f7f7f8;
  --text-2: #a9a8b3;
  --text-3: #6f6e7a;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.25);
  --shadow: 0 4px 12px rgba(0,0,0,0.3), 0 16px 48px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ececee 0%, #e4e4e6 100%);
}

body::before {
  display: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button, input, select, textarea { font: inherit; color: inherit; border: none; outline: none; background: none; }
ul, ol { list-style: none; }
button { cursor: pointer; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ========== UTILITIES ========== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

.text-muted { color: var(--text-2); }
.text-soft { color: var(--text-3); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface-3);
  color: var(--text-2);
}

.badge-lime { background: var(--lime); color: #0c0c0e; }
.badge-popular { background: #0c0c0e; color: #fff; }
.badge-sale { background: var(--red); color: #fff; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  flex-shrink: 0;
}
.icon-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.icon-btn.dark {
  background: #0c0c0e;
  color: #fff;
  border-color: transparent;
}
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.lg { width: 44px; height: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime {
  background: var(--lime);
  color: #111;
  box-shadow: none;
  font-weight: 700;
}
.btn-lime:hover {
  background: var(--lime-hover);
  box-shadow: var(--shadow-glow);
}
.btn-dark {
  background: #0c0c0e;
  color: #fff;
  box-shadow: 0 8px 24px rgba(12,12,14,0.2);
}
.btn-outline {
  background: rgba(255,255,255,0.55);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--text);
  background: var(--surface);
}
.btn-blue { background: var(--blue); color: #fff; }
.btn .btn-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #0c0c0e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 13px;
}
.rating svg { color: var(--star); }

.section { padding: 32px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.section-sub {
  color: var(--text-2);
  margin-top: 8px;
  max-width: 400px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.page-banner {
  padding: 36px 0 18px;
}
.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.04em;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-3);
  font-size: 14px;
  margin-top: 12px;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-2); }

/* ========== HEADER ========== */
.site-header {
  position: relative;
  top: auto;
  z-index: 1000;
  padding: 14px 0 8px;
  background: transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 10px 8px 24px;
  box-shadow: var(--shadow-sm);
  min-height: 60px;
  backdrop-filter: none;
}
[data-theme="dark"] .header-inner {
  background: var(--surface);
  border-color: var(--border);
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.06em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.logo::first-letter {
  color: #111;
}
.logo span { color: var(--lime-ink, #111); }

.header-search {
  flex: 1;
  max-width: 360px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 16px;
  gap: 6px;
  transition: var(--transition);
}
.header-search:focus-within {
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.header-search input {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 450;
}
.header-search input::placeholder { color: var(--text-3); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px 4px 4px;
  font-size: 12.5px;
  font-weight: 600;
  transition: var(--transition);
}
.header-pill:hover {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.header-pill .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.icon-wrap .count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--red, #ef4444);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
  z-index: 2;
  pointer-events: none;
}
.icon-wrap .count[hidden] {
  display: none !important;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.4);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100%;
  background: var(--surface);
  padding: 24px;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.theme-toggle, .rtl-toggle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ========== HOME BANNER ========== */
.home-wrap { padding: 6px 0 36px; }

.home-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 340px;
  width: 100%;
  background: #f4f4f5;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
}

.home-banner-media {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center right;
  grid-column: 1 / -1;
  grid-row: 1;
}

.home-banner-content {
  grid-column: 1 / 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.5vw, 40px);
  max-width: 480px;
  background: linear-gradient(90deg, rgba(244, 244, 245, 0.96) 0%, rgba(244, 244, 245, 0.7) 65%, transparent 100%);
}

.home-banner-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
}

.home-banner-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #111;
  margin: 0 0 10px;
}

.home-banner-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.72);
  max-width: 320px;
  margin: 0 0 18px;
}

.home-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.home-banner-outline {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  color: #111 !important;
}

.home-banner-outline:hover {
  background: #f0f0f0 !important;
}

.bento {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  grid-template-rows: 118px 1fr auto;
  gap: 14px;
  align-items: stretch;
}

.bento-hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background:
    radial-gradient(ellipse 80% 60% at 70% 55%, rgba(59, 110, 245, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(210, 245, 92, 0.1), transparent 50%),
    var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 28px 26px 20px;
  position: relative;
  min-height: 440px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(246, 245, 248, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-2);
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.02;
  max-width: 280px;
  position: relative;
  z-index: 2;
}

.hero-num {
  position: absolute;
  top: 68px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(12, 12, 14, 0.07);
  letter-spacing: -0.07em;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
[data-theme="dark"] .hero-num {
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
}

.hero-desc {
  position: absolute;
  top: 32px;
  right: 26px;
  max-width: 140px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.55;
  z-index: 2;
  text-align: right;
  font-weight: 400;
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 8px 0;
  z-index: 2;
}
.hero-visual img {
  width: min(290px, 62%);
  filter: drop-shadow(0 28px 48px rgba(30, 79, 214, 0.35));
  animation: floatY 5s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.orb {
  position: absolute;
  border-radius: 50%;
  background: #1a1a1a;
  opacity: 0.85;
  animation: floatOrb 5s ease-in-out infinite;
}
.orb-1 { width: 12px; height: 12px; top: 18%; left: 22%; animation-delay: 0s; }
.orb-2 { width: 8px; height: 8px; top: 30%; right: 18%; animation-delay: 0.8s; }
.orb-3 { width: 14px; height: 14px; bottom: 28%; left: 16%; animation-delay: 1.4s; }
.orb-4 { width: 8px; height: 8px; bottom: 35%; right: 22%; animation-delay: 0.4s; }
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -10px); }
}

.hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
  margin-top: auto;
}
.social-row {
  display: flex;
  gap: 8px;
}
.social-row a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}
.social-row a:hover { background: #111; color: #fff; }

/* Right column — promo banner (replaces Popular Colors) */
.bento-banner {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: block;
  min-height: 110px;
  transition: var(--transition);
}
.bento-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.bento-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 110px;
}
.bento-banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent 20%, rgba(12, 12, 14, 0.72) 100%);
  color: #fff;
}
.bento-banner-copy span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.bento-banner-copy strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 2px;
}

.bento-xbud {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 8px;
  position: relative;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1.15;
  transition: var(--transition);
}
.bento-xbud:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.bento-xbud img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}
.bento-xbud .corner-btn {
  position: absolute;
  bottom: 14px;
  left: 14px;
}

.bento-featured {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  min-height: 240px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
}
.bento-featured-info {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento-featured-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 140px;
}
.bento-featured-info p {
  color: var(--text-2);
  font-size: 12.5px;
  margin-top: 8px;
}
.bento-featured-media {
  position: relative;
}
.bento-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento-featured .corner-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.bento-more {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bento-more-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bento-more h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.thumb-row {
  display: flex;
  gap: 8px;
}
.thumb-row img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.bento-stats {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stats-circle {
  width: 100%;
  aspect-ratio: 1.35;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), transparent 45%),
    linear-gradient(145deg, #3b6ef5 0%, #1e4fd6 55%, #163db0 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 12px 28px rgba(30, 79, 214, 0.3);
}
.avatar-stack {
  display: flex;
}
.avatar-stack img {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  margin-left: -6px;
  object-fit: cover;
}
.avatar-stack img:first-child { margin-left: 0; }
.stats-downloads {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stats-reviews {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
}

.bento-popular {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.bento-popular .badge-popular {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.bento-popular h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 120px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.bento-popular-media {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 6px;
  margin-top: 6px;
}
.bento-popular-media img {
  border-radius: var(--radius-sm);
  object-fit: cover;
  width: 100%;
  height: 76px;
  background: var(--surface-2);
}
.bento-popular .rating {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  font-size: 12px;
}

/* ========== PRODUCT GRID ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card-media {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 40%, #fff 0%, var(--surface-2) 70%);
  position: relative;
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; transform: none; }
.product-card-body { padding: 14px 16px 18px; }
.product-card-cat {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.product-card-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.price-old {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 5px;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-list-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.product-list-item img {
  width: 160px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

/* ========== CATEGORY PILLS ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.cat-card-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fff, var(--surface-2));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.cat-card-icon img { width: 36px; height: 36px; object-fit: contain; }
.cat-card h4 { font-size: 13.5px; font-weight: 600; letter-spacing: -0.02em; }
.cat-card span { font-size: 11px; color: var(--text-3); }

/* ========== BRANDS ========== */
.brand-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.brand-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.04em;
  color: var(--text-2);
  transition: var(--transition);
  min-height: 68px;
}
.brand-card:hover {
  color: var(--text);
  transform: translateY(-3px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* ========== DEAL BANNER ========== */
.deal-banner {
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(59, 110, 245, 0.35), transparent 55%),
    linear-gradient(115deg, #0c0c0e 0%, #152a6e 48%, #1e4fd6 100%);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-lg);
}
.deal-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 10px 0 12px;
}
.countdown {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.countdown-item {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-width: 56px;
  text-align: center;
}
.countdown-item strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.countdown-item span {
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
}

/* ========== WHY US ========== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.why-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.why-card .icon {
  width: 42px; height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #daf86a, var(--lime));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-glow);
}
.why-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.02em; }
.why-card p { font-size: 13px; color: var(--text-2); line-height: 1.55; }

/* ========== REVIEWS ========== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.review-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.review-card p {
  color: var(--text-2);
  margin: 12px 0 14px;
  line-height: 1.55;
  font-size: 13px;
}
.review-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-user img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* ========== APP BANNER ========== */
.app-banner {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow);
}
.app-stores {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.store-btn small { display: block; opacity: 0.7; font-size: 11px; }
.store-btn strong { font-size: 15px; }

/* ========== INSTAGRAM ========== */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.ig-grid a {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.ig-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.ig-grid a:hover img { transform: scale(1.06); }
.newsletter {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(210, 245, 92, 0.14), transparent 55%),
    var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 22px auto 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 5px;
  gap: 4px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.newsletter-form input {
  flex: 1;
  padding: 11px 16px;
  min-width: 0;
  font-size: 13.5px;
}
.newsletter-form .btn { padding: 10px 18px; }

.site-footer {
  padding: 40px 0 24px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 28px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.footer-brand p {
  color: var(--text-2);
  margin: 12px 0 16px;
  max-width: 240px;
  font-size: 13px;
  line-height: 1.55;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  font-size: 13px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 8px 0;
  color: var(--text-3);
  font-size: 13px;
  flex-wrap: wrap;
}

/* ========== AUTH PAGES ========== */
.auth-wrap {
  min-height: calc(100vh - 40px);
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.auth-card {
  width: min(100%, 400px);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 6px;
}
.auth-card > p { color: var(--text-2); margin-bottom: 28px; font-size: 14px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border: 1.5px solid transparent;
  transition: var(--transition);
}
.form-control:focus { border-color: #111; background: var(--surface); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.form-check input { width: 16px; height: 16px; accent-color: #111; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-3);
  font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.social-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.social-auth button,
.social-auth a {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.social-auth a:hover,
.social-auth button:hover {
  background: var(--surface);
}
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0;
}
.otp-inputs input {
  width: 52px; height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

/* ========== CART / CHECKOUT ========== */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}
.shop-layout[hidden],
[data-cart-page][hidden],
[data-cart-empty][hidden],
[data-wishlist-empty][hidden],
[data-search-empty][hidden],
[hidden] {
  display: none !important;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 18px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.cart-item img {
  width: 100px; height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.cart-item [data-cart-remove] {
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
}
.cart-item [data-cart-remove]:hover { color: var(--red, #ef4444); }
.btn.added { pointer-events: none; opacity: 0.9; }
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  padding: 4px;
}
.qty-control button {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface);
  font-weight: 700;
}
.qty-control span { min-width: 28px; text-align: center; font-weight: 700; }

.summary-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-2);
}
.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.checkout-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.checkout-step {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  box-shadow: var(--shadow-sm);
}
.checkout-step.active { background: var(--lime); color: #111; }
.checkout-step.done { background: #111; color: #fff; }

/* ========== PRODUCT DETAILS ========== */
.pd-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.pd-gallery {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.pd-main-img {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 14px;
}
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.pd-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.pd-thumbs button {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-2);
  cursor: pointer;
}
.pd-thumbs button.active,
.pd-thumbs button:hover { border-color: #111; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

[data-wishlist].active {
  color: #ef4444 !important;
}
[data-wishlist].active svg {
  fill: #ef4444;
}
.product-card[style*="display: none"],
.product-list-item[style*="display: none"] {
  display: none !important;
}

.pd-info h1 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 10px 0 12px;
}
.pd-price {
  font-size: 24px;
  font-weight: 800;
  margin: 14px 0;
}
.pd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.color-picker, .size-picker {
  display: flex;
  gap: 10px;
  margin: 12px 0 20px;
  flex-wrap: wrap;
}
.size-btn {
  min-width: 48px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  font-weight: 600;
  font-size: 13px;
}
.size-btn.active { background: #111; color: #fff; }

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 12px 20px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--text); border-bottom-color: #111; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ========== ACCOUNT ========== */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.account-nav {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
}
.account-nav a:hover,
.account-nav a.active {
  background: var(--surface-2);
  color: var(--text);
}

/* ========== TABLES ========== */
.table-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.table th {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.status {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}
.status-success { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-failed { background: #fee2e2; color: #991b1b; }
.status-shipped { background: #dbeafe; color: #1e40af; }

/* ========== BLOG ========== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-card-meta {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 10px;
}

/* ========== DASHBOARD ========== */
.dash-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  min-height: calc(100vh - 40px);
  padding: 20px;
}
.dash-sidebar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow-sm);
}
.dash-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-2);
}
.dash-sidebar a.active,
.dash-sidebar a:hover {
  background: var(--lime);
  color: #111;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.stat-card span { font-size: 13px; color: var(--text-3); font-weight: 600; }
.stat-card strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 6px;
}

/* ========== UI KIT ========== */
.ui-showcase {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.ui-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.ui-block h3 { margin-bottom: 20px; font-size: 18px; }
.ui-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
}
.alert-info { background: #dbeafe; color: #1e40af; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-danger { background: #fee2e2; color: #991b1b; }

.accordion-item {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-weight: 700;
  text-align: left;
}
.accordion-body {
  padding: 0 22px 18px;
  color: var(--text-2);
  font-size: 14px;
  display: none;
}
.accordion-item.open .accordion-body { display: block; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  place-items: center;
  z-index: 2000;
  padding: 24px;
}
.modal-backdrop.open { display: grid; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: min(100%, 480px);
  box-shadow: var(--shadow-lg);
}

.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.empty-state .icon {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.empty-state h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}
.empty-state p { color: var(--text-2); margin-bottom: 24px; }

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}
.error-page h1 {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--text-3);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.filter-bar select, .filter-bar .view-toggle button {
  background: var(--surface-2);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}
.view-toggle { display: flex; gap: 6px; }
.view-toggle button.active { background: #111; color: #fff; }

.compare-table img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0 auto 8px;
}

.video-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 21/9;
  width: 100%;
  max-width: 100%;
  background: #0c0c0e;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.video-banner img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.72;
  display: block;
}
.video-banner .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.video-banner .play button {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(180deg, #daf86a, var(--lime));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-glow), 0 0 0 12px rgba(210, 245, 92, 0.15);
}
.video-banner .play button:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow), 0 0 0 18px rgba(210, 245, 92, 0.2);
}

.invoice-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.legal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 22px;
  margin: 28px 0 12px;
}
.legal-content p, .legal-content li {
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.7;
}
.legal-content ul { padding-left: 20px; list-style: disc; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.team-card-body { padding: 20px; }
.team-card h4 { font-weight: 700; }
.team-card span { font-size: 13px; color: var(--text-3); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}
.contact-info-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.success-card {
  max-width: 520px;
  margin: 60px auto;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  box-shadow: var(--shadow);
}
.success-card .check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-size: 36px;
}

.coming-soon {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}
.coming-soon h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

/* ========== FILTER SIDEBAR ========== */
.shop-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
.filter-sidebar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.filter-group { margin-bottom: 24px; }
.filter-group h5 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .home-banner {
    grid-template-columns: 1fr;
    min-height: 300px;
  }
  .home-banner-media { min-height: 300px; object-position: center right; }
  .home-banner-content {
    max-width: none;
    background: linear-gradient(180deg, rgba(244, 244, 245, 0.94) 0%, rgba(244, 244, 245, 0.4) 70%, transparent 100%);
    padding-bottom: 28px;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-hero { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .bento-banner { grid-column: 1 / 2; }
  .bento-xbud { grid-column: 2 / 3; }
  .bento-featured { grid-column: 1 / -1; }
  .bento-more { grid-column: 1 / 2; }
  .bento-stats { grid-column: 2 / 3; }
  .bento-popular { grid-column: 1 / -1; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .why-grid, .stat-cards, .brand-row { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-with-sidebar, .account-layout, .shop-layout, .dash-layout,
  .pd-layout, .contact-grid, .app-banner, .deal-banner {
    grid-template-columns: 1fr;
  }
  .filter-sidebar, .account-nav, .summary-card { position: static; }
  .dash-sidebar {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .dash-sidebar a { white-space: nowrap; flex-shrink: 0; }
  .team-grid, .blog-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: flex-start; gap: 12px; }
  .pd-thumbs { grid-template-columns: repeat(5, 1fr); }
  .deal-banner { padding: 28px 24px; }
  .filter-bar { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }

  .container { width: min(100% - 24px, var(--container)); }

  .site-header { padding: 10px 0 6px; }
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 22px;
    min-height: auto;
  }
  .header-search {
    display: flex;
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-inline: 0;
    width: 100%;
  }
  .header-actions { margin-left: auto; gap: 6px; }
  .header-pill { padding: 3px 8px 3px 3px; }
  .header-pill span:not(.avatar) { display: none; }
  .header-pill .avatar { width: 28px; height: 28px; }
  .nav-toggle { display: inline-flex; }
  .logo { font-size: 20px; }
  .icon-btn { width: 36px; height: 36px; }
  .theme-toggle { width: 32px; height: 32px; }

  .home-wrap { padding: 6px 0 16px; }
  .home-banner {
    min-height: 300px;
    border-radius: 24px;
  }
  .home-banner-media { min-height: 300px; object-position: 80% center; }
  .home-banner-content {
    padding: 20px 18px 22px;
    background: linear-gradient(180deg, rgba(244, 244, 245, 0.96) 0%, rgba(244, 244, 245, 0.55) 55%, transparent 100%);
  }
  .home-banner-title { font-size: clamp(26px, 8vw, 34px); }
  .home-banner-text { font-size: 13px; max-width: 280px; margin-bottom: 14px; }
  .home-banner-actions { gap: 8px; }
  .home-banner-actions .btn { padding: 10px 14px; font-size: 13px; }

  .hero-desc { position: static; text-align: left; max-width: none; margin: 12px 0; }
  .hero-num { font-size: 64px; top: 50px; }
  .bento { grid-template-columns: 1fr; }
  .bento-banner, .bento-xbud, .bento-more, .bento-stats, .bento-popular,
  .bento-featured { grid-column: 1; }
  .bento-featured { grid-template-columns: 1fr; }

  .section { padding: 28px 0; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
  }
  .section-head .btn { align-self: flex-start; }
  .page-banner { padding: 18px 0 8px; }
  .page-banner h1 { font-size: clamp(22px, 6vw, 28px); }

  .product-grid, .cat-grid, .team-grid, .blog-grid, .review-grid,
  .why-grid, .brand-row, .stat-cards, .ig-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 28px 18px;
  }
  .footer-brand { grid-column: 1 / -1; }

  .product-list-item {
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .product-list-item > div:last-child {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .form-row { grid-template-columns: 1fr; }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-bar .view-toggle { width: 100%; }
  .filter-bar .view-toggle a,
  .filter-bar .view-toggle .btn { flex: 1; text-align: center; justify-content: center; }
  .filter-sidebar { padding: 18px; }

  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 14px;
  }
  .cart-item img { width: 72px; height: 72px; }
  .cart-item > div:last-child {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  .pd-layout { gap: 20px; }
  .pd-main-img { min-height: 280px; border-radius: 24px; }
  .pd-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .pd-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .pd-actions .btn { flex: 1 1 auto; min-width: 140px; justify-content: center; }

  .checkout-steps {
    gap: 6px;
    margin-bottom: 20px;
  }
  .checkout-step {
    flex: 1 1 calc(50% - 6px);
    font-size: 12px;
    padding: 10px 8px;
    text-align: center;
  }

  .deal-banner {
    padding: 24px 18px;
    text-align: left;
  }
  .deal-banner img { max-height: 220px; }

  .video-banner {
    min-height: 200px;
    aspect-ratio: 16/9;
    border-radius: 22px;
    width: 100%;
    max-width: 100%;
  }
  .app-banner { padding: 28px 18px; text-align: center; }
  .newsletter { padding: 28px 18px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }

  .auth-wrap { padding: 24px 16px; }
  .auth-card { padding: 28px 20px; border-radius: 24px; width: 100%; }

  .summary-card { padding: 20px; }
  .mobile-nav-panel {
    width: min(100%, 340px);
    padding: 20px 18px 32px;
  }

  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .invoice-box { padding: 20px 16px; }

  .ui-showcase { padding: 0; }
  .dash-layout { gap: 16px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 20px, var(--container)); }

  .product-grid, .cat-grid, .team-grid, .blog-grid, .review-grid,
  .why-grid, .brand-row, .ig-grid, .footer-grid, .stat-cards {
    grid-template-columns: 1fr;
  }
  .footer-brand { grid-column: auto; }

  .home-banner { min-height: 340px; border-radius: 20px; }
  .home-banner-media { min-height: 340px; }
  .home-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-banner-actions .btn { width: 100%; justify-content: center; }

  .hero-footer { flex-direction: column; align-items: flex-start; }
  .product-card-title { font-size: 14px; }
  .pd-thumbs { grid-template-columns: repeat(4, 1fr); }
  .pd-thumbs button:nth-child(5) { display: none; }

  .checkout-step { flex: 1 1 100%; }
  .header-actions .theme-toggle { display: none; }
  .btn { white-space: nowrap; }
  .section-title { font-size: clamp(20px, 6vw, 24px); }
}

/* Touch-friendly targets */
@media (hover: none) and (pointer: coarse) {
  .filter-group label,
  .account-nav a,
  .mobile-nav-panel a {
    min-height: 44px;
  }
  .color-dot { width: 28px; height: 28px; }
  .size-btn { min-height: 40px; padding-inline: 14px; }
}

/* ========== DEMO PREVIEW BAR (Netlify / localhost) ========== */
.demo-preview-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #111;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  font-size: 12.5px;
  line-height: 1.35;
}
.demo-preview-bar strong {
  background: var(--lime, #c6ff00);
  color: #111;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.demo-preview-bar span { flex: 1; opacity: 0.9; min-width: 180px; }
.demo-preview-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
html.is-demo-preview body {
  padding-bottom: 72px;
}

/* ========== RTL ========== */
[dir="rtl"] .header-search { flex-direction: row-reverse; }
[dir="rtl"] .hero-desc { text-align: left; right: auto; left: 36px; }
[dir="rtl"] .hero-num { left: auto; right: 36px; }
[dir="rtl"] .bento-xbud .corner-btn { left: auto; right: 20px; }
[dir="rtl"] .bento-featured .corner-btn { right: auto; left: 20px; }
[dir="rtl"] .avatar-stack img { margin-left: 0; margin-right: -8px; }
[dir="rtl"] .avatar-stack img:first-child { margin-right: 0; }
[dir="rtl"] .product-card-actions { right: auto; left: 14px; }
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.reveal {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.reveal-delay-1 { animation-delay: 0.12s; }
.reveal-delay-2 { animation-delay: 0.22s; }
.reveal-delay-3 { animation-delay: 0.32s; }

/* Luxury selection */
::selection {
  background: rgba(210, 245, 92, 0.45);
  color: #0c0c0e;
}
