@media (max-width: 1280px) {
  :root { --container: 1180px; }
  .header-grid { grid-template-columns: 178px 128px minmax(250px,1fr) 98px 48px; gap: 11px; }
  .header-grid { min-height: 80px; }
  .brand { width: 158px; }
  .options-inner nav { gap: 18px; }
  .dark-nav .page-container { gap: 30px; }
  .featured-row { width: min(calc(100% - 330px), 850px); }
  .product-rail { grid-auto-columns: calc((100% - 56px) / 5); }
  .brand-product.trio i:nth-child(3) { left: 155px; }
  .security-banner { grid-template-columns: 75px 1fr 170px 260px 120px; }
}

@media (max-width: 1024px) {
  .utility-right a:nth-child(-n+2),
  .options-inner nav a:nth-child(n+5),
  .categories-button span,
  .header-action span:not(.cart-count) { display: none; }
  .header-grid { grid-template-columns: 150px 52px minmax(236px,1fr) 54px 54px; min-height: 76px; gap: 8px; }
  .categories-button { width: 52px; padding: 0; }
  .header-action { border-left: 0; }
  .benefit-options { min-height: 40px; }
  .options-inner { min-height: 40px; }
  .options-inner nav { margin-left: auto; }
  .dark-nav { height: 41px; }
  .dark-nav .page-container { justify-content: flex-start; overflow-x: auto; gap: 30px; scrollbar-width: none; }
  .featured-row { width: min(calc(100% - 80px), 860px); }
  .product-rail { grid-auto-columns: calc((100% - 28px) / 3); }
  .compact-category-grid { grid-template-columns: repeat(3,1fr); }
  .promo-category-grid { grid-template-columns: repeat(2,1fr); }
  .split-layout,
  .smart-showcase .split-layout,
  .gaming-showcase .split-layout { grid-template-columns: 1fr; }
  .showcase-banner { min-height: 300px; }
  .showcase-categories { grid-template-columns: repeat(4,1fr); }
  .showcase-products { min-height: 320px; }
  .security-banner { grid-template-columns: 70px 1fr 160px 230px; }
  .security-banner em { display: none; }
  .price-category-rail { grid-auto-columns: calc((100% - 42px)/4); }
  .footer-grid { grid-template-columns: 1.4fr repeat(2,1fr); }
  .footer-column:nth-child(n+4) { margin-left: 0; }
  .floating-promo { width: 170px; height: auto; }
}

