/* ============ CATALOG PAGE ============ */

/* BREADCRUMB BAR */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 92px 0 14px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--text-secondary);
  transition: var(--transition);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.bc-sep {
  opacity: 0.4;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.bc-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* CATEGORY HERO */
.cat-hero {
  background: var(--white);
  padding: 24px 0 24px;
  border-bottom: 1px solid var(--border);
}
.cat-title {
  font-family: var(--font-accent);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* MATERIAL TAGS SCROLL */
.material-tags {
  background: var(--white);
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
}
.mt-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 14px;
}
.mt-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.mt-scroll::-webkit-scrollbar {
  height: 4px;
}
.mt-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.mt-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.mt-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
}
.mt-img-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg);
  flex-shrink: 0;
}

/* CATALOG TOOLBAR */
.cat-main {
  padding: 40px 0 80px;
  background: var(--bg);
}
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.cat-toolbar-title {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 700;
}
.cat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cat-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.cat-sort label {
  color: var(--text-light);
  font-weight: 500;
}
.cat-sort select {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}
.cat-sort select:focus {
  border-color: var(--accent);
}
.cat-view-toggle {
  display: flex;
  gap: 4px;
}
.view-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}
.view-btn svg {
  fill: var(--text-light);
  transition: var(--transition);
}
.view-btn:hover {
  border-color: var(--accent);
}
.view-btn:hover svg {
  fill: var(--accent);
}
.view-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}
.view-btn.active svg {
  fill: var(--white);
}

/* LAYOUT: SIDEBAR + PRODUCTS */
.cat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* SIDEBAR FILTERS */
.cat-filters {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.filter-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.filter-group:first-of-type {
  padding-top: 0;
}
.filter-group:last-of-type {
  border-bottom: none;
}
.filter-title {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.filter-check:hover {
  color: var(--text-primary);
}
.filter-check input {
  display: none;
}
.filter-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}
.filter-check input:checked + .filter-box {
  background: var(--accent);
  border-color: var(--accent);
}
.filter-check input:checked + .filter-box::after {
  content: "✓";
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}
.filter-range {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.filter-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}
.filter-range-track {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}
.filter-range-track input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
}
.filter-range-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 2;
}
.filter-range-track input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
}
.filter-range-bar {
  position: absolute;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}
