/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #05050f;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }
input { font-family: inherit; }
img { max-width: 100%; }

button,
a,
.payment-option,
.product-card,
.trending-card,
.cat-card,
.cart-item,
.order-card,
.metric-card {
  -webkit-tap-highlight-color: transparent;
}
button:active,
a:active,
.payment-option:active,
.product-card:active,
.trending-card:active,
.cat-card:active {
  transform: scale(0.99);
}

/* ===== CSS VARIABLES ===== */
:root {
  --blue: #007AFF;
  --purple: #6339C8;
  --pink: #FF375F;
  --green: #e50914;
  --glass-bg: rgba(255,255,255,0.07);
  --glass-bg-hover: rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.12);
  --glass-border-hover: rgba(255,255,255,0.22);
  --text-dim: rgba(255,255,255,0.55);
  --text-mid: rgba(255,255,255,0.75);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --nav-h: 72px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --spring: 0.42s cubic-bezier(0.2,0,0,1);
  --ease-apple: cubic-bezier(0.2,0,0,1);
  --parallax-x: 0;
  --parallax-y: 0;
}

/* ===== BACKGROUND ===== */
.bg-mesh {
  position: fixed; inset: 0; z-index: -1;
  background: #05050f;
  overflow: hidden;
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 20s ease-in-out infinite;
}
.bg-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #6339C8, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.bg-orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #007AFF, transparent 70%);
  bottom: -100px; right: -100px;
  animation-delay: -7s;
}
.bg-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #FF375F, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -14s;
  opacity: 0.15;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(28px,-22px); }
  66% { transform: translate(-16px,16px); }
}

/* ===== GLASS UTILITY ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(5,5,15,0.85);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto minmax(220px, 540px) auto;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.site-logo {
  display: block;
  width: 136px;
  height: auto;
}
.footer-logo-img {
  width: 150px;
}
.logo span { background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-search-pill {
  width: 100%;
  min-height: 42px;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: var(--transition);
  position: relative;
}
.nav-search-pill input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d1d1f;
  font: inherit;
  font-weight: 800;
}
.nav-search-pill input::placeholder {
  color: var(--text-mid);
  opacity: 1;
}
.nav-search-clear,
.nav-search-mobile {
  flex: 0 0 auto;
}
.nav-search-clear {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
}
.nav-search-pill:focus-within .nav-search-clear,
.nav-search-pill.has-value .nav-search-clear {
  display: flex;
}
.nav-search-clear:hover {
  background: #f2f2f4;
  color: #1d1d1f;
}
.nav-search-mobile {
  position: absolute;
  inset: 0;
  display: none;
}
.nav-search-pill:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: var(--glass-border-hover);
  transform: translateY(-1px);
}
.nav-link,
.mini-nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active,
.mini-nav-link:hover, .mini-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-link.active, .mini-nav-link.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--pink);
  border-radius: 99px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-badge.visible { display: flex; }
/* ===== SEARCH BAR ===== */
.search-bar {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(5,5,15,0.95);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.search-bar.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: all; }
.search-inner {
  max-width: 800px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 12px 16px;
}
.search-inner svg { color: var(--text-dim); flex-shrink: 0; }
.search-inner input {
  flex: 1; background: none; border: none; outline: none;
  color: #fff; font-size: 16px;
}
.search-inner input::placeholder { color: var(--text-dim); }
.search-inner button { color: var(--text-dim); font-size: 16px; transition: var(--transition); }
.search-inner button:hover { color: #fff; }
.search-results {
  max-width: 960px; margin: 12px auto 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px;
}
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  color: inherit;
  text-align: left;
  cursor: pointer; transition: var(--transition);
}
.search-result-item:hover { background: rgba(255,255,255,0.1); border-color: var(--glass-border); }
.search-result-text {
  min-width: 0;
  flex: 1;
}
.search-result-name {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 3px;
}
.search-enter {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
}
.search-empty {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px dashed var(--glass-border);
  border-radius: 14px;
  color: var(--text-dim);
  font-size: 14px;
  background: rgba(255,255,255,0.04);
}

@media (min-width: 601px) {
  .search-bar {
    padding-top: 0;
  }
  .search-bar .search-inner {
    display: none;
  }
  .search-bar .search-results {
    margin-top: 10px;
  }
}

/* ===== MAIN LAYOUT ===== */
.main { padding-top: var(--nav-h); }
.page { display: none; }
.page.active { display: block; }

/* ===== BANNER SLIDESHOW ===== */
.banner-slider-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 24px 0;
}
.banner-slider {
  aspect-ratio: 16 / 5;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.banner-track {
  display: flex;
  height: 100%;
  width: calc(var(--banner-count, 1) * 100%);
  transition: transform 0.75s var(--ease-apple);
}
.banner-slide {
  background-position: center;
  background-size: cover;
  flex: 0 0 calc(100% / var(--banner-count, 1));
  min-width: 0;
  position: relative;
}
.banner-overlay {
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.24), rgba(0,0,0,0.02));
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: clamp(20px, 5vw, 64px);
}
.banner-overlay h2 {
  font-size: clamp(24px, 5vw, 58px);
  font-weight: 900;
  margin-bottom: 10px;
}
.banner-overlay p {
  font-size: clamp(13px, 2vw, 18px);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 18px;
}
.banner-dots {
  bottom: 14px;
  display: flex;
  gap: 6px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}
.banner-dots span {
  background: rgba(255,255,255,0.65);
  border-radius: 999px;
  height: 6px;
  opacity: 0.55;
  transition: var(--transition);
  width: 24px;
}
.banner-dots span.active {
  opacity: 1;
  width: 34px;
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  max-width: 1400px; margin: 0 auto;
  padding: 80px 24px 60px;
  gap: 60px;
}
.hero-content { flex: 1; max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 99px;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(229,9,20,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(229,9,20,0.1); }
}
.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -2px; margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 18px; color: var(--text-mid); line-height: 1.6;
  margin-bottom: 36px; max-width: 500px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 28px; border-radius: 14px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff; font-size: 15px; font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(99,57,200,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99,57,200,0.5);
}
.btn-ghost {
  padding: 14px 28px; border-radius: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--glass-border);
  color: #fff; font-size: 15px; font-weight: 600;
  transition: var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--glass-border-hover); }
.btn-full { width: 100%; justify-content: center; }
.hero-stats {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.stat-label { font-size: 12px; color: var(--text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 36px; background: var(--glass-border); }
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-card-stack {
  position: relative; width: 320px; height: 400px;
}
.hero-float-card {
  position: absolute;
  padding: 20px; border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition);
  animation: floatCard linear infinite;
}
.hero-float-card:hover { background: var(--glass-bg-hover); transform: translateY(-2px); }
.hfc-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.hfc-name { font-size: 15px; font-weight: 700; }
.hfc-price { font-size: 13px; color: var(--text-dim); }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1400px; margin: 0 auto;
  padding: 60px 24px;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.section-header h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
}
.see-all {
  font-size: 14px; font-weight: 600; color: var(--blue);
  padding: 8px 16px; border-radius: 10px;
  transition: var(--transition);
}
.see-all:hover { background: rgba(0,122,255,0.1); }

