/* Redesigned category page (includes/partials/listing-tb.php). Brand colour = --primary (the store's footer colour). */
.container.container--tbl { max-width: none !important; width: 100%; padding: 16px 20px 8px !important; margin-left: 0; margin-right: 0; }
.tbl, .tbl * { box-sizing: border-box; }
.tbl { --p: var(--primary, #4d026b); --line: color-mix(in srgb, var(--p) 16%, #e6e3ee); --tint: color-mix(in srgb, var(--p) 7%, #fff); font-family: "Inter", "Poppins", -apple-system, "Segoe UI", sans-serif; color: #1f1b2e; }
.tbl h1, .tbl legend, .tbl summary, .tbl-grid .product-block__title { font-family: "Inter", "Poppins", -apple-system, "Segoe UI", sans-serif !important; text-transform: none; }
.tbl h1 { letter-spacing: -.02em; }

/* ── banner ─────────────────────────────────────────────── */
.tbl-banner { position: relative; display: flex; align-items: stretch; justify-content: space-between; min-height: 176px; overflow: hidden; border-radius: 14px; border: 1.5px solid var(--line);
  background: linear-gradient(100deg, color-mix(in srgb, var(--p) 6%, #fff) 0%, color-mix(in srgb, var(--p) 12%, #fff) 55%, color-mix(in srgb, var(--p) 22%, #fff) 100%); }
.tbl-banner__text { position: relative; z-index: 2; flex: 0 1 58%; padding: 20px 28px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.tbl-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11.5px; color: #6b6880; }
.tbl-crumbs a { color: #6b6880; text-decoration: none; } .tbl-crumbs a:hover { text-decoration: underline; }
.tbl-banner h1 { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #1f1b2e; }
.tbl-banner__desc { margin: 0; font-size: 13px; color: #4b4763; max-width: 560px; line-height: 1.45; }
.tbl-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.tbl-chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; color: #1f1b2e; line-height: 1.15; max-width: 150px; }
.tbl-chip__ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); color: var(--p); display: inline-flex; align-items: center; justify-content: center; }
.tbl-banner__art { position: absolute; inset: 0 0 0 auto; width: 52%; z-index: 1; }
.tbl-banner__art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }

/* ── layout ─────────────────────────────────────────────── */
.tbl-body { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 18px; margin-top: 16px; align-items: start; }
.tbl-filters__box { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px 14px; }
.tbl-filters__box > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 12px 0 8px; font-size: 14px; font-weight: 800; }
.tbl-filters__box > summary::-webkit-details-marker { display: none; }
.tbl-clear { font-size: 12px; font-weight: 700; color: var(--p); text-decoration: none; }
.tbl-clear:hover { text-decoration: underline; }
.tbl-fs { border: 0; border-top: 1px solid #eeeaf5; margin: 0; padding: 12px 0 10px; min-width: 0; }
.tbl-fs legend { float: left; width: 100%; padding: 0 0 8px; font-size: 12.5px; font-weight: 800; color: #1f1b2e; }
.tbl-fs > :not(legend) { clear: both; }

/* price */
.tbl-range__labels { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 8px; }
.tbl-range__track { position: relative; height: 18px; }
.tbl-range__track::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 2px; background: #e6e1f0; }
.tbl-range__fill { position: absolute; top: 7px; height: 4px; border-radius: 2px; background: var(--p); }
.tbl-range input[type=range] { position: absolute; left: 0; width: 100%; top: 0; height: 18px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.tbl-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--p); cursor: pointer; }
.tbl-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--p); cursor: pointer; }
.tbl-range input[type=range]::-webkit-slider-runnable-track { background: none; } .tbl-range input[type=range]::-moz-range-track { background: none; }
.tbl-pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tbl-pchips a { font-size: 10.5px; font-weight: 600; color: #3b3752; text-decoration: none; padding: 5px 9px; border: 1px solid #ddd8ea; border-radius: 999px; background: #fff; }
.tbl-pchips a.is-on, .tbl-pchips a:hover { border-color: var(--p); color: var(--p); background: var(--tint); }

/* pills / swatches / rows */
.tbl-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tbl-pills input, .tbl-swatches input, .tbl-row input { position: absolute; opacity: 0; pointer-events: none; }
.tbl-pills label { position: relative; }
.tbl-pills span { display: inline-flex; min-width: 34px; height: 26px; padding: 0 9px; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; border: 1px solid #ddd8ea; border-radius: 999px; background: #fff; cursor: pointer; }
.tbl-pills input:checked + span { background: var(--p); border-color: var(--p); color: #fff; }
.tbl-pills input:focus-visible + span, .tbl-swatches input:focus-visible + span { outline: 2px solid var(--p); outline-offset: 2px; }
.tbl-swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.tbl-swatches label { position: relative; display: inline-flex; }
.tbl-swatches span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #555; background: #f3f1f7; }
.tbl-swatches input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--p); }
.tbl-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 11.5px; cursor: pointer; }
.tbl-row::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid #bdb6d2; border-radius: 3px; background: #fff; }
.tbl-row:has(input:checked)::before { background: var(--p) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--p); }
.tbl-row__t { flex: 1; } .tbl-row em { font-style: normal; color: #7b7790; font-size: 11px; }
.tbl-stars { color: #f59e0b; letter-spacing: 1px; }
.tbl-apply { display: block; width: 100%; height: 40px; margin-top: 12px; border: 0; border-radius: 8px; background: var(--p); color: #fff !important; font: 700 13px "Inter", sans-serif; text-align: center; line-height: 40px; text-decoration: none; cursor: pointer; text-transform: none; letter-spacing: 0; }
.tbl-apply:hover { filter: brightness(1.15); }

/* ── top bar ───────────────────────────────────────────── */
.tbl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 14px; }
.tbl-bar__l { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tbl-count { font-size: 12px; font-weight: 700; margin-right: 6px; }
.tbl-fchip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--p); background: var(--tint); border: 1px solid color-mix(in srgb, var(--p) 25%, #fff); border-radius: 999px; padding: 4px 10px; text-decoration: none; }
.tbl-fchip b { font-size: 13px; line-height: 1; }
.tbl-bar__r { display: flex; align-items: center; gap: 10px; }
.tbl-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #4b4763; }
.tbl-sort select { height: 30px; border: 1px solid #ddd8ea; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 600; padding: 0 8px; color: #1f1b2e; }
.tbl-view { display: inline-flex; border: 1px solid #ddd8ea; border-radius: 6px; overflow: hidden; }
.tbl-view button { width: 32px; height: 30px; border: 0; background: #fff; color: #6b6880; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.tbl-view button.is-on { background: var(--p); color: #fff; }

/* ── product grid (5 per row) ──────────────────────────── */
.tbl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tbl-grid > product-block { width: auto !important; max-width: none !important; min-width: 0; margin: 0 !important; padding: 0 !important; flex: none !important; }
.tbl-grid .block-inner { border: 1px solid #ece8f3; border-radius: 10px; overflow: hidden; background: #fff; height: 100%; }
.tbl-grid .product-block__eyebrow, .tbl-grid .plp-buy-now-btn, .tbl-grid .product-block__sold { display: none !important; }
.tbl-grid .product-block__actions { opacity: 1 !important; visibility: visible !important; width: auto; height: auto; top: 8px; right: 8px; }
.tbl-grid .wishlist-toggle-btn { display: inline-flex !important; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); color: #1f1b2e; padding: 0; cursor: pointer; }
.tbl-grid .wishlist-toggle-btn.is-active { color: #dc2626; }
.tbl-grid .wishlist-toggle-btn svg { width: 15px; height: 15px; }
.tbl-grid .product-block__swatches { display: flex; gap: 5px; padding: 8px 10px 0; }
.tbl-grid .product-block__swatch { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); display: inline-block; }
.tbl-grid .product-block__detail { padding-left: 10px; padding-right: 10px; }
.tbl-grid .product-block__title { font-size: 12px; font-weight: 600; line-height: 1.3; text-transform: none; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tbl-grid .product-block__rating { display: flex; align-items: center; gap: 3px; font-size: 11px; margin: 3px 0; }
.tbl-grid .product-block__rating svg { color: #f59e0b; width: 11px; height: 11px; }
.tbl .tbl-grid .price .price__current, .tbl .tbl-grid .price--on-sale .price__current { font-size: 14px; font-weight: 800; color: #1f1b2e !important; }
.tbl-grid .price__was { font-size: 10.5px; color: #8d89a0; }
.tbl-grid .price__discount-pill { font-size: 9.5px; font-weight: 800; color: #15803d; background: #dcf7e5; border-radius: 4px; padding: 2px 5px; }
.tbl-grid .product-block__cta-row { display: block; margin-top: 8px; padding-bottom: 10px; }
.tbl-grid .quick_add_card_btn_custom { width: 100%; height: 32px; justify-content: center; font-size: 12px; border-radius: 6px; }
.tbl-grid .quick_add_card_btn_custom svg { display: none; }
.tbl-grid[data-view="list"] { grid-template-columns: 1fr; }
.tbl-grid[data-view="list"] .block-inner-inner { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; }
.tbl-grid[data-view="list"] .product-block__swatches { grid-column: 2; }

/* ── pagination + strip ────────────────────────────────── */
.tbl-pages { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 6px; }
.tbl-pages a, .tbl-pages span:not(.tbl-gap) { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 50%; border: 1px solid #ddd8ea; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #1f1b2e; text-decoration: none; }
.tbl-pages a:hover { border-color: var(--p); color: var(--p); }
.tbl-pages .is-on { background: var(--p); border-color: var(--p); color: #fff; } .tbl-pages .is-off { opacity: .4; }
.tbl-gap { color: #8d89a0; }
.tbl-empty { text-align: center; padding: 46px 12px; background: #fff; border: 1.5px dashed var(--line); border-radius: 12px; }
.tbl-empty .tbl-apply { display: inline-block; width: auto; padding: 0 22px; }
.tbl-strip { list-style: none; margin: 22px 0 8px; padding: 16px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--tint); border: 1.5px solid var(--line); border-radius: 12px; }
.tbl-strip li { display: flex; align-items: center; gap: 12px; color: var(--p); }
.tbl-strip span { display: flex; flex-direction: column; line-height: 1.3; }
.tbl-strip b { font-size: 13px; font-weight: 800; color: #1f1b2e; } .tbl-strip em { font-style: normal; font-size: 11.5px; color: #5d5972; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1399.98px) { .tbl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1099.98px) { .tbl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tbl-body { grid-template-columns: 230px minmax(0, 1fr); } }
@media (max-width: 899.98px) {
  .container--tbl { padding: 12px 12px 6px; }
  .tbl-body { grid-template-columns: 1fr; }
  .tbl-filters__box > summary { padding: 10px 0; }
  .tbl-banner { min-height: 0; flex-direction: column; } .tbl-banner__text { flex-basis: auto; padding: 16px 14px; }
  .tbl-banner h1 { font-size: 24px; }
  .tbl-banner__art { position: relative; width: 100%; height: 150px; inset: auto; } .tbl-banner__art img { -webkit-mask-image: none; mask-image: none; }
  .tbl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tbl-grid[data-view="list"] .block-inner-inner { grid-template-columns: 110px 1fr; }
  .tbl-strip { grid-template-columns: 1fr 1fr; }
  .tbl-view { display: none; }
}

/* product pictures are shown whole (marketing graphics and models alike), never cropped */
.tbl-grid .img-ar, .tbl-grid .image-cont, .tbl-grid .product-block__image { background: #f6f4fa; }
.tbl-grid .img-ar img, .tbl-grid .theme-img { object-fit: contain !important; object-position: center; background: #f6f4fa; }

/* equal-height cards: the Add to Cart buttons line up across the row */
.tbl-grid > product-block { display: block; }
.tbl-grid .block-inner, .tbl-grid .block-inner-inner, .tbl-grid .product-block__detail, .tbl-grid .product-block__detail .inner, .tbl-grid .product-block__detail .innerer { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; min-height: 0; }
.tbl-grid .block-inner { height: 100%; }
.tbl-grid .product-block__cta-row { margin-top: auto !important; padding-top: 6px; }
.tbl-grid .image-cont { flex: none; }
.tbl-grid[data-view="list"] .block-inner-inner { display: grid; }
.tbl-grid .block-inner, .tbl-grid .block-inner-inner, .tbl-grid .product-block__detail, .tbl-grid .product-block__detail .inner, .tbl-grid .product-block__detail .innerer { align-items: stretch !important; width: 100%; }
.tbl-grid .image-cont { width: 100%; }

/* picture frame: square like the reference (the shop's pictures are square); shown whole */
.tbl-grid .img-ar { --aspect-ratio: 1 !important; }
.tbl-grid .product-block__detail { padding-top: 2px; }
.tbl-grid .product-block__title { min-height: 2.6em; margin-top: 2px; }

/* aspect ratio of the picture frame: the theme sets it directly, so set it directly (square, like the pictures) */
.tbl-grid .img-ar { aspect-ratio: 1 / 1 !important; }

/* Filters bar: icon, active-filter count and an arrow that turns when open */
.tbl-filters__box > summary { gap: 10px; }
.tbl-fsum { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: #1f1b2e; }
.tbl-fsum svg { color: var(--p); flex: none; }
.tbl-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--p); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.tbl-sumr { display: inline-flex; align-items: center; gap: 12px; }
.tbl-chev { color: #6b6880; transition: transform .18s; }
.tbl-filters__box[open] .tbl-chev { transform: rotate(180deg); }
@media (min-width: 900px) { .tbl-chev { display: none; } .tbl-filters__box > summary { cursor: default; } }
@media (max-width: 899.98px) { .tbl-filters__box { padding: 0 14px; } .tbl-filters__box[open] { padding-bottom: 14px; } .tbl-filters__box > summary { padding: 14px 0; } }

/* small icons in front of each filter heading */
.tbl-fs legend { display: flex; align-items: center; gap: 7px; }
.tbl-fs legend svg { color: var(--p); flex: none; }

/* ── Filters as a left slide-in panel on phones ─────────────────────────── */
.tbl-fbtn, .tbl-x { display: none; }
.tbl-backdrop { display: none; }
@media (max-width: 899.98px) {
  .tbl-body { display: block; }
  .tbl-fbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1.5px solid var(--p); border-radius: 999px; background: #fff; color: var(--p); font: 800 13px "Inter", sans-serif; cursor: pointer; }
  .tbl-bar__l { width: 100%; }
  .tbl-backdrop { display: block; position: fixed; inset: 0; z-index: 2147482000; background: rgba(20, 16, 30, .55); opacity: 0; transition: opacity .22s; }
  .tbl-backdrop[hidden] { display: none; }
  .tbl-backdrop.is-open { opacity: 1; }
  .tbl-filters { position: fixed; top: 0; left: 0; bottom: 0; z-index: 2147482001; width: min(88vw, 360px); background: #fff; transform: translateX(-104%); transition: transform .26s ease; box-shadow: 8px 0 30px rgba(0, 0, 0, .25); display: flex; flex-direction: column; visibility: hidden; }
  .tbl-filters.is-open { transform: none; visibility: visible; }
  .tbl-filters__box { border: 0; border-radius: 0; padding: 0; height: 100%; display: flex; flex-direction: column; min-height: 0; }
  .tbl-filters__box > summary { position: sticky; top: 0; z-index: 2; background: #fff; padding: 14px 16px !important; border-bottom: 1px solid #eeeaf5; cursor: default; }
  .tbl-filters__box > form { flex: 1 1 auto; overflow-y: auto; padding: 0 16px 0; min-height: 0; -webkit-overflow-scrolling: touch; }
  .tbl-chev { display: none !important; }
  .tbl-x { display: inline-flex; width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f3f1f6; color: #1f1b2e; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
  .tbl-filters .tbl-apply { position: sticky; bottom: 0; margin: 14px 0 0; height: 44px; line-height: 44px; box-shadow: 0 -10px 14px -4px #fff; }
  .tbl-filters form { padding-bottom: 14px; }
}
@media (max-width: 899.98px) { .tbl-filters__box[open] { padding-bottom: 0; } }

/* search page: search box above the results */
.tbl-searchbox { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 0 auto 16px; height: 50px; padding: 0 6px 0 16px; background: #fff; border: 1.5px solid var(--line, #e3dff0); border-radius: 12px; font-family: "Inter", "Poppins", sans-serif; }
.tbl-searchbox:focus-within { border-color: var(--primary, #4d026b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #4d026b) 14%, transparent); }
.tbl-searchbox svg { color: var(--primary, #4d026b); flex: none; }
.tbl-searchbox input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 15px; padding: 0 !important; margin: 0 !important; }
.tbl-searchbox button { height: 38px; padding: 0 22px; border: 0; border-radius: 9px; background: var(--primary, #4d026b); color: #fff; font: 700 13.5px "Inter", sans-serif; cursor: pointer; text-transform: none; letter-spacing: 0; }

/* desktop only: slightly larger colour dots on the cards (phone sizes above are unchanged) */
@media (min-width: 768px) {
  .tbl-grid .product-block__swatches { gap: 6px; }
  .tbl-grid .product-block__swatch { width: 15px; height: 15px; }
}
