@media(max-width:900px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  img,svg,video{max-width:100%}
  .header{height:72px;grid-template-columns:minmax(0,1fr) auto;padding:0 14px;gap:6px}
  .header .search,.header .menu-button{display:none}
  .header-actions{display:flex;gap:2px}
  .header-actions .icon-btn{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:7px;cursor:pointer}
  .header-actions .icon-btn span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .header-actions .icon-btn b{top:1px;right:1px}
  .main-nav{position:static;width:100%;height:48px;transform:none;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:24px;padding:0 14px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
  .main-nav a{height:100%;padding:0;white-space:nowrap;flex:0 0 auto}
  .section{width:100%;max-width:100%;padding-inline:22px}
  .category-grid,.product-grid{width:100%;max-width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .category-card,.product-card{min-width:0;max-width:100%}
  .promise{width:auto;max-width:calc(100% - 32px);margin-inline:16px;padding:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
  .promise div{min-width:0;padding:14px;border-right:0;border-bottom:1px solid #ddc6aa}
  .promise div:nth-last-child(-n+2){border-bottom:0}
  .samidha-feature,.bulk{width:auto;max-width:calc(100% - 32px);margin-inline:16px}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .portal-header,.portal-nav,.portal-main,.portal-footer,.admin-main{max-width:100%}
  .portal-nav{overflow-x:auto}
  .admin-panel{max-width:100%;overflow-x:auto}
  .product-page,.product-main,.gallery,.main-photo,.thumb-row,.buy-panel{width:100%;max-width:100%;min-width:0}
  .thumb-row{overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:4px}
  .thumb,.arrow{flex:0 0 auto}
  .portal-layout,.account-content,.page-width{width:100%;max-width:100%;min-width:0}
  .account-content .panel{width:100%;max-width:100%;overflow-x:auto}
  .admin-side,.admin-main{width:100%;max-width:100%;min-width:0}
  .admin-side nav{max-width:100%;overflow-x:auto}
  .admin-main>header{flex-wrap:wrap;gap:10px}
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps{grid-template-columns:repeat(4,minmax(0,1fr))}
  .steps div{min-width:0}
  .steps span{white-space:normal;overflow-wrap:anywhere;line-height:1.2}
}
@media(max-width:600px){
  .section{padding-inline:16px}
  .category-grid,.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .promise{grid-template-columns:1fr}
  .promise div,.promise div:nth-last-child(-n+2){border-bottom:1px solid #ddc6aa}
  .promise div:last-child{border-bottom:0}
  .section-heading.row,.bulk{align-items:flex-start;flex-direction:column}
  .footer-grid{grid-template-columns:1fr}
  .order-table{min-width:480px}
  .admin-table{min-width:620px}
}
@media(max-width:420px){
  .header{padding-inline:10px}
  .brand{gap:5px;min-width:0}
  .brand strong{font-size:17px}
  .brand small{display:none}
  .brand-mark{width:34px;height:42px;font-size:32px}
  .header-actions .icon-btn{min-width:38px;padding:5px}
}
