:root {
    --bg: #070b12;
    --panel: #0d1420;
    --panel-2: #111a28;
    --line: rgba(255,255,255,.10);
    --text: #f5f7fa;
    --muted: #8f9bad;
    --accent: #2dd4bf;
    --accent-dark: #0f766e;
    --orange: #ffad20;
    --pink: #ff4f8b;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif;
}

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

button {
    font: inherit;
}

.announcement-bar {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(
        90deg,
        rgba(255,79,139,.10),
        rgba(45,212,191,.10)
    );
}

.announcement-track {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    white-space: nowrap;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: #d9e1eb;
}

.site-header {
    height: 94px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(7,11,18,.92);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 22px var(--accent);
}

.desktop-nav {
    display: flex;
    gap: 34px;
    color: var(--muted);
    font-size: 14px;
}

.desktop-nav a:hover {
    color: white;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: transparent;
    color: white;
    position: relative;
}

.cart-count {
    position: absolute;
    right: -5px;
    top: -7px;
    background: var(--pink);
    color: white;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.signin-btn {
    border: none;
    background: var(--accent);
    color: #04120f;
    padding: 15px 24px;
    border-radius: 15px;
    font-weight: 800;
}

.hero {
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 6vw;
    max-width: 1500px;
    margin: auto;
}

.eyebrow {
    font-family: "Space Mono", monospace;
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.orange {
    color: var(--orange);
}

.hero h1 {
    font-size: clamp(54px, 7vw, 100px);
    line-height: .92;
    margin: 0;
    letter-spacing: -5px;
}

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

.hero p {
    max-width: 590px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    margin: 28px 0 34px;
}

.hero-actions {
    display: flex;
    gap: 14px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 14px;
    font-weight: 700;
}

.btn-primary {
    background: var(--accent);
    color: #04120f;
}

.btn-secondary {
    border: 1px solid var(--line);
    color: white;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.tv-shell {
    width: min(580px, 100%);
    background: #151d29;
    padding: 18px;
    border-radius: 34px;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 35px 90px rgba(0,0,0,.45);
}

.tv-screen {
    aspect-ratio: 16/10;
    border-radius: 22px;
    background:
        radial-gradient(circle at center, rgba(45,212,191,.16), transparent 45%),
        linear-gradient(135deg, #08111b, #131827);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-label {
    position: absolute;
    top: 22px;
    left: 24px;
    font-family: "Space Mono", monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.play-button {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.07);
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.video-caption {
    position: absolute;
    bottom: 22px;
    left: 24px;
    color: var(--muted);
    font-size: 13px;
}

.trust-strip {
    max-width: 1350px;
    margin: 0 auto;
    padding: 24px 4vw;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    color: #bcc6d2;
    font-size: 13px;
}

.section {
    max-width: 1350px;
    margin: auto;
    padding: 95px 4vw;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 42px;
}

.section-heading h2,
.bundle-card h2,
.support-section h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    letter-spacing: -2px;
}

.section-heading > a {
    color: var(--accent);
    font-size: 14px;
}

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

.product-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.product-image {
    aspect-ratio: 1/1;
    position: relative;
    background: linear-gradient(145deg, #111a28, #09111c);
}

.product-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: var(--accent);
    color: #06110e;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.18);
    font-family: "Space Mono", monospace;
    font-size: 20px;
}

.product-info {
    padding: 22px;
}

.product-category {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1.4px;
}

.product-info h3 {
    font-size: 19px;
    margin: 9px 0 18px;
}

.product-price {
    font-family: "Space Mono", monospace;
    color: var(--accent);
}

.bundle-card {
    min-height: 430px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 50px;
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: 60px;
    background:
        radial-gradient(circle at right, rgba(255,79,139,.11), transparent 35%),
        radial-gradient(circle at left, rgba(45,212,191,.12), transparent 38%),
        var(--panel);
}

.bundle-copy p {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.7;
    margin: 20px 0 30px;
}

.bundle-visual {
    height: 260px;
    border-radius: 25px;
    border: 1px solid var(--line);
    background: #080d14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Space Mono", monospace;
}

.bundle-visual span {
    color: var(--orange);
    font-size: 13px;
    letter-spacing: 4px;
}

.bundle-visual strong {
    font-size: 46px;
    margin-top: 8px;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.collection-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 20px;
    display: flex;
    align-items: end;
    font-size: 20px;
    font-weight: 700;
    transition: .2s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45,212,191,.45);
}

.support-section {
    margin: 80px 4vw;
    padding: 60px;
    border-radius: 30px;
    background: var(--accent);
    color: #04120f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.support-section .eyebrow {
    color: #085c54;
}

.support-section p {
    max-width: 650px;
    line-height: 1.7;
}

.support-section .btn-primary {
    background: #07100e;
    color: white;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 55px 6vw 28px;
    color: var(--muted);
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    color: white;
}

.footer-links {
    display: flex;
    gap: 28px;
    margin: 30px 0;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    font-family: "Space Mono", monospace;
}

@media (max-width: 900px) {

    .desktop-nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

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

    .bundle-card {
        grid-template-columns: 1fr;
        padding: 36px 25px;
    }

    .collection-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 38px 28px;
    }

    .signin-btn {
        display: none;
    }
}

@media (max-width: 560px) {

    .site-header {
        padding: 0 20px;
    }

    .brand {
        font-size: 20px;
    }

    .hero {
        padding-left: 22px;
        padding-right: 22px;
    }

    .hero h1 {
        font-size: 50px;
        letter-spacing: -3px;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .announcement-track {
        justify-content: flex-start;
        padding-left: 20px;
    }
}

/* ===== HERO / FEATURED TV FIX ===== */

.hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 64px;
    align-items: center;
}

.hero-visual {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-shell {
    width: 100%;
    max-width: 580px;
    padding: 14px;
    border-radius: 28px;
    overflow: hidden;
}

.tv-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #080d14;
}

.featured-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 18px;
    background: #05080d;
}

.video-label,
.video-caption {
    z-index: 2;
}

/* prevent uploaded portrait videos from expanding layout */
.tv-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* tighten the transition into the trust strip */
.trust-strip {
    margin-top: 0;
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        gap: 40px;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .tv-shell {
        max-width: 100%;
    }
}


/* =========================================================
   PRODUCT CARD FIX — BUILD 0.3A
========================================================= */

/* Keep product cards compact and balanced */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Card shell */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;

    background: #0d1420;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;

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

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(45, 212, 191, 0.35);
}

