/* Cart Section */
.cart-section {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 60vh;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 10px;
}

.empty-cart h3 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Cart Content */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

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

.cart-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Montāža options in cart items */
.montaza-option {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.montaza-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.montaza-option input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.montaza-quantity-selector {
    margin-top: 10px;
    padding-left: 26px;
}

.montaza-qty-select {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.montaza-price-breakdown {
    margin-top: 8px;
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

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

.cart-item-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 20px;
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 15px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 5px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    color: #1a1a2e;
    transition: background 0.3s ease;
}

.quantity-btn:hover {
    background: #ff6b35;
    color: white;
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #1a1a2e;
}

.remove-btn {
    padding: 8px 16px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
}

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

.cart-item-total {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    transition: opacity 0.3s ease;
}

.cart-item-total.updating {
    animation: priceUpdate 0.6s ease;
}

@keyframes priceUpdate {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
}

.summary-row span:last-child {
    transition: opacity 0.3s ease;
}

.summary-row span:last-child.updating {
    animation: priceUpdate 0.6s ease;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.summary-row.total span:last-child {
    color: #ff6b35;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: transparent;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.btn-outline:hover {
    background: #ff6b35;
    color: white;
}

.btn-block {
    width: 100%;
    margin-bottom: 12px;
}

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

@media (max-width: 768px) {
    .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;
    }
    
    .cart-item-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .cart-section {
        padding: 30px 15px;
    }
    
    .cart-section .container {
        padding: 0 10px;
    }
    
    .cart-item {
        padding: 15px;
        margin: 0 10px 15px 10px;
    }
    
    .cart-item-name {
        font-size: 16px;
    }
    
    .cart-item-price {
        font-size: 18px;
    }
    
    .cart-summary {
        padding: 20px;
        margin: 0 10px;
    }
    
    .checkout-form {
        padding: 20px 15px;
        margin: 20px 10px;
    }
}

/* Checkout Form */
.checkout-form {
    background: white;
    border-radius: 10px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-form h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 30px;
}

.checkout-form h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
}

.form-section {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b35;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Mounting Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    color: #1a1a2e;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff6b35;
}

.checkbox-label:hover {
    color: #ff6b35;
}

.form-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.text-muted {
    color: #666 !important;
}

#montazaSection {
    border: 2px solid #e3f2fd;
    transition: all 0.3s ease;
}

#montazaSection:hover {
    border-color: #2196f3;
}
