/* ==========================================================================
   Tshop Mobile UX & Category Improvements (PrestaShop 8.2.x / Classic)
   ========================================================================== */

:root {
  --tshop-accent: #b08b5c;
  --tshop-accent-dark: #947247;
  --tshop-accent-soft: #f7f2eb;
  --tshop-border: #e8e1d7;
  --tshop-text: #232323;
  --tshop-muted: #6e6a63;
  --tshop-bg-card: #ffffff;
}

/* ==========================================================================
   1. ОПИСАНИЕ НА КАТЕГОРИЯТА НАЙ-ОТДОЛУ (ДЕСКТОП + МОБИЛЕН)
   ========================================================================== */

/* Скриваме описанието в горния блок преди JS да го премести долу (без премигване) */
html.tshop-ux-desc-bottom body#category #js-product-list-header #category-description {
  display: none !important;
}

/* Премахваме огромната фиксирана височина на .block-category в Classic темата */
html.tshop-ux-desc-bottom body#category #js-product-list-header .block-category {
  min-height: auto !important;
  padding: 14px 18px !important;
  margin-bottom: 14px !important;
  border-radius: 10px;
}

html.tshop-ux-desc-bottom body#category #js-product-list-header .block-category h1.h1 {
  margin: 0 !important;
  line-height: 1.25;
}

html.tshop-ux-desc-bottom body#category #js-product-list-header .block-category-inner:empty {
  display: none !important;
}

/* Контейнер за преместеното описание най-отдолу под продуктите и пагинацията */
.tshop-category-description-bottom {
  margin-top: 28px !important;
  margin-bottom: 16px !important;
  padding: 22px 24px !important;
  background: var(--tshop-bg-card) !important;
  border: 1px solid var(--tshop-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  color: var(--tshop-text);
  font-size: 14px;
  line-height: 1.65;
}

.tshop-category-description-bottom #category-description {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #444 !important;
}

.tshop-category-description-bottom h2,
.tshop-category-description-bottom h3 {
  color: var(--tshop-text);
  font-weight: 700;
  margin-top: 1.1em;
  margin-bottom: 0.5em;
  line-height: 1.35;
}

.tshop-category-description-bottom h2:first-child,
.tshop-category-description-bottom h3:first-child,
.tshop-category-description-bottom p:first-child {
  margin-top: 0;
}

.tshop-category-description-bottom ul,
.tshop-category-description-bottom ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .tshop-category-description-bottom {
    margin-top: 20px !important;
    padding: 16px !important;
    font-size: 13.5px;
  }
}

/* ==========================================================================
   2. ГЛОБАЛНИ ВИЗУАЛНИ ПОПРАВКИ (ЛУПА В ТЪРСАЧКАТА, СКРОЛ, ЧЕКБОКСОВЕ)
   ========================================================================== */

/* Лупата да не застъпва текста "Търсене на продукт" */
html.tshop-ux-compact-mobile #search_widget form input[type="text"],
html.tshop-ux-compact-mobile #search_widget input.ui-autocomplete-input {
  padding-left: 44px !important;
  padding-right: 48px !important;
  box-sizing: border-box !important;
}

/* Оправяне на разтегнатите чекбоксове във филтрите на ps_facetedsearch */
html.tshop-ux-compact-mobile #search_filters .custom-checkbox {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  vertical-align: middle;
}

html.tshop-ux-compact-mobile #search_filters .custom-checkbox input[type="checkbox"] + span {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}

