/* ============================================================
   KIMONO PLAGE — Single Product V2 (Live Integration)
   Maquette: 02_produit_v2.html
   Direction: minimaliste éditorial premium
   ============================================================ */

/* Hide Kadence default styling on product pages */
body.single-product #main, body.single-product #content, body.single-product .site-content, body.single-product #wrapper { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body.single-product .entry-content, body.single-product .entry-content > * { max-width: none !important; padding: 0 !important; margin: 0 !important; }

/* CSS variables */
.kp-v2-product-page {
  --gold: #B89968;
  --gold-dark: #8E7547;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --muted: #8B8680;
  --line: rgba(26,26,26,0.08);
  --line-strong: rgba(26,26,26,0.16);
  --bg-pure: #FFFFFF;
  --bg-paper: #FAF8F4;
  --bg-sand: #EFE9DD;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Inter', -apple-system, sans-serif;
  --page-px: 20px;
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--bg-pure);
}
@media (min-width: 768px) { .kp-v2-product-page { --page-px: 32px; } }
@media (min-width: 1024px) { .kp-v2-product-page { --page-px: 48px; } }

/* BREADCRUMB */
.kp-v2-crumb {
  padding: 14px var(--page-px);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.kp-v2-crumb a { color: var(--ink); text-decoration: none; }
.kp-v2-crumb a:hover { color: var(--gold); }
.kp-v2-crumb .sep { margin: 0 8px; color: var(--line-strong); }

/* PRODUCT LAYOUT */
.kp-v2-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 1024px) {
  .kp-v2-product-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px var(--page-px);
  }
}

/* GALLERY */
.kp-v2-gallery {
  position: relative;
}
.kp-v2-gallery .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0 !important;
}
.kp-v2-gallery .woocommerce-product-gallery__image img,
.kp-v2-gallery .wp-post-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 0;
}
@media (min-width: 1024px) {
  .kp-v2-gallery .woocommerce-product-gallery__image img { aspect-ratio: 4/5; }
}

/* Hide WC default zoom trigger styling */
.kp-v2-gallery .woocommerce-product-gallery__trigger {
  background: rgba(255,255,255,0.9) !important;
  border-radius: 50%;
  width: 40px; height: 40px;
  top: 16px !important;
  right: 60px !important;
}

/* Gallery thumbs */
.kp-v2-gallery .flex-control-thumbs {
  display: flex !important;
  gap: 8px !important;
  padding: 8px var(--page-px) !important;
  margin: 0 !important;
  overflow-x: auto;
}
.kp-v2-gallery .flex-control-thumbs li {
  flex: 0 0 60px !important;
  width: 60px !important;
  height: 75px !important;
  margin: 0 !important;
}
.kp-v2-gallery .flex-control-thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.kp-v2-gallery .flex-control-thumbs img.flex-active,
.kp-v2-gallery .flex-control-thumbs img:hover {
  opacity: 1;
  border: 1.5px solid var(--ink);
}

/* Favoris button */
.kp-v2-fav {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
}

/* Sale badge */
.kp-v2-product-page .onsale {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  background: var(--bg-pure) !important;
  color: var(--ink) !important;
  font-family: var(--f-sans) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 6px 14px !important;
  border-radius: 0 !important;
  min-width: 0 !important;
  line-height: 1.5 !important;
  min-height: 0 !important;
  z-index: 2;
}

/* SUMMARY */
.kp-v2-summary {
  padding: 32px var(--page-px) 16px !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
}
@media (min-width: 1024px) {
  .kp-v2-summary { padding: 0 !important; position: sticky; top: 100px; height: fit-content; }
}
.kp-v2-summary-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.kp-v2-summary .product_title.entry-title,
.kp-v2-product-page h1.product_title {
  font-family: var(--f-serif) !important;
  font-size: clamp(28px, 6vw, 40px) !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink) !important;
}
.kp-v2-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}
.kp-v2-stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.kp-v2-rating a { color: var(--ink-soft); text-decoration: underline; }

