/* ============================================================
   Manu Militari — Design System CSS
   ============================================================ */

/* ── 1. Variables ────────────────────────────────────────── */
:root {
  --color-bg:           #000000;
  --color-surface:      #09090b;
  --color-surface-alt:  #18181b;
  --color-border:       #27272a;
  --color-border-light: #3f3f46;
  --color-accent:       #dc2626;
  --color-accent-hover: #b91c1c;
  --color-text:         #ffffff;
  --color-text-muted:   #a1a1aa;
  --color-text-subtle:  #71717a;

  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;

  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;

  --container:  1280px;
  --nav-height: 80px;

  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

/* ── 2. Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

ul, ol { list-style: none; }

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

/* ── 3. Typography ───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: 0.12em; }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: 1.5rem; }

p { color: var(--color-text-muted); }

.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }

/* ── 4. Layout ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section-pad { padding-block: 5rem; }
@media (min-width: 768px) { .section-pad { padding-block: 8rem; } }

/* ── 5. Navigation ───────────────────────────────────────── */
#site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header > .container {
  height: 100%;
}

#site-header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  transition: color var(--transition);
}
.site-logo:hover { color: var(--color-accent); }

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-menu a:hover { color: var(--color-accent); }

.nav-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}
.nav-cart-btn:hover { color: var(--color-accent); }

.nav-cart-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count:empty,
.cart-count[data-count="0"] { display: none; }

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
@media (min-width: 768px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(0,0,0,0.97);
  padding: 1.5rem;
}
#mobile-menu.open { display: flex; }

#mobile-menu a {
  padding: 0.75rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
}
#mobile-menu a:hover { color: var(--color-accent); }
#mobile-menu a:last-child { border-bottom: none; }

.nav-mobile-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) { .nav-mobile-controls { display: none; } }

/* ── 6. Boutons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border-light);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: none;
  padding: 0.5rem 0;
}
.btn-ghost:hover { color: var(--color-accent); }

/* ── 7. Section titles ───────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-title span { color: var(--color-accent); }

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: 4rem;
}

/* ── 8. Hero ─────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.65) 0%, rgba(0,0,0,.45) 50%, #000 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-inline: 1rem;
}

.hero-artist-name {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.2em;
  line-height: 1;
}

.hero-paint-drop {
  position: absolute;
  bottom: -8px;
  right: 2.5rem;
  width: 4px;
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(220,38,38,.5);
  border-radius: 0 0 2px 2px;
  animation: drop 1s ease forwards 1.2s;
  height: 0;
}
@keyframes drop {
  to { height: 20px; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.4em;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--color-text-muted);
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.hero-cta { margin-top: 3rem; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
  cursor: pointer;
  opacity: 0.7;
}
.hero-scroll svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 1.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ── 9. Shop Section ─────────────────────────────────────── */
#shop { background: var(--color-bg); }

/* Featured Book */
.book-feature {
  display: grid;
  gap: 0;
  max-width: 56rem;
  margin-inline: auto;
  margin-bottom: 6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color var(--transition-slow);
}
.book-feature:hover { border-color: var(--color-accent); }

@media (min-width: 768px) { .book-feature { grid-template-columns: 1fr 1fr; } }

.book-cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--color-surface-alt);
}
@media (min-width: 768px) { .book-cover { aspect-ratio: auto; } }

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.book-feature:hover .book-cover img { transform: scale(1.05); }

.book-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .book-info { padding: 3rem; } }

