/* Cart Page Styles */

.cart-page {
    padding: 40px 20px;
    background: #f9f9f9;
    min-height: 100vh;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-header {
    margin-bottom: 30px;
}

.cart-header h1 {
    font-size: 32px;
    color: #1a365d;
    margin-bottom: 10px;
}

.cart-header p {
    color: #64748b;
    font-size: 14px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 5px;
}

.cart-item-attributes {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.cart-item-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #e2e8f0;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: white;
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-btn:hover {
    color: #dc2626;
    text-decoration: underline;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #64748b;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
}

.summary-row.total .summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

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

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.btn-continue-shopping {
    width: 100%;
    padding: 14px;
    background: white;
    color: #1a365d;
    border: 2px solid #1a365d;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    background: #2a4a73;
    transform: translateY(-2px);
}

.btn-checkout:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    opacity: 0.5;
}

.empty-cart h2 {
    font-size: 24px;
    color: #1a365d;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}

.btn-start-shopping {
    padding: 14px 30px;
    background: #1a365d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-start-shopping:hover {
    background: #2a4a73;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 20px 15px;
    }
    
    .cart-items,
    .cart-summary {
        padding: 20px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }
    
    .cart-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-item-actions {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .quantity-selector {
        width: 100%;
    }
    
    .quantity-input {
        flex: 1;
    }
}
