/* =====================================================================
   PAGES BOUTIQUE — « Tous les produits », catégories, sous-catégories
   Même charte que la fiche produit : beige (--brand), blanc, noir. Promos et stock : pastilles de l'accueil.
   ===================================================================== */

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

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

/* ---------- Bannière ---------- */
.sk-hero {
    position: relative; min-height: 300px; border-radius: 24px; overflow: hidden;
    background: #f4f1ea; display: flex; align-items: stretch;
}
.sk-hero-media { position: absolute; inset: 0; }
.sk-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-hero-card {
    position: relative; z-index: 1; margin: 28px; width: min(420px, calc(100% - 56px));
    background: #111; color: #fff; border-radius: 18px; padding: 34px 34px 36px;
    align-self: flex-start; box-sizing: border-box;
}
.sk-hero:not(.has-image) .sk-hero-card { margin: 0 auto; align-self: center; background: transparent; color: #111; text-align: center; width: auto; padding: 56px 20px; }
.sk-hero-title { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; margin: 0; text-transform: uppercase; }
.sk-hero:not(.has-image) .sk-hero-title::after { content: ''; display: block; width: 56px; height: 4px; background: var(--brand, #b29f75); border-radius: 2px; margin: 18px auto 0; }
.sk-hero-desc { margin-top: 16px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.85); }
.sk-hero-desc p { margin: 0 0 8px; }
.sk-hero:not(.has-image) .sk-hero-desc { color: #444; }

/* ---------- Corps ---------- */
.sk-shop-body { padding-top: 34px; padding-bottom: 64px; }

/* Sous-catégories : pastilles noires, la catégorie active est pleine */
.sk-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.sk-chip {
    display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border-radius: 100px;
    border: 1px solid #111; background: #fff; color: #111; font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background .25s ease, color .25s ease;
}
.sk-chip:hover, .sk-chip.is-active { background: #111; color: #fff; }
.sk-chip.is-active { background: var(--brand, #b29f75); border-color: var(--brand, #b29f75); }

/* Barre : nombre de produits + tri */
.sk-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 0; margin-bottom: 30px; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.sk-toolbar .woocommerce-result-count { margin: 0; font-size: 14px; color: #111; font-weight: 600; }
.sk-toolbar .woocommerce-ordering { margin: 0; }
.sk-toolbar .woocommerce-ordering select {
    -webkit-appearance: none; appearance: none; min-height: 44px; padding: 0 44px 0 18px; border: 1px solid #111; border-radius: 100px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 18px center;
    font-size: 14px; font-weight: 600; color: #111; cursor: pointer; font-family: inherit;
}
.sk-toolbar .woocommerce-ordering select:focus-visible { outline: 3px solid var(--brand, #b29f75); outline-offset: 2px; }

/* Grille : cartes Sakio (mêmes pastilles et prix que l'accueil) */
.sk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; }
.sk-grid .prod-card { min-width: 0; max-width: none; width: auto; flex: none; cursor: default; }
.sk-grid .prod-img-wrap { height: auto; aspect-ratio: 1 / 1; padding: 0; background: #f6f6f6; border-radius: 12px; }
.sk-grid .prod-img-wrap img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; padding: 14px; }
.sk-grid .prod-name { font-family: 'Montserrat', 'Poppins', system-ui, Arial, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.5; color: #111; min-height: 0; }
.sk-grid .prod-price { font-family: 'Montserrat', 'Poppins', system-ui, Arial, sans-serif; font-size: 19px; }
.sk-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;
    background: #111; color: #fff; border-radius: 4px; font-size: 14px; font-weight: 600;
}
.sk-grid .prod-card .btn-add-cart:hover { background: var(--brand, #b29f75); color: #fff; }

/* Pagination */
.sk-pagination { margin-top: 56px; }
.sk-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; border: 0; }
.sk-pagination ul.page-numbers li { margin: 0; border: 0; float: none; }
.sk-pagination .page-numbers a, .sk-pagination .page-numbers span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
    border-radius: 100px; border: 1px solid #111; background: #fff; color: #111; font-size: 14px; font-weight: 600; text-decoration: none;
    transition: background .25s ease, color .25s ease;
}
.sk-pagination .page-numbers a:hover { background: #111; color: #fff; }
.sk-pagination .page-numbers .current { background: var(--brand, #b29f75); border-color: var(--brand, #b29f75); color: #fff; }

/* Aucun résultat */
.sk-empty { text-align: center; padding: 80px 0; }
.sk-empty p { font-size: 16px; color: #444; margin-bottom: 22px; }
.sk-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 26px; border-radius: 4px; background: #111; color: #fff; font-weight: 600; text-decoration: none; }
.sk-btn:hover { background: var(--brand, #b29f75); color: #fff; }

/* ---------- Adaptations ---------- */
@media (max-width: 1100px) {
    .sk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
}
@media (max-width: 900px) {
    .sk-hero { min-height: 260px; }
    .sk-hero-title { font-size: 32px; }
}
@media (max-width: 768px) {
    .sk-shop .container { padding: 0 16px; }
    .sk-shop .sk-shop-head { padding-top: 24px; }
    .sk-shop .sk-breadcrumb { font-size: 12px; margin-bottom: 16px; }
    .sk-hero { border-radius: 18px; min-height: 0; flex-direction: column; }
    .sk-hero-media { position: relative; inset: auto; aspect-ratio: 4 / 3; }
    .sk-hero-card { margin: 0; width: auto; border-radius: 0; align-self: stretch; padding: 22px 20px 24px; }
    .sk-hero:not(.has-image) .sk-hero-card { padding: 32px 16px; }
    .sk-hero-title { font-size: 26px; }
    .sk-hero-desc { font-size: 14px; }
    .sk-shop-body { padding-top: 24px; padding-bottom: 48px; }
    .sk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 22px; padding: 0 16px 4px; -webkit-overflow-scrolling: touch; }
    .sk-chips::-webkit-scrollbar { display: none; }
    .sk-chip { flex: 0 0 auto; min-height: 40px; font-size: 13px; padding: 0 16px; }
    .sk-toolbar { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 22px; padding: 14px 0; }
    .sk-toolbar .woocommerce-ordering select { width: 100%; }
    .sk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
    .sk-grid .prod-name { font-size: 13px; }
    .sk-grid .prod-price { font-size: 16px; }
    .sk-grid .prod-card .btn-add-cart { height: 42px; font-size: 12px; padding: 0 6px; }
}
@media (max-width: 400px) {
    .sk-grid .prod-stock-pill { white-space: nowrap; font-size: 11px; }
    .sk-grid .prod-card .btn-add-cart { white-space: nowrap; font-size: 11px; gap: 4px; }
    .sk-grid { gap: 22px 8px; }
}

/* Espacements de la zone boutique : prioritaires sur la marge du conteneur (.sk-shop .container) */
.sk-shop .sk-shop-body { padding-top: 44px; padding-bottom: 84px; }
.sk-shop .sk-chips { margin-bottom: 40px; }
.sk-shop .sk-toolbar { padding: 20px 0; margin-bottom: 36px; }
.sk-shop .sk-pagination { margin-top: 64px; }
@media (max-width: 768px) {
    .sk-shop .sk-shop-body { padding-top: 30px; padding-bottom: 60px; }
    .sk-shop .sk-chips { margin-bottom: 28px; }
    .sk-shop .sk-toolbar { margin-bottom: 26px; }
}