
/* =========================================================
   LUXURYWATCH - SHOPPING CART
   ========================================================= */

.cart-page {
    min-height: 65vh;
    padding: 54px 0 76px;
    background: #f6f8fc;
    color: #172033;
}

.cart-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.cart-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}

.cart-eyebrow {
    margin: 0 0 9px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.cart-heading h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
}

.cart-description {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.cart-continue-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cart-continue-link:hover {
    color: #1d4ed8;
}

.cart-alert {
    margin-bottom: 22px;
    padding: 14px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.cart-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.cart-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 26px;
}

.cart-products,
.cart-summary,
.cart-empty {
    background: #fff;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}

.cart-products {
    padding: 24px;
}

.cart-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9edf4;
}

.cart-section-heading h2,
.cart-summary h2 {
    margin: 0;
    color: #111827;
    font-size: 19px;
    font-weight: 800;
}

.cart-section-heading span {
    color: #64748b;
    font-size: 13px;
}

.cart-product {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #edf0f5;
}

.cart-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 122px;
    overflow: hidden;
    border-radius: 12px;
    background: #f6f8fc;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.cart-product-info {
    min-width: 0;
}

.cart-product-info h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cart-product-sku,
.cart-product-stock {
    margin: 4px 0;
    color: #64748b;
    font-size: 12px;
}

.cart-product-stock {
    color: #15803d;
}

.cart-product-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.cart-unit-price {
    color: #64748b;
    font-size: 13px;
}

.cart-product-pricing strong {
    color: #1d4ed8;
    font-size: 16px;
    font-weight: 800;
}

.cart-product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.cart-quantity-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cart-quantity-form input {
    width: 66px;
    height: 36px;
    padding: 5px 8px;
    border: 1px solid #d8dfeb;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    font-size: 14px;
    outline: none;
}

.cart-quantity-form input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cart-update-button,
.cart-remove-button,
.cart-clear-button {
    padding: 7px 10px;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cart-update-button {
    color: #2563eb;
}

.cart-update-button:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.cart-remove-button,
.cart-clear-button {
    color: #dc2626;
}

.cart-remove-button:hover,
.cart-clear-button:hover {
    color: #991b1b;
    text-decoration: underline;
}

.cart-clear-form {
    display: flex;
    justify-content: flex-end;
    padding-top: 20px;
}

.cart-summary {
    position: sticky;
    top: 24px;
    padding: 24px;
}

.cart-summary h2 {
    padding-bottom: 20px;
    border-bottom: 1px solid #e9edf4;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 0;
    color: #64748b;
    font-size: 13px;
}

.cart-summary-row strong {
    color: #172033;
    font-size: 14px;
}

.cart-shipping-note {
    max-width: 130px;
    color: #64748b;
    text-align: right;
}

.cart-summary-total {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 5px;
    padding: 20px 0;
    border-top: 1px solid #e9edf4;
}

.cart-summary-total span {
    color: #475569;
    font-size: 14px;
}

.cart-summary-total strong {
    color: #1d4ed8;
    font-size: 25px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.cart-summary-note {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.cart-primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid #2563eb;
    border-radius: 9px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cart-primary-button:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #fff;
}

.cart-shopping-button {
    width: 100%;
}

.cart-empty {
    padding: 60px 24px;
    text-align: center;
}

.cart-empty-icon {
    margin-bottom: 18px;
    font-size: 44px;
}

.cart-empty h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
}

.cart-empty p {
    max-width: 480px;
    margin: 0 auto 24px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.cart-empty .cart-primary-button {
    min-width: 190px;
}

.cart-mobile-price {
    display: none;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .cart-page {
        padding: 34px 0 48px;
    }

    .cart-container {
        width: calc(100% - 24px);
    }

    .cart-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .cart-heading h1 {
        font-size: 29px;
    }

    .cart-products,
    .cart-summary {
        padding: 17px;
        border-radius: 12px;
    }

    .cart-product {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 13px;
        align-items: start;
        padding: 19px 0;
    }

    .cart-product-image {
        width: 84px;
        height: 96px;
    }

    .cart-product-info h3 {
        font-size: 14px;
    }

    .cart-product-pricing {
        grid-column: 2;
        align-items: flex-start;
        gap: 4px;
        margin-top: -2px;
    }

    .cart-unit-price {
        display: none;
    }

    .cart-mobile-price {
        display: block;
        margin-top: 7px;
        color: #1d4ed8;
        font-size: 14px;
        font-weight: 750;
    }

    .cart-product-pricing strong {
        font-size: 15px;
    }

    .cart-product-actions {
        gap: 5px;
    }

    .cart-quantity-form {
        gap: 3px;
    }

    .cart-quantity-form input {
        width: 58px;
    }

    .cart-update-button,
    .cart-remove-button {
        padding: 7px 5px;
    }

    .cart-section-heading h2,
    .cart-summary h2 {
        font-size: 17px;
    }

    .cart-empty {
        padding: 42px 18px;
    }

    .cart-empty h2 {
        font-size: 21px;
    }
}

/* Nút tiến hành đặt hàng */
.cart-checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cart-checkout-button:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

.cart-checkout-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 3px;
}
