
/* =========================================================
   CART — SHARED HEADER COMPATIBILITY
   ========================================================= */

.topbar.topbar-static {
    display: grid;
    grid-template-columns: 1fr;

    gap: 9px;

    margin: 0 0 20px;
    padding: 0 0 16px;

    border-bottom: 1px solid #303038;
}

.topbar-static .back-link {
    min-height: 42px;

    padding: 9px 12px;

    background: transparent;
    color: #a8a8b2;

    border: 1px solid #303038;
    border-radius: 2px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

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

    transform: none;
}

.topbar-static .back-link-main {
    color: #ffffff;
    background: #15151a;

    border-color: #44444e;

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

.topbar-static .back-link:hover {
    background: #1b1b20;
    color: #ffffff;

    border-color: #666672;

    transform: none;
}

@media (min-width: 800px) {
    .topbar.topbar-static {
        grid-template-columns: auto 1fr;

        align-items: center;

        gap: 24px;

        margin-bottom: 28px;
        padding-bottom: 14px;
    }

    .topbar-static .back-link {
        min-height: 38px;
    }
}

/* =========================================================
   CART — ITEM CARDS
   Mobile first
   ========================================================= */

.content-box {
    background: transparent;

    border: 1px solid #303038;
    border-radius: 2px;

    padding: 14px;

    box-shadow: none;
}

.content-box > h3 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.025em;

    text-transform: uppercase;
}

.grid {
    gap: 10px;
}

.cart-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);

    gap: 12px;

    padding: 10px;

    background: #101014;

    border: 1px solid #303038;
    border-radius: 2px;

    overflow: hidden;

    box-shadow: none;
}

.cart-cover {
    width: 88px;
    height: 88px;

    background: #0d0d11;

    border: 1px solid #303038;
    border-radius: 2px;

    overflow: hidden;
}

.cart-cover img {
    width: 100%;
    height: 100%;

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

.cart-body {
    min-width: 0;
}

.cart-title {
    margin: 1px 0 8px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.035em;
}

.cart-meta {
    margin-bottom: 10px;

    gap: 6px;
}

.cart-meta .pill {
    padding: 5px 7px;

    background: transparent;

    border: 1px solid #303038;
    border-radius: 2px;

    color: #9f9faa;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.035em;

    text-transform: uppercase;
}

.cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
}

.cart-footer .price {
    color: #ffffff;

    font-size: 21px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.btn-remove {
    min-height: 34px;

    padding: 7px 9px;

    background: transparent;
    color: #888892;

    border: 1px solid #303038;
    border-radius: 2px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.035em;

    text-transform: uppercase;
}

.btn-remove:hover {
    color: #ffffff;
    border-color: #666672;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 980px) {

    .content-box {
        padding: 18px;
    }

    .cart-card {
        grid-template-columns: 104px minmax(0, 1fr);

        gap: 14px;

        padding: 12px;
    }

    .cart-cover {
        width: 104px;
        height: 104px;
    }

    .cart-title {
        font-size: 20px;
    }

    .cart-footer .price {
        font-size: 24px;
    }
}

/* =========================================================
   CART — SUMMARY / PROMO / CHECKOUT
   Mobile first
   ========================================================= */

.sidebar {
    background: transparent;

    border: 1px solid #303038;
    border-radius: 2px;

    padding: 14px;

    box-shadow: none;
}

.sidebar > h3 {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.025em;

    text-transform: uppercase;
}

.summary-row {
    margin-bottom: 10px;

    color: #8f8f99;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;

    text-transform: uppercase;
}

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

.summary-total-original {
    margin: 4px 0 2px;

    color: #70707a;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 13px;
}

.summary-total {
    margin: 6px 0 18px;

    color: #ffffff;

    font-size: 36px;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
}


/* ---------------------------------------------------------
   PROMO
   --------------------------------------------------------- */

.promo-box {
    margin: 18px 0;
    padding: 14px 0;

    background: transparent;

    border: 0;
    border-top: 1px solid #303038;
    border-bottom: 1px solid #303038;

    border-radius: 0;
}

.promo-box label {
    margin-bottom: 7px;

    color: #8f8f99;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;

    text-transform: uppercase;
}

.promo-form {
    gap: 8px;
}

.promo-form input {
    min-height: 42px;

    padding: 10px 11px;

    background: #0d0d11;
    color: #ffffff;

    border: 1px solid #303038;
    border-radius: 2px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

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

    box-shadow: none;
}

.promo-form .btn-secondary {
    min-height: 42px;

    border-radius: 2px;

    font-size: 10px;
}

.promo-active {
    color: #8f8f99;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 10px;
}

.promo-code-pill {
    padding: 6px 8px;

    background: transparent;

    border: 1px solid #e53935;
    border-radius: 2px;

    color: #ffffff;

    font-size: 10px;
}


/* ---------------------------------------------------------
   CHECKOUT ACTIONS
   --------------------------------------------------------- */

.sidebar-actions {
    gap: 9px;
}

.sidebar-actions .btn {
    min-height: 50px;

    background: #e53935;
    color: #ffffff;

    border: 1px solid #e53935;
    border-radius: 2px;

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

    box-shadow: none;
}

.sidebar-actions .btn:hover {
    background: #f04440;
    border-color: #f04440;
}

.sidebar-actions .btn-secondary {
    min-height: 42px;

    background: transparent;
    color: #a8a8b2;

    border: 1px solid #303038;
    border-radius: 2px;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.035em;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   TRUST
   --------------------------------------------------------- */

.cart-trust-box {
    margin: 2px 0 4px;
    padding: 12px 0;

    background: transparent;

    border: 0;
    border-top: 1px solid #303038;
    border-bottom: 1px solid #303038;

    border-radius: 0;
}

.cart-trust-box h4 {
    margin: 0 0 9px;

    color: #ffffff;

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

    text-transform: uppercase;
}

.cart-trust-box ul {
    gap: 6px;
}

.cart-trust-box li {
    color: #8f8f99;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 9px;
    line-height: 1.35;
}

.cart-trust-box li::before {
    color: #e53935;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 980px) {

    .sidebar {
        padding: 18px;
    }

    .summary-total {
        font-size: 42px;
    }
}
