/* 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); --sel: color-mix(in srgb, var(--p) 12%, #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: clamp(240px, 19vw, 280px) minmax(0, 1fr); gap: 18px; margin-top: 16px; align-items: start; }
.tbl-filters__box { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 14px 14px; box-shadow: 0 4px 18px color-mix(in srgb, var(--p) 8%, transparent); }
.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 color-mix(in srgb, var(--p) 9%, #eeeaf5); margin: 0; padding: 4px 0; min-width: 0; }
.tbl-fs legend { float: left; width: 100%; padding: 0; margin: 0; }
/* heading = button that opens / closes its section (the theme's button look is switched off: letter-spacing, capitals, background) */
.tbl .tbl-fs__h { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; margin: 0; padding: 5px 0; border: 0; border-radius: 6px; background: none; box-shadow: none; color: #1f1b2e; font: 800 12.5px/1.25 "Inter", "Poppins", sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; text-align: left; cursor: pointer; }
.tbl-fs__h > span { flex: 1; }
.tbl-fs__h svg { color: var(--p); flex: none; }
.tbl-fs__h .tbl-fs__chev { color: #8d89a0; transition: transform .22s ease, color .15s; }
.tbl-fs__h:hover .tbl-fs__chev { color: var(--p); }
.tbl-fs.is-shut .tbl-fs__chev { transform: rotate(180deg); }
.tbl-fs__b { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .24s ease, opacity .2s ease; }
.tbl-fs__in { overflow: hidden; min-height: 0; min-width: 0; margin: 0 -8px; padding: 0 8px; }   /* the side padding keeps focus rings, swatch rings and row tints from being clipped */
.tbl-fs__in::before, .tbl-fs__in::after { content: ""; display: block; height: 4px; }
.tbl-fs.is-shut .tbl-fs__b { grid-template-rows: 0fr; opacity: 0; }
.tbl-fs__h:focus-visible, .tbl-filters summary:focus-visible, .tbl-apply:focus-visible, .tbl-reset:focus-visible, .tbl-pchips a:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.tbl-fs > :not(legend) { clear: both; }

/* price */
.tbl-range__labels { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tbl-range__labels span { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); line-height: 1.3; }
.tbl-range__labels i { font-style: normal; font-size: 10px; font-weight: 600; color: #6b6880; }
.tbl-range__labels b { font-size: 12px; font-weight: 800; color: var(--p); }
.tbl-range__track { position: relative; height: 20px; }
.tbl-range__track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--p) 14%, #fff); }
.tbl-range__fill { position: absolute; top: 8px; height: 4px; border-radius: 2px; background: var(--p); }
.tbl-range input[type=range] { position: absolute; left: 0; width: 100%; top: 0; height: 20px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.tbl-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--p); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--p), 0 2px 6px color-mix(in srgb, var(--p) 35%, transparent); cursor: grab; transition: box-shadow .15s; }
.tbl-range input[type=range]::-moz-range-thumb { box-sizing: border-box; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--p); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--p), 0 2px 6px color-mix(in srgb, var(--p) 35%, transparent); cursor: grab; transition: box-shadow .15s; }
.tbl-range input[type=range]::-webkit-slider-thumb:hover, .tbl-range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--p), 0 0 0 6px color-mix(in srgb, var(--p) 18%, transparent); }
.tbl-range input[type=range]::-moz-range-thumb:hover, .tbl-range input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1.5px var(--p), 0 0 0 6px color-mix(in srgb, var(--p) 18%, transparent); }
.tbl-range input[type=range]:active::-webkit-slider-thumb { cursor: grabbing; }
.tbl-range input[type=range]:focus-visible { outline: 0; }
.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; line-height: 1.3; color: #3b3752; text-decoration: none; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .15s, background .15s, color .15s; }
.tbl-pchips a:hover { border-color: var(--p); color: var(--p); }
.tbl-pchips a.is-on { border-color: var(--p); color: var(--p); background: var(--sel); font-weight: 800; }
.tbl-reset { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--p); text-decoration: underline; text-underline-offset: 2px; border-radius: 4px; }
.tbl-reset[hidden] { display: none; }

