/*
 * My Tech Monster storefront v2
 * Conversion-first catalogue inspired by the clarity and density of modern
 * creator storefronts, adapted to the MTM coral and navy identity.
 */

:root {
  --sf-white: #ffffff;
  --sf-canvas: #fffafa;
  --sf-soft: #fff0f1;
  --sf-ink: #061631;
  --sf-text: #3f485a;
  --sf-muted: #737d90;
  --sf-border: #eadde0;
  --sf-border-strong: #fecdd3;
  --sf-blue: #e61c24;
  --sf-blue-dark: #061631;
  --sf-blue-soft: #fff1f2;
  --sf-gold: #ff6b72;
  --sf-success: #259b5a;
  --sf-radius: 12px;
  --sf-page: 1200px;
  --sf-page-title-size: clamp(2rem, 3vw, 2.65rem);
  --sf-page-title-size-mobile: clamp(1.9rem, 8.5vw, 2.75rem);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-utility: "Manrope", "Segoe UI", sans-serif;
}

html { scroll-padding-top: 88px; }

body,
.store-home,
body:not(.store-home) {
  color: var(--sf-ink);
  background: var(--sf-white);
  background-image: none;
  font-family: var(--font-body);
}

body h1,
body h2,
body h3,
body strong,
.store-home h1,
.store-home h2,
.store-home h3,
.store-home strong,
body:not(.store-home) h1,
body:not(.store-home) h2,
body:not(.store-home) h3,
body:not(.store-home) strong {
  font-family: var(--font-body);
}

button,
input,
select,
textarea { font-family: var(--font-body); }

.app-main::before { display: none; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(8, 124, 201, .25);
  outline-offset: 2px;
}

