/* Netil Media - lane catalog/product (category, search, product). Base styles: theme.css (static). */

/* card: promo price in one line, old price struck */
.mk-price-special { color: var(--mk-red, #CF2B1F); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-price-old { color: var(--mk-muted, #6B6B6B); font-weight: 400; font-size: .8em; margin-left: 4px; }
.mk-card .mk-price { white-space: nowrap; }
.mk-card-actions .btn { height: 2rem; min-height: 2rem; }
.mk-btn-wish.is-on { background: #fff; }
.mk-btn-wish.is-on i { color: #E0242B; }

/* listing */
.mk-grid:empty::before { content: "Brak produktów spełniających kryteria."; grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--mk-muted, #6B6B6B); }
.mk-pagination a.btn { text-decoration: none; }
.mk-pagination { flex-wrap: nowrap; margin-top: 16px; }
.mk-sorts .select { padding-right: 2.25rem; max-width: 100%; }
.mk-filters-panel .mk-check span small { font-weight: 400; }
.mk-filters-reset { margin-top: -8px; }
.mk-price-range { width: 100%; }
.mk-price-range .input { min-width: 0; flex: 1 1 0; }
.mk-subcat-icon { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--mk-orange, #FF503C); flex: 0 0 auto; }
.mk-cat-desc { line-height: 1.6; }
.mk-rec-listing .mk-filters-side { display: none; }
.mk-rec-listing .mk-filters { display: block; }
.mk-empty-title { font-size: 20px; font-weight: 600; margin: 0; }

/* routine 4: listing grid, toolbar, filters */
.mk-filters-content { min-width: 0; }
.mk-grid > .mk-card { min-width: 0; height: 100%; }
.mk-grid .mk-card-img img { width: 100%; height: 100%; }
.mk-grid .mk-card-body :where(p) { flex-grow: 0; }
.mk-toolbar { min-width: 0; }
.mk-sorts .select { width: auto; min-width: 0; padding-left: 12px; padding-right: 2.5rem; }
.mk-sorts .select:first-child { min-width: 200px; }
.mk-sorts .select:last-child { min-width: 120px; }
.mk-filters-panel { overflow-x: hidden; }
.mk-filters-panel .mk-check { white-space: normal; align-items: flex-start; }
.mk-filters-panel .mk-check span { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; padding-top: 1px; }
.mk-filters-panel .checkbox { flex: 0 0 auto; }
.mk-price-range .input:focus, .mk-price-range .input:focus-within { outline: none; border-color: var(--mk-orange, #FF503C); box-shadow: none; z-index: 1; }
.mk-price-range .input { -moz-appearance: textfield; padding: 0 8px; border: 1px solid var(--mk-line, #D9D9D9); }
.mk-price-range .input + .input { margin-left: -1px; }
.mk-price-range .mk-unit { margin-left: -1px; border-radius: 0 8px 8px 0; }
.mk-price-range .input::-webkit-outer-spin-button, .mk-price-range .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mk-more-brands summary { cursor: pointer; color: var(--mk-red, #CF2B1F); font-size: 13px; padding: 4px 0; list-style: none; }
.mk-more-brands summary::-webkit-details-marker { display: none; }
.mk-more-brands[open] summary { display: none; }
.mk-search-count { margin: 4px 0 12px; color: var(--mk-muted, #6B6B6B); }
.mk-cat-promo { margin-top: 16px; }
@media (max-width: 767px) {
  .mk-sorts .select:first-child, .mk-sorts .select:last-child { min-width: 0; }
  .mk-sorts .select:first-child { flex: 1.4 1 0; }
  .mk-sorts .select:last-child { flex: 1 1 0; }
  .mk-pagination .btn { padding: 0 10px; min-width: 2rem; }
}

/* product: gallery thumbs under the image, 6 visible, smooth horizontal scroll */
.mk-product > * { min-width: 0; }
.mk-gallery-main .mk-gallery-img { width: 80%; height: auto; max-height: 100%; }
.mk-thumbs { max-width: min(100%, calc(6 * 72px + 5 * 8px)) !important; }
.mk-thumbs { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; max-width: calc(6 * 72px + 5 * 8px); margin-left: auto; margin-right: auto; justify-content: flex-start; }
.mk-thumbs::-webkit-scrollbar { display: none; }
.mk-thumb { flex: 0 0 72px; scroll-snap-align: start; }
.mk-gallery-single .mk-arrow, .mk-gallery-single .mk-thumbs { display: none; }

/* product: lightbox with side arrows and contrasting close */
.mk-lightbox-box { padding: 40px 56px; }
.mk-lightbox-close { background: #fff; border: 1px solid var(--mk-line, #D9D9D9); color: #0D0D0D; z-index: 2; }
.mk-lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: var(--mk-orange, #FF503C); border-color: var(--mk-orange, #FF503C); color: #fff; z-index: 2; }
.mk-lb-arrow:hover { background: var(--mk-red, #CF2B1F); border-color: var(--mk-red, #CF2B1F); }
.mk-lb-prev { left: 8px; }
.mk-lb-next { right: 8px; }
@media (max-width: 640px) { .mk-lightbox-box { padding: 44px 8px 16px; } .mk-lb-arrow { top: auto; bottom: 12px; transform: none; } .mk-lb-prev { left: calc(50% - 56px); } .mk-lb-next { right: calc(50% - 56px); } .mk-lightbox-box img { margin-bottom: 52px; } }

/* product: options, buybox */
.mk-variant input { display: none; }
.mk-variant small { font-weight: 400; margin-left: 4px; }
.mk-buy-old { margin: 0; }
.mk-stock-out { color: var(--mk-red, #CF2B1F); }
.mk-buy-row .mk-btn-wish, .mk-buy-row .mk-qty .btn, .mk-buy-row .mk-qty .input { height: 2rem; min-height: 2rem; }
.mk-buy-cart { white-space: nowrap; flex-wrap: nowrap; }
.mk-qty .input { width: 3.25rem; text-align: center; padding: 0 4px; -moz-appearance: textfield; }
.mk-qty .input::-webkit-outer-spin-button, .mk-qty .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* product: tabs content */
.mk-tab-panel img { max-width: 100%; height: auto; }
.mk-tab-panel h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.mk-tab-panel h3 { font-weight: 600; margin: 12px 0 6px; }
.mk-tab-panel p { margin: 0 0 10px; line-height: 1.6; }
.mk-tab-panel ul { list-style: disc; padding-left: 20px; margin-bottom: 10px; }
.mk-spec-wrap { width: 100%; overflow-x: auto; }
.mk-spec td, .mk-spec th { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) { .mk-spec th { width: 45%; } .mk-spec td, .mk-spec th { padding: 8px 6px; font-size: 13px; } }

/* reviews */
.mk-review-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.mk-review-item { border: 1px solid var(--mk-line, #D9D9D9); border-radius: 12px; padding: 12px 14px; }
.mk-review-item p { margin: 6px 0 0; }
.mk-review-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mk-review-none { margin: 12px 0; }
.mk-review-pages .pagination { display: inline-flex; list-style: none; padding: 0; margin: 4px 0 12px; border-radius: 8px; overflow: hidden; border: 1px solid var(--mk-line, #D9D9D9); }
.mk-review-pages .page-item + .page-item { border-left: 1px solid var(--mk-line, #D9D9D9); }
.mk-review-pages .page-link { display: flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 10px; font-size: 14px; font-weight: 600; color: #0D0D0D; background: #fff; }
.mk-review-pages .page-item.active .page-link { background: var(--mk-orange, #FF503C); color: #fff; }
.mk-review-pages .page-link:hover { background: #F2F2F2; }
.mk-rate-input .mask { width: 1.75rem; height: 1.75rem; }
.mk-review-form { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }

/* breadcrumbs: one line, no scrollbar on mobile */
.mk-breadcrumbs { overflow: hidden; }
.mk-breadcrumbs > ul { flex-wrap: nowrap; min-width: 0; }
.mk-breadcrumbs > ul > li { flex: 0 0 auto; }
.mk-breadcrumbs > ul > li:last-child { flex: 1 1 auto; min-width: 0; }
/* pagination: one even row, every cell the same size and style; gap "…" looks like the others */
.mk-pagination { display: flex; justify-content: center; gap: 6px; }
.mk-pagination .join-item.btn { min-width: 2.25rem; height: 2.25rem; min-height: 2.25rem; padding: 0 10px; border-radius: 8px !important; margin: 0 !important; border: 1px solid var(--mk-line, #D9D9D9); background: #fff; color: #0D0D0D; font-size: 14px; font-weight: 600; line-height: 1; box-shadow: none; animation: none; transform: none; }
.mk-pagination a.join-item.btn:hover { background: #F2F2F2; border-color: var(--mk-line, #D9D9D9); }
.mk-pagination .join-item.btn.btn-active, .mk-pagination .join-item.btn.btn-active:hover { background: var(--mk-orange, #FF503C); border-color: var(--mk-orange, #FF503C); color: #fff; }
.mk-pagination .mk-page-gap, .mk-pagination .mk-page-gap:hover { background: transparent !important; border-color: transparent !important; color: var(--mk-muted, #6B6B6B) !important; min-width: 1.5rem !important; padding: 0 2px !important; cursor: default; pointer-events: none; letter-spacing: 1px; }
@media (max-width: 767px) { .mk-pagination { gap: 4px; } .mk-pagination .join-item.btn { min-width: 2rem; height: 2rem; min-height: 2rem; padding: 0 8px; } }
