/**
 * Storefront shop fallback for beauty / general / automotive / minimal_luxury / glow_beauty.
 * NOT loaded for fashion, tiktok_viral, or real_estate (see $shop_load_storefront_base_css in store-shop.php).
 */
:root {
    --pink-soft: #fff5f7;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --store-primary: #c08497;
    --store-button: #c08497;
    --store-accent: #d4af37;
    --store-card-bg: #ffffff;
    --store-bg: #fff5f7;
    --store-btn-radius: 12px;
    --shop-price-sale: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.shop-main-outer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Default catalog chrome — only when this file is linked (non–premium-skin shops). */
body.shop-body-premium {
    font-family: Poppins, system-ui, sans-serif;
    background: var(--pink-soft);
    padding-top: 56px;
    min-height: 100vh;
    color: var(--text-dark);
}

.shop-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: 56px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    gap: 0.35rem;
}

.shop-nav a {
    color: var(--store-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-nav a:hover {
    color: var(--store-accent);
}

.shop-nav .brand {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    color: var(--text-dark);
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
    line-height: 1.2;
}

.shop-nav .cart-link {
    position: relative;
    color: var(--store-primary);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.shop-nav .cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--store-button);
    color: #fff;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-nav-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    height: 100%;
}

.shop-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--store-card-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shop-chips-sticky {
    position: sticky;
    top: 56px;
    z-index: 998;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shop-chips {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    overflow-x: auto;
    border-bottom: none;
}

.shop-chip {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: var(--store-card-bg);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.shop-catalog-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0 0.75rem;
    max-width: none;
    margin: 0;
    width: 100%;
}

.shop-catalog-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.shop-catalog-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-weight: 500;
}

.shop-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.shop-main {
    flex: 1;
    min-width: 0;
}

.shop-sidebar {
    background: var(--store-card-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    align-self: flex-start;
}

.shop-sidebar-inner {
    padding: 1.25rem 1.1rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem 0 1.5rem;
}

@media (min-width: 600px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .shop-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .shop-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: 120px;
    }

    .shop-sidebar-inner {
        position: sticky;
        top: 120px;
    }

    .shop-mobile-filter-bar {
        display: none !important;
    }

    .shop-filter-backdrop {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .shop-layout {
        flex-direction: column;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .shop-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(360px, 92vw);
        z-index: 2100;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        overflow-y: auto;
    }

    .shop-sidebar.is-open {
        transform: translateX(0);
    }

    .shop-mobile-filter-bar {
        display: flex;
    }
}

.shop-card {
    background: var(--store-card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shop-card .img-wrap {
    position: relative;
    aspect-ratio: 1;
    background: var(--pink-soft);
    overflow: hidden;
}

.shop-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card .body {
    padding: 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card .name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.shop-card .price {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--store-button);
    color: #fff;
    padding: 10px 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.25s;
}

.sticky-cart.show {
    transform: translateY(0);
}

.sticky-cart-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Fashion/editorial: full-width dark bar + light pill CTA (matches reference screenshot). */
body.shop-body-premium.shop-tpl-fashion .sticky-cart {
    background: #0a0a0a;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
    min-height: 56px;
    padding: 12px 1.15rem;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}
body.shop-body-premium.shop-tpl-fashion .sticky-cart-cta {
    padding: 10px 16px;
    background: #ffffff;
    color: #0a0a0a;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}

/* Floating actions must sit above the cart bar (998) — rules duplicated in store-shop.php */
.floating-chat-btn,
.floating-whatsapp-btn {
    z-index: 10050;
}

.shop-wa-fab {
    z-index: 10049;
}

/* Quick view modal — must not use opacity-only hiding (leaks into document flow when CSS fails). */
.shop-quick-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    box-sizing: border-box;
}

.shop-quick-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