html.tshop-ux-compact-mobile #search_filters .facet .facet-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 767px) {
  /* Премахване на хоризонталния overflow на мобилен */
  html.tshop-ux-compact-mobile,
  html.tshop-ux-compact-mobile body {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  html.tshop-ux-compact-mobile #header,
  html.tshop-ux-compact-mobile #wrapper,
  html.tshop-ux-compact-mobile #footer,
  html.tshop-ux-compact-mobile #main {
    max-width: 100% !important;
  }

  /* Менюто с категориите (.block-categories) винаги работи като сгъваем акордеон на мобилен */
  html.tshop-ux-compact-mobile #left-column .block-categories {
    display: block !important;
    padding: 0 !important;
    margin-bottom: 10px !important;
    background: #ffffff !important;
    border: 1px solid var(--tshop-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035) !important;
    overflow: hidden;
  }

  html.tshop-ux-compact-mobile #left-column .block-categories:not(.is-open) > ul.category-top-menu {
    display: none !important;
  }

  html.tshop-ux-compact-mobile #left-column .block-categories.is-open > ul.category-top-menu {
    display: block !important;
    padding: 8px 14px 14px !important;
    margin: 0 !important;
    border-top: 1px solid #f0eae1;
  }

  html.tshop-ux-compact-mobile .tshop-cat-menu-toggle {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    background: #ffffff;
    color: var(--tshop-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
  }

  html.tshop-ux-compact-mobile .tshop-cat-menu-toggle:hover,
  html.tshop-ux-compact-mobile .tshop-cat-menu-toggle[aria-expanded="true"] {
    background: #faf8f5;
  }

  html.tshop-ux-compact-mobile .tshop-cat-menu-toggle-left {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }

  html.tshop-ux-compact-mobile .tshop-cat-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tshop-accent);
  }

  html.tshop-ux-compact-mobile .tshop-cat-menu-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--tshop-text);
  }

  html.tshop-ux-compact-mobile .tshop-cat-menu-toggle-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  html.tshop-ux-compact-mobile .tshop-cat-menu-hint {
    font-size: 12px;
    font-weight: 600;
    color: var(--tshop-accent-dark);
    background: var(--tshop-accent-soft);
    padding: 3px 9px;
    border-radius: 999px;
  }

  html.tshop-ux-compact-mobile .tshop-cat-menu-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tshop-accent-dark);
    transition: transform 0.2s ease;
  }

  html.tshop-ux-compact-mobile .tshop-cat-menu-toggle[aria-expanded="true"] .tshop-cat-menu-chevron {
    transform: rotate(180deg);
  }

  html.tshop-ux-compact-mobile body#category #left-column {
    margin-bottom: 0 !important;
  }

  /* По-компактен хляб (breadcrumb) и заглавие */
  html.tshop-ux-compact-mobile #wrapper .breadcrumb {
    margin-bottom: 8px !important;
    padding: 4px 0 !important;
    font-size: 12.5px;
  }

  html.tshop-ux-compact-mobile body#category #js-product-list-header .block-category {
    padding: 12px !important;
    margin-bottom: 12px !important;
    background: #fff !important;
    border: 1px solid var(--tshop-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035) !important;
  }

  html.tshop-ux-compact-mobile body#category #js-product-list-header .block-category h1.h1 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: var(--tshop-text) !important;
    margin: 0 !important;
  }

  /* Скриваме оригиналния #subcategories щом обединеният блок се зареди */
  html.tshop-ux-compact-mobile #subcategories.tshop-subcats-replaced {
    display: none !important;
  }

  /* Обединена шапка на категорията + 2-колонни подкатегории + бутон „Виж всички“ / акордеон */
  .tshop-cat-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .tshop-cat-subcount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--tshop-accent-soft);
    color: var(--tshop-accent-dark);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .tshop-cat-subcats {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0eae1;
  }

  .tshop-subcat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .tshop-subcat-grid.is-collapsed {
    display: none;
  }

  .tshop-cat-subcats.is-accordion-mode .tshop-subcat-grid {
    margin-top: 8px;
  }

  .tshop-subcat-tile {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 42px;
    padding: 8px 10px !important;
    border-radius: 9px !important;
    background: #faf8f5 !important;
    border: 1px solid #e7dfd4 !important;
    color: var(--tshop-text) !important;
    text-decoration: none !important;
    text-transform: none !important;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
  }

  .tshop-subcat-tile:active,
  .tshop-subcat-tile:hover {
    background: var(--tshop-accent-soft) !important;
    border-color: var(--tshop-accent) !important;
    color: var(--tshop-accent-dark) !important;
  }

  .tshop-subcat-tile.is-extra-hidden {
    display: none !important;
  }

  .tshop-subcat-tile-text {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
  }

  .tshop-subcat-tile-arrow {
    font-size: 17px;
    line-height: 1;
    color: var(--tshop-accent);
    flex-shrink: 0;
    font-weight: 600;
  }

  .tshop-subcat-toggle {
    width: 100%;
    margin-top: 9px;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px solid #dcd3c6;
    background: #ffffff;
    color: var(--tshop-accent-dark);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .tshop-subcat-toggle.tshop-subcat-accordion-btn {
    margin-top: 0;
    justify-content: space-between;
    background: #faf8f5;
    color: var(--tshop-text);
    min-height: 42px;
    font-size: 14px;
  }

  .tshop-subcat-toggle:hover,
  .tshop-subcat-toggle[aria-expanded="true"] {
    background: var(--tshop-accent-soft);
    border-color: var(--tshop-accent);
  }

  .tshop-subcat-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--tshop-accent-dark);
    transition: transform 0.2s ease;
  }

  .tshop-subcat-toggle[aria-expanded="true"] .tshop-subcat-toggle-icon {
    transform: rotate(180deg);
  }

  /* По-подредена лента за сортиране + бутон Филтър */
  html.tshop-ux-compact-mobile #js-product-list-top {
    margin-bottom: 12px !important;
    padding: 6px 0 !important;
  }

  html.tshop-ux-compact-mobile #js-product-list-top .sort-by-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  html.tshop-ux-compact-mobile #search_filter_toggler {
    border-radius: 8px !important;
    background: var(--tshop-accent) !important;
    border-color: var(--tshop-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
  }
}

