/* treniraj.si v5 — components (SPEC §5). Defined ONCE here, used everywhere.
   Buttons, product card, category tile, section head, inputs, select, chips, badges, stock dot,
   qty stepper, tabs, FABs, cookie banner, pagination, breadcrumb, eyebrow, card grid.
   Rules: tokens only, every selector once, no important-overrides (except the FAB focus ring), breakpoints 480/768/1024/1280. */

/* ══ Buttons ══ */
.tr-btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--tr-s2);height:48px;padding:0 22px;border:1.5px solid transparent;border-radius:var(--tr-r);background:transparent;color:inherit;font-family:var(--tr-font);font-size:var(--tr-fs-14);font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.04em;text-decoration:none;text-align:center;white-space:nowrap;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;transition:background-color var(--tr-t) var(--tr-ease),color var(--tr-t) var(--tr-ease),border-color var(--tr-t) var(--tr-ease),transform var(--tr-t) var(--tr-ease),box-shadow var(--tr-t) var(--tr-ease);}
.tr-btn svg{width:18px;height:18px;flex:none;}
.tr-btn:hover{transform:translateY(-1px);box-shadow:var(--tr-shadow-hover);}
.tr-btn:active{transform:none;box-shadow:none;}
/* ONE inert look for all three inert states — the real `disabled` attribute (product.js on sold-out), aria-disabled, and
   WC's class-only `.disabled` (wc-variation-selection-needed, stays focusable and clickable): neutral fill, no fade
   (ink on grey-300 = 11.3:1) — the state is obvious, the text readable, and attribute + class stacked never look paler. */
.tr-btn:disabled,.tr-btn[aria-disabled="true"],.tr-btn.disabled{background:var(--tr-grey-300);border-color:var(--tr-grey-300);color:var(--tr-ink);transform:none;box-shadow:none;cursor:not-allowed;}
a.tr-btn[aria-disabled="true"]{pointer-events:none;}
.tr-btn.is-loading{opacity:.55;transform:none;box-shadow:none;cursor:progress;}
.tr-btn-sm{height:44px;padding:0 18px;font-size:var(--tr-fs-13);}
.tr-btn-block{width:100%;}
.tr-btn-red{background:var(--tr-red);color:var(--tr-on-dark);}
.tr-btn-red:hover{background:var(--tr-red-hover);color:var(--tr-on-dark);}
.tr-btn-dark{background:var(--tr-ink);color:var(--tr-on-dark);}
.tr-btn-dark:hover{background:var(--tr-black-2);color:var(--tr-on-dark);}
.tr-btn-ghost-light{border-color:var(--tr-on-dark);color:var(--tr-on-dark);}
.tr-btn-ghost-light:hover{background:var(--tr-white);border-color:var(--tr-white);color:var(--tr-ink);}
.tr-btn-ghost-dark{border-color:var(--tr-ink);color:var(--tr-ink);}
.tr-btn-ghost-dark:hover{background:var(--tr-ink);color:var(--tr-on-dark);}
/* variant :hover rules above have the same specificity as the inert rule and come later — pin the inert fill on hover too */
.tr-btn-red.disabled:hover,.tr-btn-red:disabled:hover,.tr-btn-dark.disabled:hover,.tr-btn-dark:disabled:hover,.tr-btn-ghost-light.disabled:hover,.tr-btn-ghost-light:disabled:hover,.tr-btn-ghost-dark.disabled:hover,.tr-btn-ghost-dark:disabled:hover{background:var(--tr-grey-300);border-color:var(--tr-grey-300);color:var(--tr-ink);}

/* ══ Eyebrow (small red uppercase label above a heading) ══ */
.tr-eyebrow{display:block;margin-bottom:var(--tr-s3);font-size:var(--tr-fs-13);font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--tr-red-ink);}
.tr-dark .tr-eyebrow{color:var(--tr-red-on-dark);}