/* ===== TRENDING SCROLL ===== */
.scroll-track {
  display: flex; gap: 16px;
  overflow-x: auto; padding-bottom: 16px;
  scrollbar-width: none;
}
.scroll-track::-webkit-scrollbar { display: none; }
.trending-card {
  flex-shrink: 0; width: 200px;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer; transition: var(--transition);
  backdrop-filter: blur(20px);
}
.trending-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #fff;
  margin-bottom: 14px;
}
.tc-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-price { font-size: 18px; font-weight: 800; }
.tc-period { font-size: 12px; color: var(--text-dim); }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.tag-popular { background: rgba(255,55,95,0.2); color: #FF375F; }
.tag-hot { background: rgba(255,159,10,0.2); color: #FF9F0A; }
.tag-new { background: rgba(229,9,20,0.2); color: #e50914; }
.tag-trending { background: rgba(0,122,255,0.2); color: #007AFF; }
.tag-best { background: rgba(191,90,242,0.2); color: #BF5AF2; }
.tag-sale { background: rgba(255,55,95,0.2); color: #FF375F; }

/* ===== CATEGORIES GRID ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  padding: 28px 24px; border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  cursor: pointer; transition: var(--transition);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--cat-color, var(--purple)) 0%, transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.cat-card:hover::before { opacity: 0.12; }
.cat-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.cat-icon { font-size: 36px; }
.cat-name { font-size: 18px; font-weight: 800; }
.cat-count { font-size: 13px; color: var(--text-dim); }
.cat-arrow { margin-top: auto; color: var(--text-dim); font-size: 18px; }

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product-card {
  padding: 24px; border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.product-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.pc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pc-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.pc-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pc-name { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.pc-brand { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.pc-desc { font-size: 13px; color: var(--text-mid); line-height: 1.5; flex: 1; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.pc-pricing { display: flex; flex-direction: column; }
.pc-price { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.pc-period { font-size: 12px; color: var(--text-dim); }
.pc-original { font-size: 12px; color: var(--green); }
.pc-regular {
  color: var(--text-dim);
  font-size: 12px;
  text-decoration: line-through;
  margin-bottom: 2px;
}
.add-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(99,57,200,0.35);
  font-size: 22px; font-weight: 400; color: #fff;
}
.add-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,57,200,0.5); }
.add-btn.added { background: var(--green); box-shadow: 0 4px 16px rgba(229,9,20,0.35); }

/* ===== DEALS SECTION ===== */
.deals-section { padding-top: 0; }
.deals-banner {
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: linear-gradient(135deg, rgba(99,57,200,0.2), rgba(0,122,255,0.15));
  border-color: rgba(99,57,200,0.3);
  overflow: hidden; position: relative;
}
.deals-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(0,122,255,0.15), transparent 60%);
}
.deals-text { position: relative; z-index: 1; }
.deals-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--blue); }
.deals-text h3 { font-size: 32px; font-weight: 900; letter-spacing: -0.5px; margin: 8px 0; }
.deals-text p { color: var(--text-mid); margin-bottom: 24px; }
.deals-visual { font-size: 80px; opacity: 0.8; position: relative; z-index: 1; }

/* ===== TRUST SECTION ===== */
.trust-section { padding-top: 0; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.trust-item {
  padding: 28px 24px; border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 12px;
}
.trust-icon { font-size: 32px; }
.trust-item h4 { font-size: 16px; font-weight: 700; }
.trust-item p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* ===== CLIENTS SECTION ===== */
.clients-section {
  padding-top: 0;
}
.clients-header {
  align-items: flex-end;
}
.clients-header p {
  color: var(--text-mid);
  font-size: 15px;
  margin-top: 6px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.client-card {
  min-height: 176px;
  padding: 24px 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  transition: transform var(--spring), box-shadow var(--transition), border-color var(--transition);
}
.client-card:hover {
  transform: translateY(-2px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 34px rgba(0,0,0,0.08);
}
.client-logo {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}
.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.client-logo span {
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}
.client-card h3 {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 900;
}

.clients-admin-list {
  display: grid;
  gap: 12px;
}

.client-admin-card {
  display: grid;
  grid-template-columns: 76px minmax(180px, 1fr) 160px auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.72);
}

.client-admin-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.client-admin-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-admin-logo span {
  color: #1d1d1f;
  font-weight: 900;
  font-size: 14px;
}

.client-admin-details {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.client-logo-preview.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compact-upload {
  min-height: 46px;
  padding: 10px 12px;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-wide {
  grid-column: 1 / -1;
}

.color-input {
  min-height: 48px;
  padding: 8px;
}

/* ===== NEWSLETTER ===== */
.newsletter-section { padding-top: 0; }
.newsletter {
  border-radius: var(--radius-xl); padding: 56px;
  text-align: center;
}
.newsletter h3 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.newsletter p { color: var(--text-mid); margin-bottom: 28px; }
.newsletter-form {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 14px 16px;
  color: #fff; font-size: 15px; outline: none;
}
.newsletter-form input:focus { border-color: var(--blue); }
.newsletter-form input::placeholder { color: var(--text-dim); }

/* ===== CATEGORY PAGE ===== */
.category-page { max-width: 1400px; margin: 0 auto; padding: 40px 24px 80px; }
.category-header {
  border-radius: var(--radius-xl); padding: 56px 48px; margin-bottom: 40px;
  background: linear-gradient(135deg, rgba(99,57,200,0.15), rgba(0,122,255,0.1));
  border: 1px solid rgba(255,255,255,0.1);
  position: relative; overflow: hidden;
}
.category-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, color-mix(in srgb, var(--cat-color) 20%, transparent), transparent 60%);
}
.category-header-inner { position: relative; z-index: 1; }
.category-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.category-header h1 { font-size: 48px; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 8px; }
.category-header p { font-size: 18px; color: var(--text-mid); }

/* ===== PRODUCT DETAILS PAGE ===== */
.product-detail-page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.detail-breadcrumb button {
  color: #1d1d1f;
  font-weight: 700;
}
.detail-breadcrumb strong {
  color: #1d1d1f;
}
.product-hero-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 28px;
}
.product-media-panel,
.product-purchase-panel,
.detail-tabs {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px rgba(0,0,0,0.05);
}
.product-media-panel {
  padding: 28px;
}
.product-main-image {
  min-height: 420px;
  border-radius: var(--radius-md);
  background: #fbfbfd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-page-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}
.product-page-image.placeholder {
  max-width: 240px;
  width: 240px;
  height: 240px;
  border-radius: 42px;
  color: #fff;
  font-size: 72px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media-caption {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 18px;
}
.product-purchase-panel {
  padding: 28px;
}
.detail-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.product-purchase-panel h1 {
  color: #1d1d1f;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.detail-rating {
  color: #ff7a1a;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
}
.detail-rating span {
  color: var(--text-mid);
  font-weight: 500;
}
.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}
.detail-price-row strong {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}
.detail-price-row span {
  color: var(--text-dim);
  text-decoration: line-through;
}
.product-purchase-panel h3 {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}
.detail-short-desc {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.detail-options {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.detail-options span {
  color: #1d1d1f;
  font-weight: 900;
  margin-right: 8px;
}
.detail-options button {
  min-height: 36px;
  border-radius: 0;
  background: #e8e8ea;
  color: #1d1d1f;
  padding: 0 18px;
  font-size: 14px;
}
.detail-options button.selected {
  background: #1d1d1f;
  color: #fff;
}
.detail-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.detail-field span {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 900;
}
.detail-field b {
  color: var(--red);
}
.detail-cart-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.qty-box {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 48px;
}
.qty-box button,
.qty-box input {
  border: 0;
  background: #fbfbfd;
  color: #1d1d1f;
  text-align: center;
  font-weight: 800;
}
.qty-box button {
  cursor: pointer;
}
.detail-add-btn {
  min-height: 48px;
}
.detail-tabs {
  padding: 0;
  overflow: hidden;
}
.detail-tab-head {
  display: flex;
  border-bottom: 1px solid var(--glass-border);
}
.detail-tab-head button {
  padding: 16px 22px;
  color: var(--text-mid);
  font-weight: 900;
  border-right: 1px solid var(--glass-border);
}
.detail-tab-head button.active {
  color: #1d1d1f;
  background: #fff;
}
.detail-tab-body {
  padding: 26px;
}
.detail-tab-body h3,
.detail-tab-body h4 {
  color: #1d1d1f;
  font-weight: 900;
  margin-bottom: 12px;
}
.detail-tab-body p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 22px;
}
.detail-info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* ===== CART PAGE ===== */
.cart-page { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.page-title { font-size: 40px; font-weight: 900; letter-spacing: -1px; margin-bottom: 32px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
}
.ci-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.ci-info { flex: 1; }
.ci-name { font-size: 15px; font-weight: 700; }
.ci-brand { font-size: 13px; color: var(--text-dim); }
.ci-price { font-size: 20px; font-weight: 800; margin-right: 16px; }
.ci-remove {
  padding: 8px; border-radius: 10px;
  color: var(--text-dim); font-size: 16px;
  transition: var(--transition);
}
.ci-remove:hover { background: rgba(255,55,95,0.15); color: var(--pink); }
.cart-summary {
  padding: 28px; border-radius: var(--radius-lg);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.cs-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; }
.cs-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--glass-border); font-size: 14px; }
.cs-row:last-of-type { border-bottom: none; }
.cs-row.total { font-size: 18px; font-weight: 800; }
.cs-row span:last-child { font-weight: 600; }
.promo-input {
  display: flex; gap: 8px; margin: 16px 0;
}
.promo-input input {
  flex: 1; background: rgba(255,255,255,0.06);
  border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 10px 14px; color: #fff; font-size: 14px; outline: none;
}
.promo-input input::placeholder { color: var(--text-dim); }
.promo-input button {
  padding: 10px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  font-size: 13px; font-weight: 600;
  transition: var(--transition);
}
.promo-input button:hover { background: rgba(255,255,255,0.15); }
.promo-help {
  margin: -6px 0 10px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.4;
}
.promo-help.success { color: var(--green); }
.cs-row.discount {
  color: var(--green);
}
.empty-cart {
  text-align: center; padding: 80px 24px;
  color: var(--text-dim);
}
.empty-cart .empty-icon { font-size: 64px; margin-bottom: 20px; }
.empty-cart h3 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; }

/* ===== CHECKOUT PAGE ===== */
.checkout-page { max-width: 1200px; margin: 0 auto; padding: 40px 24px 80px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout-form { padding: 32px; border-radius: var(--radius-lg); }
.checkout-form h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; margin-top: 28px; }
.checkout-form h3:first-child { margin-top: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.form-input {
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 12px 16px;
  color: #fff; font-size: 15px; outline: none;
  transition: var(--transition);
}
.form-input:focus { border-color: var(--blue); background: rgba(255,255,255,0.09); }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.payment-option {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  cursor: pointer; transition: var(--transition);
}
.payment-option:hover { background: rgba(255,255,255,0.08); }
.payment-option input[type=radio] { accent-color: var(--blue); }
.payment-option span { font-size: 14px; font-weight: 500; }
.payment-note {
  display: grid;
  gap: 5px;
  margin: -4px 0 14px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.22);
}
.payment-note strong {
  font-size: 14px;
}
.payment-note span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}
.checkout-summary { padding: 28px; border-radius: var(--radius-lg); position: sticky; top: calc(var(--nav-h) + 24px); }

/* ===== ACCOUNT PAGE ===== */
.account-page {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--nav-h)); padding: 40px 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  padding: 40px; border-radius: var(--radius-xl);
}
.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 32px;
  background: rgba(255,255,255,0.05); border-radius: 12px; padding: 4px;
}
.auth-tab {
  flex: 1; padding: 10px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  transition: var(--transition);
}
.auth-tab.active { background: rgba(255,255,255,0.1); color: #fff; }
.auth-card h2 { font-size: 28px; font-weight: 900; margin-bottom: 6px; }
.auth-card > div > p { color: var(--text-dim); margin-bottom: 24px; }
.verification-box {
  display: grid;
  gap: 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  background: rgba(229,9,20,0.08);
}
.verification-box[hidden] {
  display: none !important;
}
.verification-box strong {
  display: block;
  color: #1d1d1f;
  font-size: 14px;
  margin-bottom: 4px;
}
.verification-box p {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
}
.verification-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.forgot-link { display: block; text-align: center; margin-top: 16px; font-size: 14px; color: var(--blue); }
.admin-access-link {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
}
.admin-access-link:hover {
  background: rgba(0,0,0,0.04);
  color: #1d1d1f;
}

/* ===== MODAL ===== */
.modal-bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal {
  width: 100%; max-width: 760px;
  padding: 32px; border-radius: var(--radius-xl);
  position: relative;
  transform: translateY(18px);
  transition: transform var(--spring);
}
.modal-bg.open .modal {
  animation: applePop 0.42s var(--ease-apple) both;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--text-dim); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
.modal-icon {
  width: 80px; height: 80px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #fff;
  margin-bottom: 20px;
}
.modal-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.modal-top .modal-icon {
  flex: 0 0 auto;
  margin-bottom: 0;
}
.modal-category {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.modal h2 { font-size: 28px; font-weight: 900; margin-bottom: 6px; }
.modal-brand { color: var(--text-dim); margin-bottom: 16px; }
.modal-desc { color: var(--text-mid); line-height: 1.6; margin-bottom: 24px; }
.modal-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 24px; }
.modal-price { font-size: 40px; font-weight: 900; letter-spacing: -1px; }
.modal-period { font-size: 16px; color: var(--text-dim); }
.modal-regular {
  color: var(--text-dim);
  font-size: 16px;
  text-decoration: line-through;
}
.modal-features { margin-bottom: 28px; }
.modal-feature {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--glass-border);
  font-size: 14px;
}
.modal-feature:last-child { border-bottom: none; }
.modal-feature span:first-child { color: var(--green); }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.product-detail-section {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: #fbfbfd;
  padding: 16px;
}
.product-detail-section.full {
  grid-column: 1 / -1;
}
.product-detail-section h3 {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 12px;
}
.product-detail-section p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
}
.product-info-list {
  display: grid;
  gap: 10px;
}
.product-info-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}
.product-info-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.product-info-list span {
  color: var(--text-dim);
  font-size: 13px;
}
.product-info-list strong {
  color: #1d1d1f;
  font-size: 13px;
  text-align: right;
}
.brand-logo {
  display: block;
  width: 68%;
  height: 68%;
  object-fit: contain;
}
.has-logo {
  color: #1d1d1f;
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.modal-icon.has-logo .brand-logo {
  width: 58%;
  height: 58%;
}
.mini-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  flex: 0 0 auto;
}
.mini-brand-logo {
  width: 68%;
  height: 68%;
}

