/* Catalog Styles */

/* Section subtitle */
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Coming Soon Product Styles */
.product-card.coming-soon {
    position: relative;
    opacity: 0.8;
}

.product-card.coming-soon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    border-radius: 15px;
}

.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    min-height: 500px;
    flex: 1;
    overflow-y: auto;
}

/* Modal Info */
.modal-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Modal Gallery */
.modal-gallery {
    flex: 1;
    margin-right: 2rem;
}

.modal-main-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: #7fb8b8;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #7fb8b8;
    box-shadow: 0 0 10px rgba(127, 184, 184, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-price {
    font-size: 1.8rem;
    color: #ff6b6b;
    font-weight: 700;
    margin-bottom: 25px;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
    flex: 1;
    overflow-y: auto;
}

.modal-features {
    margin-bottom: 30px;
    flex: 1;
    overflow-y: auto;
}

.modal-features h4 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-features p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.order-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

/* Enhanced Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-btn {
    background: linear-gradient(135deg, #7fb8b8, #a8d0d0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(20px);
    box-shadow: 0 4px 15px rgba(127, 184, 184, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card:hover .product-btn {
    transform: translateY(0);
}

.product-btn:hover {
    background: linear-gradient(135deg, #6ba6a6, #96c4c4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 184, 184, 0.4);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.4rem;
    color: #ff6b6b;
    font-weight: 700;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.quantity-label {
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #7fb8b8;
    background: white;
    color: #7fb8b8;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #7fb8b8;
    color: white;
    transform: scale(1.1);
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #7fb8b8, #a8d0d0);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6ba6a6, #96c4c4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 184, 184, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

/* Feature Tags */
.feature-tag {
    display: inline-block;
    background: linear-gradient(135deg, #cbe3e3, #a8d0d0);
    color: #2c5454;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 2px;
    white-space: nowrap;
}

/* Переваги розвитку */
.development-benefits {
    margin-top: 20px;
}

.development-benefits h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.benefit-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.benefit-item h5 {
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-size: 1em;
    font-weight: 600;
}

.benefit-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.95em;
}

.product-description-text {
    margin: 15px 0;
    padding: 15px;
    background: #f1f3f4;
    border-radius: 8px;
}

.product-description-text p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        min-height: auto;
    }
    
    .modal-gallery {
        padding: 20px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    .modal-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-price {
        font-size: 1.4rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .main-image {
        height: 200px;
    }
    
    .modal-info {
        padding: 15px;
    }
    
    .product-image {
        height: 200px;
    }
}