/* ══ Section head ══ */
.tr-sh{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--tr-s4) var(--tr-s6);margin-bottom:var(--tr-s6);text-align:left;}
.tr-sh-main{min-width:0;}
.tr-sh-sub{margin-top:var(--tr-s2);font-size:var(--tr-fs-15);line-height:var(--tr-lh);color:var(--tr-grey-500);}
.tr-dark .tr-sh-sub{color:var(--tr-on-dark-muted);}
.tr-sh-link{flex:none;display:inline-flex;align-items:center;gap:var(--tr-s1);min-height:24px;padding-bottom:var(--tr-s1);font-size:var(--tr-fs-14);font-weight:600;color:var(--tr-red-ink);white-space:nowrap;}
.tr-sh-link:hover{color:var(--tr-red-hover);text-decoration:underline;text-underline-offset:3px;}
.tr-dark .tr-sh-link{color:var(--tr-red-on-dark);}

/* ══ Product card ══ */
.tr-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--tr-s5);}
.tr-card-grid--3{grid-template-columns:repeat(3,minmax(0,1fr));}
.tr-card{position:relative;display:flex;flex-direction:column;height:100%;background:var(--tr-white);border:var(--tr-border);border-radius:var(--tr-r-lg);overflow:hidden;color:var(--tr-ink);transition:box-shadow var(--tr-t) var(--tr-ease),border-color var(--tr-t) var(--tr-ease);}
.tr-card:hover{box-shadow:var(--tr-shadow-hover);}
.tr-card-media{position:relative;display:block;aspect-ratio:1/1;background:var(--tr-grey-50);overflow:hidden;}
.tr-card-media img{width:100%;height:100%;object-fit:contain;padding:8%;mix-blend-mode:multiply;transition:transform var(--tr-t-slow) var(--tr-ease);}
.tr-card:hover .tr-card-media img{transform:scale(1.03);}
.tr-card-badges{position:absolute;top:var(--tr-s3);left:var(--tr-s3);z-index:1;display:flex;flex-direction:column;align-items:flex-start;gap:var(--tr-s1);pointer-events:none;}
.tr-card-body{display:flex;flex:1 1 auto;flex-direction:column;gap:var(--tr-s2);padding:14px var(--tr-s4) var(--tr-s4);}
.tr-card-rating{display:flex;align-items:center;gap:var(--tr-s1);font-size:var(--tr-fs-12);line-height:1;color:var(--tr-grey-500);}
.tr-card-rating svg{width:14px;height:14px;fill:var(--tr-star);}
.tr-card-rating svg.is-off{fill:var(--tr-grey-300);}
.tr-card-rating span{margin-left:var(--tr-s1);}
.tr-card-title{min-height:calc(2 * var(--tr-lh-snug) * 1em);font-family:var(--tr-font);font-size:var(--tr-fs-14);font-weight:600;line-height:var(--tr-lh-snug);letter-spacing:0;color:var(--tr-ink);}
/* The 2-line clamp sits on the LINK, not the heading: an element's own overflow:hidden never clips its own outline,
   so the focus ring (base.css, 3px offset) is drawn whole around the title instead of being cut to a bottom/right edge. */
.tr-card-title a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:inherit;}
.tr-card-title a::after{content:"";position:absolute;inset:0;z-index:0;}
.tr-card-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--tr-s2);font-size:var(--tr-fs-16);font-weight:800;line-height:1.2;color:var(--tr-ink);}
.tr-card-price.is-sale{color:var(--tr-red-ink);}
.tr-card-price ins{order:-1;}
.tr-card-price del{font-size:var(--tr-fs-13);font-weight:400;color:var(--tr-grey-500);}
.tr-card-price-from{order:-2;font-size:var(--tr-fs-13);font-weight:400;color:var(--tr-grey-500);} /* order -2: "od" stays in front of the sale price (ins is pulled to -1) */
.tr-card-add{position:relative;z-index:1;margin-top:auto;width:100%;}
.tr-card-add:hover{box-shadow:none;} /* .tr-card has overflow:hidden — the 30px hover shadow would be cut in a straight line 16px below; the card carries the shadow instead */
.tr-card-add.loading{opacity:.6;cursor:progress;}
/* AJAX add-to-cart confirmation without a height change: WC's add-to-cart.js sets .added on the button and appends
   a "View cart" link. The link is hidden (it grew the card by 24px and shifted the row; the header badge is the cart
   link), the label swaps to the button's own data-added text ("Dodano ✓" / "Added ✓", product-card.php) on green. */
