/* ═══════════════════════════════════════════════════════════════════════════
   The Bag Edit — Stylesheet
   Luxury minimalism: warm cream, near-black, gold accent.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:         #FAF8F5;
  --bg-card:    #FFFFFF;
  --bg-dark:    #0D0D0D;
  --text:       #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: #F5F0EB;
  --gold:       #B8965A;
  --gold-light: #D4B87C;
  --green:      #2E7D32;
  --red:        #C62828;
  --border:     #E8E4DF;
  --shadow:     0 2px 20px rgba(0,0,0,0.06);
  --radius:     2px;
  --max-w:      1200px;
  --transition: 0.25s ease;
}

/* ── Reset & base ───────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.4em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }

/* ── Navigation ─────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 72px;
  width: auto;
}

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

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(184,150,90,0.08) 0%, transparent 70%);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  position: relative;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(245, 240, 235, 0.7);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  position: relative;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* ── Deal cards ─────────────────────────────────────────────────────────── */

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.deal-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F2F0ED;
}

.deal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.2rem;
  transition: transform 0.4s ease;
}

.deal-card__image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  background: var(--bg);
}
.deal-card__image--empty::after {
  content: attr(data-brand);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.5;
}

.deal-card:hover .deal-card__image img {
  transform: scale(1.04);
}

.deal-card__badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 1px;
}

.deal-card__badge--soldout {
  background: var(--red);
}

.deal-card__body {
  padding: 1.2rem 1.4rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-card__brand {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.deal-card__model {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  min-height: 2.4em;
}

.deal-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.deal-card__prices {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.deal-card__price-now {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.deal-card__price-was {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.deal-card__saving {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
}

.deal-card__cta {
  display: block;
  text-align: center;
  padding: 0.7rem;
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background var(--transition);
}

.deal-card__cta:hover {
  background: #2A2A2A;
}

/* ── Filters ────────────────────────────────────────────────────────────── */

.filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  background: transparent;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--text);
  color: var(--text);
}

/* ── About / info section ───────────────────────────────────────────────── */

.about {
  background: var(--bg-dark);
  color: var(--text-light);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--gold-light);
}

.about-item p {
  color: rgba(245, 240, 235, 0.65);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ── Stats bar ──────────────────────────────────────────────────────────── */

.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--gold);
}

.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── New arrivals ───────────────────────────────────────────────────────── */

.arrivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.arrival-card {
  text-align: center;
}

.arrival-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F2F0ED;
  border: 1px solid var(--border);
  margin-bottom: 0.8rem;
}

.arrival-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrival-card__brand {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.arrival-card__model {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  margin: 0.2rem 0;
}

.arrival-card__price {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-dark);
  color: rgba(245, 240, 235, 0.5);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.8rem;
}

.footer a {
  color: var(--gold-light);
  transition: color var(--transition);
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .hero { padding: 3.5rem 1.5rem 3rem; }

  .stats-grid { gap: 2rem; }

  .deals-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 480px) {
  .deals-grid { grid-template-columns: 1fr; }
  .arrivals-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Empty state ────────────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.empty-state h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ── Page header (for sub-pages) ────────────────────────────────────────── */

.page-header {
  background: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 400;
}

.page-header p {
  color: rgba(245, 240, 235, 0.6);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* ── Telegram CTA ───────────────────────────────────────────────────────── */

.telegram-cta {
  background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 100%);
  color: var(--text-light);
  text-align: center;
  padding: 4rem 1.5rem;
}

.telegram-cta h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.telegram-cta p {
  color: rgba(245, 240, 235, 0.6);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.telegram-cta .hero-cta {
  display: inline-block;
}

/* ── Sort dropdown ──────────────────────────────────────────────────────── */

.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

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

.sort-bar select {
  appearance: none;
  padding: 0.5rem 2rem 0.5rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B6B6B'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text);
  cursor: pointer;
}
