/* MatKoz storefront v18 — authoritative desktop layer loaded LAST */
@media (min-width:901px){
  html body.storefront-v4.mk-redesign{
    background:#fff!important;
  }

  /* Keep the whole desktop canvas close to the approved 1440px reference instead of stretching on ultrawide screens. */
  body.storefront-v4.mk-redesign .head,
  body.storefront-v4.mk-redesign .nav,
  body.storefront-v4.mk-redesign.storefront-home .hero-layout,
  body.storefront-v4.mk-redesign.storefront-home .store-values,
  body.storefront-v4.mk-redesign.storefront-home .categories-section,
  body.storefront-v4.mk-redesign.storefront-home .home-showcases,
  body.storefront-v4.mk-redesign.storefront-home .home-editorial,
  body.storefront-v4.mk-redesign.storefront-home .home-inspiration,
  body.storefront-v4.mk-redesign .section.full-catalog-section{
    width:min(1440px,calc(100% - 40px))!important;
    max-width:1440px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  body.storefront-v4.mk-redesign .head{
    grid-template-columns:220px minmax(380px,1fr) 315px!important;
    gap:24px!important;
    padding-left:0!important;
    padding-right:0!important;
  }
  body.storefront-v4.mk-redesign .nav{
    padding-left:0!important;
    padding-right:0!important;
  }

  /* Approved first hero state, no accidental wide-screen slide drift. */
  body.storefront-v4.mk-redesign.storefront-home .hero-layout{
    grid-template-columns:minmax(0,2.25fr) 345px!important;
    gap:10px!important;
  }
  body.storefront-v4.mk-redesign.storefront-home .final-hero{
    height:342px!important;
    min-height:342px!important;
  }
  body.storefront-v4.mk-redesign .final-hero>img#heroImage{
    object-fit:cover!important;
    object-position:center right!important;
  }
  body.storefront-v4.mk-redesign .hero-side{
    width:345px!important;
  }

  /* Home density */
  body.storefront-v4.mk-redesign.storefront-home .categories{
    grid-template-columns:repeat(9,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.storefront-v4.mk-redesign.storefront-home .showcase-products{
    grid-template-columns:repeat(9,minmax(0,1fr))!important;
    gap:8px!important;
  }

  /* Catalogue shell */
  body.storefront-v4.mk-redesign .section.full-catalog-section{
    padding:28px 0 42px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section>.section-head{
    margin:0 0 12px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section>.section-head h2{
    margin:4px 0 0!important;
    font-size:34px!important;
    line-height:1.05!important;
    letter-spacing:-1.1px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .category-breadcrumb{
    margin:0 0 14px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-shell{
    display:grid!important;
    grid-template-columns:220px minmax(0,1fr)!important;
    gap:18px!important;
    align-items:start!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-sidebar{
    position:sticky!important;
    top:96px!important;
    width:220px!important;
    padding:15px!important;
    border:1px solid #dfe4e8!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-sidebar-head{
    margin-bottom:12px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-sidebar-head h3{
    margin:3px 0 0!important;
    font-size:17px!important;
    line-height:1.15!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-sidebar .filters{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
    margin:0!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-sidebar .filters button{
    width:100%!important;
    min-height:38px!important;
    padding:8px 10px!important;
    border:1px solid #dde2e6!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#1b2025!important;
    font-size:12px!important;
    font-weight:650!important;
    text-align:left!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-sidebar .filters button.active{
    border-color:#111317!important;
    background:#111317!important;
    color:#fff!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .availability-filter{
    margin-top:13px!important;
    padding-top:13px!important;
    font-size:11px!important;
  }

  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-main{
    min-width:0!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-toolbar{
    display:flex!important;
    min-height:46px!important;
    margin:0 0 12px!important;
    padding:6px 10px!important;
    border:1px solid #dfe4e8!important;
    border-radius:9px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-result-count{
    font-size:12px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-sort{
    font-size:11px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section .catalog-sort select{
    min-height:36px!important;
    padding:0 30px 0 10px!important;
    border:1px solid #dfe4e8!important;
    border-radius:7px!important;
    background:#fff!important;
  }

  /* Hard reset old card geometry. */
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:14px!important;
    width:100%!important;
    overflow:visible!important;
    align-items:stretch!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card{
    display:grid!important;
    grid-template-rows:190px 1fr!important;
    min-width:0!important;
    width:auto!important;
    min-height:390px!important;
    height:390px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid #dfe4e8!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card:hover{
    transform:translateY(-1px)!important;
    border-color:#bcc4ca!important;
    box-shadow:0 8px 22px rgba(17,19,23,.07)!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card>img{
    display:block!important;
    width:100%!important;
    height:190px!important;
    max-height:190px!important;
    min-height:190px!important;
    aspect-ratio:auto!important;
    margin:0!important;
    padding:12px!important;
    object-fit:contain!important;
    object-position:center!important;
    background:#fff!important;
    transform:none!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card>.card-body{
    display:flex!important;
    flex-direction:column!important;
    min-height:200px!important;
    height:200px!important;
    padding:11px 12px 12px!important;
    background:#fff!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card>.card-body>small{
    min-height:14px!important;
    color:#68717a!important;
    font-size:9px!important;
    line-height:1.2!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card h3{
    min-height:34px!important;
    max-height:34px!important;
    margin:5px 0 4px!important;
    overflow:hidden!important;
    font-size:13.5px!important;
    line-height:1.2!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card h3 a{
    color:#111317!important;
    text-decoration:none!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .product-card-rating{
    min-height:16px!important;
    margin:0 0 2px!important;
    font-size:9px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .desc{
    display:-webkit-box!important;
    min-height:28px!important;
    max-height:28px!important;
    margin:0!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    color:#747d85!important;
    font-size:9.5px!important;
    line-height:1.4!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .price{
    margin:6px 0 2px!important;
    color:#111317!important;
    font-size:17px!important;
    line-height:1.1!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .old{
    font-size:9px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .card-lowest-price{
    margin:0 0 2px!important;
    color:#7a8289!important;
    font-size:7.5px!important;
    line-height:1.15!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .stock{
    margin:0 0 7px!important;
    color:#16883b!important;
    font-size:9.5px!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .add{
    width:100%!important;
    min-height:36px!important;
    height:36px!important;
    margin-top:auto!important;
    padding:0 8px!important;
    border:1px solid #111317!important;
    border-radius:7px!important;
    background:#111317!important;
    color:#fff!important;
    font-size:9.5px!important;
    font-weight:800!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .add:disabled{
    border-color:#bcc4ca!important;
    background:#fff!important;
    color:#4e565d!important;
    opacity:1!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .product-favorite{
    top:8px!important;
    right:8px!important;
    width:29px!important;
    height:29px!important;
    border:1px solid #dfe4e8!important;
    background:#fff!important;
    box-shadow:0 2px 7px rgba(17,19,23,.08)!important;
  }
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products>.card.product-card .product-favorite svg{
    width:15px!important;
    height:15px!important;
  }
}

@media (min-width:901px) and (max-width:1180px){
  body.storefront-v4.mk-redesign .section.full-catalog-section #products.products{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
