/* =====================================================================
   Virona Confort — fiche produit (product detail page).
   Loaded after assets/home.css and assets/shop.css (shared header / drawer / search / footer / product cards),
   on single product pages only. Tokens (--vh-*) come from home.css. Markup: product.php.
   Breakpoints (same system as the homepage and the Boutique): ≤1100 tablet, ≤900 stacked, ≤640 mobile.
   ===================================================================== */

body.vp-body { background: #faf8f5; }
.vp-page { padding-bottom: clamp(56px, 6vw, 96px); color: var(--vh-text); }
.vp-page .screen-reader-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.vp-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(24px, 7.1vw, 102px); }
.vp-wrap--narrow { max-width: 720px; padding-top: 60px; }

/* ---------- breadcrumb ---------- */
.vp-crumbs { padding: 26px 0 24px; font-size: 12.5px; letter-spacing: .2px; color: var(--vh-muted); }
.vp-crumbs ol { display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none; }
.vp-crumbs li { display: flex; align-items: center; min-width: 0; white-space: nowrap; }
.vp-crumbs li + li::before { content: '/'; margin: 0 10px; color: #c9c0b4; }
.vp-crumbs li:last-child { flex: 0 1 auto; }
.vp-crumbs li:last-child span { overflow: hidden; text-overflow: ellipsis; color: var(--vh-text); }
.vp-crumbs a { transition: color .15s; }
.vp-crumbs a:hover { color: var(--vh-terra-dark); }

/* ---------- notices (WooCommerce) ---------- */
.vp-notices { margin: 0 0 22px; }
.vp-notices .woocommerce-message,
.vp-notices .woocommerce-info,
.vp-notices .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 10px; padding: 14px 18px; list-style: none;
  background: #f3efe7; border-left: 3px solid var(--vh-olive); font-size: 14.5px; line-height: 1.5; color: var(--vh-text);
}
.vp-notices .woocommerce-error { background: #fbefe9; border-left-color: var(--vh-terra); }
.vp-notices .woocommerce-message .button {
  order: 2; margin-left: auto; padding: 9px 18px; border-radius: 2px; background: var(--vh-olive-cart); color: #f6f1e6 !important;
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}
.vp-notices .woocommerce-message .button:hover { opacity: .9; }

/* ---------- main two-column area ---------- */
.vp-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 5.2vw, 84px); align-items: start; }

