/* Заглавие на страницата */
.page-products .page-header {
  margin-bottom: 12px;
}

.page-products .page-title {
  font-size: 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #123456;
}

/* SIDEBAR */
.sidebar {
  border: 2px solid var(--color-border);
  border-radius: 14px;
  padding: 18px 18px 22px;
  background-color: var(--color-bg-soft);
  align-self: start;
  scrollbar-width: thin;
  scrollbar-color: #bcd0e7 #f3f6fa;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
  background: #f3f6fa;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #bcd0e7;
  border-radius: 6px;
}

.sidebar-block + .sidebar-block {
  margin-top: 24px;
}

.sidebar-title {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #16324F;
}

.sidebar-toggle {
  font-size: 14px;
  transform: rotate(180deg);
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  padding: 0 4px;
  margin-left: 4px;
  cursor: pointer;
  vertical-align: middle;
  outline: none;
  display: inline-block;
  align-items: center;
  transition: background 0.12s;
}
.sidebar-toggle-btn:hover .sidebar-toggle-icon {
  color: #0B76CF;
}
.sidebar-toggle-icon {
  display: inline-block;
  font-size: 13px;
  color: #64748B;
  transition: transform 0.18s cubic-bezier(.4,2,.6,1), color 0.12s;
  margin-left: 2px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}

.sidebar-link {
  border: none;
  background: none;
  padding: 4px 0;
  text-align: left;
  color: #16324F;
  cursor: pointer;
  font-size: 15px;
}

.sidebar-link--all {
  font-weight: 500;
}

.sidebar-link--parent {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-link--active {
  color: var(--color-primary);
  font-weight: 700;
}

.sidebar-arrow {
  font-size: 12px;
  color: var(--color-muted);
}

.sidebar-sublist {
  list-style: none;
  padding-left: 16px;
  margin: 4px 0 0;
  color: #4B5563;
  font-size: 14px;
}

.sidebar-sublist li {
  margin: 2px 0;
}

/* Производители */
.sidebar-manufacturers {
  font-size: 15px;
}

.sidebar-sublink {
  background: none;
  border: none;
  padding: 2px 0;
  font-size: 14px;
  color: #4B5563;
  cursor: pointer;
  text-align: left;
}

.sidebar-sublink--active {
  color: var(--color-primary);
  font-weight: 600;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--color-border);
  background-color: #fff;
  position: relative;
}

.checkbox-row input[type="checkbox"]:checked + .checkbox-custom {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

.checkbox-row input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background-color: #fff;
}

.sidebar-scroll {
  max-height: 180px;
  overflow-y: auto;
  margin-top: 4px;
  padding-right: 4px;
}

/* CONTENT HEADER: breadcrumb + search + count */
.products-content {
  min-width: 0;
}

.products-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--color-muted);
}

/* Search bar */
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background-color: #EEF5FF;
  font-size: 15px;
}

.search-input::placeholder {
  color: #9CA3AF;
}

.search-button {
  position: absolute;
  right: 10px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.search-button img {
  width: 20px;
  height: 20px;
}

.product-count {
  font-size: 14px;
  white-space: nowrap;
  color: #4B5563;
}

/* GRID С ПРОДУКТИ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; /* махаме gap, защото ще работим с линии */
}

/* Карта продукт */
.product-card {
  padding: 24px 18px 20px;
  text-align: center;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  border: none;
  box-shadow: none;
  border-right: 1px solid var(--color-border);
  margin-bottom: 40px;
}



.product-image {
  height: 150px;
  object-fit: contain;
  margin-bottom: 4px;
}

.product-code {
  font-size: 13px;
  font-weight: 500;
  color: #64748B; /* леко сиво */
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #16324F;
  text-transform: uppercase;
  line-height: 1.2;
}

