/* ================================================================
   TopBeauty Theme – Shop Widget CSS
   SCIA Studio – v1.0.0
   ================================================================ */



/* ════ BADGE TEMA – RIMOZIONE TOTALE ════
   Minimog inietta badge via JS dopo il render, quindi
   usiamo sia remove_action PHP che CSS come doppia protezione */
.tbt-slider-section *[class*="badge"]:not(.tbt-wb),
.tbt-slider-section *[class*="label"]:not(.tbt-card-category):not(.tbt-card-brand),
.tbt-slider-section *[class*="sticker"],
.tbt-slider-section *[class*="onsale"]:not(.tbt-wb),
.tbt-slider-section .woocommerce-badge,
.tbt-shop *[class*="badge"]:not(.tbt-pcard__badge):not(.tbt-wb),
.tbt-shop *[class*="label"]:not(.tbt-filter-check__label):not(.tbt-active-filter-label),
.tbt-shop *[class*="sticker"],
.tbt-shop *[class*="onsale"]:not(.tbt-pcard__badge) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}


/* ── Nascondi badge plugin WooCommerce Badges (tbt-wb) ── */
.tbt-slider-section .tbt-wb,
.tbt-shop .tbt-wb {
  display: none !important;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Jost:wght@300;400;500;600&display=swap');

.tbt-shop {
  --tbt-bg:       #ffffff;
  --tbt-bg-light: #f8f8f8;
  --tbt-black:    #000000;
  --tbt-text:     #666666;
  --tbt-muted:    #666666;
  --tbt-line:     rgb(215,194,181);
  --tbt-red:      rgb(16,118,189);
  --tbt-red-pill: rgb(16,118,189);
  --tbt-font-d:   'Butler','Georgia',serif;
  --tbt-font-b:   'Poppins',sans-serif;
  --tbt-tr:       0.25s cubic-bezier(.4,0,.2,1);

  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  background: var(--tbt-bg);
  font-family: var(--tbt-font-b);
  color: var(--tbt-text);
  min-height: 60vh;
  box-sizing: border-box;
}
/* ══════════════════════════════════════════════════════════════
   RESET ISOLAMENTO – chirurgico, senza all:unset/initial
   che azzererebbe le variabili CSS e i display dei figli
══════════════════════════════════════════════════════════════ */
.tbt-shop *,
.tbt-shop *::before,
.tbt-shop *::after {
  box-sizing: border-box !important;
}

/* Neutralizza solo le proprietà che il tema sovrascrive */
.tbt-shop a {
  text-decoration: none !important;
  color: inherit !important;
  background: none !important;
  border: none !important;
  outline: none !important;
}
.tbt-shop button {
  background: none !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  font-family: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: inherit !important;
}
.tbt-shop input,
.tbt-shop select,
.tbt-shop textarea {
  outline: none !important;
  font-family: inherit !important;
}

/* Drawers */
.tbt-drawer-overlay,
.tbt-filter-drawer,
.tbt-sort-drawer {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
.tbt-filter-drawer *,
.tbt-sort-drawer * {
  box-sizing: border-box;
}
.tbt-filter-drawer a,
.tbt-filter-drawer button,
.tbt-sort-drawer a {
  text-decoration: none !important;
  cursor: pointer !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  font-family: inherit !important;
}



/* ════════════════════════════════════
   SIDEBAR
════════════════════════════════════ */
.tbt-sidebar {
  border-right: 1px solid var(--tbt-line);
  padding: 40px 28px 60px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.tbt-sidebar::-webkit-scrollbar { width: 3px; }
.tbt-sidebar::-webkit-scrollbar-thumb { background: var(--tbt-line); border-radius: 10px; }

/* Filter group */
.tbt-filter-group {
  border-bottom: 1px solid var(--tbt-line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.tbt-filter-group:last-child { border-bottom: none; margin-bottom: 0; }

.tbt-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.tbt-filter-header.open { margin-bottom: 16px; }

.tbt-filter-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tbt-black);
}

.tbt-filter-toggle {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tbt-filter-toggle svg {
  width: 14px; height: 14px;
  stroke: var(--tbt-black); fill: none;
  stroke-width: 2; stroke-linecap: round;
  transition: transform var(--tbt-tr);
}
.tbt-filter-header.open .tbt-filter-toggle svg { transform: rotate(45deg); }

.tbt-filter-body { display: none; }
.tbt-filter-body.open { display: block; }

/* Checkboxes */
.tbt-filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  text-decoration: none;
}
.tbt-filter-check__box {
  width: 14px; height: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tbt-tr), border-color var(--tbt-tr);
}
.tbt-filter-check__box.checked {
  background: var(--tbt-black);
  border-color: var(--tbt-black);
}
.tbt-filter-check__box.checked::after {
  content: '';
  width: 6px; height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.tbt-filter-check__label {
  font-size: 0.74rem;
  font-weight: 300;
  color: var(--tbt-text);
  transition: color var(--tbt-tr);
}
.tbt-filter-check:hover .tbt-filter-check__label,
.tbt-filter-check.active .tbt-filter-check__label { color: var(--tbt-black); }
.tbt-filter-check__count {
  font-size: 0.62rem !important;
  color: var(--tbt-muted) !important;
  margin-left: auto !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  line-height: inherit !important;
  display: inline !important;
}

/* Price range */
.tbt-price-range-wrap { padding: 6px 0 4px; }
.tbt-price-inputs {
  display: flex; gap: 8px; align-items: center; margin-bottom: 14px;
}
.tbt-price-input {
  width: 50%;
  background: var(--tbt-bg-light);
  border: 1px solid var(--tbt-line);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: var(--tbt-font-b);
  font-size: 0.7rem; font-weight: 300;
  color: var(--tbt-black); outline: none;
  transition: border-color var(--tbt-tr);
}
.tbt-price-input:focus { border-color: var(--tbt-black); }
.tbt-price-sep { font-size: 0.7rem; color: var(--tbt-muted); }

.tbt-range-track {
  position: relative; height: 2px;
  background: var(--tbt-line); border-radius: 1px; margin: 8px 0 12px;
  user-select: none;
}
.tbt-range-fill {
  position: absolute; height: 100%;
  background: var(--tbt-black); border-radius: 1px;
}
.tbt-range-thumb {
  position: absolute; top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--tbt-bg);
  border: 2px solid var(--tbt-black); border-radius: 50%;
  cursor: pointer; transition: transform var(--tbt-tr);
}
.tbt-range-thumb:hover { transform: translate(-50%, -50%) scale(1.2); }

.tbt-filter-apply-btn {
  width: 100%; padding: 10px;
  background: var(--tbt-black); color: #fff;
  border: none; border-radius: 10px;
  font-family: var(--tbt-font-b);
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; margin-top: 4px;
  transition: opacity var(--tbt-tr);
}
.tbt-filter-apply-btn:hover { opacity: 0.75; }

/* Brand pills */
.tbt-filter-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tbt-filter-pill {
  padding: 5px 12px;
  border: 1px solid var(--tbt-line); border-radius: 15px;
  font-size: 0.65rem; font-weight: 400; color: var(--tbt-muted);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color var(--tbt-tr), color var(--tbt-tr), background var(--tbt-tr);
}
.tbt-filter-pill:hover, .tbt-filter-pill.active {
  border-color: var(--tbt-black); color: var(--tbt-black); background: rgba(0,0,0,0.03);
}
.tbt-filter-pill.active { font-weight: 500; }

/* ════════════════════════════════════
   MAIN
════════════════════════════════════ */
.tbt-shop-main { min-width: 0; }

/* Mobile bar */
.tbt-mobile-bar { display: none; }

/* Toolbar */
.tbt-toolbar {
  display: flex; align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--tbt-line); gap: 16px;
}
.tbt-toolbar__count { font-size: 0.72rem; font-weight: 300; color: var(--tbt-muted); flex: 1; }
.tbt-toolbar__count strong { color: var(--tbt-black); font-weight: 500; }

.tbt-sort-select {
  -webkit-appearance: none !important; appearance: none !important;
  background-color: transparent !important; border: none !important;
  font-family: var(--tbt-font-b) !important;
  font-size: 0.72rem !important; font-weight: 500 !important; color: var(--tbt-black) !important;
  cursor: pointer !important; padding-right: 18px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23111'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 0 center !important;
  outline: none !important; box-shadow: none !important;
}

.tbt-view-switcher { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.tbt-view-btn {
  width: 30px !important; height: 30px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border: none !important; background: transparent !important; cursor: pointer !important;
  border-radius: 10px !important; padding: 0 !important;
  color: inherit !important; text-decoration: none !important;
  transition: background var(--tbt-tr);
}
.tbt-view-btn:hover, .tbt-view-btn.active { background: var(--tbt-bg-light) !important; }
.tbt-view-btn svg {
  width: 14px !important; height: 14px !important; stroke: #bbb !important;
  fill: none !important; stroke-width: 1.5 !important;
  transition: stroke var(--tbt-tr);
}
.tbt-view-btn:hover svg, .tbt-view-btn.active svg { stroke: var(--tbt-black) !important; }

/* Active filters */
.tbt-active-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 32px; border-bottom: 1px solid var(--tbt-line);
}
.tbt-active-filter-label {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--tbt-muted);
}
.tbt-active-tag {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: var(--tbt-bg-light); border: 1px solid var(--tbt-line); border-radius: 15px;
  font-size: 0.64rem; font-weight: 400; color: var(--tbt-black);
  text-decoration: none; transition: border-color var(--tbt-tr);
}
.tbt-active-tag:hover { border-color: var(--tbt-black); }
.tbt-active-tag svg { width: 10px; height: 10px; stroke: var(--tbt-muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.tbt-clear-all {
  margin-left: auto; font-size: 0.62rem; font-weight: 500; color: var(--tbt-muted);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--tbt-tr);
}
.tbt-clear-all:hover { color: var(--tbt-black); }

/* ── PRODUCT GRID ── */
.tbt-product-grid {
  display: grid; gap: 0; padding: 0;
}
.tbt-product-grid--1 { grid-template-columns: 1fr; }
.tbt-product-grid--2 { grid-template-columns: repeat(2,1fr); }
.tbt-product-grid--3 { grid-template-columns: repeat(3,1fr); }
.tbt-product-grid--4 { grid-template-columns: repeat(4,1fr); }
.tbt-product-grid--5 { grid-template-columns: repeat(5,1fr); }

/* Border fix per ultima colonna */
.tbt-product-grid--2 .tbt-pcard:nth-child(2n) { border-right: none; }
.tbt-product-grid--3 .tbt-pcard:nth-child(3n) { border-right: none; }
.tbt-product-grid--4 .tbt-pcard:nth-child(4n) { border-right: none; }
.tbt-product-grid--5 .tbt-pcard:nth-child(5n) { border-right: none; }

/* Card */
.tbt-pcard {
  border-right: 1px solid var(--tbt-line);
  border-bottom: 1px solid var(--tbt-line);
}

.tbt-pcard__img-area {
  position: relative;
  overflow: hidden;
}
.tbt-pcard__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--tbt-bg-light);
  display: block; text-decoration: none;
}
.tbt-pcard__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.tbt-pcard:hover .tbt-pcard__img-wrap img { transform: scale(1.05); }

