/* =========================================================
   COLORVELLA PREMIUM SHOP — DARK UI
========================================================= */

:root {
    --shop-bg: #080914;
    --shop-bg-2: #0d1020;

    --shop-card:
        rgba(18, 20, 36, .82);

    --shop-card-strong:
        rgba(21, 23, 42, .96);

    --shop-border:
        rgba(255, 255, 255, .10);

    --shop-border-bright:
        rgba(255, 255, 255, .16);

    --shop-text: #f8f7ff;
    --shop-muted: #9ea2b8;

    --shop-pink: #ff52c8;
    --shop-purple: #9c68ff;
    --shop-blue: #39bfff;
}


/* =========================================================
   BASE
========================================================= */

body {
    background:
        radial-gradient(
            circle at 12% 14%,
            rgba(255, 62, 169, .11),
            transparent 29%
        ),
        radial-gradient(
            circle at 88% 11%,
            rgba(0, 174, 255, .11),
            transparent 32%
        ),
        radial-gradient(
            circle at 47% 75%,
            rgba(125, 73, 255, .09),
            transparent 38%
        ),
        var(--shop-bg);

    color: var(--shop-text);
}

.shop-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* Old local header is replaced by header.js */

.shop-header-inner,
.nav-shop {
    all: unset;
}


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

.shop-hero {
    position: relative;
    padding: 84px 0 86px;
    overflow: hidden;
}

.shop-hero::before {
    content: "";
    position: absolute;

    width: 620px;
    height: 620px;

    right: -180px;
    top: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(58, 184, 255, .13),
            rgba(119, 72, 255, .08) 42%,
            transparent 70%
        );

    filter: blur(18px);
    pointer-events: none;
}

.shop-hero::after {
    content: "";
    position: absolute;

    width: 470px;
    height: 470px;

    left: -170px;
    bottom: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 64, 185, .11),
            transparent 70%
        );

    pointer-events: none;
}

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

    display: grid;

    grid-template-columns:
        minmax(0, 1.04fr)
        minmax(360px, .96fr);

    gap: 66px;
    align-items: center;
}


.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 34px;
    padding: 0 15px;

    border-radius: 999px;

    color: #ff7bdd;

    background:
        linear-gradient(
            135deg,
            rgba(255, 72, 194, .14),
            rgba(142, 85, 255, .10)
        );

    border:
        1px solid rgba(255, 86, 202, .28);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}


.shop-hero h1 {
    max-width: 680px;

    margin: 24px 0 20px;

    color: white;

    font-size: clamp(48px, 5.6vw, 74px);
    line-height: .96;

    letter-spacing: -4px;
}

.shop-hero h1 span {
    display: inline-block;

    background:
        linear-gradient(
            90deg,
            #ff62ce,
            #b967ff 55%,
            #43c6ff
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


.shop-hero-copy > p {
    max-width: 620px;

    margin: 0;

    color: var(--shop-muted);

    font-size: 17px;
    line-height: 1.72;
}


.shop-hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
    margin-top: 29px;
}


.shop-primary-button,
.shop-secondary-button {
    min-height: 50px;

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

    padding: 0 21px;

    border-radius: 14px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 900;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


.shop-primary-button {
    color: white;

    background:
        linear-gradient(
            135deg,
            var(--shop-pink),
            var(--shop-purple) 58%,
            var(--shop-blue)
        );

    box-shadow:
        0 13px 32px rgba(174, 71, 255, .23);
}


.shop-secondary-button {
    color: white;

    background:
        rgba(255, 255, 255, .045);

    border:
        1px solid rgba(255, 255, 255, .13);
}


.shop-primary-button:hover,
.shop-secondary-button:hover {
    transform: translateY(-2px);
}


.shop-benefits {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 34px;
}


.shop-benefits div {
    min-width: 130px;

    display: flex;
    flex-direction: column;

    gap: 2px;

    padding: 13px 16px;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, .035);

    border:
        1px solid rgba(255, 255, 255, .085);
}


.shop-benefits strong {
    color: white;

    font-size: 14px;
    font-weight: 900;
}


.shop-benefits span {
    color: var(--shop-muted);

    font-size: 11px;
}


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

.premium-art-panel {
    position: relative;

    min-height: 510px;

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

    overflow: hidden;

    border-radius: 34px;

    background:
        radial-gradient(
            circle at 50% 32%,
            rgba(174, 91, 255, .16),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .055),
            rgba(255, 255, 255, .018)
        );

    border:
        1px solid rgba(255, 255, 255, .10);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .26);
}


.premium-art-panel::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 82, 200, .20),
            rgba(135, 79, 255, .10) 48%,
            transparent 72%
        );

    filter: blur(20px);
}


