/* Homepage and search-page refinements; carousel measurements stay unchanged. */
@media(max-width:760px){
  /* Enlarge the hit area, not the visual pagination dots. */
  .hero[data-hero] .hero__ghost{display:none}
  .hero[data-hero] .hero__dots{bottom:12px;gap:0}
  .hero[data-hero] .hero__dots button{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:8px;background:transparent}
  .hero[data-hero] .hero__dots button::after{content:"";width:9px;height:9px;border-radius:5px;background:rgba(36,76,180,.3);transition:width .2s,background .2s}
  .hero[data-hero] .hero__dots button.is-on::after{width:26px;background:var(--blue-600)}
  .hero[data-hero] .hero__dots button:focus-visible{outline:2px solid var(--blue-600);outline-offset:-3px}
  .hero[data-hero] .hero__btns .btn{min-height:44px}

  /* Preserve the two-card width and 20px gap used by the drag calculation. */
  [data-catcar] .catcard{padding:24px 16px 20px;border-radius:20px}
  [data-catcar] .catcard h3{font-size:17px;line-height:1.5;overflow-wrap:anywhere}
  [data-catcar] .catcard p{line-height:1.75;overflow-wrap:anywhere}
  [data-catcar] .catcard p br{display:none}
  [data-catcar] .catcard__go{opacity:1;transform:none}
  [data-catcar] .catcar__bar{height:44px;margin-top:18px}
  [data-catcar] .catcar__bar::before{top:20px}
  [data-catcar] .catcar__bar span{top:17px}

  body:not(.page-inner) .litbox{padding:26px 16px}
  body:not(.page-inner) .litbox__filter{grid-template-columns:minmax(0,1fr)}
  body:not(.page-inner) .litbox__filter>*,
  body:not(.page-inner) .litrow>div{min-width:0}
  body:not(.page-inner) .litrow{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:16px 12px}
  body:not(.page-inner) .litrow__cov{width:42px;height:58px}
  body:not(.page-inner) .litrow :is(h4,p,a){overflow-wrap:anywhere}
  body:not(.page-inner) .litkpi span{max-width:100%;white-space:normal;overflow-wrap:anywhere}

  #featured-products .hot__head .tabs button{min-height:44px}
  #featured-products .hot__go{min-height:44px;padding:8px 14px;border:1px solid #BCD0F2;border-radius:8px;background:#fff;color:var(--blue-600)}
  #featured-products .hot__thumbs{left:16px;bottom:24px;gap:6px}
  #featured-products .hot__thumb{width:44px;height:44px;margin-left:0}
  #featured-products .hot__nav{right:16px;bottom:24px;gap:8px}
  #featured-products .hot__nav button{width:44px;height:44px}
  #featured-products .hot__txt p{white-space:normal;overflow:visible;text-overflow:clip}

  .page-search main>.sec:first-child{padding-top:32px}
  .page-search main>.sec:first-child .wrap{padding-block:26px}
  .page-search main>.sec:first-child .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .page-search main>.sec:first-child .tabs button{min-width:0;height:auto;min-height:44px;padding:10px 8px;line-height:1.6;white-space:normal}
  .page-search .search-box{grid-template-columns:minmax(0,1fr)}
  .page-search .pfilters{grid-template-columns:minmax(0,1fr);padding:14px;gap:10px}
  .page-search :is(.search-box .inp,.pfilters .sel){min-width:0;max-width:100%}
  .page-search .pchips .chip{max-width:100%;min-height:44px;height:auto;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
  .page-search .tbl .btn{min-height:44px}
  .page-search #page-search-summary{overflow-wrap:anywhere}
  /* Search uses the same labeled cells as the catalog, but no tbl--products class. */
  .page-search .tbl{max-width:100%;min-width:0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible}
  .page-search .tbl table,.page-search .tbl tbody{display:block;width:100%;max-width:100%}
  .page-search .tbl thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .page-search .tbl tbody tr{display:flex;flex-direction:column;min-width:0;gap:0;margin-bottom:14px;padding:16px;background:#fff;border:1px solid #DFE7F4;border-radius:13px;box-shadow:0 5px 18px rgba(24,52,116,.035)}
  .page-search .tbl tbody tr:hover{background:#fff;box-shadow:0 5px 18px rgba(24,52,116,.035)}
  .page-search .tbl td{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;width:100%;min-width:0;padding:7px 0;border:0;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
  .page-search .tbl td::before{content:attr(data-label);color:#7C889F;font-size:12px;font-weight:400}
  .page-search .tbl td:nth-child(2){display:block;order:-1;padding:0 0 12px;margin-bottom:5px;border-bottom:1px solid var(--line-2)}
  .page-search .tbl td:nth-child(2)::before{display:none}
  .page-search .tbl .tbl__name{display:block;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
  .page-search .tbl .tags{margin-top:8px;gap:5px}
  .page-search .tbl .tag{max-width:100%;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
  .page-search .tbl td>*{min-width:0;justify-self:start}
  .page-search .tbl td[colspan]{display:block;padding:16px 2px!important;text-align:center!important}
  .page-search .tbl td[colspan]::before{display:none}
}
@media(max-width:430px){
  [data-catcar] .catcard{padding-inline:14px}
  [data-catcar] .catcard h3{font-size:16px}
  [data-catcar] .catcard p{font-size:12px}
}
@media(max-width:360px){
  [data-catcar] .catcard{padding-inline:10px}
  .page-search main>.sec:first-child .tabs button{font-size:13px}
  #featured-products .hot__stage{min-height:750px}
  #featured-products .hot__panel{top:320px}
  #featured-products .hot__disc{top:330px}
}