/* Badge */
.tbt-pcard__badge {
  position: absolute !important; top: 12px !important; left: 12px !important;
  font-size: 0.62rem !important; font-weight: 700 !important; letter-spacing: 0.08em !important;
  padding: 4px 9px !important; border-radius: 10px !important; z-index: 2 !important;
  line-height: 1 !important; display: inline-block !important;
  text-transform: none !important; text-decoration: none !important;
  box-shadow: none !important; margin: 0 !important;
}
.tbt-pcard__badge--sale {
  background: var(--tbt-red-pill) !important;
  color: #fff !important;
  border: none !important;
}
.tbt-pcard__badge--new {
  background: var(--tbt-black) !important;
  color: #fff !important;
  border: none !important;
}

/* ── Nascondi badge del tema sovrapposti ── */
.tbt-pcard__img-wrap .badge,
.tbt-pcard__img-wrap .product-badge,
.tbt-pcard__img-wrap .loop-product__badge,
.tbt-pcard__img-wrap .woocommerce-badge,
.tbt-pcard__img-wrap [class*="badge"]:not(.tbt-pcard__badge),
.tbt-pcard__img-wrap .onsale:not(.tbt-pcard__badge),
.tbt-pcard__img-wrap .new:not(.tbt-pcard__badge) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}


