/* =========================================================
   DEARDEN2007 MERCH STORE
========================================================= */

:root {
    --merch-red: #df2027;
    --merch-blue: #3478f6;
    --merch-panel: #10141a;
    --merch-line: #303946;
    --merch-muted: #b4bdca;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.merch-page {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 42px 0 100px;
}

.merch-eyebrow {
    display: inline-block;
    color: #74a7ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.merch-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: clamp(45px, 7vw, 100px);
    align-items: center;
    min-height: 650px;
    padding: clamp(48px, 7vw, 90px);
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(52, 120, 246, 0.22), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(223, 32, 39, 0.18), transparent 35%),
        linear-gradient(135deg, #090c11, #030405);
    border: 1px solid #344050;
    border-radius: 30px;
    box-shadow: 0 35px 95px rgba(0, 0, 0, 0.55);
}

.merch-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.merch-hero > * {
    position: relative;
    z-index: 1;
}

.merch-hero h1 {
    margin: 22px 0 25px;
    color: #fff;
    font-size: clamp(52px, 7vw, 96px);
    line-height: .95;
    letter-spacing: -4px;
}

.merch-hero h1 strong {
    display: block;
    color: var(--merch-red);
    text-shadow: 0 0 32px rgba(223, 32, 39, .28);
}

.merch-hero-copy > p {
    max-width: 770px;
    color: #c4cbd4;
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.8;
}

.merch-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.merch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 24px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .7px;
    border-radius: 11px;
    transition: transform .22s ease, box-shadow .22s ease;
}

.merch-button:hover {
    color: #fff;
    transform: translateY(-3px);
}

.merch-button-red {
    background: linear-gradient(135deg, #ef343a, #980c11);
    border: 1px solid #ff5b61;
    box-shadow: 0 12px 30px rgba(223, 32, 39, .25);
}

.merch-button-blue {
    background: linear-gradient(135deg, #4385fa, #163b9b);
    border: 1px solid #75a3ff;
    box-shadow: 0 12px 30px rgba(52, 120, 246, .25);
}

.merch-impact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 30px;
    color: #9ea8b5;
    font-size: 13px;
    font-weight: 700;
}

.merch-hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 470px;
}

.merch-hero-visual > img {
    position: relative;
    z-index: 2;
    display: block;
    width: min(390px, 78%);
    border-radius: 50%;
    box-shadow:
        0 0 0 1px #48576c,
        0 30px 70px rgba(0,0,0,.6),
        0 0 55px rgba(52,120,246,.22);
}

.merch-logo-halo {
    position: absolute;
    width: min(470px, 92%);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(52,120,246,.27), transparent 56%),
        conic-gradient(from 30deg, rgba(223,32,39,.7), rgba(52,120,246,.65), rgba(223,32,39,.7));
    filter: blur(22px);
    opacity: .55;
}

.merch-hero-badge {
    position: absolute;
    right: 0;
    bottom: 25px;
    z-index: 3;
    width: min(290px, 80%);
    padding: 18px 20px;
    background: rgba(11,15,21,.92);
    border: 1px solid #445268;
    border-left: 4px solid var(--merch-red);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(0,0,0,.48);
}

.merch-hero-badge span {
    display: block;
    color: #ff787d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.merch-hero-badge strong {
    display: block;
    margin-top: 7px;
    color: #fff;
    font-size: 18px;
}

.store-shell {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 35px;
    margin-top: 90px;
    align-items: start;
}

.store-sidebar {
    position: sticky;
    top: 25px;
    padding: 28px;
    background: linear-gradient(145deg, #141922, #090b0e);
    border: 1px solid var(--merch-line);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0,0,0,.32);
}

.sidebar-heading span {
    color: #718099;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
}

.sidebar-heading h2 {
    margin: 7px 0 22px;
    color: #fff;
    font-size: 32px;
}

.category-filter {
    display: grid;
    gap: 8px;
}

.category-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    color: #bdc5cf;
    text-align: left;
    font: inherit;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: .2s;
}