.book-category {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.book-title { font-size: 2rem; margin-bottom: 1.5rem; color: var(--color-text); }

.book-excerpt {
  font-style: italic;
  color: var(--color-text-subtle);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.book-description { color: var(--color-text-muted); line-height: 1.7; margin-bottom: 1rem; }

.book-buy {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: auto;
  padding-top: 2rem;
}

.book-price { font-size: 2rem; font-weight: 700; color: var(--color-text); }

/* Product grid */
.products-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 6rem;
}
.products-grid--albums  { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.products-grid--merch   { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

@media (min-width: 640px)  {
  .products-grid--albums { grid-template-columns: repeat(2, 1fr); }
  .products-grid--merch  { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .products-grid--albums { grid-template-columns: repeat(5, 1fr); }
  .products-grid--merch  { grid-template-columns: repeat(4, 1fr); }
}

/* Product Card */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-slow), transform var(--transition-slow), box-shadow var(--transition-slow);
}
.product-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(220,38,38,.15);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card__image img { transform: scale(1.07); }

.product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
}

.product-card__year {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  line-height: 1.4;
}

.product-card__footer {
  padding: 1rem;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.product-card__add {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: #fff;
  border: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.product-card__add:hover { background: var(--color-accent-hover); }

/* ── 10. Shows Section ───────────────────────────────────── */
#spectacles {
  background: linear-gradient(to bottom, #000, var(--color-surface) 50%, #000);
}

.shows-list {
  max-width: 56rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.show-item {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.show-item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(220,38,38,.2);
}

@media (min-width: 768px) {
  .show-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.show-item__info { display: flex; flex-direction: column; gap: 0.75rem; }

.show-item__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.show-item__date svg { width: 18px; height: 18px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; flex-shrink: 0; }

.show-item__venue {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition);
}
.show-item:hover .show-item__venue { color: var(--color-accent); }

.show-item__location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
}
.show-item__location svg { width: 16px; height: 16px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; flex-shrink: 0; }

.show-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 768px) { .show-item__actions { align-items: flex-end; } }

.show-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}
.show-badge--on-sale  { color: #22c55e; border-color: #22c55e; }
.show-badge--sold-out { color: var(--color-accent); border-color: var(--color-accent); }
.show-badge--upcoming { color: #eab308; border-color: #eab308; }

.show-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition);
}
.show-ticket-btn:hover { background: var(--color-accent-hover); }
.show-ticket-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.shows-cta { text-align: center; margin-top: 3rem; }
.shows-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  transition: color var(--transition);
}
.shows-cta a:hover { color: var(--color-accent); }
.shows-cta a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; transition: transform var(--transition); }
.shows-cta a:hover svg { transform: translateX(4px); }

/* ── 11. About Section ───────────────────────────────────── */
#about { background: var(--color-bg); }

.about-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 6rem; } }

.about-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, transparent 60%, rgba(220,38,38,.15));
  pointer-events: none;
}

.about-content { display: flex; flex-direction: column; gap: 1.5rem; }

.about-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.about-content h2 { color: var(--color-text); }

.about-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.about-content p { color: var(--color-text-muted); line-height: 1.8; }

/* ── 12. Footer ──────────────────────────────────────────── */
#site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-surface);
  padding-block: 4rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.footer-brand h3 {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.footer-brand p { color: var(--color-text-muted); max-width: 28rem; }

.footer-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  font-style: italic;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-block: 1.5rem;
}

.footer-links-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}
.footer-nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-accent); }

.footer-divider {
  width: 1px;
  height: 2rem;
  background: var(--color-border);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), background var(--transition);
}
.social-btn:hover {
  border-color: var(--color-accent);
  background: rgba(220,38,38,.1);
}
.social-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Newsletter */
.footer-newsletter {
  background: rgba(9,9,11,.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.footer-newsletter h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--color-text); }
.footer-newsletter p { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }

.newsletter-form { display: flex; flex-direction: column; gap: 1rem; }

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.newsletter-form input[type="email"]::placeholder { color: var(--color-text-subtle); }
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(220,38,38,.2);
}

.footer-bottom {
  border-top: 1px solid var(--color-surface);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-text-subtle);
  font-size: 0.85rem;
}

/* ── 13. Cart Drawer ─────────────────────────────────────── */
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
#cart-overlay.open { opacity: 1; pointer-events: auto; }