/* Make the link fill the whole card */
.product-card > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fixed product image area */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;

    background: #111a28;
}

/* Uploaded product image */
.store-product-image {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    background: #111a28;
}

/* Fallback when no image exists */
.product-placeholder {
    width: 100%;
    height: 100%;

    display: grid;
    place-items: center;

    color: rgba(255, 255, 255, 0.22);
    font-family: "Space Mono", monospace;
    font-size: 16px;

    background: linear-gradient(
        145deg,
        #111a28,
        #09111c
    );
}

/* Badge */
.product-badge {
    position: absolute;
    z-index: 3;

    top: 16px;
    left: 16px;

    padding: 7px 11px;

    border-radius: 999px;

    background: #2dd4bf;
    color: #04120f;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Text section */
.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 22px;
}

/* Category */
.product-category {
    color: #8f9bad;

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

    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* Product name */
.product-info h3 {
    margin: 9px 0 12px;

    color: #f5f7fa;

    font-size: 18px;
    line-height: 1.3;
}

/* Short description */
.product-info p {
    color: #8f9bad;

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

    margin: 0 0 18px;
}

/* Prices stay at bottom */
.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;

    margin-top: auto;
}

.product-price {
    color: #2dd4bf;

    font-family: "Space Mono", monospace;
    font-size: 16px;
    font-weight: 700;
}

.compare-price {
    color: #8f9bad;

    font-family: "Space Mono", monospace;
    font-size: 12px;

    text-decoration: line-through;
}

/* Empty shop state */
.no-products {
    grid-column: 1 / -1;

    padding: 50px;

    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 20px;

    color: #8f9bad;

    text-align: center;
}

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

@media (max-width: 1000px) {

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

}