.tbt-pcard__badge::after,
.tbt-pcard__badge::before { display: none !important; content: none !important; }

/* Wishlist */
.tbt-pcard__wish {
  position: absolute !important; top: 10px !important; right: 10px !important;
  width: 30px !important; height: 30px !important;
  background: rgba(255,255,255,0.9) !important; border: none !important; border-radius: 50% !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  cursor: pointer !important;
  opacity: 0 !important; transform: scale(0.85) !important;
  transition: opacity var(--tbt-tr), transform var(--tbt-tr); z-index: 3 !important;
  padding: 0 !important;
}
.tbt-pcard:hover .tbt-pcard__wish { opacity: 1; transform: scale(1); }
.tbt-pcard__wish svg { width: 13px; height: 13px; stroke: var(--tbt-black); fill: none; stroke-width: 1.8; }
.tbt-pcard__wish:hover svg { fill: var(--tbt-red); stroke: var(--tbt-red); }

/* Quick add */
.tbt-pcard__quick {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: #111111; color: #fff;
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; text-align: center; padding: 14px 12px;
  transform: translateY(calc(100% + 12px)); transition: transform var(--tbt-tr);
  border: none; cursor: pointer; text-decoration: none;
  display: block; width: calc(100% - 24px); font-family: var(--tbt-font-body);
  z-index: 4; border-radius: 4px; box-sizing: border-box;
}
.tbt-pcard:hover .tbt-pcard__quick { transform: translateY(0); }

