/* S Gear full catalogue and product detail pages.
   Shared colour and typography tokens come from core-pages.css + theme.css. */

.sg-page {
  --sg-stage: #111117;
  --sg-stage-soft: #181820;
  --sg-gold-line: rgba(212, 160, 84, .28);
  background:
    radial-gradient(circle at 86% 8%, rgba(212, 160, 84, .08), transparent 28rem),
    var(--bg);
}

.sg-page main { min-height: 70vh; }
.sg-page a { text-underline-offset: .18em; }
.sg-page .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;
}

.sg-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 144px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.sg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.sg-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
}

.sg-eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.sg-hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(3.25rem, 7vw, 6.3rem);
  line-height: .96;
  letter-spacing: -.052em;
}

.sg-hero h1 em {
  display: block;
  color: var(--accent-light);
  font-weight: 400;
  font-style: normal;
}

.sg-hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.82;
}

.sg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.sg-hero-note {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: .78rem;
}

.sg-showcase {
  position: relative;
  min-height: 570px;
  isolation: isolate;
}

.sg-showcase::before {
  content: '';
  position: absolute;
  inset: 8% 0 4% 8%;
  z-index: -2;
  background:
    radial-gradient(circle at 48% 44%, rgba(212, 160, 84, .2), transparent 32%),
    linear-gradient(145deg, rgba(30, 30, 40, .9), rgba(14, 14, 18, .52));
  border: 1px solid var(--sg-gold-line);
  border-radius: 42px 8px 42px 8px;
  box-shadow: 0 38px 110px rgba(0, 0, 0, .46);
}

.sg-showcase::after {
  content: '';
  position: absolute;
  inset: calc(8% + 14px) 14px calc(4% + 14px) calc(8% + 14px);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 30px 5px 30px 5px;
}

.sg-showcase-item {
  position: absolute;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .45s cubic-bezier(.2, .75, .2, 1), filter .35s ease;
}

.sg-showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, .48));
}

.sg-showcase-item:nth-child(1) { inset: 0 37% 1% 16%; z-index: 3; }
.sg-showcase-item:nth-child(2) { inset: 12% 5% 8% 50%; z-index: 2; transform: rotate(4deg); }
.sg-showcase-item:nth-child(3) { inset: 23% 67% 4% 0; z-index: 1; transform: rotate(-5deg); opacity: .92; }
.sg-showcase-item:hover { transform: translateY(-9px) rotate(0); filter: brightness(1.08); }

.sg-showcase-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 4;
  max-width: 210px;
  padding: 12px 15px;
  color: var(--text-secondary);
  background: rgba(14, 14, 18, .76);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  font-size: .77rem;
  line-height: 1.5;
}

.sg-showcase-caption strong { display: block; color: var(--text); font-weight: 600; }

.sg-showcase-single {
  min-height: 600px;
  overflow: hidden;
  background: var(--sg-stage);
  border: 1px solid var(--sg-gold-line);
  border-radius: 42px 8px 42px 8px;
  box-shadow: 0 38px 110px rgba(0, 0, 0, .46);
}

.sg-showcase-single::before,
.sg-showcase-single::after { display: none; }
.sg-showcase-single > img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; object-position: 50% 50%; }
.sg-showcase-single .sg-showcase-caption {
  right: 24px;
  bottom: 24px;
  max-width: 260px;
  color: rgba(240, 236, 228, .76);
  background: rgba(14, 14, 18, .82);
}
.sg-showcase-single .sg-showcase-caption strong { color: #f0ece4; }

.sg-statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -1px;
  background: rgba(22, 22, 29, .94);
  border-bottom: 1px solid var(--border);
}

.sg-stat {
  min-height: 116px;
  padding: 27px 30px;
  border-right: 1px solid var(--border);
}

.sg-stat:last-child { border-right: 0; }
.sg-stat strong { display: block; color: var(--accent-light); font: 600 1.55rem/1.2 'Playfair Display', 'Noto Serif SC', serif; }
.sg-stat span { color: var(--text-secondary); font-size: .79rem; }

.sg-editorial {
  padding: 100px 0 88px;
}

.sg-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .55fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
}

