/* astron catalog-product lane: listing / product / search additions on top of static theme.css */

/* ---- card: equal height, price on one line ---- */
.mk-grid-cell { display: flex; min-width: 0; }
.mk-grid-cell > .mk-card, .carousel-item > .mk-card { width: 100%; }
.mk-card .card-body { display: flex; flex-direction: column; }
.mk-price-line { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.mk-card .mk-price-line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.mk-card .mk-price-line .mk-old { margin-left: 0; }
.mk-stars .fa-solid.fa-star { color: #d4d4d4; }
.mk-stars .fa-solid.fa-star.is-on { color: var(--mk-red); }
.mk-actions .mk-cartbtn { display: inline-flex; align-items: center; justify-content: center; }
.mk-grid .mk-actions .mk-cartbtn, .mk-row .mk-actions .mk-cartbtn { padding: 0 6px; gap: 5px; letter-spacing: -.2px; }
.mk-card { container-type: inline-size; }
/* narrow cards: never clip icon/label — icon stays, label ellipsizes, then hides */
.mk-actions .mk-cartbtn { overflow: hidden; }
.mk-actions .mk-cartbtn > i { flex: none; }
.mk-actions .mk-cartbtn .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 245px) { .mk-actions .mk-cartbtn .lbl { display: none; } .mk-actions .mk-cartbtn { font-size: 16px; } }
/* fallback without container queries: 4-col listing cards are <=240px wide */
@supports not (container-type: inline-size) {
  @media (min-width: 1201px) { .mk-listing .mk-grid .mk-actions .mk-cartbtn .lbl { display: none; } .mk-listing .mk-grid .mk-actions .mk-cartbtn { font-size: 16px; } }
}

/* ---- listing ---- */
.mk-listing-main { min-width: 0; }
/* sort / limit selects: site style + symmetric SVG chevron (replaces DaisyUI gradient triangle) */
.mk-toolbar .select { max-width: 220px; height: 40px; min-height: 40px; padding: 0 2.4rem 0 14px; font-size: 13px; font-weight: 600; color: var(--mk-navy, #26316d); background-color: #fff; border: 1px solid #dcdfe6; border-radius: 6px !important; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2326316d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px 8px; background-position: right 14px center; transition: border-color .15s, background-color .15s; }
.mk-toolbar .select:hover { border-color: var(--mk-navy, #26316d); background-color: #f3f4f8; }
.mk-toolbar .select:focus, .mk-toolbar .select:focus-visible { border-color: var(--mk-red, #9f050d); background-color: #fff; }
.mk-toolbar .select option { color: #1f2937; font-weight: 400; }
.mk-price-range { display: flex; gap: 8px; align-items: center; }
.mk-price-range .input { flex: 1 1 0; min-width: 0; width: 0; height: 36px; padding: 0 8px; font-size: 13px; border-color: var(--mk-border); -moz-appearance: textfield; }
.mk-price-range .input::-webkit-outer-spin-button, .mk-price-range .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mk-price-range .input:focus { outline: 2px solid var(--mk-red); outline-offset: -2px; border-color: var(--mk-red); }
.mk-filter-box label .mk-f-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-filter-box label .mk-f-count { color: #777; font-size: 12px; }
.mk-filter-box .checkbox { border-radius: 0; border-color: #999; }
.mk-filter-box .checkbox:checked { --chkbg: var(--mk-red); --chkfg: #fff; border-color: var(--mk-red); }
.mk-filter-reset.btn { color: var(--mk-navy, #26316d); background: #fff; border: 1px solid #dcdfe6; box-shadow: none; transition: border-color .15s, color .15s, background-color .15s; }
.mk-filter-reset.btn:hover, .mk-filter-reset.btn:focus-visible, .mk-filter-reset.btn:active { background: #fff; border-color: var(--mk-red, #9f050d); color: var(--mk-red, #9f050d); outline: none; }
.mk-pager .join { flex-wrap: nowrap; gap: 6px; border-radius: 0; }
.mk-pager .join-item.btn { min-width: 40px; height: 40px; min-height: 40px; padding: 0 10px; border: 1px solid #dcdfe6 !important; border-radius: 0 !important; background: #fff; color: var(--mk-navy, #26316d); font-size: 14px; font-weight: 700; box-shadow: none; transition: border-color .15s, color .15s, background-color .15s; }
.mk-pager .join-item.btn:hover { border-color: var(--mk-red, #9f050d) !important; color: var(--mk-red, #9f050d); background: #fff; }
.mk-pager .join-item.btn.btn-primary, .mk-pager .join-item.btn.btn-primary:hover { background: var(--mk-red, #9f050d); border-color: var(--mk-red, #9f050d) !important; color: #fff; cursor: default; }
.mk-pager .mk-pg-arrow { font-size: 12px; }
@media (max-width: 480px) { .mk-pager .join { gap: 4px; } .mk-pager .join-item.btn { min-width: 34px; height: 34px; min-height: 34px; padding: 0 6px; font-size: 13px; } }
.mk-cat-desc { margin-top: 28px; font-size: 14px; line-height: 1.7; color: #333; }
.mk-empty-h { font-weight: 800; font-style: italic; color: var(--mk-navy); text-transform: uppercase; font-size: 22px; margin: 14px 0 6px; }
.mk-empty p { max-width: 560px; margin: 0 auto; }
.mk-grid-full { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .mk-toolbar .select { max-width: none; padding: 0 1.9rem 0 10px; font-size: 12px; background-position: right 10px center; }
  .mk-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-filter-form .btn-primary { position: sticky; bottom: 0; }
}

/* ---- product page ---- */
.mk-pdp > div { min-width: 0; }
.mk-gal-badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.mk-gallery-main { overflow: hidden; }
.mk-gallery-main img { cursor: zoom-in; }
.mk-gallery-main .mk-row-arrow { top: 50%; }
.mk-zoom { z-index: 3; color: var(--mk-navy); background: rgba(255,255,255,.9); }
.mk-thumbs { overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mk-thumbs::-webkit-scrollbar { display: none; }
.mk-thumbs button { flex: 0 0 calc((100% - 50px) / 6); width: auto; height: auto; aspect-ratio: 1 / 1; scroll-snap-align: start; }
.mk-pdp-info .mk-price-line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; }
.mk-pdp-info .mk-old { margin-left: 0; }
.mk-warn { color: #b45309; font-weight: 700; }
.mk-discounts { margin-top: 8px; font-size: 13px; }
.mk-pdp-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mk-pdp-add.is-busy { opacity: .7; pointer-events: none; }
.mk-buyrow .mk-qty input { background: #fff; }
/* PDP qty: slanted like the brand price/skew shapes */
.mk-buyrow .mk-qty, .mk-cart-item .mk-qty, .mk-mini-qty { transform: skewX(-14deg); border: 2px solid var(--mk-red); background: #fff; margin: 0 6px; overflow: hidden; }
.mk-buyrow .mk-qty > *, .mk-cart-item .mk-qty > *, .mk-mini-qty > * { transform: skewX(14deg); }
.mk-buyrow .mk-qty button, .mk-cart-item .mk-qty button, .mk-mini-qty button { background: #fff; color: var(--mk-red); font-weight: 800; }
.mk-buyrow .mk-qty button:hover, .mk-cart-item .mk-qty button:hover, .mk-mini-qty button:hover { color: var(--mk-navy); }
.mk-buyrow .mk-qty input, .mk-cart-item .mk-qty input, .mk-mini-qty span { color: var(--mk-navy); background: #fff; }
.mk-buyrow .mk-qty input:focus, .mk-cart-item .mk-qty input:focus { outline: none; }
.mk-pdp-msg { font-size: 13px; color: var(--mk-red); font-weight: 600; margin-top: -6px; }
.mk-options { margin-top: 16px; display: grid; gap: 12px; }
.mk-opt-label { font-weight: 700; color: var(--mk-navy); font-size: 14px; margin-bottom: 4px; }
.mk-opt-values { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-opt-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--mk-border); padding: 6px 10px; font-size: 13px; cursor: pointer; }
.mk-opt-chip:has(input:checked) { border-color: var(--mk-red); }
.mk-opt-err, .mk-field-err { color: var(--mk-red); font-size: 12px; font-weight: 600; margin-top: 4px; }
/* product tabs: one white card, underline tabs (dh-tabs) */
.mk-section .mk-tabs { display: flex; align-items: stretch; gap: 0; margin-top: 34px; padding: 0 12px; background: #fff; border: 0; border-bottom: 1px solid var(--mk-border); border-radius: 10px 10px 0 0; box-shadow: var(--mk-shadow); clip-path: inset(-24px -24px 0 -24px); position: relative; z-index: 1; overflow: visible; }
.mk-section .mk-tabs .tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 56px; padding: 0 20px; margin: 0; background: transparent; border: 0; border-radius: 0; color: #555; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: 0; white-space: nowrap; flex: 0 0 auto; min-width: 0; overflow: visible; transition: color .15s; }
.mk-section .mk-tabs .tab > i { font-size: 15px; color: #9a9a9a; transition: color .15s; }
.mk-section .mk-tabs .tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background .15s; }
.mk-section .mk-tabs .tab:hover, .mk-section .mk-tabs .tab:hover > i { color: var(--mk-red); background: transparent; }
.mk-section .mk-tabs .tab.tab-active { color: var(--mk-navy); background: transparent; }
.mk-section .mk-tabs .tab.tab-active > i { color: var(--mk-red); }
.mk-section .mk-tabs .tab.tab-active::after { background: var(--mk-red); }
.mk-section .mk-tabs .tab:focus-visible { outline: 2px solid var(--mk-navy); outline-offset: -4px; }
.mk-tabs .mk-tl-s { display: none; }
.mk-tabs .mk-tab-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--mk-surface); color: var(--mk-navy); font-size: 12px; font-weight: 800; }
.mk-tabs .tab.tab-active .mk-tab-n { background: var(--mk-red); color: #fff; }
.mk-section .mk-tabpanel { padding: 26px 30px; overflow-wrap: anywhere; border-radius: 0 0 10px 10px; clip-path: inset(0 -24px -24px -24px); }
@media (max-width: 767px) {
  .mk-section .mk-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 4px; margin-top: 26px; }
  .mk-section .mk-tabs .tab { flex-direction: column; gap: 5px; height: 64px; padding: 0 4px; font-size: 12.5px; }
  .mk-section .mk-tabs .tab > i { font-size: 17px; }
  .mk-section .mk-tabs .tab::after { left: 8px; right: 8px; }
  .mk-tabs .mk-tl-f { display: none; }
  .mk-tabs .mk-tl-s { display: inline; }
  .mk-tabs .mk-tl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mk-tabs .mk-tab-n { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 16px; padding: 0 4px; font-size: 10.5px; }
  .mk-section .mk-tabpanel { padding: 18px 16px; }
}
@media (max-width: 359px) { .mk-section .mk-tabs .tab { font-size: 11.5px; } }
#tab-rev .mk-review-form { background: var(--mk-surface); border: 1px solid var(--mk-border); border-radius: 8px; padding: 18px 20px 20px; margin-top: 4px; }
#tab-rev .mk-review-form h3 { margin: 0 0 2px; font-size: 15px; }
#tab-rev .mk-review-form .input, #tab-rev .mk-review-form .textarea { background: #fff; border-radius: 8px; }
#tab-rev .mk-review-form .btn-primary { border-radius: 8px; min-width: 160px; }
#tab-rev > p.text-sm { margin-bottom: 16px; }
.mk-desc h3 { font-weight: 800; color: var(--mk-navy); margin: 16px 0 6px; font-size: 17px; }
.mk-desc p { margin: 0 0 10px; line-height: 1.7; }
.mk-desc ul { list-style: disc; padding-left: 20px; margin: 0 0 12px; }
.mk-desc img { max-width: 100%; height: auto; }
.mk-desc table { max-width: 100%; display: block; overflow-x: auto; }
.mk-spec td { overflow-wrap: anywhere; }
.mk-stars-lg { font-size: 16px; }
.mk-review { border-bottom: 1px solid var(--mk-border); padding: 12px 0; }
.mk-review p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; }
.mk-review-pager { justify-content: flex-start; margin: 14px 0 18px; }
.mk-rate { display: flex; gap: 4px; margin: 6px 0 12px; }
.mk-rate button { background: none; border: 0; padding: 2px; font-size: 26px; line-height: 1; color: #d4d4d4; cursor: pointer; }
.mk-rate button.is-on { color: var(--mk-red); }
.mk-rate button:focus-visible { outline: 2px solid var(--mk-navy); }
.mk-review-form h3 { font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--mk-navy); }

/* lightbox */
.mk-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 30, .94); display: flex; align-items: center; justify-content: center; }
.mk-lightbox[hidden] { display: none; }
.mk-lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 100px); object-fit: contain; background: #fff; touch-action: pan-y; }
.mk-lb-close, .mk-lb-arrow { position: absolute; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--mk-red); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.mk-lb-close { top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; }
.mk-lb-arrow { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 20px; }
.mk-lb-arrow.prev { left: 20px; } .mk-lb-arrow.next { right: 20px; }
.mk-lb-close:hover, .mk-lb-arrow:hover { background: var(--mk-red); color: #fff; }
.mk-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 14px; }
.mk-lightbox.is-single .mk-lb-arrow, .mk-lightbox.is-single .mk-lb-count { display: none; }
@media (max-width: 767px) {
  .mk-lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .mk-lb-arrow { width: 42px; height: 42px; font-size: 16px; top: auto; bottom: 14px; transform: none; }
  .mk-lb-arrow.prev { left: 14px; } .mk-lb-arrow.next { right: 14px; }
  .mk-lb-count { bottom: 26px; }
}
@media (max-width: 1023px) {
  .mk-thumbs button { width: auto; height: auto; flex-basis: calc((100% - 50px) / 6); }
  .mk-buyrow .mk-pdp-add .lbl { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 380px) { .mk-buyrow .mk-pdp-add .lbl { display: none; } }

/* ---- routine 4 (listings): count in toolbar, struck old price, empty search counter ---- */
.mk-toolbar .mk-count { margin-right: auto; font-size: 13px; font-weight: 600; color: #555; white-space: nowrap; }
.mk-card .mk-old { text-decoration: line-through; }
.mk-search-count { font-weight: 700; color: var(--mk-navy); margin: 0 0 6px !important; }
/* price + struck old price on one line: shrink with the card instead of wrapping */
.mk-card .mk-price-line { flex-wrap: nowrap; column-gap: 6px; overflow: visible; }
.mk-card .mk-price-line:has(.mk-old) .mk-price { font-size: min(28px, 10.5cqi); }
.mk-card .mk-price-line:has(.mk-old) .mk-price sup { font-size: .5em; }
.mk-card .mk-price-line .mk-old { display: inline; margin: 0; font-size: min(13px, 5.8cqi); }
@media (max-width: 1023px) {
  .mk-toolbar .mk-count { display: none; }
  /* mobile: "Filter" full row, sort + per page side by side below, labels fit */
  .mk-toolbar { flex-wrap: wrap; row-gap: 8px; }
  .mk-toolbar .mk-filter-btn { flex: 1 1 100%; height: 40px; }
}