﻿/* =========================================================
   COOKARIUM — woocommerce.css
   Surcharges WooCommerce complètes
   ========================================================= */

/* ── Grille boutique ─────────────────────────────────────── */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
ul.products.columns-2 { grid-template-columns: repeat(2, 1fr) !important; }
ul.products.columns-3 { grid-template-columns: repeat(3, 1fr) !important; }

ul.products li.product {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e8e0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}
ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Image produit */
ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
ul.products li.product:hover a img { transform: scale(1.06); }
ul.products li.product a.woocommerce-loop-product__link { display: block; overflow: hidden; }

/* Titre */
.woocommerce-loop-product__title {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  padding: 12px 14px 4px !important;
  margin: 0 !important;
  line-height: 1.35 !important;
}

/* Prix */
ul.products li.product .price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 14px 10px;
  font-size: 18px;
  font-weight: 700;
}
ul.products li.product .price .amount {
  color: #FF6B35;
}
ul.products li.product .price del .amount {
  color: #888 !important;
  font-size: 13px;
  font-weight: 400;
}
ul.products li.product .price ins {
  text-decoration: none;
}

/* Badge promo */
span.onsale {
  background: #FF6B35 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
  border-radius: 12px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
}

/* Bouton ajouter au panier (liste) */
ul.products li.product .button,
ul.products li.product .add_to_cart_button {
  display: block !important;
  width: calc(100% - 28px) !important;
  margin: 0 14px 14px !important;
  background: #1a1a1a !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 11px 16px !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  text-align: center !important;
  transition: background 0.2s ease !important;
  cursor: pointer !important;
  font-family: inherit !important;
}
ul.products li.product .button:hover,
ul.products li.product .add_to_cart_button:hover { background: #FF6B35 !important; }
ul.products li.product .added_to_cart { display: none !important; }
ul.products li.product .added { background: #2EC4B6 !important; }

/* ── Page produit single ─────────────────────────────────── */
div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
}
div.product .woocommerce-product-gallery { grid-column: 1; grid-row: 1; }
div.product .summary.entry-summary       { grid-column: 2; grid-row: 1; }
div.product .woocommerce-tabs            { grid-column: 1 / -1; grid-row: 2; }
div.product .related,
div.product .up-sells                    { grid-column: 1 / -1; }

/* Titre produit single */
.product_title.entry-title {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(22px, 3vw, 32px) !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  line-height: 1.25 !important;
  margin-bottom: 12px !important;
}

/* Prix single */
.woocommerce-Price-amount.amount { color: #FF6B35; }
p.price, span.price {
  font-size: 28px;
  font-weight: 700;
  color: #FF6B35;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
p.price del, span.price del {
  font-size: 18px;
  font-weight: 400;
  color: #888;
}
p.price ins, span.price ins { text-decoration: none; }

/* Badge rating */
.woocommerce-product-rating { margin-bottom: 16px; }
.star-rating { color: #FFB800; }
.woocommerce-review-link { font-size: 13px; color: #888; }

/* Galerie */
.woocommerce-product-gallery__wrapper img { border-radius: 8px; }
.flex-viewport { border-radius: 8px; overflow: hidden; }
.woocommerce-product-gallery .flex-control-thumbs li { border-radius: 4px; overflow: hidden; }
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active { border: 2px solid #FF6B35; }

/* Bouton single */
.single_add_to_cart_button,
button.single_add_to_cart_button {
  background: #FF6B35 !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 32px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(255,107,53,0.4) !important;
  font-family: inherit !important;
  letter-spacing: 0.01em !important;
}
.single_add_to_cart_button:hover {
  background: #e55a25 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(255,107,53,0.5) !important;
}

/* Quantité */
.quantity .qty {
  border: 1px solid #e8e8e0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 15px;
  width: 70px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
.quantity .qty:focus { border-color: #FF6B35; }

/* Stock */
p.stock.in-stock { color: #2EC4B6; font-weight: 600; font-size: 13px; }
p.stock.out-of-stock { color: #e05; font-weight: 600; font-size: 13px; }

/* ── Tabs ────────────────────────────────────────────────── */
.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8e8e0;
  margin-bottom: 32px;
  padding: 0;
  list-style: none;
}
.woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
}
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #888;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover { color: #FF6B35; border-bottom-color: #FF6B35; }
.woocommerce-tab { padding: 0; }

/* ── Notices ─────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.woocommerce-message { background: #f0fdfb; border-left: 4px solid #2EC4B6; color: #1a5c57; }
.woocommerce-error   { background: #fff5f5; border-left: 4px solid #e05; color: #c00; }
.woocommerce-info    { background: #fff8ec; border-left: 4px solid #FFB800; color: #6b5000; }
.woocommerce-message .button { margin-left: auto; }

/* ── Panier ──────────────────────────────────────────────── */
table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.shop_table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #e8e8e0;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}
table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid #e8e8e0;
  vertical-align: middle;
}
table.shop_table .product-name a { font-weight: 600; }
table.shop_table .product-name a:hover { color: #FF6B35; }

.cart_totals {
  background: #fff;
  border: 1px solid #e8e8e0;
  border-radius: 8px;
  padding: 24px;
}
.cart_totals h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.cart_totals table td, .cart_totals table th {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0ec;
  font-size: 14px;
}
.cart_totals .order-total td { font-size: 20px; font-weight: 700; color: #FF6B35; }
.checkout-button {
  display: block !important;
  background: #FF6B35 !important;
  color: #fff !important;
  text-align: center !important;
  padding: 14px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
  margin-top: 16px !important;
  box-shadow: 0 4px 12px rgba(255,107,53,0.35) !important;
}
.checkout-button:hover { background: #e55a25 !important; }

/* ── Checkout ────────────────────────────────────────────── */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e0;
}
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.woocommerce-input-wrapper textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e8e8e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus { border-color: #FF6B35; }
.form-row label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }

#place_order {
  background: #FF6B35 !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 32px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  font-family: inherit !important;
  box-shadow: 0 4px 12px rgba(255,107,53,0.4) !important;
}
#place_order:hover { background: #e55a25 !important; }

/* ── Mon compte ─────────────────────────────────────────── */
.woocommerce-MyAccount-navigation {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e8e0;
  overflow: hidden;
}
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f0ec;
  transition: all 0.2s;
}
.woocommerce-MyAccount-navigation ul li a:hover { background: #fff5f1; color: #FF6B35; }
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: #FF6B35;
  color: #fff;
  font-weight: 700;
}

/* ── Pagination boutique ─────────────────────────────────── */
nav.woocommerce-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
nav.woocommerce-pagination ul {
  display: flex;
  gap: 6px;
  list-style: none;
}
nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e8e8e0;
  color: #1a1a1a;
  transition: all 0.2s;
}
nav.woocommerce-pagination ul li a:hover { border-color: #FF6B35; color: #FF6B35; }
nav.woocommerce-pagination ul li span.current {
  background: #FF6B35;
  color: #fff;
  border-color: #FF6B35;
}

/* ── Galerie produit — miniatures horizontales ───────────── */
.woocommerce-product-gallery {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  position: relative;
}
.woocommerce-product-gallery .flex-viewport {
  border-radius: 10px;
  overflow: hidden;
  background: #f4f4f0;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}
.flex-control-nav.flex-control-thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}
.flex-control-thumbs li {
  width: 96px !important;
  height: 96px !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  cursor: pointer !important;
}
.flex-control-thumbs li img {
  width: 96px !important;
  height: 96px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 2px solid transparent !important;
  transition: border-color 0.2s, opacity 0.2s, transform 0.2s !important;
  opacity: 0.7;
}
.flex-control-thumbs li img:hover  { border-color: #FF6B35 !important; opacity: 1; transform: scale(1.04); }
.flex-control-thumbs li img.flex-active { border-color: #FF6B35 !important; opacity: 1; box-shadow: 0 0 0 3px rgba(255,107,53,0.25) !important; }

/* ── Description courte — espacement ────────────────────── */
.woocommerce-product-details__short-description {
  margin: 22px 0 !important;
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}
.woocommerce-product-details__short-description p {
  font-size: 16px !important;
  line-height: 1.9 !important;
  margin-bottom: 16px;
}
.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol {
  padding-left: 22px;
  margin: 14px 0;
}
.woocommerce-product-details__short-description li {
  margin-bottom: 8px;
}
.woocommerce-product-details__short-description strong {
  color: #1a1a1a;
}

/* ── Résumé produit — espacement général ─────────────────── */
.summary.entry-summary > * + * { margin-top: 18px; }
.summary .price { margin-bottom: 4px !important; }

/* ── Méta produit (SKU, catégories, tags) ────────────────── */
.product_meta {
  margin-top: 28px !important;
  padding-top: 20px !important;
  border-top: 1px solid #e8e8e0 !important;
  font-size: 13px !important;
  color: #999 !important;
  line-height: 2 !important;
}
.product_meta span { color: #555; font-weight: 500; }
.product_meta a { color: #555; }
.product_meta a:hover { color: #FF6B35; }

/* ── Bloc réassurance produit ────────────────────────────── */
.ck-product-reassurance {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding: 18px 20px;
  background: #f8f8f6;
  border-radius: 10px;
  border: 1px solid #e8e8e0;
}
.ck-pr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
.ck-pr-icon {
  width: 34px;
  height: 34px;
  background: #fff5f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ck-pr-icon svg {
  width: 17px;
  height: 17px;
  color: #FF6B35;
  stroke: #FF6B35;
}

/* ── Sélecteur de variantes — custom ─────────────────────── */
table.variations {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 20px 0 !important;
}
table.variations td,
table.variations th {
  border: none !important;
  padding: 6px 0 !important;
  background: transparent !important;
  vertical-align: middle;
}
table.variations td.label {
  padding-right: 16px !important;
  width: auto !important;
  white-space: nowrap;
}
table.variations td.label label {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.woocommerce div.product form.cart .variations select,
table.variations select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px !important;
  border: 2px solid #e8e8e0 !important;
  border-radius: 8px !important;
  padding: 11px 40px 11px 16px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  cursor: pointer !important;
  min-width: 200px !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  height: auto !important;
}
.woocommerce div.product form.cart .variations select:focus,
table.variations select:focus {
  border-color: #FF6B35 !important;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12) !important;
}
.reset_variations {
  display: inline-block !important;
  margin-left: 12px !important;
  font-size: 12px !important;
  color: #888 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  transition: color 0.2s !important;
}
.reset_variations:hover { color: #FF6B35 !important; }

/* ── Onglets description — tabs ──────────────────────────── */
.woocommerce-tabs { margin-top: 48px; }
.woocommerce-tab { padding: 28px 0 !important; }
.woocommerce-tab h2 { font-family: Georgia, serif; font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.woocommerce-tab p { font-size: 15px; line-height: 1.85; margin-bottom: 16px; }
.woocommerce-tab ul, .woocommerce-tab ol { padding-left: 22px; }
.woocommerce-tab li { margin-bottom: 8px; font-size: 15px; line-height: 1.7; }
.woocommerce-tab h3 { font-weight: 700; font-size: 17px; margin: 24px 0 12px; }

/* ── Section Avis ────────────────────────────────────────── */
#reviews { margin-top: 0 !important; }
.woocommerce-Reviews-title { display: none; }

/* Formulaire écrire un avis */
#review_form_wrapper {
  background: #fff;
  border: 1px solid #e8e8e0;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 40px;
}
#review_form_wrapper::before {
  content: "✍️  Laissez votre avis";
  display: block;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}
#review_form_wrapper::after {
  content: "Votre expérience aide d'autres clients à choisir.";
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}
#respond .comment-reply-title { display: none; }

/* Sélecteur d'étoiles */
.comment-form-rating {
  margin-bottom: 20px;
}
.comment-form-rating label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
  color: #1a1a1a;
}
.stars {
  display: flex !important;
  gap: 4px !important;
  align-items: center !important;
}
.stars span {
  display: flex !important;
  gap: 4px !important;
}
.stars a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 0 !important;        /* cache le texte "1 étoile sur 5" */
  line-height: 1 !important;
  color: #ddd !important;
  text-decoration: none !important;
  transition: color 0.15s, transform 0.15s !important;
  text-indent: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}
.stars a::before {
  content: "★" !important;
  font-size: 30px !important;
  display: block !important;
  font-style: normal !important;
  text-indent: 0 !important;
  position: relative !important;
  color: inherit !important;
}
.stars a:hover { transform: scale(1.15); }
.stars a.ck-filled { color: #FFB800 !important; }
.stars.selected a.active { color: #FFB800 !important; }

/* Champs formulaire avis */
.comment-form-comment,
.comment-form-author,
.comment-form-email {
  margin-bottom: 16px !important;
}
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input {
  width: 100% !important;
  border: 2px solid #e8e8e0 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  line-height: 1.6 !important;
  color: #1a1a1a !important;
  background: #fafaf8 !important;
  resize: vertical !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.comment-form-comment textarea { min-height: 120px !important; }
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus {
  border-color: #FF6B35 !important;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1) !important;
  background: #fff !important;
}
#submit {
  background: #FF6B35 !important;
  color: #fff !important;
  border: none !important;
  padding: 13px 32px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.2s !important;
  font-family: inherit !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 4px 12px rgba(255,107,53,0.35) !important;
}
#submit:hover { background: #e55a25 !important; transform: translateY(-1px) !important; }

/* Liste des avis existants */
#comments { margin-bottom: 40px; }
#comments .woocommerce-Reviews-title,
#comments h2.woocommerce-Reviews-title { display: none; }
ol.commentlist {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 32px !important;
}
ol.commentlist .comment {
  background: #fff;
  border: 1px solid #e8e8e0;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 14px;
}
.comment .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.comment .woocommerce-review__author { font-weight: 700; font-size: 15px; color: #1a1a1a; }
.comment .woocommerce-review__dash { color: #ccc; }
.comment time { font-size: 13px; color: #888; }
.comment .star-rating { font-size: 15px; color: #FFB800; }
.comment .description p { font-size: 14px; line-height: 1.75; color: #444; margin: 0; }
.woocommerce-noreviews {
  padding: 32px;
  background: #fff;
  border: 1px solid #e8e8e0;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  color: #888;
  margin-bottom: 32px;
}

/* ── Cacher la date de modification ──────────────────────── */
.page-template-default .entry-date.updated,
.single-product .entry-date,
time.updated,
.woocommerce-product-details__short-description time { display: none !important; }

/* ── Galerie produit : bouton zoom modernisé ─────────────── */
.woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 9 !important;
  width: 40px !important;
  height: 40px !important;
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(6px) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
  transition: all 0.2s !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
.woocommerce-product-gallery__trigger:hover {
  background: #FF6B35 !important;
  box-shadow: 0 4px 16px rgba(255,107,53,0.4) !important;
  transform: scale(1.08) !important;
}
.woocommerce-product-gallery__trigger img { display: none !important; }
.woocommerce-product-gallery__trigger::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: filter 0.2s;
}
.woocommerce-product-gallery__trigger:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
}
.woocommerce-product-gallery { position: relative; }

/* ── Tri boutique — sélecteur amélioré ───────────────────── */
.woocommerce-ordering {
  margin: 0 0 28px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.woocommerce-ordering::before {
  content: "Trier par :";
  font-size: 13px;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
.woocommerce-ordering select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 15px !important;
  border: 1.5px solid #e8e8e0 !important;
  border-radius: 8px !important;
  padding: 9px 38px 9px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  color: #1a1a1a !important;
  cursor: pointer !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  min-width: 190px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05) !important;
}
.woocommerce-ordering select:focus {
  border-color: #FF6B35 !important;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1) !important;
}

/* Barre résultats + tri */
.woocommerce-result-count {
  font-size: 13px;
  color: #888;
  margin: 0 0 28px !important;
}
.woocommerce-result-count + .woocommerce-ordering { margin-top: -28px !important; }

/* ── Long description (onglet Description) ───────────────── */
.woocommerce-Tabs-panel--description h2,
.woocommerce-Tabs-panel--description h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: #1a1a1a;
  margin: 32px 0 14px !important;
  line-height: 1.3;
}
.woocommerce-Tabs-panel--description h2 { font-size: 22px; }
.woocommerce-Tabs-panel--description h3 { font-size: 18px; }
.woocommerce-Tabs-panel--description p {
  font-size: 15.5px !important;
  line-height: 1.9 !important;
  color: #444 !important;
  margin-bottom: 18px !important;
}
.woocommerce-Tabs-panel--description ul,
.woocommerce-Tabs-panel--description ol {
  padding-left: 24px !important;
  margin: 18px 0 24px !important;
}
.woocommerce-Tabs-panel--description li {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #444 !important;
  margin-bottom: 10px !important;
  padding-left: 4px !important;
}
.woocommerce-Tabs-panel--description strong {
  color: #1a1a1a !important;
  font-weight: 700 !important;
}

/* ── Bloc réassurance produit — redesign ─────────────────── */
.ck-product-reassurance {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-top: 20px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.ck-pr-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  background: #fff !important;
  border: 1.5px solid #e8e8e0 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.ck-pr-item:hover { border-color: #FF6B35 !important; box-shadow: 0 2px 8px rgba(255,107,53,0.1) !important; }
.ck-pr-icon {
  width: 36px !important;
  height: 36px !important;
  background: linear-gradient(135deg, #fff5f1, #ffe8df) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.ck-pr-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #FF6B35 !important;
}
.ck-pr-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.ck-pr-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  display: block !important;
}
.ck-pr-sub {
  font-size: 11.5px !important;
  color: #888 !important;
  display: block !important;
}

/* ── Trust bar produit (avant formulaire panier) ─────────── */
.ck-product-trust-bar {
  display: flex;
  gap: 0;
  border: 1.5px solid #e8e8e0;
  border-radius: 12px;
  overflow: hidden;
  margin: 18px 0 14px;
}
.ck-ptb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  flex: 1;
  border-right: 1px solid #e8e8e0;
}
.ck-ptb-item:last-child { border-right: none; }
.ck-ptb-item.ck-ptb-delivery .ck-ptb-icon { color: #FF6B35; }
.ck-ptb-item.ck-ptb-return  .ck-ptb-icon { color: #2EC4B6; }
.ck-ptb-item.ck-ptb-secure  .ck-ptb-icon { color: #6b21a8; }
.ck-ptb-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ck-ptb-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.ck-ptb-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ck-ptb-text strong {
  font-size: 12.5px;
  font-weight: 700;
  color: #1a1a1a;
  display: block;
  line-height: 1.3;
}
.ck-ptb-text span {
  font-size: 11px;
  color: #999;
  display: block;
}

/* ── Code promo WELCOME ──────────────────────────────────── */
.ck-welcome-offer {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #fff8f5, #fff3ee);
  border: 1.5px dashed #FF6B35;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.ck-welcome-badge {
  background: #FF6B35;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  border-radius: 8px;
  padding: 6px 12px;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}
.ck-welcome-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FF6B35;
  margin: 0 0 3px !important;
}
.ck-welcome-detail {
  font-size: 13.5px;
  color: #333;
  margin: 0 !important;
  line-height: 1.5;
}
.ck-welcome-code {
  background: #fff;
  border: 1px solid #FF6B35;
  border-radius: 5px;
  padding: 1px 8px;
  font-family: monospace;
  font-size: 14px;
  color: #FF6B35;
  letter-spacing: 0.1em;
}
.ck-welcome-price {
  color: #FF6B35;
  font-size: 15px;
}

/* ══════════════════════════════════════════════════════════════
   BLOCK CHECKOUT — full redesign
   ══════════════════════════════════════════════════════════════ */

/* Page background */
body.woocommerce-checkout {
  background: #f4f3f0 !important;
}
body.woocommerce-checkout .ck-section,
body.woocommerce-checkout #main-content {
  background: transparent !important;
}

/* ── 1. Main two-column wrapper ─────────────────────────────── */
.wp-block-woocommerce-checkout {
  max-width: 1160px !important;
  margin: 0 auto !important;
  padding: 40px 24px 80px !important;
  gap: 32px !important;
}

/* ── 2. Left form column — white card ───────────────────────── */
.wc-block-checkout__main {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 40px 40px !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07) !important;
}

/* Express checkout area */
.wc-block-components-express-payment-continue-rule {
  margin: 0 0 24px !important;
}

/* Step headings (Coordonnées, Adresse de livraison…) */
.wc-block-components-checkout-step__title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  padding-bottom: 14px !important;
  margin-bottom: 24px !important;
  border-bottom: 2px solid #f0f0ec !important;
}
.wc-block-components-checkout-step__title::before {
  background: #FF6B35 !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 14px !important;
  line-height: 28px !important;
}

/* Step spacing */
.wc-block-checkout__step {
  padding: 28px 0 !important;
  border-bottom: 1px solid #f0f0ec !important;
}
.wc-block-checkout__step:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* Form inputs */
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-country-input input,
.wc-block-components-address-form input,
.wc-block-components-address-form select {
  height: 52px !important;
  border: 1.5px solid #e0e0d8 !important;
  border-radius: 10px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  background: #fafaf8 !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus,
.wc-block-components-country-input input:focus {
  border-color: #FF6B35 !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(255,107,53,0.10) !important;
}
.wc-block-components-text-input label,
.wc-block-components-select label,
.wc-block-components-country-input label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #888 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Checkbox styling */
.wc-block-components-checkbox input[type="checkbox"] {
  accent-color: #FF6B35 !important;
  width: 18px !important;
  height: 18px !important;
}

/* Payment section */
.wc-block-components-payment-method-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}
.wc-block-components-payment-method-label__img,
.wc-block-components-payment-method-label img {
  height: 36px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
  border-radius: 4px !important;
}
.wc-block-components-radio-control__option {
  padding: 14px 18px !important;
  border: 1.5px solid #e0e0d8 !important;
  border-radius: 10px !important;
  margin-bottom: 10px !important;
  background: #fafaf8 !important;
  transition: border-color 0.2s !important;
}
.wc-block-components-radio-control__option:has(input:checked) {
  border-color: #FF6B35 !important;
  background: #fff8f5 !important;
}
.wc-block-components-radio-control__option input[type="radio"] {
  accent-color: #FF6B35 !important;
}

/* Place order button */
.wc-block-components-checkout-place-order-button {
  background: #FF6B35 !important;
  color: #fff !important;
  border: none !important;
  padding: 18px 32px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  font-family: inherit !important;
  box-shadow: 0 6px 20px rgba(255,107,53,0.40) !important;
  margin-top: 8px !important;
  letter-spacing: 0.02em !important;
}
.wc-block-components-checkout-place-order-button:hover {
  background: #e55a25 !important;
  box-shadow: 0 8px 28px rgba(255,107,53,0.50) !important;
}

/* Privacy / terms notice */
.wc-block-checkout__terms {
  font-size: 12px !important;
  color: #999 !important;
  margin-top: 16px !important;
}

/* ── 3. Right sidebar — order summary card ──────────────────── */
.wc-block-checkout__sidebar {
  position: sticky !important;
  top: 90px !important;
  --wc-block-order-summary-item-color: #1a1a1a;
  --global--color--primary: #1a1a1a;
}
.wp-block-woocommerce-checkout-order-summary-block {
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07) !important;
}

/* "Résumé de la commande" heading / panel toggle */
.wc-block-checkout__sidebar .wc-block-components-panel__button,
.wc-block-checkout__sidebar h2 {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  background: #1a1a1a !important;
  color: #fff !important;
  padding: 22px 28px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
  text-align: left !important;
  border: none !important;
  cursor: pointer !important;
}
.wc-block-checkout__sidebar .wc-block-components-panel__button svg {
  color: #FF6B35 !important;
  flex-shrink: 0;
}

/* Order summary inner padding */
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper {
  padding: 0 28px !important;
}

/* ── Order items layout — CSS Grid (prévient l'overflow) ──────── */
.wc-block-components-order-summary-item {
  display: grid !important;
  grid-template-columns: 64px 1fr !important;
  grid-template-areas: "img desc" !important;
  gap: 0 12px !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid #f0f0ec !important;
  position: relative !important;
}
.wc-block-components-order-summary-item:last-child {
  border-bottom: none !important;
}

/* Product image */
.wc-block-components-order-summary-item__image {
  grid-area: img !important;
  width: 64px !important;
  position: relative !important;
  flex: none !important;
}
.wc-block-components-order-summary-item__image img,
.wc-block-components-order-summary-item__image .wc-block-components-product-image img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
  border: 1px solid #f0f0ec !important;
}

/* Quantity badge */
.wc-block-components-order-summary-item__quantity {
  position: absolute !important;
  top: -7px !important;
  right: -7px !important;
  background: #FF6B35 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  border-radius: 50% !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #fff !important;
}

/* Description — contient nom + prix + badge */
.wc-block-components-order-summary-item__description {
  grid-area: desc !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

/* Nom produit : max 3 lignes puis ellipsis */
.wc-block-components-order-summary-item__full-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #1a1a1a !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-word !important;
}

/* Prix individuels (barré + prix solde) — en ligne, wrappé si besoin */
.wc-block-components-order-summary-item__individual-prices {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 2px !important;
}

/* Total (prix final à droite de la description) */
.wc-block-components-order-summary-item__total-price {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  white-space: nowrap !important;
  margin-top: 4px !important;
}

/* ── All prices in summary: dark (JS also enforces this) ──── */
.wc-block-checkout__sidebar .woocommerce-Price-amount,
.wc-block-checkout__sidebar .woocommerce-Price-amount *,
.wc-block-checkout__sidebar .amount,
.wp-block-woocommerce-checkout-order-summary-block .woocommerce-Price-amount,
.wp-block-woocommerce-checkout-order-summary-block .amount,
.wc-block-components-order-summary .woocommerce-Price-amount,
.wc-block-components-order-summary .amount,
.wc-block-components-order-summary-item .woocommerce-Price-amount,
.wc-block-components-order-summary-item .amount,
.wc-block-order-summary-item__individual-price .woocommerce-Price-amount {
  color: #1a1a1a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* Metadata (Color: Blue etc.) */
.wc-block-components-product-metadata,
.wc-block-components-product-metadata__description {
  font-size: 12px !important;
  color: #aaa !important;
  margin: 0 !important;
}

/* Sale badge */
.wc-block-components-sale-badge {
  background: #FF6B35 !important;
  color: #fff !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
}

/* ── Totals section ─────────────────────────────────────────── */
.wc-block-components-totals-wrapper {
  padding-top: 20px !important;
  padding-bottom: 24px !important;
  border-top: 2px solid #f0f0ec !important;
  margin-top: 4px !important;
}
.wc-block-components-totals-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 8px 0 !important;
  font-size: 15px !important;
}
.wc-block-components-totals-item__label {
  color: #555 !important;
  font-weight: 500 !important;
}
.wc-block-components-totals-item__value,
.wc-block-components-totals-item .woocommerce-Price-amount,
.wc-block-components-totals-item .amount {
  color: #1a1a1a !important;
  font-weight: 600 !important;
}
/* Free shipping badge */
.wc-block-components-totals-item__value strong {
  color: #2a9d5c !important;
  font-weight: 700 !important;
}

/* Grand total row */
.wc-block-components-totals-footer-item {
  border-top: 2px solid #1a1a1a !important;
  margin-top: 12px !important;
  padding-top: 16px !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
}
.wc-block-components-totals-footer-item .woocommerce-Price-amount,
.wc-block-components-totals-footer-item .woocommerce-Price-amount *,
.wc-block-components-totals-footer-item .amount,
.wc-block-components-totals-footer-item__value {
  color: #FF6B35 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}

/* Promo code panel */
.wc-block-components-panel {
  border-top: 1px solid #f0f0ec !important;
  margin: 0 !important;
}
.wc-block-components-panel__button {
  padding: 16px 28px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #555 !important;
  background: transparent !important;
  width: 100% !important;
  text-align: left !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* ── Checkout page responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .wp-block-woocommerce-checkout { padding: 20px 16px 60px !important; }
  .wc-block-checkout__main { padding: 28px 20px !important; border-radius: 16px !important; }
  .wp-block-woocommerce-checkout-order-summary-block { border-radius: 16px !important; }
  .wc-block-components-order-summary,
  .wc-block-components-totals-wrapper { padding: 0 20px !important; }
  .wc-block-checkout__sidebar .wc-block-components-panel__button,
  .wc-block-checkout__sidebar h2 { padding: 18px 20px !important; }
  .wc-block-components-order-summary-item__image { flex: 0 0 60px !important; width: 60px !important; }
  .wc-block-components-order-summary-item__image img { width: 60px !important; height: 60px !important; }
}

/* ── Contact Form 7 ─────────────────────────────────────── */
.wpcf7-form .wpcf7-form-control-wrap input[type="text"],
.wpcf7-form .wpcf7-form-control-wrap input[type="email"],
.wpcf7-form .wpcf7-form-control-wrap input[type="tel"],
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
  height: 48px !important;
  padding: 12px 14px !important;
  border: 1px solid #e8e8e0 !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s !important;
  background: #fff !important;
}
.wpcf7-form textarea {
  min-height: 140px !important;
  padding: 12px 14px !important;
  border: 1px solid #e8e8e0 !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s !important;
  background: #fff !important;
  resize: vertical;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  border-color: #FF6B35 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.1) !important;
}
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  background: #FF6B35 !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 40px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  font-family: inherit !important;
  display: inline-block !important;
  box-shadow: 0 4px 12px rgba(255,107,53,0.4) !important;
  min-width: 160px;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
  background: #e55a25 !important;
}

/* ══════════════════════════════════════════════════════════════
   CART PAGE — full redesign (block cart)
   ══════════════════════════════════════════════════════════════ */

/* Page background */
body.woocommerce-cart {
  background: #f4f3f0 !important;
}
body.woocommerce-cart .ck-section,
body.woocommerce-cart #main-content {
  background: transparent !important;
}

/* ── Header : titre + indicateur d'étapes ─────────────────── */
.ck-cart-page-header {
  text-align: center;
  padding: 36px 24px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.ck-cart-page-title {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(20px, 3vw, 26px) !important;
  font-weight: 700 !important;
  color: #FF6B35 !important;
  margin: 0 0 20px !important;
  line-height: 1.3 !important;
}

/* Step indicator */
.ck-cart-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}
.ck-cart-step {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e0dfd8;
  color: #aaa;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.ck-cart-step--active {
  background: #FF6B35 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255,107,53,0.35);
}
.ck-cart-step--done {
  background: #2EC4B6 !important;
  color: #fff !important;
  font-size: 16px !important;
}
.ck-cart-step-line {
  width: 48px;
  height: 2px;
  background: #e0dfd8;
  flex-shrink: 0;
}
.ck-cart-step-line--done {
  background: #2EC4B6 !important;
}

/* ── Layout wrapper (block cart + trust col) ──────────────── */
.ck-cart-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.ck-cart-layout > .wp-block-woocommerce-cart {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}

/* ── WooCommerce block cart inner cards ───────────────────── */
body.woocommerce-cart .wc-block-cart__main {
  background: #fff !important;
  border-radius: 20px !important;
  padding: 32px !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07) !important;
  margin-bottom: 24px !important;
}
body.woocommerce-cart .wc-block-cart__sidebar {
  background: #fff !important;
  border-radius: 20px !important;
  padding: 28px !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07) !important;
}

/* Cart items table */
body.woocommerce-cart .wc-block-cart-items__header {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #aaa !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #f0f0ec !important;
}
body.woocommerce-cart .wc-block-cart-item {
  padding: 16px 0 !important;
  border-bottom: 1px solid #f0f0ec !important;
  display: grid !important;
  grid-template-columns: 72px 1fr auto !important;
  align-items: center !important;
  gap: 16px !important;
}
body.woocommerce-cart .wc-block-cart-item:last-child {
  border-bottom: none !important;
}
body.woocommerce-cart .wc-block-cart-item__image img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  border: 1px solid #f0f0ec !important;
}
body.woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__product-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  margin-bottom: 4px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-metadata {
  font-size: 12px !important;
  color: #aaa !important;
}
body.woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
  border: 1.5px solid #e8e8e0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
body.woocommerce-cart .wc-block-cart-item__total .woocommerce-Price-amount {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #FF6B35 !important;
}

/* Sidebar order totals */
body.woocommerce-cart .wc-block-cart__totals-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin-bottom: 20px !important;
  padding-bottom: 14px !important;
  border-bottom: 2px solid #f0f0ec !important;
}
body.woocommerce-cart .wc-block-components-totals-item {
  display: flex !important;
  justify-content: space-between !important;
  padding: 9px 0 !important;
  font-size: 14px !important;
  border-bottom: 1px solid #f5f5f2 !important;
}
body.woocommerce-cart .wc-block-components-totals-footer-item {
  border-top: 2px solid #1a1a1a !important;
  margin-top: 10px !important;
  padding-top: 14px !important;
  border-bottom: none !important;
}
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
}
body.woocommerce-cart .wc-block-components-totals-footer-item .woocommerce-Price-amount,
body.woocommerce-cart .wc-block-components-totals-footer-item .amount {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #FF6B35 !important;
}

/* Proceed to checkout button */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-checkout-place-order-button {
  background: #FF6B35 !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  width: 100% !important;
  text-align: center !important;
  display: block !important;
  margin-top: 16px !important;
  cursor: pointer !important;
  transition: background 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 6px 20px rgba(255,107,53,0.38) !important;
  font-family: inherit !important;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover {
  background: #e55a25 !important;
  box-shadow: 0 8px 28px rgba(255,107,53,0.50) !important;
}

/* ── Trust column ─────────────────────────────────────────── */
.ck-cart-trust-col {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

/* Base card */
.ck-ctt-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Secure card */
.ck-ctt-secure .ck-ctt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ck-ctt-secure .ck-ctt-head svg {
  width: 22px !important;
  height: 22px !important;
  color: #2EC4B6 !important;
  stroke: #2EC4B6 !important;
  fill: none !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.ck-ctt-secure .ck-ctt-head strong {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
}
.ck-ctt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ck-ctt-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
}
.ck-ctt-list li svg {
  width: 15px !important;
  height: 15px !important;
  color: #2EC4B6 !important;
  stroke: #2EC4B6 !important;
  fill: none !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* Offer card */
.ck-ctt-offer {
  background: linear-gradient(135deg, #fff8f3, #fff0e6) !important;
  border: 1.5px solid #ffd9c0 !important;
  text-align: center;
  padding: 24px 20px !important;
}
.ck-ctt-fire {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.ck-ctt-offer strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #FF6B35;
  margin-bottom: 6px;
}
.ck-ctt-offer p {
  font-size: 13px;
  color: #6b3d20;
  margin: 0;
  line-height: 1.45;
}

/* Return card */
.ck-ctt-return {
  background: linear-gradient(135deg, #f0fdf8, #e6faf4) !important;
  border: 1.5px solid #b8eedd !important;
  text-align: center;
  padding: 24px 20px !important;
}
.ck-ctt-check-big {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #2EC4B6;
  color: #fff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 10px;
}
.ck-ctt-return strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a6b50;
  line-height: 1.4;
}

/* ── Cart page responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .ck-cart-layout {
    flex-direction: column;
    padding: 0 16px 60px;
  }
  .ck-cart-layout > .wp-block-woocommerce-cart { width: 100%; }
  .ck-cart-trust-col {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ck-ctt-card { flex: 1; min-width: 220px; }
}

/* ── Cart mobile — fix block cart layout ─────────────────── */
/* Force the WooCommerce block cart (React) to stack vertically on mobile.
   Without this, main + sidebar can stay side-by-side at very narrow widths,
   causing the sidebar (coupon panel, checkout button) to display at ~30-40px
   width with text wrapping character-by-character. */
@media (max-width: 768px) {
  /* The React-rendered block cart inner wrapper */
  body.woocommerce-cart .wc-block-cart,
  .wp-block-woocommerce-cart .wc-block-cart {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }
  /* Force main cart items section to full width */
  body.woocommerce-cart .wc-block-cart__main {
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  /* Force sidebar (totals + coupon + button) to full width */
  body.woocommerce-cart .wc-block-cart__sidebar {
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
  }
  /* Gutenberg inner block wrappers for newer WooCommerce block structure */
  .wp-block-woocommerce-cart-form-block,
  .wp-block-woocommerce-cart-totals-block,
  .wp-block-woocommerce-cart-order-summary-totals-block,
  .wp-block-woocommerce-cart-order-summary-coupon-form-block,
  .wp-block-woocommerce-proceed-to-checkout-block {
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Coupon panel button — reduce padding, force horizontal text */
  body.woocommerce-cart .wc-block-components-panel__button,
  .wc-block-cart__sidebar .wc-block-components-panel__button,
  .wp-block-woocommerce-cart-order-summary-coupon-form-block .wc-block-components-panel__button {
    padding: 14px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    writing-mode: horizontal-tb !important; /* Explicitly prevent vertical text */
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  /* Checkout button */
  body.woocommerce-cart .wc-block-cart__submit-button,
  .wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-button {
    padding: 14px 16px !important;
    font-size: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-break: normal !important;
  }
  /* Cart items: tighter image on tablet */
  body.woocommerce-cart .wc-block-cart-item {
    gap: 12px !important;
  }
}

@media (max-width: 600px) {
  .ck-cart-page-header { padding: 24px 16px 12px; }
  .ck-cart-trust-col { flex-direction: column; }
  .ck-ctt-card { min-width: 0; }
  body.woocommerce-cart .wc-block-cart__main { padding: 20px 16px !important; }

  /* Cart items: smaller image, 2-column grid to free space */
  body.woocommerce-cart .wc-block-cart-item {
    grid-template-columns: 60px 1fr !important;
    gap: 10px !important;
    align-items: start !important;
  }
  body.woocommerce-cart .wc-block-cart-item__image img {
    width: 60px !important;
    height: 60px !important;
  }
}

/* ── Responsive WooCommerce ──────────────────────────────── */
@media (max-width: 1024px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  /* Single product : 1 colonne, ordre correct */
  div.product {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px;
  }
  div.product .woocommerce-product-gallery { order: 1; width: 100%; }
  div.product .summary.entry-summary      { order: 2; width: 100%; }
  div.product .woocommerce-tabs           { order: 3; width: 100%; }
  div.product .related, div.product .up-sells { order: 4; width: 100%; }
  .ck-product-trust-bar { flex-direction: column; }
  .ck-ptb-item { border-right: none; border-bottom: 1px solid #e8e8e0; }
  .ck-ptb-item:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  /* Onglets produit : scroll horizontal au lieu de débordement */
  .woocommerce-tabs ul.tabs {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0 !important;
  }
  .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
  .woocommerce-tabs ul.tabs li a {
    padding: 10px 14px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }
  .ck-product-reassurance { grid-template-columns: 1fr !important; }
  .flex-control-thumbs li { width: 72px !important; height: 72px !important; }
  .flex-control-thumbs li img { width: 72px !important; height: 72px !important; }
  div.product { padding: 16px 0 40px; }
  .woocommerce-product-gallery .flex-viewport {
    margin-bottom: 10px;
    max-width: 100%;
    overflow: hidden;
  }
  /* Empêcher l'image de déborder */
  .woocommerce-product-gallery__wrapper { overflow: hidden; }
  .woocommerce-product-gallery__image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Summary : textes bien cadrés */
  .summary.entry-summary {
    padding: 0 4px;
    text-align: left;
  }
  .product_title.entry-title { font-size: clamp(20px, 5vw, 28px) !important; }
  p.price, span.price { font-size: 22px !important; }
  .woocommerce-product-details__short-description { font-size: 15px !important; }
}
@media (max-width: 600px) {
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; padding: 8px 10px 3px !important; }
  ul.products li.product .price { font-size: 15px; padding: 3px 10px 8px; }
  ul.products li.product .button { width: calc(100% - 20px) !important; margin: 0 10px 10px !important; padding: 9px 12px !important; font-size: 13px !important; }
  table.shop_table { font-size: 13px; }
  table.shop_table th, table.shop_table td { padding: 10px; }
  .ck-welcome-offer { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* Miniatures galerie encore plus petites */
  .flex-control-thumbs li { width: 60px !important; height: 60px !important; }
  .flex-control-thumbs li img { width: 60px !important; height: 60px !important; }
}