/* ===== TOAST ===== */
.toasts {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 14px 20px; border-radius: 14px;
  background: rgba(20,20,35,0.95);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.36s var(--ease-apple);
  max-width: 320px;
}
.toast.removing { animation: toastOut 0.2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }
@keyframes applePop {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes appleRise {
  0% { opacity: 0; transform: translateY(22px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes applePagePop {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.motion-ready .apple-pop {
  opacity: 0;
}
.motion-ready .apple-pop.in-view {
  animation: appleRise 0.48s var(--ease-apple) both;
  animation-delay: var(--pop-delay, 0ms);
}
.motion-ready .page.active {
  animation: applePagePop 0.38s var(--ease-apple) both;
}
.btn-primary,
.btn-ghost,
.icon-btn,
.nav-link,
.mini-nav-link,
.nav-search-pill,
.see-all,
.promo-input button,
.modal-close,
.payment-option,
.social-btn,
.status-select,
.order-delete,
.admin-access-link {
  transition: transform var(--spring), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn-primary:hover,
.btn-ghost:hover,
.icon-btn:hover,
.nav-link:hover,
.mini-nav-link:hover,
.nav-search-pill:hover,
.see-all:hover,
.promo-input button:hover,
.modal-close:hover,
.payment-option:hover,
.social-btn:hover,
.order-delete:hover,
.admin-access-link:hover {
  transform: translateY(-2px);
}
.ambient-parallax {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 60px;
  border-radius: 0; border-bottom: none; border-left: none; border-right: none;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid; grid-template-columns: 280px 1fr; gap: 60px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand > p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 24px; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn {
  padding: 8px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  transition: var(--transition);
}
.social-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-mid); margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1400px; margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-dim); flex-wrap: wrap; gap: 8px;
}

/* ===== INFORMATION & POLICY PAGES ===== */
.info-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.info-preview-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  min-height: 190px;
  padding: 24px;
  transition: var(--transition);
}
.info-preview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 255, 0.24);
}
.info-preview-card span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f5f5f7;
  color: #0071e3;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 18px;
}
.info-preview-card h3 {
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}
.info-preview-card p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
}
.legal-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 20px;
}
.legal-hero {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  padding: 44px;
}
.legal-hero h1 {
  color: #1d1d1f;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  margin: 8px 0 14px;
}
.legal-hero p {
  color: var(--text-mid);
  font-size: 17px;
  line-height: 1.7;
  max-width: 760px;
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.legal-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.legal-card h3 {
  color: #1d1d1f;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
}
.legal-card p,
.legal-card li {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
}
.legal-card p + p {
  margin-top: 12px;
}
.legal-card ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}
.legal-card .btn-primary {
  margin-top: 18px;
}
.legal-wide {
  grid-column: 1 / -1;
}