@media (max-width: 650px) {

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

    .product-image {
        aspect-ratio: 1 / 0.72;
    }

    .product-info {
        padding: 18px;
    }

    .product-info h3 {
        font-size: 17px;
    }

}


/* =========================================================
   FEATURED BUNDLE — BUILD 0.3B
========================================================= */

.bundle-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;

    margin: 22px 0 28px;
}

.bundle-price {
    color: var(--accent);

    font-family:
        "Space Mono",
        monospace;

    font-size: 28px;
    font-weight: 700;
}

.bundle-compare-price {
    color: var(--muted);

    font-family:
        "Space Mono",
        monospace;

    font-size: 14px;

    text-decoration: line-through;
}

.bundle-visual {
    overflow: hidden;
}

.bundle-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 24px;
}

@media (max-width: 900px) {

    .bundle-price {
        font-size: 23px;
    }

    .bundle-visual {
        min-height: 260px;
    }

}


/* =========================================================
   CUSTOMER ACCOUNTS — BUILD 0.3C
========================================================= */

.account-page {
    min-height: 70vh;

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

    padding: 80px 24px;
}

.account-card {
    width: 100%;
    max-width: 560px;

    padding: 36px;

    border-radius: 24px;

    background: var(--panel);

    border: 1px solid var(--line);
}

.account-card h1 {
    margin: 0 0 10px;

    font-size: 40px;
    letter-spacing: -1.5px;
}

.account-intro {
    margin-bottom: 30px;

    color: var(--muted);

    line-height: 1.6;
}

.account-card label {
    display: block;

    margin:
        18px 0
        8px;

    color: #cbd4df;

    font-size: 13px;
    font-weight: 700;
}

.account-card input {
    width: 100%;

    padding: 14px;

    border-radius: 11px;

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

    background: #070b12;
    color: white;

    font: inherit;
}

.account-grid {
    display: grid;

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

    gap: 18px;
}

.account-checkbox {
    display: flex !important;

    align-items: center;

    gap: 10px;

    font-weight: 400 !important;
}

.account-checkbox input {
    width: auto;
}

.account-submit {
    width: 100%;

    margin-top: 24px;

    padding: 16px;

    border: none;
    border-radius: 12px;

    background: var(--accent);
    color: #04120f;

    font-weight: 800;

    cursor: pointer;
}

.account-switch {
    margin-top: 24px;

    color: var(--muted);

    text-align: center;
}

.account-switch a {
    color: var(--accent);
}

.account-flash {
    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 10px;

    background:
        rgba(45,212,191,.12);

    border:
        1px solid
        rgba(45,212,191,.35);
}


/* CUSTOMER DASHBOARD */

.customer-dashboard {
    max-width: 1250px;

    margin: 0 auto;

    padding:
        80px 4vw
        110px;
}

.dashboard-top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;
}

.dashboard-top h1 {
    margin: 0 0 10px;

    font-size:
        clamp(
            40px,
            6vw,
            72px
        );

    letter-spacing: -3px;
}

.dashboard-top p {
    margin: 0;

    color: var(--muted);
}

.dashboard-logout {
    padding: 13px 18px;

    border-radius: 11px;

    border: 1px solid var(--line);
}

.link-button {
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.error-card {
    text-align: center;
}

.dashboard-grid {
    display: grid;

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

    gap: 20px;
}

.dashboard-card {
    min-height: 240px;

    padding: 28px;

    display: flex;
    flex-direction: column;

    border-radius: 22px;

    background: var(--panel);

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

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.dashboard-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(45,212,191,.40);
}

.dashboard-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    margin-bottom: 30px;

    border-radius: 12px;

    background:
        rgba(45,212,191,.10);

    color: var(--accent);

    font-family:
        "Space Mono",
        monospace;

    font-size: 12px;
}

.dashboard-card h3 {
    margin:
        0 0
        10px;

    font-size: 22px;
}

.dashboard-card p {
    margin: 0 0 25px;

    color: var(--muted);

    line-height: 1.6;
}

.dashboard-card span {
    margin-top: auto;

    color: var(--accent);

    font-size: 13px;
}


@media (
    max-width: 700px
) {

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

    .account-card {
        padding: 28px 22px;
    }

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

    .dashboard-top {
        flex-direction: column;
    }

}


