/* Final responsive guard for the BYDALA homepage. */
body.home-page {
  overflow-x: clip;
}

body.home-page .market-header {
  box-sizing: border-box;
  min-height: clamp(50px, 5vw, 64px);
  padding: 7px 12px;
}

body.home-page .market-header-inner {
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  min-height: clamp(42px, 4.5vw, 52px);
  min-width: 0;
}

body.home-page .market-brand,
body.home-page .language-switcher {
  flex: 0 0 auto;
}

body.home-page .market-nav {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  min-width: 0;
  width: auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

body.home-page .market-nav::-webkit-scrollbar,
body.home-page .system-rail::-webkit-scrollbar {
  display: none;
}

body.home-page:not(.is-showroom-view) .electro-hero {
  height: min(720px, calc(100svh - 96px));
  min-height: 520px;
  max-height: 720px;
}

body.home-page:not(.is-showroom-view) .olaa-style-shop {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 1480px);
  padding-top: 28px;
}

body.home-page .system-showcase-head {
  min-width: 0;
  margin-bottom: 12px;
}

body.home-page .system-showcase-head h2 {
  font-size: 34px;
  line-height: 1.08;
}

body.home-page .olaa-style-shop .system-rail.system-rail--covers {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 12px !important;
  min-width: 0;
  padding: 2px 0 12px !important;
  overflow: visible !important;
}

body.home-page .olaa-style-shop .system-rail.system-rail--covers > .system-rail-card {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1.08;
}

body.home-page .olaa-style-shop .system-rail.system-rail--covers > .system-rail-card img {
  padding: clamp(12px, 1.4vw, 18px) clamp(12px, 1.4vw, 18px) clamp(44px, 4.5vw, 58px) !important;
}

body.home-page .market-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-top: 48px;
  padding: 32px max(24px, calc((100% - 1480px) / 2));
  gap: 18px 28px;
}

body.home-page .market-footer > *,
body.home-page .market-footer-actions,
body.home-page .friend-links {
  min-width: 0;
}

