/* Mega Sewa Global layout polish v4 — final spacing/overflow pass */
*{box-sizing:border-box}
html,body{width:100%;max-width:100%;overflow-x:hidden}
a,button,input,select,textarea{font:inherit}

/* ---------- DESKTOP / LAPTOP ---------- */
@media (min-width:1200px){
  body{margin:0;background:#fff;color:#101827}
  .desktop-site{display:block!important}.mobile-app{display:none!important}

  .desktop-header{height:72px!important;position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.98);border-bottom:1px solid #e8ebef;box-shadow:0 1px 8px rgba(15,23,42,.04)}
  .desktop-header .inner{width:100%!important;max-width:1540px!important;margin:0 auto!important;padding:0 28px!important;grid-template-columns:285px minmax(360px,1fr) auto!important;gap:22px!important}
  .desk-brand{gap:10px!important;font-size:23px!important;min-width:0}.desk-brand img{width:72px!important;height:54px!important;object-fit:contain!important}.desk-brand span{overflow:hidden;text-overflow:ellipsis}.desk-brand small{font-size:.58em!important}
  .desk-search{height:42px!important;min-width:0!important}.desk-search input{font-size:13px!important;padding:0 15px!important;min-width:0!important}.desk-search button{width:105px!important;flex:0 0 105px!important}
  .desk-nav{gap:19px!important}.desk-nav a{font-size:13px!important;padding:25px 0 20px!important}

  .hero-desktop{height:385px!important;min-height:385px!important;position:relative!important;overflow:hidden!important;background-size:cover!important;background-position:center!important;isolation:isolate}
  .hero-desktop:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 31%,rgba(255,255,255,.72) 45%,rgba(255,255,255,.13) 67%,rgba(255,255,255,0) 82%)}
  .hero-desktop:after{content:none!important}
  .hero-desktop .copy{width:min(690px,47vw)!important;max-width:690px!important;margin-left:max(40px,calc((100vw - 1540px)/2 + 28px))!important;padding:26px 0 24px!important;position:relative!important;z-index:2!important;overflow:visible!important}
  .eyebrow{font-size:12px!important;line-height:1.25!important;letter-spacing:2.6px!important;margin:0 0 10px!important;white-space:normal!important}
  .hero-desktop h1{font-size:52px!important;line-height:1.02!important;letter-spacing:-1.7px!important;margin:0 0 12px!important;max-width:680px!important;overflow:visible!important}
  .hero-desktop p{font-size:17px!important;line-height:1.45!important;max-width:625px!important;margin:0 0 16px!important;color:#596474!important}
  .hero-desktop .btn-red{padding:11px 20px!important;font-size:14px!important;border-radius:7px!important}
  .hero-points{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-top:20px!important;width:min(680px,46vw)!important;overflow:visible!important}
  .hero-point{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;min-width:0!important;font-size:11px!important;line-height:1.2!important}
  .hero-point i{width:38px!important;height:38px!important;min-width:38px!important;font-size:18px!important;box-shadow:0 3px 13px rgba(15,23,42,.09)!important}
  .hero-point div,.hero-point b{min-width:0!important;overflow:visible!important;white-space:normal!important}

  .desktop-wrap{width:100%!important;max-width:1540px!important;margin:0 auto!important;padding:0 28px!important}
  .section{padding:24px 0!important}.section+.section{border-top:1px solid #f0f2f5}
  .section-title{min-height:38px!important;margin:0 0 15px!important;gap:20px!important;align-items:center!important}.section-title h2{font-size:27px!important;line-height:1.1!important}.section-title a,.section-title>span{flex:0 0 auto!important;white-space:nowrap!important}

  .desk-category-strip{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:12px!important}
  .desk-cat-chip{height:102px!important;grid-template-columns:88px minmax(0,1fr) 20px!important;padding:9px!important;border-radius:11px!important;overflow:hidden!important}.desk-cat-chip img{width:82px!important;height:78px!important;object-fit:contain!important}.desk-cat-chip strong{font-size:13px!important;line-height:1.15!important;overflow-wrap:anywhere!important;min-width:0!important}.desk-cat-chip>i:last-child{justify-self:end!important}

  .desk-product-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important}
  .desk-card{min-width:0!important;border-radius:12px!important;display:flex!important;flex-direction:column!important;height:100%!important;overflow:hidden!important}.desk-card .img{height:178px!important;flex:0 0 178px!important}.desk-card .img img{object-fit:contain!important;padding:4px!important}.desk-card .body{padding:10px 10px 11px!important;display:flex!important;flex-direction:column!important;min-width:0!important;flex:1!important}.desk-card h3{font-size:14px!important;line-height:1.18!important;min-height:34px!important;margin:0 0 4px!important;overflow:hidden!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}.desk-card p{font-size:11.5px!important;line-height:1.3!important;height:31px!important;margin:0 0 9px!important;overflow:hidden!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important}.desk-actions{grid-template-columns:minmax(72px,.78fr) minmax(105px,1.22fr)!important;gap:6px!important;margin-top:auto!important}.desk-actions a{height:34px!important;font-size:11px!important;padding:0 7px!important;gap:4px!important;overflow:visible!important;white-space:nowrap!important}.desk-actions i{flex:0 0 auto!important}
  .desk-card .fav{width:30px!important;height:30px!important;right:9px!important;top:9px!important}

  .trustbar{margin:22px 0 26px!important;padding:15px 12px!important;gap:0!important;overflow:visible!important}.trust{padding:3px 18px!important;min-height:50px!important}.trust i{font-size:25px!important;flex:0 0 30px!important}.trust strong{font-size:12.5px!important;line-height:1.2!important}.trust span{font-size:10.5px!important;line-height:1.2!important;display:block!important;margin-top:2px!important}

  .catalog-layout{grid-template-columns:260px minmax(0,1fr)!important;gap:22px!important;padding:24px 0 30px!important}.catalog-main{min-width:0!important}.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}.catalog-grid .desk-card .img{height:190px!important}.filter-panel{align-self:start!important;position:sticky!important;top:92px!important;overflow:hidden!important}.filter-panel h3{font-size:17px!important}.filter-group{padding:14px 15px!important}.check{line-height:1.35!important}
  .category-layout{grid-template-columns:260px minmax(0,1fr)!important;gap:22px!important;padding:24px 0 30px!important}.cat-grid-desktop{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important}.cat-large{min-width:0!important}.cat-large img{height:165px!important}.cat-large .meta{padding:11px 12px 13px!important}.cat-large h3{font-size:16px!important;line-height:1.2!important}.cat-large p{height:34px!important;line-height:1.3!important}

  .product-detail-desktop{padding:24px 28px 34px!important}.pd-grid{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr)!important;gap:36px!important}.pd-main{height:500px!important}.pd-info{min-width:0!important}.pd-info h1{font-size:40px!important;line-height:1.07!important;overflow-wrap:anywhere!important}.pd-info .lead{font-size:16px!important}.pd-top-actions a{padding:11px 20px!important}.pd-badges{gap:10px!important}.pd-badge{min-width:0!important;line-height:1.25!important}.spec-split{min-width:0!important}.spec-row{grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr)!important}.spec-row b{overflow-wrap:anywhere!important}.description-box{max-width:100%!important;overflow:hidden!important}.description-box *{max-width:100%!important}.description-box img{height:auto!important}.description-box table{display:block!important;overflow-x:auto!important}

  .about-grid{grid-template-columns:minmax(300px,.85fr) minmax(0,1.2fr) minmax(0,1.4fr)!important;gap:20px!important;padding:26px 0!important;align-items:stretch!important}.about-grid>img{height:100%!important;min-height:285px!important}.about-copy{min-width:0!important}.about-copy h2{font-size:29px!important}.about-cards{gap:10px!important}.about-mini{padding:16px!important;min-width:0!important}.about-mini h3{font-size:16px!important}.about-mini p{font-size:12px!important;line-height:1.4!important}
  .support-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}.support-card{min-width:0!important}.support-card img{height:128px!important}.support-card h3{font-size:15px!important;overflow-wrap:anywhere!important}.contact-grid{gap:20px!important;padding:5px 0 24px!important}.contact-box{min-width:0!important}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.form-grid>*{min-width:0!important}
}