/* ===== ORDER SUCCESS ===== */
.order-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 80px 24px; max-width: 480px; margin: 0 auto;
}
.success-icon { font-size: 80px; margin-bottom: 24px; }
.order-success h2 { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.order-success p { color: var(--text-mid); margin-bottom: 32px; line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-form { grid-template-columns: 1fr; }
  .settings-wide { grid-column: auto; }
  .client-admin-card { grid-template-columns: 76px 1fr; }
  .client-admin-card .compact-upload,
  .client-admin-card .status-pill,
  .client-admin-card .price-actions { grid-column: 2; }
  .info-preview-grid,
  .legal-grid { grid-template-columns: 1fr 1fr; }
  .legal-wide { grid-column: auto; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
}
@media (max-width: 900px) {
  .hero { flex-direction: column; gap: 40px; padding: 60px 24px 40px; }
  .hero-visual { display: none; }
  .nav-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 0 14px;
  }
  .site-logo { width: 118px; }
  .nav-search-pill { min-height: 38px; padding: 0 12px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 600px) {
  .hero-title { font-size: 38px; }
  .nav-inner { grid-template-columns: auto 44px auto; }
  .nav-search-pill {
    justify-content: center;
    padding: 0;
  }
  .nav-search-pill input,
  .nav-search-clear {
    display: none !important;
  }
  .nav-search-mobile {
    display: block;
  }
  .mini-nav-link {
    display: none;
  }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .client-admin-card { grid-template-columns: 1fr; }
  .client-admin-card .compact-upload,
  .client-admin-card .status-pill,
  .client-admin-card .price-actions { grid-column: auto; }
  .client-admin-logo { margin: 0 auto; }
  .deals-banner { flex-direction: column; padding: 32px; }
  .newsletter { padding: 36px 24px; }
  .newsletter-form { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .stat-num { font-size: 18px; }
}

/* ===== APPLE-STYLE LIGHT THEME ===== */
:root {
  --blue: #0071e3;
  --purple: #5856d6;
  --pink: #ff2d55;
  --green: #b20710;
  --glass-bg: rgba(255,255,255,0.82);
  --glass-bg-hover: #fff;
  --glass-border: #e5e5ea;
  --glass-border-hover: #d1d1d6;
  --text-dim: #6e6e73;
  --text-mid: #3f3f46;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}
body {
  background: #f5f5f7;
  color: #1d1d1f;
}
.bg-mesh { display: none; }
.glass {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}
.navbar {
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid var(--glass-border);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom-color: var(--glass-border);
}
.logo span {
  background: none;
  -webkit-text-fill-color: #1d1d1f;
  color: #1d1d1f;
}
.nav-link, .mini-nav-link, .icon-btn, .nav-search-pill { color: #52525b; }
.nav-link:hover, .nav-link.active, .mini-nav-link:hover, .mini-nav-link.active, .icon-btn:hover, .nav-search-pill:hover, .nav-search-pill:focus-within {
  color: #111827;
  background: #f2f2f4;
}
.nav-search-pill {
  background: #fff;
  border-color: var(--glass-border);
}
.nav-search-pill:focus-within {
  border-color: rgba(0,113,227,0.35);
  box-shadow: 0 0 0 4px rgba(0,113,227,0.08);
}
.cart-badge {
  background: #111827;
  color: #fff;
}
.search-bar {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--glass-border);
}
.search-inner, .newsletter-form input, .promo-input input, .form-input {
  background: #fff;
  border-color: var(--glass-border);
  color: #1d1d1f;
}
.search-inner svg,
.search-inner button {
  color: #6e6e73;
}
.search-inner input {
  color: #1d1d1f;
  caret-color: #1d1d1f;
}
.search-inner input::placeholder {
  color: #86868b;
}
.search-inner button:hover {
  color: #1d1d1f;
  background: #f5f5f7;
}
.search-result-item {
  background: #fff;
  border-color: var(--glass-border);
}
.search-result-item:hover { background: #f5f5f7; }
.search-result-name {
  color: #1d1d1f;
}
.search-empty {
  background: #fff;
  border-color: var(--glass-border);
}
.search-enter {
  border-color: var(--glass-border);
  color: var(--text-dim);
}
.hero {
  min-height: auto;
  padding-top: 72px;
}
.hero-badge {
  background: #fff;
  color: var(--text-mid);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.hero-title {
  color: #1d1d1f;
  letter-spacing: -1px;
}
.gradient-text {
  background: linear-gradient(135deg, #1d1d1f 0%, #6e6e73 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn-primary {
  background: #1d1d1f;
  box-shadow: none;
  color: #fff;
}
.btn-primary:hover {
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}
.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.btn-ghost {
  background: #fff;
  border-color: var(--glass-border);
  color: #1d1d1f;
}
.btn-ghost:hover {
  background: #f5f5f7;
  border-color: var(--glass-border-hover);
}
.hero-float-card, .trending-card, .cat-card, .product-card, .trust-item, .client-card, .newsletter, .cart-item, .cart-summary, .checkout-form, .checkout-summary, .auth-card, .modal, .footer, .admin-panel, .metric-card {
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.hero-float-card:hover, .trending-card:hover, .cat-card:hover, .product-card:hover, .client-card:hover {
  background: #fff;
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 34px rgba(0,0,0,0.08);
}
.category-header, .deals-banner {
  background: #fff;
  border-color: var(--glass-border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.category-header::before, .deals-banner::before { display: none; }
.pc-desc, .hero-desc, .deals-text p, .clients-header p, .newsletter p, .trust-item p, .modal-desc, .order-success p {
  color: var(--text-mid);
}
.pc-brand, .pc-period, .tc-period, .cat-count, .hfc-price, .stat-label, .modal-brand, .modal-period, .ci-brand, .footer-brand > p, .footer-col a, .footer-bottom {
  color: var(--text-dim);
}
.pc-price, .tc-price, .ci-price, .page-title, .section-header h2, .category-header h1, .empty-cart h3, .auth-card h2, .modal h2, .order-success h2 {
  color: #1d1d1f;
}
.add-btn {
  background: #1d1d1f;
  box-shadow: none;
}
.add-btn:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}
.add-btn.added {
  background: var(--green);
}
.add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: #d1d5db;
}
.tag-popular, .tag-sale { background: #fff1f2; color: #c0263f; }
.tag-hot { background: #fff7ed; color: #c2410c; }
.tag-new { background: #fff1f2; color: #166534; }
.tag-trending { background: #eff6ff; color: #1d4ed8; }
.tag-best { background: #f5f3ff; color: #6d28d9; }
.modal-bg {
  background: rgba(245,245,247,0.72);
}
.modal-close, .promo-input button {
  background: #f5f5f7;
  color: #1d1d1f;
}
.modal-close:hover, .promo-input button:hover, .payment-option:hover {
  background: #ececf0;
  color: #1d1d1f;
}
.toast {
  background: #1d1d1f;
  color: #fff;
  border-color: #1d1d1f;
}
.footer {
  background: #fff;
  border-top: 1px solid var(--glass-border);
}
.social-btn {
  background: #f5f5f7;
  color: #1d1d1f;
}
.social-btn:hover { background: #ececf0; color: #111827; }
.auth-tabs {
  background: #f5f5f7;
}
.auth-tab.active {
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.checkout-summary div[style*="rgba(229,9,20"] {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: var(--green) !important;
}
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.admin-gate {
  max-width: 440px;
  margin: 40px auto;
  padding: 34px;
  border-radius: var(--radius-xl);
}
.admin-gate h1 {
  font-size: 34px;
  margin-bottom: 8px;
}
.admin-gate p:not(.eyebrow) {
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 22px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.metric-card {
  border-radius: var(--radius-md);
  padding: 18px;
}
.metric-clickable {
  cursor: pointer;
}
.metric-clickable:hover {
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.1);
  transform: translateY(-1px);
}
.metric-card span {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.metric-card strong {
  color: #1d1d1f;
  font-size: 28px;
}
.admin-panel {
  border-radius: var(--radius-lg);
  padding: 22px;
}
.admin-section-focus {
  border-color: rgba(0, 113, 227, 0.36);
  box-shadow: 0 16px 44px rgba(0, 113, 227, 0.14);
}
.admin-panel-head, .order-main, .order-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.admin-panel-head {
  margin-bottom: 18px;
}
.admin-panel-head h3 {
  font-size: 20px;
}
.orders-list {
  display: grid;
  gap: 12px;
}
.users-list {
  display: grid;
  gap: 12px;
}
.product-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
  gap: 10px;
  margin-bottom: 8px;
}
.product-textarea {
  min-height: 92px;
  resize: vertical;
}
.product-form .product-textarea {
  grid-column: span 2;
}
.image-upload-field {
  min-height: 50px;
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-sm);
  background: #fbfbfd;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.image-upload-field:hover {
  border-color: rgba(0,113,227,0.45);
  color: var(--blue);
}
.image-upload-field input {
  display: none;
}
.image-upload-field.compact {
  min-height: 42px;
  background: #fff;
  white-space: nowrap;
}
.product-image-preview {
  min-height: 50px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: #fbfbfd;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-size: 13px;
  overflow: hidden;
}
.product-image-preview.has-image {
  background: #fff;
}
.product-image-preview img {
  width: 100%;
  height: 74px;
  object-fit: contain;
  display: block;
}
.product-logo-editor {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.product-logo-preview {
  min-height: 42px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
}
.product-form .btn-primary {
  min-height: 50px;
}
.products-admin-list {
  display: grid;
  gap: 12px;
}
.availability-list {
  display: grid;
  gap: 12px;
}
.availability-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fbfbfd;
}
.availability-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: #fff;
}
.availability-toggle button {
  min-height: 38px;
  border-radius: 9px;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
  white-space: nowrap;
}
.availability-toggle button.active {
  background: #1d1d1f;
  color: #fff;
}
.availability-toggle button.active.danger {
  background: #fff1f2;
  color: #be123c;
}
.admin-product-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(145px, auto) auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fbfbfd;
}
.price-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.8fr) auto;
  gap: 10px;
  margin-bottom: 8px;
}
.admin-help {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 14px;
}
.prices-list {
  display: grid;
  gap: 12px;
}
.price-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(145px, auto) repeat(3, minmax(120px, 0.45fr)) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fbfbfd;
}
.product-admin-wide {
  grid-column: span 2;
}
.price-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-icon.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: 0 0 auto;
}
.brand-logo.small {
  width: 24px;
  height: 24px;
}
.price-name {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 900;
}
.price-meta {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 3px;
}
.price-values {
  display: grid;
  gap: 3px;
  color: var(--text-dim);
  font-size: 12px;
}
.price-values strong {
  color: #1d1d1f;
  font-size: 16px;
}
.affiliate-badge {
  align-self: start;
  border-radius: 999px;
  background: #f5f5f7;
  color: var(--text-dim);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  width: fit-content;
}
.affiliate-badge.is-on {
  background: #e8f7ee;
  color: #0a7a37;
}
.affiliate-editor {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 1fr) minmax(140px, 1fr);
  gap: 10px;
}
.affiliate-switch {
  align-items: center;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #1d1d1f;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  gap: 9px;
  min-height: 46px;
  padding: 0 12px;
}
.affiliate-switch input {
  accent-color: #1d1d1f;
  width: 16px;
  height: 16px;
}
.affiliate-editor .form-input:disabled {
  background: #f5f5f7;
  color: #a1a1aa;
  cursor: not-allowed;
}
.price-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-delete:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.coupon-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 10px;
  margin-bottom: 14px;
}
.coupon-products-select {
  min-height: 104px;
  grid-column: span 3;
}
.coupons-list {
  display: grid;
  gap: 12px;
}
.coupon-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fbfbfd;
}
.coupon-code {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.coupon-meta,
.coupon-uses {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 4px;
}
.coupon-side {
  display: grid;
  justify-items: end;
  gap: 4px;
}
.coupon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fbfbfd;
}
.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1d1d1f;
  color: #fff;
  font-weight: 900;
}
.user-name {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 800;
}
.user-meta {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 4px;
}
.user-login {
  text-align: right;
}
.user-login strong {
  display: block;
  color: #1d1d1f;
  font-size: 13px;
}
.user-login span {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 4px;
}
.order-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #fbfbfd;
}
.order-id {
  font-size: 15px;
  font-weight: 800;
}
.order-customer {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px;
}
.order-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.order-contact span {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}
.order-source {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.order-source span {
  background: #eef6ff;
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 10px;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 9px;
}
.order-filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.metric-card.active-filter {
  border-color: rgba(0, 113, 227, 0.32);
  box-shadow: 0 14px 34px rgba(0, 113, 227, 0.12);
}
.banner-admin-card,
.affiliate-card,
.affiliate-report-card {
  align-items: center;
  background: #fbfbfd;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 12px;
  padding: 14px;
}
.banner-admin-card {
  grid-template-columns: 150px minmax(180px, 1fr) auto auto;
}
.banner-admin-thumb {
  aspect-ratio: 16 / 5;
  background: #f5f5f7 center / cover;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}
.banner-image-preview.has-image {
  aspect-ratio: 16 / 5;
}
.affiliate-card {
  grid-template-columns: minmax(220px, 1.5fr) auto minmax(120px, 0.65fr) minmax(130px, 0.65fr) minmax(120px, 0.65fr) auto;
}
.affiliate-report-card {
  grid-template-columns: minmax(220px, 1fr) 2fr;
}
.affiliate-report-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
}
.affiliate-report-metrics span {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 12px;
  padding: 10px;
}
.affiliate-report-metrics strong {
  color: #1d1d1f;
  display: block;
  font-size: 15px;
  margin-top: 4px;
}
.order-meta {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 4px;
}
.order-total {
  color: #1d1d1f;
  font-size: 20px;
  font-weight: 900;
}
.order-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.order-items span {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-mid);
  font-size: 12px;
  padding: 6px 10px;
}
.status-select {
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #1d1d1f;
  padding: 9px 10px;
  font: inherit;
}
.status-pill {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}
.status-pending { background: #fff7ed; color: #c2410c; }
.status-processing { background: #eff6ff; color: #1d4ed8; }
.status-delivered { background: #fff1f2; color: #166534; }
.status-cancelled { background: #f4f4f5; color: #52525b; }
.order-delete {
  background: #fff1f2;
  border: 1px solid #ffe4e6;
  border-radius: 8px;
  color: #be123c;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
}
.order-delete:hover {
  background: #ffe4e6;
}
.empty-cart.compact {
  padding: 48px 16px;
}
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 640;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 238px;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  background: #e50914;
  color: #fff;
  box-shadow: 0 16px 36px rgba(229,9,20,0.35);
  border: 1px solid rgba(255,255,255,0.42);
  pointer-events: auto;
  cursor: pointer;
  animation: whatsappPop 0.42s var(--ease-apple) 0.25s both;
  transition: transform var(--spring), box-shadow var(--transition);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(229,9,20,0.42);
}
.whatsapp-float:active {
  transform: translateY(-1px);
}
.wa-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  font-size: 20px;
  font-weight: 900;
}
.whatsapp-float strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
}
.whatsapp-float small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  font-weight: 700;
}
.wa-dot {
  position: absolute;
  top: 9px;
  left: 44px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.22);
}
@keyframes whatsappPop {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

.cursor-3d,
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 520;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
}
.cursor-3d {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(29,29,31,0.24);
  border-radius: 50%;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16), inset 0 0 0 1px rgba(255,255,255,0.88);
  transform-style: preserve-3d;
  transition: width 0.18s ease, height 0.18s ease, opacity 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cursor-core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #ff1717;
  box-shadow: 0 0 20px rgba(255,23,23,0.34);
  transform: translateZ(14px);
}
.cursor-trail {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,23,23,0.78);
  box-shadow: 0 0 24px rgba(255,23,23,0.36);
  transition: opacity 0.18s ease;
}
body.cursor-ready .cursor-3d,
body.cursor-ready .cursor-trail {
  opacity: 1;
}
body.cursor-hover .cursor-3d {
  width: 52px;
  height: 52px;
  border-color: rgba(255,23,23,0.42);
  background: rgba(255,23,23,0.08);
}
.product-card,
.trending-card,
.cat-card,
.hero-float-card,
.deals-banner,
.trust-item,
.client-card,
.metric-card,
.order-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.parallax-active {
  transition: transform 0.08s linear;
}
.parallax-active .pc-icon,
.parallax-active .trending-icon,
.parallax-active .cat-icon,
.parallax-active .metric-card strong,
.parallax-active .order-total {
  transform: translateZ(18px);
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-3d,
  .cursor-trail {
    display: none !important;
  }
  .motion-ready .apple-pop,
  .motion-ready .apple-pop.in-view {
    opacity: 1;
    animation: none !important;
  }
  .motion-ready .page.active {
    animation: none !important;
  }
  .parallax-active,
  .ambient-parallax,
  .product-card,
  .trending-card,
  .cat-card,
  .hero-float-card,
  .deals-banner,
  .trust-item,
  .client-card,
  .metric-card,
  .order-card {
    transform: none !important;
  }
}
@media (max-width: 900px) {
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .admin-header, .order-main, .order-actions, .user-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .user-card {
    display: flex;
  }
  .user-login {
    text-align: left;
  }
  .admin-metrics { grid-template-columns: 1fr; }
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-width: 0;
    padding: 10px;
  }
  .whatsapp-float span:last-child {
    display: none;
  }
  .wa-icon {
    width: 46px;
    height: 46px;
  }
  .wa-dot {
    left: 42px;
  }
}

