
.products-hero {

    background-size: cover;
    background-position: center;
    color: var(--light);
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.products-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.products-hero p {
    font-size: 20px;
    opacity: 0.9;
}

.products-filter {
    padding: 40px 0;
    background-color: var(--gray);
}

.products-filter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 80%;
    overflow-x: hidden; 
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--light);
    border: 2px solid var(--border);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap; 
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--light);
    border-color: var(--primary);
}

.search-box {
    display: flex;
    background-color: var(--light);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-shrink: 0; 
}

.search-box input {
    padding: 10px 20px;
    border: none;
    outline: none;
    min-width: 250px;
}

.search-box button {
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: var(--primary-dark);
}

.products-grid-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: var(--light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 20px;
}

.product-brand {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-specs {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.detail-btn,
.quote-btn {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.detail-btn {
    background-color: transparent;
    border: 1px solid var(--dark);
    color: var(--dark);
}

.detail-btn:hover {
    background-color: var(--dark);
    color: var(--light);
}

.quote-btn {
    background-color: var(--primary);
    border: none;
    color: var(--light);
}

.quote-btn:hover {
    background-color: var(--primary-dark);
}

.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--light);
    max-width: 900px;
    margin: 50px auto;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--primary);
}

.modal-body {
    padding: 40px;
}

.modal-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.main-image {
    grid-column: span 2;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail {
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.spec-group h4 {
    margin-bottom: 15px;
    color: var(--dark);
}

.spec-group ul {
    list-style: none;
}

.spec-group ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.spec-group ul li:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-light);
}

.spec-value {
    font-weight: 500;
}



.result-counter {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: none;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 15px;
    display: block;
}

.no-results p {
    font-size: 16px;
    margin-bottom: 20px;
}


mark {
    background-color: rgba(255, 107, 0, 0.18);
    color: var(--primary);
    border-radius: 2px;
    padding: 0 2px;
    font-weight: 600;
}

.search-box {
    position: relative;
}

.search-clear {
    position: absolute;
    right: 52px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: none;
}

.search-clear.visible {
    display: block;
}


@media (max-width: 768px) {
  
    .products-filter {
        padding: 20px 0;
    }
    
    .products-filter .container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 0 15px;
        overflow-x: visible;
    }

    .filter-options {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        overflow-x: visible;
        padding: 5px 0;
    }

    .filter-btn {
        white-space: normal;
        flex-shrink: 1;
        padding: 8px 16px;
        font-size: 14px;
        text-align: center;
    }

    
    .search-box {
        width: 100%;
        max-width: 100%;
    }

    .search-box input {
        min-width: auto;
        flex: 1;
        width: 100%;
        font-size: 16px; 
        padding: 12px 16px;
    }
    
    .search-box button {
        padding: 12px 20px;
    }
    
    .search-clear {
        right: 60px;
    }


    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
    
    .products-hero h1 {
        font-size: 32px;
    }
    
    .products-hero p {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .modal-content {
        margin: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-images {
        grid-template-columns: 1fr;
    }
    
    .main-image {
        grid-column: span 1;
        height: 250px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .product-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-hero h1 {
        font-size: 28px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .filter-options {
        gap: 8px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .detail-btn,
    .quote-btn {
        text-align: center;
        width: 100%;
    }
}


.product-image {
    height: 220px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-card {
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
}