/* ==================================================================
   noor.az — Rəng seçimi komponenti
   Ayrıca fayl: əsas style.css hər hansı səbəbdən yarımçıq
   yüklənərsə də rəng seçimi düzgün görünür.
   ================================================================== */

.color-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  background: #fff;
  border: 1.5px solid #E9EDF2;
  border-radius: 14px;
  padding: 12px;
  margin: 0;
  list-style: none;
}

.color-opt {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 8px 8px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  min-width: 0;
  background: transparent;
  transition: border-color .15s ease, background .15s ease;
}
.color-opt:hover { border-color: #E9EDF2; background: #F7F9FC; }

.color-opt input[type="radio"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: 0 !important;
  background: none !important;
  cursor: pointer;
  z-index: 2;
}

.color-opt .bubble {
  pointer-events: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.color-opt .nm {
  font-size: 11.5px;
  font-weight: 700;
  color: #4A4F55;
  line-height: 1.25;
  word-break: break-word;
  max-width: 100%;
  pointer-events: none;
}

.color-opt input[type="radio"]:checked ~ .bubble {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px #E5318F, inset 0 -7px 14px rgba(0, 0, 0, .16) !important;
}
.color-opt input[type="radio"]:checked ~ .nm { color: #C21F72; }
.color-opt:has(input[type="radio"]:checked) { border-color: #E5318F; background: #FCE6F2; }
.color-opt input[type="radio"]:focus-visible ~ .bubble {
  box-shadow: 0 0 0 3px #00B1EC, inset 0 -7px 14px rgba(0, 0, 0, .16) !important;
}

.color-chosen { margin-top: 12px; font-size: 13.5px; color: rgba(30, 29, 30, .7); }
.color-chosen b { color: #C21F72; font-weight: 800; }

@media (max-width: 560px) {
  .color-opts { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); padding: 10px; }
}

/* ==================================================================
   KATALOQ / AXTARIŞ filtri — Rəng seçimi
   Əvvəl bu komponent yalnız style.css-dən asılı idi: radio düymələri
   görünür, çalar adları yox idi və eyni rəng bir neçə dəfə təkrarlanırdı.
   ================================================================== */
.filter-block h4 .count {
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8A9098;
  text-transform: none;
  letter-spacing: 0;
}

.filter-block .swatch-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
  margin: 0;
}

.filter-block .swatch-list label.swatch-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 9px 6px 7px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  min-width: 0;
  transition: border-color .15s ease, background .15s ease;
}
.filter-block .swatch-list label.swatch-item:hover { border-color: #E9EDF2; background: #F7F9FC; }
.filter-block .swatch-list label.swatch-item.on { border-color: #E5318F; background: #FCE6F2; }

/* Radio düyməsi tamamilə gizlədilir, klik sahəsi bütün kartı əhatə edir */
.filter-block .swatch-list input[type="radio"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: 0 !important;
  background: none !important;
  cursor: pointer;
  z-index: 2;
}

.filter-block .swatch-list .swatch {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18), inset 0 -8px 14px rgba(0, 0, 0, .14);
  flex: none;
  pointer-events: none;
}
.filter-block .swatch-list .swatch.on {
  box-shadow: 0 0 0 3px #E5318F, inset 0 -8px 14px rgba(0, 0, 0, .14);
}
.filter-block .swatch-list .swatch.on::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.filter-block .swatch-list .swatch-nm {
  font-size: 11px;
  font-weight: 700;
  color: #4A4F55;
  line-height: 1.2;
  word-break: break-word;
  max-width: 100%;
  pointer-events: none;
}
.filter-block .swatch-list label.swatch-item.on .swatch-nm { color: #C21F72; }

.filter-block .swatch-list input[type="radio"]:focus-visible ~ .swatch {
  box-shadow: 0 0 0 3px #00B1EC, inset 0 -8px 14px rgba(0, 0, 0, .14);
}

@media (max-width: 560px) {
  .filter-block .swatch-list { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
  .filter-block .swatch-list .swatch { width: 32px; height: 32px; }
}