.filter-range-fill {
  position: absolute;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  top: 50%;
  transform: translateY(-50%);
}
.filter-range-values {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.filter-reset {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.filter-reset:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.filter-close-mob {
  display: none;
}
.filter-open-mob {
  display: none;
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.products-grid.products-list {
  grid-template-columns: 1fr;
}

.products-grid .product-card .pc-specs {
  grid-template-columns: 1fr;
  border: none;
}

.products-grid .product-card .pc-specs .pc-spec {
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.products-grid.products-list .product-card .pc-specs {
  grid-template-columns: 1fr 1fr;
}
.products-grid.products-list .product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: start;
}
.products-grid.products-list .pc-img {
  height: 200px;
}

/* PRODUCT CARD */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--border-hover);
}
.pc-img {
  height: 220px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pc-img-placeholder {
  font-size: 13px;
  color: var(--text-light);
}
.pc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}
.pc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pc-rating {
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 8px;
}
.pc-rating span {
  color: var(--text-light);
  font-size: 11px;
  margin-left: 4px;
}
.pc-body h3 {
  font-family: var(--font-accent);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.pc-body h3 a {
  color: var(--text-primary);
  transition: var(--transition);
}
.pc-body h3 a:hover {
  color: var(--accent);
}
.pc-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.pc-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pc-spec span {
  font-size: 11px;
  color: var(--text-light);
}
.pc-spec strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.pc-footer {
  margin-top: auto;
}
.pc-price {
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.pc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-cart-btn {
  font-size: 13px;
  padding: 10px 20px;
}
.pc-buy-1 {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: var(--transition);
}
.pc-buy-1:hover {
  text-decoration: underline;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pag-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}
.pag-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pag-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* SEO SECTION */
.seo-section {
  background: var(--white);
  padding: 80px 0;
}
.seo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.seo-text h2 {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.seo-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.seo-image {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seo-image-placeholder {
  color: var(--text-light);
  font-size: 14px;
}

/* TAGS */
.tags-section {
  background: var(--bg);
  padding: 60px 0;
}
.tags-title {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-link {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: var(--transition);
}
.tag-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ASK QUESTION */
.ask-section {
  background: var(--white);
  padding: 80px 0;
}
.ask-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  background: var(--bg);
  border-radius: 24px;
  padding: 56px;
}
.ask-info h2 {
  font-family: var(--font-accent);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.ask-info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.ask-form .form-group {
  margin-bottom: 16px;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .cat-layout {
    grid-template-columns: 1fr;
  }
  .cat-filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 998;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-radius: 0;
    overflow-y: auto;
    padding-top: 60px;
  }
  .cat-filters.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  }
  .filter-close-mob {
    display: flex;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
  }
  .filter-open-mob {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-card);
    cursor: pointer;
    margin-bottom: 20px;
    transition: var(--transition);
  }
  .filter-open-mob:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-block {
    grid-template-columns: 1fr;
  }
  .ask-box {
    grid-template-columns: 1fr;
    padding: 40px;
  }
}
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .products-grid.products-list .product-card {
    grid-template-columns: 1fr;
  }
  .cat-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .seo-image {
    height: 240px;
  }
  .ask-box {
    padding: 28px;
  }
  .mt-tag {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ============ SUBCATEGORY SECTION ============ */
.subcat-section {
  background: var(--white);
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--border);
}
.subcat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 20px;
}
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.subcat-card {
  display: grid;
  grid-template-columns: 160px 1fr 40px;
  align-items: center;
  gap: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.subcat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform var(--transition);
}
.subcat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.subcat-card:hover::before {
  transform: scaleY(1);
}
.subcat-img {
  width: 160px;
  height: 120px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.subcat-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.subcat-img-placeholder {
  font-size: 12px;
  color: var(--text-light);
}
.subcat-body h2 {
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: var(--transition);
  letter-spacing: -0.01em;
}
.subcat-card:hover .subcat-body h2 {
  color: var(--accent);
}
.subcat-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.subcat-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-light);
  flex-shrink: 0;
  transition: var(--transition);
}
.subcat-card:hover .subcat-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

@media (max-width: 960px) {
  .subcat-grid {
    grid-template-columns: 1fr;
  }
  .subcat-card {
    grid-template-columns: 120px 1fr 36px;
    gap: 16px;
    padding: 20px;
  }
  .subcat-img {
    width: 120px;
    height: 90px;
  }
}
@media (max-width: 640px) {
  .subcat-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .subcat-img {
    width: 100%;
    height: 140px;
    margin: 0 auto;
  }
  .subcat-arrow {
    display: none;
  }
}

/* ============ FEATURED SUBCATEGORY CARDS (vertical, 3-col) ============ */
.subcat-featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.subcat-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.subcat-feature-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.subcat-feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.subcat-feature-card:hover::after {
  transform: scaleX(1);
}
.sfc-img {
  height: 200px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sfc-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform var(--transition);
}
.subcat-feature-card:hover .sfc-img img {
  transform: scale(1.05);
}
.sfc-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sfc-body h2 {
  font-family: var(--font-accent);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  transition: var(--transition);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.subcat-feature-card:hover .sfc-body h2 {
  color: var(--accent);
}
.sfc-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.sfc-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}
.subcat-feature-card:hover .sfc-link {
  gap: 8px;
}

@media (max-width: 960px) {
  .subcat-featured {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .subcat-featured {
    grid-template-columns: 1fr;
  }
  .sfc-img {
    height: 160px;
  }
}

/* ============ CATEGORY DESCRIPTION TEXT ============ */
.cat-description {
  background: var(--white);
  padding: 0 0 32px;
}
.cat-desc-box {
  max-width: 860px;
  padding-top: 20px;
}
.cat-desc-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.cat-desc-text p:last-child {
  margin-bottom: 0;
}
.cat-desc-text strong {
  color: var(--text-primary);
  font-weight: 600;
}
@media (max-width: 640px) {
}

/* ============ RANGE SLIDER ============ */
.filter-slider-group {
  margin-top: 4px;
}
.filter-slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.filter-slider-values span {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  min-width: 60px;
  text-align: center;
}
.range-slider {
  position: relative;
  height: 32px;
  margin: 4px 0 8px;
}
.range-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  pointer-events: none;
  top: 12px;
  margin: 0;
}
.range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
  margin-top: -7px;
  transition: box-shadow 0.2s;
}
.range-slider input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px var(--accent-light);
}
.range-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
}
.range-slider input[type="range"]::-moz-range-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}
.range-track-fill {
  position: absolute;
  top: 12px;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  pointer-events: none;
}