.sg-section-head h2,
.sg-catalogue-head h2,
.sg-detail-section h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.7vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -.034em;
}

.sg-section-head p,
.sg-catalogue-head p {
  margin: 0;
  color: var(--text-secondary);
}

.sg-feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.sg-feature-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 480px;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 36%, rgba(212, 160, 84, .12), transparent 34%),
    var(--sg-stage-soft);
  border: 1px solid var(--border);
  border-radius: 26px 7px 26px 7px;
  text-decoration: none;
  transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}

.sg-feature-card:nth-child(1),
.sg-feature-card:nth-child(4),
.sg-feature-card:nth-child(5),
.sg-feature-card:nth-child(8) { grid-column: span 7; }
.sg-feature-card:nth-child(2),
.sg-feature-card:nth-child(3),
.sg-feature-card:nth-child(6),
.sg-feature-card:nth-child(7) { grid-column: span 5; }

.sg-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--sg-gold-line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.sg-feature-art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(340px, 32vw, 410px);
  padding: 22px;
  overflow: hidden;
}

.sg-feature-art::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 46%, rgba(10, 10, 14, .2));
}

.sg-feature-art img {
  position: absolute;
  inset: 22px;
  z-index: 1;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  object-fit: contain;
  transition: transform .48s cubic-bezier(.2, .75, .2, 1);
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .42));
}

.sg-feature-card:hover .sg-feature-art img { transform: scale(1.035); }

.sg-feature-copy {
  position: relative;
  z-index: 2;
  align-self: stretch;
  padding: 22px 28px 26px;
  background: linear-gradient(to bottom, rgba(10, 10, 14, .18), rgba(10, 10, 14, .78));
}

.sg-feature-brand {
  margin: 0 0 7px;
  color: var(--accent-light);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.sg-feature-copy h3 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.1; }
.sg-feature-copy p { margin: 8px 0 0; color: rgba(240, 236, 228, .72); font-size: .86rem; }

.sg-catalogue-section {
  padding: 96px 0 112px;
  background: var(--bg-card);
  border-block: 1px solid var(--border);
}

.sg-catalogue-head { max-width: 760px; margin-bottom: 38px; }
.sg-catalogue-head p { max-width: 660px; margin-top: 15px; }

.sg-toolbar-shell {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  padding: 14px;
  background: rgba(22, 22, 29, .9);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
}

.sg-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.sg-search { position: relative; }
.sg-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  transform: translateY(-50%);
  pointer-events: none;
}

.sg-search input,
.sg-select,
.sg-filter-toggle {
  width: 100%;
  min-height: 46px;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sg-search input { padding: 0 44px; }
.sg-search input::placeholder { color: var(--text-secondary); }

.sg-kind-pills { display: flex; gap: 6px; }
.sg-pill {
  min-height: 44px;
  padding: 0 17px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.sg-pill:hover { color: var(--text); }
.sg-pill[aria-pressed="true"] { color: var(--bg); background: var(--accent); }

.sg-filter-toggle {
  width: auto;
  padding: 0 17px;
  cursor: pointer;
}
.sg-filter-toggle:hover { border-color: var(--accent); }

.sg-filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
}
.sg-filter-panel[hidden] { display: none; }
.sg-filter-field { display: grid; gap: 6px; }
.sg-filter-field label { color: var(--text-secondary); font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sg-select { padding: 0 34px 0 12px; cursor: pointer; }

.sg-results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: .84rem;
}
.sg-results-row strong { color: var(--text); }
.sg-clear { color: var(--accent-light); background: none; border: 0; cursor: pointer; text-decoration: underline; }

.sg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sg-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px 7px 22px 7px;
  text-decoration: none;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.sg-card[hidden] { display: none; }

.sg-card:hover {
  transform: translateY(-5px);
  border-color: var(--sg-gold-line);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .24);
}

.sg-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 160, 84, .1), transparent 35%),
    linear-gradient(160deg, var(--sg-stage-soft), var(--sg-stage));
  border-bottom: 1px solid var(--border);
}

.sg-card-media::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .03);
  border-radius: 14px 3px 14px 3px;
  pointer-events: none;
}