.product-unit {
  margin-top: 6px;
  padding: 2px 20px;
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.product-price {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
}

.product-btn {
  margin-top: 8px;
  align-self: stretch;
}


/* ACCORDION BASE */
.accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.accordion.open .accordion-content {
  max-height: 500px; /* достатъчно за списък */
}

/* Икони анимация */
.accordion-btn .sidebar-toggle,
.accordion-btn .sidebar-arrow {
  transition: transform 0.28s ease;
}

.accordion.open .sidebar-toggle,
.accordion.open .sidebar-arrow {
  transform: rotate(180deg);
}

/* ================== DYNAMIC CATEGORIES (categories.json) ================== */

.filters-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

/* Общ стил за всички „хапчета“ */
.filter-pill {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #F9FAFB;
  padding: 6px 12px;
  font-size: 15px;
  text-align: left;
  color: #0F172A;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.08s ease,
    box-shadow 0.15s ease;
}

.filter-pill--full {
  font-weight: 600;
}

/* hover за всички */
.filter-pill:hover {
  background-color: #EFF6FF;
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-1px);
}

/* активна категория / подкатегория / под-подкатегория */
.filter-pill--active {
  background: linear-gradient(135deg, #0B76CF, #0F9BD8);
  color: #272727;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(15, 118, 207, 0.45);
}

/* ===== Ниво 1 – Категории ===== */

.filters-categories-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bcd0e7 #f3f6fa;
}
.filters-categories-list::-webkit-scrollbar {
  width: 8px;
  background: #f3f6fa;
}
.filters-categories-list::-webkit-scrollbar-thumb {
  background: #bcd0e7;
  border-radius: 6px;
}

.filters-category-group {
  position: relative;
  padding-left: 10px;
  display: block;
  margin-bottom: 6px;
}

/* вертикална „рейка“ зад подкатегориите */
.filters-category-group::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.35),
    rgba(148, 163, 184, 0.05)
  );
}

/* самата категория – най-силно визуално */
.filters-category-pill {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  background: #F9FAFB;
  border-left: 6px solid #0B76CF;
  border-radius: 0 999px 999px 0;
  box-shadow: 0 1px 4px rgba(15, 118, 207, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.filters-category-pill .sidebar-toggle-btn {
  margin-left: 8px;
  display: flex;
  align-items: center;
  height: 100%;
}

.filters-category-pill .sidebar-toggle-icon {
  margin-left: 0;
  margin-right: 0;
  font-size: 15px;
  vertical-align: middle;
}

/* когато е активна категорията, оставяме градиента + по-силен ляв бордър */
.filters-category-pill.filter-pill--active {
  border-left-color: #ffffff;
}

/* ===== Ниво 2 – Подкатегории ===== */

.filters-subcategory-list {
  margin-top: 2px;
  padding-left: 18px;   /* леко навътре от категорията */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filters-subcategory-group {
  display: block;
  margin-bottom: 6px;
}

/* ред за подкатегорията */
.filters-subcategory-pill {
  font-size: 14px;
  padding: 4px 10px;
  background: #F1F5F9;
  color: #0F172A;
  border-left: 4px solid #38BDF8;
  border-radius: 0 999px 999px 0;
  margin-bottom: 2px;
}

.filters-subcategory-pill:hover {
  background-color: #E2E8F0;
}

/* активна подкатегория – малко по-силно синьо */
.filters-subcategory-pill.filter-pill--active {
  background: #E0F2FE;
  color: #0B76CF;
  border-left: 6px solid #0B76CF;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

/* ===== Ниво 3 – Под-подкатегории ===== */

.filters-subsubcategory-list {
  margin-left: 18px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filters-subsubcategory-pill {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: rgba(248, 250, 252, 0.96);
  color: #64748B;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    transform 0.1s ease;
}

.filters-subsubcategory-pill:hover {
  background-color: rgba(226, 232, 240, 0.9);
  transform: translateX(1px);
}

.filters-subsubcategory-pill.filter-pill--active {
  background: rgba(59, 130, 246, 0.14);
  border-color: #0B76CF;
  color: #0B76CF;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}

/* ред за категорията и подкатегорията */
.filters-category-row,
.filters-subcategory-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.filters-category-row {
  margin-bottom: 2px;
}

.filters-subcategory-row {
  margin-bottom: 2px;
}

/* 1) ГОРНО НИВО – Категории / Производители */
.accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion.open .accordion-content {
  max-height: 600px; /* достатъчно за съдържанието */
}

.accordion-btn .sidebar-toggle {
  transition: transform 0.25s ease;
}

.accordion.open .sidebar-toggle {
  transform: rotate(180deg);
}

/* 2) ПОДКАТЕГОРИИ – Хранителни продукти, Напитки, Нехранителни */
.subcat-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.subcat-content.open {
  max-height: 200px; /* или повече, ако имаш много редове */
}

.subcat-btn .sidebar-arrow {
  transition: transform 0.25s ease;
}

.subcat-btn.open .sidebar-arrow {
  transform: rotate(180deg);
}

/* Basic responsive за по-малки екрани */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;

  }

  .sidebar {
    order: 2;
  }

  .products-toolbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}


/* По default (desktop) – почти не се вижда/не ни трябва */
.filters-toggle {
  display: none;
}

/* Мобилен layout */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .products-toolbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .product-count {
    justify-self: flex-end;
  }
}

@media (max-width: 768px) {
  /* Floating бутон "Филтри" */
  .filters-toggle {
    display: inline-flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 65;

    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0B76CF, #0F9BD8);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    box-shadow: 0 12px 30px rgba(15, 118, 207, 0.35);
    cursor: pointer;
  }

  .filters-toggle::before {
    content: "☰";
    font-size: 16px;
  }

  /* да не се закриват продуктите от бутона */
  body {
    padding-bottom: 80px;
  }
}

/* Мобилен layout */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }



  /* Sidebar-а става панел, който се отваря */
  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;

    z-index: 80;
    background: rgba(245, 250, 255, 0.96);
    backdrop-filter: blur(12px);

    border-radius: 18px 18px 0 0;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-bottom: none;

    padding: 16px 18px 24px;
    overflow-y: auto;
    max-height: 75vh;

    transform: translateY(100%);
    transition: transform 0.25s ease;
  }

  .sidebar.is-open {
    transform: translateY(0);
  }

  /* малка "дръжка" отгоре като при bottom sheet */
  .sidebar::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background-color: #CBD5E1;
  }

  .sidebar-block:first-child {
    margin-top: 12px;
  }

  /* toolbar-ът отива над продуктите */
  .products-toolbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .product-count {
    justify-self: flex-end;
  }
}