/* pills / swatches / rows */
.tbl-pills, .tbl-swatches { padding: 2px 0; }
.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: 38px; height: 28px; padding: 0 9px; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; line-height: 1; color: #1f1b2e; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.tbl-pills label:hover span { border-color: var(--p); color: var(--p); }
.tbl-pills input:checked + span { background: var(--sel); border-color: var(--p); box-shadow: inset 0 0 0 .5px var(--p); color: var(--p); font-weight: 800; }
.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; margin: 0 -8px; padding: 4px 8px; font-size: 12px; line-height: 1.35; border-radius: 8px; cursor: pointer; transition: background .15s; }
.tbl-row + .tbl-row { margin-top: 1px; }
.tbl-row:hover { background: var(--tint); }
.tbl-row:has(input:checked) { background: var(--sel); font-weight: 700; color: var(--p); }
.tbl-row:has(input:checked) em { color: var(--p); }
.tbl-row:has(input:focus-visible) { outline: 2px solid var(--p); outline-offset: -2px; }
.tbl-row::before { content: ""; flex: none; width: 15px; height: 15px; border: 1.5px solid color-mix(in srgb, var(--p) 30%, #c9c4d6); border-radius: 4px; 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-chiprow { display: contents; }   /* wider screens: the chips flow with the rest of the bar, as before */
.tbl-bar__r { display: flex; align-items: center; gap: 10px; }
.tbl-sort__i, .tbl-sort__c, .tbl-dchips { display: none; }   /* phone toolbar only */
.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 { 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: 18px; height: 18px; }
.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: 12.5px; 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: 6px 10px 10px; }
/* the same Add to Cart as the home cards: 34px, 6px corners, bag icon */
body.tb-store .tbl-grid .quick_add_card_btn_custom { width: 100%; height: 34px; justify-content: center; font-size: 12px; border-radius: 6px; }
.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-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 22px 0 6px; }
.tbl-foot .tbl-pages { grid-column: 2; margin: 0; }
.tbl-perpage { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #4b4763; }
.tbl-foot .tbl-perpage:only-child { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 760px) { .tbl-foot { grid-template-columns: 1fr; justify-items: center; } .tbl-foot .tbl-pages, .tbl-perpage { grid-column: 1; justify-self: center; } }
.tbl-perpage a { min-width: 40px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid #ddd8ea; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #1f1b2e; text-decoration: none; }
.tbl-perpage a:hover { border-color: var(--p); color: var(--p); }
.tbl-perpage a.is-on { background: var(--p); border-color: var(--p); color: #fff; }
.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 (min-width: 900px) {
  /* the box stays in view below the sticky site header (--tbl-top = its height, set in listing-tb.php); a box taller than the screen scrolls
     inside itself with its heading and Apply button pinned, and it ends with the product list (never over the footer) */
  .tbl-filters { position: sticky; top: calc(var(--tbl-top, 100px) + 12px); }
  .tbl-filters__box { max-height: calc(100vh - var(--tbl-top, 100px) - 24px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--p) 25%, #fff) transparent; padding-bottom: 0; }
  .tbl-filters__box > summary { position: sticky; top: 0; z-index: 4; background: #fff; }
  .tbl-filters__box > form { padding-bottom: 14px; }
  .tbl-filters .tbl-apply { position: sticky; bottom: 14px; z-index: 4; box-shadow: 0 0 0 16px #fff; clip-path: inset(0 -14px -16px -14px); }
  /* toolbar: Filters button + chips + Clear All on the left, count + sort + view on the right; the button hides / shows the sidebar */
  .tbl-bar__l { display: contents; }
  .tbl-bar .tbl-fbtn { order: 1; }
  .tbl-bar .tbl-chiprow { order: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 1 1 0; min-width: 0; }
  .tbl-bar .tbl-count { order: 3; margin: 0 0 0 auto; white-space: nowrap; }
  .tbl-bar .tbl-bar__r { order: 4; }
  .tbl-body--nofilters .tbl-bar .tbl-count { margin: 0 auto 0 0; }
  .tbl-body.is-side-off { grid-template-columns: minmax(0, 1fr); }
  .tbl-body.is-side-off .tbl-filters { display: none; }
}
@media (min-width: 900px) and (max-width: 1199.98px) { .tbl-bar .tbl-chiprow { order: 5; flex: 1 0 100%; } }   /* not enough room beside the count: the chips get their own line */
@media (prefers-reduced-motion: reduce) { .tbl-filters *, .tbl-filters { transition: none !important; } }
@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: 4px; padding-bottom: 0; }
.tbl-grid .product-block__title { min-height: 2.6em; margin-top: 0; }

/* 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: 15px; font-weight: 800; color: var(--p); }
.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; } }

/* ── Filters as a left slide-in panel on phones ─────────────────────────── */
.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-x { display: none; }
@media (min-width: 900px) { .tbl .tbl-fbtn { height: 32px; letter-spacing: .2px !important; text-transform: none !important; transition: background .15s; } .tbl .tbl-fbtn:hover, .tbl .tbl-fbtn[aria-expanded="true"] { background: var(--tint); color: var(--p); } .tbl-fbtn:focus-visible { outline: 2px solid var(--p); outline-offset: 2px; } }
.tbl-backdrop { display: none; }
@media (max-width: 899.98px) {
  .tbl-body { display: block; }
  .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; box-shadow: none; padding: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }   /* the box scrolls, not the form: a <details> with display:flex no longer bounds its form in current browsers, which cut the panel off on short phones */
  .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 { padding: 0 16px 0; }
  .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; }
}

/* phones: a compact banner - title and a two-line description beside a small picture (the right-hand slice of the wide banner, where the model is), the benefit chips in one swipeable row.
   It was about 375px tall (180px without a picture); now about 155px (90px). Tablets and desktop keep their layouts. */
@media (max-width: 767.98px) {
  .tbl-banner { display: grid; grid-template-columns: minmax(0, 1fr) 47%; min-height: 0; border-radius: 12px; }
  .tbl-banner--noart { grid-template-columns: minmax(0, 1fr); }
  .tbl-banner__text { display: contents; }
  .tbl-crumbs { display: none; }
  .tbl-banner h1 { grid-column: 1; grid-row: 1; align-self: end; position: relative; z-index: 2; padding: 14px 4px 6px 14px; font-size: 20px; line-height: 1.15; }
  .tbl-banner__desc { grid-column: 1; grid-row: 2; align-self: start; position: relative; z-index: 2; margin: 0 0 12px; padding: 0 4px 0 14px; font-size: 11.5px; line-height: 1.4;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .tbl-banner__art { grid-column: 2; grid-row: 1 / 3; position: relative; inset: auto; width: auto; height: auto; min-height: 104px; }
  .tbl-banner__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%); }
  .tbl-chips { grid-column: 1 / -1; grid-row: 3; flex-wrap: nowrap; gap: 8px; margin: 0; padding: 0 14px 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative; z-index: 2; }
  .tbl-chips::-webkit-scrollbar { display: none; }
  .tbl-chips li { flex: none; max-width: none; white-space: nowrap; gap: 6px; padding: 3px 11px 3px 3px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); font-size: 11px; }
  .tbl-chip__ico { width: 24px; height: 24px; border: 0; background: color-mix(in srgb, var(--p) 10%, #fff); }
  .tbl-chip__ico svg { width: 14px; height: 14px; }

  /* slim toolbar: [Filter] | 1-20 of 94 | [Featured v] in one 46px row, always. The applied-filter chips move into the filter panel (.tbl-dchips; the
     badge on the button counts them), so filtering never makes the bar taller. Nothing here has a fixed width: the count keeps its own width
     and the sort control gives way (its label ends in "…"). */
  .tbl-body { margin-top: 10px; }
  .tbl-bar { height: 46px; padding: 2px; gap: 0; margin-bottom: 10px; flex-wrap: nowrap; border-radius: 999px; }
  .tbl-bar__l, .tbl-bar__r { display: contents; }
  .tbl-bar .tbl-chiprow { display: none; }
  .tbl-wide { display: none; }
  .tbl .tbl-fbtn { position: relative; flex: none; height: 40px; padding: 0 13px; gap: 6px; border: 1px solid var(--line); background: #fff; font-size: 13px !important; font-weight: 700; letter-spacing: 0 !important; text-transform: none !important; }   /* the theme gives every button capitals and 1.5px letter-spacing (!important) */
  .tbl-fbtn svg { width: 16px; height: 16px; flex: none; }
  .tbl-fbtn .tbl-badge { position: absolute; top: -5px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10.5px; letter-spacing: 0; }
  .tbl-count { position: relative; flex: 1 0 auto; margin: 0; padding: 0 13px; text-align: center; white-space: nowrap; font-size: 12.5px; line-height: 20px; letter-spacing: 0; }
  .tbl-count::before, .tbl-count::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 1px; background: color-mix(in srgb, var(--p) 22%, #e6e3ee); }
  .tbl-count::before { left: 6px; } .tbl-count::after { right: 6px; }
  .tbl-body--nofilters .tbl-count::before { display: none; }
  .tbl-sort { position: relative; flex: 0 1 auto; min-width: 0; height: 40px; gap: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--p); }
  .tbl-sort__t { display: none; }
  .tbl-sort__i, .tbl-sort__c { display: block; position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
  .tbl-sort__i { left: 11px; } .tbl-sort__c { right: 11px; }
  .tbl .tbl-sort select { -webkit-appearance: none; appearance: none; flex: 0 1 auto; min-width: 0; max-width: 100%; width: clamp(96px, 35vw, 150px); height: 100%; margin: 0; padding: 0 29px 0 32px; border: 0; border-radius: 999px; background: none; color: var(--p); font-size: 13px; font-weight: 700; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; }
  .tbl-fbtn:focus-visible, .tbl .tbl-sort select:focus-visible { outline: 2px solid var(--p); outline-offset: 1px; }
  .tbl .tbl-sort select:has(option:nth-child(n + 2):checked) { width: auto; }   /* a longer choice than "Featured" takes the room the count leaves */
  @supports (field-sizing: content) { .tbl .tbl-sort select { field-sizing: content; width: auto; } }   /* as wide as the chosen option, not as the longest one */
  .tbl-filters .tbl-dchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; }
}
@media (max-width: 374.98px) {
  .tbl .tbl-fbtn { padding: 0 11px; gap: 5px; }
  .tbl-count { font-size: 12px; }
  .tbl-sort__i { left: 9px; width: 14px; height: 14px; } .tbl-sort__c { right: 9px; width: 12px; height: 12px; }
  .tbl .tbl-sort select { padding: 0 24px 0 28px; }
}
@media (max-width: 349.98px) {   /* the smallest phones: a little tighter so the whole count still shows */
  .tbl .tbl-fbtn { padding: 0 9px; gap: 4px; font-size: 12px !important; }
  .tbl-fbtn svg { width: 14px; height: 14px; }
  .tbl-count { padding: 0 10px; font-size: 11.5px; } .tbl-count::before { left: 4px; } .tbl-count::after { right: 4px; }
  .tbl .tbl-sort select { padding: 0 22px 0 27px; font-size: 12px; }
}

/* phone cards: the category shows the home page's card (.tbm-card, styled by tb-mobile-home.css) instead of the product-block grid */
.tbl-grid-m { display: none; }
@media (max-width: 767.98px) {
  .tbl--pc .tbl-grid { display: none; }
  .tbl--pc .tbl-grid-m { display: block; background: transparent; }
  .tbl--pc .tbl-grid-m .tbm-grid { gap: 12px 10px; }
}

/* phones: the benefits strip under the products looks like the home page's trust bar - one white card, every item in one row,
   an icon in a soft circle over a bold title and a small line, thin dividers between them (--hl-n = number of items) */
@media (max-width: 767.98px) {
  .tbl-strip { margin: 16px 0 8px; padding: 14px 4px 12px; display: grid; grid-template-columns: repeat(var(--hl-n, 4), minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid color-mix(in srgb, var(--p) 16%, #fff); border-radius: 14px; box-shadow: 0 2px 10px color-mix(in srgb, var(--p) 8%, transparent); }
  .tbl-strip li { flex-direction: column; justify-content: flex-start; align-items: center; gap: 7px; min-width: 0; padding: 0 3px; text-align: center; }
  .tbl-strip li + li { border-left: 1px solid color-mix(in srgb, var(--p) 10%, #fff); }
  .tbl-strip .hl-ico--solid { flex: none; box-sizing: content-box; width: 20px; height: 20px; padding: 8px; border-radius: 50%; background: color-mix(in srgb, var(--p) 9%, #fff); fill-opacity: 0; stroke-width: 1.6; }
  .tbl-strip span { align-items: center; min-width: 0; line-height: 1.2; }
  .tbl-strip b { font-size: 11.5px; font-weight: 700; letter-spacing: -.1px; }
  .tbl-strip em { font-size: 10.5px; margin-top: 1px; }
}

/* list view: horizontal cards, two per row - picture on the left, name / price / Add to Cart on the right.
   (the equal-height rule above forces .block-inner-inner to flex with !important, so this needs it too) */
.tbl-grid[data-view="list"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; }
.tbl-grid[data-view="list"] .block-inner-inner { display: grid !important; grid-template-columns: minmax(120px, 42%) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; align-items: stretch !important; }
.tbl-grid[data-view="list"] .image-cont { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 100%; }
.tbl-grid[data-view="list"] .product-block__swatches { grid-column: 2; grid-row: 1; padding: 12px 10px 0 0; }
.tbl-grid[data-view="list"] .product-block__detail { grid-column: 2; grid-row: 2; padding: 10px 10px 0 0; }
.tbl-grid[data-view="list"] .product-block__swatches + .product-block__detail { padding-top: 4px; }
.tbl-grid[data-view="list"] .product-block__title { font-size: 14px; -webkit-line-clamp: 3; min-height: 0; }
.tbl-grid[data-view="list"] .product-block__cta-row { padding: 10px 10px 12px 0; }
/* polish: square picture (cropped, never a tall infographic stretching the card), larger readable text, price and button
   sitting together at the bottom of the details column with the title on top */
.tbl-grid[data-view="list"] .block-inner-inner { grid-template-columns: minmax(130px, 40%) minmax(0, 1fr); column-gap: 0; }
.tbl-grid[data-view="list"] .image-cont { aspect-ratio: 1 / 1; height: auto; overflow: hidden; border-right: 1px solid #f0edf6; }
.tbl-grid[data-view="list"] .image-cont img, .tbl-grid[data-view="list"] .image-cont picture { width: 100%; height: 100%; object-fit: cover; }
.tbl-grid[data-view="list"] .product-block__swatches { padding: 14px 14px 0; }
.tbl-grid[data-view="list"] .product-block__detail { padding: 14px 14px 0; }
.tbl-grid[data-view="list"] .product-block__swatches + .product-block__detail { padding-top: 6px; }
.tbl-grid[data-view="list"] .product-block__title { font-size: 15px; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; margin-bottom: 4px; }
.tbl-grid[data-view="list"] .product-block__rating { font-size: 12px; margin: 4px 0 6px; }
.tbl .tbl-grid[data-view="list"] .price .price__current { font-size: 20px; }
.tbl-grid[data-view="list"] .price__was { font-size: 12.5px; }
.tbl-grid[data-view="list"] .price__discount-pill { font-size: 11px; padding: 3px 6px; background: transparent; padding-left: 0; }
.tbl-grid[data-view="list"] .product-block__cta-row { margin-top: auto; padding: 10px 14px 14px; }
body.tb-store .tbl-grid[data-view="list"] .quick_add_card_btn_custom { height: 40px; font-size: 13px; border-radius: 8px; }
.tbl-grid[data-view="list"] .block-inner { box-shadow: 0 1px 6px rgba(31, 27, 46, .05); }
/* customer-appeal layer: soft lift on hover, picture zoom, discount as a green tag, bolder brand button */
.tbl-grid[data-view="list"] .block-inner { border-radius: 14px; border-color: #ebe6f4; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.tbl-grid[data-view="list"] .block-inner:hover { transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--p, #5b21b6) 16%, transparent); border-color: color-mix(in srgb, var(--p, #5b21b6) 35%, #fff); }
.tbl-grid[data-view="list"] .image-cont img { transition: transform .45s ease; }
.tbl-grid[data-view="list"] .block-inner:hover .image-cont img { transform: scale(1.05); }
.tbl-grid[data-view="list"] .image-cont { background: #f6f4fa; }
.tbl-grid[data-view="list"] .product-block__title { color: #1f1b2e; }
.tbl-grid[data-view="list"] .product-block__rating { display: inline-flex; background: #f1faf4; border: 1px solid #d3efdc; border-radius: 6px; padding: 2px 7px; font-weight: 700; color: #166534; }
.tbl-grid[data-view="list"] .product-block__rating-count { color: #6b6880; font-weight: 500; }
.tbl-grid[data-view="list"] .product-price .price__default { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.tbl-grid[data-view="list"] .price__discount-pill { color: #15803d; font-weight: 800; letter-spacing: .2px; }
.tbl-grid[data-view="list"] .product-block__swatch { width: 14px; height: 14px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .12); margin-right: 3px; }
body.tb-store .tbl-grid[data-view="list"] .quick_add_card_btn_custom { font-weight: 700; letter-spacing: .2px; box-shadow: 0 4px 12px color-mix(in srgb, var(--p, #5b21b6) 28%, transparent); transition: transform .15s ease, box-shadow .15s ease; }
body.tb-store .tbl-grid[data-view="list"] .quick_add_card_btn_custom:hover { transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--p, #5b21b6) 38%, transparent); }
body.tb-store .tbl-grid[data-view="list"] .quick_add_card_btn_custom.is-soldout { box-shadow: none; }
/* extra details in the list view: short description + available sizes (hidden in the grid view) */
.tbl-grid .product-block__more { display: none; }
.tbl-grid[data-view="list"] .product-block__more { display: block; padding: 2px 14px 0; }
.tbl-grid[data-view="list"] .product-block__more-desc { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; color: #5f5b73; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tbl-grid[data-view="list"] .product-block__more-specs { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.tbl-grid[data-view="list"] .product-block__more-specs li { font-size: 12px; color: #3b3753; display: flex; gap: 6px; align-items: baseline; }
.tbl-grid[data-view="list"] .product-block__more-specs li::before { content: "\2713"; color: #15803d; font-weight: 800; }
.tbl-grid[data-view="list"] .product-block__more-specs b { color: #6b6880; font-weight: 600; }
.tbl-grid[data-view="list"] .product-block__more-specs b::after { content: ":"; margin-right: 4px; }
/* the picture takes the card's height (no empty band under it or above Add to Cart); options stay on one line (swatch dots, scroll sideways) */
.tbl-grid[data-view="list"] .image-cont { aspect-ratio: auto; align-self: stretch; display: flex; flex-direction: column; }
.tbl-grid[data-view="list"] .image-cont .product-link, .tbl-grid[data-view="list"] .image-cont .image-label-wrap, .tbl-grid[data-view="list"] .image-cont .image-label-wrap > div, .tbl-grid[data-view="list"] .image-cont .product-block__image--primary { display: flex !important; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.tbl-grid[data-view="list"] .image-cont .img-ar { aspect-ratio: auto !important; flex: 1 1 auto; min-height: 250px; position: relative; padding: 0 !important; height: auto; }
.tbl-grid[data-view="list"] .image-cont .img-ar img { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain !important; }
/* the hover picture is laid over the main one: its frame must fill the box too, else the picture shrinks on hover */
.tbl-grid[data-view="list"] .image-cont .product-block__image--secondary { height: 100%; }
.tbl-grid[data-view="list"] .image-cont .product-block__image--secondary .img-ar { height: 100% !important; min-height: 0; }
.tbl-grid[data-view="list"] .product-block__opt-row > * { flex: none; }
.tbl-grid[data-view="list"] .product-block__opt-row button.is-dot { min-width: 0; width: 26px; height: 26px; padding: 0; border-radius: 50%; }
.tbl-grid[data-view="list"] .product-block__opt-row button.is-dot i { width: 18px; height: 18px; }
.tbl-grid[data-view="list"] .product-block__opt-row .opt-chosen { font-style: normal; font-size: 11.5px; font-weight: 700; color: #3b3753; margin-left: 2px; }
.tbl-grid[data-view="list"] .product-block__opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 7px; }
.tbl-grid[data-view="list"] .product-block__opt-row > span { font-size: 11.5px; font-weight: 700; color: #1f1b2e; margin-right: 2px; min-width: 38px; }
.tbl-grid[data-view="list"] .product-block__opt-row button { font: inherit; font-size: 12px; font-weight: 700; color: #3b3753; min-width: 38px; height: 30px; padding: 0 10px; border: 1.5px solid #ddd8ea; border-radius: 8px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: border-color .15s, background .15s, color .15s; }
.tbl-grid[data-view="list"] .product-block__opt-row button i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); flex: none; }
.tbl-grid[data-view="list"] .product-block__opt-row button:hover { border-color: var(--p); color: var(--p); }
.tbl-grid[data-view="list"] .product-block__opt-row button[aria-pressed="true"] { background: var(--p); border-color: var(--p); color: #fff; }
.tbl-grid[data-view="list"] .product-block__opt-row button.is-off { opacity: .4; text-decoration: line-through; cursor: not-allowed; background: #f6f4fa; color: #8d89a0; border-style: dashed; }
.tbl-grid[data-view="list"] .product-block__opt-row.is-nudge { animation: tblNudge .35s ease; }
.tbl-grid[data-view="list"] .product-block__more-msg { min-height: 16px; margin-top: 5px; font-size: 12px; font-weight: 600; color: #15803d; }
.tbl-grid[data-view="list"] .product-block__more-msg.is-bad { color: #dc2626; }
/* nothing to say (no size/colour message): no reserved line, so no gap above Add to Cart */
.tbl-grid[data-view="list"] .product-block__more-msg:empty { display: none; }
.tbl-grid[data-view="list"] .product-block__more { padding-bottom: 0; }
.tbl-grid[data-view="list"] .product-block__more-specs { margin-bottom: 8px; }
@keyframes tblNudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.tbl-grid[data-view="list"] .product-block__opt-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
/* "563 Sold" on the rating line, same as the home cards (rule lives in store-highlights.css); a little smaller in the 5-a-row grid */
body.tb-store .tbl-grid .product-block__meta-row .product-block__sold { font-size: 13px; }
body.tb-store .tbl-grid .product-block__meta-row .product-block__rating { font-size: 13px; }
body.tb-store .tbl-grid[data-view="list"] .product-block__meta-row .product-block__sold { font-size: 15px; }
body.tb-store .tbl-grid[data-view="list"] .product-block__meta-row { margin: 4px 0 6px; }
body.tb-store .tbl-grid[data-view="list"] .product-block__meta-row .product-block__rating { display: inline-flex; margin: 0 !important; }
/* no rating on the card: "N Sold" shares the price line (price left, count right) instead of a line of its own */
.tbl-grid .product-link--solo { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; align-content: start; column-gap: 8px; }
.tbl-grid .product-link--solo > * { grid-column: 1 / -1; }
.tbl-grid .product-link--solo > .product-price { grid-row: 3; grid-column: 1; }
.tbl-grid .product-link--solo > .product-block__meta-row { grid-row: 3; grid-column: 2; margin: 0; min-height: 0; }
.tbl-grid .product-link--solo > .product-price { margin-top: 0; }
@media (max-width: 899.98px) { .tbl-grid[data-view="list"] { grid-template-columns: 1fr !important; } }
@media (max-width: 599.98px) { .tbl-grid[data-view="list"] { grid-template-columns: 1fr !important; } }

/* uploaded collection banner = a finished design (admin hint 1600x400): shown whole at its own ratio, breadcrumb above, our title kept for SEO/screen readers only.
   Before, it sat cropped (object-fit: cover, right 52%, faded) behind a second title + chips, cutting off the banner's own heading. */
.tbl-banner.tbl-banner--full { display: block; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: none; }
.tbl-banner--full .tbl-crumbs { margin: 0 0 8px 2px; }
.tbl-banner__full { position: relative; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); background: var(--tint); line-height: 0; isolation: isolate; }
/* tablets/desktop: a fixed 6:1 box (~300px tall on a 1920 screen; a 4:1 box was ~450px). The admin hint for this field is 1920x320 for the default
   theme (config/image_dimensions.php category_banner_image) - keep the two in step. A banner of any other ratio is shown whole (contain), pinned right,
   and the gap on its left is filled by the banner's own left edge stretched outwards (background-size 6000% = the outer ~1.7% of the picture);
   designed banners keep a calm background behind the heading on that side, the right side is usually the busy photo. */
.tbl-banner__full::before { content: ""; position: absolute; top: -12px; bottom: -12px; left: -12px; right: 40%; z-index: -1; filter: blur(10px);
  background: var(--tbl-bg, none) left center / 6000% 100% no-repeat; }
@media (min-width: 768px) { .tbl-banner__full { aspect-ratio: 6 / 1; } }
.tbl-banner__full img { display: block; width: 100%; height: auto; object-fit: contain; object-position: right center; }
@media (min-width: 768px) { .tbl-banner__full img { height: 100%; } }
.tbl-banner__full picture { display: block; height: 100%; }
/* phones: the banner frame is 15% taller than it used to be, at the same width; the picture itself is never stretched or cropped. It is drawn whole in the
   middle, and the few px above and below it (about 4px on a 360px phone) continue its own top / bottom edge (background-size 40000% = one
   row of pixels; taken 0.8% in and drawn just under 1px over the picture, as exported artwork often has a lighter outermost row).
   Desktop banner on a phone: was exactly as tall as the picture (ratio --tbl-ar, set when it loads; 6:1 = the admin hint until then).
   Mobile Collection Banner: was a 16:5 frame (admin hint 1920x690, config category_banner_image_mobile - keep in step). A picture taller than the frame
   (.is-tall, e.g. 1360x800) fills its height, pinned right, its left edge stretched into the gap like on desktop. */
@media (max-width: 767.98px) {
  .tbl .tbl-banner__full { box-sizing: content-box; padding: .15px 0; aspect-ratio: calc(var(--tbl-ar, 6) / 1.15); }   /* content-box + .15px: the border is part of the 15% */
  .tbl .tbl-banner__full--m { box-sizing: border-box; padding: 0; aspect-ratio: 16 / 5.75; }
  .tbl-banner__full img { height: 100%; object-position: center; }
  .tbl-banner__full--m.is-tall img { object-position: right center; }
  .tbl-banner__full { --tbl-edge: 6.5217%; --tbl-edge-img: var(--tbl-bg, none); }   /* (1 - 1/1.15) / 2 */
  .tbl-banner__full--m { --tbl-edge: max(0%, (1 - 2.7826 / var(--tbl-ar, 3.2)) * 50%); --tbl-edge-img: var(--tbl-bg-m, none); }
  .tbl-banner__full--m.is-tall::before { background-image: var(--tbl-bg-m, none); }
  .tbl-banner__full:not(.tbl-banner__full--m)::before, .tbl-banner__full:not(.tbl-banner__full--m)::after,
  .tbl-banner__full--m:not(.is-tall)::before, .tbl-banner__full--m:not(.is-tall)::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: auto; left: 0; right: 0; height: calc(var(--tbl-edge) + .9px); filter: none; pointer-events: none;
    background: var(--tbl-edge-img) 0 .8% / 100% 40000% no-repeat; }
  .tbl-banner__full:not(.tbl-banner__full--m)::after, .tbl-banner__full--m:not(.is-tall)::after { top: auto; bottom: 0; background-position: 0 99.2%; }
}
.tbl-banner--full .tbl-banner__desc { margin: 10px 2px 0; max-width: none; }
.tbl-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 767.98px) {
  .tbl-banner.tbl-banner--full { display: block; }
  .tbl-banner__full { border-radius: 10px; }
  .tbl-banner--full .tbl-banner__desc { padding: 0; font-size: 12px; -webkit-line-clamp: 2; }
}

/* Wholesale category page (wholesale/collection.php -> this page with render_product_card() / tbm_grid() in wholesale mode):
   "From ₹X / pc" on one line with the small words lighter, "Min. N pcs" in the "N Sold" slot, Bulk Order is a link styled as the
   Add to Cart button. */
.tbl-grid product-block .price--wholesale .price__default { gap: 0 4px; align-items: baseline; }
.tbl-grid product-block .price--wholesale .price__default > span { margin: 0 !important; }
.tbl-grid[data-view="list"] product-block .price--wholesale .price__default { gap: 0 4px; }
.tbl-grid product-block .price--wholesale .price__default .price__from,
.tbl-grid product-block .price--wholesale .price__default .price__unit { font-size: 11.5px !important; font-weight: 500; color: #6b7280; }
.tbl-grid product-block a.quick_add_card_btn_custom,
.tbl-grid-m a.tbm-add { text-decoration: none !important; }
.tbl-grid-m a.tbm-chip--link { display: flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none !important; }
.tbl-grid-m .tbm-card__price--ws { gap: 0 4px; }
.tbl-grid-m .tbm-card__price--ws span { font-size: 11px; font-weight: 500; color: #6b7280; }
