/* Стили чек-листа */
#cartContainer {
    display: flex;
    align-items: center;
    /* cursor: pointer; */
}

.icon-cart {
    height: 30px;
    width: 40px;
    margin-right: 5px;
}

.icon-cart:hover, .filter-cart img:hover {
    transform: translateY(-3px);
}

.cart-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 70%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#cartModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

#cartItems {
    margin: 20px 0;
}

.item-name {
    display: none;
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #c7c6c6;
}

.cart-item img {
    width: 50px;
}

.img-art {
    font-size: 12px;
}

#cartOpener {
    color: #ffffff;
}

#cartOpener:hover {
    color: rgb(153, 142, 142);
}

.cart-item-info {
    display: flex;
    flex-grow: 1;
    margin: 0 15px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    height: 50px;
    text-wrap: nowrap;
}

.cart-item-controls input {
    width: 30px;
    text-align: center;
}

.remove-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
}

#delete {
    width: 20px;
    height: 20px;
}

#delete:hover {
    content: url(/images/icon/delete.png);
    height: 23px;
}

.cart-total {
    text-align: right;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
}

.button-cart-modal {
    display: flex;
    justify-content: space-around;
}

#clearCartBtn {
    background-color: #ff0000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1em;
}

#clearCartBtn:hover {
    background-color: #c71010;
}

#checkoutBtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 1em;
}

#checkoutBtn:hover {
    background-color: #45a049;
}

/* Кнопка "Добавить" в карточках товаров */
.add-to-cart {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
    font-size: 0.9em;
}

.add-to-cart:hover {
    background-color: #45a049;
}


/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
}

/* Убираем стрелочки */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; 
}

input[type='number'],
input[type="number"]:hover,
input[type="number"]:focus {
    appearance: none;
    -moz-appearance: textfield;
}

/* Стили для чек-листа в фильтре */
.filter-cart {
    display: flex;
    align-items: center;
    margin-left: 40px;
}

.filter-cart img {
    height: 30px;
    width: 40px;
    cursor: pointer;
}

.filter-cart span {
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    padding: 6px 8px;
    position: relative;
    top: -1px;
    user-select: none;
    cursor: pointer;
}


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

.decrease-quantity,
.increase-quantity {
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decrease-quantity:hover,
.increase-quantity:hover {
    background: #b9b9b9;
}



.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls button:hover {
    background: #e0e0e0;
}

.quantity-controls input {
    width: 40px;
    height: 28px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ddd;
}

.add-to-cart {
    padding: 8px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.add-to-cart:hover {
    background: #45a049;
}


.clear-cart-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 10px 0;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.clear-cart-btn:hover {
    background-color: #d32f2f;
}


/* Добавьте в ваш CSS файл */
.product-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.product-quantity-controls button {
    width: 25px;
    height: 25px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-quantity-controls button:hover {
    background-color: #e0e0e0;
}

.product-quantity-controls .quantity {
    min-width: 20px;
    text-align: center;
}


/* Стили для модального окна оформления чек-листа */
.checkout-modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    overflow-y: auto;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
}

#checkoutModal {
    z-index: 1500;
}

.checkout-modal-content .form-group {
    margin-bottom: 15px;
}

.checkout-modal-content label {
    /* display: block; */
    margin-bottom: 5px;
    font-weight: bold;
}

.checkout-modal-content input,
.checkout-modal-content textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.checkout-modal-content textarea {
    resize: vertical;
}

.checkout-modal-content #confirmOrderBtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

.checkout-modal-content #confirmOrderBtn:hover {
    background-color: #45a049;
}

.order-summary {
    margin: 20px 0;
    padding: 15px;
    background-color: #e0e0e0;
    border-radius: 4px;
    font-size: 20px;
}

#checkoutTotal {
    font-size: 30px;
}

.checkout-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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


/* Стили для чекбокса соглашения */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    margin: 15px 0;
    line-height: 1.4;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background-color: #f0f8ff;
    border-color: #4CAF50;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #6c757d;
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
}

.checkbox-text {
    flex: 1;
}

.checkbox-label a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    margin-left: 4px;
}

.checkbox-label a:hover {
    color: #388e3c;
    text-decoration: underline;
}

/* Анимация при изменении состояния */
.checkbox-label input[type="checkbox"]:checked + .checkmark {
    animation: checkmarkAnimation 0.3s ease;
}

/* Стили для неактивной кнопки */
#confirmOrderBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#confirmOrderBtn:disabled:hover {
    background-color: #cccccc;
    transform: none;
}

/* Улучшенные стили для кнопки подтверждения */
#confirmOrderBtn {
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}