.category-button:hover {
    color: #fff;
    background: #151d29;
    border-color: #30445f;
}

.category-button.active {
    color: #fff;
    background: linear-gradient(100deg, rgba(52,120,246,.26), rgba(52,120,246,.06));
    border-color: #3e6fc9;
    box-shadow: inset 4px 0 0 var(--merch-blue);
}

.category-button small {
    display: grid;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding: 0 7px;
    color: #9fbfff;
    background: #101b30;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.store-mission-note {
    margin-top: 30px;
    padding: 22px;
    background:
        radial-gradient(circle at 85% 15%, rgba(223,32,39,.15), transparent 45%),
        #110d10;
    border: 1px solid #4a292d;
    border-radius: 16px;
}

.store-mission-note > span {
    color: #ff757a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
}

.store-mission-note h3 {
    margin: 10px 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
}

.store-mission-note p {
    margin: 0;
    color: #b9b0b2;
    font-size: 14px;
    line-height: 1.65;
}

.store-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #2d3440;
}

.store-results h2 {
    margin: 8px 0 4px;
    color: #fff;
    font-size: clamp(35px, 4vw, 52px);
}

.store-results p {
    margin: 0;
    color: #929daa;
}

.store-results strong {
    color: #fff;
}

.store-controls {
    display: flex;
    gap: 12px;
}

.product-search {
    position: relative;
    min-width: min(330px, 38vw);
}

.product-search input,
.product-sort select {
    width: 100%;
    min-height: 50px;
    color: #fff;
    font: inherit;
    background: #0d1117;
    border: 1px solid #35404e;
    border-radius: 11px;
    outline: none;
}

.product-search input {
    padding: 12px 45px 12px 15px;
}

.product-search > span:not(.sr-only) {
    position: absolute;
    right: 15px;
    top: 50%;
    color: #7794c6;
    font-size: 24px;
    transform: translateY(-50%);
    pointer-events: none;
}

.product-sort select {
    min-width: 195px;
    padding: 10px 38px 10px 13px;
    cursor: pointer;
}

.product-search input:focus,
.product-sort select:focus {
    border-color: #5a8ff2;
    box-shadow: 0 0 0 3px rgba(52,120,246,.13);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #151a21, #090b0e);
    border: 1px solid var(--merch-line);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0,0,0,.3);
    transition: .25s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: #4d73ae;
    box-shadow:
        0 28px 70px rgba(0,0,0,.5),
        0 0 28px rgba(52,120,246,.13);
}

.product-card[hidden] {
    display: none;
}

.product-media {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: #080a0d;
}

.product-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    background: linear-gradient(transparent, rgba(3,4,5,.7));
    pointer-events: none;
}

.product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.055);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 8px 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.product-badge-red {
    background: linear-gradient(135deg, #ef343a, #9a0c11);
    border: 1px solid #ff5e64;
}

.product-badge-blue {
    background: linear-gradient(135deg, #4385fa, #173f9f);
    border: 1px solid #78a7ff;
}

.product-quick-view {
    position: absolute;
    right: 15px;
    bottom: 15px;
    z-index: 4;
    min-height: 39px;
    padding: 9px 13px;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    background: rgba(8,11,16,.88);
    border: 1px solid #56667d;
    border-radius: 9px;
    opacity: 0;
    transform: translateY(10px);
    transition: .25s ease;
}

.product-card:hover .product-quick-view,
.product-quick-view:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-quick-view:hover {
    background: #1d55bb;
}

.product-information {
    padding: 24px;
}

.product-category {
    color: #75a5fb;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.product-information h3 {
    min-height: 62px;
    margin: 11px 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.2;
}

.product-description {
    min-height: 78px;
    margin: 0;
    color: #aeb7c3;
    font-size: 15px;
    line-height: 1.65;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 23px;
    padding-top: 20px;
    border-top: 1px solid #2d343e;
}

.product-price {
    margin: 0;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
}

.product-view-button {
    min-height: 42px;
    padding: 10px 15px;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #e82e34, #941015);
    border: 1px solid #fa555b;
    border-radius: 9px;
    transition: .2s ease;
}

.product-view-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(223,32,39,.25);
}

.product-empty-state {
    padding: 80px 30px;
    text-align: center;
    background: #0e1218;
    border: 1px dashed #3a4655;
    border-radius: 20px;
}

.product-empty-state > span {
    color: #6e9cf1;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
}

.product-empty-state h3 {
    margin: 12px 0;
    color: #fff;
    font-size: 32px;
}

.product-empty-state p {
    color: #aab4c1;
}

.product-empty-state button {
    margin-top: 15px;
    padding: 12px 20px;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    background: #1d55bb;
    border: 1px solid #6191ee;
    border-radius: 9px;
}

.merch-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 100px;
    padding: clamp(42px, 6vw, 75px);
    background:
        linear-gradient(110deg, rgba(19,57,132,.94), rgba(10,14,22,.97) 48%, rgba(105,12,17,.92));
    border: 1px solid #4d5d73;
    border-radius: 27px;
    box-shadow: 0 30px 80px rgba(0,0,0,.42);
}

