/* --- Cart Layout --- */
.cart-page-container {
    padding: 60px 5%;
    background: #ffffff; /* White background to make cards pop */
    min-height: 80vh;
}

.cart-layout {
    display: flex;
    gap: 40px;
    max-width: 1250px;
    margin: 0 auto;
}

.cart-items-column { flex: 2; }
.cart-summary-sidebar { flex: 1; }

.cart-section-title {
    font-size: 24px;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gold-mid);
    padding-bottom: 15px;
}

.cart-section-title span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}
 
/* Mobile Optimization */
@media screen and (max-width: 768px) {
    .cart-section-title {
        font-size: 18px;           /* Reduced from 24px */
        letter-spacing: 1px;      /* Tighter spacing for small screens */
        margin-bottom: 20px;      /* Less white space */
        padding-bottom: 10px;     /* Closer to the border */
    }

    .cart-section-title span {
        font-size: 12px;           /* Reduced from 14px */
        display: block;            /* Stack the span below the title for better fit */
        margin-top: 5px;
    }
}






/* --- Cart Grid Logic --- */
.cart-grid {
    display: grid;
    /* Desktop: 6 items per row */
    grid-template-columns: repeat(6, 1fr); 
    gap: 15px;
    margin-top: 20px;
}

/* Ensure the layout container allows enough room */
.cart-layout {
    display: block; /* Overriding flex to let the grid span full width if needed */
    max-width: 100%;
}

/* --- Responsive Breakpoints --- */

/* Mid-size screens (Tablets/Laptops) */
@media (max-width: 1200px) {
    .cart-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 items per row */
    }
}

@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 items per row */
    }
}

/* Mobile: 2 items per row */
@media (max-width: 600px) {
    .cart-page-container {
        padding: 20px 10px;
    }
    
    .cart-grid {
        grid-template-columns: repeat(2, 1fr); /* Exactly 2 per row */
        gap: 8px; /* Tight gap for mobile */
    }

    /* Adjusting card height for mobile consistency */
    .product-info {
        padding: 10px 5px;
    }
    
    .product-title {
        font-size: 10px;
        min-height: 28px;
    }
    
    .product-price {
        font-size: 12px;
    }
}