/* ==========================================================================
   Beta Crystal — Custom Shop
   ========================================================================== */

.bc-shop-page,
.bc-shop-page *,
.bc-shop-page *::before,
.bc-shop-page *::after {
    box-sizing: border-box;
}

.bc-shop-page {
    --bg: #141414;
    --bg-alt: #191919;
    --card: #202020;

    --white: #ffffff;
    --text: rgba(255,255,255,0.72);
    --dim: rgba(255,255,255,0.45);

    --gold: #c9a06a;
    --gold-bright: #f5d79a;
    --gold-soft: rgba(201,160,106,0.15);

    background: var(--bg);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    -webkit-font-smoothing: antialiased;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.bc-shop-hero {
    position: relative;
    min-height: 540px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 100px 24px;

    text-align: center;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 20%,
            rgba(201,160,106,0.14),
            transparent 55%
        ),
        var(--bg);
}

.bc-shop-hero::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -300px;

    width: 800px;
    height: 500px;

    transform: translateX(-50%);

    background: radial-gradient(
        ellipse,
        rgba(201,160,106,0.12),
        transparent 70%
    );

    pointer-events: none;
}

.bc-shop-hero-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 900px;
}

.bc-shop-eyebrow {
    margin-bottom: 22px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: var(--gold);
}

.bc-shop-hero h1 {
    margin: 0;

    font-size: clamp(48px, 7vw, 100px);
    font-weight: 500;

    line-height: 0.95;
    letter-spacing: -0.05em;

    text-transform: uppercase;

    color: #fff !important;
}

.bc-shop-hero h1 span {
    color: var(--gold) !important;
}

.bc-shop-hero p {
    max-width: 500px;

    margin: 30px auto 0;

    font-size: 16px;
    line-height: 1.75;

    color: var(--text) !important;
}


/* ==========================================================================
   CATEGORY NAVIGATION
   ========================================================================== */

.bc-shop-nav {
    position: sticky;
    top: 0;
    z-index: 20;

    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);

    background: rgba(20,20,20,0.90);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bc-shop-nav-inner {
    max-width: 1200px;

    margin: 0 auto;

    padding: 14px 24px;

    display: flex;
    justify-content: center;
    gap: 8px;

    overflow-x: auto;

    scrollbar-width: none;
}

.bc-shop-nav-inner::-webkit-scrollbar {
    display: none;
}

.bc-shop-filter {
    flex-shrink: 0;

    padding: 11px 19px;

    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 2px;

    background: transparent;

    color: rgba(255,255,255,0.55);

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.bc-shop-filter:hover {
    color: var(--gold-bright);

    background: rgba(201,160,106,0.07);

    border-color: rgba(201,160,106,0.45);

    transform: translateY(-1px);
}

.bc-shop-filter.active {
    background: var(--gold);
    border-color: var(--gold);

    color: #191410;
}


/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */

.bc-shop-grid {
    max-width: 1200px;

    margin: 0 auto;

    padding: 90px 24px 120px;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 70px 36px;
}


/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */

.bc-shop-card {
    min-width: 0;

    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s cubic-bezier(0.16,1,0.3,1),
        transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.bc-shop-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bc-shop-card.is-hidden {
    display: none;
}


/* ==========================================================================
   PRODUCT IMAGE
   ========================================================================== */

.bc-shop-image {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 18px;

    background:
        radial-gradient(
            ellipse at center,
            #292929 0%,
            #202020 48%,
            #141414 82%
        );

    isolation: isolate;
}

.bc-shop-image::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.055),
            transparent 35%,
            transparent 70%,
            rgba(201,160,106,0.05)
        );

    pointer-events: none;
}

.bc-shop-image::after {
    content: "";

    position: absolute;

    left: 10%;
    right: 10%;
    bottom: -30%;

    height: 50%;

    background: radial-gradient(
        ellipse,
        rgba(201,160,106,0.12),
        transparent 70%
    );

    filter: blur(30px);

    pointer-events: none;
}

.bc-shop-image-glow {
    position: absolute;

    width: 60%;
    height: 60%;

    left: 50%;
    top: 50%;

    transform: translate(-50%,-50%);

    background: radial-gradient(
        ellipse,
        rgba(201,160,106,0.17),
        transparent 70%
    );

    filter: blur(35px);

    opacity: 0.7;

    transition:
        transform 0.7s cubic-bezier(0.16,1,0.3,1),
        opacity 0.5s ease;
}

.bc-shop-image img {
    position: relative;
    z-index: 2;

    width: 82%;
    height: 82%;

    object-fit: contain;

    transition:
        transform 0.7s cubic-bezier(0.16,1,0.3,1);
}


/* Desktop hover only */
@media (hover: hover) and (pointer: fine) {

    .bc-shop-card:hover .bc-shop-image img {
        transform: scale(1.07);
    }

    .bc-shop-card:hover .bc-shop-image-glow {
        transform:
            translate(-50%,-50%)
            scale(1.25);

        opacity: 1;
    }

}


/* ==========================================================================
   PRODUCT CONTENT
   ========================================================================== */

.bc-shop-content {
    padding: 25px 5px 0;
}

.bc-shop-category {
    margin-bottom: 9px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--gold);
}

