:root {
  --bg: #0b0d10;
  --bg-elevated: #14171c;
  --bg-card: #191d24;
  --border: #262b33;
  --text: #e8eaed;
  --text-muted: #9aa1ab;
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --star: #ffb100;
  --success: #2ecc71;
  --danger: #ff5252;
  --radius: 10px;
  --font-heading: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

h1, h2, h3, .brand-mark {
  font-family: var(--font-heading);
}

.section {
  scroll-margin-top: 80px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
}

.brand-mark-accent { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav { display: flex; gap: 24px; }

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
  transition: color 0.15s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}

.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { right: 0; }

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cart-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: #12100e;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count.pulse {
  animation: cartPulse 0.4s var(--ease);
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.02rem;
  margin: 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* Tabs */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover { color: var(--text); border-color: #3a4048; transform: translateY(-1px); }

.tab-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.tab-btn:active { transform: translateY(0) scale(0.97); }

.category-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 8px 0 24px;
}

/* Filtres */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filters-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.filters-bar select {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.filter-checkbox {
  flex-direction: row-reverse;
  gap: 6px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* Brand grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.brand-card, .centre-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  animation: cardIn 0.45s var(--ease) both;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #3a4048;
}

.brand-grid .brand-card:nth-child(2) { animation-delay: 0.06s; }
.brand-grid .brand-card:nth-child(3) { animation-delay: 0.12s; }
.brand-grid .brand-card:nth-child(n+4) { animation-delay: 0.16s; }

.brand-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.brand-card-header h3, .centre-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.badge {
  background: var(--accent);
  color: #12100e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.brand-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stars { color: var(--star); letter-spacing: 1px; }
.stars.small { font-size: 0.85rem; }
.rating-value { font-weight: 700; }
.review-count { color: var(--text-muted); font-size: 0.85rem; }

.preference {
  font-size: 0.92rem;
  color: var(--text);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 6px;
  margin: 0 0 16px;
}

.reviews {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 0.88rem;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.review-date { color: var(--text-muted); font-size: 0.8rem; margin-left: auto; }

.review p { margin: 0; color: var(--text-muted); }

/* Préparateurs */
.city-select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 24px;
}

.city-select-wrap label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

#citySelect {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.92rem;
  min-width: 180px;
}

.centre-card { max-width: 640px; }

.centre-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  padding: 24px 0 40px;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

/* ---------- Produits & boutons ---------- */

.btn-primary {
  background: var(--accent);
  color: #12100e;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), opacity 0.15s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); }

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.product-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 160px;
}

.product-name {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
}

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

.product-buy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.product-price {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-add-cart {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-add-cart:hover { background: var(--accent); color: #12100e; }
.btn-add-cart:active { transform: scale(0.95); }

.out-of-stock {
  font-size: 0.76rem;
  color: var(--danger);
  font-weight: 700;
  white-space: nowrap;
}

.delivery-badge {
  font-size: 0.72rem;
  font-weight: 600;
}

.delivery-fast { color: var(--success); }
.delivery-slow { color: var(--star); }

.compat-badge {
  font-size: 0.72rem;
  font-weight: 700;
}

.compat-universel { color: var(--text-muted); }
.compat-compatible { color: var(--success); }
.compat-incompatible { color: var(--danger); }
.compat-a-verifier { color: var(--star); }

.product-detail-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
}

/* ---------- Mon garage ---------- */

.garage-wrap { position: relative; }

.cart-toggle.has-active { border-color: var(--success); color: var(--success); }

.garage-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-md);
  z-index: 45;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.garage-panel.visible { opacity: 1; transform: translateY(0); }

.garage-panel h3 { margin: 0 0 4px; font-size: 1rem; }

.garage-intro {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0 0 14px;
}

.garage-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.garage-form select {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.veh-code-moteur {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  min-height: 1.1em;
}

.garage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.garage-empty {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
}

.garage-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}

.garage-chip.active { border-color: var(--success); }

.garage-chip-select {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  font-size: 0.8rem;
  cursor: pointer;
}

.garage-chip.active .garage-chip-select { color: var(--success); font-weight: 700; }

.garage-chip-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
}

.garage-chip-remove:hover { color: var(--danger); }

/* ---------- Recherche ---------- */

.search-wrap {
  position: relative;
  width: 220px;
}

.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: border-color 0.15s ease;
}

.search-input:focus { outline: none; border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 45;
  padding: 6px;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}

.search-result-item:hover { background: var(--bg-elevated); }

.search-result-name { font-size: 0.86rem; font-weight: 600; }
.search-result-meta { font-size: 0.76rem; color: var(--text-muted); }

.search-no-results {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
  margin: 0;
}

.brand-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Compte & historique ---------- */

.account-panel { max-width: 480px; text-align: left; }

.account-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.account-login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.account-login-form input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-body);
}

#accountLoggedIn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

#accountLoggedIn h3 { margin: 0; }

.order-history-title { font-size: 1rem; margin: 0 0 12px; }

.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 280px;
  overflow-y: auto;
}

.order-history-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.order-history-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.order-history-date { color: var(--text-muted); margin-left: auto; }
.order-history-total { font-weight: 700; }

.privacy-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.privacy-note {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0 0 12px;
}

/* ---------- Panier ---------- */

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.cart-overlay.visible { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}

.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h2 { margin: 0; font-size: 1.15rem; }

.icon-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.icon-close:hover { color: var(--text); transform: rotate(90deg); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  margin-top: 40px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  animation: cardIn 0.3s var(--ease) both;
}

.cart-line-readonly {
  grid-template-columns: 1fr auto;
}

.cart-line-info { display: flex; flex-direction: column; min-width: 0; }
.cart-line-name { font-size: 0.88rem; font-weight: 600; }
.cart-line-format { font-size: 0.76rem; color: var(--text-muted); }

.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.qty-btn:hover { border-color: var(--accent); color: var(--accent); }

.qty-value { min-width: 16px; text-align: center; font-size: 0.86rem; }

.cart-line-total { font-weight: 700; font-size: 0.88rem; white-space: nowrap; }

.cart-line-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.cart-line-remove:hover { color: var(--danger); }

.cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.order-total-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ---------- Checkout ---------- */

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.checkout-modal.visible { opacity: 1; }

.checkout-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  animation: cardIn 0.3s var(--ease) both;
}

.checkout-steps {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.checkout-steps .step.active { color: var(--accent); }

.checkout-step { display: flex; flex-direction: column; gap: 14px; }

.checkout-step label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.checkout-step input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: var(--font-body);
}

.checkout-step input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.demo-warning {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  margin: 0;
}

#checkoutStepConfirmation h3 { margin: 0 0 8px; color: var(--success); }

/* ---------- Fiche produit ---------- */

.product-card { cursor: pointer; }

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.product-modal.visible { opacity: 1; }

.product-modal-panel {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  animation: cardIn 0.3s var(--ease) both;
}

.product-detail-brand {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.product-modal-panel h3 { margin: 0 0 4px; }

.product-detail-description {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 12px 0;
}

.product-detail-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.product-detail-price {
  font-size: 1.3rem;
  font-weight: 800;
}

.product-detail-buy .btn-primary { width: auto; }

/* ---------- Toasts ---------- */

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.toast.visible { opacity: 1; transform: translateY(0); }

/* ---------- Keyframes ---------- */

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

@keyframes cartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .cart-drawer { width: 100vw; }
}
