:root {
  --black: #0d0c0a;
  --black-soft: #161412;
  --brown: #3b2620;
  --brown-light: #6b4a3a;
  --gold: #c9a24a;
  --gold-light: #e6c878;
  --green: #16251c;
  --green-light: #24382b;
  --text: #f2ece2;
  --text-muted: #b8ada0;
  --font-title: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 8%, rgba(36, 56, 43, 0.4), transparent 42%),
    radial-gradient(circle at 88% 28%, rgba(59, 38, 32, 0.38), transparent 48%),
    radial-gradient(circle at 25% 85%, rgba(22, 37, 28, 0.35), transparent 50%),
    radial-gradient(circle at 80% 95%, rgba(107, 74, 58, 0.22), transparent 45%),
    var(--black);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
}
.btn--gold:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  border-color: var(--text-muted);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, var(--green-light), var(--black) 70%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate__box {
  max-width: 460px;
  text-align: center;
  background: rgba(13, 12, 10, 0.6);
  border: 1px solid rgba(201, 162, 74, 0.3);
  border-radius: 8px;
  padding: 48px 36px;
  backdrop-filter: blur(6px);
}
.age-gate__box h2 {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 2rem;
  margin-bottom: 16px;
}
.age-gate__box p { color: var(--text-muted); margin-bottom: 12px; }
.age-gate__question { color: var(--text) !important; font-weight: 500; margin-top: 20px !important; }
.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 20px;
}
.age-gate__disclaimer {
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}
.age-gate.hidden { display: none; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 12, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.15);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section headers */
.section-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  text-align: center;
  color: var(--gold-light);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 48px;
  font-size: 0.95rem;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: -24px 0 44px;
}
.filter-bar span {
  color: var(--gold-light);
  font-weight: 500;
  font-size: 1.05rem;
}
.filter-bar button {
  background: none;
  border: 1px solid var(--brown-light);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.filter-bar button:hover { border-color: var(--green-light); color: var(--gold-light); }

/* Category nav (boutons catégories sur la page produits) */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}
.category-nav__btn {
  background: none;
  border: 1px solid rgba(107, 74, 58, 0.4);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.category-nav__btn:hover { border-color: var(--green-light); color: var(--gold-light); }
.category-nav__btn.active {
  background: rgba(201, 162, 74, 0.12);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Products */
.products { padding: 100px 0; }
.category-group { margin-bottom: 56px; }
.category-group:last-child { margin-bottom: 0; }
.category-group__title {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(107, 74, 58, 0.4);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product-card {
  background: linear-gradient(160deg, #1b1712 0%, #141310 65%, #131611 100%);
  border: 1px solid rgba(107, 74, 58, 0.28);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 56, 43, 0.7);
}
.product-card__img {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, #23201b, #14120f);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__img img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  object-position: center;
  opacity: 0;
}
.product-card__img img.loaded { opacity: 1; }
.product-card__img img.loaded + .img-placeholder-text { display: none; }
.img-placeholder-text {
  color: rgba(201, 162, 74, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card__name { font-size: 1rem; font-weight: 500; color: var(--text); }
.product-card__desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Variant selector */
.variant-selector { margin: 2px 0; }
.variant-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.variant-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(107, 74, 58, 0.35);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.variant-swatch:hover { transform: scale(1.1); }
.variant-swatch.active {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(201, 162, 74, 0.25);
}
.variant-select {
  width: 100%;
  background: var(--black);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid rgba(36, 56, 43, 0.5);
  border-radius: 4px;
  padding: 9px 10px;
  cursor: pointer;
}
.variant-select:focus { outline: none; border-color: var(--gold); }

.product-card__price { color: var(--gold-light); font-weight: 600; font-size: 1.05rem; }
.product-card__btn {
  margin-top: auto;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.product-card__btn:hover {
  background: var(--gold);
  color: var(--black);
}
.product-card__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.product-card__btn:disabled:hover {
  background: transparent;
  color: var(--gold-light);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #141310 0%, #171712 45%, #14211a 100%);
  border-top: 1px solid rgba(36, 56, 43, 0.45);
}
.footer__legal {
  padding: 28px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer__legal p { margin-bottom: 6px; }
.footer__copy { margin-top: 14px; opacity: 0.6; }

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1100;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 400px;
  max-width: 92vw;
  background: linear-gradient(165deg, #171410 0%, #141310 55%, #131a15 100%);
  border-left: 1px solid rgba(36, 56, 43, 0.45);
  box-shadow: -20px 0 40px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1101;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cart-drawer__header h3 {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.3rem;
}
.cart-drawer__close {
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cart-drawer__close:hover { color: var(--gold-light); background: rgba(255,255,255,0.06); }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}
.cart-empty {
  color: var(--text-muted);
  text-align: center;
  margin-top: 48px;
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cart-item__img {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #23201b, #14120f);
}
.cart-item__img img {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: contain;
  opacity: 0;
}
.cart-item__img img.loaded { opacity: 1; }

.cart-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cart-item__name { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.cart-item__variant { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }
.cart-item__price { font-size: 0.82rem; color: var(--text-muted); }
.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 10px;
}
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-item__qty button {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.cart-item__qty button:hover { border-color: var(--gold); color: var(--gold-light); }
.cart-item__qty span { min-width: 18px; text-align: center; font-size: 0.88rem; }
.cart-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.cart-item__remove:hover { color: #d97a6b; }

.cart-drawer__footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cart-drawer__min-warning {
  background: rgba(178, 58, 46, 0.15);
  border: 1px solid rgba(178, 58, 46, 0.4);
  color: #e8998c;
  font-size: 0.82rem;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.cart-drawer__section { margin-bottom: 18px; }
.cart-drawer__section-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.shipping-options { display: flex; flex-direction: column; gap: 8px; }
.shipping-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  border: 1px solid rgba(36, 56, 43, 0.5);
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}
.shipping-option input { accent-color: var(--gold); }
.shipping-option span:nth-child(2) { flex: 1; color: var(--text); }
.shipping-option__price { color: var(--gold-light); font-weight: 500; }

.promo-row { display: flex; gap: 8px; }
.promo-row input {
  flex: 1;
  background: var(--black);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid rgba(36, 56, 43, 0.5);
  border-radius: 4px;
  padding: 10px 12px;
}
.promo-row input:focus { outline: none; border-color: var(--gold); }
.promo-row button {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 4px;
  padding: 0 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.promo-row button:hover { background: var(--gold); color: var(--black); }
.promo-message { font-size: 0.78rem; margin-top: 8px; color: #8fd9a8; }
.promo-message.error { color: #e8998c; }

.cart-drawer__breakdown { margin-bottom: 12px; }
.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.breakdown-row--discount { color: #8fd9a8; }

.cart-drawer__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.cart-drawer__email { margin-bottom: 16px; }
.cart-drawer__email label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.cart-drawer__email input {
  width: 100%;
  background: var(--black);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid rgba(36, 56, 43, 0.5);
  border-radius: 4px;
  padding: 10px 12px;
}
.cart-drawer__email input:focus { outline: none; border-color: var(--gold); }
.cart-drawer__email input.invalid { border-color: #b23a2e; }
.cart-drawer__email-error {
  color: #d97a6b;
  font-size: 0.78rem;
  margin-top: 6px;
}

.cart-drawer__invoice { width: 100%; }
.cart-drawer__invoice:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-drawer__invoice:disabled:hover { filter: none; transform: none; }
/* Responsive */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; max-width: 100vw; }
}
