/* Nexo Distribution storefront — minimalist design system.
   The admin panel still uses styles.css until its own redesign. */

:root {
  --bg: #ffffff;
  --surface: #f7f7f5;
  --tile: #f4f4f2;
  --tile-strong: #ededea;
  --border: #ececea;
  --border-strong: #dadad6;
  --text: #111111;
  --text-2: #4a4a4a;
  --muted: #6b6b6b;
  --primary: #111111;
  --primary-hover: #2b2b2b;
  --green: #15803d;
  --amber: #b45309;
  --blue: #1d4ed8;
  --blue-soft: #eef2ff;
  --red: #b91c1c;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  --container: 1240px;
  --gutter: 24px;
  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 32px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--primary); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 80px; }
.section:last-child { padding-bottom: 96px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 32px; letter-spacing: -0.025em; }
.section-head a { font-size: 14px; font-weight: 600; }
.section-head a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; white-space: nowrap; line-height: 1;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--tile); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--tile); color: var(--text); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-added { background: #fff; border-color: var(--border-strong); color: var(--text); }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-button { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Forms */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; font-size: 15px; font-weight: 400;
}
.field textarea { resize: vertical; min-height: 110px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.form-note { font-size: 13px; color: var(--muted); }
.form-stack { display: grid; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); margin: 0; flex: none; }
.check .count { margin-left: auto; color: var(--muted); font-size: 13px; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.status--stock::before { background: var(--green); }
.status--request::before { background: var(--amber); }
.status--preorder::before { background: var(--blue); }
.status--soon::before { background: var(--blue); }
.status--out::before { background: var(--muted); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tile); font-size: 13px; font-weight: 600; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill.status--stock { color: var(--green); background: #ecfdf3; }
.status-pill.status--request { color: var(--amber); background: #fff7ed; }
.status-pill.status--preorder, .status-pill.status--soon { color: var(--blue); background: var(--blue-soft); }
.status-pill.status--out { color: var(--text-2); }
.status-pill::after { display: none; }

.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px;
  border-radius: 6px; background: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
}
.badge--preorder { color: var(--blue); }

/* Header */
/* Floating header: a rounded bar that hovers over the page with a small gap around it. */
.site-header { position: sticky; top: 0; z-index: 40; padding: 12px var(--gutter) 0; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.site-header .header-inner,
.site-header .search-panel,
.site-header .mobile-panel {
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(17, 17, 17, 0.06);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled .header-inner { background: rgba(255, 255, 255, 0.97); box-shadow: 0 10px 32px rgba(17, 17, 17, 0.1); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; padding: 0 10px 0 12px; }
.site-header .search-panel, .site-header .mobile-panel { margin-top: 8px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 16px 40px rgba(17, 17, 17, 0.12); }
.site-header .search-panel .container, .site-header .mobile-panel .container { padding: 0 16px; }
/* Brand logo — kept exactly as clients know it (gradient "N" mark + Nexo / DISTRIBUTION). */
.logo { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center; border-radius: 16px;
  color: #fff; font-family: "Space Grotesk", var(--font); font-size: 25px; font-weight: 800; letter-spacing: -0.08em;
  background: linear-gradient(135deg, #245cff, #ff5a5f 54%, #ff9f1c);
  box-shadow: 0 14px 28px rgba(36, 92, 255, 0.18);
}
.logo-text strong, .logo-text small { display: block; line-height: 1; }
.logo-text strong { font-family: "Space Grotesk", var(--font); font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
.logo-text small { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-grid .logo { margin-bottom: 6px; }
.footer-grid .logo-text small { letter-spacing: 0.16em; }
.main-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.main-nav a { color: var(--text-2); padding: 6px 0; }
.main-nav a:hover, .main-nav a.is-active { color: var(--text); }
.main-nav a.is-active { font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions form { margin: 0; }
.request-link .count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}
.request-link .count[data-count="0"] { background: var(--tile-strong); color: var(--text-2); }
.nav-toggle { display: none; }
.mobile-panel { display: none; }

.search-panel { padding: 16px 0; }
.search-panel[hidden] { display: none; }

/* Search with suggestions */
.search-box { position: relative; }
.search-field {
  display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: #fff;
}
.search-field:focus-within { border-color: var(--text); }
.search-field svg { flex: none; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field--sm { height: 44px; border-radius: var(--radius-sm); padding: 0 12px; }
.search-field--sm input { font-size: 15px; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; display: grid;
}
.suggest[hidden] { display: none; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); }
.suggest a:hover, .suggest a.is-active { background: var(--surface); color: var(--text); }
.suggest .thumb { width: 44px; height: 44px; border-radius: 6px; background: var(--tile); flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.suggest .thumb img { width: 38px; height: 38px; object-fit: contain; }
.suggest .name { display: block; font-size: 14px; font-weight: 500; }
.suggest .meta { display: block; font-size: 12px; color: var(--muted); }
.suggest .empty { padding: 12px; font-size: 14px; color: var(--text-2); }
.suggest .all { justify-content: center; font-size: 13px; font-weight: 600; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-top: 4px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin-top: 18px; }
.hero-lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 520px; }
.hero .search-box { margin-top: 32px; max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 500; color: #333;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip--removable { background: var(--tile); border-color: transparent; color: var(--text); }
.hero-media { position: relative; }
.hero-media .tile { aspect-ratio: 1 / 1; border-radius: var(--radius-xl); background: var(--tile); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-media .tile img { width: 74%; height: 74%; object-fit: contain; }
.hero-media .tile img.cover { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card strong { flex: 1; font-size: 14px; font-weight: 600; }

.highlights { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.highlights ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; font-size: 14px; color: #333; }
.highlights li { display: flex; align-items: center; gap: 10px; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tile-card { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--tile); }
.tile-card .media { aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--tile-strong); }
.tile-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile-card .media .initial { font-size: 44px; font-weight: 700; color: var(--muted); }
.tile-card:hover .media img { transform: scale(1.04); }
.tile-card .body { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tile-card .body strong { font-size: 17px; font-weight: 600; }
.tile-card .body span { font-size: 13px; color: var(--muted); }
.tile-dark { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 260px; padding: 28px; border-radius: var(--radius-lg); background: var(--primary); color: #fff; }
.tile-dark:hover { color: #fff; background: #1d1d1d; }
.tile-dark .eyebrow { color: #bdbdbd; }
.tile-dark strong { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.tile-dark span:last-child { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* Tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--tile); border-radius: 10px; flex-wrap: wrap; }
.tab { height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.tab-panel[hidden] { display: none; }

.underline-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); }
.underline-tabs .tab { height: auto; padding: 14px 0; margin-bottom: -1px; border-radius: 0; background: none; box-shadow: none; border-bottom: 2px solid transparent; font-size: 15px; }
.underline-tabs .tab[aria-selected="true"] { border-bottom-color: var(--text); box-shadow: none; }

/* Product rows & grids */
.product-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 60px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.product-row > * { scroll-snap-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }

.pcard { display: flex; flex-direction: column; gap: 12px; min-width: 0; position: relative; }
.pcard[hidden] { display: none !important; }
.pcard .ean { display: none; }
.product-grid.is-list .pcard .ean { display: inline; }
.pcard .media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--tile); border-radius: 14px; overflow: hidden; }
.pcard .media img { width: 80%; height: 80%; object-fit: contain; transition: transform .3s ease; }
.pcard .media:hover img { transform: scale(1.04); }
.pcard .media .no-image { font-size: 13px; color: var(--muted); }
.pcard .badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--text); display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.fav-btn:hover { transform: scale(1.08); }
[data-favorite][aria-pressed="true"] svg, .fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.product-grid.is-list .fav-btn { display: none; }
.pcard .info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pcard .meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard .title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.pcard .title:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.pcard .price { display: grid; gap: 2px; }
.pcard .price strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard .price small { font-size: 12px; color: var(--muted); }
.pcard .price .locked { font-size: 14px; font-weight: 600; color: var(--text-2); }
.pcard .price button.locked { background: none; border: 0; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.pcard .actions { display: flex; gap: 8px; margin-top: auto; }
.pcard .actions .btn { flex: 1; height: 40px; padding: 0 12px; font-size: 13px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); height: 40px; background: #fff; flex: none; }
.qty button { width: 34px; height: 100%; border: 0; background: none; font-size: 18px; line-height: 1; color: var(--text); }
.qty button:hover { background: var(--tile); }
.qty input { width: 36px; height: 100%; border: 0; text-align: center; font-size: 14px; font-weight: 600; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--lg { height: 52px; border-radius: 10px; }
.qty--lg button { width: 46px; font-size: 20px; }
.qty--lg input { width: 44px; font-size: 16px; }

/* List view: the same cards laid out as rows */
.product-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-grid.is-list .pcard { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px auto; align-items: center; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); }
.product-grid.is-list .pcard:first-child { border-top: 0; }
.product-grid.is-list .pcard:hover { background: var(--surface); }
.product-grid.is-list .media { width: 64px; height: 64px; border-radius: var(--radius-sm); }
.product-grid.is-list .badges { display: none; }
.product-grid.is-list .price { text-align: right; }
.product-grid.is-list .actions { margin: 0; }
.product-grid.is-list .actions .btn { flex: none; min-width: 120px; }

/* Brands */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.brand-grid a { display: grid; gap: 4px; justify-items: center; align-content: center; padding: 30px 20px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.brand-grid a strong { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #333; }
.brand-grid a span { font-size: 13px; color: var(--muted); }
.brand-grid a:hover { background: var(--surface); }
.brand-grid a.has-logo { gap: 14px; }
.brand-logo { height: 64px; width: 100%; display: flex; align-items: center; justify-content: center; }
.brand-logo img { max-height: 64px; max-width: 160px; width: auto; height: auto; object-fit: contain; transition: transform .25s ease; }
.brand-grid a:hover .brand-logo img { transform: scale(1.05); }
/* Shipping carriers: a calm row of logo tiles. */
.carrier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.carrier { display: grid; gap: 10px; justify-items: center; align-content: center; min-height: 128px; padding: 20px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; text-align: center; transition: border-color .2s ease, transform .25s ease; }
a.carrier:hover { border-color: var(--border-strong); transform: translateY(-2px); color: var(--text); }
.carrier-logo { height: 48px; width: 100%; display: flex; align-items: center; justify-content: center; }
.carrier-logo img { max-height: 48px; max-width: 140px; width: auto; height: auto; object-fit: contain; }
.carrier-name { font-size: 13px; color: var(--muted); }
.carrier strong { font-size: 17px; font-weight: 700; color: #333; }
.page-brand-logo { display: block; margin-bottom: 14px; }
.page-brand-logo img { max-height: 56px; max-width: 180px; width: auto; height: auto; object-fit: contain; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.step .num { font-size: 13px; font-weight: 600; color: var(--muted); }
.step h3 { margin: 14px 0 8px; font-size: 19px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* FAQ + contact */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 16px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.panel { padding: 32px; background: var(--surface); border-radius: var(--radius-xl); }
.panel h2 { font-size: 24px; }
.panel > p { margin: 8px 0 24px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.contact-lines { display: grid; gap: 6px; margin-top: 24px; font-size: 14px; color: var(--text-2); }
.contact-lines a { font-weight: 600; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 0; }
.footer-grid { padding: 48px 0 32px; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; font-size: 14px; }
.footer-grid div { display: grid; gap: 10px; align-content: start; }
.footer-grid strong { font-size: 14px; }
.footer-grid a, .footer-grid span { color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { padding: 20px 0 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp-float:hover { color: #fff; background: #1ebe5b; transform: translateY(-2px); }

/* Toast & flash */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-size: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: transform .25s ease, opacity .25s ease; pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast a { color: #fff; font-weight: 600; background: #2e2e2e; padding: 8px 12px; border-radius: var(--radius-sm); white-space: nowrap; }
.toast a:hover { color: #fff; background: #3a3a3a; }
.toast:not(:has(a)) { padding-right: 18px; }
.flash { padding: 14px 0; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--border); }
.flash.success { background: #ecfdf3; color: #14532d; }
.flash.error { background: #fef2f2; color: #7f1d1d; }
.flash.info { background: var(--blue-soft); color: #1e3a8a; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.45); }
.modal-card { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: var(--radius-xl); padding: 28px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--tile); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--tile-strong); }
.modal .tabs { margin-bottom: 22px; }
.modal h2 { font-size: 24px; }
.modal-intro { margin: 6px 0 20px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.auth-view { display: none; }
.auth-view.is-active { display: grid; gap: 16px; }
.auth-view .btn-lg { margin-top: 6px; }
.form-stack > .btn, .form-stack > .cta-row { margin-top: 6px; }
.auth-error { margin-bottom: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: #fef2f2; color: #7f1d1d; font-size: 14px; }

/* Page head & breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin: 28px 0 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 36px; letter-spacing: -0.03em; }
.page-head p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.page-head .lead { max-width: 640px; color: var(--text-2); line-height: 1.6; }

/* Catalog */
.catalog { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-bottom: 96px; }
.filters { flex: 1 1 220px; max-width: 240px; position: sticky; top: calc(var(--header-h) + 20px); }
.filters form { display: grid; gap: 28px; }
.filters h2 { margin-bottom: 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.filters .options { display: grid; gap: 2px; }
.filters .price-range { display: flex; align-items: center; gap: 8px; }
.filters .price-range input { min-width: 0; height: 40px; }
.filters-head, .filters-foot { display: none; }
.catalog-main { flex: 999 1 560px; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .search-field { flex: 1 1 260px; }
.select-inline { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2); background: #fff; }
.select-inline select { border: 0; background: transparent; font-weight: 600; color: var(--text); font-size: 14px; padding: 0; }
.select-inline select:focus { outline: none; }
.view-toggle { display: inline-flex; padding: 3px; background: var(--tile); border-radius: 10px; }
.view-toggle button { width: 40px; height: 38px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.view-toggle button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.filter-button { display: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.active-chips:empty { display: none; }
.active-chips .clear { height: 32px; padding: 0 6px; font-size: 13px; font-weight: 600; text-decoration: underline; display: inline-flex; align-items: center; }
.result-count { font-size: 14px; color: var(--muted); }
.empty-state { padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty-state strong { font-size: 18px; }
.empty-state p { color: var(--text-2); max-width: 420px; }
.banner { margin-top: 48px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.banner h2 { font-size: 20px; margin-bottom: 6px; }
.banner p { font-size: 15px; color: var(--text-2); }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
.gallery { display: grid; gap: 14px; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: var(--tile); border-radius: var(--radius-xl); overflow: hidden; }
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; overflow: hidden; }
.gallery-slide img { width: 78%; height: 78%; object-fit: contain; transition: transform .2s ease; }
.gallery-main.can-zoom .gallery-slide { cursor: zoom-in; }
.gallery-main.is-zooming .gallery-slide.is-current img { transform: scale(1.8); }
.gallery-main .badges { position: absolute; top: 18px; left: 18px; display: flex; gap: 6px; z-index: 2; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; z-index: 2; }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px; }
.gallery-thumbs button { aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--tile); border: 2px solid transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.gallery-thumbs button img { width: 80%; height: 80%; object-fit: contain; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--text); }
.gallery-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; }

.pdp-info { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.pdp-title { display: grid; gap: 10px; }
.pdp-title .brand-link { font-size: 14px; font-weight: 600; color: var(--text-2); }
.pdp-title h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.03em; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.pdp-price strong { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pdp-price span { font-size: 14px; color: var(--muted); }
.pdp-price .retail { width: 100%; font-size: 14px; color: var(--text-2); }
.pdp-price .locked-note { width: 100%; font-size: 15px; color: var(--text-2); }
.pdp-short { font-size: 15px; line-height: 1.65; color: var(--text-2); }
.options-group { display: grid; gap: 10px; }
.options-group > span { font-size: 13px; font-weight: 600; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--border-strong); background: #fff; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: left; }
.option:hover { border-color: var(--text); color: var(--text); }
.option[aria-pressed="true"] { border: 2px solid var(--text); padding: 7px 15px; color: var(--text); }
.option[disabled] { opacity: .45; text-decoration: line-through; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.facts div { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; min-width: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 6px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.copy-btn { border: 0; background: none; padding: 2px 4px; color: var(--text-2); font-size: 12px; font-weight: 600; flex: none; }
.copy-btn:hover { color: var(--text); text-decoration: underline; }
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.buy-row .btn { flex: 1; min-width: 200px; }
.buy-row .btn-icon { flex: none; min-width: 0; width: 52px; }
.stock-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.stock-alert > span { flex: 1 1 200px; display: grid; gap: 2px; font-size: 14px; }
.stock-alert small { color: var(--muted); font-size: 13px; }
.stock-alert .input { flex: 1 1 200px; min-height: 44px; }
.timeline { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; }
.timeline li { position: relative; display: grid; gap: 4px; padding: 26px 16px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--border); }
.timeline li.is-done::before, .timeline li.is-current::before { background: var(--text); }
.timeline .dot { position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--border-strong); }
.timeline li.is-done .dot { background: var(--text); border-color: var(--text); }
.timeline li.is-current .dot { background: var(--text); border-color: var(--text); box-shadow: 0 0 0 5px rgba(17, 17, 17, 0.1); }
.timeline li.is-current::before { background: linear-gradient(90deg, var(--text) 16px, var(--border) 16px); }
.timeline strong { font-size: 14px; }
.timeline small { font-size: 13px; color: var(--muted); }
.timeline li.is-todo strong, .timeline li.is-off strong { color: var(--muted); font-weight: 500; }
.assurance { margin: 0; padding: 18px 20px; list-style: none; display: grid; gap: 10px; background: var(--surface); border-radius: var(--radius); font-size: 14px; color: #333; }
.assurance li { display: flex; gap: 10px; align-items: flex-start; }
.assurance svg { flex: none; margin-top: 2px; }
.pdp-sections { margin-top: 72px; }
.prose { max-width: 760px; padding-top: 24px; font-size: 16px; line-height: 1.7; color: #333; }
.prose p + p { margin-top: 14px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose ul { padding-left: 20px; }
.spec-table { width: 100%; max-width: 760px; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 14px 0; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 40%; font-weight: 500; color: var(--muted); padding-right: 16px; }
.sticky-buy { display: none; }

/* Simple content pages */
.page { padding-bottom: 96px; }
.page-narrow { max-width: 820px; }
.card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; color: var(--text-2); }
.check-list li { display: flex; gap: 10px; }
.check-list svg { flex: none; margin-top: 3px; }

/* Account */
.account-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.meta-list { margin: 20px 0 0; display: grid; gap: 14px; font-size: 14px; }
.meta-list dt { font-size: 12px; color: var(--muted); }
.meta-list dd { margin: 2px 0 0; font-weight: 500; word-break: break-word; }
.list-rows { border-top: 1px solid var(--border); }
.list-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.list-row strong { display: block; font-size: 15px; }
.list-row small { color: var(--muted); font-size: 13px; }
.request-status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: var(--tile); color: var(--text-2); }
.request-status.new { background: var(--blue-soft); color: var(--blue); }
.request-status.in_review { background: #fef3c7; color: #92400e; }
.request-status.invoice_sent, .request-status.completed { background: #dcfce7; color: #166534; }
.request-status.cancelled { background: var(--tile); color: var(--muted); }
.account-side { position: sticky; top: calc(var(--header-h) + 32px); }
.account-nav { display: grid; margin-top: 20px; border-top: 1px solid var(--border); }
.account-nav a { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tool { display: grid; gap: 6px; padding: 22px; transition: border-color .2s ease, transform .2s ease; }
a.tool:hover { border-color: var(--border-strong); transform: translateY(-2px); color: var(--text); }
.tool span { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.tool.is-locked { background: var(--surface); }
.notice { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); font-size: 14px; color: var(--text-2); line-height: 1.55; }
.notice strong { color: var(--text); }

/* Request list page */
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-bottom: 96px; }
.request-lines { border-top: 1px solid var(--border); }
.request-line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.request-line .thumb { width: 88px; height: 88px; border-radius: var(--radius); background: var(--tile); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.request-line .thumb img { width: 80%; height: 80%; object-fit: contain; }
.request-line .main { display: grid; gap: 6px; min-width: 0; align-content: start; }
.request-line .main a { font-weight: 600; }
.request-line .main small { font-size: 13px; color: var(--muted); }
.request-line .line-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-2); }
.request-line textarea { width: 100%; min-height: 64px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; resize: vertical; }
.request-line .controls { display: grid; gap: 10px; justify-items: end; align-content: start; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.summary h2 { font-size: 20px; }
.result { font-size: 14px; }
.result.success { color: var(--green); }
.result.error { color: var(--red); }

/* Responsive */
.main-nav a { white-space: nowrap; }

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel { padding: 4px 0 16px; }
  .mobile-panel:not([hidden]) { display: block; }
  .mobile-panel nav { display: grid; }
  .mobile-panel nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 500; }
  .mobile-panel nav a:last-child { border-bottom: 0; }
  .mobile-panel .mobile-actions { display: none; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .request-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}

@media (max-width: 880px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .header-actions .hide-mobile { display: none; }
  .header-inner { gap: 16px; padding: 0 8px 0 10px; }
  .site-header { padding: 8px 10px 0; }
  .site-header .header-inner, .site-header .search-panel, .site-header .mobile-panel { max-width: none; border-radius: 16px; }
  .logo-mark { width: 40px; height: 40px; border-radius: 14px; font-size: 22px; }
  .header-actions { gap: 6px; }
  .mobile-panel .mobile-actions { display: grid; gap: 10px; margin-top: 16px; }
  .mobile-panel .mobile-actions form { margin: 0; }
  .request-link .label { display: none; }
  .hero { padding: 40px 0 40px; }
  .hero-grid, .split, .pdp, .two-col, .account-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .section { padding-top: 56px; }
  .section-head h2 { font-size: 26px; }
  .product-row { grid-auto-columns: 62%; }
  .filters {
    position: fixed; inset: 0; z-index: 85; max-width: none; background: #fff;
    display: none; flex-direction: column;
  }
  .filters.is-open { display: flex; }
  .filters form { flex: 1; overflow-y: auto; padding: 20px 16px; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .filters-head strong { font-size: 18px; }
  .filters-foot { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
  .filters-foot .btn { flex: 1; }
  .filter-button { display: inline-flex; }
  .toolbar .search-field { flex-basis: 100%; }
  .pdp-info, .account-side { position: static; }
  .pdp-title h1 { font-size: 28px; }
  .sticky-buy { display: flex; position: sticky; bottom: 0; z-index: 35; gap: 10px; align-items: center; padding: 12px 16px; background: #fff; border-top: 1px solid var(--border); }
  .sticky-buy strong { font-size: 17px; }
  .sticky-buy .btn { flex: 1; }
  .product-grid.is-list .pcard { grid-template-columns: 56px minmax(0, 1fr); }
  .product-grid.is-list .media { width: 56px; height: 56px; }
  .product-grid.is-list .price { grid-column: 2; text-align: left; }
  .product-grid.is-list .actions { grid-column: 1 / -1; }
  .product-grid.is-list .actions .btn { flex: 1; }
  .whatsapp-float { bottom: 16px; right: 16px; }
  .has-sticky-buy .whatsapp-float { bottom: 84px; }
  .request-line { grid-template-columns: 72px minmax(0, 1fr); }
  .request-line .thumb { width: 72px; height: 72px; }
  .request-line .controls { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .pcard .actions { flex-wrap: wrap; }
  .pcard .actions .qty { width: 100%; justify-content: space-between; }
  .pcard .actions .qty input { flex: 1; }
  .pcard .actions .btn { flex-basis: 100%; }
  .product-grid.is-list .actions .qty { width: auto; }
  .product-grid.is-list .actions .btn { flex-basis: auto; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 30px; }
  .modal-card { padding: 22px 18px; }
  .hero-card { left: 12px; right: 12px; bottom: 12px; }
}

/* Motion — deliberately subtle. Page changes cross-fade where the browser supports
   view transitions; elsewhere the page content fades in. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 160ms ease both vt-out; }
::view-transition-new(root) { animation: 240ms ease both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
@supports not (view-transition-name: none) {
  main { animation: page-in 320ms ease both; }
}
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.modal.is-open .modal-backdrop { animation: fade-in 200ms ease both; }
.modal.is-open .modal-card { animation: rise-in 240ms cubic-bezier(.2, .8, .2, 1) both; }
.search-panel:not([hidden]), .mobile-panel:not([hidden]), .suggest:not([hidden]) { animation: drop-in 180ms ease both; }
.tab-panel:not([hidden]) { animation: fade-in 220ms ease both; }
.filters.is-open { animation: rise-in 240ms cubic-bezier(.2, .8, .2, 1) both; }
.pcard .media { transition: box-shadow .25s ease; }
.pcard:hover .media { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); }
.tile-card, .tile-dark, .step { transition: transform .25s ease, box-shadow .25s ease; }
.tile-card:hover, .tile-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07); }

/* Small phones: keep the floating header inside its bar and give the sign-in window room. */
.modal-card { max-height: calc(100dvh - 32px); }
@media (max-width: 560px) {
  .modal { align-items: flex-start; padding: 16px 12px; overflow-y: auto; }
  .modal-card { padding: 60px 18px 24px; max-height: none; }
  .modal-close { top: 12px; right: 12px; }
  .modal .tabs { display: flex; width: 100%; }
  .modal .tab { flex: 1; padding: 0 8px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 420px) {
  .site-header { padding: 8px 8px 0; }
  .header-inner { gap: 8px; padding: 0 6px 0 8px; }
  .header-actions { gap: 4px; }
  .logo { gap: 8px; padding: 0; }
  .logo-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 20px; }
  .logo-text strong { font-size: 17px; }
  .logo-text small { font-size: 10px; letter-spacing: 0.1em; }
  .header-actions .btn-icon { width: 38px; height: 38px; }
  .header-actions .request-link { height: 38px; padding: 0 10px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
