/* SOTO Cycles — Global Stylesheet
   All base styles referenced by base.html
   Design: Luxury editorial cycling, European heritage
   ──────────────────────────────────────────────────── */

:root {
  --black:      #0A0A0F;
  --dark:       #111827;
  --mid:        #1F2937;
  --card:       #1A1F2E;
  --border:     #2A3040;
  --cream:      #F5F0E8;
  --muted:      #6B7280;
  --red:        #C0392B;
  --red-light:  #E74C3C;
  --green:      #059669;
  --font-display:   'Oswald', sans-serif;
  --font-editorial: 'Lora', serif;
  --font-ui:        'Inter', sans-serif;
  --transition: all .2s ease;
  --shadow:     0 4px 24px rgba(0,0,0,.4);
  --radius:     8px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cream); }

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

/* ── Utility ─────────────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.section-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; color: var(--cream); line-height: 1.1;
}
.section-sub {
  font-family: var(--font-editorial); font-size: 16px;
  color: rgba(245,240,232,.55); margin-top: 12px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: .3px;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-red    { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(192,57,43,.3); }
.btn-outline {
  background: transparent; color: var(--cream);
  border: 1.5px solid rgba(245,240,232,.25);
}
.btn-outline:hover { border-color: var(--cream); background: rgba(255,255,255,.05); }
.btn-dark   { background: var(--mid); color: var(--cream); border: 1px solid var(--border); }
.btn-dark:hover { background: var(--card); }
.btn-sm     { padding: 8px 16px; font-size: 12px; }
.btn-lg     { padding: 16px 40px; font-size: 16px; }

/* ── Breadcrumb ──────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
}
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb span { color: var(--muted); }

/* ── Product Cards ───────────────────────────────────── */
.product-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); cursor: pointer;
}
.product-card:hover {
  border-color: rgba(192,57,43,.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pc-img {
  aspect-ratio: 1; background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pc-img .no-img { font-size: 48px; color: var(--border); }
.pc-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.pc-brand {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.pc-name {
  font-size: 14px; font-weight: 600; color: var(--cream);
  line-height: 1.35; margin-bottom: 4px; flex: 1;
}
.pc-sku { font-family: monospace; font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.pc-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
}
.pc-price { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--cream); }
.pc-add {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff; border: none;
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.pc-add:hover { background: var(--red-light); transform: scale(1.1); }

/* ── Pagination ──────────────────────────────────────── */
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  transition: var(--transition);
}
.page-btn:hover, .page-btn.current {
  background: var(--red); color: #fff; border-color: var(--red);
}

/* ── Forms ───────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--mid); border: 1px solid var(--border);
  border-radius: 6px; color: var(--cream); font-size: 14px; font-family: var(--font-ui);
  outline: none; transition: var(--transition);
}
.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,57,43,.15); }
.form-input::placeholder { color: var(--muted); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 100px; }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
}
.badge-green  { background: rgba(5,150,105,.15); color: #34D399; }
.badge-red    { background: rgba(192,57,43,.15); color: #F87171; }
.badge-yellow { background: rgba(217,119,6,.15);  color: #FCD34D; }
.badge-blue   { background: rgba(37,99,235,.15);  color: #93C5FD; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .btn { padding: 10px 20px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}
