/**
 * vBoxStudio Front Page - Premium Dark Design
 * Front-page-specific styles (hero, products, categories, story, trust, CTA)
 * Shared styles (variables, header, footer, topbar) are in global-dark.css
 */

/* Front page body overflow */
body.home { overflow-x: hidden; }

/* ====== HERO ====== */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 55% 45%;
  position: relative;
  overflow: hidden;
  background: url('/wp-content/uploads/products/vboxstudio-hero.webp') center center / cover no-repeat;
}

/* Diagonal divider */
.hero::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 52%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--blue) 30%, var(--teal) 70%, transparent);
  transform: rotate(3deg) scaleY(1.1);
  opacity: 0.2;
}

/* Dark overlay — "cloud reveal": dark edges part open to show the image center */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    /* Radial opening — reveals the subject in center-right */
    radial-gradient(ellipse 70% 80% at 58% 48%,
      rgba(6,7,13,0.10) 0%,
      rgba(6,7,13,0.35) 40%,
      rgba(6,7,13,0.75) 70%,
      rgba(6,7,13,0.92) 100%
    ),
    /* Left edge stays dark for text readability */
    linear-gradient(90deg,
      rgba(6,7,13,0.88) 0%,
      rgba(6,7,13,0.50) 30%,
      transparent 55%
    ),
    /* Bottom edge blends into next section */
    linear-gradient(to top,
      rgba(6,7,13,0.95) 0%,
      transparent 18%
    );
  z-index: 1;
}

/* Subtle dot pattern — toned down so it doesn't fight the photo */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 1;
}

.hero-left {
  padding: 80px 56px 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px 14px 6px 10px;
  background: rgba(59,91,219,0.1);
  border: 1px solid rgba(59,91,219,0.25);
  border-radius: 100px;
  font-size: 20px;
  font-weight: 600;
  color: #7B9CFF;
  letter-spacing: 0.08em;
  width: fit-content;
}
.hero-slogan-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-h);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 148px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-title .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-cta { display: flex; gap: 14px; align-items: center; margin-bottom: 64px; }

.btn-outline {
  padding: 10px 22px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--white); }

.hero-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.stat {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  z-index: 3;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,91,219,0.1);
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-card-top {
  padding: 6px 16px;
  background: var(--grad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-card-top-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 0.1em; }
.hero-card-stars {
  display: flex;
  gap: 2px;
}

.hero-card-img {
  height: 200px;
  background: linear-gradient(135deg, #0F1122, #1A1D35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Real image support for hero card */
.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-body { padding: 20px 20px 24px; }
.hero-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 6px;
}
.hero-card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.3;
}
.hero-card-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-card-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
}
.hero-card-was {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  display: block;
  margin-bottom: 2px;
}
.hero-card-save {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(46,204,113,0.12);
  border: 1px solid rgba(46,204,113,0.25);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}
.hero-card-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  background: var(--grad-h);
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.hero-card-btn:hover { opacity: 0.85; }

/* Orbiting elements */
.orbit-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.orbit-badge svg { flex-shrink: 0; }
.orbit-badge-1 { top: 80px; right: 32px; animation: floatBadge1 5s ease-in-out infinite; }
.orbit-badge-2 { bottom: 100px; left: 24px; animation: floatBadge2 6s ease-in-out infinite; }
@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(8px) rotate(-2deg); }
}

/* ====== TICKER ====== */
.ticker {
  padding: 14px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: tickerAnim 35s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-item svg { color: var(--blue-light); flex-shrink: 0; }
@keyframes tickerAnim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====== SECTION COMMON ====== */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--grad-h);
  flex-shrink: 0;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.05;
}
.section-h2 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== CATEGORIES ====== */
.categories {
  padding: 96px 60px;
  background: var(--bg2);
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,91,219,0.05), rgba(0,137,123,0.03));
  opacity: 0;
  transition: opacity 0.3s;
}
.cat-card:hover { transform: translateY(-5px); border-color: rgba(59,91,219,0.35); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.cat-card:hover::before { opacity: 1; }

.cat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(59,91,219,0.1);
  border: 1px solid rgba(59,91,219,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background 0.3s;
}
.cat-card:hover .cat-icon-wrap { background: rgba(59,91,219,0.18); }
.cat-icon-wrap svg { color: var(--blue-light); }

.cat-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
}
.cat-count { font-size: 12px; color: var(--muted); font-weight: 500; }