/* PRICE */
.kp-v2-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.kp-v2-price {
  font-family: var(--f-sans);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.kp-v2-price .woocommerce-Price-amount { font-weight: 500; }
.kp-v2-price-old {
  font-size: 18px;
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
}
.kp-v2-price-save {
  background: var(--bg-sand);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.kp-v2-tax-info {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Short description */
.kp-v2-short-desc {
  background: var(--bg-paper);
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.kp-v2-short-desc p { margin: 0 0 8px; }
.kp-v2-short-desc p:last-child { margin-bottom: 0; }
.kp-v2-short-desc ul { margin: 4px 0 0 18px; padding: 0; }
.kp-v2-short-desc li { margin-bottom: 4px; }

/* === ADD TO CART zone (variations + form) === */
.kp-v2-atc-wrapper { margin-bottom: 16px; }

/* Variations table - hide labels, use custom */
.kp-v2-summary table.variations {
  border: none !important;
  margin: 0 0 16px 0 !important;
  width: 100%;
}
.kp-v2-summary table.variations td,
.kp-v2-summary table.variations th {
  border: none !important;
  padding: 6px 0 !important;
  background: none !important;
}
.kp-v2-summary table.variations th.label label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.kp-v2-summary table.variations select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-pure);
  font-size: 14px;
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--f-sans);
  outline: none;
  transition: border-color 0.15s ease;
  cursor: pointer;
}
.kp-v2-summary table.variations select:focus {
  border-color: var(--ink);
}
.kp-v2-summary .reset_variations { font-size: 11px !important; color: var(--muted) !important; }

/* Quantity + ATC */
.kp-v2-summary form.cart {
  margin: 0 0 16px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap;
}
.kp-v2-summary .quantity {
  display: flex !important;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-pure);
}
.kp-v2-summary .quantity input.qty {
  width: 60px;
  padding: 14px 0;
  text-align: center;
  border: none !important;
  background: transparent !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  -moz-appearance: textfield;
}
.kp-v2-summary .quantity input.qty::-webkit-inner-spin-button,
.kp-v2-summary .quantity input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.kp-v2-summary .single_add_to_cart_button,
.kp-v2-summary button[name="add-to-cart"] {
  flex: 1 !important;
  background: var(--ink) !important;
  color: var(--bg-pure) !important;
  padding: 20px 32px !important;
  border-radius: 999px !important;
  font-family: var(--f-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  border: none !important;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 200px;
  min-height: 56px;
}
.kp-v2-summary .single_add_to_cart_button:hover {
  background: var(--ink-soft) !important;
}

/* REASSURANCE */
.kp-v2-reass {
  background: var(--bg-paper);
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kp-v2-reass-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.kp-v2-reass-icon { font-size: 18px; flex-shrink: 0; }
.kp-v2-reass-row strong { color: var(--ink); font-weight: 500; }

/* META */
.kp-v2-product-meta {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.kp-v2-product-meta a { color: var(--ink); text-decoration: underline; }

/* === DESCRIPTION SECTION === */
.kp-v2-description-section {
  padding: 64px 0 48px;
  max-width: 1080px;
  margin: 0 auto;
  clear: both;
}
.kp-v2-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 40px;
  padding: 0 var(--page-px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.kp-v2-tabs-nav::-webkit-scrollbar { display: none; }
.kp-v2-tab-nav-item {
  background: none;
  border: none;
  padding: 16px 0;
  margin-right: 32px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.kp-v2-tab-nav-item.active { color: var(--ink); }
.kp-v2-tab-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}
.kp-v2-tab-nav-item:hover { color: var(--ink); }
.kp-v2-tab-panels { padding: 0 var(--page-px); }
.kp-v2-tab-panel { display: none; }
.kp-v2-tab-panel.active { display: block; }
.kp-v2-desc-editorial {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.kp-v2-desc-editorial p { margin-bottom: 16px; }
.kp-v2-desc-editorial strong { color: var(--ink); font-weight: 500; }

/* Specs grid */
.kp-v2-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .kp-v2-specs-grid { grid-template-columns: repeat(4, 1fr); }
}
.kp-v2-spec-item {
  text-align: center;
  padding: 24px 12px;
  border: 1px solid var(--line);
  background: var(--bg-pure);
}
.kp-v2-spec-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-paper);
  border-radius: 50%;
  font-size: 20px;
}
.kp-v2-spec-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.kp-v2-spec-value {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

/* Delivery cards */
.kp-v2-delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .kp-v2-delivery-grid { grid-template-columns: 1fr 1fr; } }
.kp-v2-delivery-card {
  background: var(--bg-paper);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.kp-v2-delivery-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-pure);
  border-radius: 50%;
  font-size: 22px;
}
.kp-v2-delivery-card h4 {
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.kp-v2-delivery-card p { font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.kp-v2-delivery-card strong { color: var(--ink); font-weight: 500; }
.kp-v2-delivery-card a { color: var(--gold); text-decoration: underline; }

/* Size table */
.kp-v2-size-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-pure);
}
.kp-v2-size-table thead { background: var(--bg-paper); }
.kp-v2-size-table th {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line-strong);
}
.kp-v2-size-table td {
  padding: 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.kp-v2-size-table td:first-child {
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 500;
}
.kp-v2-size-tip {
  background: var(--bg-paper);
  padding: 16px 20px;
  margin-top: 20px;
  border-left: 2px solid var(--gold);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* === REVIEWS === */
.kp-v2-reviews {
  background: var(--bg-paper);
  padding: 64px 0;
  margin-top: 48px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  clear: both;
}
.kp-v2-reviews-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--page-px);
}
.kp-v2-reviews-summary { text-align: center; margin-bottom: 40px; }
.kp-v2-big-stars {
  font-size: 32px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.kp-v2-reviews-summary h3 {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}

/* === CROSS-SELLS / RELATED === */
.kp-v2-cross-sells {
  padding: 64px 0;
  clear: both;
}
.kp-v2-cross-sells-head {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 var(--page-px);
}
.kp-v2-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin-bottom: 12px;
}
.kp-v2-cross-sells-head h2 {
  font-family: var(--f-serif);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 400;
}

