/* ========================= */
/* RESET */
/* ========================= */

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
}

/* ========================= */
/* ƏSAS LAYOUT */
/* ========================= */

.layout {
  width: 100%;

  display: flex;

  align-items: flex-start;

  gap: 22px;

  padding: 30px 30px 60px;

  box-sizing: border-box;
}

/* ========================= */
/* SIDEBAR */
/* ========================= */

.sidebar {
  width: 256px;

  flex: 0 0 256px;

  height: auto;

  align-self: flex-start;

  background: #ffffff;

  border-radius: 18px;

  border: 1px solid #e3ebf6;

  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);

  overflow: visible;

  position: relative;

  box-sizing: border-box;
}

/* ========================= */
/* SIDEBAR HEADER */
/* ========================= */

.sidebar-header {
  min-height: 76px;

  padding: 14px 16px;

  display: flex;

  align-items: center;

  gap: 12px;

  color: #ffffff;

  background: linear-gradient(135deg, #2563eb, #06b6d4);

  border-radius: 17px 17px 12px 12px;

  box-sizing: border-box;
}

/* ========================= */
/* KATALOQ İKONU */
/* ========================= */

.catalog-icon {
  width: 30px;
  height: 30px;

  flex-shrink: 0;

  display: grid;

  grid-template-columns: repeat(3, 5px);

  grid-template-rows: repeat(3, 5px);

  gap: 4px;

  align-content: center;

  justify-content: center;
}

.catalog-icon span {
  width: 5px;
  height: 5px;

  background: #ffffff;

  border-radius: 50%;
}

/* ========================= */
/* HEADER TEXT */
/* ========================= */

.sidebar-header strong {
  display: block;

  color: #ffffff;

  font-size: 16px;

  font-weight: 600;

  line-height: 1.2;
}

.sidebar-header small {
  display: block;

  margin-top: 4px;

  color: rgba(255, 255, 255, 0.85);

  font-size: 10px;

  line-height: 1.2;
}

/* ========================= */
/* KATALOQ LIST */
/* ========================= */

.catalog-list {
  padding: 8px;

  height: auto;
}

/* ========================= */
/* CATEGORY */
/* ========================= */

.category {
  position: relative;

  width: 100%;
}

/* ========================= */
/* CATEGORY HEAD */
/* ========================= */

.category-head {
  min-height: 40px;

  padding: 7px 9px;

  display: flex;

  align-items: center;

  gap: 9px;

  cursor: pointer;

  border-radius: 9px;

  color: #08265c;

  transition:
    background 0.2s ease,
    color 0.2s ease;

  box-sizing: border-box;
}

.category-head:hover {
  background: #edf6ff;

  color: #2563eb;
}

/* ========================= */
/* CATEGORY ICON */
/* ========================= */

.category-icon {
  width: 20px;

  min-width: 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #2563eb;

  font-size: 15px;

  flex-shrink: 0;
}

/* ========================= */
/* CATEGORY TITLE */
/* ========================= */

.category-title {
  color: inherit;

  font-size: 13px;

  font-weight: 500;

  line-height: 1.2;
}

/* ========================= */
/* ARROW */
/* ========================= */

.arrow {
  margin-left: auto;

  color: #2563eb;

  font-size: 20px;

  line-height: 1;

  transition: 0.2s ease;
}

.category:hover .arrow {
  transform: translateX(3px);

  color: #f97316;
}

/* ========================= */
/* SUBMENU */
/* ========================= */

.submenu {
  position: absolute;

  top: 0;

  left: calc(100% + 8px);

  width: 215px;

  padding: 9px;

  background: #ffffff;

  border: 1px solid #e3ebf6;

  border-radius: 12px;

  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);

  opacity: 0;

  visibility: hidden;

  transform: translateX(-5px);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;

  z-index: 999;
}

/* ========================= */
/* SUBMENU LINKS */
/* ========================= */

.submenu a {
  display: block;

  padding: 9px 11px;

  text-decoration: none;

  color: #08265c;

  font-size: 12px;

  border-radius: 8px;

  transition: 0.2s ease;
}

.submenu a:hover {
  background: #edf6ff;

  color: #2563eb;
}

/* ========================= */
/* SUBMENU HOVER */
/* ========================= */

.hover-item:hover .submenu {
  opacity: 1;

  visibility: visible;

  transform: translateX(0);
}

/* ========================= */
/* FILTERS CONTAINER */
/* ========================= */

.filters-container {
  padding-bottom: 10px;
}

/* ========================= */
/* FILTER SECTION */
/* ========================= */

.filter-section {
  margin: 4px 15px 0;

  padding: 14px 0;

  border-top: 1px solid #e8eef6;

  box-sizing: border-box;
}

/* ========================= */
/* FILTER TITLE */
/* ========================= */

.filter-title {
  display: flex;

  align-items: center;

  gap: 7px;

  color: #08265c;
}