.cat-arrow {
  position: absolute;
  bottom: 20px; right: 20px;
  color: var(--border2);
  transition: color 0.2s, transform 0.2s;
}
.cat-card:hover .cat-arrow { color: var(--blue-light); transform: translate(3px, -3px); }

/* ====== PRODUCTS ====== */
.products {
  padding: 96px 60px;
}

.products-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--blue);
  background: rgba(59,91,219,0.12);
  color: var(--blue-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.products-grid .pcard:first-child {
  grid-column: span 2;
}

/* PRODUCT CARD */
.pcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.pcard:hover {
  transform: translateY(-5px);
  border-color: rgba(59,91,219,0.3);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.pcard-img {
  height: 200px;
  background: linear-gradient(135deg, #0F1122, #181C38);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.products-grid .pcard:first-child .pcard-img { height: 260px; }

/* Real image support for product cards */
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.pcard:hover .pcard-img img {
  transform: scale(1.05);
}

.pcard-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59,91,219,0.06);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  gap: 8px;
}
.pcard:hover .pcard-img-overlay { opacity: 1; }

.pcard-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
}
.badge-featured { background: var(--grad-h); color: #fff; }
.badge-deal { background: rgba(46,204,113,0.15); border: 1px solid rgba(46,204,113,0.3); color: var(--green); }
.badge-top { background: rgba(59,91,219,0.15); border: 1px solid rgba(59,91,219,0.3); color: #7B9CFF; }
.badge-new { background: rgba(0,137,123,0.12); border: 1px solid rgba(0,137,123,0.3); color: #4ECDC4; }

.pcard-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pcard-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.pcard-stars { display: flex; gap: 2px; }
.pcard-stars svg { color: var(--blue-light); }

.pcard-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white) !important;
  text-decoration: none !important;
  margin-bottom: 12px;
  line-height: 1.25;
}
.products-grid .pcard:first-child .pcard-name { font-size: 22px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.chip {
  padding: 3px 8px;
  background: rgba(59,91,219,0.07);
  border: 1px solid rgba(59,91,219,0.15);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7B9CFF;
}

.pcard-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
}

.pcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pcard-was {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 500;
}
.pcard-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.pcard-save {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  margin-top: 2px;
}

.btn-add {
  padding: 10px 18px;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  background: transparent;
  color: var(--blue-light);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-add:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59,91,219,0.3);
}

/* Buy Now button */
.btn-buynow {
  padding: 11px 22px;
  background: var(--grad-h);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.btn-buynow:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59,91,219,0.4);
}

/* Product card dual-button wrapper */
.pcard-btns {
  display: flex;
  gap: 8px;
}

