/* cart-premium.css - Next Level Cart Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

body {
    background-color: #f8fafc;
}

.cart-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Outfit', sans-serif;
    color: #1e293b;
}

.cart-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: -1px;
}

.cart-title i {
    color: #10b981; /* Premium vibrant green */
    background: #ecfdf5;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* Cart Items Container */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item-premium {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.cart-item-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.cart-item-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(16, 185, 129, 0.05);
    border-color: #e2e8f0;
}

.cart-item-premium img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.cart-item-price {
    margin: 0 0 15px 0;
    color: #10b981;
    font-weight: 800;
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 30px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #475569;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #10b981;
    color: white;
    transform: scale(1.05);
}

.qty-display {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

.remove-btn {
    background: rgba(239, 68, 68, 0.1);
    border: none;
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #ef4444;
    color: white;
}

.cart-item-total {
    text-align: right;
    min-width: 100px;
}

.cart-item-total p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

/* Summary Box */
.cart-summary-box {
    background: #ffffff;
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: #f1f5f9;
    margin-left: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: #64748b;
    font-weight: 500;
}

.summary-row span:last-child {
    color: #1e293b;
    font-weight: 600;
}

.summary-row.total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px dashed #e2e8f0;
    font-size: 1.4rem;
    color: #0f172a;
    font-weight: 800;
}

.summary-row.total span:last-child {
    color: #10b981;
    font-size: 1.6rem;
}

/* Buttons */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 35px;
}

.btn-premium {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg) translate(-100%, 0);
    transition: transform 0.6s ease;
}

.btn-premium:hover::after {
    transform: rotate(45deg) translate(100%, 0);
}

.btn-premium-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.btn-premium-primary:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-premium-secondary {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-premium-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Empty Cart */
.empty-cart-container {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Related Products */
.related-products-section {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 2px dashed #e2e8f0;
}

.related-products-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    color: #0f172a;
}

.related-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.related-product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.08);
}

.related-product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.related-product-card:hover .related-product-img {
    transform: scale(1.05);
}

.related-product-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #1e293b;
    font-weight: 700;
    flex: 1;
}

.related-product-price {
    margin: 0 0 20px 0;
    color: #10b981;
    font-weight: 800;
    font-size: 1.2rem;
}

.btn-add-cart {
    background: #f1f5f9;
    color: #1e293b;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.related-product-card:hover .btn-add-cart {
    background: #10b981;
    color: white;
}

@media (max-width: 968px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary-box {
        position: static;
    }
}
