* {
    box-sizing: border-box;
}

:root {
    --bg: #08070b;
    --panel: #0f0d13;
    --panel-2: #15111a;
    --line: rgba(255,255,255,.09);
    --text: #faf7ff;
    --muted: #a89eb2;
    --purple: #9c31ff;
    --purple-2: #7221f5;
    --green: #69ffc0;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            rgba(121, 30, 255, .11),
            transparent 35%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select {
    font: inherit;
}

.shop-topbar {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 0 5vw;
    border-bottom: 1px solid var(--line);
    background: rgba(8,7,11,.94);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
}

.shop-logo {
    font-weight: 1000;
    letter-spacing: -.03em;
    font-size: 1.15rem;
}

.shop-logo span {
    color: var(--purple);
}

.shop-nav {
    display: flex;
    gap: 24px;
}

.shop-nav a {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}

.shop-nav a.active,
.shop-nav a:hover {
    color: white;
}

.cart-open {
    border: 1px solid rgba(156,49,255,.55);
    background: rgba(156,49,255,.1);
    color: white;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
}

.shop-main,
.product-page-main {
    width: min(1450px, 92vw);
    margin: 0 auto;
}

.shop-hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 70px 0 50px;
}

.hero-content {
    max-width: 900px;
}

.eyebrow,
.section-kicker {
    color: #c98dff;
    font-size: .72rem;
    font-weight: 1000;
    letter-spacing: .18em;
}

.shop-hero h1 {
    margin: 10px 0 14px;
    font-size: clamp(4rem, 10vw, 8.8rem);
    letter-spacing: -.07em;
    line-height: .85;
}

.shop-hero h1 span {
    color: var(--purple);
}

.hero-text {
    color: var(--muted);
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.7;
}

.catalog-section {
    padding: 10px 0 90px;
}

.catalog-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.catalog-head h2 {
    margin: 7px 0 0;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    letter-spacing: -.05em;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.category-button {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--muted);
    border-radius: 999px;
    padding: 11px 17px;
    font-size: .72rem;
    font-weight: 950;
    cursor: pointer;
}

.category-button.active,
.category-button:hover {
    color: white;
    border-color: var(--purple);
    background: rgba(156,49,255,.15);
}

.product-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.catalog-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: var(--panel);
    transition:
        transform .18s ease,
        border-color .18s ease;
}

.catalog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(156,49,255,.55);
}

.catalog-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    overflow: hidden;
}

.catalog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.catalog-category {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(8,7,11,.88);
    color: white;
    font-size: .62rem;
    font-weight: 950;
}