/* ====== BRAND STORY ====== */
.story {
  padding: 100px 60px;
  background: var(--bg2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-visual {
  position: relative;
  height: 500px;
}

.story-bg-num {
  position: absolute;
  font-family: var(--font-display);
  font-size: 240px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  top: -20px; left: -10px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.story-main-box {
  position: absolute;
  inset: 48px 0 0;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.story-main-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-h);
}
/* Real logo image support for story box */
.story-main-box img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  opacity: 0.35;
}
.story-main-box-icon {
  color: rgba(59,91,219,0.12);
}

.story-float {
  position: absolute;
  bottom: 24px;
  right: -16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 18px 22px;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.story-float-val {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.story-float-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.story-title .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.story-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 36px;
  font-weight: 300;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.feature-item svg { color: var(--blue-light); flex-shrink: 0; }

/* ====== TRUST ====== */
.trust {
  padding: 80px 60px;
  border-top: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 52px;
}
.trust-item {
  background: var(--card);
  padding: 36px 28px;
  text-align: center;
  transition: background 0.2s;
}
.trust-item:hover { background: var(--surface); }
.trust-icon-wrap {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: rgba(59,91,219,0.1);
  border: 1px solid rgba(59,91,219,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.trust-icon-wrap svg { color: var(--blue-light); }
.trust-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.trust-desc { font-size: 13px; color: var(--muted); line-height: 1.6; font-weight: 300; }

/* ====== CTA ====== */
.cta-section {
  margin: 0 60px 80px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(59,91,219,0.08), transparent 65%);
  pointer-events: none;
}
.cta-big {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.05;
  position: relative;
}
.cta-big .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.7;
  font-weight: 300;
  position: relative;
}
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.cta-input {
  flex: 1;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 9px;
  color: var(--white);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.cta-input:focus { border-color: var(--blue); }
.cta-input::placeholder { color: var(--muted); }
.cta-subscribe-btn { padding: 13px 24px; font-size: 13px; }

/* Section centering helper */
.section-center { text-align: center; }
.section-center .section-eyebrow { justify-content: center; display: flex; }

/* Add to Cart click feedback (toggled by JS) */
.btn-add--clicked {
  background: rgba(46,204,113,0.15);
  border-color: rgba(46,204,113,0.4);
  color: var(--green);
}

/* ====== QUICK VIEW MODAL ====== */
.qv-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.qv-overlay.qv-open {
  opacity: 1;
  visibility: visible;
}
.qv-modal {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  width: 90%;
  max-width: 880px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.qv-open .qv-modal {
  transform: translateY(0) scale(1);
}
.qv-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--white) !important;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.qv-close:hover {
  background: var(--blue);
}
.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.qv-img-wrap {
  background: linear-gradient(135deg, #0F1122, #181C38);
  border-radius: 20px 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 360px;
}
.qv-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Quick View image loading spinner */
.qv-img-wrap.qv-img-loading {
  position: relative;
}
.qv-img-wrap.qv-img-loading::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid rgba(59,91,219,0.2);
  border-top-color: #5A7AE8;
  border-radius: 50%;
  animation: vboxSpin .7s linear infinite;
}
.qv-img-wrap.qv-img-loading img {
  opacity: 0;
  transition: opacity .3s;
}
.qv-details {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.qv-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.qv-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.qv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.qv-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qv-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.qv-was {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
}
.qv-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}
.qv-save-tag {
  padding: 4px 10px;
  background: rgba(46,204,113,0.12);
  border: 1px solid rgba(46,204,113,0.25);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}
.qv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.qv-actions .btn-buynow {
  flex: 1 0 100%;
  justify-content: center;
  font-size: 14px;
  padding: 13px 22px;
}
.qv-actions .btn-shop {
  flex: 1;
  justify-content: center;
}
.qv-actions .btn-outline {
  flex: 1;
  text-align: center;
}
@media (max-width: 700px) {
  .qv-grid {
    grid-template-columns: 1fr;
  }
  .qv-img-wrap {
    border-radius: 20px 20px 0 0;
    min-height: 240px;
  }
  .qv-details {
    padding: 24px 20px;
  }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-slogan { animation: fadeUp 0.6s ease 0.1s both; }
.hero-title { animation: fadeUp 0.7s ease 0.2s both; }
.hero-sub { animation: fadeUp 0.7s ease 0.3s both; }
.hero-cta { animation: fadeUp 0.7s ease 0.4s both; }
.hero-stats { animation: fadeUp 0.7s ease 0.5s both; }
.hero-card { animation: fadeUp 0.9s ease 0.35s both; }

/* ====== RESPONSIVE ====== */

/* -- Tablet (≤1100px) -- */
@media (max-width: 1100px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid .pcard:first-child { grid-column: span 2; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .story { gap: 48px; }
  .hero-left { padding: 60px 40px; }
  .hero-right { padding: 40px 32px; }
}

/* -- Small Tablet / Large Mobile (≤900px) -- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero::after { display: none; }
  .hero-right { display: none; }
  .hero-left { padding: 48px 24px 56px; }

  .hero-title { font-size: clamp(40px, 11vw, 100px); }
  .hero-slogan { font-size: 16px; margin-bottom: 20px; }
  .hero-sub { font-size: 15px; max-width: 100%; margin-bottom: 32px; }
  .hero-cta { margin-bottom: 40px; }
  .hero-stats { flex-wrap: wrap; }
  .stat { min-width: 0; flex: 1 1 45%; }

  .categories, .products, .story, .trust { padding: 56px 24px; }

  .story { grid-template-columns: 1fr; gap: 36px; }
  .story-visual { height: 280px; }
  .story-float { bottom: 16px; right: 8px; }

  .products-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .filter-bar { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .filter-btn { flex-shrink: 0; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .products-grid .pcard:first-child { grid-column: span 2; }

  .trust-grid { grid-template-columns: 1fr 1fr; }

  .cta-section { margin: 0 16px 48px; padding: 48px 24px; }
  .cta-form { flex-direction: column; }
  .cta-big { font-size: clamp(32px, 7vw, 56px); }
}

/* -- Mobile (≤600px) -- */
@media (max-width: 600px) {
  .hero-left { padding: 36px 16px 44px; }
  .hero-title { font-size: clamp(36px, 10vw, 64px); margin-bottom: 20px; }
  .hero-slogan { font-size: 13px; padding: 5px 10px 5px 8px; gap: 7px; margin-bottom: 16px; }
  .hero-sub { font-size: 14px; line-height: 1.6; margin-bottom: 24px; }
  .hero-cta { flex-direction: column; gap: 10px; margin-bottom: 32px; }
  .hero-cta .btn-shop,
  .hero-cta .btn-outline { width: 100%; justify-content: center; text-align: center; }
  .hero-stats { border-radius: 10px; }
  .stat { padding: 14px 12px; }
  .stat-val { font-size: 22px; }
  .stat-lbl { font-size: 9px; }

  .cats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { padding: 20px 16px 18px; }
  .cat-icon-wrap { width: 42px; height: 42px; margin-bottom: 12px; }
  .cat-name { font-size: 15px; }
  .cat-count { font-size: 11px; }

  .products-grid { grid-template-columns: 1fr; gap: 14px; }
  .products-grid .pcard:first-child { grid-column: span 1; }
  .products-grid .pcard:first-child .pcard-img { height: 200px; }
  .products-grid .pcard:first-child .pcard-name { font-size: 18px; }
  .pcard-img { height: 180px; }
  .pcard-body { padding: 16px; }
  .pcard-footer { flex-direction: column; align-items: stretch; gap: 12px; }
  .pcard-btns { flex-direction: column; width: 100%; }
  .pcard-btns .btn-buynow,
  .pcard-btns .btn-add { width: 100%; justify-content: center; }
  .btn-add { width: 100%; justify-content: center; }

  .story-visual { height: 220px; }
  .story-bg-num { font-size: 140px; }
  .story-title { font-size: clamp(28px, 7vw, 42px); }
  .story-text { font-size: 14px; }
  .feature-grid { grid-template-columns: 1fr; gap: 10px; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 28px 20px; }

  .cta-section { margin: 0 12px 40px; padding: 40px 18px; border-radius: 18px; }
  .cta-big { font-size: clamp(28px, 8vw, 48px); }
  .cta-sub { font-size: 14px; margin-bottom: 32px; }

  .section-h2 { font-size: clamp(28px, 7vw, 44px); }

  /* Quick view modal */
  .qv-modal { width: 95%; max-height: 90vh; border-radius: 16px; }
  .qv-name { font-size: 20px; }
  .qv-price { font-size: 24px; }
  .qv-actions { flex-direction: column; }
  .qv-actions .btn-buynow,
  .qv-actions .btn-shop,
  .qv-actions .btn-outline { width: 100%; text-align: center; justify-content: center; }
}

/* -- Extra Small Mobile (≤400px) -- */
@media (max-width: 400px) {
  .hero-left { padding: 28px 12px 36px; }
  .hero-title { font-size: clamp(32px, 10vw, 48px); }
  .hero-slogan { font-size: 11px; }
  .hero-sub { font-size: 13px; }

  .cats-grid { grid-template-columns: 1fr; gap: 10px; }

  .stat { flex: 1 1 100%; }
  .stat-val { font-size: 20px; }

  .story-visual { height: 180px; }
  .story-bg-num { font-size: 100px; }
  .story-float { padding: 12px 14px; }
  .story-float-val { font-size: 28px; }

  .cta-section { margin: 0 8px 32px; padding: 32px 14px; border-radius: 14px; }
}
