
/* =========================================
   CART PAGE STYLES (Modern & Clean)
   ========================================= */

.cart-content-v2 {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .cart-content-v2 {
        grid-template-columns: 1fr;
    }
}

.cart-items-wrapper {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.cart-header-v2 {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 50px;
    padding: 20px 30px;
    background: #fdfdfd;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-v2-page {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 50px;
    padding: 30px;
    align-items: center;
    border-bottom: 1px solid #f8f8f8;
    transition: all 0.3s ease;
}

.cart-item-v2-page:last-child {
    border-bottom: none;
}

.cart-item-v2-page:hover {
    background: #fafafa;
}

.cart-product-v2 {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-product-v2 img {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.cart-product-info-v2 h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.cart-product-info-v2 p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-price-v2 {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.cart-quantity-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.qty-btn-v2 {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.qty-btn-v2:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.qty-input-v2 {
    width: 35px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    background: transparent;
    color: var(--text-primary);
}

.cart-total-price-v2 {
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    font-size: 1.1rem;
}

.remove-btn-v2 {
    color: #ff4757;
    background: #fff1f2;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    margin: 0 auto;
}

.remove-btn-v2:hover {
    background: #ff4757;
    color: white;
    transform: scale(1.1) rotate(90deg);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cart-header-v2 {
        display: none;
    }

    .cart-item-v2-page {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        position: relative;
    }

    .cart-product-v2 {
        width: 100%;
    }

    .cart-product-v2 img {
        width: 70px;
        height: 70px;
    }

    .cart-quantity-v2 {
        justify-content: flex-start;
        padding-left: 90px;
    }

    .cart-total-price-v2 {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1rem;
    }

    .remove-btn-v2 {
        position: absolute;
        bottom: 20px;
        right: 20px;
        margin: 0;
    }
}

/* Summary Sidebar V2 */
.cart-summary-v2 {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}

.cart-summary-v2 h2 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-row-v2 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.summary-row-v2.total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.summary-row-v2.total span:last-child {
    color: var(--primary);
}

.checkout-btn-v2 {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.checkout-btn-v2:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.25);
}

/* Empty Cart State V2 */
.empty-cart-page-v2 {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    margin-bottom: 60px;
}

.empty-cart-page-v2 .icon-box {
    width: 120px;
    height: 120px;
    background: #f0f8f4;
    color: var(--primary);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    margin: 0 auto 30px;
    animation: float 3s ease-in-out infinite;
}

.empty-cart-page-v2 h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.empty-cart-page-v2 p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Coupon Section V2 */
.coupon-box-v2 {
    background: #fcfcfc;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    margin-bottom: 30px;
}

.coupon-box-v2 h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-v2 {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.coupon-input-v2:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.coupon-btn-v2 {
    padding: 12px 25px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.coupon-btn-v2:hover {
    background: #000;
    transform: translateY(-2px);
}

.coupon-btn-v2.remove {
    background: #ff4757;
}

/* Best Sellers Section V2 */
.section-title-v2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 60px 0 30px;
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.section-title-v2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 30px;
    background: var(--primary);
    border-radius: 3px;
}

#bestSellersGrid.products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #bestSellersGrid.products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    #bestSellersGrid .product-card {
        font-size: 0.85rem;
    }
    
    #bestSellersGrid .product-image-box {
        padding-top: 75%;
    }
}