.merch-final-cta h2 {
    margin: 14px 0;
    color: #fff;
    font-size: clamp(37px, 4.5vw, 62px);
    line-height: 1.06;
}

.merch-final-cta h2 strong {
    display: block;
    color: #ff5f64;
}

.merch-final-cta p {
    max-width: 880px;
    margin: 0;
    color: #d0d6de;
    font-size: 18px;
    line-height: 1.75;
}

.product-dialog {
    width: min(1000px, calc(100% - 30px));
    max-height: calc(100vh - 30px);
    padding: 0;
    overflow: auto;
    color: #fff;
    background: #0c1016;
    border: 1px solid #46546a;
    border-radius: 23px;
    box-shadow: 0 35px 110px rgba(0,0,0,.78);
}

.product-dialog::backdrop {
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(6px);
}

.product-dialog-close {
    position: absolute;
    top: 13px;
    right: 16px;
    z-index: 5;
    width: 42px;
    height: 42px;
    color: #fff;
    font-size: 29px;
    cursor: pointer;
    background: rgba(9,12,17,.9);
    border: 1px solid #536073;
    border-radius: 50%;
}

.product-dialog-layout {
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}

.product-dialog-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 20px;
    background: #050608;
}

.product-dialog-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.product-dialog-content {
    padding: clamp(35px, 5vw, 60px);
}

.product-dialog-content h2 {
    margin: 13px 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.02;
}

.product-dialog-price {
    margin: 20px 0 !important;
    color: #73a5ff !important;
    font-size: 32px !important;
    font-weight: 900;
}

.product-dialog-content > p {
    color: #bec6d1;
    font-size: 17px;
    line-height: 1.75;
}

.product-options {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 15px;
    margin-top: 28px;
}

.product-options label {
    color: #d9dee5;
    font-size: 13px;
    font-weight: 800;
}

.product-options select,
.product-options input {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 10px 12px;
    color: #fff;
    font: inherit;
    background: #090c11;
    border: 1px solid #3d4857;
    border-radius: 9px;
}

.product-dialog-action {
    width: 100%;
    min-height: 54px;
    margin-top: 24px;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #e72e34, #8f0e13);
    border: 1px solid #fa5a60;
    border-radius: 10px;
}

.product-dialog-note {
    color: #838e9d !important;
    font-size: 12px !important;
}

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .merch-hero {
        grid-template-columns: 1fr;
    }

    .merch-hero-visual {
        min-height: 420px;
    }

    .store-shell {
        grid-template-columns: 1fr;
    }

    .store-sidebar {
        position: static;
    }

    .category-filter {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .store-mission-note {
        display: none;
    }

    .merch-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .merch-page {
        width: min(100% - 28px, 1500px);
        padding-top: 22px;
    }

    .merch-hero {
        padding: 42px 23px;
    }

    .merch-hero h1 {
        letter-spacing: -2px;
    }

    .store-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .store-controls {
        flex-direction: column;
    }

    .product-search,
    .product-sort select {
        min-width: 100%;
    }

    .category-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .product-dialog-image,
    .product-dialog-image img {
        min-height: 420px;
    }
}

