:root {
  --paper: #f4f1eb;
  --paper-soft: #faf8f4;
  --white: #ffffff;
  --ink: #20211f;
  --ink-soft: #50534e;
  --muted: #7d807a;
  --line: rgba(31, 33, 30, .14);
  --line-strong: rgba(31, 33, 30, .24);
  --accent: #a99677;
  --navy: #173b79;
  --navy-dark: #102b59;
  --dark: #171a18;
  --header-height: 82px;
  --container: 1760px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --font-sans: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { color: #fff; background: var(--navy); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1100;
  padding: 10px 16px;
  color: #fff;
  background: var(--dark);
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(22px, 3.2vw, 64px);
  background: rgba(247, 245, 240, .9);
  border-bottom: 1px solid rgba(31, 33, 30, .09);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: height .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  height: 68px;
  background: rgba(247, 246, 242, .96);
  box-shadow: 0 12px 30px rgba(30, 31, 29, .06);
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  width: clamp(210px, 17vw, 280px);
  height: 40px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 2.4vw, 48px); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.15vw, 43px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: .24em;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.language-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
}
.language-switch button {
  min-width: 34px;
  height: 27px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.language-switch button.is-active { color: #fff; background: var(--ink); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: none;
  padding: calc(var(--header-height) + 22px) 28px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(247, 246, 242, .99);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; }
.mobile-panel nav { display: grid; gap: 2px; }
.mobile-panel nav > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(24px, 7vw, 38px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .02em;
}
.mobile-panel nav > a.is-active { color: var(--navy); }
.mobile-panel nav small { font-size: 10px; letter-spacing: .22em; color: var(--muted); }
.mobile-panel__footer {
  margin-top: 30px;
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: var(--muted);
}

/* Catalog-only page. Shared shop.css and the homepage remain untouched. */
body.store-page { min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; padding-top: var(--header-height); }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 4px;
}