.tr-card-add.added{background:var(--tr-green);border-color:var(--tr-green);color:var(--tr-on-dark);}
.tr-card-add.added > span{display:none;}
.tr-card-add.added::after{content:attr(data-added);}
.tr-card .added_to_cart{display:none;}
.tr-card.is-out .tr-card-media img{opacity:.55;filter:grayscale(.6);} /* sold-out card reads as such at a glance (badge "Razprodano" in product-card.php) */

/* ══ Badges (base + modifier: class="tr-badge tr-badge-sale") ══ */
.tr-badge{display:inline-flex;align-items:center;height:22px;padding:0 var(--tr-s2);border-radius:var(--tr-r-pill);font-size:var(--tr-fs-12);font-weight:700;line-height:1;letter-spacing:.02em;white-space:nowrap;}
.tr-badge-sale{background:var(--tr-red);color:var(--tr-on-dark);}
.tr-badge-dark{background:var(--tr-ink);color:var(--tr-on-dark);}
.tr-badge-new{background:var(--tr-white);color:var(--tr-ink);box-shadow:inset 0 0 0 1px var(--tr-grey-100);}

/* ══ Stock dot ══ */
.tr-stock{display:inline-flex;align-items:center;gap:6px;font-size:var(--tr-fs-12);font-weight:500;line-height:1.2;color:var(--tr-grey-500);}
.tr-stock::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:currentColor;}
.tr-stock--in{color:var(--tr-green);}
.tr-dark .tr-stock--in{color:var(--tr-green-on-dark);}
.tr-stock--var{color:var(--tr-ink);}       /* "Več variant" = available: ink, never the grey that reads as unavailable */
.tr-stock--out{color:var(--tr-red-ink);}   /* "Ni na zalogi": the only red state */
.tr-dark .tr-stock--var{color:var(--tr-on-dark);}
.tr-dark .tr-stock--out{color:var(--tr-red-on-dark);}

/* ══ Category tile ══ */
.tr-tile{position:relative;display:block;aspect-ratio:3/2;/* = razmerje fotografij kategorij (1536×1024) → brez obreza */border-radius:var(--tr-r-lg);overflow:hidden;background:var(--tr-black-2);color:var(--tr-on-dark);isolation:isolate;}
.tr-tile--wide{aspect-ratio:16/9;} /* fotografiji širokih ploščic sta 1,75:1 → skoraj brez obreza */
.tr-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.92);/* fotografije kategorij so že temne (v5, 2026-09-10) — močnejši filter jih zaduši */transition:transform var(--tr-t-slow) var(--tr-ease),filter var(--tr-t-slow) var(--tr-ease);}
.tr-tile::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,transparent 55%,color-mix(in srgb,var(--tr-black) 78%,transparent) 100%);} /* preliv in napis sta NA VRHU: motivi (uteži, palica, elastike) so na tleh, zgornji del slik je temen in prazen */
.tr-tile:hover{color:var(--tr-on-dark);}
.tr-tile:hover img{transform:scale(1.04);filter:brightness(1);}
.tr-tile-body{position:absolute;left:0;right:0;top:0;z-index:1;padding:var(--tr-s5);}
.tr-tile-title{display:block;font-family:var(--tr-font);font-size:var(--tr-fs-20);font-weight:800;line-height:var(--tr-lh-tight);letter-spacing:-.01em;}
.tr-tile-count{display:block;margin-top:var(--tr-s1);font-size:var(--tr-fs-13);color:var(--tr-on-dark-muted);}

