:root {
  --paper: #f7f5f2;
  --ink: #17171a;
  --sand: #efece5;
  --line: #e5e1da;
  --accent: #ff5a2e;
  --accent-dark: #e0451c;
  --accent-aa: #b93813;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

.text-accent {
  color: var(--accent-aa) !important;
}

.site-logo .text-accent {
  color: var(--accent-dark) !important;
}

.text-ink\/40,
.text-ink\/50 {
  color: #666158 !important;
}

body {
  background-color: var(--paper);
  color: var(--ink);
}

[hidden],
.hidden {
  display: none !important;
}

.surface-scroll-lock {
  overflow: hidden;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-aa);
  outline-offset: 3px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background-color: var(--accent);
  box-shadow: 0 0 0 2px var(--ink);
}

.btn-primary:active,
.btn-secondary:active {
  transform: scale(0.97);
}

.btn-primary:disabled {
  background-color: #d6d2ca;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background-color: #fff;
}

.card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -12px rgba(23, 23, 26, 0.25);
}

.price-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--sand) 0%, var(--line) 100%);
  color: #8e897e;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Header */

.site-header-grid {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.75rem;
}

.site-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.site-desktop-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #4f4a43;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-desktop-nav a:hover {
  color: var(--accent-aa);
}

.site-logo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: center;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-logo-footer {
  display: inline-flex;
  justify-self: auto;
  min-height: 44px;
  align-items: center;
  font-size: 1.125rem;
}

.icon-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.15s ease;
}

.icon-button:hover {
  background-color: var(--sand);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

/* Drawer and search surfaces */

.site-surface {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.site-surface-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(23, 23, 26, 0.42);
  cursor: default;
}

.site-drawer {
  position: relative;
  z-index: 1;
  width: min(88vw, 390px);
  height: 100%;
  overflow-y: auto;
  padding: max(0.75rem, env(safe-area-inset-top)) 1.25rem 2rem;
  background: var(--paper);
  border-right: 1px solid var(--line);
  box-shadow: 16px 0 45px -24px rgba(23, 23, 26, 0.55);
  animation: drawer-in 0.2s ease-out;
}

.site-drawer-head,
.site-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 1rem;
}

.site-drawer-head .site-logo {
  justify-self: auto;
}

.surface-eyebrow,
.section-eyebrow {
  color: #746f65;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.surface-eyebrow {
  margin: 1.4rem 0 0.45rem;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
}

.drawer-nav a,
.drawer-nav button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.drawer-nav a:hover,
.drawer-nav button:hover {
  padding-left: 0.35rem;
  color: var(--accent-aa);
}

.drawer-external {
  margin-top: 2rem;
}

.drawer-external h2 {
  margin-bottom: 0.5rem;
  color: #746f65;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drawer-external-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 0.925rem;
  font-weight: 600;
}

.drawer-external-link:hover {
  color: var(--accent-aa);
}

.site-search-surface {
  display: grid;
  align-items: start;
  justify-items: center;
  padding: max(5rem, calc(env(safe-area-inset-top) + 4rem)) 1rem 1rem;
}

.site-search-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  padding: 1rem 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(23, 23, 26, 0.45);
  animation: search-in 0.18s ease-out;
}

.site-search-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-search-head .surface-eyebrow {
  margin: 0 0 0.15rem;
}

.site-search-form {
  margin-top: 1rem;
}

.site-search-form label,
.filter-control label {
  display: block;
  margin-bottom: 0.35rem;
  color: #666158;
  font-size: 0.75rem;
  font-weight: 600;
}

.site-search-row {
  display: flex;
  gap: 0.65rem;
}

