/* =====================================================
   NOVACARTEL — base.css
   Sections:
   1. Reset & variables
   2. Global elements & utilities
   3. Typography & buttons
   4. Layout (navbar, hero, sections, footer)
   5. Responsive breakpoints
   ===================================================== */

/* ===== RESET & CSS VARIABLES ===== */
:root {
  --bg: #080808;
  --surface: #111;
  --surface2: #181818;
  --surface3: #222;
  --border: #2a2a2a;
  --gold: #C9A84C;
  --gold-light: #e8c97a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --error: #e74c3c;
  --success: #27ae60;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: default;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

input, select {
  font-family: inherit;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.cart-count-label {
  color: var(--gold);
  font-size: 1rem;
}

.brand-filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cfg-color-name {
  color: var(--gold);
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

/* Focus for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== BUTTONS (shared) ===== */
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface3);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: background var(--transition), border-bottom var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.footer-logo { margin-bottom: 1rem; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links > li { position: relative; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
  transition: color var(--transition), opacity var(--transition);
  padding: 0.5rem 0;
}

.nav-links a:hover { color: var(--gold); opacity: 1; }

.nav-toggle { display: none; }

/* Mega Menu */
.has-mega { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: none;
  gap: 2rem;
  min-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.has-mega:hover .mega-menu { display: flex; }

.mega-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.mega-col a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mega-col a:hover { color: var(--text); }

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.currency-switcher {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem;
}

.cur-btn {
  padding: 0.3rem 0.6rem;
  background: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
}

.cur-btn.active { background: var(--gold); color: var(--bg); }

.icon-btn {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  position: relative;
}

.icon-btn:hover { background: var(--surface2); }

.badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--gold);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-auth {
  background: var(--gold);
  color: var(--bg);
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-auth:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
  transform: scale(1.02);
  animation: heroZoom 8s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,8,0.75) 0%, rgba(8,8,8,0.3) 50%, rgba(8,8,8,0.1) 100%),
    linear-gradient(to top, rgba(8,8,8,0.9) 0%, transparent 60%);
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 5rem 5rem;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroIn 0.8s ease 0.3s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  opacity: 0;
  animation: heroIn 0.8s ease 0.5s forwards;
}

.hero-specs-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: heroIn 0.8s ease 0.7s forwards;
}

.hero-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroIn 0.8s ease 0.9s forwards;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: heroIn 0.8s ease 1.1s forwards;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  transition: all 0.3s;
  cursor: pointer;
}

.hero-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 3px;
}

/* ===== BRANDS SCROLLING STRIP ===== */
.brands-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.brands-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  animation: brandScroll 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.brands-track:hover { animation-play-state: paused; }

.brand-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: pointer;
  padding: 0 1rem;
}

.brand-label:hover { color: var(--gold); }

@keyframes brandScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== FILTER BAR ===== */
.filter-section {
  position: sticky;
  top: 70px;
  z-index: 500;
  background: rgba(8, 8, 8, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--gold); color: var(--gold); }

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.filter-divider {
  width: 1px; height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.sort-select {
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.results-count {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ===== SECTION HEADER & FOOTER ===== */
.section-header { text-align: center; padding: 3rem 0 0; }

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
}

footer {
  border-top: 1px solid var(--border);
  padding: 5rem 5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-locations { display: flex; gap: 1.5rem; }

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .navbar { padding: 0 1.5rem; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.closed { display: none; }
  .nav-toggle { display: flex; }

  .filter-section,
  .products-section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-content { padding: 0 2rem 4rem; }

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

@media (max-width: 600px) {
  .hero-title { font-size: 2.8rem; }
  .hero-btns { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .currency-switcher { display: none; }
}

@media (max-width: 480px) {
  .hero-content { padding: 0 1.25rem 3rem; }
  .filter-section { position: static; padding-inline: 1.25rem; }
  .footer-locations { flex-direction: column; gap: 0.5rem; }
}

.info-section {
  padding: 3rem 5rem;
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.info-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.info-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.info-section {
  display: none;              /* hidden by default */
  padding: 3rem 5rem;
  border-top: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.info-section.active {
  display: block;             /* only the active one is shown */
}