/* ══ Inputs ══ */
.tr-field{display:flex;flex-direction:column;gap:6px;}
.tr-label{font-size:var(--tr-fs-13);font-weight:600;color:var(--tr-grey-700);}
.tr-dark .tr-label{color:var(--tr-on-dark-muted);}
.tr-input{display:block;width:100%;height:48px;padding:0 14px;border:1px solid var(--tr-grey-400);border-radius:var(--tr-r);background:var(--tr-white);color:var(--tr-ink);font-size:var(--tr-fs-15);line-height:1.2;appearance:none;-webkit-appearance:none;transition:border-color var(--tr-t) var(--tr-ease);}
.tr-input::placeholder{color:var(--tr-grey-500);opacity:1;}
.tr-input:hover{border-color:var(--tr-grey-700);}
.tr-input:focus-visible{border-color:var(--tr-ink);outline-offset:0;}
.tr-input:disabled{background:var(--tr-grey-50);color:var(--tr-grey-500);}
.tr-dark .tr-input{border-color:transparent;}
/* On dark the ring is white (base.css) — at offset 0 it merges with the white pill. 3px offset = white halo with a dark gap: visible. */
.tr-dark .tr-input:focus-visible{outline-offset:3px;}
.tr-input[aria-invalid="true"]{border-color:var(--tr-red);}
textarea.tr-input{height:auto;min-height:120px;padding:var(--tr-s3) 14px;resize:vertical;line-height:var(--tr-lh);}
.tr-input--pill{height:40px;padding:0 44px 0 18px;border-radius:var(--tr-r-pill);}
.tr-input-wrap{position:relative;}
.tr-input-icon{position:absolute;right:var(--tr-s3);top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:28px;height:28px;color:var(--tr-grey-700);}
.tr-input-icon svg{width:18px;height:18px;}
.tr-check{display:flex;align-items:flex-start;gap:var(--tr-s2);min-height:24px;font-size:var(--tr-fs-14);line-height:var(--tr-lh-snug);cursor:pointer;}
.tr-check input{flex:none;width:18px;height:18px;margin-top:2px;accent-color:var(--tr-red);}

/* ══ Select (custom chevron via background-image — never override with a `background:` shorthand) ══ */
.tr-select{display:block;width:100%;height:48px;padding:0 40px 0 14px;border:1px solid var(--tr-grey-400);border-radius:var(--tr-r);background-color:var(--tr-white);background-image:var(--tr-icon-chevron);background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px;color:var(--tr-ink);font-size:var(--tr-fs-15);line-height:1.2;appearance:none;-webkit-appearance:none;cursor:pointer;transition:border-color var(--tr-t) var(--tr-ease);}
.tr-select:hover{border-color:var(--tr-grey-700);}
.tr-select:focus-visible{border-color:var(--tr-ink);outline-offset:0;}
.tr-select option{color:var(--tr-ink);background:var(--tr-white);}
.tr-select--sm{height:40px;font-size:var(--tr-fs-14);}

/* ══ Chips (subcategory quick links, variation swatches) ══ */
.tr-chips{display:flex;flex-wrap:wrap;gap:var(--tr-s2);}
.tr-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:36px;padding:0 14px;border:1px solid var(--tr-grey-400);border-radius:var(--tr-r);background:var(--tr-white);color:var(--tr-ink);font-size:var(--tr-fs-13);font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--tr-t) var(--tr-ease),border-color var(--tr-t) var(--tr-ease),color var(--tr-t) var(--tr-ease);}
.tr-chip:hover{border-color:var(--tr-ink);color:var(--tr-ink);}
.tr-chip.is-active,.tr-chip[aria-pressed="true"]{background:var(--tr-red);border-color:var(--tr-red);color:var(--tr-on-dark);}
/* Sold-out swatches carry information (which sizes exist), so they must stay legible: grey-500 on grey-50 = 4.5:1;
   the strike-through + flat light fill + muted border already say "unavailable" (grey-300 text was 1.7:1). */
.tr-chip:disabled{color:var(--tr-grey-500);border-color:var(--tr-grey-100);background:var(--tr-grey-50);text-decoration:line-through;cursor:not-allowed;}

/* ══ Quantity stepper ( − 1 + ) ══ */
.tr-qty{display:inline-flex;align-items:stretch;height:44px;border:1px solid var(--tr-grey-400);border-radius:var(--tr-r);background:var(--tr-white);overflow:hidden;}
.tr-qty-btn{display:flex;align-items:center;justify-content:center;width:44px;flex:none;color:var(--tr-ink);font-size:var(--tr-fs-18);font-weight:600;line-height:1;transition:background-color var(--tr-t) var(--tr-ease);}
.tr-qty-btn:hover{background:var(--tr-grey-50);}
.tr-qty-btn:disabled{color:var(--tr-grey-300);background:transparent;}
.tr-qty-btn:focus-visible{outline-offset:-3px;} /* .tr-qty clips (overflow:hidden) — draw the ring inside, like the input */
.tr-qty input{width:48px;flex:none;border:0;border-left:1px solid var(--tr-grey-400);border-right:1px solid var(--tr-grey-400);border-radius:0;background:var(--tr-white);color:var(--tr-ink);font-size:var(--tr-fs-15);font-weight:600;text-align:center;appearance:textfield;-moz-appearance:textfield;}
.tr-qty input::-webkit-outer-spin-button,.tr-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.tr-qty input:focus-visible{outline-offset:-2px;}