/* Medium laptop: keep everything readable instead of squeezing/cutting. */
@media (min-width:1200px) and (max-width:1399.98px){
  .desktop-header .inner{max-width:1260px!important;padding:0 20px!important;grid-template-columns:235px minmax(300px,1fr) auto!important;gap:13px!important}.desk-brand{font-size:19px!important}.desk-brand img{width:62px!important}.desk-nav{gap:11px!important}.desk-nav a{font-size:11.5px!important}.desk-search button{width:86px!important;flex-basis:86px!important}
  .hero-desktop{height:350px!important;min-height:350px!important}.hero-desktop .copy{margin-left:32px!important;width:52vw!important;padding:22px 0!important}.hero-desktop h1{font-size:44px!important}.hero-desktop p{font-size:15px!important}.hero-points{width:54vw!important;gap:9px!important}.hero-point{font-size:10.5px!important;grid-template-columns:34px minmax(0,1fr)!important}.hero-point i{width:34px!important;height:34px!important;min-width:34px!important}
  .desktop-wrap{max-width:1260px!important;padding:0 20px!important}.desk-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.desk-category-strip{grid-template-columns:repeat(4,minmax(0,1fr))!important}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.cat-grid-desktop{grid-template-columns:repeat(3,minmax(0,1fr))!important}.about-grid{grid-template-columns:310px minmax(0,1fr)!important}.about-cards{grid-column:1/-1!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}.support-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ---------- MOBILE / TABLET ---------- */
@media (max-width:1199.98px){
  .app-header,.page-pad,.bottom-nav{max-width:100%!important}
  .brand-wrap,.brand-name,.top-icons,.app-search,.chip,.m-card,.m-info,.m-actions,.section-head,.section-head h1,.section-head h2{min-width:0!important}
  .brand-name{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
  .hero-ref{aspect-ratio:2.08/1!important;min-height:150px!important;object-fit:cover!important}
  .chip{overflow:visible!important;word-break:normal!important;text-align:center!important}.chip br{display:block!important}
  .m-title{overflow:hidden!important}.m-actions a{overflow:visible!important;text-overflow:clip!important}
}
@media (max-width:480px){
  .hero-ref{min-height:142px!important;aspect-ratio:2.05/1!important}
  .chip-strip{gap:6px!important}.chip{height:92px!important;font-size:9.5px!important;line-height:1.05!important}.chip i{font-size:23px!important}
  .section-head{align-items:center!important}.section-head h1,.section-head h2{font-size:22px!important;line-height:1.08!important}.section-head a{font-size:12px!important}
  .m-title{font-size:12.5px!important;line-height:1.12!important;min-height:30px!important}.m-desc{font-size:10.3px!important;line-height:1.2!important}.save-btn,.wa-btn{font-size:9px!important;padding:0 3px!important;overflow:visible!important}.save-btn i,.wa-btn i{font-size:12px!important}
}