/* Card body */
.tbt-pcard__body { padding: 12px 16px 16px; }
.tbt-pcard__brand {
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tbt-muted); margin-bottom: 5px;
}
.tbt-pcard__name-link { text-decoration: none !important; color: inherit !important; }
.tbt-pcard__name {
  font-size: 0.80rem; font-weight: 400; color: var(--tbt-black);
  line-height: 1.4; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tbt-pcard__price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tbt-pcard__price-reg  { font-size: 0.80rem; font-weight: 500; color: var(--tbt-black); }
.tbt-pcard__price-sale { font-size: 0.80rem; font-weight: 600; color: var(--tbt-red); }
.tbt-pcard__price-old  { font-size: 0.74rem; color: var(--tbt-muted); text-decoration: line-through; }
.tbt-pcard__offerta {
  display: inline-block !important; margin-top: 8px !important;
  font-size: 0.54rem !important; font-weight: 700 !important;
  letter-spacing: 0.18em !important; text-transform: uppercase !important;
  background: var(--tbt-red-pill) !important; color: #fff !important;
  padding: 3px 10px !important; border-radius: 10px !important;
  border: none !important; box-shadow: none !important;
}

.tbt-no-products {
  grid-column: 1 / -1;
  padding: 48px 32px;
  font-size: 0.82rem; color: var(--tbt-muted); text-align: center;
}

/* ── PAGINATION ── */
.tbt-pagination {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 40px 32px; border-top: 1px solid var(--tbt-line);
}
.tbt-page-btn {
  width: 36px !important; height: 36px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border: 1px solid var(--tbt-line) !important; border-radius: 10px !important;
  background: transparent !important; font-family: var(--tbt-font-b) !important;
  font-size: 0.72rem !important; font-weight: 400 !important; color: var(--tbt-muted) !important;
  text-decoration: none !important;
  transition: border-color var(--tbt-tr), color var(--tbt-tr), background var(--tbt-tr);
}
.tbt-page-btn:hover, .tbt-page-btn.active {
  border-color: var(--tbt-black) !important; color: var(--tbt-black) !important;
  background: var(--tbt-bg-light) !important;
}
.tbt-page-btn.active { font-weight: 600 !important; }
.tbt-page-btn svg { width: 12px !important; height: 12px !important; stroke: currentColor !important; fill: none !important; stroke-width: 2 !important; }
.tbt-page-dots { font-size: 0.72rem; color: var(--tbt-muted); padding: 0 4px; }

/* ════════════════════════════════════
   DRAWERS (mobile)
════════════════════════════════════ */
.tbt-drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 9900;
  opacity: 0; transition: opacity 0.3s ease;
}
.tbt-drawer-overlay.open { display: block; opacity: 1; }

