/* =====================================================================
   FONCTIONNALITÉS BOUTIQUE : favoris, comparateur, filtres, recherche en direct,
   code promo du tiroir, alerte de stock, pages de contenu.
   Charte : beige #b29f75, blanc, noir.
   ===================================================================== */

/* ---------- Badge favoris dans l'en-tête ---------- */
.cart-badge[hidden] { display: none; }

/* ---------- Boutons cœur / comparer sur les cartes ---------- */
.sk-card-actions { position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.sk-act {
    width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: #fff; color: #111; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.14); font-size: 15px; transition: background .2s, color .2s, transform .2s, opacity .2s;
}
.sk-act:hover { background: #111; color: #fff; transform: scale(1.06); }
.sk-act.is-active { background: var(--brand, #b29f75); color: #fff; }
.sk-fav-btn.is-active i { color: #fff; }
@media (hover: hover) and (min-width: 901px) {
    .sk-card-actions .sk-cmp-btn:not(.is-active) { opacity: 0; transform: translateY(-4px); }
    .prod-card:hover .sk-card-actions .sk-cmp-btn, .sk-card-actions .sk-cmp-btn:focus-visible { opacity: 1; transform: none; }
}
@media (max-width: 600px) { .sk-act { width: 34px; height: 34px; font-size: 14px; } .sk-card-actions { top: 8px; right: 8px; gap: 6px; } }

/* ---------- Boutons de la fiche produit ---------- */
.sk-pdp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.sk-pdp-act {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 100px;
    border: 1px solid #111; background: #fff; color: #111; font: 600 14px/1 'Montserrat', 'Poppins', system-ui, Arial, sans-serif; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.sk-pdp-act:hover { background: #111; color: #fff; }
.sk-pdp-act.is-active { background: var(--brand, #b29f75); border-color: var(--brand, #b29f75); color: #fff; }

/* ---------- Alerte retour en stock ---------- */
.sk-alert { margin: 16px 0; padding: 18px; border: 1px solid #e6dfcf; border-radius: 12px; background: #faf8f3; }
.sk-alert-title { margin: 0 0 12px; font-weight: 700; font-size: 15px; color: #111; }
.sk-alert-title i { color: var(--brand, #b29f75); margin-right: 6px; }
.sk-alert-row { display: flex; gap: 10px; }
.sk-alert-row input[type="email"] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #d9d2c0; border-radius: 6px; font: inherit; background: #fff; }
.sk-alert .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sk-alert .sk-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 20px; border: 0; border-radius: 6px; background: #111; color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sk-alert .sk-btn:hover { background: var(--brand, #b29f75); }
.sk-alert .sk-form-msg { margin: 10px 0 0; font-size: 13px; min-height: 0; }
.sk-alert .sk-form-msg.ok { color: #1f7a3d; }
.sk-alert .sk-form-msg.err { color: #c0392b; }
@media (max-width: 480px) { .sk-alert-row { flex-direction: column; } }

/* ---------- Filtres de catégorie ---------- */
.sk-filters { margin: 0 0 22px; }
.sk-filters > summary {
    list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 100px;
    border: 1px solid #111; background: #fff; color: #111; font: 600 14px/1 'Montserrat', 'Poppins', system-ui, Arial, sans-serif; cursor: pointer;
    transition: background .2s, color .2s;
}
.sk-filters > summary::-webkit-details-marker { display: none; }
.sk-filters > summary:hover, .sk-filters[open] > summary { background: #111; color: #fff; }
.sk-filters-on { background: var(--brand, #b29f75); color: #fff; border-radius: 100px; font-size: 11px; padding: 3px 8px; }
.sk-filters-form { margin-top: 16px; padding: 24px; border: 1px solid #ece7da; border-radius: 16px; background: #faf8f3; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 36px; align-items: start; }
.sk-f-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.sk-f-group legend { padding: 0; margin: 0 0 12px; font-weight: 700; font-size: 14px; color: #111; }
.sk-f-price { display: flex; align-items: center; gap: 10px; }
.sk-f-price input { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #d9d2c0; border-radius: 6px; font: inherit; background: #fff; box-sizing: border-box; }
.sk-f-colors { grid-column: span 2; }
.sk-f-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-swatch { position: relative; cursor: pointer; }
.sk-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sk-swatch-name {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 100px;
    border: 1px solid #d9d2c0; background: #fff; font-size: 13px; font-weight: 600; color: #111; transition: border-color .2s, background .2s;
}
.sk-swatch-name small { color: #8a8576; font-weight: 500; }
.sk-swatch-dot { display: none; }
.sk-swatch-name::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); background: var(--sw, #ccc); flex: none; }
.sk-swatch input:checked + .sk-swatch-dot + .sk-swatch-name { border-color: #111; background: #111; color: #fff; }
.sk-swatch input:checked + .sk-swatch-dot + .sk-swatch-name small { color: #d8d2c0; }
.sk-swatch input:focus-visible + .sk-swatch-dot + .sk-swatch-name { outline: 2px solid var(--brand, #b29f75); outline-offset: 2px; }
.sk-f-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sk-filters .sk-f-actions .sk-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 28px; border: 0; border-radius: 4px; background: #111; color: #fff; font-weight: 600; cursor: pointer; }
.sk-filters .sk-f-actions .sk-btn:hover { background: var(--brand, #b29f75); }
.sk-f-reset { color: #111; font-size: 14px; font-weight: 600; text-decoration: underline; }
@media (max-width: 700px) {
    .sk-filters { margin-bottom: 18px; }
    .sk-filters-form { padding: 18px; grid-template-columns: 1fr; }
    .sk-f-colors { grid-column: auto; }
    .sk-filters .sk-f-actions .sk-btn { width: 100%; }
}

/* ---------- Recherche en direct ---------- */
.sk-suggest {
    position: fixed; z-index: 1500; background: #fff; border: 1px solid #e6dfcf;
    border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.16); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.sk-suggest[hidden] { display: none; }
.sk-suggest-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #111; text-decoration: none; border-bottom: 1px solid #f1ece0; }
.sk-suggest-item:hover, .sk-suggest-item.is-active { background: #faf8f3; }
.sk-suggest-item img { width: 48px; height: 48px; object-fit: contain; background: #f6f6f6; border-radius: 8px; flex: none; }
.sk-suggest-txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.sk-suggest-name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-suggest-price { font-size: 13px; color: #7a6a42; font-weight: 700; }
.sk-suggest-all { display: block; padding: 13px 14px; text-align: center; background: #111; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.sk-suggest-all:hover { background: var(--brand, #b29f75); color: #fff; }
.sk-suggest-empty { margin: 0; padding: 16px; font-size: 14px; color: #555; }

/* ---------- Pages favoris et comparateur ---------- */
.sk-feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 22px; }
.sk-feat-grid .prod-card { min-width: 0; max-width: none; width: auto; flex: none; cursor: default; }
.sk-feat-grid .prod-img-wrap { height: auto; aspect-ratio: 1 / 1; padding: 0; background: #f6f6f6; border-radius: 12px; }
.sk-feat-grid .prod-img-wrap img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; padding: 14px; }
.sk-feat-grid .prod-name { font-size: 15px; font-weight: 500; line-height: 1.5; color: #111; min-height: 0; }
.sk-feat-grid .prod-price { font-size: 19px; }
.sk-feat-grid .prod-name, .sk-feat-grid .prod-price { font-family: 'Montserrat', 'Poppins', system-ui, Arial, sans-serif; }
.sk-feat-grid .prod-name-link { text-decoration: none; }
.sk-feat-grid .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; border-radius: 4px; background: #111; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.sk-feat-grid .prod-card .btn-add-cart:hover { background: var(--brand, #b29f75); }
@media (max-width: 1100px) { .sk-feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; } }
@media (max-width: 700px) { .sk-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; } .sk-feat-grid .prod-name { font-size: 13px; } .sk-feat-grid .prod-price { font-size: 16px; } }
.sk-list-loading, .sk-list-empty { color: #555; font-size: 15px; }
.sk-list-empty { padding: 40px 0; }
.sk-list-empty .sk-btn, .sk-list-page .sk-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 4px; background: #111; color: #fff; font-weight: 600; text-decoration: none; }
.sk-list-empty .sk-btn:hover, .sk-list-page .sk-btn:hover { background: var(--brand, #b29f75); }
.sk-list-empty p { margin: 0 0 18px; }

.sk-cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #ece7da; border-radius: 16px; }
.sk-cmp-table { border-collapse: collapse; width: 100%; min-width: 640px; background: #fff; }
.sk-cmp-table th, .sk-cmp-table td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #f1ece0; font-size: 14px; line-height: 1.55; }
.sk-cmp-table th { width: 140px; min-width: 120px; font-weight: 700; color: #111; background: #faf8f3; position: sticky; left: 0; z-index: 1; }
.sk-cmp-table tr:last-child td, .sk-cmp-table tr:last-child th { border-bottom: 0; }
.sk-cmp-prod { display: flex; flex-direction: column; gap: 10px; color: #111; text-decoration: none; }
.sk-cmp-prod img { width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: contain; background: #f6f6f6; border-radius: 10px; }
.sk-cmp-prod strong { font-size: 15px; }
.sk-cmp-price { font-weight: 800; font-size: 17px; }
.sk-cmp-old { margin-left: 8px; color: #999; font-size: 13px; }
.sk-cmp-ok { color: #1f7a3d; font-weight: 700; }
.sk-cmp-ko { color: #c0392b; font-weight: 700; }
.sk-cmp-remove { margin-top: 10px; padding: 0; border: 0; background: none; color: #555; font-size: 13px; text-decoration: underline; cursor: pointer; }
.sk-cmp-remove:hover { color: #111; }
.sk-cmp-table .sk-btn { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* ---------- Barre « comparer » et message court ---------- */
.sk-cmp-bar {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1100; display: flex; align-items: center; gap: 16px;
    padding: 12px 14px 12px 22px; background: #111; color: #fff; border-radius: 100px; box-shadow: 0 12px 32px rgba(0,0,0,.28); max-width: calc(100% - 24px); box-sizing: border-box;
    font-family: 'Montserrat', 'Poppins', system-ui, Arial, sans-serif; font-size: 14px;
}
.sk-cmp-bar[hidden] { display: none; }
.sk-cmp-go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; border-radius: 100px; background: var(--brand, #b29f75); color: #111; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sk-cmp-go.is-disabled { opacity: .5; }
.sk-cmp-clear { border: 0; background: none; color: #d8d2c0; text-decoration: underline; cursor: pointer; font: inherit; padding: 0 6px; }
@media (max-width: 480px) { .sk-cmp-bar { gap: 10px; padding-left: 16px; font-size: 13px; bottom: 12px; } }
.sk-toast {
    position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 12px); z-index: 1300; background: #111; color: #fff; padding: 12px 20px;
    border-radius: 100px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center;
    font-family: 'Montserrat', 'Poppins', system-ui, Arial, sans-serif;
}
.sk-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Code promo dans le tiroir ---------- */
.sk-mc-coupon { margin: 14px 0 6px; padding-top: 14px; border-top: 1px dashed #e0d8c4; }
.sk-mc-coupon-form { display: flex; gap: 8px; }
.sk-mc-coupon-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #d9d2c0; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; text-transform: uppercase; }
.sk-mc-coupon-form button { height: 44px; padding: 0 16px; border: 0; border-radius: 6px; background: #111; color: #fff; font-weight: 600; cursor: pointer; }
.sk-mc-coupon-form button:hover { background: var(--brand, #b29f75); }
.sk-mc-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 10px 12px; background: #faf8f3; border: 1px solid #e6dfcf; border-radius: 8px; font-size: 13px; }
.sk-mc-applied i { color: var(--brand, #b29f75); margin-right: 4px; }
.sk-mc-applied button { border: 0; background: none; color: #555; text-decoration: underline; cursor: pointer; font-size: 13px; }
.sk-mc-coupon-msg { margin: 8px 0 0; font-size: 13px; min-height: 0; }
.sk-mc-coupon-msg:empty { display: none; }
.sk-mc-coupon-msg.ok { color: #1f7a3d; }
.sk-mc-coupon-msg.err { color: #c0392b; }
.sk-mc-discount strong { color: #1f7a3d; }

/* ---------- Pages de contenu (FAQ, CGV, CGU, confidentialité, contact…) ---------- */
.sk-page .sk-woo-body { max-width: 900px; font-size: 16px; line-height: 1.8; color: #222; }
.sk-page .sk-woo-body h2 { margin: 36px 0 12px; font-size: 22px; line-height: 1.3; font-weight: 700; color: #111; }
.sk-page .sk-woo-body h3 { margin: 26px 0 10px; font-size: 18px; font-weight: 700; color: #111; }
.sk-page .sk-woo-body p { margin: 0 0 14px; }
.sk-page .sk-woo-body ul, .sk-page .sk-woo-body ol { margin: 0 0 18px 22px; padding: 0; }
.sk-page .sk-woo-body ul { list-style: disc; }
.sk-page .sk-woo-body ol { list-style: decimal; }
.sk-page .sk-woo-body li { margin: 0 0 8px; padding-left: 4px; }
.sk-page .sk-woo-body :is(p, li, h2, h3) a:not(.sk-btn) { color: #7a6a42; text-decoration: underline; text-underline-offset: 3px; }
.sk-page .sk-woo-body :is(p, li, h2, h3) a:not(.sk-btn):hover { color: #111; }
.sk-page .sk-woo-body strong { color: #111; }
.sk-page .sk-woo-body .sk-btn { margin-top: 6px; }
.sk-page .sk-woo-body input[type="text"], .sk-page .sk-woo-body input[type="email"], .sk-page .sk-woo-body input[type="tel"], .sk-page .sk-woo-body textarea {
    width: 100%; max-width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #d9d2c0; border-radius: 6px; font: inherit; background: #fff;
}
.sk-page .sk-woo-body input[type="submit"], .sk-page .sk-woo-body button[type="submit"] {
    min-height: 50px; padding: 0 30px; border: 0; border-radius: 4px; background: #111; color: #fff; font-weight: 600; cursor: pointer;
}
.sk-page .sk-woo-body input[type="submit"]:hover, .sk-page .sk-woo-body button[type="submit"]:hover { background: var(--brand, #b29f75); }
.sk-page .sk-woo-body .woocommerce-form-track-order { max-width: 560px; }
.sk-page .sk-woo-body .woocommerce-form-track-order .form-row { margin: 0 0 16px; float: none; width: 100%; }
.sk-page .sk-woo-body .woocommerce-form-track-order label { display: block; margin-bottom: 6px; font-weight: 600; }
@media (max-width: 600px) { .sk-page .sk-woo-body { font-size: 15px; } .sk-page .sk-woo-body h2 { font-size: 19px; } }

/* ---------- Détails ---------- */
.sk-feat-grid a, .sk-feat-grid a:hover { text-decoration: none; }
.sk-cmp-bar > * { white-space: nowrap; }

/* En-tête mobile : le cœur des favoris s'ajoute sans passer à la ligne */
@media (max-width: 480px) {
    .header-right { gap: 2px; }
    .header-icon-link { min-width: 36px; }
    .header-right .header-icon-link i { font-size: 19px; }
    .sk-cmp-bar { padding: 10px 12px 10px 16px; gap: 10px; }
    .sk-cmp-text { font-size: 13px; }
}
@media (max-width: 360px) {
    .menu-btn span { display: none; }
    .logo img { height: 38px; }
    .sk-cmp-text { display: none; }
}
/* Liens des listes : sans soulignement, couleurs de la charte (quel que soit le style de la page) */
.sk-list-page .sk-feat-grid a, .sk-list-page .sk-feat-grid a:hover, .sk-list-page .sk-cmp-prod, .sk-list-page .sk-cmp-prod:hover { text-decoration: none; }
.sk-list-page .sk-feat-grid .prod-name-link, .sk-list-page .sk-cmp-prod { color: #111; }
.sk-list-page .sk-feat-grid .btn-add-cart, .sk-list-page .sk-feat-grid .btn-add-cart i, .sk-list-page .sk-cmp-table a.sk-btn { color: #fff; }
.sk-list-page .sk-feat-grid .prod-price { color: #111; font-weight: 800; }