@media (max-width: 767px) {
  :root { --container: 100%; }
  .page-container { width: min(calc(100% - 24px), var(--container)); }
  .home-stack { gap: 20px; padding-block: 18px 30px; }
  .utility-bar,
  .benefit-options,
  .dark-nav,
  .categories-button,
  .purchases-link { display: none; }
  .main-header { padding: 7px 0 9px; }
  .header-grid { grid-template-columns: 44px 1fr 44px 44px; grid-template-rows: 47px 45px; gap: 6px 8px; min-height: 100px; }
  .mobile-menu { display: grid; grid-column: 1; grid-row: 1; place-items: center; width: 44px; height: 44px; padding: 0; color: #333; border: 0; background: #fff; }
  .brand { grid-column: 2; grid-row: 1; justify-self: start; width: 96px; }
  .search-form { grid-column: 1 / -1; grid-row: 2; }
  .account-button { grid-column: 3; grid-row: 1; }
  .cart-button { grid-column: 4; grid-row: 1; }
  .header-action { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .mobile-drawer { position: fixed; z-index: 100; inset: 0 auto 0 0; display: block; width: min(86vw,360px); padding: 16px; background: #fff; box-shadow: 8px 0 25px rgba(0,0,0,.2); transform: translateX(-102%); transition: transform .25s ease; }
  .mobile-drawer.is-open { transform: none; }
  .mobile-drawer .drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .mobile-drawer .drawer-head button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
  .mobile-drawer nav { display: grid; padding-top: 8px; }
  .mobile-drawer nav a { padding: 12px 8px; border-bottom: 1px solid #eee; font-size: 14px; }
  .drawer-backdrop { position: fixed; z-index: 90; inset: 0; display: block; background: rgba(0,0,0,.48); }
  .drawer-backdrop[hidden],
  .mobile-drawer[hidden] { display: none; }
  .categories-popover,
  .account-popover { position: fixed; top: 64px; right: 12px; left: auto; }

  .commerce-hero { min-height: 0; }
  .hero-bg,
  .home-hero-slider { height: 155px; }
  .home-hero-slide { background-position: center; }
  .featured-row { grid-auto-flow: column; grid-auto-columns: 77%; grid-template-columns: none; gap: 10px; width: calc(100% - 24px); margin-top: 14px; overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-width: none; }
  .featured-card { min-height: 268px; scroll-snap-align: start; }
  .featured-card .product-art { height: 145px; }

  .mini-promo-rail { grid-auto-columns: 83%; }
  .mini-promo { height: 105px; }
  .promo-ribbon-track { min-height: 31px; font-size: 12px; }
  .promo-ribbon-group { gap: 22px; padding-inline: 14px; }
  .promo-spots { grid-template-columns: 1fr; gap: 10px; margin-top: -4px; }
  .promo-spots img { aspect-ratio: 2.8 / 1; }
  .lifestyle-section > .round-arrow,
  .price-categories > .round-arrow { display: none; }
  .mini-promos > .mini-promo-arrow { width: 38px; height: 38px; }
  .mini-promos > .mini-promo-arrow.prev { left: -5px; }
  .mini-promos > .mini-promo-arrow.next { right: -5px; }
  .flash-sale { padding: 8px 7px 9px; border-width: 6px; }
  .flash-sale > header { align-items: flex-start; padding-inline: 2px; }
  .flash-sale h2 { max-width: 145px; font-size: 13px; }
  .countdown { gap: 2px; }
  .countdown > span { min-width: 31px; padding: 4px 3px; }
  .countdown i { font-size: 12px; }
  .product-rail { grid-auto-columns: 63%; gap: 10px; }
  .product-card { min-height: 420px; }
  .carousel-shell > .carousel-arrow { display: none; }
  .finance-banner { display: block; min-height: 0; padding: 0; }
  .section-header { align-items: flex-start; flex-direction: column; gap: 9px; }
  .section-header .tab-list { width: 100%; }
  .dual-promos { grid-template-columns: 1fr; }
  .brand-banner { height: 135px; }
  .brand-banner span { font-size: 28px; }
  .lifestyle-rail { grid-auto-columns: 87%; }
  .lifestyle-card { height: 230px; }
  .compact-category-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .compact-category { min-height: 0; padding: 0; }
  .promo-category-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: inline mandatory; scrollbar-width: none; }
  .promo-category-card { height: 280px; scroll-snap-align: start; }
  .showcase-heading { min-height: 0; }
  .split-layout { border-radius: 6px; }
  .showcase-banner { grid-template-columns: 55% 45%; min-height: 155px; padding: 24px 12px 24px 24px; }
  .showcase-banner h3 { font-size: 29px; }
  .showcase-banner small { font-size: 12px; }
  .showcase-categories { grid-template-columns: repeat(2,1fr); padding: 12px; }
  .showcase-category { height: 210px; }
  .showcase-products { display: grid; grid-auto-flow: column; grid-auto-columns: 63%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: inline mandatory; padding: 10px; }
  .smart-showcase .showcase-products,
  .gaming-showcase .showcase-products { grid-template-columns: none; }
  .showcase-products .product-card { scroll-snap-align: start; }
  .smart-showcase .section-header,
  .gaming-showcase .section-header { margin-bottom: 8px; }
  .security-banner { grid-template-columns: 56px 1fr 120px; min-height: 55px; padding: 0 12px; }
  .security-banner > div:nth-child(2) { font-size: 12px; }
  .security-banner > div:nth-child(2) strong { font-size: 16px; }
  .security-price { padding-inline: 7px; }
  .security-price b { font-size: 19px; }
  .security-items { display: none; }
  .price-category-rail { grid-auto-columns: 68%; gap: 10px; }
  .popular-searches a { font-size: 12px; }
  .seo-columns { grid-template-columns: 1fr; gap: 8px; }

  .footer-grid { display: block; padding-block: 36px 20px; }
  .footer-contact { margin-bottom: 22px; }
  .footer-column { margin: 0 !important; border-top: 1px solid #e5e7eb; }
  .footer-column h3, .footer-column h4 { min-height: 49px; display: flex; align-items: center; }
  .footer-column > div { padding-bottom: 14px; }
  .footer-column > div[hidden] { display: none; }
  .trust-row { overflow-x: auto; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; padding-block: 22px; text-align: center; }
  .footer-bottom p { justify-self: center; }
  .footer-bottom nav { flex-wrap: wrap; justify-content: center; }
  .floating-promo { display: none; }
  .support-button { right: 13px; bottom: 84px; width: 56px; height: 56px; border-radius: 50%; }
  .support-button:hover { width: 56px; }
  .support-button:hover span { display: none; }
  .back-to-top { right: 13px; bottom: 15px; width: 56px; height: 56px; }
}

@media (max-width: 479px) {
  .product-rail { grid-auto-columns: 71%; }
  .brand-banner { grid-template-columns: 42% 58%; }
  .brand-product.trio i { width: 48px; height: 104px; }
  .brand-product.trio i:nth-child(1) { left: 10px; }
  .brand-product.trio i:nth-child(2) { left: 56px; height: 118px; }
  .brand-product.trio i:nth-child(3) { left: 102px; }
  .laptop-pair i { width: 120px; height: 78px; }
  .laptop-pair i:first-child { left: -16px; }
  .laptop-pair i:last-child { left: 54px; }
  .showcase-banner { padding-left: 18px; }
  .showcase-banner h3 { font-size: 25px; }
  .monitor-art { right: -30px; width: 160px; height: 102px; }
  .tower-art { display: none; }
  .robot-scene i { right: -50px; width: 185px; }
  .gaming-scene i { right: -60px; width: 170px; }
  .gaming-scene span { right: 0; }
}