#cart-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(100%, 420px);
  background: var(--color-surface);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}
#cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
}
.cart-header h2 svg { width: 22px; height: 22px; stroke: var(--color-accent); fill: none; stroke-width: 1.5; }

.cart-close {
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.cart-close:hover { color: var(--color-text); }
.cart-close svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.cart-items { flex: 1; overflow-y: auto; padding: 1.5rem; }

.cart-empty {
  text-align: center;
  padding: 3rem 0;
}
.cart-empty svg { width: 64px; height: 64px; stroke: var(--color-border-light); fill: none; stroke-width: 1.5; margin: 0 auto 1rem; }
.cart-empty p { color: var(--color-text-muted); }
.cart-empty a { color: var(--color-accent); margin-top: 0.5rem; display: inline-block; }

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  margin-bottom: 0.75rem;
}
.cart-item__thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-surface-alt);
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

.cart-item__body { flex: 1; min-width: 0; }
.cart-item__name { font-size: 0.9rem; font-weight: 600; color: var(--color-text); margin-bottom: 0.25rem; }
.cart-item__meta { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.cart-item__price { color: var(--color-accent); font-size: 0.9rem; font-weight: 600; }

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cart-item__qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.drawer-qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.drawer-qty-btn:hover { background: var(--color-border); }
.drawer-qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: 0 0.25rem;
  line-height: 28px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition);
}
.qty-btn:hover { border-color: var(--color-accent); }

.cart-item__remove {
  color: var(--color-text-subtle);
  font-size: 1.25rem;
  transition: color var(--transition);
  align-self: flex-start;
}
.cart-item__remove:hover { color: var(--color-accent); }

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}
.cart-totals { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.cart-totals-row {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.cart-totals-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}
.cart-totals-row.total .total-amount { color: var(--color-accent); }

.cart-actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* ── 14. WooCommerce base ────────────────────────────────── */
.woocommerce-page { padding-top: var(--nav-height); }

/* ── 15. Single Product ──────────────────────────────────── */
.product-single {
  display: grid;
  gap: 3rem;
  padding-block: 5rem;
}
@media (min-width: 768px) { .product-single { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.product-gallery { position: relative; }
.product-gallery__main {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface);
  margin-bottom: 1rem;
  cursor: zoom-in;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-gallery__main:hover img { transform: scale(1.05); }

.product-gallery__thumbs { display: flex; gap: 0.5rem; }
.product-gallery__thumb {
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color var(--transition);
}
.product-gallery__thumb.active, .product-gallery__thumb:hover { border-color: var(--color-accent); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info { display: flex; flex-direction: column; gap: 1.5rem; }
.product-info__category { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.product-info__title { font-size: 2rem; color: var(--color-text); }
.product-info__price { font-size: 2.5rem; font-weight: 700; color: var(--color-text); }
.product-info__desc { color: var(--color-text-muted); line-height: 1.8; }

.size-selector label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); display: block; margin-bottom: 0.75rem; }
.size-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  transition: all var(--transition);
  background: transparent;
  color: var(--color-text);
}
.size-btn:hover, .size-btn.active { border-color: var(--color-accent); background: rgba(220,38,38,.1); }

/* ── 16. Lightbox ────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 300;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
#lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ── 17. Shop Archive ────────────────────────────────────── */
.shop-archive { padding-top: var(--nav-height); }
.shop-header {
  padding-block: 3rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 3rem;
}
.shop-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.filter-btn {
  padding: 0.4rem 1.25rem;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ── 18. Cart page ───────────────────────────────────────── */
.cart-page { padding-top: var(--nav-height); }

/* ── 19. Checkout ────────────────────────────────────────── */
.checkout-page { padding-top: var(--nav-height); }

/* ── 20. 404 ─────────────────────────────────────────────── */
.error-404 {
  padding-top: var(--nav-height);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-404__code {
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 900;
  color: var(--color-accent);
  opacity: 0.15;
  line-height: 1;
}
.error-404__title { font-size: 2rem; margin-top: -3rem; margin-bottom: 1rem; }

/* ── 21. Utilities ───────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ── 22. Spinning loader ─────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* ── 23. Product Gallery — Carousel + Lightbox ───────────── */

/* Conteneur principal */
.manu-product-gallery {
  position: relative;
  user-select: none;
}

/* ── Piste ──────────────────────────────────────────────── */
.gallery-track-wrapper {
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s ease;
}

.gallery-track-wrapper:hover .gallery-slide.active img {
  transform: scale(1.03);
}

/* ── Bouton loupe ─────────────────────────────────────────── */
.gallery-zoom-btn {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.gallery-zoom-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.08);
}
.gallery-zoom-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Flèches navigation ──────────────────────────────────── */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.gallery-arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.08);
}
.gallery-prev { left: 0.75rem; }
.gallery-next { right: 0.75rem; }
.gallery-arrow svg {
  width: 20px;
  height: 20px;
}

/* ── Vignettes ───────────────────────────────────────────── */
.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-surface-alt);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color var(--transition), transform var(--transition);
}
.gallery-thumb:hover {
  border-color: var(--color-text-muted);
  transform: scale(1.04);
}
.gallery-thumb.active {
  border-color: var(--color-accent);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Label recto/verso (injecté dynamiquement par JS) */
.gallery-thumb[data-label]::after {
  content: attr(data-label);
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-text-subtle);
  padding: 2px 0;
  background: var(--color-bg);
  line-height: 1.3;
}
.gallery-thumb.active[data-label]::after {
  color: var(--color-accent);
}

