/**
 * SKANBIZ — Header & footer catalogue boutique (style premium e-commerce)
 */

.shop-storefront-body {
    background: #f4f4f5;
}

/* ─── Header ─── */
.shop-storefront-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.shop-storefront-header.is-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.shop-storefront-header__bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shop-storefront-nav {
    padding: 0.85rem 0;
    gap: 1.25rem;
}

.shop-storefront-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #18181b;
    flex-shrink: 0;
    max-width: min(220px, 45vw);
}

.shop-storefront-brand__logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
}

.shop-storefront-brand__name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-storefront-search {
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f4f4f5;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.shop-storefront-search:focus-within {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.shop-storefront-search__icon {
    color: #71717a;
    flex-shrink: 0;
}

.shop-storefront-search__input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: #18181b;
    min-width: 0;
    outline: none;
}

.shop-storefront-search__input::placeholder {
    color: #a1a1aa;
}

.shop-storefront-search__submit {
    border: none;
    background: var(--brand-primary, #667eea);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, filter 0.2s;
}

.shop-storefront-search__submit:hover {
    filter: brightness(0.94);
}

.shop-storefront-search--mobile {
    max-width: none;
    width: 100%;
    margin-bottom: 0.75rem;
}

.shop-storefront-toggler {
    border: none;
    background: transparent;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shop-storefront-toggler__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #18181b;
    border-radius: 2px;
}

.shop-storefront-menu {
    gap: 0.15rem;
}

.shop-storefront-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #3f3f46 !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.shop-storefront-link .sk-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.shop-storefront-link:hover,
.shop-storefront-link.is-active {
    color: var(--brand-primary-dark, #18181b) !important;
    background: var(--brand-primary-muted, #f4f4f5);
}

.shop-storefront-link--contact {
    font-size: 0.75rem !important;
    color: #71717a !important;
}

.shop-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--brand-highlight, #ef4444);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.shop-storefront-dropdown {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    padding: 0.35rem;
    margin-top: 0.5rem !important;
}

.shop-storefront-dropdown .dropdown-item {
    border-radius: 8px;
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
}

.shop-storefront-dropdown .dropdown-item.active,
.shop-storefront-dropdown .dropdown-item:active {
    background: #f4f4f5;
    color: #18181b;
}

/* Bandeau catégories */
.shop-storefront-cats {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shop-storefront-cats__scroll {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.85rem 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.shop-storefront-cats__scroll::-webkit-scrollbar {
    display: none;
}

.shop-storefront-cat {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #52525b;
    text-decoration: none;
    background: #f4f4f5;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.shop-storefront-cat:hover {
    color: #18181b;
    background: #e4e4e7;
}

.shop-storefront-link:hover,
.shop-storefront-link.is-active {
    color: var(--brand-primary-dark, #18181b) !important;
    background: var(--brand-primary-muted, #f4f4f5);
}

.shop-storefront-cat.is-active {
    background: var(--brand-primary, #18181b);
    color: #fff;
}

/* ─── Footer ─── */
.shop-storefront-footer {
    margin-top: 3rem;
    background: #18181b;
    color: #e4e4e7;
}

.shop-storefront-footer__trust {
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #27272a;
}

.shop-storefront-trust {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.shop-storefront-trust__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.shop-storefront-trust__icon .sk-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.shop-storefront-trust strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.15rem;
}

.shop-storefront-trust p {
    margin: 0;
    font-size: 0.75rem;
    color: #a1a1aa;
    line-height: 1.4;
}

.shop-storefront-footer__main {
    padding: 2.5rem 0 2rem;
}

.shop-storefront-footer__logo {
    height: 44px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.shop-storefront-footer__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.shop-storefront-footer__desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #a1a1aa;
    margin: 0;
}

.shop-storefront-footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 0.85rem;
}

.shop-storefront-footer__links,
.shop-storefront-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-storefront-footer__links li + li,
.shop-storefront-footer__contact li + li {
    margin-top: 0.45rem;
}

.shop-storefront-footer__links a,
.shop-storefront-footer__contact a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s;
}

.shop-storefront-footer__links a:hover,
.shop-storefront-footer__contact a:hover {
    color: #fff;
}

.shop-storefront-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: #a1a1aa;
    line-height: 1.45;
}

.shop-storefront-footer__contact .sk-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.shop-storefront-footer__muted {
    font-size: 0.8125rem;
    color: #71717a;
    margin: 0;
}

.shop-storefront-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-storefront-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, color 0.2s;
}

.shop-storefront-footer__social a i {
    line-height: 1;
}

.shop-storefront-footer__bottom .container,
.shop-storefront-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

@media (min-width: 768px) {
    .shop-storefront-footer__bottom .container,
    .shop-storefront-footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.shop-storefront-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .shop-storefront-footer__legal {
        justify-content: flex-start;
    }
}

.shop-storefront-footer__legal a {
    color: #71717a;
    font-size: 0.75rem;
    text-decoration: none;
}

.shop-storefront-footer__legal a:hover {
    color: #fff;
}

.shop-storefront-footer__copy {
    color: #71717a;
    font-size: 0.75rem;
}

.shop-storefront-footer__copy a {
    color: #a1a1aa;
}

/* ─── Boutons flottants ─── */
.shop-fab-stack {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    pointer-events: none;
}

.shop-fab-stack .shop-fab {
    pointer-events: auto;
}

/* Au-dessus de la barre d'achat mobile (fiche produit) */
body.shop-storefront-body:has(.pd-mobile-bar) .shop-fab-stack {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.shop-fab {
    position: relative;
    z-index: 1;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}

.shop-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    color: #fff;
}

.shop-fab--cart {
    background: #18181b;
}

.shop-fab--cart .sk-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.shop-fab--whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.shop-fab--whatsapp svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #fff;
}

.shop-fab__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
    border: 2px solid #fff;
}

/* Toast ajout panier premium */
.cart-toast-premium {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    min-width: 280px;
}

.cart-toast-premium .toast-header {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #18181b;
}

.cart-toast-premium .toast-body {
    background: #fff;
    padding: 0.75rem 1rem 1rem;
    font-size: 0.875rem;
    color: #52525b;
}

.cart-toast-premium .toast-success-icon {
    color: #047857;
}

.cart-toast-premium .toast-error-icon {
    color: #dc2626;
}

/* ─── Mobile ─── */
@media (max-width: 991.98px) {
    .shop-storefront-brand__name {
        font-size: 0.9375rem;
        max-width: 140px;
    }

    .shop-storefront-brand__logo {
        height: 34px;
    }

    .shop-storefront-collapse {
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
    }
}

@media (max-width: 767.98px) {
    .shop-storefront-search__input {
        font-size: 16px;
    }

    .shop-fab-stack {
        gap: 0.875rem;
        right: max(0.875rem, env(safe-area-inset-right, 0px));
        bottom: max(0.875rem, env(safe-area-inset-bottom, 0px));
    }

    body.shop-storefront-body:has(.pd-mobile-bar) .shop-fab-stack {
        bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    }

    .shop-fab {
        width: 3rem;
        height: 3rem;
    }

    .shop-storefront-footer__trust {
        padding: 1.25rem 0;
    }

    .shop-storefront-trust strong {
        font-size: 0.75rem;
    }

    .shop-storefront-trust p {
        font-size: 0.6875rem;
    }

    .shop-storefront-nav {
        flex-wrap: wrap;
    }

    .shop-storefront-brand {
        max-width: calc(100% - 6.5rem);
        min-width: 0;
        flex: 1 1 auto;
    }

    .shop-storefront-header__mobile-actions {
        flex-shrink: 0;
    }

    .shop-storefront-brand__name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .shop-storefront-collapse {
        flex-basis: 100%;
        width: 100%;
    }

    .shop-storefront-search--mobile {
        margin-bottom: 0.65rem;
    }
}
