:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-muted: #fcfcfb;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-soft: #8a8a8a;
  --accent: #6b1e2a;
  --accent-soft: rgba(107, 30, 42, 0.12);
  --border: #e6e2da;
  --border-strong: #d6d0c6;
  --bio: #6f7a3d;
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.06);
  --shadow-md: 0 10px 28px rgba(26, 26, 26, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --space-1: 0.35rem;
  --space-2: 0.55rem;
  --space-3: 0.85rem;
  --space-4: 1.15rem;
  --space-5: 1.65rem;
  --space-6: 2.25rem;
  --content-max: 1120px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
.logo {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  margin: 0 0 var(--space-3);
  font-weight: 600;
}

h2 {
  font-size: 1.15rem;
  margin: var(--space-5) 0 var(--space-3);
  font-weight: 600;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-3);
}

p:last-child {
  margin-bottom: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-4) 0;
}

/* Header */
.header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, white);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.45rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: var(--space-2) 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.search-wrap {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
  max-width: none;
  order: 3;
}

.search-form {
  width: 100%;
}

.search-form input {
  width: 100%;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-form input:focus {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-sm);
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
}

.search-suggest-item {
  width: 100%;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border: none;
  border-bottom: 1px solid #f0ede8;
  background: var(--surface);
  cursor: pointer;
  display: grid;
  gap: var(--space-1);
}

.search-suggest-item:last-child {
  border-bottom: none;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
  background: #faf7f4;
}

.search-suggest-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.search-suggest-universe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-suggest-universe-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.search-suggest-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.address-autocomplete-wrap {
  position: relative;
  display: grid;
  gap: var(--space-2);
}

.address-autocomplete-field {
  position: relative;
}

.address-autocomplete-hint {
  font-size: 0.85rem;
}

.address-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
}

.address-suggest-empty {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  order: 2;
}

.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.lang-switcher-btn:hover,
.lang-switcher-btn[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 0 0 3px var(--accent-soft);
  color: var(--accent);
}

.lang-switcher-flag {
  width: 1.1rem;
  height: 0.82rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-switcher,
.lang-switcher * {
  translate: no;
}

.lang-switcher-code {
  line-height: 1;
  min-width: 1.35rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.lang-switcher-chevron {
  opacity: 0.65;
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  z-index: 60;
}

.lang-switcher-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: none;
  border-radius: calc(var(--radius-md) - 4px);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher-option:hover,
.lang-switcher-option.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.google-translate-host,
.goog-te-gadget,
.skiptranslate,
#goog-gt-tt,
.goog-te-banner-frame,
.goog-te-balloon-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

body.translated-ltr,
body.translated-rtl {
  top: 0 !important;
}

.account-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.logout-icon:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cart-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.cart-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 1.5rem;
  text-align: center;
}

/* Page shell */
.page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) var(--space-6);
}

.hero {
  margin: 0 0 var(--space-5);
  padding: var(--space-5) var(--space-5);
  background: linear-gradient(135deg, #ffffff 0%, #faf8f4 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero p {
  color: var(--text-muted);
  max-width: 52ch;
}

.layout-with-filters {
  display: grid;
  gap: var(--space-4);
}

.filters-drawer {
  border: 0;
  padding: 0;
  margin: 0;
}

.filters-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.filters-summary::-webkit-details-marker {
  display: none;
}

.filters-drawer[open] .filters-summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 0;
}

.filters-drawer .filters {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: none;
}

.filters-drawer:not([open]) .filters {
  display: none;
}

.checkout-steps {
  margin: 0 0 var(--space-6);
}