/* ══ Underline tabs ══ */
.tr-tabs{display:flex;gap:var(--tr-s6);margin-bottom:var(--tr-s5);border-bottom:var(--tr-border);overflow-x:auto;scrollbar-width:none;}
.tr-tabs::-webkit-scrollbar{display:none;}
.tr-tab{position:relative;flex:none;min-height:44px;padding:var(--tr-s3) 0;margin-bottom:-1px;border-bottom:2px solid transparent;color:var(--tr-grey-500);font-size:var(--tr-fs-14);font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer;transition:color var(--tr-t) var(--tr-ease),border-color var(--tr-t) var(--tr-ease);}
.tr-tab:hover{color:var(--tr-ink);}
.tr-tab.is-active,.tr-tab[aria-selected="true"]{color:var(--tr-ink);border-bottom-color:var(--tr-red);}
.tr-tab:focus-visible{outline-offset:-3px;} /* .tr-tabs is overflow-x:auto (clips both axes) — ring inside the 44px tab box */

/* ══ Floating buttons: 44px black circle family. `--tr-fab-lift` (set on body by footer.css ≤768 = tab bar, product.css = sticky add-to-cart)
   lifts both FABs and the cookie banner above the tab bar / sticky add-to-cart bar; gap = --tr-fab-gap (24, 12 ≤768).
   Focus ring: double (white + ink) so it is visible over the black footer AND white sections.
   Surface = black-2 + a .52 white ring: over the footer / mega (both --tr-black) a plain black circle had only a
   14 % hairline to separate it. ≤768 both FABs are hidden (tab bar era): they sat on top of the tab bar and covered
   card content and the footer's last line; the footer link re-opens the banner, "Domov" in the tab bar is the top. ══ */
body.tr-fab-yield .tr-fab{opacity:0;visibility:hidden;pointer-events:none;} /* gumba se umakneta, ko je spodnja vrstica noge v pogledu (main.js) — noga ima svojo povezavo za piškotke */
.tr-fab{position:fixed;bottom:calc(var(--tr-fab-lift,0px) + var(--tr-fab-gap) + env(safe-area-inset-bottom,0px));z-index:var(--tr-z-fab);display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--tr-black-2);color:var(--tr-on-dark);box-shadow:0 0 0 1px var(--tr-on-dark-faint),var(--tr-shadow-hover);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:translate var(--tr-t) var(--tr-ease),opacity var(--tr-t-slow) var(--tr-ease),transform var(--tr-t-slow) var(--tr-ease),visibility 0s linear var(--tr-t-slow);}
.tr-fab svg{width:20px;height:20px;}
.tr-fab:focus-visible{outline-color:var(--tr-white) !important;outline-offset:0;box-shadow:0 0 0 4px var(--tr-ink),var(--tr-shadow-hover);}
.tr-fab:hover{translate:0 -1px;color:var(--tr-on-dark);}
.tr-fab--cookie{left:var(--tr-s5);}
.tr-fab--top{right:var(--tr-s5);opacity:0;visibility:hidden;transform:translateY(8px);}
.tr-fab--top.tr-visible{opacity:1;visibility:visible;transform:none;transition-delay:0s;}

/* ══ Cookie banner (dark card, bottom-left). Starts visibility:hidden + pointer-events:none —
   never an invisible click-blocker; JS adds .tr-cookie-open at once when there is no consent (first paint, no fade: .tr-cookie-instant).
   Surface black-2 + .52 white ring: over the black footer the banner otherwise merged with the footer text. ══ */
