/* =========================================
   New Premium Cart Styles
   ========================================= */

.cart-page-new {
    padding: 60px 0 100px;
    background-color: #fcfcfc;
    min-height: 80vh;
}

.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
}

.cart-count-badge {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    color: #777;
    font-weight: 400;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Left Column */
.cart-items-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #eee;
}

/* Free Shipping Bar */
.free-shipping-container {
    margin-bottom: 40px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.shipping-message {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #000;
    width: 0%;
    transition: width 0.5s ease;
}

/* Cart Items List */
.cart-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cart-item-new {
    display: flex;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.cart-item-new:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-image {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
}

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

.item-details-new {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.item-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    max-width: 80%;
}

.item-price-new {
    font-weight: 600;
    font-size: 16px;
}

.item-variants p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.item-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.qty-selector-new {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 36px;
    width: 100px;
}

.qty-selector-new button {
    width: 30px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector-new button:hover {
    background: #f5f5f5;
}

.qty-selector-new input {
    width: 40px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    background: transparent;
}

.remove-btn-new {
    background: none;
    border: none;
    color: #999;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.remove-btn-new:hover {
    color: #d32f2f;
}

.item-total-new {
    display: none;
    /* Hidden in this layout, price is per item */
}

/* Right Column: Sidebar */
.cart-sidebar {
    position: sticky;
    top: 120px;
}

.order-summary-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.order-summary-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
    color: #555;
}

.summary-line.total {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.summary-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

.tax-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 25px;
    text-align: center;
}

.checkout-btn-new {
    width: 100%;
    padding: 18px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.checkout-btn-new:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.payment-methods-new {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 24px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cart-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .cart-item-new {
        gap: 15px;
    }

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

    .item-header h4 {
        font-size: 14px;
    }

    .item-price-new {
        font-size: 14px;
    }
}

/* RTL Support */
[dir="rtl"] .cart-header-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .item-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .item-details-new {
    text-align: right;
}

[dir="rtl"] .item-actions-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .summary-line {
    flex-direction: row-reverse;
}