/* Khir Yemma Design — boutique, catégories, fiches produit */

/* ---------- Bandeau titre (boutique / catégories) ---------- */
body.ky-design .hero-section[data-type="type-2"] {
  position: relative; min-height: 0 !important; padding: 0 !important;
  background: linear-gradient(100deg, #fbf5ea 0%, #f6ead4 60%, #efdcb9 100%) !important;
  border-bottom: 1px solid var(--ky-line);
}
body.ky-design .hero-section[data-type="type-2"] figure,
body.ky-design .hero-section[data-type="type-2"] .ct-media-container { display: none !important; }
body.ky-design .hero-section[data-type="type-2"] .entry-header {
  padding: 46px 24px 40px !important; min-height: 0 !important; text-align: center;
}
body.ky-design .hero-section .page-title {
  font-family: var(--ky-serif) !important; font-weight: 600 !important; color: var(--ky-green-dark) !important;
  font-size: clamp(34px, 4.4vw, 54px) !important; line-height: 1.05; margin: 8px 0 0 !important; letter-spacing: -.3px;
}
body.ky-design .hero-section .page-title::after {
  content: ""; display: block; width: 44px; height: 2px; background: var(--ky-gold); margin: 16px auto 0;
}
body.ky-design .ct-breadcrumbs { font-size: 13px !important; color: var(--ky-muted) !important; }
body.ky-design .ct-breadcrumbs a { color: var(--ky-muted) !important; }
body.ky-design .ct-breadcrumbs a:hover { color: var(--ky-green) !important; }
body.ky-design .hero-section .page-description { color: var(--ky-muted); max-width: 640px; margin: 12px auto 0; }

/* ---------- Puces de catégories ---------- */
body.ky-design .ky-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
body.ky-design .ky-chip {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 20px;
  background: #fff; border: 1px solid var(--ky-line); color: var(--ky-ink) !important; text-decoration: none;
  font: 500 13.5px var(--ky-sans); white-space: nowrap; transition: background .2s, border-color .2s;
}
body.ky-design .ky-chip:hover { border-color: var(--ky-green); color: var(--ky-green) !important; }
body.ky-design .ky-chip.is-current { background: var(--ky-green); border-color: var(--ky-green); color: #fff !important; }

/* Barre tri / résultats */
body.ky-design .woo-listing-top { margin-bottom: 20px; align-items: center; }
body.ky-design .woocommerce-result-count { font-size: 13px !important; color: var(--ky-muted) !important; text-transform: none !important; letter-spacing: 0 !important; }
body.ky-design .woocommerce-ordering select {
  border: 1px solid var(--ky-line) !important; border-radius: 10px !important; background-color: #fff !important;
  font: 13.5px var(--ky-sans) !important; height: 42px !important; color: var(--ky-ink) !important;
}

/* ---------- Cartes produits (boutique, catégories, produits similaires) ---------- */
body.ky-design ul.products[data-products] { gap: 20px !important; }
body.ky-design ul.products[data-products] > li.product {
  background: #fff !important; border: 1px solid var(--ky-line) !important; border-radius: var(--ky-radius) !important;
  padding: 0 !important; overflow: hidden; display: flex !important; flex-direction: column; text-align: start !important;
  box-shadow: none !important; transition: box-shadow .25s, transform .25s; position: relative;
  --horizontal-alignment: flex-start;
}
body.ky-design ul.products[data-products] > li.product:hover { box-shadow: var(--ky-shadow) !important; transform: translateY(-3px); }
body.ky-design ul.products[data-products] li.product figure {
  width: 100% !important; margin: 0 0 12px !important; background: #fff; padding: 14px; box-sizing: border-box; position: relative;
}
body.ky-design ul.products[data-products] li.product .ct-media-container { border-radius: 10px; overflow: hidden; display: block; }
body.ky-design ul.products[data-products] li.product .ct-media-container img {
  aspect-ratio: 1 / 1 !important; width: 100% !important; height: auto !important; max-width: none !important;
  object-fit: contain !important; mix-blend-mode: multiply;
  transition: transform .3s;
}
body.ky-design ul.products[data-products] li.product:hover .ct-media-container img.wp-post-image { transform: scale(1.04); }
body.ky-design ul.products[data-products] li.product .woocommerce-loop-product__title {
  font: 500 14.5px/1.4 var(--ky-sans) !important; margin: 0 0 4px !important; padding: 0 16px !important; text-align: start;
  min-height: 2.8em; letter-spacing: 0 !important; text-transform: none !important;
}
body.ky-design ul.products[data-products] li.product .woocommerce-loop-product__title a { color: var(--ky-ink) !important; }
body.ky-design ul.products[data-products] li.product .woocommerce-loop-product__title a:hover { color: var(--ky-green) !important; }
body.ky-design ul.products[data-products] li.product .entry-meta { display: none !important; }

body.ky-design ul.products[data-products] li.product .ct-woo-card-actions {
  width: auto !important; margin: auto 0 0 !important; padding: 8px 16px 16px !important; border: 0 !important;
  display: flex !important; flex-direction: column; align-items: stretch !important; gap: 12px;
}
body.ky-design ul.products[data-products] li.product .ct-woo-card-actions > * { flex: none !important; min-height: 0 !important; padding: 0 !important; }
body.ky-design ul.products[data-products] li.product .price {
  justify-content: flex-start !important; font: 600 16px var(--ky-sans) !important; color: var(--ky-ink) !important; gap: 6px;
}
body.ky-design ul.products[data-products] li.product .price::after { display: none !important; }
body.ky-design ul.products[data-products] li.product .price del { font-size: 13px; font-weight: 400; color: var(--ky-muted); opacity: 1; }
body.ky-design ul.products[data-products] li.product .price ins { text-decoration: none; color: var(--ky-green); }

body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .button {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border-radius: 6px !important; background: var(--ky-green) !important; color: #fff !important;
  font: 500 13.5px var(--ky-sans) !important; text-transform: none !important; letter-spacing: 0 !important;
  opacity: 1 !important; visibility: visible !important; transform: none !important; position: static !important;
  padding: 0 12px !important; border: 0 !important; width: 100% !important; box-sizing: border-box;
}
body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .button:hover { background: var(--ky-green-dark) !important; }
body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .add_to_cart_button::before {
  content: ""; width: 16px; height: 16px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.6L20.5 7H6.5'/%3E%3Ccircle cx='9' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.6L20.5 7H6.5'/%3E%3Ccircle cx='9' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .product_type_variable::before { display: none; }
body.ky-design ul.products[data-products] li.product.outofstock .ct-woo-card-actions .button {
  background: transparent !important; color: var(--ky-green) !important; border: 1.5px solid var(--ky-green) !important;
}
body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .button.loading { opacity: .65 !important; }
body.ky-design ul.products[data-products] li.product .added_to_cart {
  display: block !important; text-align: center; font-size: 12.5px !important; color: var(--ky-green) !important;
  text-decoration: underline; background: none !important; min-height: 0 !important;
}

/* Badges */
body.ky-design .onsale, body.ky-design .out-of-stock-badge {
  border-radius: 20px !important; font: 600 11px var(--ky-sans) !important; letter-spacing: .4px !important;
  padding: 0 10px !important; height: 24px; min-height: 0 !important; line-height: 24px !important; text-transform: uppercase;
  top: 22px !important; inset-inline-start: 22px !important; z-index: 2;
}
body.ky-design .onsale { background: var(--ky-gold) !important; color: #fff !important; }
body.ky-design .out-of-stock-badge { background: #6f6a5e !important; color: #fff !important; }

/* Pagination */
body.ky-design .ct-pagination .page-numbers {
  border-radius: 8px !important; border: 1px solid var(--ky-line) !important; background: #fff; color: var(--ky-ink) !important; font-family: var(--ky-sans);
}
body.ky-design .ct-pagination .page-numbers.current { background: var(--ky-green) !important; border-color: var(--ky-green) !important; color: #fff !important; }
body.ky-design .ct-load-more { background: var(--ky-green) !important; border-radius: 6px !important; }

/* Barre latérale */
body.ky-design #sidebar .ct-widget + .ct-widget { margin-top: 26px; }
body.ky-design #sidebar h2, body.ky-design #sidebar h3, body.ky-design #sidebar .widget-title {
  font-family: var(--ky-serif) !important; font-size: 24px !important; font-weight: 600 !important; color: var(--ky-ink) !important; margin-bottom: 12px !important;
}
body.ky-design #sidebar a { color: var(--ky-ink) !important; font-size: 14px; }
body.ky-design #sidebar a:hover { color: var(--ky-green) !important; }
body.ky-design #sidebar .ct-search-form input, body.ky-design #sidebar input[type=number], body.ky-design #sidebar input[type=text] {
  border-radius: 10px !important; border-color: var(--ky-line) !important; background: #fff !important;
}
body.ky-design #sidebar .wc-block-product-categories-list-item-count { color: var(--ky-muted); font-size: 12px; }

/* ---------- Fiche produit ---------- */
body.ky-design.single-product .product-entry-wrapper { gap: 48px; }
body.ky-design .woocommerce-product-gallery .ct-media-container,
body.ky-design .woocommerce-product-gallery .flexy-items > * {
  background: #fff; border-radius: 16px; overflow: hidden;
}
body.ky-design .woocommerce-product-gallery img { mix-blend-mode: multiply; object-fit: contain !important; }
body.ky-design .flexy-pills [data-type="thumbs"] li, body.ky-design .flexy-pills li {
  border-radius: 10px; overflow: hidden; background: #fdfaf4;
}
body.ky-design .entry-summary .product_title {
  font-family: var(--ky-serif) !important; font-weight: 600 !important; font-size: clamp(30px, 3.2vw, 42px) !important;
  line-height: 1.1 !important; color: var(--ky-green-dark) !important; letter-spacing: -.3px; margin-bottom: 12px !important;
}
body.ky-design .entry-summary > .price, body.ky-design .entry-summary .woocommerce-variation-price .price {
  font: 600 24px var(--ky-sans) !important; color: var(--ky-ink) !important;
}
body.ky-design .entry-summary .price ins { text-decoration: none; color: var(--ky-green) !important; }
body.ky-design .entry-summary .price del { font-size: 16px; color: var(--ky-muted) !important; }
body.ky-design .entry-summary .woocommerce-product-details__short-description { color: #4a463b; line-height: 1.7; }
body.ky-design .entry-summary .ct-product-divider { border-color: var(--ky-line) !important; }

/* Formats (variations) */
body.ky-design .variations_form .variations th.label, body.ky-design .variations_form .variations label {
  font: 600 13px var(--ky-sans) !important; text-transform: uppercase; letter-spacing: .5px; color: var(--ky-ink) !important;
}
body.ky-design .variations_form select {
  border: 1px solid var(--ky-line) !important; border-radius: 10px !important; height: 46px !important; background-color: #fff !important;
}
body.ky-design .ky-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
body.ky-design .ky-swatches + select, body.ky-design .variations_form select.ky-has-swatches {
  position: absolute !important; opacity: 0 !important; pointer-events: none; width: 1px !important; height: 1px !important;
}
body.ky-design button.ky-swatch {
  min-width: 72px; height: 44px; padding: 0 18px !important; border-radius: 8px !important; cursor: pointer;
  background: #fff !important; color: var(--ky-ink) !important; border: 1.5px solid var(--ky-line) !important;
  font: 500 14px var(--ky-sans) !important; box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important;
}
body.ky-design button.ky-swatch:hover { border-color: var(--ky-green) !important; }
body.ky-design button.ky-swatch.is-active { background: var(--ky-green) !important; border-color: var(--ky-green) !important; color: #fff !important; }
body.ky-design .variations_form .reset_variations { font-size: 12.5px; color: var(--ky-muted) !important; }

/* Quantité + bouton d'achat */
body.ky-design .entry-summary .ct-cart-actions { gap: 12px; }
body.ky-design .entry-summary .quantity[data-type] {
  border-radius: 8px !important; border: 1.5px solid var(--ky-line) !important; background: #fff; height: 52px !important;
  --quantity-height: 52px;
}
body.ky-design .entry-summary .quantity input { border: 0 !important; font: 600 15px var(--ky-sans) !important; }
body.ky-design .entry-summary .single_add_to_cart_button {
  height: 52px !important; border-radius: 6px !important; background: var(--ky-green) !important; color: #fff !important;
  font: 500 15px var(--ky-sans) !important; text-transform: none !important; letter-spacing: 0 !important; padding: 0 28px !important; flex: 1;
}
body.ky-design .entry-summary .single_add_to_cart_button:hover { background: var(--ky-green-dark) !important; }
body.ky-design .entry-summary .single_add_to_cart_button.disabled { opacity: .55 !important; }
body.ky-design .entry-summary .product_meta { font-size: 13px; color: var(--ky-muted); }
body.ky-design .entry-summary .product_meta a { color: var(--ky-green) !important; }

/* Garanties */
body.ky-design .ky-assurances {
  list-style: none; margin: 22px 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
body.ky-design .ky-assurances li {
  display: flex; align-items: center; gap: 10px; background: var(--ky-sand); border: 1px solid var(--ky-line);
  border-radius: 12px; padding: 12px; margin: 0 !important; font-size: 12px; line-height: 1.35; color: var(--ky-muted);
}
body.ky-design .ky-assurances .ky-ico { width: 26px; height: 26px; color: var(--ky-gold); flex: none; }
body.ky-design .ky-assurances strong { display: block; color: var(--ky-ink); font-size: 12.5px; font-weight: 600; }

/* Onglets description / avis */
body.ky-design .woocommerce-tabs .tabs { border-color: var(--ky-line) !important; }
body.ky-design .woocommerce-tabs .tabs li a {
  font: 600 13px var(--ky-sans) !important; letter-spacing: .5px; color: var(--ky-muted) !important; text-transform: uppercase;
}
body.ky-design .woocommerce-tabs .tabs li.active a { color: var(--ky-green) !important; }
body.ky-design .woocommerce-tabs .tabs li.active::before, body.ky-design .woocommerce-tabs .tabs li.active a::after { background: var(--ky-gold) !important; }
body.ky-design .woocommerce-Tabs-panel { color: #4a463b; line-height: 1.75; }
body.ky-design .related > h2, body.ky-design .up-sells > h2, body.ky-design .ct-module-title {
  font-family: var(--ky-serif) !important; font-weight: 600 !important; font-size: 32px !important; color: var(--ky-ink) !important;
}

/* Boutons WooCommerce génériques (panier, notices…) */
body.ky-design .woocommerce-message .button, body.ky-design .woocommerce-info .button {
  background: var(--ky-green) !important; color: #fff !important; border-radius: 6px !important;
}
body.ky-design .woocommerce-message, body.ky-design .woocommerce-info {
  border-radius: 12px; border-color: var(--ky-line) !important; background: #fff !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  body.ky-design .hero-section[data-type="type-2"] .entry-header { padding: 26px 16px 24px !important; }
  body.ky-design .hero-section .page-title::after { margin-top: 12px; }

  body.ky-design .ky-chips {
    flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px 6px; scrollbar-width: none;
  }
  body.ky-design .ky-chips::-webkit-scrollbar { display: none; }
  body.ky-design .ky-chip { height: 36px; font-size: 13px; }

  body.ky-design ul.products[data-products] { gap: 10px !important; }
  body.ky-design ul.products[data-products] li.product figure { padding: 8px; margin-bottom: 8px !important; }
  body.ky-design ul.products[data-products] li.product .woocommerce-loop-product__title { font-size: 12.5px !important; padding: 0 10px !important; }
  body.ky-design ul.products[data-products] li.product .ct-woo-card-actions { padding: 6px 10px 10px !important; gap: 8px; }
  body.ky-design ul.products[data-products] li.product .price { font-size: 14.5px !important; }
  body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .button { height: 36px; font-size: 12px !important; gap: 6px; padding: 0 6px !important; }
  body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .add_to_cart_button::before { width: 14px; height: 14px; }
  body.ky-design .onsale, body.ky-design .out-of-stock-badge { top: 14px !important; inset-inline-start: 14px !important; font-size: 10px !important; height: 22px; line-height: 22px !important; }

  body.ky-design .ky-assurances { grid-template-columns: 1fr; }
  body.ky-design .entry-summary .product_title { font-size: 30px !important; }
}

body.ky-design .price .ky-from { font-weight: 400; font-size: .8em; color: var(--ky-muted); }
body.ky-design ul.products[data-products] > li.product { align-items: stretch !important; }
body.ky-design ul.products[data-products] li.product .ct-media-container { width: 100% !important; }
body.ky-design ul.products[data-products] li.product .ct-woo-card-actions { width: 100% !important; box-sizing: border-box; }
body.ky-design .ky-assurances { grid-template-columns: 1fr !important; max-width: 420px; }

/* ---------- FAQ ---------- */
body.ky-design .ky-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
body.ky-design .ky-faq-item { background: #fff; border: 1px solid var(--ky-line); border-radius: 14px; overflow: hidden; }
body.ky-design .ky-faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font: 600 16px/1.45 var(--ky-sans); color: var(--ky-ink);
}
body.ky-design .ky-faq-item summary::-webkit-details-marker { display: none; }
body.ky-design .ky-faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--ky-sand); color: var(--ky-green);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 400;
}
body.ky-design.rtl .ky-faq-item summary { padding: 18px 22px 18px 56px; }
body.ky-design .ky-faq-item[open] summary::after { content: "−"; background: var(--ky-green); color: #fff; }
body.ky-design .ky-faq-item[open] summary { color: var(--ky-green); }
body.ky-design .ky-faq-answer { padding: 0 22px 20px; color: #4a463b; line-height: 1.75; }
body.ky-design .ky-faq-answer p { margin: 0; }
body.ky-design .ky-faq-cta { max-width: 820px; margin: 34px auto 0; text-align: center; padding: 28px; background: var(--ky-sand); border-radius: 16px; }
body.ky-design .ky-faq-cta p { font-family: var(--ky-serif); font-size: 24px; font-weight: 600; margin: 0 0 14px; color: var(--ky-ink); }

/* ---------- Articles du blog ---------- */
body.ky-design.single-post .entry-content { font-size: 17px; line-height: 1.8; color: #3d3a32; }
body.ky-design.single-post .entry-content h2 {
  font-family: var(--ky-serif) !important; font-weight: 600 !important; font-size: 30px !important; color: var(--ky-green-dark) !important;
  margin-top: 1.6em !important; letter-spacing: 0;
}
body.ky-design.single-post .entry-content ul:not(.ky-product-links) li::marker { color: var(--ky-gold); }
body.ky-design .ky-product-links { list-style: none !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
body.ky-design .ky-product-links li { margin: 0 !important; }
body.ky-design .ky-product-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; box-sizing: border-box;
  padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--ky-line);
  color: var(--ky-green) !important; text-decoration: none !important; font: 600 14.5px/1.35 var(--ky-sans);
}
body.ky-design .ky-product-links a::after { content: "→"; color: var(--ky-gold); }
body.ky-design.rtl .ky-product-links a::after { content: "←"; }
body.ky-design .ky-product-links a:hover { border-color: var(--ky-green); }
body.ky-design.single-post .entry-header .page-title { font-family: var(--ky-serif) !important; color: var(--ky-green-dark) !important; }
body.ky-design .entries .entry-card, body.ky-design [data-archive] article { border-radius: 14px; }
body.ky-design .entry-card .entry-title a { color: var(--ky-ink) !important; font-family: var(--ky-serif); }
body.ky-design .entry-card .entry-title a:hover { color: var(--ky-green) !important; }
body.ky-design .entry-card .ct-media-container { border-radius: 12px; overflow: hidden; }
body.ky-design .entry-button, body.ky-design .entry-card .ct-button { background: var(--ky-green) !important; border-radius: 6px !important; color: #fff !important; }
/* Article centré, sans colonne latérale vide */
body.ky-design.single-post .ct-container[data-sidebar] { display: block !important; max-width: 820px; }
body.ky-design.single-post #sidebar, body.ky-design.single-post .ct-container[data-sidebar] > aside { display: none !important; }
body.ky-design.single-post .entry-header { text-align: center; }
body.ky-design.single-post .entry-header .page-description { margin-inline: auto; max-width: 640px; }
body.ky-design.single-post .entry-header .entry-meta { justify-content: center; }
body.ky-design .ky-post-cover-wrap { margin: 0 0 32px !important; }
body.ky-design .ky-post-cover { width: 100%; height: auto; max-height: 440px; object-fit: cover; border-radius: 18px; display: block; }

/* ---------- Achat depuis les listes ---------- */
body.ky-design .ky-fmt { display: flex; flex-direction: column; gap: 4px; margin: 0 0 2px; }
body.ky-design .ky-fmt-label { font: 600 11.5px var(--ky-sans); text-transform: uppercase; letter-spacing: .5px; color: var(--ky-muted); }
body.ky-design.rtl .ky-fmt-label { letter-spacing: 0; font-size: 12.5px; }
body.ky-design select.ky-fmt-select {
  width: 100%; height: 42px !important; padding: 0 36px 0 12px !important; border-radius: 8px !important;
  border: 1.5px solid var(--ky-line) !important; background-color: #fdfaf4 !important; color: var(--ky-ink) !important;
  font: 600 14px var(--ky-sans) !important; cursor: pointer; box-shadow: none !important;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333492a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 10px center !important; background-size: 18px !important;
}
body.ky-design.rtl select.ky-fmt-select { padding: 0 12px 0 36px !important; background-position: left 10px center !important; }
body.ky-design select.ky-fmt-select:hover, body.ky-design select.ky-fmt-select:focus { border-color: var(--ky-green) !important; outline: none; }

/* Bouton « Ajouter au panier » : grand, contrasté, avec icône (listes + accueil) */
body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .add_to_cart_button,
body.ky-design .ky-card .add_to_cart_button,
body.ky-design .ky-card .ky-add {
  height: 46px !important; font: 600 15px var(--ky-sans) !important; border-radius: 8px !important;
  background: var(--ky-green) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(51, 73, 42, .25) !important;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; width: 100% !important;
  transition: background .2s, transform .15s, box-shadow .2s; text-decoration: none !important; border: 0 !important;
}
body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .add_to_cart_button:hover,
body.ky-design .ky-card .add_to_cart_button:hover {
  background: var(--ky-green-dark) !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(51, 73, 42, .32) !important;
}
body.ky-design .ky-card .ky-add::before {
  content: ""; width: 17px; height: 17px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.6L20.5 7H6.5'/%3E%3Ccircle cx='9' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.6L20.5 7H6.5'/%3E%3Ccircle cx='9' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .ky-add::before { display: block !important; }
/* Confirmation d'ajout */
body.ky-design .add_to_cart_button.added { background: var(--ky-gold) !important; box-shadow: 0 4px 12px rgba(196, 143, 44, .3) !important; }
body.ky-design .add_to_cart_button.added::after { content: " ✓"; margin-inline-start: 2px; }
body.ky-design .add_to_cart_button.loading { opacity: .7 !important; pointer-events: none; }
body.ky-design li.product .added_to_cart, body.ky-design .ky-card .added_to_cart {
  display: block !important; text-align: center; margin-top: 8px; font: 600 13px var(--ky-sans) !important;
  color: var(--ky-green) !important; text-decoration: underline !important; background: none !important; height: auto !important; box-shadow: none !important;
}
/* Prix : on garde le prix et la sélection sur une même largeur */
body.ky-design .ky-card .ky-card-price { margin-bottom: 10px; }
body.ky-design .ky-card .ky-fmt { margin-bottom: 8px; }

/* Bouton « Retour » sur la fiche produit */
body.ky-design .ky-back {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 14px 8px 10px; border-radius: 20px;
  background: #fff; border: 1px solid var(--ky-line); color: var(--ky-green) !important; text-decoration: none !important;
  font: 600 14px var(--ky-sans);
}
body.ky-design .ky-back:hover { border-color: var(--ky-green); }
body.ky-design .ky-back .ky-ico { width: 18px; height: 18px; transform: scaleX(-1); }
body.ky-design.rtl .ky-back .ky-ico { transform: none; }
body.ky-design.rtl .ky-back { padding: 8px 10px 8px 14px; }

@media (max-width: 1024px) {
  body.ky-design ul.products[data-products] li.product .ct-woo-card-actions .add_to_cart_button,
  body.ky-design .ky-card .add_to_cart_button, body.ky-design .ky-card .ky-add { height: 42px !important; font-size: 13.5px !important; gap: 6px; }
  body.ky-design select.ky-fmt-select { height: 38px !important; font-size: 13px !important; padding: 0 30px 0 10px !important; background-position: right 8px center !important; }
  body.ky-design.rtl select.ky-fmt-select { padding: 0 10px 0 30px !important; background-position: left 8px center !important; }
  body.ky-design .ky-fmt-label { display: none; }
  body.ky-design .ky-back { margin-bottom: 12px; font-size: 13.5px; }
}

/* Icône « œil » sur les images produits : montre qu'on peut ouvrir la fiche */
body.ky-design ul.products[data-products] li.product .ct-media-container,
body.ky-design .ky-card .ky-card-media { position: relative; }
body.ky-design ul.products[data-products] li.product .ct-media-container::after,
body.ky-design .ky-card .ky-card-media::after {
  content: ""; position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background-color: rgba(255, 255, 255, .95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333492a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 21px;
  box-shadow: 0 2px 10px rgba(60, 45, 20, .18); transition: transform .2s, background-color .2s;
}
body.ky-design ul.products[data-products] li.product:hover .ct-media-container::after,
body.ky-design .ky-card:hover .ky-card-media::after {
  transform: scale(1.1);
  background-color: var(--ky-green);
  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='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
@media (max-width: 1024px) {
  body.ky-design ul.products[data-products] li.product .ct-media-container::after,
  body.ky-design .ky-card .ky-card-media::after { width: 32px; height: 32px; background-size: 18px; top: 6px; inset-inline-end: 6px; }
}
@media (max-width: 1024px) {
  body.ky-design .woo-listing-top { display: flex !important; width: 100%; margin-bottom: 14px; }
  body.ky-design .woocommerce-ordering { width: 100%; margin: 0 !important; }
  body.ky-design .woocommerce-ordering select { width: 100% !important; max-width: none !important; height: 42px !important; padding-inline: 12px 32px !important; }
}
body.ky-design .onsale { background: var(--ky-gold-text, #93651a) !important; }
body.ky-design .add_to_cart_button.added { background: var(--ky-gold-text, #93651a) !important; }
body.ky-design #footer h2.wp-block-heading { font-size: 20px !important; margin-bottom: 14px; }
