/* Image Modal - для увеличения изображений */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.image-modal-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
}

.image-modal-description {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    font-weight: 300;
    color: var(--white);
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
    z-index: 3001;
}

.image-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Product Detail Modal - подробная карточка товара */
.product-detail-modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.product-detail-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    margin: auto;
}

.product-modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 32px;
    font-weight: 300;
    color: var(--gray-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    background: rgba(0,0,0,0.05);
    z-index: 2501;
}

.product-modal-close:hover {
    color: var(--primary-green);
    background: rgba(31, 122, 62, 0.1);
    transform: rotate(90deg);
}

.product-detail-image {
    width: 100%;
    margin-bottom: 2rem;
    text-align: center;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-detail-title {
    color: var(--primary-green);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.product-detail-description {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.product-detail-specs {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.product-detail-specs h4 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-detail-specs-content {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.product-detail-specs-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-detail-specs h4 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.product-detail-specs p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    color: var(--dark-text);
}

.product-detail-order-btn {
    width: 100%;
    height: 64px;
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(31, 122, 62, 0.4);
    letter-spacing: 0.5px;
}

.product-detail-order-btn:hover {
    background: #166030;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 122, 62, 0.5);
}

/* Детальная информация о продукте */
.product-detail-full-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.product-detail-section {
    margin-bottom: 1.5rem;
}

.product-detail-section h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-detail-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-text);
    margin: 0;
}

/* Clickable images */
.clickable-image {
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.clickable-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Product cards - улучшенный дизайн */
.product-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
}

.product-image::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .product-detail-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
        max-height: 95vh;
    }

    .product-detail-title {
        font-size: 1.8rem;
    }

    .product-detail-description {
        font-size: 1rem;
    }

    .product-detail-specs {
        padding: 1.5rem;
    }

    .product-detail-order-btn {
        height: 56px;
        font-size: 18px;
    }

    .product-detail-full-info {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
        padding-top: 1.5rem;
    }

    .product-detail-section {
        margin-bottom: 1.2rem;
    }

    .product-detail-section h4 {
        font-size: 1.1rem;
    }

    .product-detail-section p {
        font-size: 1rem;
    }

    .image-modal {
        padding: 10px;
    }

    .image-modal-content {
        max-width: 95%;
    }

    .image-modal-content img {
        max-height: 70vh;
    }

    .image-modal-title {
        font-size: 1.2rem;
        margin-top: 1rem;
    }

    .image-modal-description {
        font-size: 1rem;
    }

    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 32px;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    .modal-content h2 {
        font-size: 2rem;
    }

    .modal-content input,
    .modal-content textarea {
        font-size: 16px;
        padding: 14px 16px;
    }

    .modal-content .btn-primary {
        height: 56px;
        font-size: 18px;
    }
}