.tr-cookie-banner{position:fixed;left:var(--tr-s5);bottom:calc(var(--tr-fab-lift,0px) + var(--tr-fab-gap) + env(safe-area-inset-bottom,0px));z-index:var(--tr-z-cookie);width:min(380px,calc(100vw - 2 * var(--tr-s5)));padding:var(--tr-s5);border-radius:var(--tr-r-lg);background:var(--tr-black-2);color:var(--tr-on-dark);box-shadow:0 0 0 1px var(--tr-on-dark-faint),var(--tr-shadow-hover);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(12px);transition:opacity var(--tr-t-slow) var(--tr-ease),transform var(--tr-t-slow) var(--tr-ease),visibility 0s linear var(--tr-t-slow);}
.tr-cookie-banner.tr-cookie-open{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s;}
.tr-cookie-banner.tr-cookie-instant{transition:none;}
/* While the mega menu is open (hover or keyboard focus-within; header.css) the banner sits over its first column on
   laptop-height viewports — fade it out of the way and let clicks through; it comes back the moment the menu closes. */
body:has(.tr-nav-item--mega:not(.is-suppressed):hover,.tr-nav-item--mega:not(.is-suppressed):focus-within) .tr-cookie-banner.tr-cookie-open{opacity:.15;pointer-events:none;}
.tr-cookie-title{display:block;font-size:var(--tr-fs-14);font-weight:700;line-height:var(--tr-lh-snug);}
.tr-cookie-text{margin-top:var(--tr-s2);font-size:var(--tr-fs-13);line-height:var(--tr-lh);color:var(--tr-on-dark-muted);}
.tr-cookie-text a{display:inline-block;margin-top:var(--tr-s2);color:var(--tr-on-dark);text-decoration:underline;text-underline-offset:2px;}
.tr-cookie-actions{display:flex;flex-wrap:wrap;gap:var(--tr-s2);margin-top:var(--tr-s4);}
.tr-cookie-actions .tr-btn{flex:1 1 130px;padding:0 var(--tr-s3);}
.tr-cookie-banner.tr-cookie-open ~ .tr-fab--cookie{opacity:0;visibility:hidden;pointer-events:none;}
body.tr-drawer-active .tr-cookie-banner,body.tr-drawer-active .tr-fab{opacity:0;visibility:hidden;pointer-events:none;}

/* ══ Pagination (square 40px buttons; WC's ul.page-numbers works inside via display:contents — the ul carries the
   same .page-numbers class as the buttons, so the contents rule needs the higher specificity or the ul is drawn as a
   bordered 40px box around the buttons and the gap never applies) ══ */
.tr-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--tr-s2);margin-top:var(--tr-s7);}
.tr-pagination ul.page-numbers{display:contents;}
.tr-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 var(--tr-s3);border:1px solid var(--tr-grey-400);border-radius:var(--tr-r);color:var(--tr-ink);font-size:var(--tr-fs-14);font-weight:600;line-height:1;transition:border-color var(--tr-t) var(--tr-ease),background-color var(--tr-t) var(--tr-ease),color var(--tr-t) var(--tr-ease);}
.tr-pagination a.page-numbers:hover{border-color:var(--tr-ink);color:var(--tr-ink);}
.tr-pagination .page-numbers.current{background:var(--tr-ink);border-color:var(--tr-ink);color:var(--tr-on-dark);}
.tr-pagination .page-numbers.dots{border-color:transparent;color:var(--tr-grey-500);}
.tr-pagination .page-numbers svg{width:16px;height:16px;}

/* ══ Breadcrumb ══ */
.tr-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:var(--tr-s2);margin-bottom:var(--tr-s5);font-size:var(--tr-fs-13);line-height:1.2;color:var(--tr-grey-500);}
.tr-crumb a{display:inline-flex;align-items:center;min-height:24px;margin:-4px 0;color:var(--tr-grey-500);} /* 24px target (WCAG 2.5.8) on a 16px line: negative margins keep the row height */
.tr-crumb a:hover{color:var(--tr-ink);}
.tr-crumb-sep{color:var(--tr-grey-300);}
.tr-crumb [aria-current="page"]{color:var(--tr-grey-700);}

/* ══ Product page: WC's default meta block (SKU/categories) is rendered in our own block instead ══ */
.product_meta{display:none;}