/* ===== MOBILE POLISH ===== */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }
  .nav-inner {
    height: var(--nav-h);
    grid-template-columns: auto 42px auto;
    gap: 10px;
    padding: 0 12px;
  }
  .site-logo {
    width: 112px;
  }
  .nav-search-pill {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
  }
  .nav-search-pill input,
  .nav-search-clear,
  .mini-nav-link {
    display: none !important;
  }
  .nav-search-mobile {
    display: block;
  }
  .nav-actions {
    gap: 6px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .search-bar {
    padding: 10px 12px 14px;
  }
  .search-inner {
    max-width: none;
    border-radius: 14px;
    padding: 11px 12px;
  }
  .search-inner input {
    min-width: 0;
    font-size: 15px;
  }
  .search-results {
    max-width: none;
    grid-template-columns: 1fr;
    max-height: min(62vh, 520px);
    overflow-y: auto;
    padding-bottom: 4px;
  }
  .main {
    padding-top: var(--nav-h);
  }
  .hero {
    display: block;
    min-height: auto;
    padding: 36px 16px 28px;
  }
  .hero-content {
    max-width: none;
  }
  .hero-badge {
    margin-bottom: 18px;
  }
  .hero-title {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.04;
    letter-spacing: -1px;
  }
  .hero-desc {
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 26px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost,
  .btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-divider {
    display: none;
  }
  .stat {
    padding: 12px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: #fff;
  }
  .section,
  .category-page,
  .product-detail-page,
  .cart-page,
  .checkout-page,
  .admin-page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .section {
    padding-top: 34px;
    padding-bottom: 34px;
  }
  .section-header {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }
  .section-header h2,
  .page-title,
  .category-header h1 {
    font-size: 24px;
    line-height: 1.15;
  }
  .scroll-track {
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 14px;
    scroll-snap-type: x mandatory;
  }
  .trending-card {
    width: 172px;
    padding: 16px;
    scroll-snap-align: start;
  }
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    min-height: auto;
    padding: 16px;
  }
  .pc-name,
  .tc-name,
  .ci-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .deals-banner {
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
  }
  .deals-visual {
    font-size: 52px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .newsletter {
    padding: 24px 18px;
  }
  .newsletter-form {
    display: grid;
    grid-template-columns: 1fr;
    max-width: none;
  }
  .cart-layout,
  .product-hero-detail,
  .detail-info-columns,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-main-image {
    min-height: 260px;
  }
  .product-page-image {
    max-height: 280px;
  }
  .product-purchase-panel,
  .product-media-panel,
  .detail-tab-body {
    padding: 18px;
  }
  .product-purchase-panel h1 {
    font-size: 24px;
  }
  .detail-cart-row {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
    padding: 12px;
  }
  .ci-price {
    grid-column: 2 / -1;
    justify-self: start;
  }
  .cart-summary,
  .checkout-summary,
  .checkout-form,
  .auth-card,
  .admin-gate,
  .admin-panel {
    padding: 18px;
    border-radius: 12px;
  }
  .payment-methods {
    grid-template-columns: 1fr;
  }
  .verification-row,
  .promo-input,
  .newsletter-form {
    grid-template-columns: 1fr;
  }
  .auth-card {
    max-width: none;
  }
  .account-page {
    padding: 24px 16px 44px;
  }
  .modal-bg {
    align-items: flex-end;
    padding: 10px;
  }
  .modal {
    max-height: 88vh;
    overflow-y: auto;
    padding: 22px;
    border-radius: 16px;
  }
  .modal-price {
    font-size: 32px;
  }
  .modal-top {
    align-items: flex-start;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-section.full,
  .product-form .product-textarea,
  .product-admin-wide,
  .coupon-products-select {
    grid-column: auto;
  }
  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-form,
  .availability-card,
  .admin-product-card,
  .price-form,
  .price-card,
  .coupon-form,
  .coupon-card,
  .banner-admin-card,
  .affiliate-card,
  .affiliate-report-card {
    grid-template-columns: 1fr;
  }
  .affiliate-report-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .price-actions {
    flex-wrap: wrap;
  }
  .product-logo-editor {
    grid-template-columns: 1fr;
  }
  .affiliate-editor {
    grid-template-columns: 1fr;
  }
  .availability-toggle {
    width: 100%;
  }
  .coupon-side {
    justify-items: start;
  }
  .coupon-actions {
    flex-wrap: wrap;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-card strong {
    font-size: 22px;
  }
  .order-main,
  .order-actions,
  .user-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .user-card {
    display: flex;
  }
  .user-login {
    text-align: left;
  }
  .footer {
    margin-top: 28px;
  }
  .footer-inner {
    padding: 36px 16px 22px;
    gap: 28px;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .footer-bottom {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }
  .info-preview-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .legal-page {
    padding: 24px 14px 10px;
  }
  .legal-hero {
    padding: 28px 20px;
  }
  .legal-card,
  .info-preview-card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .site-logo {
    width: 104px;
  }
  .nav-inner {
    gap: 8px;
    padding: 0 10px;
  }
  .hero-stats,
  .admin-metrics,
  .footer-links {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 44px 1fr;
  }
  .ci-remove {
    grid-column: 2;
    justify-self: start;
  }
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
  }
}

/* ===== DIGITALTOOLSBD-STYLE MARKETPLACE REDESIGN ===== */
:root {
  --dt-red: #e50914;
  --dt-red-dark: #b20710;
  --dt-red-soft: #fff1f2;
  --green: var(--dt-red);
  --dt-green: var(--dt-red);
  --dt-green-dark: var(--dt-red-dark);
  --dt-soft: #f4f6f8;
  --dt-border: #e4e7ec;
}
body { background: #f4f6f8; color: #222; }
.dt-shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.navbar { height: auto; background: #fff; border-bottom: 1px solid var(--dt-border); color: #222; backdrop-filter: none; -webkit-backdrop-filter: none; }
.navbar.scrolled { background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.dt-topbar { background: var(--dt-green); color: #fff; font-size: 14px; font-weight: 700; }
.dt-topbar .dt-shell { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-inner { max-width: 1180px; height: 76px; grid-template-columns: 220px minmax(320px, 1fr) auto; }
.site-logo { width: 165px; }
.nav-search-pill { border-radius: 4px; border-color: #d7dce2; background: #fff; min-height: 46px; padding: 0 12px 0 0; gap: 8px; }
.dt-category-select { width: 150px; height: 44px; border: 0; border-right: 1px solid var(--dt-border); background: #f8fafb; color: #222; font-weight: 700; padding: 0 10px; outline: none; }
.nav-search-pill input { color: #222; font-weight: 600; }
.nav-search-pill:hover { background: #fff; border-color: var(--dt-green); transform: none; }
.nav-actions { color: #222; }
.mini-nav-link, .icon-btn { color: #222; background: #fff; }
.icon-btn:hover, .mini-nav-link:hover { background: var(--dt-red-soft); color: var(--dt-green-dark); }
.dt-navrow { background: #f0f1f2; border-top: 1px solid var(--dt-border); }
.dt-navrow-inner { min-height: 44px; display: grid; grid-template-columns: 278px 1fr; align-items: center; }
.dt-all-categories { height: 44px; background: var(--dt-green); color: #fff; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; text-align: left; padding: 0 16px; }
.dt-menu { display: flex; justify-content: flex-end; gap: 4px; }
.dt-menu button { color: #666; font-size: 13px; font-weight: 800; text-transform: uppercase; padding: 13px 14px; }
.dt-menu button:hover { color: var(--dt-green); }
.main { padding-top: 156px; }
.dt-hero-wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; display: grid; grid-template-columns: 278px 1fr; gap: 20px; padding-top: 16px; }
.dt-sidebar { background: #fff; border: 1px solid var(--dt-border); border-radius: 0; align-self: start; overflow: hidden; }
.dt-sidebar h3 { background: var(--dt-green); color: #fff; text-transform: uppercase; font-size: 14px; letter-spacing: 0.05em; padding: 14px 16px; }
.dt-sidebar button { width: 100%; min-height: 52px; border-bottom: 1px solid #edf0f2; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 0 14px; color: #222; text-align: left; }
.dt-sidebar button:hover { background: var(--dt-red-soft); color: var(--dt-green-dark); }
.dt-sidebar small { color: #777; }
.dt-hero-main { min-width: 0; }
.banner-slider-section { padding: 0; margin-bottom: 16px; }
.banner-slider { min-height: 250px; border-radius: 0; border: 1px solid var(--dt-border); background: #fff; }
.banner-slide { min-height: 250px; }
.hero { width: auto; margin: 0; min-height: 392px; background: #fff; border: 1px solid var(--dt-border); border-radius: 0; padding: 38px 34px; align-items: center; gap: 34px; }
.hero-content { max-width: 470px; }
.hero-title { color: #222; font-size: clamp(38px, 5vw, 56px); line-height: 0.98; letter-spacing: -1.6px; font-weight: 900; }
.gradient-text { color: var(--dt-green); background: none; -webkit-text-fill-color: currentColor; }
.hero-desc, .hero-stats, .stat-label { color: #555; }
.hero-desc { font-size: 17px; margin-bottom: 30px; }
.hero-actions { margin-bottom: 38px; }
.btn-primary { background: #1f1f23; box-shadow: none; border-radius: 4px; font-weight: 800; }
.btn-primary:hover { background: var(--dt-red); box-shadow: none; }
.btn-ghost { background: #fff; border-color: var(--dt-border); color: #222; border-radius: 4px; font-weight: 800; }
.btn-ghost:hover { background: var(--dt-red-soft); border-color: #fecdd3; color: var(--dt-red-dark); }
.stat-num { color: #222; }
.stat-label { font-weight: 700; }
.hero-visual { min-height: 310px; align-items: center; justify-content: center; }
.hero-card-stack { width: min(100%, 360px); height: 310px; transform: translateY(-6px); }
.hero-float-card { background: #fff; border: 1px solid var(--dt-border); box-shadow: 0 12px 28px rgba(16,24,40,0.08); color: #222; border-radius: 16px; padding: 16px 18px; min-width: 210px; animation: none; }
.hero-float-card:nth-child(1) { top: 8px !important; right: 42px !important; left: auto !important; }
.hero-float-card:nth-child(2) { top: 92px !important; right: 0 !important; left: auto !important; }
.hero-float-card:nth-child(3) { top: 178px !important; right: 64px !important; left: auto !important; }
.hero-float-card:nth-child(4) { display: none; }
.hfc-name { color: #222; font-weight: 800; }
.hfc-price { color: #667085; }
.hfc-icon { background: var(--dt-red-soft) !important; color: var(--dt-red) !important; border-radius: 8px; }
.section { width: min(1180px, calc(100% - 28px)); }
.dt-product-section, .trust-section, .clients-section, .info-preview-section, .newsletter-section, .deals-section { background: #fff; border: 1px solid var(--dt-border); padding: 18px; margin-top: 18px; }
.section-header { margin-bottom: 14px; border-bottom: 1px solid var(--dt-border); padding-bottom: 12px; }
.section-header h2 { color: #222; font-size: 22px; }
.see-all { color: var(--dt-green); background: var(--dt-red-soft); border-radius: 4px; }
.products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.product-card, .trending-card { background: #fff; border: 1px solid var(--dt-border); border-radius: 0; box-shadow: none; padding: 14px; gap: 10px; }
.product-card:hover, .trending-card:hover { border-color: var(--dt-green); box-shadow: 0 10px 22px rgba(0,0,0,0.08); transform: translateY(-2px); }
.pc-badge-row { min-height: 25px; display: flex; justify-content: space-between; align-items: center; }
.pc-header { justify-content: center; min-height: 116px; align-items: center; }
.pc-icon { width: 96px; height: 96px; border-radius: 8px; background: #fff !important; color: #222 !important; border: 1px solid var(--dt-border); }
.pc-icon.has-logo img, .tc-icon.has-logo img { object-fit: contain; }
.pc-name { color: #222; font-size: 15px; line-height: 1.35; min-height: 40px; }
.pc-brand, .pc-desc, .pc-period { color: #667085; }
.pc-desc { min-height: 42px; font-size: 13px; }
.pc-rating { color: #ff8a00; font-size: 12px; margin-top: 6px; }
.pc-rating span { color: #777; }
.pc-footer { align-items: end; }
.pc-price { color: #e2572f; font-size: 20px; }
.pc-regular { color: #8a8f98; background: transparent; }
.add-btn { width: 38px; height: 38px; border-radius: 4px; background: var(--dt-green); box-shadow: none; }
.add-btn:hover { background: var(--dt-green-dark); box-shadow: none; }
.add-btn.added { background: var(--dt-red-dark); box-shadow: none; }
.tag { border-radius: 3px; margin: 0; padding: 5px 8px; }
.tag-sale, .pc-original { display: none !important; }
.scroll-track { gap: 12px; }
.trending-card { width: 210px; }
.tc-icon { margin: 0 auto 12px; background: #fff !important; color: #222 !important; border: 1px solid var(--dt-border); }
.trust-grid { grid-template-columns: repeat(4, 1fr); }
.trust-item, .client-card, .newsletter, .info-preview-card, .legal-card, .legal-hero, .cart-summary, .checkout-form, .checkout-summary, .auth-card, .admin-panel, .admin-gate { background: #fff; border: 1px solid var(--dt-border); border-radius: 0; color: #222; backdrop-filter: none; }
.product-hero-detail, .detail-tabs { border-radius: 0; }
.product-media-panel, .product-purchase-panel, .detail-tabs { background: #fff; border: 1px solid var(--dt-border); }
.whatsapp-float {
  background: linear-gradient(135deg, var(--dt-red), var(--dt-red-dark));
  box-shadow: 0 16px 36px rgba(229,9,20,0.28);
}
.whatsapp-float:hover { box-shadow: 0 20px 44px rgba(229,9,20,0.34); }
.footer { border-radius: 0; margin-top: 24px; }
@media (max-width: 980px) {
  .main { padding-top: 122px; }
  .dt-topbar .dt-shell { flex-direction: column; align-items: flex-start; padding: 7px 0; }
  .nav-inner { grid-template-columns: 1fr auto; height: auto; padding: 12px 14px; }
  .nav-search-pill { grid-column: 1 / -1; order: 3; }
  .dt-category-select, .dt-navrow { display: none; }
  .dt-hero-wrap { grid-template-columns: 1fr; }
  .dt-sidebar { display: none; }
  .hero { padding: 24px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .main { padding-top: 142px; }
  .site-logo { width: 118px; }
  .nav-search-pill { width: 100%; min-width: 0; padding: 0 12px; }
  .nav-search-pill input, .nav-search-clear { display: block !important; }
  .nav-search-mobile { display: none; }
  .hero-visual, .hero-stats { display: none; }
  .trust-grid, .products-grid { grid-template-columns: 1fr; }
}
