:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #1d2430;
  --muted: #6a7a8c;
  --blue: #2f3f55;
  --blue-2: #3c526a;
  --blue-3: #4b6480;
  --rose: #f06a86;
  --rose-dark: #d85a74;
  --border: #d9e1ea;
  --chip: #eef2f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  background: linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
  color: var(--ink);
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  margin: 0 0 10px;
}

a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue-2);
  text-decoration: none;
}
.action-link:hover { text-decoration: none; opacity: 0.85; }
.action-link--danger { color: #b5445a; }
.action-link--primary { color: var(--blue); }
.action-link--lg { font-size: 13px; }
.icon { width: 14px; height: 14px; fill: currentColor; }
.action-link .bi { font-size: 14px; line-height: 1; }
.btn .bi { font-size: 14px; line-height: 1; }
.actions-row { display: flex; gap: 10px; }
.actions-row--end { justify-content: flex-end; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(90deg, #f8f9fb, #eef2f6);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 66px;
}
.site-header__spacer { min-height: 1px; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.lang-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-2);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 6px;
}
.lang-link:hover { text-decoration: none; opacity: 0.85; }
.lang-link.is-active {
  background: var(--blue);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand--center { justify-self: center; }
.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand__logo img {
  height: 54px;
  width: auto;
  max-width: 390px;
  display: block;
}
.brand__title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; }
.brand__title--lg { font-size: 24px; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 18px 30px;
}
.page--narrow { max-width: 900px; }

.btn, .button, .open-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.button {
  background: var(--rose);
  color: #fff;
  border: none;
}
.button:hover { background: var(--rose-dark); }

.btn--primary, .button5 {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover, .button5:hover { background: var(--blue-2); }
.btn--success {
  background: #2f9e44;
  color: #fff;
}
.btn--success:hover { background: #278a3a; }

input[type=text], input[type=email], textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }

form#form1 {
  max-width: 1200px;
  margin: 16px auto 10px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#gauche { display: none; }
#droite { flex: 1; text-align: center; }
.search-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 16px rgba(47,63,85,0.08);
}
#droite input[type=text] { border: none; padding: 6px 8px; width: 260px; }
#droite input[type=text]:focus { outline: none; }
#droite button { background: var(--blue); color: #fff; border: none; border-radius: 999px; padding: 6px 12px; }
#droite button:hover { background: var(--blue-2); }

.table-wrap {
  max-width: 1100px;
  margin-left: 0;
  margin-right: auto;
  padding: 0;
}

.data-table {
  width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(47,63,85,0.08);
}

.data-table th, .data-table td {
  text-align: center;
  padding: 10px 8px;
  border-right: 1px solid var(--border);
}
.data-table th:last-child, .data-table td:last-child { border-right: 0; }
.data-table .col-photo { width: 1%; }
.data-table .col-compact { width: 1%; white-space: nowrap; }
.data-table .col-qualite { width: 1%; white-space: normal; max-width: 200px; }
.data-table .col-stock { width: 1%; white-space: normal; max-width: 180px; }
.data-table td.col-photo { padding: 12px 10px; }
.data-table .col-price { text-align: center; }
.cell-title { font-weight: 700; }
.cell-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.data-table thead th {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table thead th a { color: #fff; text-decoration: none; }

.data-table tbody tr:nth-child(even) { background: #f1f5f9; }

.data-table tbody tr:hover { background: #e8eef5; }

@media screen and (max-width: 800px) {
  .data-table { display: flex; }
  thead { width: 20%; min-width: 90px; }
  tbody { flex: 1; }
  tr { display: flex; flex-direction: column; }
  .data-table th, .data-table td {
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .data-table td { position: relative; }
  .data-table tr:last-child td:last-child { border-bottom: 0; }
  .data-table tbody tr:not(:first-child) td::before {
    position: absolute;
    content: 'Qualite + Compo';
    color: #fff;
    font-weight: bold;
    width: calc(20% - 13px);
    min-width: 90px;
    padding: 5px;
    border-bottom: 1px solid var(--border);
    margin-left: calc(-20% - 2px);
    margin-top: -5px;
    background: var(--blue);
  }
  .data-table tbody tr:last-child td:last-child::before { border-bottom: 0; }
  .data-table tbody tr:not(:first-child) td:nth-of-type(2)::before { content: 'Titrage'; }
  .data-table tbody tr:not(:first-child) td:nth-of-type(3)::before { content: 'Photo'; }
  .data-table tbody tr:not(:first-child) td:nth-of-type(4)::before { content: 'Stock + Panier'; }
  .data-table tbody tr:not(:first-child) td:nth-of-type(5)::before { content: 'Prix'; }

  .cart-table tbody tr:not(:first-child) td::before { content: 'Produit'; }
  .cart-table tbody tr:not(:first-child) td:nth-of-type(2)::before { content: 'Photo'; }
  .cart-table tbody tr:not(:first-child) td:nth-of-type(3)::before { content: 'Total'; }
}

.img-sensible { max-width: 250px; }
.color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 48px;
  overflow: hidden;
}
.color-chip {
  display: inline-block;
  padding: 2px 6px;
  background: var(--chip);
  border: 1px solid #d0d6db;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
}
.color-chip:hover { background: #dbe3ea; }
.color-code { font-size: 11px; color: #666; }
.color-more { font-size: 12px; color: #555; padding: 2px 6px; }
.colors-actions { margin-top: 6px; }
.open-modal {
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  width: 100%;
  white-space: nowrap;
}
.open-modal:hover { background: var(--rose-dark); }

.photo-thumb {
  max-width: 70px;
  max-height: 70px;
  border: 1px solid #ccc;
}
.photo-thumb--main {
  width: 190px;
  max-width: 190px;
  max-height: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.color-photo { display: inline-block; }
.color-photo--empty {
  font-size: 11px;
  color: #999;
  border: 1px dashed #bbb;
  padding: 6px 8px;
}
.details-panel {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.color-card {
  background: #f5f7f9;
  border: 1px solid #d0d6db;
  border-radius: 6px;
  padding: 8px;
  width: 180px;
}
.color-title { font-weight: 600; font-size: 12px; margin-bottom: 4px; }
.color-meta { font-size: 12px; color: #333; }

.cart-table th, .cart-table td { text-align: left; }
.cart-table .col-photo { text-align: center; }
.cart-table .cart-total { text-align: right; white-space: nowrap; }
.cart-info__title { font-weight: 700; }
.cart-info__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-info__actions { margin-top: 6px; }
.cart-mobile-media {
  display: none;
  margin-top: 12px;
  text-align: center;
}
.cart-total__value { font-weight: 700; font-size: 14px; }
.cart-total__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-estimate-note {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-style: italic;
  color: var(--muted);
}

@media screen and (max-width: 800px) {
  .cart-table {
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .cart-table thead {
    display: none;
    width: auto;
    min-width: 0;
  }
  .cart-table tbody {
    display: block;
  }
  .cart-table tr {
    display: block;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(47,63,85,0.08);
  }
  .cart-table td {
    display: block;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .cart-table td:last-child {
    border-bottom: 0;
  }
  .cart-table td::before {
    content: none !important;
    display: none !important;
  }
  .cart-mobile-media {
    display: block;
  }
  .cart-table .col-photo {
    display: none;
  }
  .cart-table .photo-thumb--main {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
  }
  .cart-table .cart-total {
    text-align: right;
    white-space: normal;
  }
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-content {
  background: #fff;
  max-width: 900px;
  margin: 60px auto;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.modal-title { font-weight: 700; font-size: 14px; }
.modal-close {
  background: #666;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}
.modal-body { max-height: 70vh; overflow: auto; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #2f3f55;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100001;
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-table {
  width: 100%;
  border: none;
  border-collapse: separate;
  border-spacing: 0 8px;
  background: transparent;
  box-shadow: none;
}
.form-table td {
  border: none;
  padding: 6px 8px;
  text-align: left;
}
.form-select-wrap {
  position: relative;
}
.form-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}
.form-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  box-shadow: 0 6px 16px rgba(47,63,85,0.05);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-select:hover {
  border-color: #b7c5d4;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
}
.form-select:focus {
  outline: none;
  border-color: #8ea4bc;
  box-shadow: 0 0 0 4px rgba(75,100,128,0.12);
}
.form-select::-ms-expand {
  display: none;
}

.twAudessus {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  display: none;
  background: rgba(0,0,0,0.7);
}
.twAudessus a {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
.twAudessus img {
  max-width: 1200px;
  padding: 10px;
  background: #ffffff;
}
.twAudessus:target { display: table; }
@media screen and (max-width: 1600px) { .twAudessus img { max-width: 1000px; } }
@media screen and (max-width: 1024px) { .twAudessus img { max-width: 700px; } }
@media screen and (max-width: 800px) { .twAudessus img { max-width: 500px; } }
@media screen and (max-width: 600px) { .twAudessus img { max-width: 400px; } }
@media screen and (max-width: 500px) { .twAudessus img { max-width: 250px; } }

/* Catalog layout (index) */
.catalog-body { background: #f6f7f9; color: #111827; }
.page.catalog-page { max-width: 1400px; margin: 40px auto; padding: 0 20px; }
.catalog-page .layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.catalog-page .filters {
  width: 240px;
  flex: 0 0 240px;
  padding-top: 44px;
  font-family: 'Space Grotesk', sans-serif;
}
.catalog-page .content { flex: 1; min-width: 0; max-width: 1048px; }
.catalog-page .filter-box {
  border: 1px solid #d1d5db;
  background: #fff;
  margin-bottom: 12px;
}
.catalog-page .filter-head {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: #fff;
  cursor: pointer;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.catalog-page .filter-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid #111827;
  border-bottom: 2px solid #111827;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  font-size: 0;
  line-height: 0;
}
.catalog-page .filter-box.is-collapsed .filter-body,
.catalog-page .filter-box.is-collapsed .filter-footer { display: none; }
.catalog-page .filter-box.is-collapsed .filter-caret { transform: rotate(-45deg); }
.catalog-page .filter-body {
  padding: 8px 12px;
  max-height: 260px;
  overflow: auto;
}
.catalog-page .filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: #111827;
  text-decoration: none;
}
.catalog-page .filter-item:hover { text-decoration: underline; }
.catalog-page .filter-check {
  width: 12px;
  height: 12px;
  border: 1px solid #111827;
  border-radius: 2px;
  display: inline-block;
  background: #fff;
  flex: 0 0 12px;
}
.catalog-page .filter-item.is-active .filter-check { background: #111827; }
.catalog-page .filter-count {
  margin-left: auto;
  color: #6b7280;
  font-size: 12px;
}
.catalog-page .filter-footer {
  border-top: 1px solid #e5e7eb;
  padding: 8px 12px;
  text-align: center;
}
.catalog-page .filter-footer a {
  font-size: 12px;
  color: #111827;
  text-decoration: none;
}
.catalog-page .filter-footer a:hover { text-decoration: underline; }
.catalog-page .filters-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 10px;
}
.catalog-page .page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 18px;
  color: #111827;
  font-size: 13px;
  text-align: left;
}
.catalog-page .page-header__title { font-weight: 600; }
.catalog-page .page-header__sort { position: relative; }
.catalog-page .page-header__sort::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-right: 2px solid #111827;
  border-bottom: 2px solid #111827;
  pointer-events: none;
}
.catalog-page .page-header__sort .sort-select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 34px 8px 12px;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: #111827;
  font-family: 'Space Grotesk', sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.catalog-page .filter-box.sort-box {
  border: 1px solid #d1d5db;
  background: #fff;
}
.catalog-page .filter-box.sort-box .page-header__sort {
  width: 100%;
}
.catalog-page .filter-box.sort-box .page-header__sort::after {
  right: 12px;
}
.catalog-page .filter-box.sort-box .sort-select {
  width: 100%;
  border: none;
  padding: 10px 34px 10px 12px;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  color: #111827;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.catalog-page .filter-box.sort-box .sort-select option {
  font-weight: 600;
}
.catalog-page .grid {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  gap: 16px;
  min-height: 66px;
  justify-content: flex-start;
}
@media (max-width: 1200px) {
  .catalog-page .grid { grid-template-columns: repeat(3, 250px); }
  .catalog-page .content { max-width: 782px; }
}
@media (max-width: 980px) {
  .catalog-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .catalog-page .card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .catalog-page .card__media {
    width: 100%;
    height: auto;
  }
  .catalog-page .card__img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 640px) {
  .catalog-page .grid { grid-template-columns: repeat(1, 250px); justify-content: center; }
}
.catalog-page .card {
  width: 250px;
  background: #fff;
  border: 1px solid #d9e1ea;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.catalog-page .card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.catalog-page .card__link:focus-visible {
  outline: 2px solid #f06488;
  outline-offset: -2px;
}
.catalog-page .card__media {
  position: relative;
  width: 250px;
  height: 250px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}
.catalog-page .card__media-link {
  position: relative;
  z-index: 2;
  text-decoration: none;
}
.catalog-page .card__img {
  width: 230px;
  height: 230px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.catalog-page .card__placeholder {
  width: 320px;
  height: 220px;
  border: 1px dashed #d9e1ea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 12px;
}
.catalog-page .card__body {
  padding: 12px 14px 14px;
  text-align: center;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.catalog-page .card__body a,
.catalog-page .card__body button {
  pointer-events: auto;
}
.catalog-page .card__title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  text-transform: none;
}
.catalog-page .card__meta { font-size: 13px; color: #6b7280; }
.catalog-page .card__price {
  font-weight: 700;
  color: #111;
  margin-right: 8px;
}
.catalog-page .card__subtitle {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.catalog-page .card__subtitle strong {
  color: #111827;
  font-weight: 700;
}
.catalog-page .card__swatches {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.catalog-page .swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid #d1d5db;
  display: inline-block;
  vertical-align: middle;
}
.catalog-page .swatch--empty { background: #e5e7eb; }
.catalog-page .swatch--photo {
  background-size: 700%;
  background-position: center;
  background-repeat: no-repeat;
}
.catalog-page .swatch-link {
  display: inline-flex;
  text-decoration: none;
}
.catalog-page .swatch--more {
  font-size: 9px;
  color: #111827;
  background: #f3f4f6;
  min-width: 22px;
  height: 14px;
  padding: 0 2px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}
.catalog-page .swatch--more-btn { cursor: pointer; }
.modal-overlay.modal-colors .modal-colors__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.modal-overlay.modal-colors .modal-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 12px;
  color: #111827;
  background: #fff;
  border: 1px solid #d9e1ea;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  border-radius: 2px;
  padding: 8px;
  min-height: 210px;
  text-decoration: none;
}
.modal-overlay.modal-colors .modal-color:hover {
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.modal-overlay.modal-colors .modal-color__thumb {
  width: 100%;
  height: 120px;
  border-radius: 2px;
  border: 1px solid #e5e7eb;
  background-size: 220%;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 8px;
  background-color: #fff;
}
.modal-overlay.modal-colors .modal-color__thumb--empty {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
}
.modal-overlay.modal-colors .modal-color__name {
  font-weight: 600;
  margin-bottom: 4px;
  height: 32px;
  line-height: 16px;
  overflow: hidden;
}
.modal-overlay.modal-colors .modal-color__meta {
  font-size: 11px;
  color: #6b7280;
  height: 16px;
}
.modal-color__desc {
  font-size: 12px;
  color: #374151;
  margin: 4px 0 12px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

/* Detail page swatches */
.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin: 15px 0 22px;
}
.detail-hero__media {
  flex: 0 1 420px;
  width: 100%;
  max-width: 420px;
}
.detail-info {
  flex: 1 1 280px;
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  min-width: 0;
}
.detail-info__line {
  font-size: 13px;
  color: #111827;
  margin-bottom: 6px;
}
.detail-info__desc {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0 10px;
}
.detail-photo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px;
}
.detail-main-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border: 1px solid #ccc;
  background: #fff;
}
.detail-photo--empty .card__placeholder { width: 260px; height: 260px; }
.detail-swatches {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 100%;
}
.detail-swatches--overlay {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(255,255,255,0.9);
  padding: 6px;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  justify-content: flex-end;
  max-width: calc(100% - 16px);
}
.detail-swatches .swatch {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid #d1d5db;
  display: inline-block;
  vertical-align: middle;
}
.detail-swatches .swatch-link { display: inline-flex; text-decoration: none; }
.detail-swatches .swatch--photo {
  background-size: 700%;
  background-position: center;
  background-repeat: no-repeat;
}
.detail-swatches .swatch--empty { background: #e5e7eb; }
.detail-swatches .swatch--more {
  font-size: 11px;
  color: #111827;
  background: #f3f4f6;
  min-width: 28px;
  height: 20px;
  padding: 0 2px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
}
.detail-swatches .swatch--more-btn { cursor: pointer; }

.detail-form {
  width: 100%;
  max-width: 900px;
}

.detail-table-wrap {
  width: 100%;
  max-width: 900px;
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  max-width: 900px;
}

.detail-actions {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .detail-hero {
    flex-direction: column;
    gap: 16px;
  }
  .detail-hero__media {
    flex: 0 0 auto;
  }
  .detail-hero__media,
  .detail-info,
  .detail-photo,
  .detail-main-photo {
    width: 100%;
    max-width: none;
  }
  .detail-info {
    flex: 0 0 auto;
  }
}
.catalog-page .pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 20px;
}
.catalog-page .pager a {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.catalog-page .pager a.is-active {
  font-weight: 700;
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.catalog-page .pager-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  background: #111827;
  color: #fff;
  border-radius: 6px;
  border: 1px solid #111827;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}
.catalog-page .pager-next--disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .site-header__spacer { display: none; }
  .brand--center { justify-self: center; }
  .header-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .page { padding: 16px 14px 24px; }
  .brand__logo img { height: 40px; max-width: 280px; }
  .header-actions { flex-wrap: wrap; gap: 8px; }
  .lang-switch { width: 100%; justify-content: center; }
  .header-actions .btn { width: 100%; justify-content: center; }
  form#form1 { padding: 0 12px; }
  .search-inline { width: 100%; }
  #droite { width: 100%; }
  #droite input[type=text] { width: 100%; }
  .catalog-page .layout { gap: 16px; }
}

@media (max-width: 980px) {
  .catalog-page .layout {
    flex-direction: column;
    gap: 18px;
  }
  .catalog-page .filters {
    width: 100%;
    flex: 0 0 auto;
    padding-top: 0;
  }
  .catalog-page .content {
    width: 100%;
    max-width: none;
  }
  .catalog-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .catalog-page .card {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    min-width: 0;
  }
  .catalog-page .card__media {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 12px;
  }
  .catalog-page .card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .catalog-page .card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
  }
}


@media (max-width: 640px) {
  .page.catalog-page {
    margin: 22px auto;
    padding: 0 14px;
  }
  .catalog-page .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .catalog-page .card {
    width: 100%;
    max-width: none;
  }
  .catalog-page .card__body {
    padding: 14px 16px 16px;
  }
  .catalog-page .card__title {
    font-size: 13px;
  }
  .catalog-page .card__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .catalog-page .card__swatches {
    justify-content: center;
  }
  .detail-swatches--overlay {
    gap: 4px;
    padding: 5px;
  }
  .detail-swatches .swatch {
    width: 18px;
    height: 18px;
  }
  .detail-swatches .swatch--more {
    min-width: 26px;
    height: 18px;
    font-size: 10px;
  }
  .detail-actions .button,
  .detail-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media screen and (max-width: 800px) {
  .detail-table-wrap .data-table {
    display: table;
    min-width: 560px;
  }
  .detail-table-wrap thead {
    width: auto;
    min-width: 0;
    display: table-header-group;
  }
  .detail-table-wrap tbody {
    display: table-row-group;
  }
  .detail-table-wrap tr {
    display: table-row;
  }
  .detail-table-wrap .data-table th,
  .detail-table-wrap .data-table td {
    display: table-cell;
    text-align: center;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .detail-table-wrap .data-table th:last-child,
  .detail-table-wrap .data-table td:last-child {
    border-right: 0;
  }
  .detail-table-wrap .data-table tbody tr:not(:first-child) td::before {
    content: none;
    display: none;
  }
}

@media (max-width: 720px) {
  .modal-content { width: calc(100% - 24px); margin: 20px auto; }
  .modal-overlay.modal-colors .modal-colors__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .modal-overlay.modal-colors .modal-colors__grid { grid-template-columns: 1fr; }
}