/* gallery */
.vp-gallery { min-width: 0; }
.vp-stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #efe8df; }
.vp-track {
  display: flex; height: 100%; margin: 0; padding: 0; list-style: none; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.vp-track::-webkit-scrollbar { display: none; }
.vp-slide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.vp-slide .vp-img, .vp-slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.vp-slide.is-wide img { object-fit: contain; }
.vp-stage .virona-soldout-badge { top: 16px; right: auto; left: 16px; z-index: 3; }
.vp-badge {
  position: absolute; top: 16px; left: 16px; z-index: 3; padding: 5px 10px; border-radius: 2px; background: #8e3f27; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; pointer-events: none;
}
.vp-arrow {
  position: absolute; top: 50%; z-index: 3; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(253, 251, 248, .92); color: var(--vh-ink); opacity: 0; transition: opacity .2s ease, background .2s ease;
}
.vp-arrow--prev { left: 14px; }
.vp-arrow--next { right: 14px; }
.vp-arrow--prev svg { transform: rotate(90deg); }
.vp-arrow--next svg { transform: rotate(-90deg); }
.vp-arrow:hover { background: #fff; }
.vp-arrow:disabled { opacity: 0 !important; pointer-events: none; }
@media (hover: hover) { .vp-stage:hover .vp-arrow, .vp-stage:focus-within .vp-arrow { opacity: 1; } }
.vp-count {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; padding: 4px 11px; border-radius: 99px; background: rgba(27, 26, 24, .62);
  color: #fff; font-size: 12px; letter-spacing: .6px; pointer-events: none;
}
.vp-thumbs { display: flex; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.vp-thumbs::-webkit-scrollbar { display: none; }
.vp-thumbs li { flex: none; }
.vp-thumb {
  display: block; width: 88px; height: 88px; padding: 0; overflow: hidden; border: 1px solid transparent; background: #efe8df; opacity: .72;
  transition: opacity .2s ease, border-color .2s ease;
}
.vp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vp-thumb:hover { opacity: 1; }
.vp-thumb.is-active { opacity: 1; border-color: var(--vh-ink); }

/* information column */
.vp-info { min-width: 0; max-width: 600px; padding-top: 2px; }
.vp-cat { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: 3.6px; text-transform: uppercase; color: var(--vh-terra); }
.vp-cat a:hover { color: var(--vh-terra-dark); }
.vp-title {
  margin: 0; font-family: var(--vh-serif); font-weight: 400; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.12;
  letter-spacing: -.6px; color: var(--vh-ink); text-transform: none;
}
.vp-price { margin-top: 18px; font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--vh-ink); }
.vp-price .price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.vp-price ins { order: 1; text-decoration: none; background: none; color: #8e3f27; }
.vp-price del { order: 2; font-size: .62em; font-weight: 400; color: #9a948c; }
.vp-price .woocommerce-Price-currencySymbol { margin-left: 2px; font-size: .62em; font-weight: 500; letter-spacing: .6px; }
.vp-price .vp-from { font-size: 13px; font-weight: 400; letter-spacing: .4px; color: var(--vh-muted); }
.vp-short { margin-top: 20px; font-size: 16px; line-height: 1.75; color: #4a4641; }
.vp-short p { margin: 0 0 .8em; }
.vp-short > :last-child { margin-bottom: 0; }

/* purchase area */
.vp-buy { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--vh-line); }
.vp-buy .variations_form, .vp-buy form.cart { margin: 0; }
.vp-enhanced table.variations, .vp-enhanced .reset_variations { display: none !important; }
.vp-buy table.variations { width: 100%; margin: 0 0 18px; border-collapse: collapse; }
.vp-buy table.variations th, .vp-buy table.variations td { display: block; padding: 0 0 8px; text-align: left; border: 0; background: none; }
.vp-buy table.variations label { font-size: 12px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; }
.vp-buy table.variations select { width: 100%; max-width: 360px; height: 48px; padding: 0 12px; border: 1px solid #d9d1c5; background: #fdfbf8; font: inherit; }

.vp-opt { margin: 0 0 24px; }
.vp-opt__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.vp-opt__label { font-size: 12px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: var(--vh-ink); }
.vp-opt__value { font-size: 14px; font-weight: 400; color: var(--vh-muted); }
.vp-opt.is-missing .vp-opt__label { color: #8e3f27; }

.vp-sizes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.vp-size {
  position: relative; min-width: 58px; height: 50px; padding: 0 14px; border: 1px solid #d9d1c5; border-radius: 2px; background: #fdfbf8;
  color: var(--vh-ink); font: 500 15px var(--vh-sans); transition: border-color .15s, background .15s, color .15s;
}
.vp-size:hover:not(:disabled) { border-color: var(--vh-ink); }
.vp-size[aria-checked="true"] { background: var(--vh-olive-btn); border-color: var(--vh-olive-btn); color: #f6f1e6; }
.vp-size:disabled { border-color: #ebe5dc; background: transparent; color: #b6aea3; cursor: not-allowed; }
.vp-size:disabled::after {
  content: ''; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 1px solid #c9c0b4; transform: rotate(-24deg);
}

.vp-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.vp-swatch { position: relative; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.vp-swatch::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--sw, #d9d1c5);
  box-shadow: inset 0 0 0 1px rgba(27, 26, 24, .16);
}
.vp-swatch::after { content: ''; position: absolute; inset: 0; border: 1.5px solid transparent; border-radius: 50%; transition: border-color .15s; }
.vp-swatch:hover:not(:disabled)::after { border-color: #b8aea0; }
.vp-swatch[aria-checked="true"]::after { border-color: var(--vh-ink); }
.vp-swatch:disabled { opacity: .35; cursor: not-allowed; }
.vp-colours-static { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.vp-colours-static li { display: flex; align-items: center; gap: 9px; }
.vp-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--sw, #d9d1c5); box-shadow: inset 0 0 0 1px rgba(27, 26, 24, .16); }

.vp-stock { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; font-size: 14px; font-weight: 500; color: var(--vh-text); }
.vp-stock__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #6f7d3f; }
.vp-stock.is-low .vp-stock__dot { background: var(--vh-terra); }
.vp-stock.is-out .vp-stock__dot { background: #b5aca0; }
.vp-stock.is-out { color: var(--vh-muted); }

.vp-msg { margin: 0 0 14px; padding: 11px 14px; border-left: 2px solid var(--vh-terra); background: #fbefe9; font-size: 14px; line-height: 1.5; color: #8e3f27; }

.vp-buy .single_variation { margin: 0; }
.vp-buy .single_variation .woocommerce-variation-price,
.vp-buy .single_variation .woocommerce-variation-availability { display: none; }
.vp-buy .woocommerce-variation-description { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: #4a4641; }
.vp-buy .woocommerce-variation-description p { margin: 0; }

.vp-buy form.cart:not(.variations_form), .vp-buy .woocommerce-variation-add-to-cart { display: flex; align-items: stretch; gap: 12px; }
.vp-buy .quantity { display: flex; flex: none; align-items: stretch; height: 56px; border: 1px solid #d9d1c5; border-radius: 2px; background: #fdfbf8; }
.vp-buy .quantity input.qty {
  width: 46px; height: 100%; padding: 0; border: 0; background: transparent; text-align: center; color: var(--vh-ink);
  font: 600 16px var(--vh-sans); -moz-appearance: textfield; appearance: textfield;
}
.vp-buy .quantity input.qty::-webkit-outer-spin-button, .vp-buy .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vp-qty-btn { width: 44px; padding: 0; border: 0; background: transparent; color: var(--vh-ink); font: 400 22px/1 var(--vh-sans); }
.vp-qty-btn:hover:not(:disabled) { color: var(--vh-terra-dark); }
.vp-qty-btn:disabled { opacity: .3; cursor: not-allowed; }

.vp-buy .single_add_to_cart_button, .vp-buynow, .vp-cta {
  display: flex; flex: 1; align-items: center; justify-content: center; gap: 12px; min-width: 0; height: 56px; padding: 0 22px; border: 0; border-radius: 3px;
  background: var(--vh-olive-cart); color: #f6f1e6; font: 600 13px/1 var(--vh-sans); letter-spacing: 1.4px; text-transform: uppercase;
  transition: background .2s ease;
}
.vp-buy .single_add_to_cart_button::before {
  content: ''; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8.5h14l-1.1 11.2a1 1 0 0 1-1 .8H7.1a1 1 0 0 1-1-.8z'/%3E%3Cpath d='M8.5 8.5V7a3.5 3.5 0 0 1 7 0v1.5'/%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='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8.5h14l-1.1 11.2a1 1 0 0 1-1 .8H7.1a1 1 0 0 1-1-.8z'/%3E%3Cpath d='M8.5 8.5V7a3.5 3.5 0 0 1 7 0v1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vp-buy .single_add_to_cart_button:hover:not(.disabled) { background: #2f2e18; }
.vp-buy .single_add_to_cart_button.disabled { opacity: .5; cursor: pointer; }
.vp-buy .single_add_to_cart_button.wc-variation-is-unavailable { background: #d9d3c9; color: #6f685f; opacity: 1; cursor: not-allowed; }
.vp-cta--soldout, .vp-cta--soldout:disabled { width: 100%; background: #d9d3c9; color: #6f685f; cursor: not-allowed; }
.vp-buy .single_add_to_cart_button.loading { opacity: .6; }
.vp-buy .added_to_cart { display: none; }

/* reassurance */
.vp-assure { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--vh-line); }
.vp-assure li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--vh-line); }
.vp-assure .vh-i { margin-top: 1px; color: var(--vh-olive); }
.vp-assure strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--vh-ink); }
.vp-assure span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--vh-muted); }
.vp-assure a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c0b4; }
.vp-assure a:hover { color: var(--vh-terra-dark); text-decoration-color: currentColor; }

/* ---------- sections under the product ---------- */
.vp-section { margin-top: clamp(48px, 5.5vw, 80px); padding-top: clamp(40px, 4.4vw, 64px); border-top: 1px solid var(--vh-line); }
.vp-h2 { margin: 0 0 22px; font-family: var(--vh-serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.3px; color: var(--vh-ink); }
.vp-details__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.vp-details__grid.has-both { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.vp-prose { max-width: 760px; font-size: 16px; line-height: 1.8; color: #4a4641; }
.vp-prose p { margin: 0 0 1em; }
.vp-prose ul, .vp-prose ol { margin: 0 0 1em; padding-left: 1.2em; }
.vp-prose ul { list-style: disc; }
.vp-prose ol { list-style: decimal; }
.vp-prose > :last-child { margin-bottom: 0; }
.vp-specs { margin: 0; }
.vp-specs > div { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--vh-line); }
.vp-specs > div:first-child { border-top: 1px solid var(--vh-line); }
.vp-specs dt { flex: none; width: 120px; font-size: 14px; color: var(--vh-muted); }
.vp-specs dd { margin: 0; font-size: 15px; color: var(--vh-ink); }

/* reviews (WooCommerce markup) */
.vp-reviews #reviews { max-width: 760px; font-size: 15px; line-height: 1.7; }
.vp-h2__count { font-size: .6em; color: var(--vh-muted); }
.vp-reviews .woocommerce-Reviews-title { display: none; }
.vp-reviews .comment-reply-title { display: block; margin: 0 0 14px; font-family: var(--vh-serif); font-size: 22px; font-weight: 400; color: var(--vh-ink); }
.vp-reviews .woocommerce-noreviews, .vp-reviews .woocommerce-verification-required { margin: 0 0 12px; color: var(--vh-muted); }
.vp-reviews ol.commentlist { margin: 0 0 28px; padding: 0; list-style: none; }
.vp-reviews ol.commentlist li { margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--vh-line); }
.vp-reviews .comment_container { display: flex; gap: 16px; }
.vp-reviews .comment_container img.avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; }
.vp-reviews .comment-text { flex: 1; min-width: 0; }
.vp-reviews .meta { margin: 6px 0; font-size: 13.5px; color: var(--vh-muted); }
.vp-reviews .meta strong { color: var(--vh-ink); }
.vp-reviews .description p { margin: 0; }
.vp-reviews .star-rating, .vp-reviews p.stars a { font-size: 0; }
.vp-reviews .star-rating { position: relative; display: block; width: 5.4em; height: 1.1em; overflow: hidden; font-size: 15px; letter-spacing: 2px; line-height: 1.1; }
.vp-reviews .star-rating::before { content: '★★★★★'; position: absolute; left: 0; top: 0; color: #d9d1c5; }
.vp-reviews .star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; padding-top: 3em; }
.vp-reviews .star-rating span::before { content: '★★★★★'; position: absolute; left: 0; top: 0; color: var(--vh-terra); }
.vp-reviews p.stars { margin: 4px 0 16px; }
.vp-reviews p.stars span { display: inline-flex; gap: 6px; }
.vp-reviews p.stars a { position: relative; display: block; width: 24px; height: 24px; text-decoration: none; }
.vp-reviews p.stars a::before { content: '★'; position: absolute; inset: 0; font-size: 24px; line-height: 24px; text-align: center; color: #d9d1c5; }
.vp-reviews p.stars:hover a::before, .vp-reviews p.stars.selected a::before { color: var(--vh-terra); }
.vp-reviews p.stars a:hover ~ a::before, .vp-reviews p.stars.selected a.active ~ a::before { color: #d9d1c5; }
.vp-reviews p.stars.selected a.active::before { color: var(--vh-terra); }
.vp-reviews #review_form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: .4px; }
.vp-reviews #review_form input[type="text"], .vp-reviews #review_form input[type="email"], .vp-reviews #review_form textarea, .vp-reviews #review_form select {
  width: 100%; padding: 12px 14px; border: 1px solid #d9d1c5; border-radius: 2px; background: #fdfbf8; font: inherit; color: var(--vh-ink);
}
.vp-reviews #review_form .form-submit input[type="submit"] {
  height: 48px; padding: 0 28px; border: 0; border-radius: 3px; background: var(--vh-olive-cart); color: #f6f1e6;
  font: 600 12.5px var(--vh-sans); letter-spacing: 1.3px; text-transform: uppercase; cursor: pointer;
}

/* related products reuse the Boutique's product cards */
.vp-related .vs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .vp-main { gap: 40px; }
  .vp-thumb { width: 72px; height: 72px; }
  .vp-details__grid.has-both { gap: 48px; }
  .vp-sizes { gap: 8px; }
  .vp-size { min-width: 52px; padding: 0 10px; }
}

/* ---------- tablet portrait (834): still two columns, a little tighter ---------- */
@media (max-width: 900px) {
  .vp-wrap { padding: 0 32px; }
  .vp-crumbs { padding: 20px 0 18px; }
  .vp-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .vp-title { font-size: 32px; }
  .vp-size { min-width: 48px; padding: 0 8px; }
  .vp-buy .single_add_to_cart_button, .vp-buynow, .vp-cta { gap: 8px; padding: 0 10px; font-size: 12px; letter-spacing: .9px; white-space: nowrap; }
  .vp-buy .quantity { height: 54px; }
  .vp-qty-btn { width: 38px; }
  .vp-buy .quantity input.qty { width: 40px; }
  .vp-details__grid.has-both { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .vp-related .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}

/* ---------- stacked (768 and below) ---------- */
@media (max-width: 800px) {
  .vp-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .vp-stage { aspect-ratio: 4 / 3; }
  .vp-info { max-width: none; }
  .vp-size { min-width: 54px; padding: 0 12px; }
  .vp-buy .single_add_to_cart_button, .vp-buynow, .vp-cta { gap: 12px; padding: 0 22px; font-size: 13px; letter-spacing: 1.4px; }
  .vp-buy .quantity { height: 56px; }
  .vp-qty-btn { width: 44px; }
  .vp-buy .quantity input.qty { width: 46px; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .vp-wrap { padding: 0 18px; }
  .vp-crumbs { padding: 16px 0 14px; font-size: 12px; }
  .vp-crumbs li:not(:nth-last-child(-n+2)) { display: none; }
  .vp-crumbs li:nth-last-child(2)::before { display: none; }
  .vp-gallery { margin: 0 -18px; }
  .vp-stage { aspect-ratio: 1 / 1; }
  .vp-arrow { display: none; }
  .vp-count { right: 12px; bottom: 12px; }
  .vp-thumbs { gap: 8px; padding: 0 18px; margin-top: 10px; }
  .vp-thumb { width: 62px; height: 62px; }
  .vp-stage .virona-soldout-badge, .vp-badge { top: 12px; left: 12px; }
  .vp-notices { margin-top: 18px; }
  .vp-main { gap: 26px; }
  .vp-cat { margin-bottom: 10px; font-size: 11.5px; letter-spacing: 3px; }
  .vp-title { font-size: 30px; letter-spacing: -.4px; }
  .vp-price { margin-top: 14px; font-size: 24px; }
  .vp-short { margin-top: 16px; font-size: 15.5px; line-height: 1.7; }
  .vp-buy { margin-top: 24px; padding-top: 22px; }
  .vp-opt { margin-bottom: 20px; }
  .vp-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
  .vp-size { min-width: 0; height: 48px; padding: 0; }
  .vp-buy .quantity { height: 54px; }
  .vp-qty-btn { width: 42px; }
  .vp-buy .quantity input.qty { width: 38px; }
  .vp-buy .single_add_to_cart_button, .vp-buynow, .vp-cta { height: 54px; padding: 0 14px; letter-spacing: 1.1px; }
  .vp-assure { margin-top: 26px; }
  .vp-section { margin-top: 40px; padding-top: 34px; }
  .vp-specs dt { width: 100px; }
  .vp-related .vs-grid { gap: 16px 12px; }
  .vp-reviews .comment_container img.avatar { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .vp-page * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Acheter maintenant + colour photo swatches ---------- */
.vp-buy .woocommerce-variation-add-to-cart, .vp-buy form.cart:not(.variations_form) { flex-wrap: wrap; }

.vp-buy .vp-buynow {
  flex: 0 0 100%; width: 100%; cursor: pointer;
  border: 1px solid var(--vh-olive-cart); background: transparent; color: var(--vh-olive-cart);
  transition: background .2s ease, color .2s ease;
}
.vp-buy .vp-buynow:hover:not(.is-busy) { background: var(--vh-olive-cart); color: #f6f1e6; }
.vp-buy .vp-buynow:focus-visible { outline: 2px solid var(--vh-ink); outline-offset: 2px; }
.vp-buy .vp-buynow.is-busy { opacity: .6; pointer-events: none; }
.vp-buy .single_add_to_cart_button.disabled ~ .vp-buynow { opacity: .5; }
.vp-buy .single_add_to_cart_button.wc-variation-is-unavailable ~ .vp-buynow {
  background: #d9d3c9; border-color: #d9d3c9; color: #6f685f; opacity: 1; cursor: not-allowed;
}

.vp-swatch--photo { width: 54px; height: 54px; border-radius: 7px; }
.vp-swatch--photo::before { display: none; }
.vp-swatch--photo::after { z-index: 1; border-radius: 7px; border-color: rgba(27, 26, 24, .14); }
.vp-swatch--photo:hover:not(:disabled)::after { border-color: #b8aea0; }
.vp-swatch--photo[aria-checked="true"]::after { border-color: var(--vh-ink); }
.vp-swatch__img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; border-radius: 4px; display: block; pointer-events: none; }
.vp-swatch--photo:disabled .vp-swatch__img { filter: grayscale(1); }
.vp-swatch--photo:focus-visible { outline: 2px solid var(--vh-ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .vp-swatch--photo { width: 50px; height: 50px; }
}

/* the colour row keeps its height whether or not a colour is chosen yet (no 2px jump on the first choice) */
.vp-opt__head { min-height: 18px; }
