/* Kuja Media — lane catalog-product (category / search / product). Loaded after theme.css via <link> in templates. */

/* ---------- listing / filters ---------- */
.mk-filters .mt-price-row { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); gap:6px; align-items:center; }
.mk-filters .mt-price-row .input { width:100%; min-width:0; padding:0 8px; font-size:13px; }
.mk-filters .mt-price-row .input::-webkit-outer-spin-button,.mk-filters .mt-price-row .input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.mk-filters .mt-price-row .input { -moz-appearance:textfield; }
.mk-filters .input:focus, .mk-filters .input:focus-within { outline:none; border-color:var(--mk-blue); box-shadow:none; }
.mk-filters label span { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mk-filters label em { font-style:normal; font-size:11px; color:var(--mk-muted,#888); }
.mk-filters label:has(input:disabled) { opacity:.45; cursor:default; }
.mk-filters .mt-collapsed .mt-brand:nth-of-type(n+9) { display:none; }
.mk-filters .mt-more { background:none; border:0; padding:4px 0 0; color:var(--mk-blue); font-size:13px; cursor:pointer; }
.mk-filters .mt-brand-search { width:100%; margin:0 0 6px; font-size:13px; }
.mk-filters .mt-reset { display:block; text-align:center; font-size:13px; color:var(--mk-blue); margin-top:8px; }
.mk-filters { scrollbar-width:none; }
.mk-filters::-webkit-scrollbar { display:none; }

.mk-listbar .select { padding-left:10px; padding-right:32px; background-position:calc(100% - 14px) calc(1px + 50%), calc(100% - 9px) calc(1px + 50%); min-width:0; }
.mk-listbar .sorts .select:first-child { width:150px; }
.mk-listbar .sorts .select:last-child { width:110px; }
.mk-listbar .count { white-space:nowrap; }
@media (max-width:767px){ .mk-listbar .sorts .select:first-child, .mk-listbar .sorts .select:last-child { width:auto; } }

.mk-grid > .mk-card { min-width:0; }
.mk-deliv .sup { color:var(--mk-orange,#f9993a); }
.mk-stars .on, .mk-stars .bi-star-fill.on { color:var(--mk-yellow,#ffc107); }

.mt-subcats { display:flex; flex-wrap:wrap; gap:6px; margin:-4px 0 14px; }
.mt-subcats .badge { height:auto; padding:6px 12px; background:var(--mk-surface); border:0; font-size:13px; color:var(--mk-text); }
.mt-subcats .badge:hover { color:var(--mk-blue); }
.mt-catdesc { margin-top:24px; font-size:14px; }
.mt-noresult { margin-top:4px; }

/* pager: separate rounded buttons, sliding window, no ellipsis */
.mk-pager { display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:28px; }
.mk-pg-nav { display:flex; align-items:center; gap:6px; flex-wrap:nowrap; }
.mk-pg-nums { display:flex; align-items:center; gap:6px; }
.mk-pg { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 10px; border:1px solid #dcdcdc; border-radius:20px; background:#fff; color:var(--mk-text,#1f1f1f); font-size:14px; font-weight:600; line-height:1; text-decoration:none; transition:border-color .15s, color .15s, background-color .15s, box-shadow .15s; }
a.mk-pg:hover { border-color:var(--mk-blue); color:var(--mk-blue); background:#f2f8ff; }
a.mk-pg:focus-visible { outline:2px solid var(--mk-blue); outline-offset:2px; }
.mk-pg.is-active { background:var(--mk-blue); border-color:var(--mk-blue); color:#fff; box-shadow:0 2px 6px rgba(10,108,194,.25); cursor:default; }
.mk-pg-arrow { font-size:13px; color:#4a4a4a; }
.mk-pg.is-disabled { color:#c4c4c4; border-color:#ececec; background:#fafafa; cursor:not-allowed; }
.mk-pg-info { font-size:13px; color:#6b6b6b; }
.mk-pg-info b { color:var(--mk-text,#1f1f1f); font-weight:600; }
@media (max-width:767px){
  .mk-pg-nav, .mk-pg-nums { gap:4px; }
  .mk-pg { min-width:36px; height:36px; padding:0 8px; font-size:13px; }
}
@media (max-width:389px){ .mk-pg { min-width:32px; height:32px; padding:0 6px; } }

/* breadcrumbs — one line, last crumb ellipsis */
.mk-bc ul { overflow:hidden; }
.mk-bc li { flex:0 0 auto; }
.mk-bc li:last-child { flex:1 1 auto; min-width:60px; }
@media (max-width:767px){ .mk-bc li:not(:first-child):not(:last-child) { max-width:34vw; overflow:hidden; text-overflow:ellipsis; } .mk-bc li:not(:first-child):not(:last-child) a { overflow:hidden; text-overflow:ellipsis; display:block; white-space:nowrap; } }
.mk-bc::-webkit-scrollbar { display:none; }

/* ---------- PDP ---------- */
.mk-gallery { min-width:0; }
.mk-gallery .main { overflow:hidden; }
.mk-gallery .main img { width:auto; height:auto; }
.mk-gallery .main .mk-arrow.prev { left:10px; } .mk-gallery .main .mk-arrow.next { right:10px; }
.mk-thumbs { scroll-behavior:smooth; scrollbar-width:none; scroll-snap-type:x mandatory; }
.mk-thumbs::-webkit-scrollbar { display:none; }
.mk-thumbs button { flex:0 0 calc((100% - 40px) / 6); height:auto; aspect-ratio:1/1; scroll-snap-align:start; cursor:pointer; }
.mk-buy { min-width:0; }
.mk-buy .row { flex-wrap:nowrap; }
.mk-buy .row .mk-qty { flex:0 0 auto; }
.mk-buy .mt-opt-err { color:var(--mk-red,#eb5757); font-size:12px; margin-top:4px; }
.mk-buy .mt-chip input { position:absolute; opacity:0; pointer-events:none; }
.mk-buy .mt-chip span { display:inline-flex; align-items:center; gap:6px; border:1px solid #dcdcdc; border-radius:20px; padding:5px 12px; font-size:13px; cursor:pointer; background:#fff; }
.mk-buy .mt-chip span img { width:20px; height:20px; border-radius:50%; object-fit:cover; }
.mk-buy .mt-chip input:checked + span { border-color:var(--mk-blue); color:var(--mk-blue); box-shadow:0 0 0 1px var(--mk-blue) inset; }
.mk-buy .mt-discounts { margin:0; padding:0; list-style:none; color:var(--mk-muted,#666); }
.mk-pdp .mk-heart.on { background:var(--mk-red); border-color:var(--mk-red); color:#fff; }
.mk-tabs .tab-content { overflow:visible; }
.mk-spec td { overflow-wrap:anywhere; vertical-align:top; }
@media (max-width:767px){
  .mk-tabs.tabs { display:grid; grid-template-columns:repeat(3, auto) 1fr; }
  .mk-tabs .tab { padding:0 10px; font-size:13px; margin-right:4px; }
  .mk-spec td:first-child { width:42%; }
  .mk-buy .row { gap:6px; }
  .mk-pdp .mk-cartbig { padding:0 10px; min-width:0; }
}
.mt-review-h { font-size:15px; font-weight:700; margin:16px 0 0; }
.mk-rate-input .mask-star-2 { width:28px; height:28px; background-color:var(--mk-yellow,#ffc107); }
.mt-hp { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }
.mk-reviews { display:grid; gap:12px; margin-bottom:12px; }
.mk-review { border:1px solid var(--mk-border,#eee); border-radius:8px; padding:12px; font-size:13px; }
.mk-review p { margin:6px 0 0; }
.mk-review .mk-stars { font-size:12px; }
.mk-review .mk-stars .bi-star-fill { color:var(--mk-yellow,#ffc107); }
#mt-review-list .mk-pager { align-items:flex-start; margin:0 0 16px; }

/* lightbox */
.mt-lb { position:fixed; inset:0; z-index:1000; background:rgba(17,17,17,.94); display:flex; align-items:center; justify-content:center; }
.mt-lb[hidden] { display:none; }
.mt-lb img { max-width:min(92vw,1100px); max-height:86vh; object-fit:contain; background:#fff; border-radius:8px; }
.mt-lb button { position:absolute; width:48px; height:48px; border-radius:50%; border:0; background:#fff; color:#222; font-size:20px; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,.4); }
.mt-lb button:hover { background:var(--mk-blue,#199fff); color:#fff; }
.mt-lb .mt-lb-close { top:16px; right:16px; }
.mt-lb .mt-lb-nav.prev { left:16px; top:50%; transform:translateY(-50%); }
.mt-lb .mt-lb-nav.next { right:16px; top:50%; transform:translateY(-50%); }
.mt-lb .mt-lb-count { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); color:#fff; font-size:14px; background:rgba(0,0,0,.5); padding:4px 12px; border-radius:14px; }
@media (max-width:767px){ .mt-lb button { width:42px; height:42px; } .mt-lb .mt-lb-nav.prev { left:8px; } .mt-lb .mt-lb-nav.next { right:8px; } .mt-lb img { max-width:96vw; } }
html.mt-lock, html.mt-lock body { overflow:hidden; }

/* card actions must fit the card: short label when the card is narrow (desktop listing with filters = ~150px) */
.mk-card { container-type:inline-size; }
.mk-card .card-actions { min-width:0; }
.mk-card .mk-cartbtn { min-width:0; overflow:hidden; }
.mk-card .mk-cartbtn .mt-short { display:none; }
@container (max-width:185px) { .mk-card .mk-cartbtn .mt-full { display:none; } .mk-card .mk-cartbtn .mt-short { display:inline; } }