.filter-title-icon {
  color: #2563eb;

  font-size: 8px;
}

.filter-title strong {
  font-size: 13px;

  font-weight: 600;
}

.clear-brand {
  margin-left: auto;

  padding: 0;

  border: none;

  background: transparent;

  color: #2563eb;

  font-size: 10px;

  cursor: pointer;
}

.clear-brand:hover {
  color: #f97316;
}

/* ========================= */
/* PRICE SLIDER */
/* ========================= */

.price-slider {
  position: relative;

  height: 30px;

  margin: 12px 2px 3px;
}

/* Base line */

.price-slider::before {
  content: "";

  position: absolute;

  top: 13px;

  left: 0;
  right: 0;

  height: 4px;

  background: #dce8f7;

  border-radius: 10px;
}

/* ========================= */
/* RANGE INPUT */
/* ========================= */

.price-range {
  position: absolute;

  left: 0;

  top: 4px;

  width: 100%;

  height: 20px;

  margin: 0;

  background: transparent;

  appearance: none;

  -webkit-appearance: none;

  pointer-events: none;

  z-index: 3;
}

/* Chrome / Edge / Safari */

.price-range::-webkit-slider-runnable-track {
  height: 4px;

  background: transparent;

  border: none;
}

.price-range::-webkit-slider-thumb {
  appearance: none;

  -webkit-appearance: none;

  width: 15px;

  height: 15px;

  margin-top: -5px;

  background: #ffffff;

  border: 3px solid #2563eb;

  border-radius: 50%;

  cursor: pointer;

  pointer-events: auto;

  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

/* Firefox */

.price-range::-moz-range-track {
  height: 4px;

  background: transparent;

  border: none;
}

.price-range::-moz-range-thumb {
  width: 15px;

  height: 15px;

  background: #ffffff;

  border: 3px solid #2563eb;

  border-radius: 50%;

  cursor: pointer;

  pointer-events: auto;
}

/* ========================= */
/* PRICE VALUES */
/* ========================= */

.price-values {
  display: flex;

  justify-content: space-between;

  gap: 8px;

  margin-top: 5px;
}

.price-value-box {
  width: 50%;

  padding: 6px 8px;

  background: #f8fbff;

  border: 1px solid #e1eaf5;

  border-radius: 7px;

  box-sizing: border-box;
}

.price-value-box small {
  display: block;

  margin-bottom: 2px;

  color: #94a3b8;

  font-size: 8px;
}

.price-value-box span {
  color: #08265c;

  font-size: 10px;

  font-weight: 500;
}

/* ========================= */
/* BRAND */
/* ========================= */

.brand-section {
  padding-bottom: 10px;
}

.brand-item {
  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 9px;

  color: #334155;

  font-size: 11px;

  cursor: pointer;
}

.brand-item input {
  width: 14px;

  height: 14px;

  margin: 0;

  accent-color: #2563eb;

  cursor: pointer;
}

.brand-item:hover {
  color: #2563eb;
}

/* ========================= */
/* ENDİRİM FILTERİ */
/* ========================= */

.discount-filter {
  margin-top: 14px;

  padding: 10px;

  display: flex;

  align-items: center;

  gap: 8px;

  background: #fff6ed;

  border: 1px solid #ffead8;

  border-radius: 10px;

  box-sizing: border-box;
}

/* ========================= */
/* DISCOUNT ICON */
/* ========================= */

.discount-icon {
  width: 27px;

  height: 27px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  background: #f97316;

  color: #ffffff;

  border-radius: 7px;

  font-size: 12px;

  font-weight: 700;
}

/* ========================= */
/* DISCOUNT TEXT */
/* ========================= */

.discount-text {
  flex: 1;

  min-width: 0;
}

.discount-text strong {
  display: block;

  color: #c2410c;

  font-size: 10px;

  font-weight: 600;

  line-height: 1.2;
}

.discount-text small {
  display: block;

  margin-top: 3px;

  color: #78716c;

  font-size: 8px;

  line-height: 1.2;
}

/* ========================= */
/* SWITCH */
/* ========================= */

.switch {
  position: relative;

  width: 32px;

  height: 18px;

  flex-shrink: 0;
}

.switch input {
  opacity: 0;

  width: 0;

  height: 0;
}

.slider {
  position: absolute;

  inset: 0;

  background: #cbd5e1;

  border-radius: 20px;

  cursor: pointer;

  transition: 0.25s;
}

.slider::before {
  content: "";

  position: absolute;

  width: 12px;

  height: 12px;

  left: 3px;

  top: 3px;

  background: #ffffff;

  border-radius: 50%;

  transition: 0.25s;
}

.switch input:checked + .slider {
  background: #f97316;
}

.switch input:checked + .slider::before {
  transform: translateX(14px);
}

/* ========================= */
/* MƏHSUL CONTENT */
/* ========================= */

.content {
  flex: 1;

  min-width: 0;

  width: auto;
}

/* ========================= */
/* MÖVCUD MƏHSUL GRID */
/* ========================= */

/*
   Kartların öz görünüşünə toxunmuruq.
   Sadəcə content daxilində normal yerləşməsini təmin edirik.
*/

.content .allCard {
  width: 100%;

  padding: 0;

  margin: 0;

  gap: 25px;
}

/* ========================= */
/* RESPONSIVE 1200px */
/* ========================= */

@media (max-width: 1200px) {
  .layout {
    padding: 28px 22px 50px;

    gap: 18px;
  }

  .sidebar {
    width: 245px;

    flex-basis: 245px;
  }
}

/* ========================= */
/* RESPONSIVE 950px */
/* ========================= */

@media (max-width: 950px) {
  .layout {
    flex-direction: column;

    padding: 25px 20px 45px;
  }

  .sidebar {
    width: 100%;

    flex-basis: auto;
  }

  .content {
    width: 100%;
  }

  .submenu {
    position: static;

    width: 100%;

    margin-top: 3px;

    box-shadow: none;

    border: 1px solid #e3ebf6;

    opacity: 1;

    visibility: visible;

    transform: none;

    display: none;
  }

  .hover-item:hover .submenu {
    display: block;
  }
}

/* ========================= */
/* RESPONSIVE 600px */
/* ========================= */

@media (max-width: 600px) {
  .layout {
    padding: 20px 15px 40px;

    gap: 15px;
  }

  .sidebar {
    border-radius: 15px;
  }

  .sidebar-header {
    border-radius: 14px 14px 10px 10px;
  }

  .category-head {
    min-height: 42px;
  }

  .content .allCard {
    gap: 15px;
  }
}

/* ========================= */
/* EXTRA FIX */
/* ========================= */

/*
   Əvvəlki CSS-dən gələn hündürlük
   problemlərinin qarşısını alır.
*/

.sidebar,
.catalog-list,
.filters-container {
  height: auto;

  min-height: 0;
}

.sidebar {
  min-height: unset;
}

/* ===================================================== */
/* SOLVIT — AXTARIŞ VƏ KATEQORİYAYA BAĞLI BREND BÖLMƏSİ */
/* ===================================================== */
.category-brand-panel {
  display: none;
  padding: 10px 10px 11px 38px;
  margin: 0 5px 7px;
  background: #f7faff;
  border-left: 2px solid #2563eb;
  border-radius: 0 0 9px 9px;
}
.category.category-open > .category-brand-panel {
  display: block;
}
.category.category-open > .category-head {
  color: #2563eb;
  background: #edf6ff;
}
.category.category-open > .category-head .arrow {
  transform: rotate(90deg);
}
.category-brand-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: #08265c;
  font-size: 11px;
  font-weight: 700;
}
.clear-category-brands {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 10px;
  cursor: pointer;
}
.clear-category-brands:hover {
  color: #f97316;
}
.category-brand-panel .brand-item {
  margin-top: 8px;
  font-size: 11px;
}
.category-brand-panel .brand-item:first-of-type {
  margin-top: 0;
}
.category-brand-panel[aria-hidden="true"] {
  display: none;
}
.products-search-bar {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0 17px;
  background: #fff;
  border: 1px solid #e1eaf5;
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(15, 23, 42, 0.045);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.products-search-bar:focus-within {
  border-color: #7db5ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}
.products-search-icon {
  color: #2563eb;
  font-size: 27px;
  line-height: 1;
}
.products-search-bar input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #08265c;
  font: inherit;
  font-size: 14px;
}
.products-search-bar input::placeholder {
  color: #94a3b8;
}
.search-hint {
  flex-shrink: 0;
  padding: 5px 9px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 10px;
}
.products-search-empty {
  margin: -10px 0 18px;
  color: #64748b;
  font-size: 13px;
}
.products-search-empty[hidden] {
  display: none;
}
@media (max-width: 950px) {
  .category-brand-panel {
    padding-left: 15px;
    margin-left: 8px;
  }
  .products-search-bar {
    margin-bottom: 18px;
  }
}
@media (max-width: 600px) {
  .products-search-bar {
    min-height: 48px;
    padding: 0 12px;
  }
  .products-search-bar input {
    height: 46px;
    font-size: 13px;
  }
  .search-hint {
    display: none;
  }
}
/* SEÇİLMİŞ MƏHSUL ÜRƏYİ */
.wishlist-toggle {
  color: #08265c;
  transition: color 0.2s ease;
  cursor: pointer;
}

.wishlist-toggle.active {
  color: #f97316 !important;
}
/* SEÇİLMİŞ MƏHSUL ÜRƏYİ */
.wishlist-toggle {
  color: #08265c;
  transition: color 0.2s ease;
  cursor: pointer;
}

.wishlist-toggle.active {
  color: #f97316 !important;
}