/* ── Lightbox ────────────────────────────────────────────── */
#product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}
#product-lightbox:not([hidden]) {
  display: flex;
}

#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  cursor: zoom-out;
}

.lightbox-img-wrapper {
  position: relative;
  z-index: 1;
  max-width: min(88vw, 960px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}
#lightbox-img.loading { opacity: 0.4; }

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.lightbox-close:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.lightbox-arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.05);
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-arrow svg { width: 24px; height: 24px; }

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Responsive : flèches cachées sur très petit écran */
@media (max-width: 480px) {
  .lightbox-prev,
  .lightbox-next { display: none; }
  .gallery-prev,
  .gallery-next { width: 34px; height: 34px; }
}

/* ── 23b. Gallery — variante card (homepage) ─────────────── */

/* Dans les cartes, les vignettes deviennent des points (dots) */
.manu-product-gallery--card .gallery-thumbs {
  justify-content: center;
  margin-top: 0.6rem;
  gap: 0.4rem;
}

.manu-product-gallery--card .gallery-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-border-light);
  background: var(--color-border-light);
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.manu-product-gallery--card .gallery-thumb:hover {
  border-color: var(--color-text-muted);
  background: var(--color-text-muted);
  transform: scale(1.15);
}

.manu-product-gallery--card .gallery-thumb.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.1);
}

/* Masquer les images dans les thumbs (on n'affiche que le cercle) */
.manu-product-gallery--card .gallery-thumb img {
  display: none;
}

/* Pas de label recto/verso sur les dots de cartes */
.manu-product-gallery--card .gallery-thumb[data-label]::after {
  display: none;
}

/* Flèches plus petites dans les cartes */
.manu-product-gallery--card .gallery-arrow {
  width: 32px;
  height: 32px;
}
.manu-product-gallery--card .gallery-arrow svg {
  width: 16px;
  height: 16px;
}

/* Loupe plus petite dans les cartes */
.manu-product-gallery--card .gallery-zoom-btn {
  width: 32px;
  height: 32px;
}
.manu-product-gallery--card .gallery-zoom-btn svg {
  width: 14px;
  height: 14px;
}
