:root {
  color-scheme: light;
  --ink: #10242a;
  --ink-soft: #4f666d;
  --ink-faint: #7a8d92;
  --line: #dbe4e5;
  --line-soft: #eaf0f0;
  --surface: #ffffff;
  --canvas: #f6f8f7;
  --accent: #126777;
  --accent-soft: #e7f1f2;
  --positive: #277158;
  --negative: #a24c50;
  --radius: 18px;
  --gutter: clamp(20px, 3.5vw, 68px);
  font-family: "Golos Text", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button:not(.v2-button), input, select { color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.store-shell {
  min-height: 66px;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}

.store-shell__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.store-shell__mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--accent); font-size: 15px; }
.store-shell__mark img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.store-switcher { min-width: 214px; height: 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.store-switcher__market { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.store-switcher select { min-width: 0; height: 100%; appearance: none; border: 0; outline: 0; background: transparent; font-weight: 500; }
.store-switcher svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.store-shell__profile { position: relative; }
.store-shell__profile > summary { cursor: pointer; list-style: none; }
.store-shell__profile > summary::-webkit-details-marker { display: none; }
.store-shell__profile-menu { position: absolute; top: calc(100% + 9px); right: 0; min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 14px 38px rgba(15, 35, 42, .12); }
.store-shell__profile-menu a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; white-space: nowrap; font-size: 12px; font-weight: 500; }
.store-shell__profile-menu a:hover, .store-shell__profile-menu a:focus-visible { color: var(--ink); background: var(--surface-subtle); outline: none; }

.store-page { width: 100%; padding: 0 var(--gutter) 104px; }
.store-intro { min-height: 164px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(28px, 5vw, 90px); padding: 36px 0 27px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 9px; color: var(--ink-faint); font-size: 11px; font-weight: 600; letter-spacing: .085em; text-transform: uppercase; }
.store-intro h1 { margin: 0; max-width: 1000px; font-size: clamp(30px, 3.2vw, 52px); line-height: 1.04; font-weight: 500; letter-spacing: -.045em; }
.store-intro__identity { margin: 13px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.store-intro__period-fact { max-width: 560px; padding-bottom: 3px; text-align: right; color: var(--ink-soft); line-height: 1.65; }
.store-intro__period-fact strong { display: block; color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -.015em; }
.store-intro__period-fact span { color: var(--ink-faint); font-size: 12px; }

.catalog { padding-top: 31px; }
.catalog__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.catalog__heading h2 { margin: 0; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; font-weight: 500; letter-spacing: -.035em; }
.catalog-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: #e9eeee; }
.catalog-tab { min-height: 32px; padding: 0 15px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); font-size: 12px; }
.catalog-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(26,52,57,.08); }
.catalog-tab[aria-disabled="true"] { cursor: default; opacity: .48; }