.tbt-filter-drawer {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 82vw; max-width: 320px;
  background: var(--tbt-bg); z-index: 9901;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.tbt-filter-drawer.open { transform: translateX(0); }

.tbt-sort-drawer {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--tbt-bg); z-index: 9901;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tbt-sort-drawer.open { transform: translateY(0); }

.tbt-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--tbt-line); flex-shrink: 0;
}
.tbt-drawer-header-title {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--tbt-black);
}
.tbt-drawer-close {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: var(--tbt-bg-light); border: 1px solid var(--tbt-line); border-radius: 50%;
  cursor: pointer;
}
.tbt-drawer-close svg { width: 14px; height: 14px; stroke: var(--tbt-black); fill: none; stroke-width: 2; stroke-linecap: round; }

.tbt-drawer-body { flex: 1; overflow-y: auto; padding: 8px 0; }
.tbt-drawer-body::-webkit-scrollbar { width: 3px; }
.tbt-drawer-body::-webkit-scrollbar-thumb { background: var(--tbt-line); border-radius: 10px; }

.tbt-drawer-footer {
  padding: 16px 24px; border-top: 1px solid var(--tbt-line);
  display: flex; gap: 10px; flex-shrink: 0;
}
.tbt-drawer-btn-reset {
  flex: 1; padding: 12px;
  background: transparent; border: 1px solid var(--tbt-line); border-radius: 10px;
  font-family: var(--tbt-font-b); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tbt-muted); text-decoration: none; text-align: center;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--tbt-tr), color var(--tbt-tr);
}
.tbt-drawer-btn-reset:hover { border-color: var(--tbt-black); color: var(--tbt-black); }
.tbt-drawer-btn-apply {
  flex: 2; padding: 12px;
  background: var(--tbt-black); border: none; border-radius: 10px;
  font-family: var(--tbt-font-b); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff; cursor: pointer;
  transition: opacity var(--tbt-tr);
}
.tbt-drawer-btn-apply:hover { opacity: 0.75; }

.tbt-sort-drawer-handle {
  width: 36px; height: 4px; background: var(--tbt-line); border-radius: 10px; margin: 14px auto 0;
}
.tbt-sort-drawer-header {
  padding: 16px 24px 12px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tbt-black); border-bottom: 1px solid var(--tbt-line);
}
.tbt-sort-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 24px;
  font-size: 0.82rem; font-weight: 300; color: var(--tbt-text);
  border-bottom: 1px solid var(--tbt-line);
  text-decoration: none; transition: background var(--tbt-tr);
}
.tbt-sort-option:last-child { border-bottom: none; }
.tbt-sort-option:hover { background: var(--tbt-bg-light); color: var(--tbt-black); }
.tbt-sort-option.active { font-weight: 500; color: var(--tbt-black); }
.tbt-sort-option.active::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--tbt-black); flex-shrink: 0;
}

/* Drawer filter items padding */
.tbt-filter-drawer .tbt-filter-group {
  padding: 18px 24px; margin: 0; border-bottom: 1px solid var(--tbt-line);
}
.tbt-filter-drawer .tbt-filter-group:last-child { border-bottom: none; }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1200px) {
  .tbt-shop { grid-template-columns: 200px 1fr !important; }
  .tbt-product-grid--4 { grid-template-columns: repeat(3,1fr); }
  .tbt-product-grid--4 .tbt-pcard:nth-child(4n) { border-right: 1px solid var(--tbt-line); }
  .tbt-product-grid--4 .tbt-pcard:nth-child(3n) { border-right: none; }
  .tbt-product-grid--5 { grid-template-columns: repeat(4,1fr); }
  .tbt-product-grid--5 .tbt-pcard:nth-child(5n) { border-right: 1px solid var(--tbt-line); }
  .tbt-product-grid--5 .tbt-pcard:nth-child(4n) { border-right: none; }
}