.sg-card-media img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .4));
  transition: transform .45s cubic-bezier(.2, .75, .2, 1);
}
.sg-card:hover .sg-card-media img { transform: scale(1.035); }

.sg-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 10px;
  color: var(--accent-light);
  background: rgba(14, 14, 18, .78);
  border: 1px solid rgba(212, 160, 84, .24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sg-card-body { display: flex; flex: 1; flex-direction: column; padding: 21px 21px 19px; }
.sg-card-brand { margin: 0 0 7px; color: var(--accent); font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sg-card h3 { margin: 0; overflow-wrap: anywhere; font-size: 1.2rem; line-height: 1.25; }
.sg-card-color { margin: 7px 0 0; color: var(--text-secondary); font-size: .82rem; line-height: 1.45; }
.sg-card-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.sg-card-price { font-weight: 650; letter-spacing: -.01em; }
.sg-card-arrow { color: var(--accent-light); font-size: 1.15rem; transition: transform .25s ease; }
.sg-card:hover .sg-card-arrow { transform: translateX(4px); }

.sg-empty {
  margin-top: 24px;
  padding: 70px 24px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 22px;
}
.sg-empty[hidden] { display: none; }
.sg-empty h3 { font-size: 1.6rem; }
.sg-empty p { max-width: 520px; margin: 10px auto 0; color: var(--text-secondary); }

.sg-load-row { display: flex; justify-content: center; margin-top: 34px; }
.sg-load-row [hidden] { display: none; }

/* Product detail */
.sg-breadcrumbs {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  padding: 0;
  margin-bottom: 28px;
  color: var(--text-secondary);
  background: none;
  border: 0;
  backdrop-filter: none;
  transition: none;
  font-size: .78rem;
}
.sg-breadcrumbs a { text-decoration: none; }
.sg-breadcrumbs a:hover { color: var(--accent-light); }

.sg-product-hero { padding: 128px 0 90px; border-bottom: 1px solid var(--border); }
.sg-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr);
  align-items: start;
  gap: clamp(42px, 7vw, 92px);
}

.sg-product-stage {
  position: sticky;
  top: 108px;
  display: grid;
  place-items: center;
  min-height: min(72vh, 760px);
  padding: clamp(22px, 4vw, 52px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(212, 160, 84, .13), transparent 34%),
    linear-gradient(145deg, var(--sg-stage-soft), var(--sg-stage));
  border: 1px solid var(--border);
  border-radius: 34px 8px 34px 8px;
  box-shadow: var(--shadow);
}

.sg-product-stage::after {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, .035);
  border-radius: 23px 5px 23px 5px;
  pointer-events: none;
}

.sg-product-stage img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 660px;
  object-fit: contain;
  filter: drop-shadow(0 32px 34px rgba(0, 0, 0, .46));
}

.sg-product-thumbs {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sg-product-thumbs button {
  flex: 0 0 70px;
  width: 70px;
  height: 82px;
  padding: 5px;
  overflow: hidden;
  background: var(--sg-stage);
  border: 1px solid var(--border);
  border-radius: 11px 3px 11px 3px;
  cursor: pointer;
}
.sg-product-thumbs button:hover,
.sg-product-thumbs button[aria-current="true"] { border-color: var(--accent); }
.sg-product-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.sg-product-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sg-product-info h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(2.65rem, 5vw, 5.15rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.sg-product-finish { margin: 17px 0 0; color: var(--text-secondary); font-size: 1rem; }
.sg-product-lead { margin: 28px 0 0; color: var(--text-secondary); font-size: 1.03rem; line-height: 1.82; }

.sg-product-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 24px 0;
  border-block: 1px solid var(--border);
}

.sg-price-label { display: block; color: var(--text-secondary); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.sg-price-value { display: block; margin-top: 3px; font: 600 clamp(1.65rem, 3vw, 2.25rem)/1.1 'Playfair Display', 'Noto Serif SC', serif; }
.sg-id { color: var(--text-secondary); font-size: .73rem; }

.sg-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.sg-product-actions .btn { min-width: 180px; }
.sg-microcopy { margin: 13px 0 0; color: var(--text-secondary); font-size: .72rem; line-height: 1.55; }

.sg-condition {
  margin-top: 22px;
  padding: 16px 18px;
  background: rgba(212, 160, 84, .08);
  border: 1px solid var(--sg-gold-line);
  border-radius: 14px 4px 14px 4px;
}
.sg-condition strong { color: var(--accent-light); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.sg-condition p { margin: 6px 0 0; color: var(--text-secondary); font-size: .82rem; line-height: 1.6; }

.sg-highlight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.sg-highlight {
  min-height: 92px;
  padding: 16px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px 4px 14px 4px;
  font-size: .82rem;
  line-height: 1.55;
}
.sg-highlight::before { content: '◆'; display: block; margin-bottom: 6px; color: var(--accent); font-size: .58rem; }

.sg-detail-section { padding: 96px 0; }
.sg-detail-section.muted { background: var(--bg-card); border-block: 1px solid var(--border); }
.sg-detail-intro { max-width: 720px; margin: 16px 0 0; color: var(--text-secondary); }

.sg-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}
.sg-gallery figure {
  display: grid;
  place-items: center;
  min-height: 420px;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  background: var(--sg-stage);
  border: 1px solid var(--border);
  border-radius: 22px 6px 22px 6px;
}
.sg-gallery figure:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.sg-gallery img { max-height: 680px; object-fit: contain; filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .38)); }
.sg-gallery figcaption { align-self: end; width: 100%; margin-top: 14px; color: var(--text-secondary); font-size: .74rem; }