@media (max-width: 1080px) {
  body.home-page .olaa-style-shop .system-rail.system-rail--covers {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.home-page .olaa-style-shop .system-rail.system-rail--covers {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

/* Keep the exact-model showroom short: one responsive image rail at every width. */
body.home-page.is-showroom-view .showroom-products {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 1480px);
  padding-top: 118px;
  padding-bottom: 32px;
}

body.home-page.is-showroom-view .showroom-header {
  margin-bottom: 18px;
}

body.home-page.is-showroom-view .showroom-model-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 5);
  grid-template-columns: none !important;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  padding: 2px 0 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.home-page.is-showroom-view .showroom-model-grid::-webkit-scrollbar {
  display: none;
}

body.home-page.is-showroom-view .showroom-model-card {
  grid-template-rows: minmax(0, 1fr) 64px;
  width: auto;
  min-width: 0;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
}

body.home-page.is-showroom-view .showroom-model-card img {
  min-height: 0;
  padding: clamp(10px, 1.4vw, 18px);
}

body.home-page.is-showroom-view .showroom-model-card strong {
  min-height: 0;
  height: 100%;
  padding: 10px 12px;
}

body.home-page.is-showroom-view .market-footer {
  margin-top: 0;
}

@media (max-width: 1180px) {
  body.home-page .nav-store-contact a:last-child {
    display: none;
  }

  body.home-page:not(.is-showroom-view) .electro-hero {
    height: min(650px, calc(100svh - 92px));
    min-height: 500px;
  }

  body.home-page.is-showroom-view .showroom-model-grid {
    grid-auto-columns: calc((100% - 36px) / 4);
  }
}

@media (max-width: 820px) {
  body.home-page {
    padding-bottom: 86px;
  }

  body.home-page .market-header {
    top: 6px;
    width: calc(100% - 16px);
    min-height: 52px;
    margin-top: 0;
    padding: 4px 8px;
    border-radius: 12px;
  }

  body.home-page .market-header-inner {
    min-height: 42px;
    gap: 7px;
  }

  body.home-page .market-nav {
    display: none;
  }

  body.home-page .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  body.home-page .brand-text small {
    font-size: 8px;
    white-space: nowrap;
  }

  body.home-page .language-switcher {
    margin-left: auto;
  }

  body.home-page .language-switcher button {
    min-width: 30px;
    min-height: 34px;
    height: 34px;
    padding-inline: 5px;
  }

  body.home-page .mobile-shop-nav {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 7px;
    border: 1px solid rgba(17, 21, 19, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 44px rgba(17, 21, 19, 0.16);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  body.home-page .mobile-shop-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    min-height: 48px;
    border-radius: 12px;
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
  }

  body.home-page .mobile-shop-nav span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 15px;
    line-height: 1;
  }

  body.home-page:not(.is-showroom-view) .electro-hero {
    height: min(590px, calc(100svh - 84px));
    min-height: 470px;
  }

  body.home-page .system-showcase-head h2 {
    font-size: 28px;
  }

  body.home-page .market-footer {
    grid-template-columns: 1fr;
    margin-top: 36px;
    min-height: 0;
    padding: 20px 20px 82px;
    gap: 10px;
  }

  body.home-page .market-footer > div p {
    display: none;
  }

  body.home-page .market-footer-actions {
    justify-content: flex-start;
  }

  body.home-page .friend-links {
    grid-column: 1;
    flex-wrap: wrap;
    overflow: visible;
    padding-top: 12px;
  }

  body.home-page .friend-links > * {
    flex: 0 1 auto;
  }

  body.home-page.is-showroom-view .showroom-products {
    width: calc(100% - 20px);
    padding-top: 84px;
    padding-bottom: 24px;
  }

  body.home-page.is-showroom-view .showroom-model-grid {
    grid-auto-columns: calc((100% - 24px) / 3);
  }

  body.home-page.is-showroom-view .showroom-model-card {
    grid-template-rows: minmax(0, 1fr) 58px;
  }
}

@media (max-width: 620px) {
  body.home-page .market-header {
    top: 6px;
    width: calc(100% - 12px);
    min-height: 50px;
    padding: 3px 7px;
    border-radius: 10px;
  }

  body.home-page .market-header-inner {
    min-height: 42px;
    gap: 6px;
  }

  body.home-page .market-nav {
    display: none;
  }

  body.home-page .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  body.home-page .brand-text small {
    font-size: 8px;
    white-space: nowrap;
  }

  body.home-page .language-switcher button {
    min-width: 29px;
    min-height: 34px;
    height: 34px;
    padding-inline: 4px;
  }

  body.home-page:not(.is-showroom-view) .electro-hero {
    height: min(520px, calc(100svh - 76px));
    min-height: 430px;
    max-height: 520px;
  }

  body.home-page:not(.is-showroom-view) .olaa-style-shop {
    width: calc(100% - 20px);
    padding-top: 20px;
  }

  body.home-page .system-showcase-head {
    margin-bottom: 8px;
  }

  body.home-page .system-showcase-head h2 {
    font-size: 24px;
  }

  body.home-page .system-showcase-head > p {
    display: none;
  }

  body.home-page .olaa-style-shop .system-rail.system-rail--covers {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
  }

  body.home-page .olaa-style-shop .system-rail.system-rail--covers > .system-rail-card {
    aspect-ratio: 1 / 1.05;
    border-radius: 10px !important;
  }

  body.home-page .olaa-style-shop .system-rail.system-rail--covers > .system-rail-card img {
    padding: 8px 8px 36px !important;
  }

  body.home-page .olaa-style-shop .system-rail.system-rail--covers > .system-rail-card .system-copy {
    padding: 7px !important;
  }

  body.home-page .olaa-style-shop .system-rail.system-rail--covers > .system-rail-card .system-copy strong {
    font-size: clamp(10px, 2.9vw, 12px) !important;
    line-height: 1.12 !important;
  }

  body.home-page .market-footer {
    margin-top: 24px;
    padding: 14px 12px 72px;
    gap: 8px;
  }

  body.home-page .market-footer > div p {
    display: none;
  }

  body.home-page .market-footer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  body.home-page .market-footer-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 0;
    padding: 7px 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-page .friend-links {
    gap: 6px 12px;
    padding-top: 7px;
  }

  body.home-page.is-showroom-view .showroom-products {
    width: calc(100% - 20px);
    padding-top: 80px;
    padding-bottom: 18px;
  }

  body.home-page.is-showroom-view .showroom-header {
    gap: 4px;
    margin-bottom: 10px;
  }

  body.home-page.is-showroom-view .showroom-header h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  body.home-page.is-showroom-view .showroom-header > p {
    display: none;
  }

  body.home-page.is-showroom-view .showroom-model-grid {
    grid-auto-columns: calc((100% - 8px) / 2);
    gap: 8px;
    padding-bottom: 8px;
  }

  body.home-page.is-showroom-view .showroom-model-card {
    grid-template-rows: minmax(0, 1fr) 54px;
    border-radius: 8px;
  }

  body.home-page.is-showroom-view .showroom-model-card strong {
    padding: 8px 9px;
    font-size: 10px;
  }

  body.home-page.is-showroom-view .market-footer {
    margin-top: 0;
  }

  /* 20260730-mobile-two-column-product-shelf */
  body.home-page #products .commerce-layout .product-grid[data-product-grid],
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf,
  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1),
  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1),
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf,
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1),
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 6px !important;
    gap: 7px !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-card-media,
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-card-media {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(n) .product-copy,
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(n) .product-copy {
    display: grid !important;
    grid-template-areas:
      "name"
      "actions" !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 38px 34px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 78px !important;
    height: 78px !important;
    max-height: 78px !important;
    gap: 6px !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3,
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3 {
    grid-area: name !important;
    display: -webkit-box !important;
    min-height: 0 !important;
    height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    font-size: clamp(10px, 2.8vw, 12px) !important;
    line-height: 16px !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > :is(small, p, .product-meta, .product-spec-pills, .price-row),
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > :is(small, p, .product-meta, .product-spec-pills, .price-row) {
    display: none !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions,
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    max-height: 34px !important;
    gap: 5px !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions button,
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    max-height: 34px !important;
    padding: 0 4px !important;
    font-size: clamp(9px, 2.5vw, 11px) !important;
    line-height: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 621px) {
  /* 20260730-desktop-compact-product-shelf */
  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(n),
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(n) {
    display: grid !important;
    grid-template-rows: auto 98px !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(n) .product-copy,
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(n) .product-copy {
    display: grid !important;
    grid-template:
      "name" 44px
      "actions" 44px /
      minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 98px !important;
    height: 98px !important;
    max-height: 98px !important;
    gap: 10px !important;
    overflow: hidden !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3,
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3 {
    grid-area: name !important;
    display: -webkit-box !important;
    min-height: 0 !important;
    height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > :is(small, p, .product-meta, .product-spec-pills, .price-row),
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > :is(small, p, .product-meta, .product-spec-pills, .price-row) {
    display: none !important;
  }

  body.home-page #products .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions,
  body.home-page .product-area .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
    gap: 8px !important;
  }
}

@media (max-width: 460px) {
  body.home-page .olaa-style-shop .system-rail.system-rail--covers {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.home-page .olaa-style-shop .system-rail.system-rail--covers > .system-rail-card {
    aspect-ratio: 1.08 / 1;
  }

  body.home-page .olaa-style-shop .system-rail.system-rail--covers > .system-rail-card .system-copy strong {
    font-size: clamp(12px, 3.5vw, 14px) !important;
  }
}

@media (max-width: 370px) {
  body.home-page .brand-text small {
    display: none;
  }

  body.home-page .language-switcher button {
    min-width: 29px;
    padding-inline: 4px;
  }

}