/* WC related products grid */
.related.products,
.kp-v2-cross-sells .related {
  padding: 0 var(--page-px) !important;
  max-width: 1280px;
  margin: 0 auto !important;
}
.related.products > h2 { display: none !important; }
.related.products .products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
@media (min-width: 768px) {
  .related.products .products { grid-template-columns: repeat(4, 1fr) !important; gap: 24px !important; }
}
.related.products .product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: left !important;
}
.related.products .product img {
  width: 100% !important;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 12px !important;
}
.related.products .product h2,
.related.products .product h3,
.related.products .product .woocommerce-loop-product__title {
  font-family: var(--f-sans) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
  padding: 0 !important;
  margin: 0 0 2px !important;
  line-height: 1.3;
}
.related.products .product .price {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  padding: 0 !important;
}
.related.products .product .price del {
  color: var(--muted) !important;
  margin-right: 6px;
  font-weight: 400;
}
/* Hide ATC button on related */
.related.products .product .button { display: none !important; }

/* === STICKY ATC MOBILE === */
.kp-v2-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-pure);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 99;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
@media (max-width: 768px) {
  .kp-v2-sticky-atc { display: flex; }
  body.single-product { padding-bottom: 78px; }
}
.kp-v2-sticky-atc img {
  width: 48px; height: 60px;
  object-fit: cover;
  border-radius: 2px;
}
.kp-v2-sticky-atc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
  min-width: 0;
}
.kp-v2-sticky-atc-name {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kp-v2-sticky-atc-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.kp-v2-sticky-atc button {
  background: var(--ink);
  color: var(--bg-pure);
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  white-space: nowrap;
  cursor: pointer;
}
.kp-v2-sticky-atc button:hover { background: var(--ink-soft); }

/* === BUG FIXES === */
/* 1. Bouton ATC: réduire font + remove letter-spacing pour tenir */
.kp-v2-summary .single_add_to_cart_button,
.kp-v2-summary button[name="add-to-cart"] {
  padding: 18px 20px !important;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

/* 2. Réassurance: enlever default list bullets WC */
.kp-v2-reass {
  list-style: none !important;
}
.kp-v2-reass-row {
  list-style: none !important;
}
.kp-v2-reass-row::before {
  display: none !important;
  content: none !important;
}
.kp-v2-product-page ul, .kp-v2-product-page li { list-style: none !important; }
.kp-v2-product-page .kp-v2-reass li::before { content: none !important; }

/* Hide woocommerce default attribute lists in summary */
.kp-v2-summary .woocommerce-product-attributes,
.kp-v2-summary .product_meta + ul,
.kp-v2-summary .summary > ul:not(.products):not(.tabs) {
  list-style: none !important;
}
.kp-v2-summary li::before { content: none !important; }

/* 3. Tabs: réduire margin pour tenir mobile */
@media (max-width: 768px) {
  .kp-v2-tab-nav-item {
    margin-right: 20px !important;
    font-size: 11px !important;
    letter-spacing: 0.10em !important;
  }
}

/* SVG icons in reassurance */
.kp-v2-reass-icon {
  flex-shrink: 0;
  color: var(--ink);
  width: 18px;
  height: 18px;
}

/* Express Pay buttons */
.kp-v2-express-pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
@media (min-width: 480px) {
  .kp-v2-express-pay { flex-direction: row; }
  .kp-v2-express-pay > * { flex: 1; }
}
.kp-v2-btn-express {
  padding: 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-family: var(--f-sans);
}
.kp-v2-btn-apple { background: #000 !important; color: #fff !important; border: none !important; }
.kp-v2-btn-google { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--ink) !important; }
.kp-v2-btn-express:hover { opacity: 0.9; }
