.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.cart-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.cart-item-options {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 4px;
}

.cart-item-option {
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 4px;
}

.cart-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

.cart-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-empty-text {
    font-size: 18px;
    margin-bottom: 24px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.cart-item-sku {
    font-size: 13px;
    color: #7f8c8d;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.quantity-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.quantity-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 32px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #fee;
}

.cart-footer {
    padding: 24px 30px;
    border-top: 1px solid #e9ecef;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-total-label {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.cart-total-value {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cart-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.cart-btn-secondary:hover {
    background: #d5dbdb;
}

.cart-btn-primary {
    background: #3498db;
    color: white;
}

.cart-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cart-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr auto;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-actions {
        grid-template-columns: 1fr;
    }
}

.cart-item-options {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-option {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.4;
}

.option-label-name {
    font-weight: 600;
    color: #5a6c7d;
}

.option-value-name {
    color: #7f8c8d;
}

.cart-item-sku {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 4px;
}