@media (max-width: 470px) {
    .category-filter {
        grid-template-columns: 1fr;
    }

    .merch-hero-actions,
    .merch-button {
        width: 100%;
    }

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

/* =========================================================
   SHOPPING CART
========================================================= */

body.cart-open {
    overflow: hidden;
}

/* =========================================================
   FLOATING CART BUTTON
========================================================= */

.shopping-cart-button {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1100;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 58px;
    padding: 12px 18px;

    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 900;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #3478f6,
            #173f9f
        );

    border: 2px solid #6fa0ff;
    border-radius: 999px;

    box-shadow:
        0 16px 42px rgba(0, 0, 0, 0.58),
        0 0 24px rgba(52, 120, 246, 0.35);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.shopping-cart-button:hover {
    transform: translateY(-4px);

    box-shadow:
        0 22px 52px rgba(0, 0, 0, 0.65),
        0 0 34px rgba(52, 120, 246, 0.52);
}

.shopping-cart-button:focus-visible {
    outline: 3px solid rgba(117, 167, 255, 0.45);
    outline-offset: 4px;
}

.shopping-cart-icon {
    font-size: 21px;
    line-height: 1;
}

.shopping-cart-label {
    line-height: 1;
}

.shopping-cart-count {
    display: grid;
    place-items: center;

    min-width: 28px;
    height: 28px;
    padding: 0 7px;

    color: #ffffff;
    font-size: 12px;
    font-weight: 900;

    background: #df2027;
    border: 1px solid #ff666b;
    border-radius: 999px;

    box-shadow:
        0 5px 14px rgba(223, 32, 39, 0.42);
}

/* =========================================================
   CART BACKDROP
========================================================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;

    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

/*
This is important because your HTML begins with hidden.
Without it, some other CSS can accidentally display the overlay.
*/
.cart-overlay[hidden] {
    display: none !important;
}

.cart-overlay.open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   CART DRAWER
========================================================= */

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1201;

    display: flex;
    flex-direction: column;

    width: min(500px, 100%);
    height: 100vh;
    height: 100dvh;

    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 88% 7%,
            rgba(52, 120, 246, 0.2),
            transparent 34%
        ),
        radial-gradient(
            circle at 10% 95%,
            rgba(223, 32, 39, 0.12),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #121821,
            #07090c
        );

    border-left: 1px solid #3b4757;

    box-shadow:
        -28px 0 90px rgba(0, 0, 0, 0.7);

    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;

    transition:
        transform 0.3s ease,
        visibility 0.3s ease;
}

.cart-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

/* =========================================================
   CART HEADER
========================================================= */

.cart-drawer-header {
    flex: none;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 28px;

    background:
        linear-gradient(
            180deg,
            rgba(24, 33, 46, 0.96),
            rgba(10, 14, 20, 0.94)
        );

    border-bottom: 1px solid #303946;
}

.cart-drawer-header h2 {
    margin: 7px 0 0;

    color: #ffffff;
    font-size: 34px;
    line-height: 1.1;
}