/* =========================================================
   CUSTOMER ORDERS — BUILD 0.3C-B
========================================================= */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.order-row {
    display: grid;

    grid-template-columns:
        1.3fr
        1fr
        auto;

    gap: 28px;

    align-items: center;

    padding: 22px 24px;

    border-radius: 18px;

    background: var(--panel);

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

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.order-row:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(45,212,191,.35);
}

.order-number {
    color: white;

    font-size: 17px;
    font-weight: 800;
}

.order-date {
    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.order-status-group {
    display: flex;
    gap: 28px;
}

.order-status-group > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-label {
    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.order-status {
    display: inline-flex;

    width: fit-content;

    padding: 6px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
}

.status-good {
    color: var(--accent);

    background:
        rgba(45,212,191,.12);
}

.status-neutral {
    color: #d1d7df;

    background:
        rgba(255,255,255,.07);
}

.order-total {
    color: var(--accent);

    font-family:
        "Space Mono",
        monospace;

    font-weight: 700;
}

.orders-empty {
    padding: 55px;

    border-radius: 22px;

    border: 1px dashed var(--line);

    text-align: center;

    color: var(--muted);
}

.orders-empty .dashboard-icon {
    margin:
        0 auto
        25px;
}

.orders-empty h3 {
    color: white;

    font-size: 24px;
}

.orders-empty p {
    margin:
        0 auto
        28px;

    max-width: 430px;

    line-height: 1.6;
}


/* ORDER DETAIL */

.order-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(280px, .7fr);

    gap: 22px;
}

.order-detail-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.order-panel {
    padding: 26px;

    border-radius: 20px;

    background: var(--panel);

    border: 1px solid var(--line);
}

.order-panel h2 {
    margin:
        0 0
        22px;

    font-size: 21px;
}

.order-item,
.order-info-row,
.order-total-row {
    display: flex;

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

    gap: 20px;
}

.order-item {
    padding: 17px 0;

    border-bottom:
        1px solid var(--line);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-meta {
    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.order-item-price {
    color: var(--accent);

    font-family:
        "Space Mono",
        monospace;
}

.order-info-row {
    padding: 13px 0;

    border-bottom:
        1px solid var(--line);

    color: var(--muted);
}

.order-info-row strong {
    color: white;

    text-align: right;
}

.order-total-row {
    margin-top: 18px;

    padding-top: 18px;

    border-top:
        1px solid var(--line);

    font-size: 19px;
}

.order-total-row strong {
    color: var(--accent);
}

.order-muted {
    color: var(--muted);
}


@media (max-width: 800px) {

    .order-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .order-status-group {
        justify-content: space-between;
    }

    .order-total {
        font-size: 18px;
    }

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

}


/* =========================================================
   CART + CHECKOUT — BUILD 0.3D
========================================================= */

.add-cart-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-input {
    width: 80px;

    padding: 14px;

    border-radius: 12px;

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

    background: var(--panel);
    color: white;
}

.cart-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(280px, .7fr);

    gap: 24px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-item {
    display: grid;

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

    gap: 18px;

    align-items: center;

    padding: 18px;

    border-radius: 18px;

    background: var(--panel);

    border: 1px solid var(--line);
}

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

    overflow: hidden;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background: #111a28;

    color: var(--muted);

    font-size: 11px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cart-item-info h3 {
    margin:
        7px 0
        10px;

    font-size: 17px;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cart-quantity input {
    width: 65px;

    padding: 9px;

    border-radius: 8px;

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

    background: #070b12;
    color: white;
}

.cart-quantity button,
.cart-remove,
.cart-clear {
    padding: 9px 11px;

    border-radius: 8px;

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

    background: transparent;
    color: white;

    cursor: pointer;
}

.cart-remove {
    color: #ff748f;
}

.cart-line-total {
    color: var(--accent);

    font-family:
        "Space Mono",
        monospace;

    font-weight: 700;
}

.cart-checkout {
    width: 100%;

    margin-top: 24px;
}

.cart-clear {
    width: 100%;

    margin-top: 12px;

    color: var(--muted);
}

.checkout-label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;
}

.checkout-input {
    width: 100%;

    padding: 14px;

    border-radius: 11px;

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

    background: #070b12;
    color: white;
}

.checkout-help {
    color: var(--muted);

    font-size: 12px;
    line-height: 1.6;
}

.checkout-customer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #070b12;
}

.checkout-customer span,
.checkout-customer small,
.checkout-item-copy small {
    color: var(--muted);
}

.checkout-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.checkout-item-image {
    width: 58px;
    height: 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #111a28;
    color: var(--muted);
    font-size: 9px;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkout-item-total {
    color: var(--accent);
    font-family: "Space Mono", monospace;
}

.pending-payment-message,
.cart-validation-error {
    line-height: 1.6;
}

.checkout-submit {
    margin-top: 20px;
}


@media (max-width: 900px) {

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

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

    .cart-item-image {
        width: 90px;
        height: 80px;
    }

    .cart-quantity,
    .cart-line-total,
    .cart-item > form:last-child {
        grid-column: 2;
    }

}


/* =========================================================
   PRODUCT DETAIL PAGE
========================================================= */

.product-detail-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 65px;
    align-items: start;
}

.product-detail-media {
    width: 100%;
    overflow: hidden;

    border-radius: 28px;

    background: #0d1420;

    border: 1px solid var(--line);
}

.product-detail-image {
    display: block;

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

    object-fit: contain;

    background: #ffffff;
}

.product-detail-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;

    display: grid;
    place-items: center;

    color: var(--muted);

    font-family:
        "Space Mono",
        monospace;

    background: #0d1420;
}

.product-detail-info {
    padding-top: 10px;
}

.product-detail-badge {
    display: inline-flex;

    margin-bottom: 16px;

    padding: 7px 11px;

    border-radius: 999px;

    background: var(--accent);
    color: #04120f;

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

    text-transform: uppercase;
}

.product-detail-info h1 {
    margin:
        0 0
        20px;

    font-size:
        clamp(
            42px,
            5vw,
            68px
        );

    line-height: 1;

    letter-spacing: -3px;
}

.product-detail-short {
    max-width: 620px;

    margin-bottom: 28px;

    color: var(--muted);

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

.product-detail-price-row {
    display: flex;

    align-items: baseline;

    gap: 14px;

    margin-bottom: 20px;
}

.product-detail-price {
    color: var(--accent);

    font-family:
        "Space Mono",
        monospace;

    font-size: 30px;
    font-weight: 700;
}

.product-detail-compare {
    color: var(--muted);

    font-family:
        "Space Mono",
        monospace;

    font-size: 15px;

    text-decoration: line-through;
}

.product-stock {
    width: fit-content;

    margin-bottom: 26px;

    padding: 8px 12px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;
}

.in-stock {
    color: var(--accent);

    background:
        rgba(
            45,
            212,
            191,
            .12
        );
}

.out-of-stock {
    color: #ff748f;

    background:
        rgba(
            255,
            79,
            139,
            .12
        );
}

.add-cart-form {
    display: flex;

    align-items: end;

    gap: 14px;

    margin-bottom: 40px;
}

.quantity-group {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.quantity-group label {
    color: var(--muted);

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

    text-transform: uppercase;
}

.quantity-input {
    width: 90px;

    padding: 14px;

    border-radius: 12px;

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

    background: #0d1420;
    color: white;

    font: inherit;
}

.add-cart-button {
    min-height: 49px;
}

.product-detail-description {
    margin-top: 38px;

    padding-top: 30px;

    border-top: 1px solid var(--line);
}

.product-detail-description h2 {
    margin:
        0 0
        14px;

    font-size: 21px;
}

.product-detail-description p {
    color: #c1cad6;

    line-height: 1.8;

    white-space: pre-line;
}

.product-detail-trust {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;

    margin-top: 40px;

    padding-top: 25px;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-size: 12px;
}


@media (max-width: 850px) {

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

        gap: 35px;
    }

    .product-detail-info h1 {
        letter-spacing: -2px;
    }

}


@media (max-width: 550px) {

    .add-cart-form {
        align-items: stretch;

        flex-direction: column;
    }

    .quantity-input {
        width: 100%;
    }

    .add-cart-button {
        width: 100%;
    }

}