/* ============ CONSULTATION MODAL ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(13, 17, 23, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 48px 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-box {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  background: var(--bg);
  transition: var(--transition);
}
.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.modal-box h2 {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.modal-box > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}
.modal-form .form-group {
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .modal-box {
    padding: 32px 24px;
  }
}

/* ============ DUAL RANGE SLIDER ============ */
.filter-slider-group {
  padding: 4px 0;
}
.filter-slider-values {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.range-slider {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  margin: 12px 0 8px;
}
.range-track-fill {
  position: absolute;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  top: 0;
}
.range-slider input[type="range"] {
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
  margin: 0;
  height: 22px;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 2;
}
.range-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: all;
  border: none;
}

/* Firefox range track */
.range-slider input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
  height: 6px;
}
.filter-range-track input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
  height: 6px;
}

/* ============ FEATURED PRODUCTS SLIDER ============ */
.featured-slider-section{
  background:var(--bg-dark);
  padding:56px 0 64px;
  overflow:hidden;
}

/* Header: tabs + arrows */
.fs-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:36px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.fs-tabs{display:flex;gap:8px}
.fs-tab{
  font-family:var(--font-accent);
  font-size:13px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding:12px 28px;
  border-radius:var(--radius-sm);
  border:1.5px solid rgba(255,255,255,0.12);
  background:transparent;
  color:rgba(255,255,255,0.5);
  cursor:pointer;
  transition:var(--transition);
  white-space:nowrap;
}
.fs-tab:hover{
  border-color:rgba(255,255,255,0.3);
  color:rgba(255,255,255,0.8);
}
.fs-tab.active{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--white);
}

.fs-arrows{display:flex;gap:8px}
.fs-arrow{
  width:44px;
  height:44px;
  border-radius:10px;
  border:1.5px solid rgba(255,255,255,0.12);
  background:transparent;
  color:rgba(255,255,255,0.5);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:var(--transition);
}
.fs-arrow:hover{
  border-color:var(--accent);
  color:var(--white);
  background:var(--accent);
}

/* Panels */
.fs-panel{display:none}
.fs-panel.active{display:block}

/* Track — horizontal scroll */
.fs-track{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding-bottom:8px;
}
.fs-track::-webkit-scrollbar{display:none}

/* Card */
.fs-card{
  flex:0 0 calc((100% - 60px) / 4);
  min-width:260px;
  scroll-snap-align:start;
  background:var(--bg-dark-card);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:var(--radius);
  overflow:hidden;
  transition:var(--transition);
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
}
.fs-card:hover{
  border-color:rgba(0,102,255,0.3);
  box-shadow:0 8px 32px rgba(0,0,0,0.25);
  transform:translateY(-4px);
}

.fs-card-img{
  height:220px;
  background:rgba(255,255,255,0.03);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.fs-card-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:20px;
  transition:transform var(--transition);
}
.fs-card:hover .fs-card-img img{transform:scale(1.05)}

.fs-img-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.15;
}

.fs-badge{
  position:absolute;
  top:12px;
  left:12px;
  font-family:var(--font-accent);
  font-size:10px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  padding:5px 14px;
  border-radius:50px;
  background:var(--accent);
  color:var(--white);
  z-index:2;
}
.fs-badge-hot{
  background:#E53E3E;
}

.fs-card-body{
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.fs-card-body h4{
  font-family:var(--font-accent);
  font-size:13px;
  font-weight:600;
  color:var(--white);
  line-height:1.35;
  letter-spacing:-0.01em;
}
.fs-price{
  font-family:var(--font-accent);
  font-size:16px;
  font-weight:700;
  color:var(--accent);
  margin-top:auto;
}

/* Responsive */
@media(max-width:1100px){
  .fs-card{flex:0 0 calc((100% - 40px) / 3);min-width:240px}
}
@media(max-width:768px){
  .fs-card{flex:0 0 calc((100% - 20px) / 2);min-width:220px}
  .fs-header{flex-wrap:wrap;gap:16px}
}
@media(max-width:480px){
  .fs-card{flex:0 0 85%;min-width:200px}
  .fs-tab{font-size:11px;padding:10px 18px}
  .featured-slider-section{padding:40px 0 48px}
}