/* Header: a deliberately quiet frame with one complete utility menu. */
.mobile-store-header {
  border-bottom: 1px solid var(--sf-border);
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.store-header-inner {
  position: relative;
  width: min(calc(100% - 40px), var(--sf-page));
  height: 68px;
  padding: 0;
}

.global-store-header .store-header-inner { gap: 12px; }
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-logo-header { width: 176px; height: auto; max-height: 48px; filter: none; }
.header-brand-slogan {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sf-muted);
  font: 600 13px/1.2 var(--font-body);
  letter-spacing: .01em;
  white-space: nowrap;
  pointer-events: none;
}
.header-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  transition: transform .18s ease, filter .18s ease;
}
.header-whatsapp-link:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 3px 8px rgba(37, 211, 102, .45));
}
.header-whatsapp-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.store-header-actions { order: 2; gap: 8px; margin-left: auto; }
.header-cart {
  width: 40px;
  height: 40px;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  background: #fff;
}
.header-cart:hover { color: var(--sf-blue); border-color: var(--sf-border-strong); background: var(--sf-soft); transform: none; }
.header-cart .material-symbols-outlined { font-size: 21px; }
.cart-count { top: -7px; right: -7px; color: #fff; background: var(--sf-blue); }

.header-direct-cart { display: grid; flex: 0 0 40px; place-items: center; }
.header-language-switcher { position: relative; flex: 0 0 auto; }
.header-language-pill {
  min-width: 92px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.header-language-pill:hover { border-color: var(--sf-border-strong); background: var(--sf-soft); box-shadow: none; transform: none; }
.header-language-pill > .material-symbols-outlined:first-child { color: var(--sf-blue); font-size: 19px; }
.header-language-pill .country-pill-copy { display: grid; min-width: 26px; flex: 1; text-align: left; }
.header-language-pill .country-pill-copy strong { color: var(--sf-ink); font-size: 10px; }
.header-language-pill .country-pill-copy small { color: var(--sf-muted); font-size: 7px; }
.header-language-caret { color: var(--sf-muted); font-size: 15px; }
.header-language-dropdown { top: calc(100% + 10px); right: 0; left: auto; z-index: 160; }

.header-more-menu { position: relative; }
.header-more-menu > summary { list-style: none; }
.header-more-menu > summary::-webkit-details-marker { display: none; }

.header-menu-toggle {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--sf-border);
  border-radius: 10px;
  color: var(--sf-ink);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.header-menu-toggle:hover { border-color: var(--sf-border-strong); background: var(--sf-soft); }
.header-more-menu[open] .header-menu-toggle { color: #fff; border-color: var(--sf-blue); background: var(--sf-blue); }
.header-menu-icon { font-size: 20px; }
.header-menu-caret { font-size: 16px; transition: transform .18s ease; }
.header-more-menu[open] .header-menu-caret { transform: rotate(180deg); }

.header-more-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 140;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid var(--sf-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 24px 64px rgba(10, 16, 32, .16);
}

.desktop-store-search.header-menu-search {
  position: relative;
  display: flex;
  order: initial;
  width: 100%;
  max-width: none;
  height: 42px;
  margin: 0 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--sf-canvas);
  box-shadow: none;
}

.desktop-store-search.header-menu-search:focus-within { border-color: var(--sf-blue); background: #fff; box-shadow: 0 0 0 3px rgba(8, 124, 201, .10); }
.desktop-store-search.header-menu-search input { font-size: 12px; }
.desktop-store-search.header-menu-search .desktop-search-suggestions { top: 48px; }
.catalog-index .desktop-store-search.header-menu-search,
.commerce-page .desktop-store-search.header-menu-search,
.account-page .desktop-store-search.header-menu-search { display: flex; }

.header-menu-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.header-menu-nav a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--sf-text);
}

.header-menu-nav a:hover,
.header-menu-nav a.active { color: var(--sf-blue); border-color: #dce6fb; background: var(--sf-blue-soft); }
.header-menu-nav a > .material-symbols-outlined { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; color: var(--sf-blue); background: var(--sf-blue-soft); font-size: 18px; }
.header-menu-nav a.active > .material-symbols-outlined { color: #fff; background: var(--sf-blue); }
.header-menu-nav a > span:last-child { display: grid; min-width: 0; gap: 2px; }
.header-menu-nav strong { font-size: 11px; font-weight: 800; }
.header-menu-nav small { overflow: hidden; color: var(--sf-muted); font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.header-menu-section { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sf-border); }
.header-more-panel [data-header-menu-account] {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  width: 100%;
  height: auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  color: var(--sf-ink);
  background: var(--sf-canvas);
  box-shadow: none;
  font-family: var(--font-body);
}
.header-more-panel [data-header-menu-account]:hover { color: var(--sf-blue); background: var(--sf-blue-soft); box-shadow: none; transform: none; }
.header-more-panel [data-header-menu-account] > .material-symbols-outlined:first-child { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #fff; background: var(--sf-blue); font-size: 19px; }
.header-more-panel [data-header-menu-account] > span:nth-child(2) { display: grid; gap: 2px; }
.header-more-panel [data-header-menu-account] strong { font-size: 11px; font-weight: 800; }
.header-more-panel [data-header-menu-account] small { color: var(--sf-muted); font-size: 9px; font-weight: 600; }
.header-menu-link-arrow { color: var(--sf-muted); font-size: 17px; }

.header-menu-preferences { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 8px; }
.header-menu-preferences .country-pill-container { min-width: 0; }
.header-menu-preferences .country-pill {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 5px 7px;
  border-color: var(--sf-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.header-menu-preferences .country-pill:hover { border-color: var(--sf-border-strong); box-shadow: none; transform: none; }
.header-menu-preferences .country-pill-copy { display: grid; flex: 1; text-align: left; }
.header-menu-preferences .country-pill > .material-symbols-outlined { display: inline-block; }
.header-menu-preferences .country-dropdown { top: calc(100% + 7px); right: 0; left: auto; z-index: 155; }

.country-dropdown { border-color: var(--sf-border); border-radius: var(--sf-radius); box-shadow: 0 18px 48px rgba(10, 16, 32, .14); }
.country-dropdown button.selected,
.country-dropdown button:hover { background: var(--sf-soft); }

/* Shared content geometry */
.app-main .page-hero,
.app-main .section,
.app-main .category-strip,
.app-main .promo-band,
.app-main .proof-section,
.app-main .lead-card,
.app-main .catalog-layout,
.app-main .checkout-layout,
.app-main .payment-page,
.app-main .account-grid,
.app-main .article-page,
.app-main .success-card,
.app-main .product-detail,
.app-main .detail-tabs,
.app-main .download-list.wide,
.app-main .page-grid { max-width: var(--sf-page); }

.page-hero.compact {
  padding-top: 64px;
  padding-bottom: 36px;
}

.page-hero.compact h1,
.product-detail-heading h1,
.article-page h1,
.success-card h1 {
  color: var(--sf-ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.045em;
}

.section-heading h2 {
  color: var(--sf-ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.025em;
}

.page-hero.compact h1 { max-width: 860px; font-size: var(--sf-page-title-size); line-height: 1.06; }
.page-hero.compact p { max-width: 720px; color: var(--sf-muted); font-size: 15px; line-height: 1.7; }
.eyebrow { gap: 7px; color: var(--sf-blue); font: 700 10px var(--font-body); letter-spacing: .1em; }
.eyebrow::before { width: 16px; height: 2px; background: var(--sf-gold); }

.btn,
.card-actions button,
.card-actions a,
.filters button,
.checkout-form button,
.buy-box button,
.profile-save-button { border-radius: 10px; }

.btn.primary,
.card-actions button,
.filters button,
.checkout-form button,
.buy-box button,
.profile-save-button {
  color: #fff;
  background: var(--sf-blue);
  box-shadow: none;
}

:where(.btn.primary, .card-actions button, .filters button, .checkout-form button, .buy-box button, .profile-save-button):hover {
  background: var(--sf-blue-dark);
  box-shadow: none;
  transform: none;
}

.btn.ghost { border-color: var(--sf-border-strong); color: var(--sf-ink); background: #fff; }

/* Store introduction: message first, merchandise immediately after. */
.page-hero.compact.catalog-hero {
  display: block;
  min-height: 0;
  margin-top: 0;
  padding: 20px 20px 24px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: var(--sf-ink);
  background: #fff;
  box-shadow: none;
}

.catalog-hero::before,
.catalog-hero::after { display: none; }
.catalog-hero-copy { max-width: 1120px; }
.catalog-hero .eyebrow { color: var(--sf-blue); }
.catalog-hero .eyebrow::before { background: var(--sf-gold); }

.page-hero.compact.catalog-hero h1 {
  max-width: 1120px;
  color: var(--sf-ink);
  font-family: var(--font-display);
  font-size: var(--sf-page-title-size);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: pretty;
}

.page-hero.compact.catalog-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--sf-muted);
  font-size: 14px;
  line-height: 1.65;
}

.catalog-hero-assurances { gap: 8px 22px; margin-top: 16px; }
.catalog-hero-assurances > span { color: #536075; font-size: 10px; font-weight: 600; }
.catalog-hero-assurances .material-symbols-outlined { color: var(--sf-blue); font-size: 16px; }
.catalog-hero-signature { display: none; }

/* Compatibility guard for catalogue pages retained by the pre-refonte AJAX cache. */
.catalog-spotlight { display: none !important; }

/* Search and filters use the same neutral field language as the reference. */
.catalog-layout {
  display: block;
  padding: 0 20px 80px;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--sf-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 16, 32, .045);
}

.catalog-mobile-search {
  position: relative;
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.catalog-mobile-search label {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 48px;
  border: 1px solid transparent;
  border-radius: var(--sf-radius);
  background: var(--sf-canvas);
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease;
}

.catalog-mobile-search label:hover { border-color: var(--sf-border-strong); }
.catalog-mobile-search label:focus-within { border-color: var(--sf-blue); background: #fff; box-shadow: 0 0 0 3px rgba(8, 124, 201, .10); }
.catalog-mobile-search label .material-symbols-outlined { margin-left: 15px; color: #7b8495; font-size: 20px; }
.catalog-mobile-search input[type="search"] { width: 100%; min-width: 0; height: 100%; border: 0; padding: 0 14px 0 10px; outline: 0; color: var(--sf-ink); background: transparent; font-size: 13px; }
.catalog-mobile-search > button { display: none; }

.catalog-search-suggestions {
  position: absolute;
  top: 58px;
  right: 0;
  left: 0;
  z-index: 80;
  max-height: min(420px, 60vh);
  overflow-y: auto;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  background: #fff;
  box-shadow: 0 20px 52px rgba(10, 16, 32, .14);
}
.catalog-search-suggestions[hidden] { display: none; }
.catalog-search-suggestions a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 9px 12px;
  color: var(--sf-ink);
  border-bottom: 1px solid var(--sf-border);
  background: #fff;
  transition: background-color .16s ease;
}
.catalog-search-suggestions a:last-child { border-bottom: 0; }
.catalog-search-suggestions a:hover,
.catalog-search-suggestions a.active { background: var(--sf-canvas); }
.catalog-search-suggestion-image {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--sf-border);
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
}
.catalog-search-suggestion-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.catalog-search-suggestion-name,
.catalog-search-suggestion-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-search-suggestion-name { font-size: 11px; font-weight: 700; }
.catalog-search-suggestion-meta { color: var(--sf-muted); font-size: 9px; }
.catalog-search-empty { padding: 16px; color: var(--sf-muted); font-size: 11px; text-align: center; }

.filters {
  position: static;
  width: auto;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.filter-sheet-header,
.filters-intro { display: none; }

.filters form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0;
}

.filter-field { display: block; }
.filters label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.filters input,
.filters select {
  width: 132px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--sf-radius);
  padding: 0 34px 0 12px;
  color: #475267;
  background-color: var(--sf-canvas);
  font-size: 11px;
  font-weight: 600;
}

.filters input { width: 118px; padding-right: 12px; }
.filter-field:nth-of-type(3) select { width: 142px; }
.filters input:hover,
.filters select:hover { border-color: var(--sf-border); }
.filters input:focus,
.filters select:focus { border-color: var(--sf-blue); outline: 0; box-shadow: 0 0 0 3px rgba(8, 124, 201, .10); }

.filter-sheet-actions { display: flex; gap: 6px; align-items: center; }
.filter-sheet-actions a { padding: 8px; color: var(--sf-muted); font-size: 10px; }
.filter-sheet-actions button { min-height: 48px; padding: 0 14px; border: 0; font-size: 10px; white-space: nowrap; }

.catalog-results { position: relative; margin-top: 24px; transition: opacity .18s ease; }
.catalog-results.ajax-navigation-loading { opacity: .48; pointer-events: none; }
.catalog-results.ajax-navigation-loading::after {
  position: absolute;
  top: 72px;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(8, 124, 201, .16);
  border-top-color: var(--sf-blue);
  border-radius: 50%;
  content: "";
  animation: sf-catalog-spin .7s linear infinite;
}
@keyframes sf-catalog-spin { to { transform: rotate(360deg); } }
.results-head { align-items: end; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--sf-border); }
.results-head > div { gap: 3px; }
.results-kicker { color: var(--sf-muted); font: 700 9px var(--font-body); letter-spacing: .08em; }
.results-head h2 { margin: 0; color: var(--sf-ink); font-size: 22px; font-weight: 700; }
.results-head > small { color: var(--sf-muted); font-size: 10px; }

.catalog-active-filters { margin: -4px 0 22px; border: 0; border-radius: 0; padding: 0; background: transparent; }
.catalog-active-filters-label { color: var(--sf-muted); }
.catalog-filter-chip { border-color: var(--sf-border); border-radius: 8px; color: var(--sf-text); background: var(--sf-canvas); }
.catalog-filter-clear { color: var(--sf-blue); }

/* Product grid: 4 / 3 / 2 / 1, with large portrait merchandise. */
.catalog-results .product-grid,
.section .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.catalog-results .product-grid > .product-card {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  background: #fff;
  box-shadow: none;
  transition: border-color .2s ease, transform .25s ease;
}

.product-card::after { display: none; }
.product-card:hover { border-color: var(--sf-border-strong); box-shadow: none; transform: translateY(-3px); }

.product-media {
  position: relative;
  display: block;
  min-height: 0;
  /* Taller imagery gives each product the same visual prominence as a storefront card. */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sf-soft);
}

.product-media::after { display: none; }
.product-media img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
  filter: none;
  transform: none;
  transition: transform .3s ease;
}

.product-card:hover .product-media img { transform: scale(1.035); }

.product-favorite-toggle,
.product-favorite-login { top: 10px; right: auto; left: 10px; }
.favorite-button { width: 36px; height: 36px; border-color: rgba(255, 255, 255, .72); border-radius: 9px; color: #3c4658; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 16px rgba(10, 16, 32, .09); }
.ribbon { top: 10px; right: 10px; left: auto; border-radius: 8px; padding: 6px 9px; color: #fff; background: var(--sf-ink); box-shadow: none; font: 700 8px var(--font-body); letter-spacing: .03em; }
.ribbon.soft { background: var(--sf-blue); }

.product-body { display: flex; min-height: 224px; flex-direction: column; gap: 9px; padding: 15px; }
.product-card-topline { min-height: 18px; }
.product-card-topline > span:first-child { color: var(--sf-muted); font: 700 8px var(--font-body); letter-spacing: .06em; }
.product-card-topline > span:first-child a:hover { color: var(--sf-blue); }
.product-card-topline .product-reference { display: none; }
.product-body h3 {
  display: -webkit-box;
  min-height: 38px;
  margin: 0;
  overflow: hidden;
  color: var(--sf-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-body h3 a:hover { color: var(--sf-blue); }
.product-body p { display: none; }
.countdown { border: 0; border-radius: 8px; color: #b9414d; background: #fff0f1; font-size: 9px; }

.price-row { align-items: end; margin-top: auto; padding-top: 11px; border-top: 1px solid var(--sf-border); }
.price-row strong { color: var(--sf-ink); font-size: 17px; font-weight: 800; letter-spacing: -.035em; }
.price-row del { margin-bottom: 1px; color: #9aa2b1; font-size: 9px; }
.price-row > small { display: none; }

.card-actions { grid-template-columns: 1fr; gap: 0; margin-top: 2px; }
.card-actions button { width: 100%; min-height: 42px; padding: 9px 12px; border: 0; border-radius: 9px; color: #fff; background: var(--sf-blue); box-shadow: none; font-size: 10px; font-weight: 700; }
.card-actions button:hover { background: var(--sf-blue-dark); }
.card-actions button .material-symbols-outlined { font-size: 16px; }
.card-actions a { display: none; }

.empty-state { border-color: var(--sf-border-strong); border-radius: var(--sf-radius); color: var(--sf-muted); background: var(--sf-canvas); box-shadow: none; }

/* Product detail: editorial content plus a disciplined sticky buying card. */
.product-breadcrumb { width: min(calc(100% - 40px), var(--sf-page)); padding-top: 28px; color: var(--sf-muted); font-size: 10px; }
.product-detail { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding: 36px 20px 48px; }
.product-detail-main { min-width: 0; }
.product-detail-heading { max-width: 760px; margin-bottom: 30px; }
.product-detail-heading .detail-copy-topline { justify-content: flex-start; gap: 12px; }
.product-detail-heading h1 {
  max-width: 720px;
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: var(--sf-page-title-size);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.product-detail-heading .lead { max-width: 680px; margin: 18px 0 0; color: var(--sf-muted); font-size: 14px; line-height: 1.72; }

.detail-media {
  position: relative;
  top: auto;
  min-height: 540px;
  overflow: hidden;
  border: 0;
  border-radius: var(--sf-radius);
  background: var(--sf-canvas);
  box-shadow: none;
}

.detail-media::after { display: none; }
.detail-media-slide { min-height: 540px; padding: 28px; }
.detail-media img { width: 100%; max-width: 100%; height: 480px; padding: 0; object-fit: contain; filter: none; }
.detail-media-controls button,
.product-preview-controls button { border-color: var(--sf-border); border-radius: 9px; color: var(--sf-ink); background: #fff; }
.detail-media-pagination button.active,
.product-preview-pagination button.active { background: var(--sf-blue); }

.detail-copy {
  position: sticky;
  top: 94px;
  padding: 24px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  background: #fff;
  box-shadow: 0 18px 44px rgba(10, 16, 32, .1);
}

/* Keep the upstream purchase tutorial inside the editorial product layout. */
.app-main .product-detail.product-detail-with-demo {
  max-width: var(--sf-page);
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.product-detail-with-demo .product-detail-main { grid-column: 1; grid-row: 1; }
.product-detail-with-demo .detail-copy { grid-column: 2; grid-row: 1 / span 2; }
.product-detail-with-demo .detail-demo-video {
  grid-column: 1;
  grid-row: 2;
  width: min(100%, 390px);
  justify-self: center;
  padding: 18px;
  border-color: var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: none;
}
.product-detail-with-demo .detail-demo-video h2 { color: var(--sf-ink); font-family: var(--font-display); }

.detail-copy-topline { align-items: center; }
.detail-copy-topline .eyebrow { margin: 0; }
.detail-product-reference { padding: 5px 7px; border-color: var(--sf-border); border-radius: 7px; color: var(--sf-muted); background: var(--sf-canvas); font-size: 8px; }
.detail-purchase-heading { display: grid; gap: 5px; padding-bottom: 14px; border-bottom: 1px solid var(--sf-border); }
.detail-purchase-heading span { color: var(--sf-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.detail-purchase-heading strong { color: var(--sf-ink); font-size: 13px; line-height: 1.45; }
.detail-price { margin: 16px 0 8px; padding: 15px 0; border-color: var(--sf-border); }
.detail-price strong { color: var(--sf-ink); font-size: 28px; }
.detail-price span { color: var(--sf-muted); font: 700 9px var(--font-body); }
.detail-favorite-form { margin: 10px 0; }
.detail-favorite-form .btn,
.detail-favorite-link { min-height: 40px; border-color: var(--sf-border); border-radius: 9px; color: var(--sf-text); font-size: 10px; }

.buy-box { margin-top: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.buy-box input { border-color: var(--sf-border); background: var(--sf-canvas); }
.buy-box button { min-height: 48px; }
.detail-purchase-note { color: var(--sf-muted); }
.product-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  padding: 0;
  color: var(--sf-muted);
  font-size: 9px;
  line-height: 1.4;
  list-style: none;
}
.product-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}
.product-benefits li + li {
  border-left: 1px solid var(--sf-border);
}
.product-benefits li:first-child {
  padding-left: 0;
}
.product-benefits .material-symbols-outlined { color: var(--sf-blue); font-size: 17px; }

.product-video,
.product-previews { max-width: var(--sf-page); }
.product-video-frame,
.product-preview-viewport { border-color: var(--sf-border); border-radius: var(--sf-radius); box-shadow: none; }
.product-preview-card { background: var(--sf-canvas); }
.product-preview-copy { color: var(--sf-ink); background: #fff; }
.product-preview-kind { color: var(--sf-blue); }
.product-preview-copy-footer a { color: #fff; background: var(--sf-blue); }
.detail-tabs { max-width: var(--sf-page); padding-top: 24px; }
.detail-tabs article { max-width: 820px; padding: 34px; border-color: var(--sf-border); border-radius: var(--sf-radius); box-shadow: none; }
.detail-tabs article::before { width: 32px; height: 3px; margin-bottom: 15px; background: var(--sf-gold); }
.rich-text-content { color: var(--sf-text); }

/* Checkout and supporting pages inherit the same restraint. */
.product-card,
.category-card,
.horizontal-card,
.blog-card,
.summary-card,
.checkout-form,
.auth-card,
.panel,
.detail-tabs article,
.success-card,
.article-page,
.profile-menu-card,
.profile-form-card,
.customer-orders-card {
  border-color: var(--sf-border);
  border-radius: var(--sf-radius);
  background: #fff;
  box-shadow: none;
}

.commerce-hero { padding-top: 52px; padding-bottom: 24px; }
.page-hero.compact.commerce-hero h1 { max-width: 700px; font-size: var(--sf-page-title-size); }
.commerce-hero > p { max-width: 620px; }
.checkout-progress li > span { border-radius: 8px; }
.checkout-layout,
.payment-page { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
.cart-lines { gap: 10px; }
.cart-line { min-height: 116px; border-color: var(--sf-border); border-radius: var(--sf-radius); padding: 12px; box-shadow: none; }
.cart-line:hover { border-color: var(--sf-border-strong); box-shadow: none; }
.cart-line-media { width: 104px; height: 90px; border-radius: 9px; background: var(--sf-canvas); }
.cart-line-media img { padding: 0; object-fit: cover; }
.cart-line-info { gap: 4px; }
.cart-line-info strong { color: var(--sf-ink); font-size: 14px; }
.cart-line-info > span { color: var(--sf-muted); font-size: 10px; }
.cart-quantity-form { border-color: var(--sf-border); border-radius: 9px; background: var(--sf-canvas); }
.cart-quantity-form button:hover { color: var(--sf-blue); background: var(--sf-blue-soft); }
.cart-remove-button { border-radius: 8px; }
.summary-card,
.checkout-form { padding: 24px; border-color: var(--sf-border); border-radius: var(--sf-radius); box-shadow: none; }
.summary-card { top: 94px; }
.summary-card h2,
.checkout-form h2 { font-size: 18px; }
.summary-card div { border-color: var(--sf-border); }
.summary-card .total { background: var(--sf-blue-soft); }
.summary-card .total strong { color: var(--sf-blue); }
.checkout-form input,
.checkout-form textarea,
.profile-form input,
.profile-form textarea { border-color: var(--sf-border); border-radius: 9px; background: var(--sf-canvas); }
.checkout-form input:focus,
.checkout-form textarea:focus,
.profile-form input:focus,
.profile-form textarea:focus { border-color: var(--sf-blue); background: #fff; box-shadow: 0 0 0 3px rgba(8, 124, 201, .10); }
.form-card-heading > .material-symbols-outlined { border-radius: 9px; color: var(--sf-blue); background: var(--sf-blue-soft); }
.async-form-status { margin: 4px 0 0; padding: 11px 13px; border-radius: 9px; color: var(--sf-success); background: #edf9f4; font-size: 11px; font-weight: 700; }

.payment-page { align-items: start; padding-top: 56px; }
.payment-intro { min-height: 430px; border-radius: var(--sf-radius); background: var(--sf-ink); box-shadow: none; }
.payment-intro::after { display: none; }
.payment-intro h1 { font-family: var(--font-display); font-weight: 600; }
.payment-intro .btn { color: var(--sf-ink); background: var(--sf-gold); box-shadow: none; }
.payment-intro .btn:hover { background: #ffd16b; transform: none; }

.profile-page,
.customer-orders-page { width: min(calc(100% - 40px), var(--sf-page)); }
.profile-overview { border-radius: var(--sf-radius); background: var(--sf-ink); box-shadow: none; }
.profile-overview::after { display: none; }
.profile-heading h1,
.customer-orders-heading h1,
.personal-information-heading h1 { font-family: var(--font-display); font-weight: 600; }
.profile-identity { border-radius: 10px; }
.profile-menu-row { min-height: 70px; border-color: var(--sf-border); }
.profile-menu-row:hover,
.profile-menu-row:focus-visible { color: var(--sf-blue); background: var(--sf-canvas); }
.profile-menu-icon { border-radius: 9px; color: var(--sf-blue); background: var(--sf-blue-soft); }
.profile-menu-card,
.profile-form-card,
.customer-order-stats article { border-color: var(--sf-border); border-radius: var(--sf-radius); box-shadow: none; }
.customer-orders-shop { border-radius: 9px; background: var(--sf-blue); box-shadow: none; }
.customer-order-stats { gap: 10px; }
.customer-order-stats article { min-height: 78px; }
.customer-orders-card-heading { background: var(--sf-canvas); }
.customer-order-row { border-color: var(--sf-border); }
.customer-order-row:hover { background: var(--sf-canvas); }

.blog-grid.page-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.blog-card { border-radius: var(--sf-radius); box-shadow: none; }
.blog-card:hover { border-color: var(--sf-border-strong); box-shadow: none; transform: translateY(-3px); }
.blog-card-media { background: var(--sf-canvas); }
.article-page { border-radius: var(--sf-radius); box-shadow: none; }

.faq-overview article,
.faq-sidebar,
.faq-section,
.faq-final-cta { border-color: var(--sf-border); border-radius: var(--sf-radius); box-shadow: none; }
.faq-support-card,
.faq-final-cta { background: var(--sf-ink); }
.faq-item { border-color: var(--sf-border); border-radius: 10px; }
.faq-item[open] { border-color: var(--sf-border-strong); box-shadow: none; }

.footer-confidence {
  width: min(calc(100% - 40px), var(--sf-page));
  margin-top: 56px;
  border-color: var(--sf-border);
  border-radius: var(--sf-radius) var(--sf-radius) 0 0;
  box-shadow: none;
}
.footer-confidence > div { min-height: 78px; padding: 17px 24px; border-color: var(--sf-border); }
.footer-confidence > div > .material-symbols-outlined { border-radius: 9px; color: var(--sf-blue); background: var(--sf-blue-soft); }
.modern-site-footer { padding-top: 54px; padding-bottom: 54px; color: #aeb8ca; background: var(--sf-ink); }
.modern-site-footer::before { display: none; }
.footer-slogan { margin: 16px 0 8px; color: #8fe69a; font-size: 15px; font-weight: 750; letter-spacing: -.015em; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 24px; }
.footer-social-icon { display: grid; width: 18px; height: 18px; place-items: center; color: #fff; transition: color .18s ease, transform .18s ease; }
.footer-social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social-icon:hover { color: #e61c24; transform: translateY(-2px); }
.footer-social-icon:focus-visible { outline: 3px solid #8fe69a; outline-offset: 4px; }
.exchange-rate-attribution { background: var(--sf-ink); }

.faq-chat-launcher { border: 0; background: var(--sf-blue); box-shadow: 0 12px 28px rgba(8, 124, 201, .24); }
.faq-chat-panel { border-color: var(--sf-border); border-radius: var(--sf-radius); }
.faq-chat-header { background: var(--sf-ink); }

/* Authentication remains branded but no longer competes with the form. */
.auth-body { background: var(--sf-canvas); background-image: none; }
.auth-story { border-radius: var(--sf-radius) 0 0 var(--sf-radius); background: var(--sf-ink); box-shadow: none; }
.auth-story h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 4rem); }
.auth-story-mark { display: none; }
.auth-panel,
.auth-panel:has(.signup-form) { border-color: var(--sf-border); border-radius: 0 var(--sf-radius) var(--sf-radius) 0; box-shadow: none; }
.auth-heading h1 { color: var(--sf-ink); font-family: var(--font-display); }
.auth-input-wrap { border-color: var(--sf-border); border-radius: 9px; background: var(--sf-canvas); }
.auth-submit { border-radius: 9px; background: var(--sf-blue); box-shadow: none; }

/* Tablet */
@media (max-width: 1100px) {
  .global-store-header .store-header-inner { gap: 14px; }
  .desktop-store-search { max-width: 260px; }
  .catalog-controls { grid-template-columns: 1fr; row-gap: 16px; }
  .filters form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .filters input,
  .filters select,
  .filter-field:nth-of-type(3) select { width: 100%; }
  .catalog-results .product-grid,
  .section .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .product-detail { grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; }
  .app-main .product-detail.product-detail-with-demo { grid-template-columns: minmax(0, 1fr) 330px; }
}

@media (max-width: 900px) {
  .header-brand-slogan { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-copy { position: static; width: 100%; max-width: 520px; }
  .app-main .product-detail.product-detail-with-demo { grid-template-columns: 1fr; }
  .product-detail-with-demo .product-detail-main,
  .product-detail-with-demo .detail-copy,
  .product-detail-with-demo .detail-demo-video { grid-column: 1; grid-row: auto; }
}

@media (max-width: 820px) {
  .desktop-store-nav { display: none; }
  .desktop-store-search { margin-left: auto; }
  .header-profile-label { display: none; }
  .header-profile { width: 38px; padding: 0; }
  .detail-copy { padding: 19px; }
}

/* Mobile */
@media (max-width: 700px) {
  body,
  .store-home,
  body:not(.store-home) { background: #fff; }

  .store-header-inner { width: calc(100% - 28px); height: 64px; }
  .brand-logo-header { width: 150px; height: auto; max-height: 42px; }
  .store-header-actions { margin-left: auto; }
  .header-cart { width: 38px; height: 38px; }
  .header-menu-toggle { height: 38px; padding: 0 9px; }
  .header-menu-toggle-label,
  .header-menu-caret { display: none; }
  .header-more-panel {
    position: fixed;
    top: 74px;
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .header-menu-preferences .country-pill { min-width: 0; min-height: 42px; border-radius: 9px; }
  .header-menu-preferences .country-pill-copy,
  .header-menu-preferences .country-pill > .material-symbols-outlined { display: grid; }
  .header-menu-preferences .country-dropdown { max-width: calc(100vw - 52px); }
  .page-skeleton,
  .ajax-page-skeleton { top: 64px; }
  .skeleton-header { height: 64px; }
  .global-mobile-search { top: 64px; }

  .page-hero.compact { padding-top: 18px; padding-bottom: 24px; }
  .page-hero.compact h1 { font-size: var(--sf-page-title-size-mobile); }

  .page-hero.compact.catalog-hero { width: auto; margin: 0; padding: 18px 16px 20px; border-radius: 0; }
  .page-hero.compact.catalog-hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.75rem); line-height: 1.07; }
  .page-hero.compact.catalog-hero p { margin-top: 11px; font-size: 12px; }
  .catalog-hero-assurances { display: flex; gap: 8px 16px; margin-top: 14px; }
  .catalog-hero-assurances > span { font-size: 9px; }

  .catalog-layout { display: block; padding: 0 14px 96px; }
  .catalog-controls { display: block; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .catalog-mobile-search label { height: 48px; border-color: var(--sf-border); border-radius: 10px; background: var(--sf-canvas); box-shadow: none; }
  .catalog-mobile-search > button { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border: 0; border-radius: 10px; color: #fff; background: var(--sf-blue); box-shadow: none; }
  .catalog-search-suggestions { top: 54px; right: 56px; }

  .filter-sheet {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 72px;
    left: 0;
    z-index: 49;
    display: block;
    width: min(100%, 680px);
    max-height: calc(100dvh - 120px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--sf-border);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: #fff;
    box-shadow: 0 -14px 42px rgba(10, 16, 32, .16);
    transform: translateY(100%);
  }

  .filter-sheet[data-state="collapsed"] { visibility: hidden; pointer-events: none; }
  .filter-sheet-header { display: block; }
  .filter-sheet form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(100dvh - 210px); padding: 4px 16px 0; overflow-y: auto; }
  .filter-sheet .filter-field { display: grid; }
  .filter-sheet .filter-field label { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--sf-text); font-size: 10px; white-space: normal; }
  .filter-sheet input,
  .filter-sheet select { width: 100%; min-height: 46px; border-color: var(--sf-border); border-radius: 9px; background: var(--sf-canvas); }
  .filter-sheet-actions { position: sticky; bottom: 0; display: grid; grid-column: 1 / -1; grid-template-columns: .75fr 1.25fr; margin: 3px -16px 0; padding: 12px 16px; border-top: 1px solid var(--sf-border); background: #fff; }
  .filter-sheet-actions button { min-height: 44px; }

  .catalog-results { margin-top: 22px; }
  .results-head { margin-bottom: 16px; }
  .results-head h2 { font-size: 19px; }
  .results-head > small { display: none; }

  .catalog-results .product-grid,
  .section .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 10px; }
  .product-card:hover { transform: none; }
  .product-media { aspect-ratio: 4 / 5; min-height: 0; }
  .product-body { min-height: 190px; gap: 7px; padding: 11px; }
  .product-card-topline { display: flex; min-height: 14px; }
  .product-card-topline > span:first-child { font-size: 7px; }
  .product-body h3 { overflow: hidden; display: -webkit-box; min-height: 33px; font-size: 12px; line-height: 1.35; text-overflow: initial; white-space: normal; line-clamp: 2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .price-row { padding-top: 8px; }
  .price-row strong { font-size: 14px; }
  .card-actions button { min-height: 38px; font-size: 9px; }
  .favorite-button { width: 32px; height: 32px; }
  .ribbon { max-width: calc(100% - 50px); font-size: 7px; }

  .product-breadcrumb { width: calc(100% - 28px); }
  .product-detail { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 20px 14px 36px; }
  .product-detail-heading { margin-bottom: 22px; }
  .product-detail-heading h1 { margin-top: 14px; font-size: var(--sf-page-title-size-mobile); line-height: 1.06; }
  .product-detail-heading .lead { margin-top: 14px; font-size: 13px; }
  .detail-media { min-height: 320px; border-radius: 10px; }
  .detail-media-slide { min-height: 320px; padding: 18px; }
  .detail-media img { height: 270px; }
  .detail-copy { max-width: none; padding: 18px; border: 1px solid var(--sf-border); border-radius: 10px; box-shadow: none; }
  .buy-box { padding: 0; border: 0; border-radius: 0; }
  .detail-tabs article { padding: 23px 18px; border-radius: 10px; }

  .checkout-layout,
  .payment-page { grid-template-columns: 1fr; }
  .summary-card,
  .checkout-form { border-radius: 10px; }
  .profile-overview { border-radius: 10px; }
  .auth-panel,
  .auth-panel:has(.signup-form) { border-radius: 10px; }
  .blog-grid.page-grid { grid-template-columns: 1fr; }

  .footer-confidence { width: calc(100% - 28px); border-radius: 10px 10px 0 0; }
  .modern-site-footer { display: block; padding: 42px 16px 104px; }
  .exchange-rate-attribution { display: block; padding-bottom: 82px; }
}

@media (max-width: 640px) {
  .header-menu-nav { grid-template-columns: 1fr; }
  .header-menu-nav a { min-height: 52px; }
  .header-menu-preferences { grid-template-columns: 1fr; }
  .header-menu-preferences .country-dropdown { right: 0; left: 0; width: 100%; max-width: none; }
  .catalog-results .product-grid,
  .section .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .filter-sheet form { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 4 / 5; }
  .product-body { min-height: 0; padding: 15px; }
  .product-body h3 { min-height: 41px; font-size: 15px; }
  .price-row strong { font-size: 17px; }
  .card-actions button { min-height: 43px; font-size: 10px; }

  .cart-line { align-items: flex-start; }
  .cart-line-media { width: 76px; height: 70px; }
  .cart-line-info { flex-basis: calc(100% - 96px); }
  .cart-line-info > span { display: none; }
  .cart-line-total { order: 4; margin: 4px 0 0 auto; }
  .cart-quantity-form { order: 3; margin-left: 92px; }
  .customer-order-stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-media img { transition: none; }
}

/* Responsive consolidation: shared safeguards for every public screen. */
html,
body { max-width: 100%; overflow-x: clip; }

.app-main,
.app-main > *,
.product-detail-main,
.product-detail > *,
.checkout-layout > *,
.payment-page > *,
.account-grid > *,
.faq-layout > *,
.profile-layout > *,
.customer-order-row > * { min-width: 0; }

input,
select,
textarea,
button { max-width: 100%; }

.detail-media,
.detail-media-viewport,
.detail-media-track { width: 100%; max-width: 100%; }

.article-body,
.rich-text-content,
.legal-document,
.faq-answer,
.delivery-download-copy { overflow-wrap: anywhere; }

.article-body pre,
.rich-text-content pre,
.legal-document pre { max-width: 100%; overflow-x: auto; }

.article-body table,
.rich-text-content table,
.legal-document table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.product-video-frame iframe,
.product-video-frame video { display: block; width: 100%; max-width: 100%; }

.language-suggestion-banner button[type="submit"] { color: #fff; background: var(--sf-blue); }
.language-suggestion-banner button[type="button"] { color: var(--sf-ink); background: transparent; }

/* One title rhythm across catalogue, product, content, commerce and account pages. */
:where(
  .page-hero.compact,
  .product-detail-heading,
  .article-page,
  .legal-header,
  .profile-heading,
  .customer-orders-heading,
  .personal-information-heading,
  .payment-intro,
  .success-card,
  .auth-heading,
  .download-unavailable
) h1 {
  font-size: var(--sf-page-title-size) !important;
  line-height: 1.06;
  letter-spacing: -.045em;
}

.page-hero.compact,
.commerce-hero { padding-top: 20px; }
.product-breadcrumb { padding-top: 16px; }
.product-detail { padding-top: 18px; }
.payment-page,
.profile-page,
.customer-orders-page { padding-top: 20px; }
.article-page,
.success-card { margin-top: 20px; }

@media (min-width: 1181px) {
  .catalog-controls { grid-template-columns: minmax(270px, .65fr) minmax(0, 1.35fr); }
  .filters { min-width: 0; }
  .filters form {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(140px, .9fr) auto;
  }
  .filters input,
  .filters select,
  .filter-field:nth-of-type(3) select { width: 100%; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .catalog-controls { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .filters form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .filters input,
  .filters select,
  .filter-field:nth-of-type(3) select { width: 100%; }
}

@media (max-width: 900px) {
  .checkout-layout,
  .payment-page,
  .account-grid { grid-template-columns: minmax(0, 1fr); }

  .summary-card { position: static; }
  .payment-page { min-height: 0; padding-top: 34px; }
  .checkout-form,
  .summary-card { width: 100%; }
}

@media (max-width: 700px) {
  :where(
    .page-hero.compact,
    .product-detail-heading,
    .article-page,
    .legal-header,
    .profile-heading,
    .customer-orders-heading,
    .personal-information-heading,
    .payment-intro,
    .success-card,
    .auth-heading,
    .download-unavailable
  ) h1 { font-size: var(--sf-page-title-size-mobile) !important; }

  .header-language-pill {
    width: 48px;
    min-width: 48px;
    height: 38px;
    justify-content: center;
    padding: 0 7px;
  }
  .header-language-pill .country-pill-copy small,
  .header-language-caret { display: none; }
  .header-language-pill .country-pill-copy { display: block; min-width: auto; flex: 0 0 auto; text-align: center; }
  .header-language-dropdown { position: fixed; top: 74px; right: 14px; left: 14px; width: auto; max-width: none; }

  .language-suggestion-banner form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 8px 14px;
    font-size: 11px;
    line-height: 1.25;
  }

  .language-suggestion-banner button { min-width: 0; padding: 7px 9px; }

  .detail-media {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .detail-media-viewport,
  .detail-media-track,
  .detail-media-slide { width: 100%; min-width: 0; min-height: 0; }
  .detail-media-slide { aspect-ratio: 4 / 3; }
  .detail-media img { width: 100%; height: 100%; }

  .checkout-progress { width: 100%; margin-top: 22px; }
  .checkout-progress li { gap: 5px; font-size: 9px; }
  .checkout-progress li:not(:last-child)::after { margin: 0 6px; }
  .checkout-progress li > span { width: 25px; height: 25px; flex-basis: 25px; }

  .checkout-form,
  .summary-card { padding: 18px; }
  .form-card-heading { align-items: flex-start; }
  .form-card-heading > div { min-width: 0; }

  .footer-confidence { grid-template-columns: 1fr; }
  .profile-page,
  .customer-orders-page { width: calc(100% - 28px); padding-top: 34px; }
  .profile-form-card { padding: 20px; }
  .customer-orders-heading { align-items: stretch; }
  .customer-orders-shop { width: 100%; justify-content: center; }

  .delivery-download-card,
  .download-list a.delivery-download-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .delivery-download-card > b { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 480px) {
  .faq-chat-whatsapp {
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 90px);
    height: auto;
    padding: 8px 12px 8px 10px;
    justify-content: flex-start;
    border-radius: 999px;
  }
  .faq-chat-whatsapp-text {
    display: inline-block;
    max-width: 170px;
    font-size: 10px;
    line-height: 1.2;
  }
  .faq-chat-launcher {
    width: 50px;
    min-width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 15px;
  }
  .faq-chat-launcher > span:last-child { display: none; }

  .page-hero.compact h1,
  .article-page h1,
  .legal-document .legal-header h1,
  .product-detail-heading h1 { overflow-wrap: anywhere; }

  .faq-hero-actions { display: grid; grid-template-columns: 1fr; }
  .faq-hero-actions .btn { width: 100%; }

  .checkout-progress li { font-size: 8px; }
  .checkout-progress li:not(:last-child)::after { margin: 0 3px; }

  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cart-line-media { width: 64px; height: 60px; }
  .cart-quantity-form { margin-left: 74px; }
  .cart-line-total { max-width: calc(100% - 74px); overflow-wrap: anywhere; }
}