.store-catalog.shop-section {
  --shop-focus: var(--navy);
  padding: clamp(26px, 2.5vw, 40px) clamp(22px, 3.2vw, 64px) clamp(48px, 4.5vw, 80px);
  overflow: visible;
  background: transparent;
  border: 0;
}
.store-catalog .shop-shell { width: min(100%, var(--container)); }
.store-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #747a80;
  font-size: 11px;
  line-height: 1.5;
}
.store-breadcrumb a:hover { color: var(--navy); }
.store-breadcrumb [aria-current] { color: #343e4a; }
.store-catalog .shop-heading { align-items: center; justify-content: space-between; gap: 20px; }
.store-catalog .shop-title {
  margin: 0;
  color: #172137;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.2vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.store-catalog .shop-count { flex: 0 0 auto; color: #646b72; font-size: 12px; }
.store-catalog .shop-toolbar {
  min-height: 66px;
  margin: 24px 0 0;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-block: 1px solid #dadddd;
  background: transparent;
}
.store-catalog .shop-category { gap: 18px; min-width: 0; }
.store-catalog .shop-category label { color: #626c76; font-size: 12px; }
.store-catalog .shop-category select {
  min-height: 44px;
  max-width: 100%;
  padding: 0 32px 0 14px;
  color: #222b3a;
  border: 1px solid #d9dddf;
  border-radius: 6px;
  background: var(--paper-soft);
  font-size: 13px;
}
.store-catalog .shop-sort { gap: 5px; }
.store-catalog .shop-sort button {
  min-height: 44px;
  padding: 0 18px;
  color: #606974;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.store-catalog .shop-sort button:hover { color: var(--navy); background: rgba(23, 59, 121, .06); }
.store-catalog .shop-sort button.is-active { color: #fff; background: var(--navy); }
.store-catalog .shop-status { margin-top: 24px; color: #646b72; }
.store-catalog .shop-status.is-panel { border-radius: 10px; }
.store-catalog .shop-status button { border-color: var(--navy); background: var(--navy); border-radius: 999px; }
.store-catalog .shop-grid { margin-top: 24px; }
.store-catalog .shop-product-page {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 38px clamp(14px, 1.8vw, 30px);
}
/* Products are the first screen, so they must not wait for scroll reveals. */
.store-catalog .shop-product-card { min-width: 0; animation: none; }
.store-catalog .shop-product-card__media {
  aspect-ratio: 4 / 5;
  border: 1px solid #dedfdc;
  border-radius: 10px;
  background: #eeefec;
}
.store-catalog .shop-product-card__media img {
  mix-blend-mode: multiply;
  transition: transform .5s var(--ease);
}
.store-catalog .shop-product-card__media:hover img { transform: scale(1.035); }
.store-catalog .shop-product-card__meta {
  min-height: 19px;
  margin-top: 12px;
  gap: 8px;
  color: #626b76;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
}
.store-catalog .shop-product-card__badge { color: var(--navy); }
.store-catalog .shop-product-card__title { margin-top: 4px; color: #252a2e; font-size: 14px; line-height: 1.5; }
.store-catalog .shop-product-card__colors { margin-top: 8px; }
.store-catalog .shop-product-card__footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.store-catalog .shop-product-card__price { color: var(--navy); font-size: 16px; font-weight: 600; letter-spacing: .01em; }
.store-catalog .shop-product-card__action {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.store-catalog .shop-product-card__action:hover { background: var(--navy-dark); }
.store-catalog .shop-pagination {
  justify-content: center;
  gap: 16px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid #dadddd;
}
.store-catalog .shop-pagination button {
  min-width: 88px;
  min-height: 44px;
  padding: 0 16px;
  color: var(--navy);
  border-color: #c6ccd4;
  border-radius: 999px;
  font-size: 12px;
}
.store-catalog .shop-pagination button:disabled { color: #82878b; border-color: #dedfdc; }
.store-catalog .shop-pagination button:not(:disabled):hover { background: #fff; }
.store-catalog .shop-skeleton__image { border-radius: 10px; }
.store-catalog .shop-dialog { border-radius: 16px; }
.store-catalog .shop-dialog__contact { background: var(--navy); border-radius: 999px; }
.store-catalog .shop-dialog__contact:hover { background: var(--navy-dark); }

/* A compact utility footer, without repeated factory / OEM promotional blocks. */
.site-footer { flex: 0 0 auto; color: #d8dbd7; background: var(--dark); }
.footer-inner {
  width: min(100%, calc(var(--container) + 128px));
  margin: 0 auto;
  padding: 28px clamp(22px, 3.2vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px 32px;
}
.footer-brand { flex: 0 0 168px; }
.footer-brand img { width: 168px; height: auto; filter: brightness(0) invert(1); }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; font-size: 12px; }
.footer-links a { color: #b9bdb8; }
.footer-links a:hover { color: #fff; }
.footer-copyright { margin: 0; color: #a0a69f; font-size: 10px; letter-spacing: .06em; }

@media (max-width: 1380px) {
  .desktop-nav { gap: 24px; }
  .nav-links { gap: 22px; }
  .store-catalog .shop-product-page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-panel { display: block; }
  .store-catalog .shop-product-page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .site-header { height: 68px; padding-inline: 18px; }
  .brand { width: 190px; }
  .store-catalog.shop-section { padding: 22px 18px 44px; }
  .store-breadcrumb { margin-bottom: 14px; }
  .store-catalog .shop-title { font-size: 32px; }
  .store-catalog .shop-count { font-size: 11px; }
  .store-catalog .shop-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 18px 0 0;
    padding: 10px 0;
    gap: 10px;
  }
  .store-catalog .shop-category, .store-catalog .shop-sort { width: 100%; }
  .store-catalog .shop-category { justify-content: space-between; }
  .store-catalog .shop-category select { min-width: 148px; }
  .store-catalog .shop-sort { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .store-catalog .shop-sort::-webkit-scrollbar { display: none; }
  .store-catalog .shop-sort button { flex: 1 0 auto; padding-inline: 12px; }
  .store-catalog .shop-grid { margin-top: 20px; }
  .store-catalog .shop-product-page { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .store-catalog .shop-product-card__media { border-radius: 8px; }
  .store-catalog .shop-product-card__meta { margin-top: 10px; font-size: 9px; }
  .store-catalog .shop-product-card__title { font-size: 13px; }
  .store-catalog .shop-product-card__price { font-size: 15px; }
  .store-catalog .shop-product-card__action { width: 40px; height: 40px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 20px; padding: 28px 18px; }
  .footer-brand { flex-basis: auto; }
  .footer-links { gap: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-catalog .shop-product-card__media img { transition: none; }
  .site-header, .menu-toggle span, .mobile-panel { transition: none; }
}