.cart-drawer-close {
    display: grid;
    place-items: center;

    flex: none;

    width: 44px;
    height: 44px;

    padding: 0;

    color: #ffffff;
    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    background: #131923;
    border: 1px solid #4b596c;
    border-radius: 50%;

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

.cart-drawer-close:hover {
    transform: rotate(90deg);

    background: #251014;
    border-color: #b4484e;
}

/* =========================================================
   CART ITEMS AREA
========================================================= */

.cart-items {
    flex: 1;
    min-height: 0;

    display: grid;
    align-content: start;
    gap: 15px;

    padding: 22px;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #3d5f97 #0b0f15;
}

.cart-items::-webkit-scrollbar {
    width: 9px;
}

.cart-items::-webkit-scrollbar-track {
    background: #0b0f15;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #3d5f97;
    border-radius: 999px;
}

/* =========================================================
   EMPTY CART
========================================================= */

.cart-empty-message {
    display: grid;
    place-items: center;
    align-content: center;

    min-height: 100%;
    padding: 45px 30px;

    color: #aeb7c3;
    text-align: center;
}

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

.cart-empty-icon {
    font-size: 60px;
    line-height: 1;

    filter:
        drop-shadow(
            0 0 16px rgba(52, 120, 246, 0.35)
        );
}

.cart-empty-message h3 {
    margin: 19px 0 8px;

    color: #ffffff;
    font-size: 27px;
}

.cart-empty-message p {
    max-width: 320px;
    margin: 0;

    color: #9ea8b5;
    font-size: 15px;
    line-height: 1.65;
}

/* =========================================================
   INDIVIDUAL CART PRODUCT
========================================================= */

.cart-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;

    padding: 15px;

    background:
        linear-gradient(
            145deg,
            #151b24,
            #0b0f14
        );

    border: 1px solid #303946;
    border-radius: 15px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28);
}

.cart-item-image {
    width: 92px;
    height: 110px;

    display: grid;
    place-items: center;

    overflow: hidden;

    background: #050608;
    border: 1px solid #26303d;
    border-radius: 11px;
}

.cart-item-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.cart-item-information {
    min-width: 0;
}

.cart-item-information h3 {
    margin: 0;

    color: #ffffff;
    font-size: 17px;
    line-height: 1.3;
}

.cart-item-size {
    margin: 7px 0;

    color: #8db3f6;
    font-size: 12px;
    font-weight: 800;
}

.cart-item-price {
    margin: 0;

    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 14px;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid #3b4655;
    border-radius: 8px;
}

.cart-quantity-controls button {
    width: 34px;
    height: 34px;

    padding: 0;

    color: #ffffff;
    font-size: 18px;

    cursor: pointer;

    background: #18202c;
    border: 0;

    transition: background 0.2s ease;
}

.cart-quantity-controls button:hover {
    background: #2452a3;
}

.cart-quantity-controls span {
    display: grid;
    place-items: center;

    min-width: 39px;
    height: 34px;

    color: #ffffff;
    font-size: 13px;
    font-weight: 900;

    background: #0b0f14;
}

