/* Products Grid */
.products-section {
    padding: 4rem 0;
    background: var(--bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.2);
}

.product-card-modern img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card-modern .product-icon {
    font-size: 5rem;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-1);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.product-card-modern h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 800;
}

.product-card-modern p {
    padding: 0 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-meta {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-card-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.8rem;
}

.btn-view {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.btn-quote {
    flex: 1;
    padding: 0.8rem 1.2rem;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-quote:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 10000;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 30px 90px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: row;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    flex: 0 0 45%;
    position: relative;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset -10px 0 30px rgba(0,0,0,0.1);
}

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

.modal-header .product-icon {
    font-size: 12rem;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

.modal-title {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
}

.modal-title h2 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.modal-title .badge {
    display: inline-block;
    background: rgba(255,255,255,0.98);
    color: var(--primary);
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 900;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.modal-body {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    background: white;
}

.modal-description {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid var(--bg);
    font-weight: 500;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.spec-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.4rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid transparent;
}

.spec-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.15);
    border-left-color: var(--primary);
    transform: translateX(5px);
}

.spec-item strong {
    display: block;
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.spec-item p {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.benefits {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 18px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    border: 2px solid rgba(255, 107, 107, 0.1);
}

.benefits h3 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    padding: 0.8rem 0;
    color: var(--text);
    display: flex;
    align-items: start;
    gap: 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 500;
}

.benefits li:before {
    content: '✓';
    color: white;
    background: var(--gradient-1);
    font-weight: 900;
    font-size: 1rem;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.modal-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 3px solid var(--bg);
}

.modal-actions .btn {
    flex: 1;
    min-width: 200px;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
    letter-spacing: 0.5px;
}

.modal-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.35);
}

@media (max-width: 968px) {
    .modal-content {
        flex-direction: column;
        max-height: 95vh;
    }
    
    .modal-header {
        flex: 0 0 300px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        height: 200px;
    }

    .modal-title h2 {
        font-size: 1.8rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}