.checkout-steps-list {
  list-style: none;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.checkout-steps-list li {
  flex: 1 1 auto;
  min-width: 120px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.checkout-steps-list a,
.checkout-steps-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.35rem 0.25rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
}

.checkout-steps-list a:hover {
  color: var(--accent);
}

.checkout-steps-list li.is-done {
  color: var(--text);
}

.checkout-steps-list li.is-current a,
.checkout-steps-list li.is-current span {
  background: #f6f1ec;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}

.checkout-steps-muted {
  color: var(--text-soft);
  font-weight: 600;
}

.cart-toast-stack {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 90;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: var(--space-2);
  max-width: min(calc(100vw - 2 * var(--space-4)), 22rem);
  pointer-events: none;
}

.cart-toast-stack .cart-toast {
  position: relative;
  right: auto;
  bottom: auto;
  pointer-events: auto;
}

.cart-toast {
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.2);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transform-origin: bottom right;
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    box-shadow 0.32s ease;
  font-weight: 600;
  font-size: 0.92rem;
  max-width: 100%;
  word-wrap: break-word;
}

.cart-toast.is-visible {
  animation: cartToastPop 0.52s cubic-bezier(0.34, 1.4, 0.36, 1) both;
}

.cart-toast.is-leaving {
  animation: none;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

@keyframes cartToastPop {
  0% {
    transform: translateY(20px) scale(0.86);
    opacity: 0;
    box-shadow: 0 4px 14px rgba(26, 26, 26, 0.15);
  }
  50% {
    transform: translateY(-8px) scale(1.06);
    opacity: 1;
    box-shadow: 0 16px 36px rgba(26, 26, 26, 0.32);
  }
  78% {
    transform: translateY(3px) scale(0.98);
    box-shadow: 0 8px 22px rgba(26, 26, 26, 0.22);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-toast {
    transition: opacity 0.2s ease;
    transform: translateY(6px);
  }

  .cart-toast.is-visible {
    animation: none;
    opacity: 1;
    transform: translateY(0);
    box-shadow: var(--shadow-md);
  }

  .cart-toast.is-leaving {
    transform: translateY(4px);
  }
}

.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.filters form {
  display: grid;
  gap: var(--space-3);
}

label {
  display: grid;
  gap: var(--space-2);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

label span,
.filters label {
  color: var(--text);
}

.form-page > form,
.auth-box > form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-page > form > label,
.auth-box > form > label {
  margin-top: 0;
}

.form-page .modal-actions {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
}

input,
select,
button {
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:hover,
select:hover,
button:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
button:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Product list */
.grid-products {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.card-product {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-product:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  padding: var(--space-4);
}

.card-media img {
  width: 100%;
  max-width: 200px;
  height: 200px;
  object-fit: contain;
}

.card-body {
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.card-actions {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  align-content: center;
  border-top: 1px solid #f2efe9;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.card-actions select,
.card-actions input,
.card-actions button {
  width: 100%;
}

.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: var(--space-2);
}

.price-promo-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}

.price-old {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: line-through;
}

.price-current {
  color: var(--accent);
  font-weight: 700;
}

.badge {
  display: inline-block;
  background: #f3f0ea;
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  margin: 0.15rem 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a4a4a;
}

.badge.bio {
  background: #eef2e0;
  color: var(--bio);
}

.dot-color {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.dot-color--red {
  background: #7a1f2e;
}

.dot-color--white {
  background: #e8dfc8;
  border: 1px solid #c9baa0;
}

.dot-color--rose {
  background: #e8a4a4;
}

.dot-color--sparkling {
  background: linear-gradient(135deg, #f5e6c8 0%, #fafafa 50%, #f5e6c8 100%);
  border: 1px solid #d4c4a0;
}

.dot-color--sparkling-rose {
  background: linear-gradient(135deg, #f0c4c8 0%, #fafafa 50%, #f0c4c8 100%);
  border: 1px solid #e0b0b8;
}

.dot-color--unknown {
  background: var(--accent);
}

.listing-meta {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.92rem;
  color: #4a4a4a;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  box-shadow: 0 6px 16px rgba(107, 30, 42, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(107, 30, 42, 0.26);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

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

.btn-danger {
  background: #faf0f0;
  color: #7a1f1f;
  border-color: #e9cfcf;
  font-weight: 600;
}

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

.pagination {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.page-link {
  min-width: 2.35rem;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  background: var(--surface);
  cursor: pointer;
}

.page-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-link.is-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Forms / auth / cart */
.cart-stock-alert {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  border: 1px solid #e0c9a8;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #fff9f0 0%, #fff4e6 100%);
  color: var(--text);
}

.cart-stock-alert-intro {
  margin: var(--space-2) 0 var(--space-3);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cart-stock-alert-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cart-stock-alert-list li {
  margin-bottom: var(--space-2);
}

.cart-stock-alert-list li:last-child {
  margin-bottom: 0;
}

.checkout-amount-ht {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.checkout-vat-hint {
  font-size: 0.88em;
}

.checkout-total-ttc {
  margin-top: var(--space-2);
}

.cart-page,
.auth-box,
.form-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
}

.account-page {
  max-width: 52rem;
}

.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.account-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.account-nav-link:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}

.account-nav-link.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.account-empty {
  padding: var(--space-5);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

.account-orders {
  display: grid;
  gap: var(--space-4);
}

.account-order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--space-4);
}

.account-order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.account-order-ref {
  margin: 0;
  font-size: 1.1rem;
}

.account-order-date {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.account-payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.account-payment-badge--success {
  background: #eef7ee;
  color: #2d5a2d;
  border: 1px solid #c8e0c8;
}

.account-payment-badge--pending {
  background: #fff8e8;
  color: #8a5a00;
  border: 1px solid #ecd9a8;
}

.account-payment-badge--muted {
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.account-payment-hint {
  margin: 0 0 var(--space-3);
  font-size: 0.88rem;
}

.account-order-items {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  border-top: 1px solid var(--border);
}

.account-order-items li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.account-order-item-name {
  grid-column: 1;
  font-weight: 500;
}

.account-order-item-meta {
  grid-column: 1;
  font-size: 0.88rem;
}

.account-order-item-total {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 600;
  white-space: nowrap;
}

.account-order-totals {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.account-order-totals div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

.account-order-totals dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 400;
}

.account-order-totals dd {
  margin: 0;
}

.account-order-total-line dt,
.account-order-total-line dd {
  font-size: 1.02rem;
}

.account-order-actions {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.form-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4) 0;
  border-bottom: 1px solid #f0ede8;
}

.cart-row:last-of-type {
  border-bottom: none;
}

.cart-row > div:first-child strong {
  font-size: 1.02rem;
}

.checkout-btn {
  margin-top: var(--space-6);
  width: 100%;
  max-width: 360px;
  padding: 0.85rem 1.25rem;
}

.promo-form-wrap {
  margin: var(--space-4) 0;
}

.promo-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.promo-form input {
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.promo-applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.promo-line {
  color: var(--accent);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
}

.payment-divider {
  margin: var(--space-5) 0;
  border: none;
  border-top: 1px solid var(--border);
}

.rib-card {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: #faf8f5;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rib-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid #eee9e2;
}

.rib-row:last-child {
  border-bottom: none;
}

.rib-row dt {
  margin: 0;
  font-weight: 600;
  color: var(--text-muted, #6b6560);
}

.rib-row dd {
  margin: 0;
}

.rib-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.rib-confirm-form {
  margin-top: var(--space-4);
}

.order-success-banner {
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: #f0f7f0;
  border: 1px solid #c8e0c8;
  border-radius: var(--radius-md);
}

.primeurs-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.primeurs-hub-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  background: #faf8f5;
}

.primeurs-hub-card:hover {
  border-color: var(--accent);
}

.order-success-banner h1 {
  margin-top: 0;
  color: #2d5a2d;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  display: grid;
  place-items: center;
  padding: var(--space-4);
  z-index: 80;
}

.hidden {
  display: none;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.pay-success {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f6fbf5;
}

.pay-success-btn {
  margin-top: var(--space-3);
}

.modal-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.error {
  color: #a02828;
  font-weight: 600;
}

@media (min-width: 640px) {
  .header {
    padding: var(--space-3) var(--space-5);
    flex-wrap: nowrap;
  }

  .search-wrap {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 520px;
    order: 0;
  }

  .header-actions {
    order: 0;
  }

  .layout-with-filters {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: var(--space-5);
    align-items: start;
  }

  .filters-summary {
    display: none !important;
  }

  .filters-drawer .filters {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .filters-drawer:not([open]) .filters {
    display: block;
  }

  .filters {
    position: sticky;
    top: 5.5rem;
  }

  .card-product {
    grid-template-columns: 200px minmax(0, 1fr) minmax(200px, 240px);
    align-items: stretch;
  }

  .card-media {
    padding: var(--space-4) var(--space-3);
  }

  .card-media img {
    max-width: 170px;
    height: 170px;
  }

  .cart-row {
    grid-template-columns: minmax(0, 1.4fr) auto auto auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) 0;
  }

  .checkout-btn {
    width: auto;
    min-width: 260px;
  }
}

@media (min-width: 1024px) {
  .page {
    padding: var(--space-5) var(--space-6) var(--space-6);
  }

  .header {
    padding: var(--space-3) var(--space-6);
  }

  .product-detail {
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  }
}

/* Fiches produit catalogue / primeurs */
.breadcrumb {
  max-width: var(--content-max);
  margin: 0 auto var(--space-3);
  padding: 0 var(--space-4);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-current {
  color: var(--text-soft);
  font-weight: 500;
}

.product-detail {
  max-width: var(--content-max);
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}

.product-detail-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  box-shadow: var(--shadow-sm);
}

.product-detail-media img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: contain;
}

.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3);
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
}

.product-detail-thumb {
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 0;
  background: #fff;
  cursor: pointer;
  width: 64px;
  height: 64px;
  overflow: hidden;
}

.product-detail-thumb.is-active {
  border-color: var(--accent, #6b1e2a);
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
}

.product-detail-main h1 {
  margin-top: var(--space-2);
}

.product-detail-domaine {
  margin-bottom: 0;
}

.product-detail-tags {
  margin: var(--space-2) 0 var(--space-3);
}

.product-detail-price {
  font-size: 1.25rem;
  margin: var(--space-3) 0;
}

.product-specs-title {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 1.125rem;
}

.product-specs {
  margin: var(--space-4) 0;
  display: grid;
  gap: var(--space-3);
}

.product-specs > div {
  display: grid;
  gap: var(--space-1);
}

.product-specs dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.product-specs dd {
  margin: 0;
  font-size: 0.95rem;
}

.press-list {
  margin: 0 0 var(--space-4);
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.press-list li {
  margin-bottom: var(--space-2);
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.product-detail-actions input[type="number"] {
  width: 5rem;
}

.product-detail-actions select {
  min-width: 220px;
  flex: 1 1 200px;
}

.primeur-epuise-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  background: #9ca3af;
  color: #f9fafb;
  cursor: not-allowed;
  user-select: none;
}

.primeur-epuise-label[hidden],
.primeur-add-btn[hidden] {
  display: none !important;
}

.product-flac-table tr.flac-epuise td {
  color: var(--muted);
}

.product-flac-table tr.flac-epuise td:last-child {
  font-style: italic;
}

.primeur-pool-hint {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}

.product-flac-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: var(--space-3) 0 var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-flac-table th,
.product-flac-table td {
  padding: var(--space-3) var(--space-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.product-flac-table th {
  background: var(--surface-muted);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.product-flac-table tr:last-child td {
  border-bottom: 0;
}

.related-wines {
  max-width: var(--content-max);
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-4);
}

.related-wines-hint {
  font-size: 0.85rem;
  margin-top: calc(-1 * var(--space-2));
  margin-bottom: var(--space-4);
}

.related-wines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-card-media {
  aspect-ratio: 1;
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 140px;
}

.related-card-body {
  padding: var(--space-3);
}

.related-card-body h3 {
  font-size: 0.95rem;
  margin: 0 0 var(--space-2);
  color: var(--text);
}

.related-card-body .price {
  margin-top: var(--space-2);
  font-size: 0.95rem;
}

.related-card-body .small {
  font-size: 0.8rem;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* —— Univers catalogue / primeurs —— */
.universe-catalogue,
.universe-primeurs,
.universe-page {
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex: 1;
  min-width: 0;
  margin: 0;
  max-width: none;
  padding: 0;
}

.universe-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 auto var(--space-4);
  max-width: var(--content-max);
  padding: 0 var(--space-4);
}

.listing-sort {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  flex-shrink: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.listing-sort-label {
  font-weight: 600;
  white-space: nowrap;
}

.listing-sort select {
  min-width: 11rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  cursor: pointer;
}

.category-pill:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}

.category-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.category-description {
  width: 100%;
  max-width: none;
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.universe-extras {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--content-max);
  margin: 0 auto var(--space-5);
  padding: 0 var(--space-4);
}

.filters-sidebar-extras {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.filters-sidebar-title {
  margin: 0 0 var(--space-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.filters-universe-pages {
  display: grid;
  gap: var(--space-2);
}

.filters-random-quote {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: var(--surface-muted);
}

.filters-random-quote-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
}

.filters-universe-pages a {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.filters-universe-pages a:hover {
  background: var(--accent-soft);
}

.filters-pdf-catalog .pdf-catalog-link {
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.filters-pdf-catalog .pdf-thumb {
  margin: 0 auto;
}

.universe-pages {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.universe-pages a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: var(--radius-sm);
}

.universe-pages a:hover {
  background: var(--accent-soft);
}

.pdf-catalog-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}

.pdf-catalog-link:hover {
  box-shadow: var(--shadow-md);
}

.pdf-thumb {
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #f5f5f5;
  flex-shrink: 0;
}

.pdf-catalog-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.pdf-catalog-label strong {
  color: var(--accent);
}

.cms-content {
  max-width: 760px;
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-4);
  line-height: 1.65;
}

.cms-content h2,
.cms-content h3 {
  font-family: var(--font-serif);
  margin-top: 1.5em;
}

.cms-content p {
  margin: 0.75em 0;
}

.cms-content ul,
.cms-content ol {
  padding-left: 1.4em;
}

.category-description.cms-content {
  max-width: none;
  width: 100%;
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  box-sizing: border-box;
}

.category-description.cms-content img,
.category-description.cms-content iframe,
.category-description.cms-content video {
  max-width: 100%;
  height: auto;
}

.hero-compact {
  padding-bottom: var(--space-3);
}

.back-link {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) var(--space-4);
  margin-top: var(--space-6);
  text-align: center;
  background: var(--surface-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-copy {
  color: var(--text-soft);
  font-size: 0.8rem;
  margin: 0;
}

.universe-catalogue .btn-primary,
.universe-primeurs .btn-primary,
.universe-page .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.universe-catalogue .btn-primary:hover,
.universe-primeurs .btn-primary:hover,
.universe-page .btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 85%, #000);
}

/* —— Actualites (blog) —— */
.actualites-listing {
  max-width: 880px;
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-4);
}

.actualites-category-nav {
  margin-bottom: var(--space-5);
  justify-content: center;
}

.actualites-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-6) 0;
}

.actualites-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.actualites-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.actualites-card article {
  display: flex;
  flex-direction: column;
}

.actualites-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-muted, #f5f0eb);
}

.actualites-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.actualites-card-media:hover img {
  transform: scale(1.03);
}

.actualites-card-body {
  padding: var(--space-4) var(--space-5);
}

.actualites-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: 0.85rem;
}

.actualites-category {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
}

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

.actualites-card-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.actualites-card-title a {
  color: inherit;
  text-decoration: none;
}

.actualites-card-title a:hover {
  color: var(--accent);
}

.actualites-excerpt {
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.6;
}

.actualites-read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.actualites-read-more:hover {
  text-decoration: underline;
}

.actualites-pagination .page-link.is-disabled {
  pointer-events: none;
  opacity: 0.4;
}

.actualites-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.actualites-article-body {
  max-width: 760px;
}

.actualites-article-hero {
  max-width: 960px;
  margin: 0 auto var(--space-5);
  padding: 0 var(--space-4);
}

.actualites-article-hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* —— FAQ —— */
.faq-hero {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.faq-listing {
  max-width: 760px;
  margin: 0 auto var(--space-6);
  padding: 0 var(--space-4);
}

.faq-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-5) 0;
}

.faq-accordion {
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: var(--space-4);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  padding-right: 2.5rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}

.faq-answer p:first-child {
  margin-top: 0;
}

/* —— Page d'accueil —— */
.home-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-6);
}

.home-hero-empty {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.home-carousel {
  position: relative;
  margin: var(--space-4) 0 var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.home-carousel-slide {
  display: none;
}

.home-carousel-slide.is-active {
  display: block;
}

.home-spotlight-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 380px;
}

.home-spotlight-media-link {
  display: block;
  text-decoration: none;
  color: inherit;
  min-height: 280px;
}

.home-spotlight-link {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 380px;
  text-decoration: none;
  color: inherit;
}

.home-spotlight-media {
  position: relative;
  min-height: 280px;
  background: #1a1a1a;
}

.home-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}

.home-spotlight-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5);
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 75%, #000) 100%);
  color: #fff;
}

.home-spotlight-text {
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.95;
}

.home-spotlight-text p {
  margin: 0 0 0.5em;
}

.home-spotlight-product h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0;
  color: #fff;
}

.home-spotlight-title-link {
  color: inherit;
  text-decoration: none;
}

.home-spotlight-title-link:hover {
  text-decoration: underline;
}

.home-spotlight-product .muted {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 0.92rem;
}

.home-spotlight-content .listing-meta {
  color: rgba(255, 255, 255, 0.88);
}

.home-spotlight-content .badge.bio {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-spotlight-price {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.home-spotlight-cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: var(--space-1);
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.home-spotlight-cta:hover {
  background: rgba(255, 255, 255, 0.28);
}

.home-purchase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.home-spotlight-content .home-purchase .btn-primary {
  background: #fff;
  color: var(--accent);
  border: none;
}

.home-spotlight-content .home-purchase .btn-primary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.92);
}

.home-spotlight-content .home-purchase .btn-primary:disabled {
  opacity: 0.55;
}

.home-spotlight-content .home-purchase-select,
.home-spotlight-content .home-purchase-qty {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.home-spotlight-content .home-purchase-epuise {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.9rem;
}

.home-purchase-select,
.home-purchase-qty {
  min-width: 0;
  flex: 1 1 8rem;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--surface);
}

.home-purchase-qty {
  flex: 0 0 4.5rem;
  max-width: 4.5rem;
}

.home-purchase-btn {
  flex: 1 1 auto;
  white-space: nowrap;
}

.home-purchase-epuise {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.home-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.home-carousel-prev { left: var(--space-3); }
.home-carousel-next { right: var(--space-3); }

.home-carousel-dots {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.home-carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.home-carousel-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.home-secondary {
  margin-top: 0;
  min-width: 0;
}

.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.home-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
  color: var(--text);
}

.home-section-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.home-section-link:hover {
  text-decoration: underline;
}

.home-highlights {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.home-highlights--news-only,
.home-highlights--products-only {
  grid-template-columns: 1fr;
}

.home-highlights--news-only .home-news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-secondary-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 var(--space-4);
  text-align: center;
  color: var(--text);
}

.home-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.home-secondary-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s, transform 0.15s;
}

.home-secondary-media-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.home-secondary-media-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.home-secondary-media-link:hover img {
  transform: scale(1.03);
}

.home-secondary-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.home-secondary-media {
  aspect-ratio: 3 / 4;
  background: var(--surface-muted);
  overflow: hidden;
}

.home-secondary-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-3);
  display: block;
  transition: transform 0.2s ease;
}

.home-secondary-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.home-secondary-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--text);
}

.home-secondary-title-link {
  color: inherit;
  text-decoration: none;
}

.home-secondary-title-link:hover {
  color: var(--accent);
}

.home-secondary-detail {
  display: inline-block;
  margin-top: var(--space-1);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.home-secondary-detail:hover {
  text-decoration: underline;
}

.home-secondary-subtitle {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.home-secondary-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.home-secondary-price {
  margin: var(--space-1) 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.home-secondary-body .home-purchase {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

/* Dernieres actualites (accueil) */
.home-news {
  min-width: 0;
}

.home-news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-news-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.home-news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.home-news-media {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-muted, #f5f0eb);
}

.home-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-news-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.home-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.home-news-meta .actualites-category {
  font-size: 0.72rem;
}

.home-news-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.35;
}

.home-news-title a {
  color: inherit;
  text-decoration: none;
}

.home-news-title a:hover {
  color: var(--accent);
}

.home-news-excerpt {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-read {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.home-news-read:hover {
  text-decoration: underline;
}

.home-news-card:not(:has(.home-news-media)) {
  grid-template-columns: 1fr;
}

@media (max-width: 960px) {
  .home-highlights {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .home-highlights--news-only .home-news-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-spotlight-inner,
  .home-spotlight-link {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-spotlight-media {
    min-height: 220px;
  }

  .home-spotlight-media img {
    min-height: 220px;
  }

  .home-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .home-news-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .home-secondary-grid {
    grid-template-columns: 1fr;
  }

  .home-news-card {
    grid-template-columns: 1fr;
  }

  .home-news-media {
    aspect-ratio: 16 / 9;
  }
}
