/* Elektro Handels catalog-product lane (category / search / special / manufacturer / product).
   On top of the verbatim static theme.css; scoped to .mk-listing / .mk-product / .mk-card. */

/* ---------- product card (one component everywhere) ---------- */
.mk-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.mk-grid>.mk-card,.mk-slide>.mk-card{width:100%;min-width:0}
.mk-card-img{overflow:hidden}
.mk-card-name b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mk-card-name span{min-height:2.6em}
.mk-uvp s{color:#888}
.mk-price,.mk-uvp,.mk-btn-cart{white-space:nowrap}
.mk-card-actions{align-items:stretch}
.mk-card-actions .mk-btn-cart,.mk-card-actions .mk-btn-heart{height:40px;min-height:40px;flex-shrink:0}
.mk-card-actions .mk-btn-cart{flex:1 1 auto;overflow:hidden;justify-content:center;padding:0 6px;gap:5px;font-size:12px;letter-spacing:0}
.mk-card-actions .mk-btn-cart svg{width:18px;height:18px}
.mk-card-body{padding:8px 10px 10px}
.mk-card-actions .mk-btn-cart svg,.mk-btn-heart svg{flex:none}
.mk-btn-heart{display:inline-flex;align-items:center;justify-content:center}
.mk-btn-heart.on{background:#e11;border-color:#e11;color:#fff}.mk-btn-heart.on svg{fill:#fff}
@container (max-width:185px){.mk-card-actions .mk-btn-cart span{display:none}}
.mk-card{container-type:inline-size}

/* ---------- listing ---------- */
.mk-listing .mk-h1{overflow-wrap:anywhere}
.mk-listing .mk-list{grid-template-columns:220px minmax(0,1fr)}
.mk-listing .mk-list-nofilter{grid-template-columns:minmax(0,1fr)}
.mk-listing .mk-list-main{min-width:0}
.mk-listing .mk-filters{padding:10px}
.mk-listing .mk-filters label{cursor:pointer;line-height:1.3;align-items:flex-start}
.mk-listing .mk-filters label .checkbox{flex:none;margin-top:1px;border-radius:2px;border-color:#bbb}
.mk-listing .mk-filters .checkbox:checked{background-color:var(--or);border-color:var(--or);--chkbg:var(--or);--chkfg:#fff}
.mk-listing .mk-facet{overflow:visible}
.mk-listing .mk-facet>summary.collapse-title{list-style:none}
.mk-listing .mk-facet>summary.collapse-title::-webkit-details-marker{display:none}
.mk-listing .mk-facet .collapse-content{overflow:visible}
.mk-listing .mk-facet-list .mk-extra{display:none}
.mk-listing .mk-facet-list.mk-all .mk-extra{display:flex}
.mk-listing .mk-showall{background:none;border:0;color:var(--or);font-size:13px;padding:6px 0 2px;cursor:pointer;text-align:left}
.mk-listing .mk-pr{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mk-listing .mk-pr .input{height:36px;min-height:0;border:1px solid #ccc;border-radius:0;padding:0 8px;font-size:13px;width:100%;min-width:0;background:#fff}
.mk-listing .mk-pr .input:focus{border-color:var(--or)}
.mk-listing .mk-facet-btns .mk-btn-cart{width:100%;justify-content:center;height:40px;min-height:40px;flex:none;font-size:14px}
.mk-listing .mk-facet-btns .btn-ghost{font-weight:400;font-size:13px;text-transform:none;white-space:normal;height:auto;min-height:32px}
.mk-listing .mk-subcats{width:100%;flex-wrap:nowrap}
.mk-listing .mk-subcats a{display:flex;justify-content:flex-start;gap:4px}
.mk-listing .mk-count-row b{font-size:13px}
.mk-listing .mk-toolbar .select{padding:0 2.4rem 0 .9rem;font-size:14px;background-color:#fff;min-width:0;background-position:calc(100% - 18px) calc(1px + 50%),calc(100% - 13px) calc(1px + 50%)}
.mk-listing .mk-toolbar .select[name=sort]{width:180px}
.mk-listing .mk-toolbar .mk-limit{width:86px}
.mk-listing .mk-filter-btn{gap:6px;height:38px;min-height:0;border-radius:0}
.mk-listing .mk-noresult{padding:20px 10px 24px;border:1px solid #eee;background:var(--bg);margin-bottom:20px}
.mk-listing .mk-noresult p{font-size:14px}
.mk-listing .mk-empty .mk-link{color:var(--or)}
.mk-pager{flex-wrap:nowrap;max-width:100%}
.mk-pager .btn{min-width:44px;height:44px;min-height:0;padding:0 12px;font-size:14px;font-weight:700;background:var(--bg);border:1px solid var(--bg)}
.mk-pager .btn:hover{background:#e7e7e7}
.mk-pager .btn-active,.mk-pager .btn-active:hover{background:var(--or);color:#fff;border-color:var(--or)}
.mk-pager .mk-gap{background:var(--bg)!important;color:#666!important;min-width:32px;padding:0 4px}

/* ---------- product page ---------- */
.mk-product .mk-crumbs a{flex:none;max-width:30%;overflow:hidden;text-overflow:ellipsis;display:inline-block}
.mk-product .mk-crumbs a:first-child{display:inline-flex;max-width:none}
.mk-product .mk-crumbs b{min-width:0;white-space:nowrap}
.mk-product .mk-pgrid{grid-template-columns:400px minmax(0,1fr) 340px}
.mk-product .mk-hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.mk-product .mk-gallery{min-width:0}
.mk-product .mk-gmain{overflow:hidden;border:1px solid #eee}
.mk-product .mk-gmain img[data-gmain]{display:block;padding:12px}
.mk-product .mk-thumbs{overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;gap:8px}
.mk-product .mk-thumbs::-webkit-scrollbar{display:none}
.mk-product .mk-thumbs button{flex:0 0 calc((100% - 40px)/6);width:auto;height:auto;aspect-ratio:1/1;padding:3px;scroll-snap-align:start;cursor:pointer}
.mk-product .mk-pinfo{min-width:0}
.mk-product .mk-pinfo h1{overflow-wrap:anywhere;line-height:1.15}
.mk-product .mk-pbrand{height:30px!important;width:auto!important;max-width:160px;object-fit:contain;object-position:left}
.mk-product .mk-pbrand-t{display:inline-block;font-family:var(--hh);font-weight:700;color:var(--or);font-size:18px;margin-bottom:6px}
.mk-product .mk-pspecs li span{color:#333}
.mk-product .mk-buy{flex-wrap:nowrap!important;gap:6px}
.mk-product .mk-buybox .mk-buy .mk-bb-cart{order:0;flex:1 1 auto;min-width:0;padding:0 8px;justify-content:center;font-size:12.5px}
.mk-product .mk-qty{flex:none}
.mk-product .mk-qty .btn{width:32px;height:40px;font-size:18px;font-weight:400;color:#333}
.mk-product .mk-qty .input{width:38px;height:40px;min-height:0;font-size:14px}
.mk-product .mk-buy .mk-btn-heart{flex:none;width:40px;height:40px}
.mk-product .mk-stock-no{color:#b45309}
.mk-product .mk-price-l{line-height:1.1}
.mk-product .mk-tabs{display:flex;flex-wrap:nowrap;gap:4px;overflow:visible}
.mk-product .mk-tabs .tab{flex:1 1 0;min-width:0;margin:0;white-space:nowrap;cursor:pointer}
.mk-product .mk-tabpane{overflow:visible}
.mk-product .mk-desc{overflow-wrap:anywhere}
.mk-product .mk-desc img{max-width:100%;height:auto}
.mk-product .mk-desc table{max-width:100%;display:block;overflow-x:auto}
.mk-product .mk-spec{max-width:820px;font-size:13px}
.mk-product .mk-spec tr:nth-child(odd){background:var(--bg)}
.mk-product .mk-spec td{padding:8px 12px;vertical-align:top;overflow-wrap:anywhere}
.mk-product .mk-spec td:first-child{width:38%;color:#555}
.mk-product .mk-review{max-width:560px}
.mk-product .mk-review .input,.mk-product .mk-review .textarea{border:1px solid #ccc;border-radius:0;width:100%;font-size:14px}
.mk-product .mk-review .textarea{min-height:110px}
.mk-product .mk-review .mk-btn-cart{justify-self:start;padding:0 18px}
.mk-product .mk-rate{display:flex;gap:2px}
.mk-product .mk-rate button{cursor:pointer;padding:2px;line-height:0}
.mk-product .mk-rate button:hover{color:#f5a300}
.mk-product .mk-review-msg{color:#c00;font-size:13px;margin:0}
.mk-product .mk-review-msg.ok{color:var(--gr)}
.mk-product .mk-reviews{display:grid;gap:10px;margin-bottom:10px}
.mk-product .mk-rev{background:var(--bg);padding:12px 14px}
.mk-product .mk-rev-head{display:flex;gap:10px;align-items:center;margin-bottom:6px}
.mk-product .mk-rev-head small{color:#777;margin-left:auto}
.mk-product .mk-rev-pager{justify-content:flex-start;margin:10px 0}
.mk-product .mk-ppromo{color:#fff}
.mk-product .mk-carousel{padding:0}
.mk-product .mk-track{align-items:stretch}
.mk-product .mk-slide{display:flex}
.mk-product .mk-carousel .mk-prev{left:-14px}.mk-product .mk-carousel .mk-next{right:-14px}

/* lightbox: arrows left/right, close top right, contrasting */
.mk-lightbox{padding:20px}
.mk-lightbox img{max-width:min(90vw,1000px);max-height:86vh;object-fit:contain;padding:10px}
.mk-lightbox .mk-lb-close,.mk-lightbox .mk-lb-nav{position:absolute;width:48px;height:48px;border-radius:50%;background:#fff!important;color:var(--or)!important;display:flex;align-items:center;justify-content:center;cursor:pointer;border:0;box-shadow:0 2px 10px rgba(0,0,0,.4)!important;z-index:2}
.mk-lightbox .mk-lb-close{top:16px;right:16px;left:auto}
.mk-lightbox .mk-lb-nav{top:50%;transform:translateY(-50%)}
.mk-lightbox .mk-lb-prev{left:16px;right:auto}.mk-lightbox .mk-lb-next{right:16px;left:auto}

@media(max-width:1200px){.mk-product .mk-pgrid{grid-template-columns:340px minmax(0,1fr) 320px;gap:20px}}
@media(max-width:900px){
  .mk-listing .mk-list{grid-template-columns:minmax(0,1fr)}
  .mk-listing .mk-filters{padding:14px}
  .mk-listing .mk-toolbar .select[name=sort]{width:auto;flex:1 1 auto}
  .mk-listing .mk-toolbar .mk-limit{width:80px;flex:0 0 80px}
  .mk-listing .mk-toolbar{gap:8px}
  .mk-listing .mk-h1{font-size:26px}
  .mk-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mk-card-img{padding:30px 8px 6px}
  .mk-card-body{padding:8px}
  .mk-card-actions .mk-btn-cart span{display:none}
  .mk-pager .btn{min-width:38px;height:40px;padding:0 8px}
  .mk-product .mk-pgrid{grid-template-columns:minmax(0,1fr)}
  .mk-product .mk-crumbs a{max-width:28%}
  .mk-product .mk-pinfo h1{font-size:24px}
  .mk-product .mk-pspecs li{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .mk-product .mk-buybox .mk-buy .mk-bb-cart span{display:inline;font-size:13px}
  .mk-product .mk-tabs .tab{font-size:13px;padding:0 4px}
  .mk-product .mk-spec td{display:block;width:100%!important;padding:4px 10px}
  .mk-product .mk-spec td:first-child{padding-top:8px;font-weight:700;color:#333}
  .mk-product .mk-spec td:last-child{padding-bottom:8px}
  .mk-product .mk-carousel .mk-prev{left:2px}.mk-product .mk-carousel .mk-next{right:2px}
  .mk-lightbox .mk-lb-nav{width:42px;height:42px}
  .mk-lightbox .mk-lb-prev{left:6px}.mk-lightbox .mk-lb-next{right:6px}
}