/* На десктоп мобилните акордеон бутони не се показват (остава оригиналният изглед) */
@media (min-width: 768px) {
  .tshop-cat-subcats,
  .tshop-cat-subcount,
  .tshop-cat-menu-toggle {
    display: none !important;
  }
}

/* ==========================================================================
   3. ПО 2 ПРОДУКТА НА РЕД НА МОБИЛЕН (<= 767px)
   ========================================================================== */

@media (max-width: 767px) {
  html.tshop-ux-two-col #js-product-list .products.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -5px !important;
    margin-right: -5px !important;
    width: auto !important;
  }

  html.tshop-ux-two-col #js-product-list .products.row > .js-product.product,
  html.tshop-ux-two-col #js-product-list .products.row > .product {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
    display: flex !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .thumbnail-container {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border: 1px solid #ece5db !important;
    border-radius: 11px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.045) !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .thumbnail-top {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    padding: 8px 8px 4px !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    flex-shrink: 0;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature a.product-thumbnail {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .product-thumbnail img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .thumbnail-container > * {
    border: 0 !important;
    box-shadow: none !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .product-description {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 6px 8px 10px !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 1 auto !important;
    text-align: center !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .product-title {
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
    min-height: 33px;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    text-overflow: ellipsis;
    text-transform: none !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .product-title a {
    color: var(--tshop-text) !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .product-price-and-shipping {
    margin-top: auto !important;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    line-height: 1.2;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .product-price-and-shipping .price {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #1c1c1c !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .product-price-and-shipping .regular-price {
    font-size: 12px !important;
    color: #8c8c8c !important;
  }

  /* Компактни етикети (НОВО / -20%) */
  html.tshop-ux-two-col #js-product-list .product-miniature ul.product-flags {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature ul.product-flags li.product-flag {
    position: static !important;
    margin: 0 !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    border-radius: 4px !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }

  html.tshop-ux-two-col #js-product-list .product-miniature .highlighted-informations {
    display: none !important;
  }
}

/* ==========================================================================
   4. БЪРЗ ФИЛТЪР "ПРОИЗВОДИТЕЛИ / МАРКИ" НАЙ-ОТГОРЕ
   ========================================================================== */

.tshop-quick-brands {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--tshop-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 0 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035);
}

/* По подразбиране на десктоп (>= 768px) е скрит, освен ако не е включен от настройките */
@media (min-width: 768px) {
  html.tshop-ux-brand-filter:not(.tshop-ux-brand-filter-desktop) .tshop-quick-brands {
    display: none !important;
  }
}

.tshop-qb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tshop-qb-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tshop-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tshop-qb-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--tshop-accent-soft);
  color: var(--tshop-accent-dark);
  font-size: 11px;
  font-weight: 700;
}

.tshop-qb-clear-all {
  background: transparent;
  border: 0;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #b83b3b;
  cursor: pointer;
}

/* Падащо меню бутон */
.tshop-qb-trigger {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 1.5px solid #d9d0c3;
  border-radius: 9px;
  background: #faf8f5;
  color: var(--tshop-text);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tshop-qb-trigger:hover,
.tshop-qb-trigger[aria-expanded="true"] {
  border-color: var(--tshop-accent);
  background: #ffffff;
}

.tshop-qb-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

.tshop-qb-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--tshop-accent-dark);
  transition: transform 0.2s ease;
}

