.cart-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.cart-title {
    font-size: 42px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.back-to-catalog-btn:hover {
    background: #b33b3b;
    color: white;
    transform: translateX(-5px);
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.cart-items-section {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.cart-items-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.cart-items-list {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0e0d6;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #b33b3b;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f5f5f5;
}

.item-quantity {
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.remove-item {
    color: #b33b3b;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 15px;
}

.cart-options {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0e0d6;
}

.cart-options h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
}

.option-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cart-checkout {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.cart-checkout h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d0d0d0;
    border-radius: 40px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
}

.cart-total-block {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 2px solid #f0e0d6;
    border-bottom: 2px solid #f0e0d6;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
}

.grand-total {
    font-size: 22px;
    font-weight: 700;
    color: #b33b3b;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.submit-order-btn {
    width: 100%;
    background: #b33b3b;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-order-btn:hover {
    background: #8f2f2f;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
}

.empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
}

.empty-cart-btn {
    display: inline-block;
    background: #b33b3b;
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    margin: 0 10px 15px 10px;
    transition: all 0.2s;
    border: 2px solid #b33b3b;
    min-width: 200px;
    text-align: center;
    box-sizing: border-box;
    min-width: 250px;
}

.empty-cart-btn:hover {
    background: white;
    color: #b33b3b;
}

.empty-cart-btn.secondary {
    background: white;
    color: #b33b3b;
    border: 2px solid #b33b3b;
}

.empty-cart-btn.secondary:hover {
    background: #b33b3b;
    color: white;
}

@media (max-width: 900px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-title {
        font-size: 32px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-quantity {
        width: 100%;
        justify-content: flex-end;
    }
}
.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 20000;
    font-family: 'Montserrat', sans-serif;
}

.custom-alert.show {
    display: flex;
}

.alert-content {
    background: white;
    border-radius: 30px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.alert-message {
    font-size: 18px;
    color: #2c2c2c;
    margin-bottom: 25px;
    line-height: 1.5;
}

.alert-close {
    background: #b33b3b;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 120px;
}

.alert-close:hover {
    background: #8f2f2f;
}

.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 25000;
    font-family: 'Montserrat', sans-serif;
}

.map-modal.show {
    display: flex;
}

.map-modal-content {
    background: white;
    border-radius: 30px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.close-map-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    z-index: 1;
}

.close-map-modal:hover {
    color: #b33b3b;
}

.map-modal-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 20px;
    padding-right: 30px;
}

.address-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.map-icon-btn {
    background: #b33b3b;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
    flex-shrink: 0;
}

.map-icon-btn:hover {
    background: #8f2f2f;
}

#addressGroup {
    transition: all 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .alert-content {
        padding: 30px 20px;
    }
    
    .alert-message {
        font-size: 16px;
    }
    
    .map-modal-content {
        padding: 20px;
    }
    
    .map-modal-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .address-input-wrapper {
        flex-wrap: wrap;
    }
    
    .map-icon-btn {
        width: 100%;
        border-radius: 40px;
    }
}