/* на много малки екрани – 2 или 1 колона */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}


/* BACKDROP ЗА ПРОДУКТА */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 90;
}
.product-modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* МОДАЛ */
.product-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-modal__dialog {
  background: #ffffff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
  padding: 24px 28px;
  position: relative;

  display: flex;
  gap: 28px;
}

/* X бутон */
.product-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #64748B;
}

.product-modal__content {
  display: flex;
  gap: 28px;
}

.product-modal__image-wrap {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-modal__image-wrap img {
  max-width: 230px;
  height: auto;
}

.product-modal__info {
  flex: 1;
}

.product-modal__title {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0F172A;
}

.product-modal__code {
  font-size: 14px;
  font-weight: 500;
  color: #64748B; /* сиво */
  margin: 4px 0 12px;
  letter-spacing: 0.03em;
}

.product-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  color: #64748B;
  margin-bottom: 12px;
}

.product-modal__meta-item {
  position: relative;
}

.product-modal__meta-item + .product-modal__meta-item::before {
  margin-right: 6px;
  color: #94A3B8;
}

.product-modal__price {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 16px;
}

.product-modal__price-bgn,
.product-modal__price-eur {
  font-size: 28px;
  font-weight: 700;
  color: #0F172A;
}

.product-modal__price-eur {
  margin-left: 8px; /* малко разстояние между лв. и € */
}

.product-modal__description {
  font-size: 18px;
  line-height: 1.5;
  color: #475569;
}

/* забрана за scroll на body при отворен модал */
body.no-scroll {
  overflow: hidden;
}

/* МОБИЛНА ВЕРСИЯ НА МОДАЛА */
@media (max-width: 768px) {
  .product-modal__dialog {
    padding: 18px 16px;
  }

  .product-modal__content {
    flex-direction: column;
    align-items: center;
  }

  .product-modal__image-wrap {
    flex: none;
  }

  .product-modal__title {
    text-align: center;
  }

  .product-modal__meta {
    justify-content: center;
  }

  .product-modal__price {
    justify-content: center;
  }

  .product-modal__description {
    text-align: left;
  }
}