.tshop-qb-trigger[aria-expanded="true"] .tshop-qb-chevron {
  transform: rotate(180deg);
}

/* Падащ панел с търсене + списък с всички марки */
.tshop-qb-dropdown {
  display: none;
  margin-top: 8px;
  border: 1px solid var(--tshop-border);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tshop-qb-dropdown.is-open {
  display: block;
}

.tshop-qb-search-wrap {
  position: relative;
  padding: 8px;
  background: #faf8f5;
  border-bottom: 1px solid #eee8df;
}

.tshop-qb-search-input {
  width: 100%;
  height: 38px;
  padding: 6px 34px 6px 34px;
  border: 1px solid #d8cfc2;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  color: var(--tshop-text);
  outline: none;
  box-sizing: border-box;
}

.tshop-qb-search-input:focus {
  border-color: var(--tshop-accent);
  box-shadow: 0 0 0 2px rgba(176, 139, 92, 0.18);
}

.tshop-qb-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #8c8478;
  pointer-events: none;
}

.tshop-qb-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #8c8478;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.tshop-qb-search-clear.is-visible {
  display: inline-flex;
}

.tshop-qb-list {
  max-height: 250px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.tshop-qb-list-item {
  margin: 0;
  padding: 0;
}

.tshop-qb-option {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  color: var(--tshop-text);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.tshop-qb-option:hover,
.tshop-qb-option:focus {
  background: var(--tshop-accent-soft);
  outline: none;
}

.tshop-qb-option.is-active {
  background: var(--tshop-accent-soft);
  color: var(--tshop-accent-dark);
  font-weight: 700;
}

.tshop-qb-option-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tshop-qb-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #c9bfb1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  font-size: 11px;
  color: #fff;
  background: #fff;
}

.tshop-qb-option.is-active .tshop-qb-check {
  background: var(--tshop-accent);
  border-color: var(--tshop-accent);
}

.tshop-qb-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tshop-qb-option-count {
  font-size: 12px;
  color: var(--tshop-muted);
  flex-shrink: 0;
}

.tshop-qb-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--tshop-muted);
}

/* Топ 10 марки като бързи бутони (хоризонтални чипове) */
.tshop-qb-chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
  margin-top: 9px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tshop-qb-chips::-webkit-scrollbar {
  display: none;
}

.tshop-qb-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #dfd7cb;
  background: #ffffff;
  color: var(--tshop-text);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tshop-qb-chip:hover {
  border-color: var(--tshop-accent);
  color: var(--tshop-accent-dark);
}

.tshop-qb-chip.is-active {
  background: var(--tshop-accent);
  border-color: var(--tshop-accent);
  color: #ffffff;
  font-weight: 600;
}

.tshop-qb-chip-count {
  font-size: 11px;
  opacity: 0.72;
}

.tshop-qb-loading {
  opacity: 0.55;
  pointer-events: none;
}
