.cart-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
    position: relative;
}

.cart-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.cart-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.cart-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cart-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.cart-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 300;
}

.cart-main {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.cart-items-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.cart-items-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-count {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

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

.item-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.item-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .item-image img {
    transform: scale(1.05);
}

.item-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.item-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.item-fabric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.size-badge {
    background: #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
}

.fabric-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
}

.item-stock {
    color: #48bb78;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stock-dot {
    width: 6px;
    height: 6px;
    background: #48bb78;
    border-radius: 50%;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.item-price {
    text-align: right;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: -20px;
    right: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.item-price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0;
}

.item-price-current.discounted {
    color: #059669;
}

.item-price-unit {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.item-price-old {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.qty-btn {
    background: transparent;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: #475569;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.qty-btn:hover {
    background: #667eea;
    color: white;
}

.qty-input {
    border: none;
    background: transparent;
    padding: 0.75rem;
    width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #2d3748;
}

.remove-btn {
    background: transparent;
    color: #e53e3e;
    border: 2px solid #fed7d7;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.remove-btn:hover {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
    transform: translateY(-1px);
}

.cart-sidebar {
    position: sticky;
    top: 2rem;
}

.cart-summary {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.summary-header {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.summary-content {
    padding: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2d3748;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-value {
    color: #2d3748;
    font-weight: 600;
}

.total-price {
    font-size: 2rem;
    font-weight: 800;
    color: #48bb78;
    margin: 1rem 0;
    text-align: center;
}

.checkout-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 80px rgba(72, 187, 120, 0.4);
}

.clear-cart-btn {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.clear-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(229, 62, 62, 0.3);
    background: linear-gradient(135deg, #c53030 0%, #9c2626 100%);
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.security-badge {
    color: #64748b;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

.empty-cart h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.continue-shopping {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
}

.continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.promo-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 15px;
    text-align: center;
}

.promo-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.promo-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.promo-input input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

.promo-input button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-input button:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .cart-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-title {
        font-size: 2rem;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 1rem;
    }
    
    .item-controls {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
    }
    
    .item-image img {
        width: 100px;
        height: 100px;
    }
    
    .summary-content {
        padding: 1rem;
    }
}
