
/* =========================================================
   DARK THRONE — CART PAGE
   Official orange: #E65C00
   No navigation bar
   ========================================================= */

:root {
    --black: #050505;
    --black-soft: #0a0a0a;
    --black-card: #101010;
    --black-light: #151515;

    --orange: #E65C00;

    --white: #ffffff;
    --gray: #999999;
    --gray-light: #c8c8c8;
    --border: #292929;

    --font-heading: "Barlow Condensed", sans-serif;
    --font-body: "Inter", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}

img {
    display: block;
    max-width: 100%;
}

/* PAGE */

.cart-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

/* CART HEADING */

.cart-hero {
    padding: 35px 5% 40px;
}

.cart-brand,
.footer-brand {
    display: inline-block;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.cart-brand span,
.footer-brand span {
    color: var(--orange);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 36px 0 45px;
    color: var(--gray);
    font-size: 12px;
}

.breadcrumb a {
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb i {
    font-size: 9px;
    color: #555;
}

.cart-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.eyebrow {
    display: block;
    color: var(--orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 4px;
}

.cart-heading h1 {
    margin-top: 14px;
    font-family: var(--font-heading);
    font-size: clamp(58px, 8vw, 104px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -1px;
}

.cart-heading h1 span {
    color: var(--orange);
}

.cart-heading p {
    margin-top: 22px;
    color: var(--gray);
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 1.5px;
}

/* CONTINUE SHOPPING */

.continue-shopping {
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid #383838;
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.continue-shopping:hover {
    border-color: var(--orange);
    background: var(--orange);
    color: #000;
}

/* MAIN CART GRID */

.cart-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 26px;
    padding: 0 5% 65px;
}

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

.cart-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.cart-section-heading h2 {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 1px;
}

.cart-section-heading > span {
    color: #777;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* CART TABLE HEADER */

.cart-table-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 105px 95px;
    gap: 12px;
    padding: 17px 16px;
    border: 1px solid var(--border);
    background: var(--black-light);
    color: #888;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.cart-table-header span:not(:first-child) {
    text-align: center;
}

/* CART ITEMS */

.cart-items {
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 105px 95px;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--black-soft);
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: #0d0d0d;
}

/* PRODUCT INFORMATION */

.cart-product {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-image {
    width: 105px;
    height: 125px;
    flex-shrink: 0;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--black-card);
}

.cart-product-info {
    min-width: 0;
}

.cart-product-brand {
    display: block;
    margin-bottom: 7px;
    color: var(--orange);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
}

.cart-product-name {
    overflow-wrap: anywhere;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}

.cart-size {
    margin-top: 9px;
    color: #888;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.cart-size strong {
    color: var(--white);
}

.cart-stock {
    margin-top: 8px;
    color: #999;
    font-size: 10px;
}

.cart-stock i {
    margin-right: 5px;
    color: var(--orange);
}

/* PRICE AND LINE TOTAL */

.cart-price,
.cart-line-total {
    text-align: center;
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

/* QUANTITY */

.cart-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 39px;
    border: 1px solid #383838;
    background: #080808;
}

.cart-quantity button {
    width: 31px;
    height: 100%;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #ccc;
    font-size: 17px;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cart-quantity button:hover {
    background: var(--orange);
    color: #000;
}

.cart-quantity span {
    flex: 1;
    min-width: 20px;
    text-align: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

/* REMOVE ITEM */

.remove-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.remove-item:hover {
    color: var(--orange);
}

/* PROMO CODE */

.promo-box {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    background: var(--black-soft);
}

.promo-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.promo-title i {
    color: var(--orange);
    font-size: 17px;
}

.promo-form {
    display: flex;
    width: 100%;
    max-width: 470px;
}

.promo-form input {
    min-width: 0;
    flex: 1;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #353535;
    outline: none;
    background: #080808;
    color: var(--white);
    font-size: 12px;
}

.promo-form input:focus {
    border-color: var(--orange);
}

.promo-form input::placeholder {
    color: #666;
}

.promo-form button {
    min-width: 95px;
    padding: 0 14px;
    border: 0;
    background: var(--orange);
    color: #000;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    transition: filter 0.2s ease;
}

.promo-form button:hover {
    filter: brightness(1.08);
}

.promo-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.promo-message {
    margin-top: 10px;
    font-size: 11px;
    line-height: 1.5;
}

.promo-message:empty {
    display: none;
}

.applied-promo {
    margin-top: 12px;
    color: var(--orange);
    font-size: 11px;
}

/* SECONDARY SHOPPING LINK */

.cart-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
}

.secondary-shopping {
    min-height: 44px;
}

/* ORDER SUMMARY */

.order-summary {
    min-width: 0;
}

.summary-card {
    position: sticky;
    top: 20px;
    padding: 27px 24px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, #141414, #080808);
}

.summary-heading {
    margin-bottom: 30px;
}

.summary-heading .eyebrow {
    margin-bottom: 9px;
    font-size: 9px;
    letter-spacing: 3px;
}

.summary-heading h2 {
    font-family: var(--font-heading);
    font-size: 29px;
    font-weight: 900;
    letter-spacing: 1px;
}

.summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    color: #aaa;
    font-size: 12px;
    line-height: 1.5;
}

.summary-row strong {
    max-width: 60%;
    color: var(--white);
    font-size: 12px;
    text-align: right;
    overflow-wrap: anywhere;
}

.discount-value {
    color: var(--orange) !important;
}

.summary-divider {
    width: 100%;
    height: 1px;
    margin: 25px 0;
    background: #303030;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.summary-total span {
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
}

.summary-total strong {
    color: var(--orange);
    font-family: var(--font-heading);
    font-size: clamp(25px, 2.5vw, 33px);
    font-weight: 900;
    overflow-wrap: anywhere;
    text-align: right;
}

.summary-note {
    margin: 0 0 23px;
    color: #777;
    font-size: 10px;
    line-height: 1.7;
}

/* CHECKOUT */

.checkout-button {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 0;
    background: var(--orange);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-align: center;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.checkout-button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.checkout-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
    color: #999;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.secure-checkout i {
    color: var(--orange);
    font-size: 13px;
}

/* SUMMARY BENEFITS */

.summary-benefits {
    display: grid;
    gap: 21px;
    margin-top: 27px;
    padding-top: 23px;
    border-top: 1px solid #292929;
}

.cart-info-card {
    display: flex;
    align-items: center;
    gap: 13px;
}

.info-icon {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    color: var(--orange);
    font-size: 15px;
}

.cart-info-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.cart-info-card p {
    margin-top: 4px;
    color: #888;
    font-size: 10px;
    line-height: 1.5;
}

/* EMPTY CART */

.empty-cart {
    max-width: 620px;
    margin: 25px auto 70px;
    padding: 55px 25px;
    text-align: center;
}

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

.empty-cart-icon {
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 1px solid #333;
    border-radius: 50%;
    color: var(--orange);
    font-size: 28px;
}

.empty-cart h2 {
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: clamp(35px, 6vw, 55px);
    font-weight: 900;
}

.empty-cart h2 span {
    color: var(--orange);
}

.empty-cart p {
    margin: 15px auto 25px;
    color: #999;
    font-size: 12px;
    line-height: 1.8;
}

.empty-cart-button {
    max-width: 300px;
    margin: 0 auto;
}

/* CART BENEFITS */

.cart-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0 5% 55px;
    padding: 25px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.benefit {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.benefit > i {
    color: var(--orange);
    font-size: 21px;
}

.benefit strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
}

.benefit span {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 10px;
    line-height: 1.5;
}

/* FOOTER */

.site-footer {
    padding: 38px 5% 22px;
    border-top: 1px solid var(--border);
    background: #080808;
    text-align: center;
}

.footer-brand {
    font-size: 26px;
}

.site-footer > p {
    margin-top: 12px;
    color: #999;
    font-size: 11px;
    line-height: 1.7;
}

.footer-style {
    margin-top: 28px;
    color: var(--orange);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 10px;
}

/* CART STATUS MESSAGE */

#cartMessage {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    max-width: calc(100vw - 40px);
}

/* TABLET */

@media (max-width: 1100px) {
    .cart-content {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 18px;
    }

    .cart-item,
    .cart-table-header {
        grid-template-columns: minmax(0, 1fr) 75px 95px 80px;
        gap: 8px;
    }

    .cart-item {
        padding: 20px 12px;
    }

    .cart-image {
        width: 82px;
        height: 105px;
    }

    .cart-product {
        gap: 11px;
    }

    .cart-product-name {
        font-size: 16px;
    }

    .cart-quantity button {
        width: 27px;
    }

    .summary-card {
        padding: 23px 18px;
    }

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

/* MOBILE */

@media (max-width: 760px) {
    .cart-hero {
        padding: 25px 5% 30px;
    }

    .cart-brand {
        font-size: 21px;
    }

    .breadcrumb {
        margin: 27px 0 32px;
        font-size: 11px;
    }

    .cart-heading {
        display: block;
    }

    .cart-heading h1 {
        font-size: clamp(54px, 15vw, 82px);
    }

    .cart-heading p {
        margin-top: 17px;
        font-size: 10px;
    }

    .cart-heading > .continue-shopping {
        margin-top: 23px;
    }

    .cart-content {
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding: 0 5% 45px;
    }

    .cart-left,
    .order-summary {
        width: 100%;
    }

    .cart-section-heading h2 {
        font-size: 21px;
    }

    .cart-section-heading > span {
        font-size: 8px;
        text-align: right;
    }

    .cart-table-header {
        display: none;
    }

    .cart-items {
        border: 0;
    }

    .cart-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 17px 0;
        border: 0;
        border-bottom: 1px solid var(--border);
        background: transparent;
    }

    .cart-item:hover {
        background: transparent;
    }

    .cart-product {
        grid-column: 1 / -1;
        align-items: flex-start;
        padding-right: 0;
    }

    .cart-image {
        width: 112px;
        height: 130px;
    }

    .cart-product-info {
        padding: 4px 30px 0 0;
    }

    .cart-product-name {
        max-width: 100%;
        font-size: 19px;
    }

    .cart-size {
        font-size: 11px;
    }

    .remove-item {
        margin-top: 12px;
        font-size: 10px;
    }

    .cart-price {
        justify-self: start;
        text-align: left;
        font-size: 12px;
    }

    .cart-quantity {
        justify-self: end;
        width: 105px;
        height: 37px;
    }

    .cart-quantity button {
        width: 31px;
    }

    .cart-line-total {
        grid-column: 1 / -1;
        justify-self: end;
        font-size: 13px;
    }

    .promo-box {
        margin-top: 22px;
        padding: 18px;
    }

    .promo-form button {
        min-width: 82px;
    }

    .cart-actions {
        margin-top: 17px;
    }

    .summary-card {
        position: static;
        padding: 23px 19px;
    }

    .summary-heading {
        margin-bottom: 25px;
    }

    .summary-heading h2 {
        font-size: 28px;
    }

    .summary-row {
        font-size: 12px;
    }

    .summary-total span {
        font-size: 24px;
    }

    .summary-total strong {
        font-size: 29px;
    }

    .checkout-button {
        min-height: 54px;
        font-size: 10px;
    }

    .summary-benefits {
        gap: 18px;
    }

    .cart-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 23px 15px;
        margin: 0 5% 38px;
        padding: 23px 0;
    }

    .benefit {
        align-items: flex-start;
        gap: 10px;
    }

    .benefit > i {
        margin-top: 2px;
        font-size: 18px;
    }

    .benefit strong {
        font-size: 13px;
    }

    .benefit span {
        font-size: 9px;
    }

    .site-footer {
        padding: 30px 5% 20px;
    }
}

/* SMALL MOBILE */

@media (max-width: 380px) {
    .cart-heading h1 {
        font-size: 51px;
    }

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

    .cart-product {
        gap: 11px;
    }

    .cart-product-name {
        font-size: 17px;
    }

    .cart-product-brand {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .cart-quantity {
        width: 96px;
    }

    .cart-quantity button {
        width: 27px;
    }

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

    .summary-total strong {
        font-size: 25px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
