/* Store mobile catalogue: no sideways page scrolling, product images always contained. */
@media(max-width:700px){
 html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
 body{margin:0!important}
 header{position:sticky!important;top:0!important;z-index:1500!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-rows:auto auto!important;align-items:center!important;gap:8px!important;width:100%!important;height:auto!important;min-height:62px!important;padding:8px 12px!important;background:#fff!important}
 header .brand{grid-column:1;grid-row:1;font-size:17px!important;min-width:0!important;white-space:nowrap}
 header .brand img{width:36px!important;height:36px!important}
 header .cartbtn{grid-column:2;grid-row:1;padding:9px 11px!important;font-size:12px!important;white-space:nowrap}
 header .ite-generated-menu{grid-column:3;grid-row:1;display:grid!important;place-items:center;width:40px;height:40px;padding:0!important;border:1px solid #e4e6e9!important;border-radius:9px!important;background:#fff!important;color:#171717!important;font-size:21px!important}
 header nav{display:none!important;grid-column:1/-1!important;grid-row:2!important;position:fixed!important;top:calc(62px + env(safe-area-inset-top))!important;left:12px!important;right:12px!important;width:auto!important;max-height:calc(100dvh - 90px)!important;overflow:auto!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;padding:12px!important;background:#fff!important;border:1px solid #e5e7eb!important;border-radius:13px!important;box-shadow:0 18px 55px #1113!important;z-index:2201!important}
 header nav.ite-store-menu-open{display:flex!important}
 header nav a{display:flex!important;align-items:center!important;min-height:44px!important;padding:9px 12px!important;border-radius:8px!important;font-size:14px!important;background:#f7f7f8!important}
 body.ite-menu-open{overflow:hidden!important}
 body.ite-menu-open:before{content:"";position:fixed;inset:0;background:#1117;z-index:1400}
 .hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;margin:10px 12px 0!important;padding:25px 18px!important;min-height:0!important;border-radius:13px!important;gap:12px!important}
 .hero h1{font-size:clamp(27px,8vw,36px)!important;line-height:1.08!important}
 .hero-art{display:none!important}
 .store-benefits{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;padding:9px 10px!important}
 .store-benefits>div{min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;padding:7px 3px!important;border:1px solid #eceef1!important;border-radius:8px!important}
 .store-benefits strong{font-size:9px!important;white-space:normal!important;line-height:1.25!important}
 .store-benefits small{display:none!important}
 .wrap{width:100%!important;max-width:100%!important;margin:0!important;padding:18px 12px 34px!important}
 .intro{display:block!important;margin-bottom:12px!important}
 .intro h2{font-size:23px!important}
 .shop-filters{display:block!important;width:100%!important;min-width:0!important;padding:10px!important;margin:0 0 14px!important}
 .search-row{display:flex!important;flex-wrap:nowrap!important;gap:7px!important;width:100%!important}
 .searchbox{flex:1 1 auto!important;width:auto!important;min-width:0!important}
 .searchbox input{min-width:0!important;font-size:13px!important}
 .filter-reset{flex:0 0 auto!important;grid-column:auto!important;grid-row:auto!important;padding:0 9px!important;font-size:10px!important}
 .filter-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:9px!important}
 .filter-field{min-width:0!important;font-size:10px!important}
 .filter-field select{width:100%!important;min-width:0!important;height:40px!important;font-size:12px!important}
 .department-nav{display:block!important;width:100%!important;min-width:0!important;margin-top:10px!important;padding-top:10px!important;border-top:1px solid #eee!important}
 .department-picker-label{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important}
 .department-picker-label select{width:100%!important;max-width:100%!important;height:40px!important;font-size:13px!important}
 .catalogue-layout{display:block!important;width:100%!important;min-width:0!important}
 .department-sidebar{width:100%!important;max-width:100%!important;overflow:hidden!important;margin:0 0 12px!important}
 .department-links{display:flex!important;flex-direction:row!important;gap:6px!important;max-width:100%!important;overflow-x:auto!important;white-space:nowrap!important;scrollbar-width:thin!important}
 .department-link{flex:0 0 auto!important;white-space:nowrap!important}
 .products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important;max-width:100%!important}
 .card{display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;border:1px solid #e5e7eb!important;border-radius:10px!important;transform:none!important}
 .photo{display:grid!important;place-items:center!important;width:100%!important;height:clamp(115px,34vw,155px)!important;min-height:0!important;max-height:155px!important;flex:0 0 auto!important;margin:0!important;padding:8px!important;background:#fff!important;overflow:hidden!important}
 .photo img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important}
 .cardbody{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important;padding:9px!important}
 .category{font-size:9px!important;line-height:1.2!important}
 .card h3{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;min-height:0!important;max-height:4.05em!important;margin:5px 0 7px!important;overflow:hidden!important;font-size:12px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
 .desc{display:none!important}
 .card-price-row{margin-top:auto!important}
 .price{font-size:15px!important;line-height:1.25!important}
 .stock{font-size:9px!important;line-height:1.3!important;margin:5px 0 8px!important}
 .add{width:100%!important;min-height:39px!important;padding:8px 5px!important;font-size:11px!important;line-height:1.2!important}
 .catalogue-toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 .product-modal{padding:0!important;align-items:stretch!important}
 .product-modal-panel{width:100%!important;max-width:100%!important;height:100%!important;max-height:100dvh!important;border-radius:0!important}
 .product-modal-content{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;padding:12px!important}
 .product-detail-image{position:static!important;min-height:0!important;padding:8px!important}
 .product-gallery-main{height:clamp(230px,65vw,360px)!important;min-height:0!important}
 .product-gallery-main img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
 .product-detail-copy{min-width:0!important;padding:5px 2px!important}
 .product-detail-copy h2{font-size:20px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
 .product-detail-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
 .product-detail-actions button{width:100%!important;min-height:46px!important}
 .foot{padding:16px!important}
}
@media(max-width:380px){.products{gap:8px!important}.photo{height:112px!important}.cardbody{padding:8px!important}.card h3{font-size:11px!important}.price{font-size:14px!important}.store-benefits strong{font-size:8px!important}}


/* MOBILE CATALOGUE FIX: hide the desktop sidebar and use the full phone width.
   Department filtering remains available through the existing department picker. */
@media(max-width:700px){
  html,body{overflow-x:hidden!important;width:100%!important;max-width:100%!important}
  .catalogue-layout{
    display:block!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .department-sidebar{display:none!important}
  .product-area{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .department-nav{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:10px 0 14px!important;
  }
  .department-picker-label{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:100%!important;
    gap:6px!important;
  }
  #departmentPicker{width:100%!important;max-width:100%!important}
  .catalogue-heading,.catalogue-title,.section-heading{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:flex-end!important;
    justify-content:space-between!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
  }
  .products{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:stretch!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  .card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}
@media(max-width:380px){
  .products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
}


/* Store mobile header: hamburger | IT Elements | existing live Cart button. */
@media(max-width:700px){
  header{
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:clamp(7px,2vw,14px)!important;
    width:100%!important;
    min-height:82px!important;
    height:auto!important;
    padding:9px clamp(8px,2.5vw,16px)!important;
    overflow:visible!important;
  }
  header .ite-generated-menu{
    display:flex!important;
    order:0!important;
    flex:0 0 clamp(48px,14vw,62px)!important;
    width:clamp(48px,14vw,62px)!important;
    min-width:clamp(48px,14vw,62px)!important;
    height:clamp(48px,14vw,62px)!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    border:2px solid #e2e5e9!important;
    border-radius:16px!important;
    background:#fff!important;
    color:#171717!important;
    font-size:clamp(25px,7vw,34px)!important;
    line-height:1!important;
  }
  header .brand{
    display:flex!important;
    order:1!important;
    flex:1 1 auto!important;
    align-items:center!important;
    justify-content:center!important;
    gap:clamp(6px,2vw,12px)!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    font-size:clamp(17px,4.8vw,27px)!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  header .brand img{
    flex:0 0 clamp(42px,13vw,58px)!important;
    width:clamp(42px,13vw,58px)!important;
    min-width:clamp(42px,13vw,58px)!important;
    height:clamp(42px,13vw,58px)!important;
    object-fit:contain!important;
  }
  header nav{display:none!important}
  header .cartbtn{
    display:inline-flex!important;
    order:2!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:clamp(82px,24vw,132px)!important;
    min-height:clamp(48px,14vw,62px)!important;
    padding:8px clamp(9px,2.5vw,17px)!important;
    border-radius:13px!important;
    white-space:nowrap!important;
    font-size:clamp(13px,3.7vw,21px)!important;
  }
}
@media(max-width:360px){
  header{gap:6px!important;padding-inline:7px!important}
  header .brand{font-size:16px!important}
  header .cartbtn{min-width:76px!important;padding-inline:7px!important;font-size:12px!important}
}


/* Keep the store's live cart and align its hamburger/brand/cart row on phones. */
@media(max-width:760px){
  header .ite-generated-menu{display:flex!important;order:0!important}
  header .brand{order:1!important}
  header nav{display:none!important}
  header .cartbtn{order:2!important}
}


/* FINAL phone catalogue: hide the tall desktop department sidebar, keep category filter,
   and show two complete product cards per row all the way down the page. */
@media(max-width:700px){
 .department-sidebar{display:none!important}
 #departmentPicker.visually-hidden{position:static!important;width:100%!important;height:42px!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;margin:8px 0 0!important;padding:8px 12px!important;border:1px solid #dfe3e8!important;border-radius:9px!important;background:#fff!important;color:#252a32!important;font-size:13px!important}
 .catalogue-layout,.product-area{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
 .products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:10px!important;width:100%!important;max-width:100%!important;margin:0!important}
 .card{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
 .photo{height:clamp(112px,34vw,160px)!important;min-height:112px!important;max-height:160px!important;margin:0!important;padding:8px!important;display:grid!important;place-items:center!important}
 .photo img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
 .cardbody{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;min-width:0!important;padding:9px!important}
 .card h3{font-size:clamp(11px,3.1vw,14px)!important;line-height:1.3!important;min-height:0!important;max-height:3.9em!important;-webkit-line-clamp:3!important;overflow-wrap:anywhere!important}
 .card .desc{display:none!important}
 .card-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:5px!important;margin-top:auto!important;padding-top:8px!important}
 .card-actions .add{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;min-height:38px!important;padding:7px 4px!important;font-size:clamp(9px,2.6vw,12px)!important;white-space:normal!important}
 .card-actions .add.secondary{display:flex!important;background:#fff!important;color:#242832!important;border:1px solid #dfe3e8!important}
 .stock{font-size:10px!important}
 .product-modal-content{grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:100%!important;padding:12px!important;gap:12px!important}
 .product-detail-left{min-width:0!important}
 .product-detail-image{width:100%!important;box-sizing:border-box!important}
 .product-gallery-main{height:clamp(230px,66vw,380px)!important;min-height:230px!important}
 .product-gallery-main img{width:100%!important;height:100%!important;object-fit:contain!important}
 .detail-description-under-image{margin-top:12px!important}
 .product-detail-copy{min-width:0!important}
 .product-detail-actions{grid-template-columns:1fr 1fr!important}
 .product-detail-actions .secondary{grid-column:1/-1!important}
}
@media(max-width:380px){.products{gap:7px!important}.cardbody{padding:7px!important}.photo{height:112px!important}.card-actions{gap:4px!important}}

/* Reference-matched store header: menu left, IT Elements logo in the middle, cart right. */
@media(max-width:700px){
  body.store-page header{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;grid-template-rows:1fr!important;align-items:center!important;gap:10px!important;min-height:70px!important;padding:8px 12px!important}
  body.store-page header .ite-generated-menu{grid-column:1!important;grid-row:1!important;width:48px!important;height:48px!important;display:grid!important;place-items:center!important;border:1px solid #e2e4e8!important;border-radius:12px!important;background:#fff!important;color:#171717!important;font-size:25px!important;line-height:1!important}
  body.store-page header .brand{grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important;font-size:clamp(16px,4.4vw,23px)!important;white-space:nowrap!important}
  body.store-page header .brand img{width:48px!important;height:48px!important;flex:0 0 48px!important;object-fit:contain!important}
  body.store-page header .cartbtn{grid-column:3!important;grid-row:1!important;padding:12px 14px!important;min-height:48px!important;border-radius:12px!important;font-size:clamp(13px,3.4vw,17px)!important;font-weight:850!important;white-space:nowrap!important}
  body.store-page header nav{display:none!important}
}
@media(max-width:390px){
  body.store-page header{grid-template-columns:42px minmax(0,1fr) auto!important;gap:7px!important;padding:7px 9px!important}
  body.store-page header .ite-generated-menu{width:42px!important;height:44px!important}
  body.store-page header .brand{font-size:15px!important;gap:6px!important}
  body.store-page header .brand img{width:40px!important;height:40px!important;flex-basis:40px!important}
  body.store-page header .cartbtn{padding:10px 10px!important;font-size:12px!important}
}
