
/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
	all: unset;
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: all 0.2s ease;
    color: #666;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.modal-image-section {
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-image-wrapper {
    max-width: 370px;
    width: 100%;
    border-radius: 12px;
    background: #fff;
    padding: 9px;
    box-shadow: 0 2px 8px 0 rgba(80,80,90,0.04);
    border: 1.5px solid rgba(99,99,99,0.13);
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.modal-info-section {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#modalOverlay .modal-title  {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333; !important;
	text-align: left !important;
    margin-bottom: 15px;
    line-height: 1.2;
}

.modal-price {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 25px;
}

#modalOverlay .modal-description {
    color: #666; !important;
    line-height: 1.6; !important;
	font-weight: normal !important;
	text-align: left !important;
    margin-bottom: 30px; !important;
    flex-grow: 1; !important;
    font-size: 0.95rem; !important;
}

.modal-qty-control-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.modal-qty-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(99,99,99,0.2);
    border-radius: 6px;
    width: fit-content;
    height: 44px;
    padding: 0 6px;
    gap: 6px;
}

.modal-qty-box .qty-btn {
    all: unset;
	border: none !important;
    outline: none !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
    color: #000000;
    background-color: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-qty-box .qty-btn:hover {
    background: rgba(99,99,99,0.1);
}

.modal-qty-box .qty-value {
    min-width: 24px;
    text-align: center;
    color: #000000;
    font-size: 1rem;
    line-height: 32px;
    user-select: none;
}

.modal-add-to-cart {
    height: 40px;
    padding: 0.12em 0.7em;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
    font-size: 1rem;
}

.modal-add-to-cart:hover {
    background: rgba(99,99,99,0.05);
    border-color: #bbb;
}