.sg-spec-layout {
  display: grid;
  grid-template-columns: minmax(230px, .48fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(36px, 7vw, 92px);
}
.sg-teacher-note {
  position: sticky;
  top: 108px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(212, 160, 84, .1), var(--bg));
  border: 1px solid var(--sg-gold-line);
  border-radius: 22px 6px 22px 6px;
}
.sg-teacher-note h2 { font-size: 2rem; }
.sg-teacher-note p { margin-top: 16px; color: var(--text-secondary); }
.sg-teacher-note .btn { margin-top: 22px; }

.sg-specs { margin: 0; border-top: 1px solid var(--border); }
.sg-spec-row {
  display: grid;
  grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.sg-spec-row dt { color: var(--text-secondary); font-size: .8rem; }
.sg-spec-row dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }

.sg-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.sg-related .sg-card-body { padding: 16px; }
.sg-related .sg-card-media { aspect-ratio: 4 / 4.8; }
.sg-related .sg-card h3 { font-size: 1rem; }

.sg-source-line { margin-top: 28px; color: var(--text-secondary); font-size: .72rem; }
.sg-source-line a { color: var(--accent-light); }

html[data-theme="light"] .sg-page {
  --sg-stage: #ece5da;
  --sg-stage-soft: #f7f2ea;
  --sg-gold-line: rgba(155, 93, 23, .25);
}
html[data-theme="light"] .sg-hero::before {
  background-image:
    linear-gradient(rgba(64, 47, 29, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 47, 29, .026) 1px, transparent 1px);
}
html[data-theme="light"] .sg-showcase::before { box-shadow: 0 34px 90px rgba(78, 56, 29, .15); }
html[data-theme="light"] .sg-showcase-caption { color: #6c6257; background: rgba(255, 253, 248, .84); }
html[data-theme="light"] .sg-showcase-caption strong { color: #211c17; }
html[data-theme="light"] .sg-statbar { background: rgba(255, 253, 248, .94); }
html[data-theme="light"] .sg-feature-art::after { background: linear-gradient(to top, rgba(26, 22, 17, .9), transparent 56%); }
html[data-theme="light"] .sg-feature-copy { color: #f7f3eb; }
html[data-theme="light"] .sg-feature-brand { color: #f1d79d; }
html[data-theme="light"] .sg-toolbar-shell { background: rgba(255, 253, 248, .9); box-shadow: 0 16px 38px rgba(78, 56, 29, .1); }
html[data-theme="light"] .sg-card { background: var(--bg-card); }

@media (max-width: 1050px) {
  .sg-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); gap: 28px; }
  .sg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .sg-hero { min-height: auto; padding: 126px 0 74px; }
  .sg-hero-grid { grid-template-columns: 1fr; }
  .sg-showcase { min-height: 480px; }
  .sg-showcase-single,
  .sg-showcase-single > img { min-height: 520px; }
  .sg-statbar { grid-template-columns: repeat(2, 1fr); }
  .sg-stat:nth-child(2) { border-right: 0; }
  .sg-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .sg-section-head { grid-template-columns: 1fr; align-items: start; }
  .sg-feature-card:nth-child(n) { grid-column: span 6; min-height: 420px; }
  .sg-toolbar { grid-template-columns: 1fr auto; }
  .sg-search { grid-column: 1 / -1; }
  .sg-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-product-grid { grid-template-columns: 1fr; }
  .sg-product-stage { position: relative; top: auto; min-height: 560px; }
  .sg-spec-layout { grid-template-columns: 1fr; }
  .sg-teacher-note { position: relative; top: auto; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .sg-hero { padding-top: 112px; }
  .sg-hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .sg-showcase { min-height: 390px; margin-top: 8px; }
  .sg-showcase-single,
  .sg-showcase-single > img { min-height: 430px; }
  .sg-showcase::before { inset-left: 4%; border-radius: 28px 6px 28px 6px; }
  .sg-showcase-item:nth-child(1) { inset: 0 30% 2% 20%; }
  .sg-showcase-item:nth-child(2) { inset: 14% 1% 8% 54%; }
  .sg-showcase-item:nth-child(3) { inset: 28% 70% 7% 0; }
  .sg-showcase-caption { right: 16px; bottom: 18px; max-width: 175px; padding: 9px 11px; font-size: .68rem; }
  .sg-stat { min-height: 94px; padding: 20px 16px; }
  .sg-stat strong { font-size: 1.3rem; }
  .sg-editorial, .sg-catalogue-section, .sg-detail-section { padding-block: 72px; }
  .sg-feature-grid { display: flex; gap: 14px; margin-right: -14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 14px 12px 0; }
  .sg-feature-card:nth-child(n) { flex: 0 0 82vw; min-height: 430px; scroll-snap-align: start; }
  .sg-toolbar-shell { margin-inline: -4px; padding: 10px; border-radius: 14px; }
  .sg-toolbar { display: block; }
  .sg-kind-pills { margin-top: 9px; overflow-x: auto; }
  .sg-filter-toggle { width: 100%; margin-top: 9px; }
  .sg-filter-panel { grid-template-columns: 1fr; }
  .sg-grid { grid-template-columns: 1fr; gap: 14px; }
  .sg-card { border-radius: 15px 4px 15px 4px; }
  .sg-card-media { aspect-ratio: 3 / 4.2; }
  .sg-card-media::after { inset: 8px; }
  .sg-card-media img { width: 92%; height: 92%; }
  .sg-card-badge { top: 9px; left: 9px; padding: 5px 7px; font-size: .55rem; }
  .sg-card-body { padding: 13px 12px 12px; }
  .sg-card-brand { margin-bottom: 5px; font-size: .57rem; }
  .sg-card h3 { font-size: 1.12rem; line-height: 1.24; }
  .sg-card-color { margin-top: 5px; font-size: .7rem; }
  .sg-card-foot { padding-top: 14px; align-items: center; }
  .sg-card-price { font-size: .9rem; }
  .sg-product-hero { padding: 104px 0 70px; }
  .sg-product-stage { min-height: 470px; padding: 24px; border-radius: 24px 6px 24px 6px; }
  .sg-product-info h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .sg-product-price-row { align-items: start; flex-direction: column; gap: 12px; }
  .sg-product-actions { display: grid; }
  .sg-product-actions .btn { width: 100%; }
  .sg-highlight-list { grid-template-columns: 1fr; }
  .sg-gallery { grid-template-columns: 1fr; }
  .sg-gallery figure, .sg-gallery figure:first-child:nth-last-child(odd) { grid-column: auto; min-height: 360px; padding: 16px; }
  .sg-spec-row { grid-template-columns: 1fr; gap: 5px; }
  .sg-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sg-related .sg-card h3 { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-showcase-item,
  .sg-feature-card,
  .sg-feature-art img,
  .sg-card,
  .sg-card-media img,
  .sg-card-arrow { transition-duration: .01ms !important; }
}
