:root {
  --ink: #17202a;
  --muted: #4d5b68;
  --line: #d5e0e8;
  --paper: #f4f7f9;
  --white: #fff;
  --blue: #0a5893;
  --blue-d: #08456f;
  --red: #c5162c;
  --sand: #f6e27a;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "Noto Naskh Arabic", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-d); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

.skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }

.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 0.92rem;
  padding-top: env(safe-area-inset-top);
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.topbar .wrap, .header .wrap, .footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar .wrap { min-height: 2.5rem; flex-wrap: wrap; padding-block: 0.35rem; }
.bdi, .ltr { unicode-bidi: isolate; direction: ltr; }

.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header .wrap { min-height: 4.5rem; flex-wrap: wrap; padding-block: 0.45rem; }
.header .langs { justify-content: flex-end; max-width: 36rem; }
.langpick { flex: 1 1 auto; display: flex; justify-content: flex-end; align-items: center; min-width: 0; }
.langpick-fold { display: none; }
.langpick > nav { max-width: 36rem; }
.langpick-fold > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  white-space: nowrap;
  padding: 0.35rem 0.1rem;
}
.langpick-fold > summary::-webkit-details-marker { display: none; }
.langpick-fold > summary::after {
  content: "";
  display: inline-block;
  margin-inline-start: 0.35rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand svg { width: 2.25rem; height: 2.25rem; flex: none; }
.nav-main {
  flex: 1 0 100%;
  width: 100%;
  display: flex;
  gap: 0.75rem 1.15rem;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 0.35rem;
}
.nav-main a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: 0.95rem; }
.nav-main a[aria-current="page"] { color: var(--blue); }
.drawer { display: none; }
.brand { margin-inline-end: auto; }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; min-width: 0; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cart-btn svg { width: 1.15rem; height: 1.15rem; }
.cart-count {
  background: var(--sand);
  color: var(--ink);
  border-radius: 999px;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  padding-inline: 0.3rem;
}
.cart-count[hidden] { display: none; }

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}
.langs a {
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.langs a[aria-current="true"] {
  color: var(--blue);
  font-weight: 700;
  border-bottom-color: var(--blue);
}

.hero { background: linear-gradient(180deg, #e5f1f8 0%, #f7f6f2 100%); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding-block: 3rem 2.5rem;
}
h1, h2, p, li, a, td, th { overflow-wrap: break-word; }
h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.2; margin: 0 0 0.8rem; letter-spacing: -0.02em; }
.lead { font-size: 1.12rem; margin-top: 0; }
.note {
  background: var(--white);
  border-inline-start: 4px solid var(--blue);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  border-radius: 4px;
}
.btn:hover { background: var(--blue-d); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue-d); border: 1px solid var(--blue); }
.btn.ghost:hover { background: var(--white); }