.site-search-row input {
  min-width: 0;
  min-height: 48px;
  flex: 1;
  padding: 0 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-search-row input:focus {
  border-color: var(--accent);
}

.site-search-form > p {
  margin-top: 0.5rem;
  color: #746f65;
  font-size: 0.75rem;
}

/* Catalog */

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.catalog-count {
  color: #746f65;
  font-size: 0.875rem;
  text-align: right;
}

.filter-panel {
  margin-bottom: 0.75rem;
  padding: 1rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.filter-sheet-toggle {
  display: none;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding: 0 1rem;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
}

.filter-sheet-toggle span {
  display: inline-flex;
  min-width: 28px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4f4a43;
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-chip button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.filter-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.filter-panel-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.filter-sheet-close {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.filter-reset {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.4rem;
  color: #666158;
  font-size: 0.82rem;
  font-weight: 600;
}

.filter-reset:hover {
  color: var(--accent-aa);
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.filter-price-range {
  display: grid;
  min-width: 0;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.filter-control select,
.filter-control input {
  width: 100%;
  min-height: 44px;
  padding: 0 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.875rem;
}

.filter-control select:focus,
.filter-control input:focus {
  border-color: var(--accent);
}

.filter-availability {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  align-self: end;
  padding: 0 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #666158;
  font-size: 0.8rem;
  font-weight: 600;
}

.filter-availability input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.filter-control input[aria-invalid='true'] {
  border-color: #b42318;
}

.filter-validation {
  margin-top: 0.75rem;
  color: #9b1c12;
  font-size: 0.8rem;
  font-weight: 600;
}

.price-disclaimer {
  margin: 0.75rem 0 1.25rem;
  color: #746f65;
  font-size: 0.75rem;
  line-height: 1.5;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.catalog-card-link {
  display: block;
  flex: 1;
}

.catalog-availability {
  min-height: 2.4em;
  margin-top: 0.35rem;
  color: #746f65;
  font-size: 0.68rem;
  line-height: 1.2;
}

.catalog-availability.is-available {
  color: #276749;
}

.catalog-quick-button {
  min-height: 44px;
  margin: 0 0.75rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.catalog-quick-button:hover,
.catalog-quick-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-aa);
}

.quick-view {
  width: min(92vw, 760px);
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  box-shadow: 0 30px 80px -24px rgba(23, 23, 26, 0.55);
}

.quick-view::backdrop {
  background: rgba(23, 23, 26, 0.55);
  backdrop-filter: blur(3px);
}

.quick-view-head {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
}

.quick-view-head h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.quick-view-content {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
}

.quick-view-state {
  padding: 3rem 1.25rem;
  color: #746f65;
  text-align: center;
}

.quick-view-media,
.product-photo-stage {
  position: relative;
}

.quick-view-media {
  min-height: 260px;
  overflow: hidden;
  background: var(--sand);
  border-radius: 16px;
}

.quick-view-media > img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.gallery-arrow {
  display: inline-flex;
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 20px -14px rgba(23, 23, 26, 0.65);
  font-weight: 700;
}

.gallery-arrow-prev { left: 0.65rem; }
.gallery-arrow-next { right: 0.65rem; }

.quick-view-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.quick-view-options button,
.quick-view-sizes span {
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.quick-view-options button.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.quick-view-label {
  margin: 1rem 0 0.45rem;
  color: #666158;
  font-size: 0.75rem;
  font-weight: 700;
}

.quick-view-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quick-view-link {
  display: inline-flex;
  margin-top: 1.2rem;
}

.catalog-state {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  text-align: center;
}

.catalog-state h1,
.catalog-state h3 {
  margin-bottom: 0.35rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.catalog-state p {
  max-width: 420px;
  color: #746f65;
  font-size: 0.9rem;
}

.catalog-state .btn-primary,
.catalog-state .btn-secondary {
  margin-top: 1.1rem;
}

.state-spinner {
  width: 26px;
  height: 26px;
  margin-bottom: 0.75rem;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
}

/* Product */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.breadcrumb-link:hover {
  color: var(--accent-aa);
}

.breadcrumb-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.product-categories span {
  padding: 0.3rem 0.65rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #666158;
  font-size: 0.72rem;
  font-weight: 600;
}

.product-disclaimer {
  margin-top: 0.35rem;
  margin-bottom: 1.5rem;
}

.product-option {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.product-colorway-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  border-radius: 12px;
  text-align: left;
}

.product-colorway-option img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

.product-option.is-alternative {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 90, 46, 0.14);
}

.product-option:hover {
  border-color: var(--accent);
}

.product-option.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.product-size {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

button.product-size {
  cursor: pointer;
}

.product-size.is-selected {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.product-size.is-available {
  border-color: #7ab396;
  background: #eff8f3;
  color: #1f6845;
}

.product-size.is-unavailable {
  border-style: dashed;
  color: #8a8177;
  text-decoration: line-through;
}

.product-size.is-on-request {
  border-color: #d8a559;
  background: #fff8e9;
  color: #7c5213;
}

.product-gallery {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.product-gallery-thumb {
  width: 64px;
  min-width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumb.is-selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.product-colorway-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-feedback {
  min-height: 1.25rem;
  margin-top: 0.55rem;
  color: #666158;
  font-size: 0.78rem;
  line-height: 1.45;
}

.product-demo-notice {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  background: #fff8e9;
  border-left: 3px solid var(--accent);
  color: #6c4a18;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* About */

.anchor-section {
  scroll-margin-top: 5.25rem;
}

.about-section {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}

.order-steps {
  display: grid;
  gap: 0.75rem;
}

.order-section {
  scroll-margin-top: 5.25rem;
}

.order-steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.order-step-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 999px;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.order-steps h3 {
  margin-bottom: 0.2rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.order-steps p {
  color: #746f65;
  font-size: 0.875rem;
  line-height: 1.5;
}

.external-grid {
  display: grid;
  gap: 0.75rem;
}

.external-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.external-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.external-card-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.external-card-description {
  margin-top: 0.2rem;
  color: #746f65;
  font-size: 0.8rem;
}

.external-card-arrow {
  color: var(--accent-aa);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-nav a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--accent-aa);
}

/* Chat widget */

#chat-widget-root {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 100;
}

.chat-bubble-btn {
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  border-radius: 999px;
  box-shadow: 0 10px 25px -8px rgba(255, 90, 46, 0.6);
  color: var(--ink);
  transition: transform 0.15s ease;
}

.chat-bubble-btn:hover {
  transform: scale(1.06);
}

.chat-panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(84px + env(safe-area-inset-bottom));
  display: flex;
  width: min(92vw, 380px);
  max-height: min(72vh, 620px);
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px -12px rgba(23, 23, 26, 0.35);
}

.chat-messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background-color: var(--line);
  border-radius: 999px;
}

.chat-msg {
  max-width: 85%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg-bot {
  align-self: flex-start;
  background-color: #f2efe9;
  border-bottom-left-radius: 4px;
  color: var(--ink);
}

.chat-msg-user {
  align-self: flex-end;
  background-color: var(--ink);
  border-bottom-right-radius: 4px;
  color: #fff;
}

.chat-choice-btn {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-aa);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#chat-close-btn,
#chat-send-btn {
  min-width: 44px;
  min-height: 44px;
}

#chat-input {
  min-height: 44px;
}

.chat-choice-btn:hover {
  background-color: var(--accent);
  color: var(--ink);
}

.chat-msg-photo {
  display: block;
  max-width: 200px;
  margin-top: 0.35rem;
  border-radius: 12px;
}

.chat-typing {
  opacity: 0.55;
  letter-spacing: 0.15em;
}

/* Responsive scale
 * Breakpoints follow content pressure: compact phone, large phone/foldable,
 * tablet, laptop, and wide catalog canvas. The visual theme stays unchanged.
 */

.site-header-grid {
  height: clamp(3.75rem, 3.55rem + 0.55vw, 4.5rem) !important;
}

.site-logo {
  font-size: clamp(1.25rem, 1.18rem + 0.25vw, 1.45rem);
}

.catalog-hero > div {
  padding-top: clamp(2.5rem, 1.9rem + 2vw, 4.5rem) !important;
  padding-bottom: clamp(2.5rem, 1.9rem + 2vw, 4.5rem) !important;
}

.catalog-hero h1 {
  max-width: 27ch;
  font-size: clamp(1.625rem, 1.25rem + 2vw, 3.5rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.catalog-hero p {
  max-width: 58ch;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem) !important;
  line-height: 1.55;
}

.catalog-heading h2,
.order-section h2 {
  font-size: clamp(1.625rem, 1.48rem + 0.55vw, 2rem) !important;
  line-height: 1.15;
}

.filter-panel {
  padding: clamp(0.875rem, 0.7rem + 0.55vw, 1.25rem);
}

.filter-control select,
.filter-control input,
.filter-availability {
  min-height: 48px;
  font-size: 1rem;
}

#catalog-grid {
  gap: clamp(0.625rem, 0.35rem + 0.8vw, 1.5rem);
}

.catalog-card .line-clamp-2 {
  line-height: 1.35;
}

.catalog-card .price-tag {
  line-height: 1.25;
}

.product-main {
  padding-top: clamp(1.25rem, 0.9rem + 1vw, 2.5rem) !important;
  padding-bottom: clamp(2.5rem, 2rem + 1.5vw, 4rem) !important;
}

#product-title {
  font-size: clamp(1.625rem, 1.4rem + 0.85vw, 2.25rem) !important;
  line-height: 1.12;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

#product-price-range {
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem) !important;
  line-height: 1.2;
}

.about-main > section:first-child .space-y-4,
.about-section > p:not(.section-eyebrow) {
  font-size: clamp(1rem, 0.94rem + 0.22vw, 1.125rem);
}

.about-main > section:first-child .space-y-4 {
  line-height: 1.7;
}

@media (max-width: 767px) {
  .catalog-hero > div {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .catalog-main {
    padding-top: 1.5rem !important;
  }
}

@media (max-width: 359px) {
  .site-header-grid,
  .catalog-hero > div,
  .catalog-main,
  .product-main,
  .about-main,
  footer > div:first-child {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
  }

  .catalog-card .p-3 {
    padding: 0.625rem;
  }

  .filter-panel {
    padding: 0.75rem;
  }

  .filter-panel-head {
    margin-bottom: 0.5rem;
  }

  .catalog-filters {
    gap: 0.5rem;
  }

  .catalog-quick-button {
    margin-inline: 0.5rem;
    font-size: 0.72rem;
  }
}

@media (min-width: 768px) {
  .site-header-grid {
    grid-template-columns: auto minmax(max-content, 0.35fr) minmax(0, 1fr) 44px;
  }

  #menu-toggle {
    display: none;
  }

  .site-logo {
    justify-self: start;
  }

}

@media (min-width: 360px) and (max-width: 389px) {
  .catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-control:nth-child(-n + 3),
  .filter-availability {
    grid-column: 1 / -1;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  .catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-control:nth-child(3),
  .filter-availability {
    grid-column: 1 / -1;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .filter-control:nth-child(3),
  .filter-availability {
    grid-column: auto;
  }
}

@media (min-width: 768px) {
  .catalog-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-control select,
  .filter-control input,
  .filter-availability {
    min-height: 46px;
    font-size: 0.875rem;
  }

  .site-search-dialog {
    padding: 1.25rem 1.35rem 1.5rem;
  }

  .order-steps-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-view-content {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .catalog-card .line-clamp-2 {
    font-size: clamp(1rem, 0.92rem + 0.18vw, 1.075rem) !important;
  }

  .catalog-card .price-tag {
    font-size: clamp(1.125rem, 1rem + 0.25vw, 1.25rem) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-layout > div {
    width: min(100%, 34rem);
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 2rem + 1.5vw, 4rem);
  }
}

@media (min-width: 1120px) {
  .catalog-filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .filter-price-range {
    grid-column: span 2;
  }
}

@media (min-width: 768px) {
  .chat-panel {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: calc(88px + env(safe-area-inset-right));
    max-height: min(78vh, 680px);
  }
}

@media (min-width: 1440px) {
  .order-steps-wide {
    gap: 1rem;
  }
}

@media (min-width: 1536px) {
  .max-w-7xl {
    max-width: 96rem !important;
  }

  .max-w-6xl {
    max-width: 80rem !important;
  }

  #catalog-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 2200px) {
  .max-w-7xl {
    max-width: 110rem !important;
  }

  #catalog-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .filter-sheet-toggle {
    display: flex;
  }

  .filter-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 260;
    max-height: min(82vh, 680px);
    margin: 0;
    overflow-y: auto;
    padding: 1rem 1rem max(1.25rem, env(safe-area-inset-bottom));
    transform: translateY(calc(100% + 1rem));
    visibility: hidden;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 60px -30px rgba(23, 23, 26, 0.65);
    pointer-events: none;
  }

  .filter-panel.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .filter-sheet-close {
    display: inline-flex;
  }

  body.filter-sheet-open {
    overflow: hidden;
  }

  body.filter-sheet-open::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(23, 23, 26, 0.42);
  }

  .catalog-filters {
    gap: 0.85rem;
  }

  .product-layout {
    gap: 1rem;
  }

  .product-photo-stage {
    max-height: 232px;
  }

  .product-gallery {
    margin-top: 0.45rem;
  }

  .product-main nav {
    margin-bottom: 0.75rem;
  }

  .product-categories {
    margin-bottom: 0.45rem;
  }

  #product-title {
    margin-bottom: 0.35rem;
  }

  .product-disclaimer {
    order: 10;
    margin: 0.7rem 0 0;
  }

  .product-details {
    display: flex;
    flex-direction: column;
  }

  .product-categories { order: 1; }
  #product-brand { order: 2; }
  #product-title { order: 3; }
  #product-price-range { order: 4; }
  .product-colorway-section { order: 5; }
  .product-size-section { order: 6; }
  .product-demo-notice { order: 7; }
  #product-order-btn { order: 8; }
  .product-order-note { order: 9; }

  .product-demo-notice:empty {
    display: none;
  }

  .product-colorway-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
  }

  .product-colorway-option {
    min-width: min(72vw, 240px);
    scroll-snap-align: start;
  }

  body.chat-mobile-open {
    overflow: hidden;
  }

  body.chat-mobile-open > :not(#chat-widget-root)[inert] {
    pointer-events: none;
  }
}

@media (max-width: 390px) {
  .site-search-surface {
    padding-top: max(4.5rem, calc(env(safe-area-inset-top) + 4rem));
  }

  .site-search-row {
    flex-direction: column;
  }

  .site-search-row .btn-primary {
    width: 100%;
  }

  .catalog-main,
  .product-main,
  .about-main {
    padding-bottom: 5.5rem;
  }

  .chat-panel {
    right: 0.5rem;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 0.5rem;
    width: auto;
    max-height: min(70vh, 620px);
  }

  #chat-widget-root {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .chat-bubble-btn {
    width: 48px;
    height: 48px;
  }

  .catalog-quick-button {
    margin-inline: 0.5rem;
    font-size: 0.72rem;
  }

  .quick-view {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@keyframes drawer-in {
  from { transform: translateX(-1rem); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes search-in {
  from { transform: translateY(-0.5rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
