

.products-filter { padding: 26px 0; background: var(--gray); border-bottom: 1px solid var(--border); }
.products-filter .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

.filter-options { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
    background: var(--light); border: 1px solid var(--border); color: var(--text);
    padding: 9px 18px; border-radius: 50px; font-size: 13.5px; font-weight: 600; cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: var(--light); }

.search-box { display: flex; align-items: center; background: var(--light); border: 1px solid var(--border); border-radius: 50px; overflow: hidden; min-width: 280px; }
.search-box input { flex: 1; border: none; outline: none; padding: 11px 18px; font-size: 14px; font-family: inherit; }
.search-box button { border: none; background: var(--primary); color: var(--light); width: 44px; height: 44px; cursor: pointer; font-size: 15px; }
.search-box button:hover { background: var(--primary-dark); }

.result-counter { max-width: 1240px; margin: 22px auto 0; padding: 0 20px; font-size: 14px; color: var(--text-light); font-weight: 600; }

.products-grid-section { padding: 40px 0 90px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.product-card {
    background: var(--light); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; position: relative; transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); border-color: var(--primary); }
.product-badge {
    position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--light);
    font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 50px; z-index: 2; letter-spacing: 0.4px;
}
.product-image {
    aspect-ratio: 4 / 3; background: var(--gray); display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-brand { font-size: 11.5px; color: var(--primary-dark); font-weight: 700; letter-spacing: 0.6px; margin-bottom: 6px; text-transform: uppercase; }
.product-title { font-size: 16.5px; font-weight: 700; color: var(--dark); margin-bottom: 12px; min-height: 44px; }
.product-specs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; }
.product-specs li { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-light); gap: 8px; }
.product-specs li span:first-child { font-weight: 600; color: var(--text); flex-shrink: 0; }
.product-specs li span:last-child { text-align: right; }
.product-price { border-top: 1px solid var(--border); padding-top: 14px; }
.product-actions { display: flex; gap: 8px; }
.detail-btn, .quote-btn {
    flex: 1; border: none; padding: 10px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer;
    transition: var(--transition);
}
.detail-btn { background: var(--gray); color: var(--text); }
.detail-btn:hover { background: var(--border); }
.quote-btn { background: var(--primary); color: var(--light); }
.quote-btn:hover { background: var(--primary-dark); }

mark { background: #FFE9A8; color: inherit; padding: 0 2px; border-radius: 2px; }

.no-results { grid-column: 1/-1; text-align: center; padding: 70px 20px; color: var(--text-light); }
.no-results i { font-size: 40px; color: var(--border); margin-bottom: 16px; }
.no-results p { margin-bottom: 20px; font-size: 15px; }

@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products-grid { grid-template-columns: 1fr; } }


.product-modal {
    display: none; position: fixed; inset: 0; background: rgba(15,43,42,0.6); z-index: 2000;
    align-items: center; justify-content: center; padding: 20px;
}
.product-modal.open { display: flex; }
.modal-content {
    background: var(--light); border-radius: 18px; max-width: 960px; width: 100%; max-height: 88vh;
    overflow: hidden; position: relative; padding: 32px;
}
.modal-close {
    position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%;
    border: none; background: var(--gray); cursor: pointer; font-size: 16px; color: var(--text);
    display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 2;
}
.modal-close:hover { background: var(--border); }

.modal-body {
    display: flex; align-items: stretch; gap: 32px;
    max-height: calc(88vh - 64px); 
}

.modal-images { flex: 0 0 340px; display: flex; flex-direction: column; min-height: 0; }
.modal-images .main-image { border-radius: 14px; overflow: hidden; margin-bottom: 12px; background: var(--gray); aspect-ratio: 4/3; }
.modal-images .main-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.modal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.modal-thumb {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; cursor: pointer;
    border: 2px solid var(--border); background: var(--gray); padding: 0; transition: var(--transition);
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-thumb:hover { border-color: var(--primary); }
.modal-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }

.modal-info-col {
    flex: 1; min-width: 0; min-height: 0; overflow-y: auto; padding-right: 12px;
}
.modal-body h2 { font-size: 21px; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.modal-body .brand { color: var(--primary-dark); font-weight: 700; font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 12px; }
.modal-body > p, .modal-info-col > p { color: var(--text-light); margin-bottom: 16px; font-size: 14px; }

.variant-selector { margin-bottom: 18px; }
.variant-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
    background: var(--light); border: 1.5px solid var(--border); color: var(--text);
    padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: var(--transition);
}
.variant-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.variant-btn.active { background: var(--primary); border-color: var(--primary); color: var(--light); }

.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.spec-group h4 { font-size: 13.5px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.spec-group ul { display: flex; flex-direction: column; gap: 7px; }
.spec-group li { font-size: 12.5px; color: var(--text-light); display: flex; justify-content: space-between; gap: 10px; }
.spec-label { font-weight: 600; color: var(--text); }
.spec-value { text-align: right; }

@media (max-width: 800px) {
    .modal-content { max-height: 92vh; overflow-y: auto; padding: 24px; }
    .modal-body { flex-direction: column; max-height: none; }
    .modal-images { flex: 0 0 auto; }
    .modal-info-col { overflow-y: visible; padding-right: 0; }
    .modal-specs { grid-template-columns: 1fr; }
}