/* ═══════════════════════════════════════════════════════════════
   BestPicks USA — Main Stylesheet
   Design: Bold editorial with clean product cards
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Variables ────────────────────────────────────────── */
:root {
  --bg:        #0A0A0F;
  --bg-2:      #111118;
  --bg-3:      #1A1A24;
  --surface:   #1E1E2A;
  --border:    rgba(255,255,255,0.08);
  --text:      #E8E8F0;
  --text-muted:#8888A0;
  --accent:    #FF6B35;
  --accent-2:  #FFD700;
  --white:     #FFFFFF;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);

  --max-w: 1320px;
  --gap:   clamp(1rem, 3vw, 2rem);
}

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

html { scroll-behavior: smooth; }

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

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

/* ── Container ────────────────────────────────────────────────── */
.container {
  width: min(100%, var(--max-w));
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-icon { font-size: 1.4rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.main-nav > a,
.main-nav > .nav-dropdown > span {
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.main-nav > a:hover,
.main-nav > .nav-dropdown:hover > span {
  color: var(--white);
  background: var(--surface);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: all 0.2s;
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all 0.15s;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--surface);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(255,107,53,0.15), transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-cat-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--text-muted);
}

.hero-cat-pill:hover {
  background: color-mix(in srgb, var(--cat-color) 15%, transparent);
  border-color: color-mix(in srgb, var(--cat-color) 40%, transparent);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Section Headers ──────────────────────────────────────────── */
.category-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.section-title-group h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.section-title-group p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.see-all-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: var(--r-sm);
  transition: all 0.2s;
}

.see-all-link:hover {
  background: rgba(255,107,53,0.1);
  border-color: var(--accent);
}

/* ── Products Grid ────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.products-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ── Product Card ─────────────────────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

.rank-badge.rank-1 { background: #FFD700; color: #000; }
.rank-badge.rank-2 { background: #C0C0C0; color: #000; }
.rank-badge.rank-3 { background: #CD7F32; color: #fff; }

.product-image-link {
  display: block;
  background: var(--bg-3);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s;
}

.product-card:hover .product-image-link img {
  transform: scale(1.04);
}

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  min-height: 140px;
}

.product-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.product-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a:hover { color: var(--accent); }

.product-brand {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
}

.stars { color: var(--accent-2); letter-spacing: -1px; }
.rating-value { font-weight: 600; color: var(--text); }
.review-count { color: var(--text-muted); }

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.price-current {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.price-original {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-na {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.prime-badge {
  font-size: 0.72rem;
  background: rgba(0,160,210,0.15);
  border: 1px solid rgba(0,160,210,0.3);
  color: #00A0D2;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
}

.product-features {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.product-features li {
  padding-left: 0.9rem;
  position: relative;
  margin-bottom: 2px;
}

.product-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.btn-amazon {
  display: block;
  margin-top: auto;
  padding-top: 0.75rem;
  text-align: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  transition: all 0.2s;
  margin-top: 0.75rem;
}

.btn-amazon:hover {
  background: #ff8050;
  transform: translateY(-1px);
}

/* ── All Categories Grid ──────────────────────────────────────── */
.all-categories {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.all-categories h2,
.other-cats h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}

.cat-card:hover::before { transform: scaleX(1); }

.cat-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cat-color) 30%, transparent);
  background: color-mix(in srgb, var(--cat-color) 6%, var(--surface));
}

.cat-icon { font-size: 1.75rem; }
.cat-name { font-weight: 600; font-size: 0.9rem; color: var(--white); }
.cat-count { font-size: 0.76rem; color: var(--text-muted); }

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.breadcrumb .container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  opacity: 0.4;
}

.breadcrumb a:hover { color: var(--white); }

/* ── Category Hero ────────────────────────────────────────────── */
.cat-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--cat-color) 8%, var(--bg)), var(--bg));
}

.cat-hero-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
}

.cat-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.cat-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 0.5rem;
}

.update-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.products-section {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.other-cats {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
}

.cats-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.cat-card--sm { padding: 0.9rem; }
.cat-card--sm .cat-icon { font-size: 1.4rem; }
.cat-card--sm .cat-name { font-size: 0.82rem; }

/* ── Static Pages ─────────────────────────────────────────────── */
.static-page {
  padding: clamp(3rem, 6vw, 5rem) 0;
  min-height: 60vh;
}

.static-page h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.prose {
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.8;
}

.prose h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 2rem 0 0.75rem;
}

.prose p { margin-bottom: 1rem; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(255,107,53,0.4);
}

.prose a:hover { text-decoration-color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2rem;
}

.footer-brand .logo-icon { font-size: 1.5rem; display: block; margin-bottom: 0.4rem; }
.footer-brand strong { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

.footer-links h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links li, .footer-info p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-links a, .footer-info a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-links a:hover, .footer-info a:hover { color: var(--white); }

.footer-info h4 {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.disclosure {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dropdown-menu { display: none !important; }
}

@media (max-width: 700px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 64px 0 0;
    background: var(--bg);
    padding: 1.5rem;
    overflow-y: auto;
    gap: 0.25rem;
    z-index: 99;
  }

  .nav-dropdown > span { display: none; }
  .dropdown-menu {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    opacity: 1 !important;
    pointer-events: all !important;
    transform: none !important;
    background: var(--surface);
    border-radius: var(--r-sm);
    min-width: auto;
  }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid--full { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-grid--full { grid-template-columns: 1fr; }
}

/* ── Animations ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: fadeUp 0.4s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.10s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.20s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
