/* ============================================================
   ALL DA SMOKE
   CART PAGE
   ============================================================ */

.cart-page {
    background: #080a0d;
    color: #ffffff;
}

.cart-main {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 92px 16px 120px;
}

/* ============================================================
   CART HERO
   ============================================================ */

.cart-hero {
    padding: 20px 0 28px;
}

.cart-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #ff6600;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cart-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.cart-hero p {
    margin: 10px 0 0;
    color: #8f969f;
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   GENERAL SECTION
   ============================================================ */

.cart-section {
    width: 100%;
}

.cart-section-heading {
    margin-bottom: 14px;
}

.cart-section-label {
    display: block;
    margin-bottom: 5px;
    color: #ff6600;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.cart-section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

#cartItemCount {
    display: block;
    margin-top: 4px;
    color: #747b84;
    font-size: 12px;
}

/* ============================================================
   EMPTY / LOADING STATE
   ============================================================ */

#cartEmpty {
    min-height: 250px;
    padding: 36px 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );
    text-align: center;
}

#cartEmpty[hidden] {
    display: none;
}

.cart-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 102, 0, 0.25);
    border-radius: 18px;
    background: rgba(255, 102, 0, 0.08);
    color: #ff6600;
}

.cart-empty-icon-mark {
    font-size: 24px;
    line-height: 1;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */

.cart-loading-spinner {
    width: 25px;
    height: 25px;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: #ff6600;
    border-radius: 50%;
    animation: cartSpinner 0.75s linear infinite;
}

@keyframes cartSpinner {
    to {
        transform: rotate(360deg);
    }
}

#cartEmpty h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 750;
}

#cartEmpty p {
    max-width: 320px;
    margin: 9px auto 0;
    color: #858c95;
    font-size: 13px;
    line-height: 1.55;
}

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

.cart-primary-button {
    min-height: 48px;
    margin-top: 22px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 13px;
    background: #ff6600;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(255, 102, 0, 0.16);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.cart-primary-button:hover {
    background: #ff741c;
    box-shadow: 0 12px 32px rgba(255, 102, 0, 0.22);
}

.cart-primary-button:active {
    transform: translateY(1px);
}

/* ============================================================
   CART CONTENT
   ============================================================ */

#cartContent[hidden] {
    display: none;
}

.cart-items-section {
    width: 100%;
}

#cartItems {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================
   CART ITEM
   ============================================================ */

.cart-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 13px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );
}

.cart-item-image {
    width: 82px;
    height: 96px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #11151a;
}

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

.cart-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            145deg,
            #151a20,
            #0d1014
        );
    color: #555d66;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.cart-item-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart-item-brand {
    margin-bottom: 3px;
    color: #ff6600;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cart-item-name {
    width: 100%;
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-price {
    margin-top: 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

/* ============================================================
   QUANTITY CONTROLS
   ============================================================ */

.cart-item-controls {
    height: 36px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.cart-quantity-button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.cart-quantity-button:hover:not(:disabled) {
    background: rgba(255, 102, 0, 0.12);
    color: #ff6600;
}

.cart-quantity-button:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.cart-quantity {
    min-width: 32px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

/* ============================================================
   REMOVE
   ============================================================ */

.cart-remove-button {
    margin-top: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777f88;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.18s ease;
}

.cart-remove-button:hover {
    color: #ff6600;
}

/* ============================================================
   DELIVERY CARD
   ============================================================ */

.cart-delivery-card {
    margin-top: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.cart-delivery-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 102, 0, 0.09);
    color: #ff6600;
}

.cart-delivery-card strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
}

.cart-delivery-card span {
    display: block;
    margin-top: 3px;
    color: #7f8790;
    font-size: 11px;
    line-height: 1.45;
}

/* ============================================================
   ORDER SUMMARY
   ============================================================ */

.cart-summary {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.018)
        );
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 7px 0;
    color: #8b929a;
    font-size: 13px;
}

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

.cart-summary-total {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-summary-total span {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.cart-summary-total strong {
    color: #ff6600;
    font-size: 19px;
    font-weight: 850;
}

/* ============================================================
   CHECKOUT
   ============================================================ */

#cartCheckoutButton {
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    border: 0;
    border-radius: 13px;
    background: #ff6600;
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(255, 102, 0, 0.15);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

#cartCheckoutButton:hover {
    background: #ff741c;
    box-shadow: 0 12px 34px rgba(255, 102, 0, 0.22);
}

#cartCheckoutButton:active {
    transform: translateY(1px);
}

/* ============================================================
   CONTINUE SHOPPING
   ============================================================ */

.cart-continue-shopping {
    display: block;
    margin-top: 13px;
    color: #777f88;
    font-size: 12px;
    font-weight: 650;
    text-align: center;
    text-decoration: none;
    transition: color 0.18s ease;
}

.cart-continue-shopping:hover {
    color: #ffffff;
}

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

@media (max-width: 420px) {
    .cart-main {
        padding-left: 13px;
        padding-right: 13px;
    }

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

    .cart-item-image {
        width: 72px;
        height: 88px;
    }

    .cart-item-name {
        font-size: 13px;
    }

    #cartEmpty {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .cart-loading-spinner {
        animation: none;
    }

    .cart-primary-button,
    .cart-quantity-button,
    .cart-remove-button,
    #cartCheckoutButton {
        transition: none;
    }
}