/* ══ Responsive ══ */
@media (max-width:1024px){
  .tr-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .tr-chip{height:44px;} /* touch chrome starts at 1024 (burger, tab bar, 44px filter rows) — chips follow, not only ≤768 */
}
@media (max-width:768px){
  .tr-sh{flex-direction:column;align-items:flex-start;gap:var(--tr-s3);margin-bottom:var(--tr-s5);}
  .tr-sh-link{min-height:44px;padding-bottom:0;} /* standalone link next to 44px controls: full tap target (SPEC §9) */
  .tr-card-grid,.tr-card-grid--3{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--tr-s3);}
  .tr-tile,.tr-tile--wide{aspect-ratio:3/2;}
  .tr-tile-body{padding:var(--tr-s4);}
  /* compact banner on phones: tighter rhythm, the policy link stays inline, both buttons in one row */
  .tr-cookie-banner{left:var(--tr-s4);width:calc(100vw - 2 * var(--tr-s4));padding:var(--tr-s4);}
  .tr-cookie-text{margin-top:var(--tr-s1);}
  .tr-cookie-text a{margin-top:0;}
  .tr-cookie-actions{margin-top:var(--tr-s3);}
  .tr-cookie-actions .tr-btn{flex:1 1 0;}
  .tr-fab--cookie,.tr-fab--top{display:none;} /* see the FAB note above */
  .tr-pagination .page-numbers{min-width:44px;height:44px;padding:0 var(--tr-s2);}
  .tr-crumb{gap:var(--tr-s2) var(--tr-s3);} /* wider horizontal gap between the 24px targets */
}
@media (max-width:480px){
  .tr-btn{padding:0 18px;}
  .tr-card-body{padding:var(--tr-s3);}
  .tr-card-add{padding:0 var(--tr-s3);font-size:var(--tr-fs-12);letter-spacing:0;}
  .tr-card-add-long{display:none;} /* hides only the label tail ("to cart" / "option" / "product"); the cart icon stays — it is what tells add-to-cart from view */
}

/* Omnibus (ZVPot-1 čl. 15): najnižja cena zadnjih 30 dni pod akcijsko ceno */
.tr-omnibus{display:block;margin-top:var(--tr-s1);font-size:var(--tr-fs-12);font-weight:400;line-height:var(--tr-lh-snug);color:var(--tr-grey-500);text-decoration:none;}
.tr-dark .tr-omnibus{color:var(--tr-on-dark-muted);}

/* ── Katalog 2026-10: pogosta vprašanja pod opisom izdelka in na dnu kategorije (inc/katalog.php) — v components.css, ker se izriše tudi na kategorijah ── */
.tr-faq-block{margin-top:var(--tr-s7);border-top:1px solid var(--tr-grey-100);padding-top:var(--tr-s6);}
.tr-faq-block-title{margin:0 0 var(--tr-s4);font-family:var(--tr-font-display);font-size:var(--tr-fs-20);line-height:var(--tr-lh-tight);color:var(--tr-ink);}
.tr-faq-item{border-bottom:1px solid var(--tr-grey-100);}
.tr-faq-item summary{display:flex;justify-content:space-between;align-items:center;gap:var(--tr-s4);padding:var(--tr-s4) 0;font-weight:600;font-size:var(--tr-fs-16);line-height:var(--tr-lh-snug);color:var(--tr-ink);cursor:pointer;list-style:none;}
.tr-faq-item summary::-webkit-details-marker{display:none;}
.tr-faq-item summary::after{content:"+";flex:0 0 auto;font-size:var(--tr-fs-20);font-weight:400;color:var(--tr-red);transition:transform var(--tr-t) var(--tr-ease);}
.tr-faq-item[open] summary::after{transform:rotate(45deg);}
.tr-faq-ans{padding:0 0 var(--tr-s4);color:var(--tr-grey-700);font-size:var(--tr-fs-15);line-height:var(--tr-lh);}
.tr-faq-ans p{margin:0 0 var(--tr-s2);}
.tr-cat-faq{margin-top:var(--tr-s8);}

/* Veliki zasloni (≥ 1920 px, širši vsebnik): mreža trgovine (s stranskim filtrom) dobi 4. stolpec, kartice ne rastejo čez ~420 px */
@media (min-width:1920px){
  .tr-card-grid--3{grid-template-columns:repeat(4,minmax(0,1fr));}
}
