/* =====================================================================
   FICHE PRODUIT — mise en page de référence (galerie, bloc achat, onglets, produits similaires)
   Charte Sakio : beige (--brand) pour les prix, noir pour les boutons, blanc pour le fond.
   Remises et stock : mêmes pastilles que la page d'accueil (rouge, gris).
   ===================================================================== */

.sk-pdp {
    background: #fff;
    color: #111;
    font-family: 'Montserrat', 'Poppins', system-ui, Arial, sans-serif;
}
.sk-pdp .container { max-width: 1380px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.sk-pdp h1, .sk-pdp h2, .sk-pdp h3, .sk-pdp h4 { font-family: 'Montserrat', 'Poppins', system-ui, Arial, sans-serif; }

/* ---------- Fil d'Ariane ---------- */
.sk-pdp-head { padding-top: 26px; }
.sk-pdp .sk-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 13px; color: #6b6b6b; margin: 0 0 6px;
}
.sk-pdp .sk-breadcrumb a { color: #6b6b6b; text-decoration: none; }
.sk-pdp .sk-breadcrumb a:hover { color: var(--brand, #b29f75); text-decoration: underline; }
.sk-pdp .sk-breadcrumb i { font-size: 9px; color: #b9b2a2; }
.sk-pdp .sk-breadcrumb span:last-child { color: #111; }

/* ---------- Galerie + bloc achat ---------- */
.sk-pdp-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    margin-top: 18px;
}
.sk-pdp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sk-pdp-figure {
    position: relative; margin: 0; background: #f6f6f6; border-radius: 10px; overflow: hidden;
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.sk-pdp-gallery figure:only-child { grid-column: 1 / -1; }

/* Photo cliquable : ouvre l'agrandissement */
.sk-pdp-zoom {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative;
}
.sk-pdp-zoom img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
.sk-pdp-zoom-icon {
    position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
    background: #fff; color: #111; display: flex; align-items: center; justify-content: center;
    font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12); pointer-events: none;
    transition: background .2s ease, color .2s ease;
}
.sk-pdp-zoom:hover .sk-pdp-zoom-icon { background: var(--brand, #b29f75); color: #fff; }
.sk-pdp-zoom:focus-visible { outline: 3px solid var(--brand, #b29f75); outline-offset: -3px; }

.sk-pdp-summary { min-width: 0; }
.sk-pdp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sk-pdp-pill { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; padding: 7px 11px; border-radius: 4px; }
.sk-pdp-pill--new { background: #f2ede2; color: #111; }

.sk-pdp .product_title {
    font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -.3px;
    color: #111; margin: 0 0 12px;
}
.sk-pdp-sku { font-size: 13px; color: #777; margin: 0 0 22px; }

.sk-pdp-price {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
    margin: 0 0 22px; font-size: 28px; font-weight: 700; color: var(--brand, #b29f75); line-height: 1.2;
}
.sk-pdp-now { color: var(--brand, #b29f75); }
.sk-pdp-old { font-size: 17px; font-weight: 500; color: #8a8a8a; text-decoration: line-through; }
.sk-pdp-from { font-size: 13px; font-weight: 500; color: #666; }

.sk-pdp .woocommerce-product-details__short-description { font-size: 15px; line-height: 1.75; color: #444; margin: 0 0 22px; }
.sk-pdp .woocommerce-product-details__short-description p { margin: 0 0 10px; }

/* Achat : quantité + bouton noir (WooCommerce garde la logique) */
.sk-pdp form.cart {
    display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch;
    margin: 0 0 14px; padding: 0; border: 0;
}
.sk-pdp form.cart .quantity { margin: 0; float: none; }
.sk-pdp form.cart .quantity .qty {
    width: 96px; height: 54px; min-height: 54px; padding: 0 8px; text-align: center;
    border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; font-size: 16px; font-weight: 600; color: #111;
}
.sk-pdp form.cart .single_add_to_cart_button {
    flex: 1 1 240px; height: 54px; min-height: 54px; margin: 0; padding: 0 24px;
    background: #111; color: #fff; border: 1px solid #111; border-radius: 4px;
    font-size: 15px; font-weight: 600; letter-spacing: .3px; text-shadow: none; box-shadow: none; float: none;
    transition: background .25s ease, border-color .25s ease;
}
.sk-pdp form.cart .single_add_to_cart_button:hover { background: var(--brand, #b29f75); border-color: var(--brand, #b29f75); color: #fff; }
.sk-pdp form.cart .single_add_to_cart_button.disabled { opacity: .45; cursor: not-allowed; }
/* Variations (produits à options) */
.sk-pdp form.cart.variations_form { display: block; }
.sk-pdp .variations { width: 100%; margin: 0 0 16px; border: 0; }
.sk-pdp .variations td, .sk-pdp .variations th { display: block; padding: 6px 0; border: 0; background: none; text-align: left; }
.sk-pdp .variations label { font-size: 13px; font-weight: 600; color: #111; margin-bottom: 6px; display: block; }
.sk-pdp .variations select {
    width: 100%; max-width: 360px; min-height: 46px; padding: 0 16px; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; font-size: 14px; color: #111;
}
.sk-pdp .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.sk-pdp .woocommerce-variation-price .price { color: var(--brand, #b29f75); font-size: 24px; font-weight: 700; }
.sk-pdp .reset_variations { font-size: 12px; color: #6b6b6b; text-decoration: underline; }

/* Stock : même pastille que l'accueil (classes prod-stock-pill de sakio-style.css) */
.sk-pdp-stock { margin: 0 0 20px; }

/* WhatsApp : contour noir, remplissage au survol */
.sk-pdp-wa {
    display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px;
    border: 1px solid #111; border-radius: 4px; background: #fff; color: #111;
    font-size: 15px; font-weight: 600; text-decoration: none; transition: background .25s ease, color .25s ease;
}
.sk-pdp-wa i { font-size: 18px; }
.sk-pdp-wa:hover { background: #111; color: #fff; }

/* Engagements */
.sk-pdp-trust { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid #eee; display: grid; gap: 14px; }
.sk-pdp-trust li { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: #555; line-height: 1.4; }
.sk-pdp-trust i {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #f5f1e8;
    color: var(--brand, #b29f75); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.sk-pdp-trust strong { color: #111; font-weight: 600; }

.sk-pdp-meta { font-size: 13px; color: #6b6b6b; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #eee; line-height: 1.8; }
.sk-pdp-meta a { color: #111; text-decoration: underline; }

/* ---------- Onglets (description, informations, avis) ---------- */
.sk-pdp-tabs { margin-top: 64px; }
.sk-pdp .woocommerce-tabs ul.tabs {
    display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 0 0 28px; padding: 0;
    border-bottom: 1px solid #e6e6e6; float: none; width: auto;
}
.sk-pdp .woocommerce-tabs ul.tabs::before, .sk-pdp .woocommerce-tabs ul.tabs::after { display: none; }
.sk-pdp .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.sk-pdp .woocommerce-tabs ul.tabs li a {
    display: inline-block; padding: 0 0 14px; margin-bottom: -1px; font-size: 15px; font-weight: 600;
    color: #8a8a8a; border-bottom: 2px solid transparent; text-decoration: none;
}
.sk-pdp .woocommerce-tabs ul.tabs li a::before, .sk-pdp .woocommerce-tabs ul.tabs li a::after { display: none; }
.sk-pdp .woocommerce-tabs ul.tabs li.active a, .sk-pdp .woocommerce-tabs ul.tabs li a:hover { color: #111; border-bottom-color: var(--brand, #b29f75); }
.sk-pdp .woocommerce-Tabs-panel { font-size: 15px; line-height: 1.8; color: #333; max-width: 860px; }
.sk-pdp .woocommerce-Tabs-panel h2 { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 16px; }
.sk-pdp .woocommerce-Tabs-panel p { margin: 0 0 12px; }
.sk-pdp .shop_attributes { border: 1px solid #ece6d8; border-radius: 10px; overflow: hidden; max-width: 720px; }
.sk-pdp .shop_attributes th, .sk-pdp .shop_attributes td { padding: 12px 16px; border-color: #f0ebe0; text-align: left; }
.sk-pdp .shop_attributes th { font-weight: 600; background: #faf8f3; width: 34%; }

/* Avis */
.sk-pdp .woocommerce-noreviews, .sk-pdp .woocommerce-info { background: #faf8f3; color: #333; border-top: 3px solid var(--brand, #b29f75); border-radius: 8px; }
.sk-pdp .woocommerce-info::before { color: var(--brand, #b29f75); }

/* ---------- Produits similaires : cartes plus grandes, bouton d'achat standard ---------- */
.sk-pdp-related { margin: 72px auto 48px; }
.sk-pdp-related h2 {
    text-align: center; font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: -.3px; margin: 0 0 36px;
}
.sk-pdp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; }
.sk-pdp .prod-card { min-width: 0; max-width: none; width: auto; flex: none; cursor: default; }
.sk-pdp .prod-img-wrap { height: auto; aspect-ratio: 1 / 1; padding: 0; background: #f6f6f6; border-radius: 10px; }
.sk-pdp .prod-img-wrap img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; padding: 16px; }
.sk-pdp .prod-name { font-size: 15px; font-weight: 500; line-height: 1.5; color: #111; min-height: 0; }
.sk-pdp .prod-price { font-size: 19px; }
.sk-pdp .prod-card .btn-add-cart {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; max-height: none; opacity: 1; margin-top: 14px; padding: 0 12px;
    background: #111; color: #fff; border-radius: 4px; font-size: 15px; font-weight: 600;
}
.sk-pdp .prod-card .btn-add-cart:hover { background: var(--brand, #b29f75); color: #fff; }

/* ---------- Agrandissement photo (lightbox) ---------- */
.sk-lightbox {
    position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
    background: rgba(17, 17, 17, .94);
}
.sk-lightbox.is-open { display: flex; }
.sk-lb-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sk-lb-stage img {
    max-width: 92vw; max-height: 88vh; object-fit: contain; display: block; cursor: zoom-in;
    user-select: none; -webkit-user-drag: none; transition: transform .15s linear;
}
.sk-lightbox.is-zoomed .sk-lb-stage img { max-width: none; max-height: none; flex: 0 0 auto; cursor: zoom-out; }
.sk-lb-btn {
    position: absolute; top: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; z-index: 2;
    background: #fff; color: #111; font-size: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.sk-lb-close { right: 18px; }
.sk-lb-zoom { right: 76px; }
.sk-lb-btn:hover { background: var(--brand, #b29f75); color: #fff; }
.sk-lb-btn:focus-visible { outline: 3px solid var(--brand, #b29f75); outline-offset: 2px; }

/* ---------- Adaptations ---------- */
@media (max-width: 1100px) {
    .sk-pdp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
}
@media (max-width: 900px) {
    .sk-pdp-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .sk-pdp .product_title { font-size: 26px; }
    .sk-pdp-price { font-size: 26px; }
}
@media (max-width: 768px) {
    .sk-pdp .container { padding: 0 16px; }
    .sk-pdp-head { padding-top: 18px; }
    .sk-pdp .sk-breadcrumb { font-size: 12px; }
    .sk-pdp-gallery { gap: 10px; }
    .sk-pdp-tabs { margin-top: 40px; }
    .sk-pdp .woocommerce-tabs ul.tabs { flex-wrap: nowrap; overflow-x: auto; gap: 22px; scrollbar-width: none; }
    .sk-pdp .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
    .sk-pdp .woocommerce-tabs ul.tabs li { flex: 0 0 auto; }
    .sk-pdp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
    .sk-pdp-related h2 { font-size: 20px; }
    .sk-pdp .prod-name { font-size: 14px; }
    .sk-pdp .prod-price { font-size: 17px; }
    .sk-pdp .prod-card .btn-add-cart { height: 46px; font-size: 13px; padding: 0 8px; }
}
@media (max-width: 480px) {
    .sk-pdp .product_title { font-size: 24px; }
    .sk-pdp form.cart .quantity .qty { width: 84px; }
    .sk-lb-btn { top: 12px; width: 40px; height: 40px; }
    .sk-lb-close { right: 12px; }
    .sk-lb-zoom { right: 62px; }
}

/* Espacements : prioritaires sur la marge du conteneur (.sk-pdp .container) */
.sk-pdp .sk-pdp-top { margin-top: 18px; margin-bottom: 0; }
.sk-pdp .sk-pdp-tabs { margin-top: 72px; }
.sk-pdp .sk-pdp-related { margin-top: 80px; margin-bottom: 56px; }
@media (max-width: 768px) {
    .sk-pdp .sk-pdp-tabs { margin-top: 48px; }
    .sk-pdp .sk-pdp-related { margin-top: 56px; }
}
/* =====================================================================
   GALERIE VITRINE : une photo à la fois, miniatures à gauche, compteur et flèches.
   Sur téléphone : photo pleine largeur, miniatures en dessous, défilement au doigt.
   ===================================================================== */
.sk-pdp-gallery { display: block; min-width: 0; }
.sk-gal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sk-gal.is-multi { grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: start; }

.sk-gal-thumbs {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    max-height: 600px; overflow-y: auto; scrollbar-width: none; padding: 4px 6px 4px 2px;
}
.sk-gal-thumbs::-webkit-scrollbar { display: none; }
.sk-gal-thumb {
    flex: 0 0 auto; width: 88px; height: 88px; padding: 0; border: 0; border-radius: 14px;
    background: #f4f1ea; overflow: hidden; cursor: pointer; opacity: .45;
    box-shadow: 0 0 0 2px transparent; transition: opacity .3s ease, box-shadow .3s ease, transform .3s ease;
}
.sk-gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-gal-thumb:hover { opacity: .8; }
.sk-gal-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--brand, #b29f75); transform: translateX(2px); }
.sk-gal-thumb:focus-visible { outline: 3px solid var(--brand, #b29f75); outline-offset: 2px; }

.sk-gal-main { position: relative; min-width: 0; }
.sk-gal-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; border-radius: 24px; background: #f4f1ea; outline: none;
}
.sk-gal-track::-webkit-scrollbar { display: none; }
.sk-gal-track:focus-visible { box-shadow: 0 0 0 3px var(--brand, #b29f75); }
.sk-gal-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 5 / 4; position: relative; }
.sk-gal-slide .sk-pdp-zoom { width: 100%; height: 100%; }
.sk-gal-slide img { width: 100%; height: 100%; object-fit: cover; display: block; padding: 0; }
.sk-gal-slide .sk-pdp-zoom-icon { right: 18px; bottom: 18px; width: 42px; height: 42px; }

.sk-gal-foot { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.sk-gal-count {
    font-size: 13px; font-weight: 600; letter-spacing: .08em; min-width: 68px;
    font-variant-numeric: tabular-nums; color: #111;
}
.sk-gal-bar { flex: 1; height: 2px; background: #e4ddcd; border-radius: 2px; overflow: hidden; }
.sk-gal-bar span { display: block; height: 100%; width: 0; background: var(--brand, #b29f75); transition: width .4s ease; }
.sk-gal-nav { display: flex; gap: 10px; }
.sk-gal-nav button {
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid #111; background: #fff; color: #111;
    display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer;
    transition: background .25s ease, color .25s ease, opacity .25s ease;
}
.sk-gal-nav button:hover:not(:disabled) { background: #111; color: #fff; }
.sk-gal-nav button:disabled { opacity: .25; cursor: default; }
.sk-gal-nav button:focus-visible { outline: 3px solid var(--brand, #b29f75); outline-offset: 2px; }

/* Téléphone : photo pleine largeur, miniatures en dessous */
@media (max-width: 768px) {
    .sk-gal.is-multi { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .sk-gal-main { order: 1; }
    .sk-gal-thumbs {
        order: 2; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; gap: 10px; padding: 4px 2px;
    }
    .sk-gal-thumb { width: 66px; height: 66px; border-radius: 12px; }
    .sk-gal-slide { aspect-ratio: 4 / 5; }
    .sk-gal-track { border-radius: 18px; }
    .sk-gal-foot { gap: 12px; margin-top: 14px; }
    .sk-gal-nav button { width: 42px; height: 42px; }
}

/* ---------- Responsive fiche produit (corrections de spécificité) ---------- */
.sk-pdp .sk-pdp-head { padding-top: 30px; padding-bottom: 0; }
@media (min-width: 901px) {
    .sk-pdp .sk-pdp-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .sk-pdp .sk-pdp-top { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 14px; }
}
@media (max-width: 768px) {
    .sk-pdp .sk-pdp-head { padding-top: 24px; }
    .sk-pdp .container { padding-left: 16px; padding-right: 16px; }
    .sk-pdp .sk-breadcrumb { font-size: 12px; line-height: 1.5; margin-bottom: 4px; }
    .sk-pdp-summary { min-width: 0; }
    .sk-pdp .product_title { font-size: 24px; line-height: 1.25; margin-bottom: 10px; }
    .sk-pdp-pills { margin-bottom: 12px; }
    .sk-pdp-sku { font-size: 12px; overflow-wrap: anywhere; margin-bottom: 16px; }
    .sk-pdp-price { font-size: 24px; gap: 4px 10px; margin-bottom: 16px; }
    .sk-pdp-price .sk-pdp-now, .sk-pdp-price .sk-pdp-old { white-space: nowrap; }
    .sk-pdp .woocommerce-product-details__short-description { font-size: 14px; line-height: 1.65; }
    .sk-gal-foot { gap: 10px; margin-top: 12px; }
    .sk-gal-count { min-width: 0; font-size: 12px; }
    .sk-gal-bar { min-width: 20px; }
    .sk-pdp form.cart { gap: 10px; }
    .sk-pdp form.cart .quantity .qty { width: 84px; }
    .sk-pdp-wa { height: 50px; font-size: 14px; }
    .sk-pdp-trust li { font-size: 13px; }
    .sk-pdp-meta { font-size: 12px; }
    .sk-pdp-related h2 { font-size: 20px; margin-bottom: 22px; }
    .sk-pdp-related { margin-top: 56px; }
}
@media (max-width: 400px) {
    .sk-pdp .prod-stock-pill { white-space: nowrap; font-size: 12px; }
    .sk-pdp .prod-card .btn-add-cart { white-space: nowrap; font-size: 12px; gap: 4px; padding: 0 6px; }
    .sk-pdp .prod-card .btn-add-cart i { font-size: 12px; }
    .sk-pdp-grid { gap: 22px 10px; }
}