.cart-remove-button {
    padding: 8px 10px;

    color: #ff777c;
    font: inherit;
    font-size: 11px;
    font-weight: 900;

    cursor: pointer;

    background: rgba(223, 32, 39, 0.08);
    border: 1px solid #713237;
    border-radius: 7px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.cart-remove-button:hover {
    background: rgba(223, 32, 39, 0.2);
    border-color: #c84c53;
}

/* =========================================================
   CART FOOTER
========================================================= */

.cart-drawer-footer {
    flex: none;

    padding: 25px;

    background:
        linear-gradient(
            180deg,
            #0b0f15,
            #07090c
        );

    border-top: 1px solid #303946;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 12px;

    color: #b9c2ce;
    font-size: 15px;
}

.cart-summary-row strong {
    color: #ffffff;
}

.cart-subtotal-row {
    margin-top: 14px;
    padding-top: 17px;

    color: #ffffff;
    font-size: 21px;

    border-top: 1px solid #2e3743;
}

.cart-subtotal-row strong {
    color: #73a5ff;
    font-size: 28px;
}

.cart-shipping-note {
    margin: 10px 0 20px;

    color: #7f8a98;
    font-size: 11px;
    line-height: 1.55;
}

/* =========================================================
   CART BUTTONS
========================================================= */

.cart-checkout-button,
.cart-continue-button {
    width: 100%;
    min-height: 50px;

    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 900;

    cursor: pointer;

    border-radius: 9px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.cart-checkout-button {
    background:
        linear-gradient(
            135deg,
            #e72e34,
            #8f0e13
        );

    border: 1px solid #fa5a60;
}

.cart-checkout-button:hover:not(:disabled) {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px rgba(223, 32, 39, 0.32);
}

.cart-checkout-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.cart-continue-button {
    margin-top: 10px;

    background: transparent;
    border: 1px solid #465264;
}

.cart-continue-button:hover {
    border-color: #6e9ae2;
    background: rgba(52, 120, 246, 0.08);
}

/* =========================================================
   PRODUCT DIALOG CART MESSAGE
========================================================= */

.product-dialog-message {
    min-height: 21px;
    margin: 10px 0 0 !important;

    color: #ff777c !important;
    font-size: 12px !important;
    font-weight: 800;
}

.product-dialog-message.success {
    color: #69d99d !important;
}

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

@media (max-width: 600px) {
    .shopping-cart-button {
        right: 16px;
        bottom: 16px;

        min-height: 54px;
        padding: 11px 15px;
    }

    .cart-drawer {
        width: 100%;
    }

    .cart-drawer-header {
        padding: 22px;
    }

    .cart-drawer-header h2 {
        font-size: 29px;
    }

    .cart-items {
        padding: 16px;
    }

    .cart-item {
        grid-template-columns: 75px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .cart-item-image {
        width: 75px;
        height: 92px;
    }

    .cart-item-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-drawer-footer {
        padding: 19px;
    }
}

/* =========================================================
   NARROW-SCREEN MERCH LAYOUT CORRECTIONS

   The Merch page changes to one column at 760px, so the
   floating cart and drawer must change at the same breakpoint.
   These rules do not affect the desktop layout.
========================================================= */

@media (max-width: 760px) {
    .merch-page {
        padding-bottom: 130px;
    }

    .product-media {
        height: clamp(240px, 52vw, 310px);
    }

    .product-media img {
        object-fit: contain;
    }

    .product-information h3,
    .product-description {
        min-height: 0;
    }

    .product-bottom {
        flex-wrap: wrap;
    }

    .product-dialog {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 18px;
    }

    .product-dialog-image {
        min-height: 0;
        height: clamp(230px, 48vw, 310px);
        padding: 14px;
    }

    .product-dialog-image img {
        min-height: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .product-dialog-content {
        padding: 24px;
    }

    .product-dialog-content h2 {
        margin: 8px 0;
        font-size: clamp(30px, 6vw, 42px);
        line-height: 1.05;
    }

    .product-dialog-price {
        margin: 12px 0 !important;
        font-size: 27px !important;
    }

    .product-dialog-content > p {
        font-size: 15px;
        line-height: 1.55;
    }

    .product-options {
        margin-top: 20px;
    }

    .product-dialog-action {
        margin-top: 18px;
    }

    .shopping-cart-button {
        right: 12px;
        bottom: 12px;
        width: 58px;
        min-width: 58px;
        height: 58px;
        min-height: 58px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
    }

    .shopping-cart-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .shopping-cart-count {
        position: absolute;
        top: -7px;
        right: -4px;
        min-width: 25px;
        height: 25px;
        padding: 0 6px;
    }

    .cart-drawer {
        width: 100%;
        max-width: none;
    }

    .cart-drawer-header {
        padding: 20px;
    }

    .cart-drawer-header h2 {
        font-size: 29px;
    }

    .cart-items {
        padding: 16px;
        overscroll-behavior: contain;
    }

    .cart-drawer-footer {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .product-dialog-image {
        height: 220px;
    }

    .product-dialog-content {
        padding: 20px;
    }

    .product-dialog-content h2 {
        font-size: 28px;
    }

    .product-information {
        padding: 19px;
    }

    .product-information h3 {
        font-size: 22px;
    }

    .product-description {
        font-size: 14px;
    }

    .product-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .product-view-button {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .cart-item-image {
        width: 68px;
        height: 84px;
    }

    .cart-item-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-remove-button {
        align-self: flex-start;
    }
}