.premium-glow {
    position: absolute;

    width: 390px;
    height: 390px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(137, 78, 255, .15),
            rgba(255, 81, 192, .06),
            transparent 70%
        );
}


.book-mockup {
    position: relative;
    z-index: 2;

    width: 275px;
    height: 395px;

    transform:
        perspective(1100px)
        rotateY(-10deg)
        rotateX(2deg)
        rotateZ(2deg);

    filter:
        drop-shadow(
            22px 30px 31px
            rgba(0, 0, 0, .40)
        );
}


.book-cover {
    position: absolute;
    inset: 0;

    padding: 31px 25px 23px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    overflow: hidden;

    border-radius:
        7px 17px 17px 7px;

    color: white;

    background:
        radial-gradient(
            circle at 50% 22%,
            rgba(255, 255, 255, .13),
            transparent 31%
        ),
        linear-gradient(
            155deg,
            #25143f,
            #5a286e 48%,
            #a43b79
        );

    border:
        1px solid rgba(255, 255, 255, .14);
}


.book-cover::before,
.book-cover::after {
    content: "";

    position: absolute;

    border:
        1px solid rgba(255, 255, 255, .12);

    border-radius: 50%;
}

.book-cover::before {
    width: 260px;
    height: 260px;
    top: 43px;
}

.book-cover::after {
    width: 205px;
    height: 205px;
    top: 70px;
}


.book-spine {
    position: absolute;

    left: -13px;
    top: 5px;
    bottom: 5px;

    width: 21px;

    border-radius:
        7px 0 0 7px;

    background:
        linear-gradient(
            90deg,
            #130b21,
            #3a1c4d
        );
}


.book-cover-kicker,
.book-cover-symbol,
.book-cover h2,
.book-cover p,
.book-cover-footer {
    position: relative;
    z-index: 2;
}


.book-cover-kicker {
    font-size: 10px;
    letter-spacing: .27em;
    font-weight: 900;

    opacity: .78;
}


.book-cover-symbol {
    margin-top: 49px;

    color: #ffcaff;
    font-size: 39px;
}


.book-cover h2 {
    margin: 16px 0 12px;

    font-family: Georgia, serif;

    font-size: 38px;
    line-height: .94;

    letter-spacing: -1.4px;
}


.book-cover p {
    max-width: 195px;

    margin: 0;

    font-family: Georgia, serif;

    font-size: 13px;
    line-height: 1.5;

    opacity: .83;
}


.book-cover-footer {
    margin-top: auto;

    font-size: 8px;
    letter-spacing: .18em;

    opacity: .62;
}


/* =========================================================
   PREMIUM COLLECTION
========================================================= */

.premium-section {
    position: relative;

    padding: 80px 0 95px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .018),
            transparent
        );

    border-top:
        1px solid rgba(255, 255, 255, .06);
}


.premium-section-head {
    display: flex;
    justify-content: space-between;

    margin-bottom: 34px;
}


.premium-kicker {
    margin-bottom: 9px;

    color: #ee65d5;

    text-transform: uppercase;

    font-size: 11px;
    font-weight: 950;
    letter-spacing: .15em;
}


.premium-section h2,
.physical-card h2 {
    margin: 0;

    color: white;

    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.02;

    letter-spacing: -2px;
}


.premium-section-head p,
.physical-card p {
    max-width: 620px;

    color: var(--shop-muted);

    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   PRODUCTS
========================================================= */

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px, 360px)
        );

    gap: 24px;
}


.shop-product-card {
    position: relative;

    min-height: 500px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    padding: 18px;

    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            rgba(24, 26, 45, .94),
            rgba(13, 15, 28, .95)
        );

    border:
        1px solid rgba(255, 255, 255, .10);

    box-shadow:
        0 24px 65px rgba(0, 0, 0, .22);

    transition:
        transform .20s ease,
        border-color .20s ease,
        box-shadow .20s ease;
}


.shop-product-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(221, 105, 255, .26);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .32);
}


.product-art {
    position: relative;

    min-height: 275px;

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

    overflow: hidden;

    border-radius: 20px;

    text-decoration: none;

    background:
        radial-gradient(
            circle at 50% 28%,
            rgba(224, 115, 255, .13),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #171326,
            #231633
        );

    border:
        1px solid rgba(255, 255, 255, .075);
}


.product-art img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.product-mini-book {
    width: 150px;
    height: 205px;

    padding: 25px 17px;

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

    text-align: center;

    border-radius:
        6px 13px 13px 6px;

    color: white;

    background:
        linear-gradient(
            155deg,
            #2a1746,
            #5b2b73 50%,
            #a13e78
        );

    box-shadow:
        20px 24px 35px
        rgba(0, 0, 0, .34);

    transform:
        perspective(700px)
        rotateY(-8deg)
        rotateZ(1deg);
}