.bc-shop-card h2 {
    margin: 0 0 12px;

    font-size: clamp(25px, 3vw, 36px);
    font-weight: 500;

    line-height: 1.05;
    letter-spacing: -0.025em;

    text-transform: uppercase;
}

.bc-shop-card h2 a {
    color: #fff !important;
    text-decoration: none;

    transition: color 0.25s ease;
}

.bc-shop-card h2 a:hover {
    color: var(--gold-bright) !important;
}

.bc-shop-card p {
    max-width: 520px;

    margin: 0;

    font-size: 14px;
    line-height: 1.7;

    color: var(--text) !important;
}


/* ==========================================================================
   PRICE + RATING
   ========================================================================== */

.bc-shop-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 22px;
}

.bc-shop-price {
    font-size: 18px;
    font-weight: 500;

    color: var(--gold-bright);
}

.bc-shop-rating {
    font-size: 13px;

    letter-spacing: 0.08em;

    color: var(--gold-bright);
}


/* ==========================================================================
   BUTTON
   ========================================================================== */

.bc-shop-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 18px;

    margin-top: 25px;

    padding: 13px 22px;

    border: 1px solid var(--gold);

    background: transparent;

    color: var(--gold) !important;

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.15em;
    text-transform: uppercase;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.bc-shop-button:hover {
    background: var(--gold);

    color: #191410 !important;

    transform: translateY(-2px);
}

.bc-shop-button span {
    font-size: 15px;
}


/* ==========================================================================
   CTA
   ========================================================================== */

.bc-shop-cta {
    position: relative;

    overflow: hidden;

    padding: 150px 24px;

    text-align: center;

    border-top: 1px solid rgba(255,255,255,0.07);

    background: #181818;
}

.bc-shop-cta::before {
    content: "";

    position: absolute;

    width: 800px;
    height: 500px;

    left: 50%;
    bottom: -400px;

    transform: translateX(-50%);

    background: radial-gradient(
        ellipse,
        rgba(201,160,106,0.20),
        transparent 68%
    );

    pointer-events: none;
}

.bc-shop-cta-inner {
    position: relative;
    z-index: 2;

    max-width: 650px;

    margin: 0 auto;
}

.bc-shop-cta h2 {
    margin: 0;

    font-size: clamp(35px, 5vw, 65px);

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.04em;

    text-transform: uppercase;

    color: #fff !important;
}

.bc-shop-cta h2 span {
    color: var(--gold) !important;
}

.bc-shop-cta p {
    max-width: 500px;

    margin: 25px auto 0;

    font-size: 15px;

    line-height: 1.75;

    color: var(--text) !important;
}

.bc-shop-cta .bc-shop-button {
    margin-top: 35px;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 760px) {

    .bc-shop-hero {
        min-height: 470px;

        padding: 80px 20px;
    }

    .bc-shop-hero h1 {
        font-size: clamp(42px, 14vw, 70px);
    }

    .bc-shop-nav-inner {
        justify-content: flex-start;

        padding-left: 20px;
        padding-right: 20px;
    }

    .bc-shop-grid {
        grid-template-columns: 1fr;

        gap: 55px;

        padding: 60px 20px 80px;
    }

    .bc-shop-image {
        border-radius: 14px;
    }

    .bc-shop-content {
        padding-top: 20px;
    }

    .bc-shop-meta {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .bc-shop-button {
        width: 100%;
    }

    .bc-shop-cta {
        padding: 100px 20px;
    }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .bc-shop-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .bc-shop-image img,
    .bc-shop-image-glow,
    .bc-shop-button,
    .bc-shop-filter {
        transition: none;
    }

}
/* ==========================================================================
   Dynamic Shop additions
   ========================================================================== */

.bc-shop-products {
    background: #141414;
}

.bc-shop-loading,
.bc-shop-error,
.bc-shop-empty {
    grid-column: 1 / -1;

    min-height: 300px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 60px 20px;
}

.bc-shop-loading {
    color: rgba(255,255,255,.45);

    font-size: 12px;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.bc-shop-error h2,
.bc-shop-empty h2 {
    margin: 10px 0 15px;

    color: #fff;

    font-size: 32px;

    font-weight: 500;
}

.bc-shop-error p,
.bc-shop-empty p {
    max-width: 450px;

    color: rgba(255,255,255,.6);

    line-height: 1.7;
}

.bc-shop-review-count {
    margin-left: 6px;

    color: rgba(255,255,255,.4);

    font-size: 10px;

    letter-spacing: 0;
}

.bc-shop-no-image {
    position: relative;
    z-index: 2;

    color: rgba(255,255,255,.25);

    font-size: 11px;

    letter-spacing: .2em;
}

/* ==========================================================================
   Remove ONLY native WooCommerce archive elements
   ========================================================================== */

.kadence-shop-top-row {
    display: none !important;
}
/* Hide native Kadence/WooCommerce product archive */
body.woocommerce-shop ul.products.woo-archive-loop {
    display: none !important;
}

body.woocommerce-shop .site-main {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.woocommerce-shop .content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.woocommerce-shop .woocommerce {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.woocommerce-shop .site-container {
    padding: 0 !important;
}