/* -------- DESKTOP SIDEBAR UPGRADE -------- */
@media (min-width: 1025px) {
  .sidebar {
    background: radial-gradient(circle at top left, #E5F3FF 0, #F7FAFF 52%, #FFFFFF 100%);
    border-radius: 18px;
    border: 2px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(148, 163, 184, 0.3);
    padding: 18px 16px 20px;
    position: sticky;
    top: 40px; /* настрой си според височината на header-а */
  }

  .sidebar-block + .sidebar-block {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    margin-top: 14px;
    padding-top: 14px;
  }

  .sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0F172A;
    padding-bottom: 4px;
  }

  .sidebar-toggle {
    font-size: 12px;
    opacity: 0.7;
  }
}

@media (min-width: 1025px) {
  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 16px;
    color: #0F172A;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    background-color: transparent;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
  }

  .sidebar-link--all {
    font-weight: 600;
  }

  .sidebar-link--parent .sidebar-arrow {
    font-size: 16px;
    opacity: 0.7;
    margin-left: 6px;
  }

  .sidebar-link:hover {
    background-color: rgba(191, 219, 254, 0.5);
    border-color: rgba(59, 130, 246, 0.4);
  }

  /* Активна категория */
  .sidebar-link--active {
    background: linear-gradient(135deg, #0B76CF, #0F9BD8);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(15, 118, 207, 0.45);
  }

  .sidebar-link--active .sidebar-arrow {
    opacity: 1;
  }

  /* Подкатегории (Напитки → Води, Енергийни...) */
  .sidebar-sublist {
    padding-left: 14px;
    margin: 2px 0 6px;
  }

  .sidebar-sublist li {
    list-style: none;
  }

  .sidebar-sublink {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    margin: 2px 0;
    font-size: 16px;
    color: #475569;
    border-radius: 999px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, transform 0.1s ease;
  }

  .sidebar-sublink::before {
    content: "•";
    margin-right: 4px;
    font-size: 10px;
    color: #94A3B8;
  }

  .sidebar-sublink:hover {
    background-color: rgba(226, 232, 240, 0.9);
    color: #0F172A;
    transform: translateX(1px);
  }

  .sidebar-sublink--active {
    background-color: rgba(59, 130, 246, 0.15);
    color: #0B76CF;
    font-weight: 600;
  }

  .sidebar-sublink--active::before {
    color: #0B76CF;
  }
}


@media (min-width: 1025px) {
  .sidebar-manufacturers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 2px;
    padding-top: 2px;
  }

  /* ред всеки производител */
  .checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background-color: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.1s ease;
  }

  .checkbox-row:hover {
    background-color: #EFF6FF;
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.35);
  }

  /* скриваме native checkbox-а */
  .checkbox-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .checkbox-custom {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid rgba(148, 163, 184, 0.9);
    background-color: #ffffff;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
    transition: background-color 0.16s ease, border-color 0.16s ease;
  }

  /* „тикче“ при чекнат производител */
  .checkbox-row input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #0B76CF;
    border-color: #0B76CF;
  }

  .checkbox-row input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "";
    position: absolute;
    inset: 2px 3px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
  }

  /* текст на производителя */
  .checkbox-row span:last-child {
    white-space: nowrap;
    color: #0F172A;
  }

  /* активен производител – по-силен фон */
  .checkbox-row input[type="checkbox"]:checked ~ span:last-child {
    color: #0B76CF;
    font-weight: 600;
  }
}


.products-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination-btn {
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background-color: #ffffff;
  font-size: 14px;
  color: #0F172A;
  cursor: pointer;

}

.pagination-btn:hover {
  background-color: #EFF6FF;
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.35);
  transform: translateY(-1px);
}

.pagination-btn--active {
  background: linear-gradient(135deg, #0B76CF, #0F9BD8);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(15, 118, 207, 0.45);
}

.pagination-btn--disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.product-price--hidden {
  color: #6B7280;
  font-style: italic;
}

/* По подразбиране (guest) */
.js-price { display: none; }
.js-price-locked { display: block; }

/* Ако е логнат/approved */
.prices-visible .js-price { display: block; }
.prices-visible .js-price-locked { display: none; }