.product-mini-book strong {
    font-family: Georgia, serif;

    font-size: 22px;
    line-height: 1.02;
}


.product-mini-book small {
    margin-top: 14px;

    font-size: 8px;
    letter-spacing: .10em;

    opacity: .72;
}


.product-body {
    padding: 17px 3px 0;
}


.product-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 12px;
}


.product-pill {
    padding: 6px 9px;

    border-radius: 999px;

    color: #c994ff;

    background:
        rgba(150, 86, 255, .10);

    border:
        1px solid rgba(163, 103, 255, .13);

    font-size: 10px;
    font-weight: 850;
}


.shop-product-card h3 {
    margin: 0;

    color: white;

    font-size: 22px;
    line-height: 1.14;

    letter-spacing: -.6px;
}


.product-subtitle {
    min-height: 44px;

    margin: 8px 0 0;

    color: var(--shop-muted);

    font-size: 13px;
    line-height: 1.55;
}


.product-bottom {
    margin-top: auto;
    padding: 19px 2px 2px;

    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 14px;
}


.product-price {
    display: flex;
    flex-direction: column;

    gap: 1px;
}


.product-price small {
    color: #85899e;

    font-size: 10px;
}


.product-price strong {
    color: white;

    font-size: 22px;
    font-weight: 950;
}


.product-view-button {
    min-height: 40px;

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

    padding: 0 15px;

    border-radius: 12px;

    color: white;
    text-decoration: none;

    font-size: 12px;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #f44dbc,
            #9b63ff
        );

    box-shadow:
        0 10px 25px
        rgba(195, 69, 255, .17);
}


/* Loading / empty */

.shop-loading,
.shop-empty,
.shop-error {
    padding: 28px;

    border-radius: 20px;

    color: var(--shop-muted);

    background:
        rgba(255, 255, 255, .035);

    border:
        1px solid rgba(255, 255, 255, .08);
}


/* =========================================================
   PHYSICAL / COMING SOON
========================================================= */

.physical-coming {
    padding: 0 0 90px;
}


.physical-card {
    position: relative;

    display: grid;

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

    align-items: center;

    gap: 50px;

    overflow: hidden;

    padding: 46px 48px;

    border-radius: 30px;

    background:
        radial-gradient(
            circle at 15% 40%,
            rgba(255, 69, 185, .10),
            transparent 33%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(133, 87, 255, .11),
            transparent 34%
        ),
        rgba(17, 19, 34, .86);

    border:
        1px solid rgba(255, 255, 255, .10);
}


.physical-copy {
    position: relative;
    z-index: 2;
}


.physical-status {
    min-width: 175px;

    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 21px 24px;

    border-radius: 18px;

    color: var(--shop-muted);

    background:
        rgba(255, 255, 255, .045);

    border:
        1px solid rgba(255, 255, 255, .10);

    font-size: 12px;
}


.physical-status strong {
    color: #bb70ff;

    font-size: 17px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 920px) {

    .shop-hero {
        padding-top: 60px;
    }

    .shop-hero-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .premium-art-panel {
        min-height: 470px;
    }

    .physical-card {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .physical-status {
        width: fit-content;
    }
}


@media (max-width: 640px) {

    .shop-shell {
        width: min(100% - 28px, 1180px);
    }

    .shop-hero {
        padding: 45px 0 62px;
    }

    .shop-hero h1 {
        font-size: clamp(42px, 13vw, 60px);
        letter-spacing: -3px;
    }

    .shop-hero-copy > p {
        font-size: 15px;
    }

    .shop-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .shop-primary-button,
    .shop-secondary-button {
        width: 100%;
    }

    .shop-benefits {
        display: grid;
        grid-template-columns:
            repeat(3, 1fr);

        gap: 7px;
    }

    .shop-benefits div {
        min-width: 0;
        padding: 11px 10px;
    }

    .shop-benefits strong {
        font-size: 12px;
    }

    .shop-benefits span {
        font-size: 9px;
    }

    .premium-art-panel {
        min-height: 395px;
        border-radius: 26px;
    }

    .book-mockup {
        width: 220px;
        height: 315px;
    }

    .book-cover h2 {
        font-size: 31px;
    }

    .book-cover-symbol {
        margin-top: 35px;
    }

    .premium-section {
        padding: 64px 0 72px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .shop-product-card {
        min-height: 480px;
    }

    .physical-coming {
        padding-bottom: 65px;
    }

    .physical-card {
        padding: 30px 24px;
        border-radius: 24px;
    }
}