@media (max-width: 768px) {
  .tbt-shop { grid-template-columns: 1fr !important; }
  .tbt-sidebar { display: none; }

  .tbt-mobile-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-bottom: 1px solid var(--tbt-line);
    background: var(--tbt-bg); position: sticky; top: 0; z-index: 10;
  }
  .tbt-mobile-bar-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 16px; flex: 1;
    border: 1px solid var(--tbt-line); border-radius: 10px;
    background: var(--tbt-bg); font-family: var(--tbt-font-b);
    font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; color: var(--tbt-black);
    cursor: pointer; transition: border-color var(--tbt-tr), background var(--tbt-tr);
  }
  .tbt-mobile-bar-btn:hover { border-color: var(--tbt-black); background: var(--tbt-bg-light); }
  .tbt-mobile-bar-btn svg { width: 14px; height: 14px; stroke: var(--tbt-black); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .tbt-mobile-bar-count {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    background: var(--tbt-black); color: #fff; border-radius: 50%;
    font-size: 0.55rem; font-weight: 700; margin-left: 2px;
  }

  .tbt-toolbar { padding: 10px 16px; }
  .tbt-toolbar__sort { display: none; }
  .tbt-toolbar__count { font-size: 0.68rem; }

  .tbt-active-filters {
    padding: 10px 16px; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .tbt-active-filters::-webkit-scrollbar { display: none; }
  .tbt-clear-all { flex-shrink: 0; }

  .tbt-product-grid--1, .tbt-product-grid--2,
  .tbt-product-grid--3, .tbt-product-grid--4,
  .tbt-product-grid--5 { grid-template-columns: repeat(2,1fr); }

  .tbt-pcard:nth-child(n) { border-right: 1px solid var(--tbt-line); }
  .tbt-pcard:nth-child(2n) { border-right: none; }

  .tbt-pcard__body { padding: 12px 14px 16px; }
  .tbt-pcard__name { font-size: 0.76rem; }

  .tbt-pagination { padding: 28px 16px; gap: 3px; }
  .tbt-page-btn { width: 32px; height: 32px; }

  /* Quick add sempre visibile su mobile, mantiene margini e border-radius */
  .tbt-pcard__quick,
  button.tbt-pcard__quick {
    transform: translateY(0) !important;
  }
}

/* ── Categoria: gerarchia padre/figlio ── */
.tbt-filter-check--child { padding-left: 22px; }
.tbt-filter-check--depth-2 { padding-left: 44px; }
.tbt-filter-check--depth-3 { padding-left: 66px; }

.tbt-filter-check--child .tbt-filter-check__label {
  font-size: 0.70rem;
  color: #666;
}
.tbt-filter-check--child:hover .tbt-filter-check__label,
.tbt-filter-check--child.active .tbt-filter-check__label {
  color: var(--tbt-black);
}

/* ── Categoria accordion (genitori + figli espandibili) ── */
.tbt-cat-accordion { }

.tbt-cat-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.tbt-cat-acc-head .tbt-filter-check {
  flex: 1;
  padding-right: 0;
}

.tbt-cat-acc-toggle {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  transition: background var(--tbt-tr);
  padding: 0;
}
.tbt-cat-acc-toggle:hover { background: rgba(0,0,0,0.05); }
.tbt-cat-acc-toggle svg {
  width: 10px; height: 10px;
  stroke: var(--tbt-muted);
  transition: transform var(--tbt-tr);
}
.tbt-cat-accordion.open .tbt-cat-acc-toggle svg { transform: rotate(180deg); }

.tbt-cat-acc-body {
  display: none;
  padding-left: 18px;
  border-left: 2px solid var(--tbt-line);
  margin: 4px 0 4px 7px;
}
.tbt-cat-accordion.open > .tbt-cat-acc-body { display: block; }

/* Voci figlio dentro accordion */
.tbt-cat-acc-body .tbt-filter-check {
  padding: 4px 0;
}
.tbt-cat-acc-body .tbt-filter-check__label {
  font-size: 0.71rem;
  color: #555;
}
.tbt-cat-acc-body .tbt-filter-check:hover .tbt-filter-check__label,
.tbt-cat-acc-body .tbt-filter-check.active .tbt-filter-check__label {
  color: var(--tbt-black);
}