.catalog-tools { margin-top: 24px; display: grid; grid-template-columns: minmax(250px, 1.25fr) minmax(180px, .65fr) auto; gap: 10px; align-items: center; }
.catalog-search, .catalog-select { height: 42px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.catalog-search:focus-within, .catalog-select:focus-within { border-color: #8eb3b9; box-shadow: 0 0 0 3px rgba(18,103,119,.09); }
.catalog-search svg { width: 18px; margin: 0 0 0 13px; fill: none; stroke: var(--ink-faint); stroke-width: 1.5; }
.catalog-search input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 13px 0 10px; }
.catalog-search input::placeholder { color: #87989c; }
.catalog-select select { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 12px; }
.period-picker { height: 42px; display: flex; align-items: center; gap: 10px; padding-left: 5px; color: var(--ink-faint); font-size: 11px; }
.period-picker > div { display: flex; padding: 3px; border-radius: 10px; background: #e9eeee; }
.period-picker button { min-width: 47px; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 11px; }
.period-picker button.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(26,52,57,.08); }

.catalog-meta { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-faint); font-size: 12px; }
.catalog-state[hidden], .catalog-grid[hidden] { display: none; }
.catalog.is-initializing { position: relative; min-height: 240px; }
.catalog.is-initializing > :not(.catalog-state) { visibility: hidden; }
.catalog.is-initializing > .catalog-state { position: absolute; inset: 0; }
.catalog-loading { width: 160px; max-width: 60%; height: 3px; margin: 48px auto; border-radius: 3px; background: linear-gradient(100deg,#edf1f1 18%,#9abfc5 37%,#edf1f1 62%); background-size: 300% 100%; animation: catalog-shimmer 1.3s infinite; }
.catalog-loading span { display: none; }
@keyframes catalog-shimmer { to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .catalog-loading { animation: none; } }
.catalog-empty, .catalog-error { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.catalog-empty strong, .catalog-error strong { font-size: 17px; font-weight: 500; }
.catalog-empty p, .catalog-error p { max-width: 460px; margin: 0; color: var(--ink-soft); line-height: 1.5; }
.catalog-error button { margin-top: 8px; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.linkage-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 0 rgba(23,55,61,.025); transition: transform .18s, box-shadow .18s, border-color .18s; }
.linkage-card:hover { transform: translateY(-2px); border-color: #cbd9da; box-shadow: 0 12px 28px rgba(28,58,64,.07); }
.linkage-card__media { aspect-ratio: 1.7 / 1; min-height: 220px; position: relative; display: grid; place-items: center; overflow: hidden; background: #f0f3f2; }
.linkage-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.linkage-card__media img[src=""] { display: none; }
.linkage-card__photo-cover { position: absolute; inset: 0; display: block; pointer-events: none; background: inherit; isolation: isolate; }
.linkage-card__media .linkage-card__photo-cover img { position: absolute; inset: 0; }
.linkage-card__badge { position: absolute; left: 14px; top: 14px; min-height: 25px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink-soft); box-shadow: 0 1px 6px rgba(26,51,56,.07); font-size: 10px; font-weight: 600; backdrop-filter: blur(8px); }
.linkage-card__body { flex: 1; display: flex; flex-direction: column; padding: 17px 18px 16px; }
.linkage-card__overline { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-faint); font-size: 10px; line-height: 1.4; text-transform: uppercase; letter-spacing: .055em; }
.linkage-card h3 { margin: 7px 0 0; font-size: 17px; line-height: 1.32; font-weight: 500; letter-spacing: -.025em; overflow-wrap: anywhere; }
.linkage-card__metrics { margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.linkage-metric { min-width: 0; }
.linkage-metric span { display: block; color: var(--ink-faint); font-size: 10px; line-height: 1.35; }
.linkage-metric strong { display: block; margin-top: 4px; font-size: 14px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.linkage-metric--profit strong.is-negative { color: var(--negative); }
.linkage-metric--profit strong.is-positive { color: var(--positive); }
.linkage-card__secondary { min-height: 35px; margin-top: 13px; color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.linkage-card__variants { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.variant-strip { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: thin; padding: 1px 1px 5px; }
.variant-thumb { flex: 0 0 38px; width: 38px; height: 38px; padding: 2px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f4f6f5; }
.variant-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.variant-thumb.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.variant-more { flex: 0 0 auto; color: var(--ink-faint); font-size: 10px; }
.linkage-card__actions { min-height: 38px; margin-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.linkage-reset { padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 11px; }
.linkage-reset[hidden] { visibility: hidden; display: inline-block; }
.linkage-open { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--ink); font-size: 12px; font-weight: 500; text-decoration: none; }
.linkage-open svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .15s; }
.linkage-open:hover svg { transform: translateX(2px); }

.catalog-pagination { min-height: 66px; display: flex; justify-content: center; align-items: end; gap: 7px; }
.catalog-pagination:empty { display: none; }
.catalog-pagination button { min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; }
.catalog-pagination button.is-active { color: #fff; border-color: var(--accent); background: var(--accent); }
.catalog-pagination button:disabled { opacity: .4; cursor: default; }

.sku-placeholder { max-width: 760px; min-height: calc(100vh - 66px); display: grid; align-content: center; gap: 12px; padding: 48px var(--gutter) 110px; }
.sku-placeholder a { color: var(--accent); text-decoration: none; }
.sku-placeholder h1 { margin: 0; font-size: clamp(34px,5vw,60px); font-weight: 500; letter-spacing: -.045em; }
.sku-placeholder p:last-child { max-width: 600px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

@media (max-width: 1180px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-tools { grid-template-columns: minmax(260px,1fr) minmax(180px,.65fr); }
  .period-picker { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .store-shell { min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
  .store-shell__brand > span:last-child { display: none; }
  .store-switcher { min-width: 0; width: min(255px, calc(100vw - 76px)); height: 40px; }
  .store-page { padding-bottom: 118px; }
  .store-intro { min-height: 0; grid-template-columns: 1fr; align-items: start; gap: 22px; padding: 28px 0 24px; }
  .store-intro h1 { font-size: 34px; }
  .store-intro__period-fact { max-width: none; text-align: left; }
  .catalog { padding-top: 25px; }
  .catalog__heading { align-items: flex-start; }
  .catalog__heading .eyebrow { display: none; }
  .catalog__heading h2 { padding-top: 4px; font-size: 24px; }
  .catalog-tabs { flex: 0 0 auto; }
  .catalog-tab { min-height: 30px; padding: 0 10px; }
  .catalog-tools { margin-top: 19px; grid-template-columns: 1fr; }
  .period-picker { grid-column: auto; justify-content: space-between; padding: 2px 0 0; overflow-x: auto; }
  .period-picker > span { display: none; }
  .period-picker > div { width: 100%; }
  .period-picker button { flex: 1; }
  .catalog-meta { min-height: 35px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 14px; }
  .linkage-card__media { min-height: 210px; }
  .linkage-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@view-transition { navigation: none; }
html.ui-next-resume-stable .ui-next,
html.ui-next-resume-stable .ui-next *,
html.ui-next-resume-stable .ui-next *::before,
html.ui-next-resume-stable .ui-next *::after {
  scroll-behavior: auto !important;
  transition: none !important;
}
