/* OLMAX adaptive storefront — fluid shell and density, not viewport zoom.
   Existing palette, images, payment widgets, data and interaction code are retained. */
body.goods-store { --om-fluid-gutter: clamp(24px, 2vw, 88px); }
@media (min-width: 1540px) {
  body.goods-store :is(.om-store-header .gs-topbar > .container,
    .om-store-header .gs-navline > .container.om-navline-layout,
    .om-store-header .om-search-wrap > .container,
    .gs-footer > .container, main > .container, .gs-home-v3.container) {
    width: 100%;
    max-width: none;
    padding-inline: var(--om-fluid-gutter);
  }
  /* The native ID-specific page rules otherwise retain their old 1480px cap. */
  body.goods-store main > .container[id] {
    max-width: none !important;
    width: 100%;
    padding-inline: var(--om-fluid-gutter);
  }
  body.goods-store :is(#product-category,#product-search,#product-manufacturer,#product-special) > .row > #column-left {
    flex: 0 0 clamp(260px, 17vw, 340px);
    width: clamp(260px, 17vw, 340px);
    max-width: 340px;
  }
  body.goods-store :is(#product-category,#product-search,#product-manufacturer,#product-special) > .row > #content {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
  body.goods-store .om-store-header .om-topnav > a {
    font-size: clamp(14px, .43vw, 17px);
  }
  body.goods-store .om-store-header .om-masthead .gs-top-contact {
    font-size: clamp(12px, .39vw, 15px);
  }
  body.goods-store .gs-home-v3 .gs-department-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 185px), 1fr));
  }
  body.goods-store #product-info .gs-product-layout {
    max-width: 2600px;
    margin-inline: auto;
  }
  body.goods-store #product-info .olmax-product-heading h1 {
    font-size: clamp(26px, 1.02vw, 40px);
  }
  /* Long-form information and authentication remain readable, not stretched. */
  body.goods-store :is(#information-information,#information-contact,#account-login,#account-register,
    #account-forgotten,#account-password,#account-edit) #content {
    max-width: 1280px;
    margin-inline: auto;
    min-width: 0;
  }
}
@media (min-width: 992px) {
  body.goods-store :is(#product-category,#product-search,#product-manufacturer,#product-special) #product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    align-items: stretch;
    gap: clamp(12px, 1vw, 22px);
    margin-inline: 0;
    width: 100%;
  }
  body.goods-store :is(#product-category,#product-search,#product-manufacturer,#product-special) #product-list > .col {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    margin: 0 !important;
  }
  body.goods-store .gs-home-v3 :is(.gs-featured-native-grid,.gs-product-grid) {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  }
}
@media (min-width: 1540px) {
  body.goods-store :is(#product-category,#product-search,#product-manufacturer,#product-special) #product-list,
  body.goods-store .gs-home-v3 :is(.gs-featured-native-grid,.gs-product-grid) {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, clamp(250px, 9vw, 320px)), 1fr));
  }
}
@media (max-width: 339px) {
  body.goods-store :is(#product-category,#product-search,#product-manufacturer,#product-special) #product-list > .col {
    width: 100%;
  }
  body.goods-store .gs-home-v3 :is(.gs-featured-native-grid,.gs-product-grid),
  body.goods-store #product-info .row:has(> .col > .gs-product-card) {
    grid-template-columns: minmax(0,1fr);
  }
}
body.goods-store :is(.gs-product-card,.gs-home-stage-content,.gs-product-gallery,.gs-product-detail) {
  min-width: 0;
}
body.goods-store #information-information :is(h2[id],h3[id]) { scroll-margin-top: 96px; }
@media (max-height: 500px) and (orientation: landscape) {
  body.goods-store .om-store-header .gs-topbar { position: relative; }
}

@media (min-width: 1540px) {
  body.goods-store #product-info .row:has(> .col > .gs-product-card) {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));
    gap:clamp(12px,1vw,22px);
    margin-inline:0;
  }
  body.goods-store #product-info .row:has(> .col > .gs-product-card) > .col {
    width:auto;min-width:0;max-width:none;padding:0;margin:0 !important;
  }
}
@media (max-width:339px) {
  body.goods-store #product-info .row:has(> .col > .gs-product-card) > .col {
    width:100%;
  }
}

/* Desktop popover remains next to its trigger at any wide resolution. */
@media (min-width: 1540px) {
  body.goods-store .om-nav[open] > .om-nav-popover {
    left: var(--om-fluid-gutter);
    transform: none;
  }
  body.goods-store .gs-filters .gs-filter-form:has(> .gs-filter-price):is(:has(> .gs-filter-brands),:has(> .gs-filter-specs)) {
    grid-template-columns: minmax(240px, min(32%, 500px)) minmax(0, 1fr);
  }
  body.goods-store .gs-filters .gs-filter-form > .gs-filter-price {
    max-width: 500px;
    width: 100%;
  }
  body.goods-store .gs-filters .gs-filter-spec-grid {
    grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr));
  }
  body.goods-store #product-manufacturer:not(:has(#product-list)) #content {
    max-width: 2000px;
    margin-inline: auto;
  }
}
@media (min-width: 821px) and (max-height: 520px) {
  body.goods-store .om-nav[open] > .om-nav-popover {
    position: fixed;
    left: 50%;
    top: 8px;
    bottom: 8px;
    transform: translateX(-50%);
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }
}
@media (max-width: 820px) and (max-height: 320px) {
  body.goods-store .om-nav[open] > .om-nav-popover {
    min-height: 0;
    height: calc(100dvh - 8px);
    max-height: calc(100dvh - 8px);
  }
}