.pail { justify-self: center; width: min(100%, 280px); height: auto; }
.hero-photo, .product-photo { width: min(100%, 28rem); height: auto; background: #fff; border-radius: 12px; justify-self: center; }
.product-media.photo { background: #fff; }
.photo-row, .photo-single { display: grid; gap: 0.75rem; margin: 1rem 0 1.25rem; }
.photo-row { grid-template-columns: 0.8fr 1.2fr; }
.photo-row img, .photo-single img { width: 100%; height: 16rem; object-fit: cover; border-radius: 8px; background: #111; }
.photo-row img:first-child { object-fit: contain; }
.photo-single img { height: auto; max-height: 28rem; object-fit: cover; }
.photo-row figcaption, .photo-single figcaption { color: var(--muted); font-size: 0.92rem; }
.substrates, .band, .section { padding-block: 1.5rem 2.25rem; }
.section h2, .band h2 { font-size: 1.45rem; margin: 0 0 0.6rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.grid.codes { grid-template-columns: repeat(5, 1fr); }
.grid.choices { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  min-height: 100%;
}
a.card:hover { border-color: var(--blue); }
.card strong { display: block; color: var(--blue-d); }
.card span, .card p { color: var(--muted); font-size: 0.95rem; }
.kicker {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.crumbs { font-size: 0.88rem; color: var(--muted); margin: 0 0 0.8rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 1rem 0 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 0.35rem; color: #8aa; }

.prose { max-width: 46rem; }
.prose.wide { max-width: 52rem; }
.prose h2 { font-size: 1.25rem; margin: 1.6rem 0 0.35rem; }
.page { padding-bottom: 2.5rem; }
.related { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

.contact-band { background: var(--blue-d); color: #fff; }
.contact-band a { color: #fff; }
.contact-band form a { color: var(--blue-d); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.5rem; align-items: start; }
label { display: block; font-weight: 700; margin-top: 0.7rem; }
input, textarea, select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
button.btn { border: 0; cursor: pointer; font: inherit; }
.table-wrap { overflow-x: auto; margin: 0.4rem 0 1rem; -webkit-overflow-scrolling: touch; }
table.spec { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.98rem; min-width: 36rem; }
table.spec caption { caption-side: top; text-align: start; font-weight: 700; padding: 0 0 0.45rem; }
table.spec th, table.spec td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: start; vertical-align: top; }
table.spec thead th { background: #e5f1f8; }
table.spec tbody th[scope="row"] { width: 28%; background: #f7fbfd; font-weight: 650; }
.quote-box { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--red); padding: 0.9rem 1rem; margin-top: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; list-style: none; margin: 0.7rem 0; padding: 0; }
textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.check { display: flex; gap: 0.5rem; align-items: flex-start; }
.form-error { color: #9d1c2f; }
form { background: var(--white); color: var(--ink); padding: 1rem; border-radius: 10px; }
.form-hint { color: var(--muted); font-size: 0.92rem; }
.form-error { color: var(--red); font-weight: 700; }
label.check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 650; }
label.check input { width: auto; margin-top: 0.35rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body { padding-bottom: 3.75rem; }
html.consent-set body { padding-bottom: 0; }
.tabbar { display: none; }
html.consent-set .consent { display: none; }
.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  background: #101820;
  color: #fff;
  padding-block: 0.4rem;
}
.consent .wrap { display: flex; gap: 0.65rem; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
.consent .wrap > p:first-child { flex: 1 1 auto; min-width: 0; font-size: 0.84rem; line-height: 1.3; }
.consent p { margin: 0; }
.consent a { color: #fff; font-weight: 700; white-space: nowrap; }
.consent-actions { display: flex; gap: 0.4rem; flex: none; }
.consent .btn { background: var(--sand); color: #17202a; padding: 0.4rem 0.7rem; }
.consent .btn.ghost { color: #fff; border-color: #fff; background: transparent; }
button.linkish { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.footer { background: #101820; color: #d5dde3; padding-block: 1.5rem 2rem; font-size: 0.92rem; }
.footer a { color: #fff; }
.footer .wrap { align-items: flex-start; flex-direction: column; }
.footer p { margin: 0.2rem 0; }

@media (max-width: 980px) {
  .hero-grid, .contact-grid, .photo-row { grid-template-columns: 1fr; }
  .photo-row img { height: 12rem; }
  .grid, .grid.codes, .grid.choices, .grid.four { grid-template-columns: 1fr 1fr; }
  .header .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    padding-block: 0.45rem;
  }
  .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .header .langpick > nav { display: none; }
  .header .langpick-fold { display: block; }
  .header .langpick-fold > summary { min-height: 2.75rem; display: flex; align-items: center; }
  .header .langpick-fold > nav { display: none; }
  .header .langpick-fold[open] > nav {
    display: block;
    position: absolute;
    inset-inline-end: 0;
    margin-top: 0.15rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    z-index: 25;
    min-width: 11rem;
    max-height: min(60dvh, 22rem);
    overflow: auto;
  }
  .header .langpick { position: relative; }
  .header .langpick-fold[open] .langs {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    max-width: none;
    padding: 0.35rem 0.75rem;
  }
  .header .langpick-fold[open] .langs a { white-space: nowrap; display: flex; align-items: center; min-height: 2.75rem; }
  .drawer { display: block; grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .drawer > summary {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--blue);
    list-style: none;
  }
  .drawer > summary::-webkit-details-marker { display: none; }
  .drawer > summary::before {
    content: "";
    width: 1rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    margin-inline-end: 0.55rem;
  }
  .nav-main { display: none; grid-column: 1 / -1; grid-row: 3; }
  .drawer[open] ~ .nav-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 14rem - env(safe-area-inset-bottom));
    overflow: auto;
    padding-bottom: 0.35rem;
  }
  .drawer[open] ~ .nav-main a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .tabbar {
    display: flex;
    position: fixed;
    z-index: 35;
    inset-inline: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    padding: 0.3rem 0.15rem 0.4rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
  }
  .tabbar a { position: relative; }
  .tabbar a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  .tabbar svg { width: 1.35rem; height: 1.35rem; flex: none; }
  .tabbar .cart-count {
    position: absolute;
    top: 0.2rem;
    inset-inline-end: 0.15rem;
    min-width: 1rem;
    height: 1rem;
    font-size: 0.62rem;
    padding-inline: 0.2rem;
  }
  .find {
    position: sticky;
    z-index: 9;
    background: var(--paper);
    margin: 0.35rem 0 0.15rem;
    padding-bottom: 0.35rem;
  }
  .find label { margin-top: 0; }
  body { padding-bottom: calc(7.6rem + env(safe-area-inset-bottom)); }
  html.consent-set body { padding-bottom: calc(4.15rem + env(safe-area-inset-bottom)); }
  .consent { bottom: calc(3.55rem + env(safe-area-inset-bottom)); z-index: 45; }
  .consent .wrap { flex-wrap: wrap; align-items: stretch; }
  .consent .wrap > p:first-child { white-space: normal; }
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1 1 0; text-align: center; min-height: 2.75rem; }
  input, textarea, select { font-size: 1rem; scroll-margin-bottom: 1.5rem; }
  button.btn, a.btn { min-height: 2.75rem; }
  body:has(input:focus, textarea:focus, select:focus) .tabbar,
  body.typing .tabbar,
  html.cart-open .tabbar { display: none; }
  body:has(input:focus, textarea:focus, select:focus),
  body.typing { padding-bottom: 1.25rem; }
}
@media (max-width: 640px) {
  .grid, .grid.codes, .grid.choices, .grid.four { grid-template-columns: 1fr; }
  .topbar .wrap { font-size: 0.85rem; }
  .topbar .wrap > span:last-child { display: none; }
  .hero-grid { padding-block: 1rem 0.75rem; gap: 0.75rem; }
  .hero-photo { width: min(100%, 7rem); }
  .consent .wrap > p:first-child { font-size: 0.78rem; }
  .actions { flex-direction: column; }
  .actions .btn { text-align: center; }
  .related { flex-direction: column; }
  .related .btn { text-align: center; }
  .section, .substrates, .band { padding-block: 1rem 1.35rem; }
  .wrap { width: min(var(--max), calc(100% - 1.25rem)); }
}
@media (max-width: 380px) {
  .brand span { font-size: 0.95rem; }
  .tabbar a { font-size: 0.62rem; }
  h1 { font-size: 1.55rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero-grid { padding-block: 0.6rem; }
  .pail { width: 6.5rem; }
  .tabbar a { min-height: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .tabbar, .consent, .topbar, .drawer, .cart-drawer, .cart-btn { display: none !important; }
  body, html.consent-set body { padding-bottom: 0 !important; }
}

.catalog-group { margin-top: 1.75rem; }
.catalog-group > h2 { margin: 0; font-size: 1.25rem; }
.catalog-group > h2 a { color: inherit; text-decoration: none; }
.catalog-group[hidden] { display: none; }
.catalog-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.catalog-gallery img { width: 100%; height: auto; border-radius: 8px; }
.catalogue-fold { margin: 0.35rem 0 1rem; }
.catalogue-fold > summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.catalog-item[hidden] { display: none; }
.catalog-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  min-width: 0;
}
.product-card { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-card h2, .product-card h3 { margin: 0.55rem 0 0.15rem; font-size: 1.15rem; color: var(--ink); }
.product-card p { margin: 0.15rem 0; }
.catalogue-photo { margin: 1rem 0; }
.catalogue-photo img, .prose img { max-width: 100%; height: auto; border-radius: 8px; }
.product-media {
  background: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  min-height: 12rem;
}
.catalog .product-photo { width: min(100%, 11.5rem); border-radius: 0; }
.product-hero .product-photo { width: min(100%, 22rem); }
.price-line { font-weight: 750; margin: 0.35rem 0; }
.pack { color: var(--muted); margin: 0.15rem 0 0.55rem; }
.catalog-actions { display: grid; gap: 0.45rem; margin-top: auto; padding-top: 0.75rem; }
.catalog-actions .btn { width: 100%; margin-top: 0; box-sizing: border-box; text-align: center; }
.product-media:empty { display: none; min-height: 0; }
.collection-count { color: var(--muted); margin: 0 0 0.35rem; }
.shop-head h1 { margin-bottom: 0.2rem; }
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.product-buy .price-line { font-size: 1.2rem; }
.eyebrow { color: var(--muted); font-weight: 700; margin: 0 0 0.35rem; }
form.buy { background: transparent; padding: 0; }
.buy-btn { width: 100%; text-align: center; margin-top: 0.85rem; }
.added { color: var(--blue-d); font-weight: 700; min-height: 1.4rem; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  max-width: 100%;
}
.qty button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}
.qty input {
  width: 3.4rem;
  margin: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  padding: 0.4rem 0.2rem;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}
.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  position: sticky;
  top: 5.5rem;
}
.summary h2 { margin: 0 0 0.6rem; font-size: 1.2rem; }
.cart-list, .cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.cart-line p { margin: 0.15rem 0; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.text-link, .text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue-d);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.cart-drawer[hidden] { display: none; }
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  border: 0;
  padding: 0;
  background: rgba(16, 24, 32, 0.45);
}
.cart-panel {
  position: fixed;
  z-index: 71;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: min(24rem, 100%);
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(16, 24, 32, 0.18);
}
.cart-head, .cart-foot { padding: 1rem 1.1rem; }
.cart-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.25rem; }
.cart-x {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.cart-meta { margin: 0; padding: 0.65rem 1.1rem 0; color: var(--muted); }
#cart-lines { flex: 1; overflow: auto; padding: 0 1.1rem 1rem; }
.cart-foot { border-top: 1px solid var(--line); padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.cart-foot .btn { display: block; text-align: center; }
.cart-foot .text-link { display: block; text-align: center; margin-top: 0.75rem; }
html.cart-open, html.cart-open body { overflow: hidden; }
.video-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.video-jump a { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem; background: #fff; }
.video-group { margin: 2rem 0; }
.video-folder { margin: 0 0 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.video-folder summary { cursor: pointer; font-weight: 750; padding: 0.85rem 1rem; }
.video-folder summary span { color: var(--muted); font-weight: 650; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.75rem;
  padding: 0 1rem 1rem;
}
.video-grid figure { margin: 0; }
.video-grid video { width: 100%; height: auto; max-height: 24rem; background: #111; border-radius: 8px; }
.video-grid figcaption { margin-top: 0.35rem; font-size: 0.92rem; }
@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr 1fr; }
  .product-hero, .checkout-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .catalog, .catalog-gallery { grid-template-columns: 1fr; }
  .cart-panel { width: 100%; }
  table.spec { min-width: 0; }
  form .btn, .quote-box .btn { width: 100%; box-sizing: border-box; text-align: center; }
  .cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .cart-btn { padding-inline: 0.65rem; }
}
