/* Shared responsive layout for the public GoMerch catalogue. */
html { scroll-padding-top: 140px; overflow-x: clip; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--purpl); outline-offset: 3px;
}
.mobile-menu-toggle, .mobile-filter-toggle { display: none; }
.detail .wrap > *, .foot-grid > *, .hero-inner > * { min-width: 0; }
.detail h1, .detail .meta .v, .enq-preview .info b { overflow-wrap: anywhere; }
/* The demo notice must not cover the header or modal controls. */
html body { padding-top: 0; }
body .demo-banner { position: static; font-size: 10px; line-height: 1.7; padding: 12px 16px; box-shadow: none; }
body .demo-reset-btn { position: static; display: block; margin: 12px auto; min-height: 44px; }
.enq-back { z-index: 300; overscroll-behavior: contain; }
.enq-modal { max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.enq-modal .close { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; width: 44px; height: 44px; }
.enq-head { padding-right: 76px; }
.enq-preview img { flex-shrink: 0; }
.enq-form-grid > *, .enq-field { min-width: 0; }
#sizeChartModal .sc-close { width: 44px; height: 44px; }
#sizeChartModal .sc-table-wrap { overscroll-behavior-x: contain; }
@media (max-width: 1180px) {
  nav.hdr { height: auto; min-height: 72px; grid-template-columns: minmax(0,1fr) minmax(180px,280px) auto auto; gap: 12px; padding-block: 12px; }
  nav.hdr > .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  nav.hdr .brand-logo { height: auto; width: min(100%,210px); }
  nav.hdr > .search-wrap { grid-column: 2; grid-row: 1; display: block; min-width: 0; max-width: none; width: 100%; }
  nav.hdr input.search { height: 44px; font-size: 16px; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; grid-column: 3; grid-row: 1; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13px; font-weight: 800; }
  .mobile-menu-toggle svg { width: 18px; height: 18px; }
  nav.hdr > .cart-btn { grid-column: 4; grid-row: 1; min-width: 44px; min-height: 44px; }
  nav.hdr > .nav-links { display: none; grid-column: 1/-1; grid-row: 2; justify-self: stretch; gap: 4px; padding-top: 8px; border-top: 1px solid var(--border); }
  nav.hdr.menu-open > .nav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  nav.hdr .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 10px; border-radius: 8px; }
  nav.hdr .nav-links a:hover { background: var(--lav); }
  .topbar { height: auto; min-height: 36px; gap: 8px; flex-wrap: wrap; }
  .lang span, .curr span { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 36px; }
  .topbar-left .scrawl { display: none; }
  .detail .wrap { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
  .detail .tier { grid-template-columns: auto 1fr; gap: 6px 10px; }
  .detail .tier .per-pc, .detail .tier .total { text-align: right; }
  .detail .tier .save { grid-column: 1; text-align: left; white-space: normal; }
  .detail .tier .total { grid-column: 2; white-space: normal; }
}
@media (max-width: 900px) {
  .detail .wrap { grid-template-columns: minmax(0,1fr); }
  .detail .gallery { max-width: 540px; margin-inline: auto; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters input { grid-column: 1/-1; }
  .filters :is(input,select,.reset) { min-height: 44px; font-size: 16px; }
  .detail :is(.size-chip,.color-chip,.show-more-btn,.doc-btn,.variant-thumb), .subseg-chip { min-height: 44px; }
  .detail .size-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
  .detail input, .enq-modal input, .enq-modal select, .enq-modal textarea { font-size: 16px !important; }
  .detail .actions > *, .enq-actions > * { min-height: 44px; justify-content: center; }
  .tech-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
}
@media (max-width: 600px) {
  .topbar { padding-inline: 16px; font-size: 10px; }
  .topbar-left { display: none; }
  .topbar-right { width: 100%; justify-content: space-between; gap: 8px; }
  nav.hdr { grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; padding: 10px 16px; }
  nav.hdr .brand-logo { width: min(100%,180px); }
  nav.hdr .brand-svg { max-width: 125px; height: auto; }
  nav.hdr .brand-tag, nav.hdr .brand-sep { display: none; }
  nav.hdr > .mobile-menu-toggle { grid-column: 2; padding-inline: 9px; }
  nav.hdr > .cart-btn { grid-column: 3; padding-inline: 8px; }
  nav.hdr > .search-wrap { grid-column: 1/-1; grid-row: 2; }
  nav.hdr > .nav-links { grid-row: 3; }
  nav.hdr.menu-open > .nav-links { grid-template-columns: minmax(0,1fr); }
  .catalog-head { margin-bottom: 22px; }
  .catalog-head .seg-switch { width: 100%; }
  .seg-switch button { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; }
  .filters { padding: 12px; gap: 10px; }
  .filters select { padding-inline: 8px; font-size: 14px; }
  .subseg-filter { gap: 10px; padding: 14px; margin-bottom: 12px; }
  .subseg-label { width: 100%; font-size: 11px; }
  .subseg-chips { gap: 6px; }
  .subseg-chip { font-size: 13px; padding: 10px 12px; }
  .cats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .prod-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .prod-card .photo { padding: 8px; }
  .prod-card .info { padding: 12px 10px; }
  .prod-card h4 { font-size: 12px; }
  .prod-card .cat-tag { display: none; }
  .prod-card .seg-badge { top: 6px; right: 6px; font-size: 8px; }
  .prod-card .btm { align-items: flex-start; flex-direction: column; gap: 8px; }
  .prod-card .pc-price { font-size: 15px; }
  .hero { padding: 42px 16px 52px; }
  h1.hero-title { font-size: clamp(30px,8.5vw,48px); }
  .hero-cta > * { max-width: 100%; }
  .hero-stats { gap: 18px; }
  .detail .meta { grid-template-columns: minmax(0,1fr); }
  .detail .actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .detail .actions > * { width: 100%; text-align: center; }
  .detail .price-calc { padding: 12px; }
  .price-calc .head { flex-wrap: wrap; }
  .price-calc .active-variant { flex-wrap: wrap; border-radius: 12px; }
  .detail .tier { padding: 10px; }
  .detail .tier .qty { white-space: normal; }
  .detail .tier .per-pc { font-size: 18px; }
  .enq-back { padding: 8px; }
  .enq-modal { border-radius: 16px; max-height: calc(100dvh - 16px); }
  .enq-head { padding: 24px 72px 20px 16px; }
  .enq-head h2 { font-size: 20px; }
  .enq-body { padding: 18px 16px 24px; }
  .enq-preview { padding: 12px; gap: 10px; }
  #cartItems .enq-preview { align-items: start; display: grid; grid-template-columns: 44px minmax(0,1fr); }
  #cartItems .enq-preview img { width: 44px; height: 44px; }
  #cartItems .info > div:last-child { flex-wrap: wrap; }
  #cartItems input[data-cart-qty], #cartItems button[data-cart-rm] { min-height: 44px; }
  #cartItems button[data-cart-rm] { min-width: 44px; }
  .enq-footer { align-items: stretch; flex-direction: column; }
  .enq-actions { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; }
  .enq-extras-grid { grid-template-columns: minmax(0,1fr); }
  .enq-preview .info b { font-size: 12px; }
  #sizeChartModal.sc-native { padding: 8px; }
  #sizeChartModal .sc-box { max-height: calc(100dvh - 16px); }
  #sizeChartModal .sc-head, #sizeChartModal .sc-body { padding: 16px; }
  #sizeChartModal .sc-layout { gap: 16px; }
  .lightbox { padding: 64px 12px; }
  .lightbox .lb-close { right: 0; }
  .lightbox .lb-nav { width: 44px; height: 44px; top: auto; bottom: 12px; transform: none; }
  .lightbox .lb-prev { left: 16px; }
  .lightbox .lb-next { right: 16px; }
  .foot-col a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Compact footer: keep the introduction visible and disclose link groups on phones. */
.foot-col > summary { list-style: none; }
.foot-col > summary::-webkit-details-marker { display: none; }
@media (max-width: 600px) {
  body footer { padding: 28px 20px 20px; }
  footer .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  footer .foot-brand { grid-column: 1; padding-bottom: 24px; }
  footer .brand-logo-footer { height: 32px; }
  footer .foot-brand p { max-width: none; margin-top: 12px; line-height: 1.5; }
  footer .foot-brand .badges { margin-top: 14px; gap: 6px; }
  footer .foot-col { border-top: 1px solid rgba(255,255,255,.12); }
  footer .foot-col > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; cursor: pointer; }
  footer .foot-col > summary h4 { margin: 0; letter-spacing: .08em; }
  footer .foot-col > summary::after { content: '+'; color: var(--volt); font-size: 22px; font-weight: 500; }
  footer .foot-col[open] > summary::after { content: '−'; }
  footer .foot-col ul { gap: 0; padding-bottom: 12px; }
  footer .foot-col a { min-height: 44px; }
  footer .foot-bot { margin-top: 8px; padding-top: 16px; gap: 8px; font-size: 11px; line-height: 1.6; }
  footer .foot-bot .scrawl { display: block; margin-top: 8px; font-size: 11px; transform: none; }
}
@media (max-width: 359px) {
  .prod-grid { grid-template-columns: minmax(0,1fr); }
  .filters { grid-template-columns: minmax(0,1fr); }
}
@media (pointer: coarse) {
  button, [role="button"], .color-chip, .size-chip { touch-action: manipulation; }
}
@media (prefers-reduced-motion: reduce) {
  html, .realizations-track { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  .mobile-filter-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 12px 16px; margin-bottom: 16px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--twhite); font-size: 15px; font-weight: 800; }
  .catalog-filter-panel:not(.is-open) { display: none; }
  .cat-picker .cats-grid { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x proximity; padding-bottom: 12px; }
  .cat-picker .cat-card { flex: 0 0 150px; min-height: 165px; padding: 12px; scroll-snap-align: start; border-radius: 14px; }
  .cat-picker .cat-card .meta h3 { font-size: 16px; }
  .cat-picker .cat-card .meta .num { font-size: 9px; letter-spacing: .05em; }
  .cat-picker .cat-card .arrow { width: 28px; height: 28px; top: 8px; right: 8px; }
  .cat-picker { margin-bottom: 18px; }
}

/* Keep the product name before the gallery on narrow screens. */
.detail .wrap { grid-template-areas: "media heading" "media info"; row-gap: 16px; }
.detail-heading { grid-area: heading; }
.detail-media { grid-area: media; }
.detail-info { grid-area: info; }
@media (max-width: 900px) {
  .detail .wrap { grid-template-areas: "heading" "media" "info"; }
  .detail-heading h1 { font-size: clamp(24px,5vw,34px); }
  .detail-heading .desc { margin-bottom: 0; }
}
/* Give discounts and totals their own row, including narrow desktop columns. */
.detail .tier { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 6px 12px; }
.detail .tier .qty { flex-wrap: wrap; white-space: normal; }
.detail .tier .per-pc { text-align: right; }
.detail .tier .save { grid-column: 1; text-align: left; white-space: normal; }
.detail .tier .total { grid-column: 2; text-align: right; white-space: normal; }
@media (max-width: 600px) {
  .filters select { grid-column: 1/-1; font-size: 16px; padding-inline: 12px; }
  .filters .reset { grid-column: 1/-1; }
}

/* Phone art direction: quiet controls, compact discovery, generous product imagery. */
.product-description > summary { display: none; }
@media (max-width: 600px) {
  body { background: #F7F6FA; }
  nav.hdr { padding: 12px 20px; gap: 10px 8px; background: #fff; border-bottom: 1px solid #E9E6EF; }
  nav.hdr .brand-logo { width: min(100%,156px); }
  nav.hdr > .mobile-menu-toggle { width: 44px; padding: 0; border: 0; background: #F4F2F8; border-radius: 50%; }
  .mobile-menu-toggle > span { display: none; }
  .mobile-menu-toggle svg { width: 21px; height: 21px; }
  nav.hdr > .cart-btn { border-radius: 50%; background: #F4F2F8; }
  nav.hdr input.search { height: 44px; border-radius: 12px; border: 1px solid #E9E6EF; background: #F7F6FA; font-size: 15px; }
  nav.hdr > .topbar { display: none; grid-column: 1/-1; grid-row: 4; padding: 12px 0 0; border-top: 1px solid var(--border); color: var(--jet); background: transparent; }
  nav.hdr.menu-open > .topbar { display: flex; }
  nav.hdr .topbar .lang span, nav.hdr .topbar .curr span { min-height: 44px; color: var(--jet); }
  nav.hdr .topbar .on { background: var(--lav); }
  nav.hdr .nav-links a { font-size: 16px; padding: 12px 4px; }
  section:has(.catalog-head) { padding: 26px 20px 36px !important; }
  .catalog-head { gap: 18px; margin-bottom: 24px; }
  .catalog-head .sect-eyebrow { font-size: 10px; margin-bottom: 8px; }
  .catalog-head h1 { font-size: 27px !important; line-height: 1.08 !important; letter-spacing: -.035em !important; }
  .catalog-head p { font-size: 13px !important; margin-top: 10px !important; line-height: 1.5; }
  .catalog-head .seg-switch { padding: 4px; gap: 4px; background: #ECE9F2; border: 0; border-radius: 14px; box-shadow: none; }
  .catalog-head .seg-switch button { border-radius: 10px; font-size: 11px; letter-spacing: .03em; }
  .cat-picker .cat-picker-head { margin-bottom: 10px; }
  .cat-picker .cats-grid { gap: 8px; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #D8D1E5 transparent; }
  .cat-picker .cat-card { flex: 0 0 auto; min-width: 145px; max-width: 220px; min-height: 64px; aspect-ratio: auto; padding: 12px 14px 12px 60px; justify-content: center; border: 1px solid #E4DFEC; border-radius: 14px; background: #fff; }
  .cat-picker .cat-card::before, .cat-picker .cat-card .arrow, .cat-picker .cat-card .num { display: none; }
  .cat-picker .cat-card .bgimg { inset: 8px auto 8px 8px; width: 42px; border-radius: 8px; }
  .cat-picker .cat-card .bgimg img { object-fit: contain; padding: 3px; }
  .cat-picker .cat-card .meta { color: var(--jet); }
  .cat-picker .cat-card .meta h3 { font-size: 12px; line-height: 1.3; font-weight: 750; text-transform: none; }
  .cat-picker { margin-bottom: 14px; }
  .catalog-results-bar { gap: 12px; min-height: 44px; margin-bottom: 14px !important; }
  .catalog-results-bar .count { font-size: 12px; color: var(--fg-muted); font-weight: 600; }
  .catalog-results-bar .mobile-filter-toggle { width: auto; min-width: 100px; min-height: 44px; margin: 0; padding: 10px 14px; font-size: 12px; border: 1px solid #DCD5E7; border-radius: 12px; }
  .catalog-filter-panel .filters { background: #fff; border: 1px solid #E4DFEC; padding: 14px; }
  .prod-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 10px; }
  .prod-card { border: 1px solid #E8E3EE; border-radius: 14px; box-shadow: none; }
  .prod-card .photo { aspect-ratio: 4/5; padding: 10px; background: #fff; }
  .prod-card .info { padding: 12px 10px 14px; gap: 6px; }
  .prod-card h4 { font-size: 12px; line-height: 1.35; font-weight: 750; text-transform: none; min-height: 33px; }
  .prod-card .brand { font-size: 9px; letter-spacing: .025em; color: #71667F; }
  .prod-card .seg-badge { display: none; }
  .prod-card .btm { border-top: 1px solid #F0ECF5; gap: 9px; padding-top: 10px; margin-top: 3px; }
  .prod-card .pc-price { font-size: 16px; }
  .prod-card .sw { width: 12px; height: 12px; }
  .prod-card .sw-row { gap: 4px; flex-wrap: wrap; }
  section { padding: 40px 20px; }
  .sect-head { margin-bottom: 22px; gap: 16px; }
  .sect-head h2 { font-size: 27px; }
  .sect-head p { font-size: 14px; }
  .hero { padding: 32px 20px 28px; }
  .hero-inner { gap: 24px; }
  h1.hero-title { font-size: clamp(27px,8.1vw,44px); letter-spacing: -.035em; }
  .hero-sub { font-size: 14px; line-height: 1.6; margin-top: 20px; }
  .hero-stats { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #504A58; }
  .h-stat b { font-size: 24px; }
  .h-stat span { font-size: 8px; line-height: 1.5; letter-spacing: .035em; }
  .hero-cta { display: grid; grid-template-columns: 1fr; margin-top: 24px; gap: 10px; }
  .hero-cta .btn-primary { justify-content: space-between; border-radius: 12px; box-shadow: none; min-height: 52px; font-size: 13px; }
  .hero-cta .btn-outline { min-height: 44px; border: 0; font-size: 11px; }
  .hero-collage { min-height: 230px; height: 260px; width: min(100%,340px); margin: 0 auto; }
  .tile { border-width: 3px; border-radius: 14px; }
  .tech-grid { gap: 20px; }
  .tech-grid .tech-item { padding: 16px; gap: 14px; border-radius: 18px; }
  .tech-item .tech-img { border-radius: 10px; aspect-ratio: 16/10; }
  .tech-item .tech-num { display: none; }
  .tech-item .tech-badge { font-size: 9px; letter-spacing: .08em; }
  .tech-item h3 { font-size: 23px; }
  .tech-item p { font-size: 13px; line-height: 1.65; }
  .detail { padding: 24px 20px 32px; }
  .detail .wrap { gap: 18px; }
  .detail-heading .brand { font-size: 10px; letter-spacing: .08em; }
  .detail-heading h1 { font-size: 26px; line-height: 1.12; margin-top: 10px; letter-spacing: -.025em; }
  .product-description > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 12px; font-weight: 650; color: var(--fg-muted); cursor: pointer; list-style: none; }
  .product-description > summary::-webkit-details-marker { display: none; }
  .product-description > summary::after { content: '+'; font-size: 20px; }
  .product-description[open] > summary::after { content: '−'; }
  .product-description .desc { font-size: 13px; line-height: 1.65; margin-top: 0; }
  .detail .gallery { border-radius: 18px; padding: 16px; border: 1px solid #E4DFEC; }
  .detail .gallery .seg-badge { display: none; }
  .detail .current-color { box-shadow: none; border: 1px solid #E4DFEC; padding: 10px 12px; }
  .detail .current-color .hex { display: none; }
  .detail .current-color .info .v { font-size: 12px; }
  .detail .variant-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 3px 2px 10px; scroll-snap-type: x proximity; max-height: none !important; }
  .detail .variant-thumb { flex: 0 0 60px; scroll-snap-align: start; }
  .detail .variant-thumbs::after { display: none; }
  .detail .variant-thumbs + .show-more-btn { display: none; }
  .detail .price-calc { padding: 16px; border-radius: 16px; box-shadow: none; }
  .detail .meta { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding-block: 20px; }
  .detail .meta .v { font-size: 12px; }
  .detail .actions .btn-primary { border-radius: 12px; box-shadow: none; min-height: 54px; }
}
@media (max-width: 600px) {
  nav.hdr input.search { font-size: 16px; }
  .catalog-head > div > p { display: none; }
  .prod-card .photo { aspect-ratio: 1; }
  .detail .techs-list { position: relative; }
  .detail .tech-badge-chip { position: static; }
  .detail .tech-tooltip { left: 0; right: 0; width: 100%; max-width: 100%; transform: none; }
}

/* Segment cards need full-width text and a stronger photo scrim on phones. */
@media (max-width: 767px) {
  #preco .cats-grid { grid-template-columns: minmax(0,1fr) !important; gap: 16px; }
  #preco .cat-card { aspect-ratio: auto; min-height: 320px; padding: 24px; border-radius: 20px; }
  #preco .cat-card::before { background: linear-gradient(180deg,rgba(22,18,29,.25) 0%,rgba(22,18,29,.60) 40%,rgba(22,18,29,.90) 100%); }
  #preco .cat-card .meta { min-width: 0; }
  #preco .cat-card .meta .num { margin-bottom: 12px; font-size: 11px; }
  #preco .cat-card .meta h3 { font-size: clamp(24px,6.5vw,30px) !important; line-height: 1.08; overflow-wrap: anywhere; }
  #preco .cat-card .meta p { margin-top: 12px !important; font-size: 14px !important; line-height: 1.6; color: #fff !important; max-width: 36ch !important; }
}
@media (max-width: 767px) {
  #kontakt { padding: 36px 20px !important; }
  #kontakt > .container { grid-template-columns: minmax(0,1fr) !important; gap: 24px !important; }
  #kontakt h2 { font-size: clamp(28px,7.5vw,36px) !important; line-height: 1.1 !important; }
  #kontakt p { font-size: 14px !important; line-height: 1.65; }
  #kontakt > .container > div:last-child { display: grid !important; grid-template-columns: minmax(0,1fr); gap: 12px !important; }
  #kontakt :is(.btn-primary,.btn-outline) { width: 100%; min-width: 0; min-height: 52px; justify-content: center; border-radius: 12px; font-size: 13px; padding: 14px 16px; box-shadow: none !important; }
}
.discovery-filter { gap: 12px; align-items: flex-start; }
.discovery-filter .subseg-label { width: 100%; font-size: 12px; }
.discovery-filter .subseg-chip { font-size: 13px; min-height: 44px; padding: 10px 14px; }
.discovery-help { width: 100%; font-size: 12px; line-height: 1.5; color: var(--fg-muted); }
@media (max-width: 600px) {
  .discovery-filter { padding: 14px; border-radius: 14px; }
  .discovery-filter .subseg-chips { display: flex; gap: 6px; }
  .discovery-filter .subseg-chip { font-size: 12px; padding-inline: 12px; }
}
.detail .unified-colors { margin-top: 14px; }