.catalog-info {
    padding: 20px 20px 13px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.catalog-badge {
    color: #c887ff;
    font-size: .59rem;
    font-weight: 1000;
}

.catalog-info h3 {
    margin: 7px 0 0;
    font-size: 1.55rem;
    letter-spacing: -.04em;
}

.catalog-price {
    text-align: right;
    flex: 0 0 auto;
}

.catalog-price small {
    display: block;
    color: var(--muted);
    font-size: .58rem;
    font-weight: 900;
}

.catalog-price strong {
    font-size: 1.22rem;
}

.catalog-footer {
    border-top: 1px solid var(--line);
    padding: 14px 20px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: .67rem;
}

.view-product {
    color: white;
    font-weight: 1000;
}

.meaning-section {
    margin: 10px 0 100px;
    border: 1px solid rgba(105,255,192,.2);
    background: rgba(105,255,192,.04);
    border-radius: 26px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.meaning-section h2 {
    margin: 8px 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.meaning-section p {
    color: var(--muted);
    max-width: 650px;
    line-height: 1.6;
}

.cancer-number {
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: .8;
    font-weight: 1000;
    color: var(--green);
}

.cancer-number span {
    display: block;
    margin-top: 12px;
    font-size: .85rem;
    letter-spacing: .15em;
}

.shop-footer {
    width: min(1450px, 92vw);
    margin: 0 auto;
    border-top: 1px solid var(--line);
    padding: 25px 0 40px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .72rem;
}

.shop-footer strong {
    color: white;
}


/* PRODUCT PAGE */

.product-page-main {
    padding-top: 32px;
    padding-bottom: 90px;
}

.back-to-shop {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 950;
}

.back-to-shop:hover {
    color: white;
}

.product-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(390px, .92fr);
    gap: 22px;
}

.gallery-shell,
.product-detail-panel {
    border: 1px solid var(--line);
    border-radius: 25px;
    background: var(--panel);
}

.gallery-shell {
    overflow: hidden;
}

.gallery-main {
    position: relative;
    min-height: 650px;
    background: #f8f8f8;
    display: grid;
    place-items: center;
}

.gallery-main > img {
    width: 100%;
    height: 100%;
    max-height: 760px;
    object-fit: contain;
    display: block;
}

.gallery-arrow {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(8,7,11,.83);
    color: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-arrow-left {
    left: 18px;
}

.gallery-arrow-right {
    right: 18px;
}

.gallery-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(8,7,11,.85);
    color: white;
    font-size: .7rem;
    font-weight: 900;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 14px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
}

.gallery-thumb {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: white;
    cursor: pointer;
}

.gallery-thumb.active {
    border: 2px solid var(--purple);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail-panel {
    padding: clamp(28px, 4vw, 52px);
    align-self: start;
    position: sticky;
    top: 105px;
}

.product-badge {
    display: inline-block;
    border: 1px solid rgba(156,49,255,.55);
    background: rgba(156,49,255,.12);
    color: #d4a2ff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .62rem;
    font-weight: 1000;
}

.product-detail-panel h1 {
    margin: 20px 0 5px;
    font-size: clamp(3rem, 5vw, 5.6rem);
    letter-spacing: -.065em;
    line-height: .92;
}

.product-subtitle {
    color: #bb83f0;
    font-size: .8rem;
}

.product-price-block {
    margin-top: 33px;
}

.product-price-block span {
    display: block;
    margin-bottom: 7px;
    font-size: .65rem;
    font-weight: 950;
}

.product-price-block strong {
    font-size: 2rem;
}

.donation-badge {
    display: inline-block;
    margin-top: 20px;
    border: 1px solid rgba(105,255,192,.23);
    background: rgba(105,255,192,.07);
    color: var(--green);
    border-radius: 13px;
    padding: 13px 15px;
    font-size: .72rem;
    font-weight: 950;
}

.product-description {
    margin: 25px 0;
    line-height: 1.7;
    color: #e5ddea;
}

.product-field label {
    display: block;
    margin-bottom: 9px;
    font-size: .67rem;
    font-weight: 1000;
}

.product-field select {
    width: 100%;
    border: 1px solid var(--line);
    background: #0a090c;
    color: white;
    border-radius: 12px;
    padding: 15px;
}

.add-cart {
    width: 100%;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    padding: 16px;
    background:
        linear-gradient(
            90deg,
            #a534ff,
            #7425ff
        );
    color: white;
    font-weight: 1000;
    cursor: pointer;
}

.add-cart:hover {
    filter: brightness(1.08);
}

.product-note {
    color: var(--muted);
    text-align: center;
    font-size: .67rem;
    margin: 12px 0 0;
}

.product-points {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-point {
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 14px;
}

.product-point strong {
    display: block;
    margin-bottom: 7px;
    font-size: .66rem;
}

.product-point span {
    color: var(--muted);
    font-size: .67rem;
}

.product-not-found {
    padding: 100px 0;
    text-align: center;
}


/* CART */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.72);
    display: flex;
    justify-content: flex-end;
}

.cart-overlay[hidden] {
    display: none !important;
}

.cart-panel {
    width: min(460px, 100%);
    height: 100%;
    padding: 24px;
    background: #0d0b10;
    border-left: 1px solid var(--line);
    overflow-y: auto;
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
}

.cart-head h2 {
    margin: 0;
}

.cart-close {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: white;
    cursor: pointer;
}

.cart-empty {
    color: var(--muted);
    padding: 35px 0;
}

.cart-item {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px;
    display: grid;
    gap: 8px;
}

.cart-item span {
    color: var(--muted);
    font-size: .8rem;
}

.cart-remove {
    margin-top: 5px;
    justify-self: start;
    border: 0;
    background: transparent;
    color: #ff8a9d;
    padding: 0;
    font-size: .68rem;
    font-weight: 950;
    cursor: pointer;
}

.cart-summary {
    margin-top: 25px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
}

.checkout-disabled {
    width: 100%;
    margin-top: 17px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #17131b;
    color: #766f7e;
    font-weight: 950;
}


/* MOBILE */

@media (max-width: 850px) {

    .shop-topbar {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding: 14px 4vw;
    }

    .shop-nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .shop-hero {
        min-height: 330px;
    }

    .catalog-head {
        align-items: start;
        flex-direction: column;
    }

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

    .product-detail-panel {
        position: static;
    }

    .gallery-main {
        min-height: 430px;
    }

    .meaning-section {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {

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

    .catalog-card {
        border-radius: 16px;
    }

    .catalog-info {
        padding: 13px;
        align-items: start;
        flex-direction: column;
        gap: 8px;
    }

    .catalog-info h3 {
        font-size: 1rem;
    }

    .catalog-price {
        text-align: left;
    }

    .catalog-footer {
        padding: 11px 13px;
        display: block;
    }

    .catalog-footer > span:first-child {
        display: none;
    }

    .gallery-main {
        min-height: 360px;
    }

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