/* ASV Store Factory — Storefront Theme
   High-converting, Google Shopping compliant design */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #1e40af;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --danger: #dc2626;
  --success: #16a34a;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 10px;
  --radius-lg: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── ANNOUNCEMENT BAR ── */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.announcement-bar span { margin: 0 8px; opacity: 0.7; }

/* ── NAVIGATION ── */
.site-nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}
.nav-link:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-nav:hover { background: var(--primary-dark); text-decoration: none; }

/* ── HERO SECTION ── */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f0f7ff 100%);
  padding: 64px 20px 56px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-title .highlight {
  color: var(--primary);
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-features {
  list-style: none;
  margin-bottom: 28px;
}
.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.hero-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.hero-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.price-original {
  font-size: 20px;
  color: var(--text-light);
  text-decoration: line-through;
}
.price-sale {
  font-size: 36px;
  font-weight: 900;
  color: var(--danger);
}
.price-save {
  background: #fee2e2;
  color: var(--danger);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}
.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
  text-decoration: none;
  color: white;
}
.btn-secondary {
  background: white;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--primary-light);
  text-decoration: none;
  color: var(--primary);
}
.hero-urgency {
  font-size: 13px;
  color: var(--danger);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-image-wrapper {
  position: relative;
}
.hero-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.rating-text { font-size: 14px; color: var(--text-muted); }
.rating-count { font-weight: 600; color: var(--text); }

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--bg-dark);
  color: white;
  padding: 16px 20px;
}
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.trust-icon { font-size: 18px; }

/* ── SECTIONS SHARED ── */
.section {
  padding: 64px 20px;
}
.section-alt { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}
.feature-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── REVIEWS / SOCIAL PROOF ── */
.rating-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}
.rating-big {
  font-size: 64px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
}
.rating-stars-big { font-size: 28px; color: #f59e0b; margin: 8px 0; }
.rating-info { font-size: 14px; color: var(--text-muted); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.review-stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }
.review-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}
.review-text::before { content: '"'; font-size: 40px; color: var(--primary-light); line-height: 0; vertical-align: -12px; margin-right: 4px; }
.review-author { font-size: 14px; font-weight: 700; color: var(--text); }
.review-role { font-size: 13px; color: var(--text-muted); }
.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-top: 8px;
}

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-alt); }
.faq-toggle { font-size: 20px; color: var(--primary); font-weight: 300; transition: transform 0.2s; }
.faq-answer {
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 20px 16px; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
  padding: 72px 20px;
}
.cta-title { font-size: clamp(24px, 3.5vw, 42px); font-weight: 900; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-subtitle { font-size: 17px; opacity: 0.85; margin-bottom: 8px; }
.cta-offer { font-size: 22px; font-weight: 800; color: var(--accent); margin-bottom: 32px; }
.btn-cta {
  background: white;
  color: var(--primary);
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-block;
  text-decoration: none;
}
.btn-cta:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,0.25); text-decoration: none; color: var(--primary-dark); }
.cta-trust {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-trust-item { font-size: 13px; opacity: 0.75; display: flex; align-items: center; gap: 6px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 56px 20px 32px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}
.footer-brand-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-payment-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-badge {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.footer-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: white; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: #94a3b8; transition: color 0.15s; }
.footer-links a:hover { color: white; text-decoration: none; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-contact-icon { flex-shrink: 0; margin-top: 2px; }
.footer-divider {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright { font-size: 13px; }
.footer-policy-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-policy-links a { font-size: 13px; color: #94a3b8; }
.footer-policy-links a:hover { color: white; }

/* ── PRODUCT PAGE ── */
.product-page { padding: 48px 20px; }
.product-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.product-images { position: sticky; top: 80px; }
.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.product-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s;
}
.product-thumb.active { border-color: var(--primary); }
.product-info { }
.product-brand { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.product-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.02em; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.product-price-block { margin-bottom: 24px; }
.product-price-sale { font-size: 34px; font-weight: 900; color: var(--danger); }
.product-price-original { font-size: 18px; color: var(--text-light); text-decoration: line-through; margin-left: 8px; }
.product-price-save { display: inline-block; background: #fee2e2; color: var(--danger); padding: 3px 10px; border-radius: 100px; font-size: 13px; font-weight: 700; margin-top: 4px; }
.product-trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.trust-badge-icon { font-size: 16px; }
.product-add-to-cart {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 12px;
}
.product-add-to-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.product-description { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-top: 24px; }
.product-specs { margin-top: 32px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 8px; font-size: 14px; }
.spec-table td:first-child { color: var(--text-muted); width: 40%; font-weight: 500; }
.spec-table td:last-child { font-weight: 600; }

/* ── LOADING / SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 40px 20px; }
  .hero-image-wrapper { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { gap: 16px; }
  .product-inner { grid-template-columns: 1fr; }
  .product-images { position: static; }
  .nav-links .nav-link:not(.btn-nav) { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
}

/* ── POLICY PAGES ── */
.policy-page { max-width: 800px; margin: 0 auto; padding: 48px 20px; }
.policy-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.policy-updated { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.policy-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.policy-content h2 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.policy-content h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.policy-content p { margin-bottom: 14px; }
.policy-content ul { margin: 0 0 14px 20px; }
.policy-content ul li { margin-bottom: 6px; }
