/* =========================================================
   MG · multi-product site: catalog, product detail, offers
   (loaded after styles.css; uses its tokens)
   ========================================================= */
.header-standard { transition: background .3s; }
body:not(.has-overlay-header) .header-standard { position: relative; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.nav a[aria-current="page"] { opacity: 1; box-shadow: 0 1px 0 var(--red); }
.nav-compact { gap: 24px; }
.menu-toggle { display: none; width: 42px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--white); transition: transform .3s var(--ease); }
.menu-toggle span:first-child { top: 14px; }
.menu-toggle span:last-child { top: 22px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; padding: 12px var(--gutter) 24px; margin-top: 12px; background: rgba(0,0,0,.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-size: 1.8rem; }

.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--light); }
.hero-cta .btn-ghost { border-color: transparent; }

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.badge-offer { background: var(--red); color: var(--white); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.page-hero { padding-block: clamp(56px, 8vw, 104px) 0; }
.page-hero .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.page-404 { padding-bottom: 120px; }
.section-more { margin-top: 32px; }
.ribbon-4 { grid-template-columns: repeat(4, 1fr); }
.ribbon-3 { grid-template-columns: repeat(3, 1fr); }
.ribbon-2 { grid-template-columns: repeat(2, 1fr); }
.ribbon-num small { margin-left: 2px; }

/* Line illustrations (until official photos arrive) */
.visual-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--metal);
  background: radial-gradient(90% 80% at 50% 30%, #1c1919 0%, #0b0a0a 70%); }
.il { width: 78%; max-width: 420px; height: auto; overflow: visible; }
.il .il-body { fill: rgba(255,255,255,.035); stroke: var(--light); }
.il .il-led { fill: var(--red); stroke: none; filter: drop-shadow(0 0 5px var(--red)); }

/* Product cards */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.p-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.card-row .p-card { flex: 0 0 auto; width: min(80vw, 330px); scroll-snap-align: start; }
.p-card:hover { border-color: rgba(255,255,255,.3); transform: translateY(-3px); }
.p-card[hidden] { display: none; }
.p-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b0a0a; }
.p-card-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.p-card:hover .p-card-media > img { transform: scale(1.04); }
.p-card-media .badge { position: absolute; left: 14px; top: 14px; }
.p-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.p-card-cat { margin: 0; font-stretch: 125%; font-weight: 600; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.p-card-name { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: 1.02; }
.p-card-headline { margin: 0; font-size: 14px; color: var(--text-2); }
.p-card-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.p-card-chips li { font-family: var(--f-mono); font-size: 11.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--light); }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.p-card-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.p-card:hover .p-card-arrow { background: var(--red); border-color: var(--red); }
.price { font-weight: 600; font-size: 17px; }
.price small { font-weight: 400; font-size: 12px; color: var(--text-2); margin-right: 2px; }
.price s { font-weight: 400; font-size: 13px; color: var(--metal); margin-left: 6px; }
.price-quote { font-weight: 500; font-size: 14px; color: var(--light); }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.cat-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--ink); border: 1px solid var(--line); transition: border-color .3s; }
.cat-card:hover { border-color: var(--red); }
.cat-visual { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--metal); background: radial-gradient(90% 90% at 50% 20%, #1c1919 0%, #0b0a0a 70%); }
.cat-visual img { width: 100%; height: 100%; object-fit: cover; }
.cat-visual .il { width: 62%; }
.cat-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-name { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; }
.cat-desc { margin: 0; font-size: 14px; color: var(--text-2); }
.cat-meta { margin: auto 0 0; padding-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--light); }

/* Promotions */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.promo-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 280px; display: flex;
  background: radial-gradient(120% 120% at 100% 100%, var(--red-dark) 0%, #3a0505 40%, #0c0b0b 80%); border: 1px solid rgba(198,22,23,.4); }
.promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.promo-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(24px, 3vw, 36px); width: 100%; }
.promo-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; max-width: 16ch; }
.promo-text { margin: 0; color: var(--light); max-width: 42ch; }
.promo-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; flex-wrap: wrap; }
.promo-until { font-family: var(--f-mono); font-size: 12px; color: var(--light); }
.offer-block { margin-bottom: 72px; }
.offer-products-label { margin: 28px 0 16px; }
.empty-note { color: var(--text-2); max-width: 60ch; }

/* Catalog filters */
.catalog { padding-bottom: clamp(80px, 10vw, 140px); }
.filters { display: grid; gap: 18px; margin-bottom: 32px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--light); transition: background .25s, border-color .25s, color .25s; }
.chip:hover { border-color: rgba(255,255,255,.35); }
.chip[aria-checked="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.select-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.select-wrap select { height: 38px; padding: 0 30px 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background-color: var(--black); color: var(--white); font: inherit; font-size: 14px;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--light) 50%), linear-gradient(135deg, var(--light) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--light); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.results { margin: 0 0 0 auto; font-family: var(--f-mono); font-size: 13px; color: var(--text-2); }
.empty { padding: 60px 0; text-align: center; color: var(--text-2); }
.empty[hidden] { display: none; }

/* Product detail */
.pd-hero { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px); }
.pd-hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.pd-copy { min-width: 0; }
.pd-copy .label a { text-decoration: none; }
.pd-title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 6.4vw, 6rem); line-height: .95; letter-spacing: -.01em; }
.pd-headline { margin: 14px 0 0; font-stretch: 112%; font-weight: 500; font-size: clamp(1rem, 1.3vw, 1.15rem); letter-spacing: .02em; text-transform: uppercase; color: var(--light); }
.pd-desc { margin: 18px 0 0; color: var(--text-2); max-width: 52ch; }
.pd-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.pd-badges li { font-family: var(--f-mono); font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--light); }
.pd-badges li.is-offer { background: var(--red); border-color: var(--red); color: var(--white); font-family: var(--f-body); font-weight: 600; }
.pd-variants { margin-top: 28px; }
.pd-buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 14px 14px 14px 22px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line); }
.pd-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-price .price { font-size: 22px; }
.stock { font-size: 12px; font-family: var(--f-mono); color: var(--text-2); }
.stock-out_of_stock { color: #ff7a7a; }
.pd-warranty { margin: 18px 0 0; font-size: 14px; color: var(--light); }
.pd-warranty .label-sm { display: inline; margin-right: 8px; }
.pd-gallery { display: grid; gap: 12px; min-width: 0; }
.pd-main { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b0a0a; }
.pd-main > img { width: 100%; height: 100%; object-fit: cover; }
.pd-main-illus { display: grid; place-items: center; color: var(--metal); background: radial-gradient(80% 80% at 50% 35%, #1f1b1b 0%, #0a0909 70%); }
.pd-main-illus .il { width: 82%; }
.pd-thumbs { display: flex; gap: 10px; overflow-x: auto; }
.pd-thumb { flex: 0 0 auto; width: 84px; aspect-ratio: 1; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: none; cursor: pointer; }
.pd-thumb[aria-pressed="true"] { border-color: var(--red); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px; background: var(--ink); border: 1px solid var(--line); font-size: 15px; }
.feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); flex: 0 0 auto; }
.highlights { margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.highlights div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.highlights dt { color: var(--text-2); font-size: 14px; }
.highlights dd { margin: 0; font-family: var(--f-mono); font-size: 13.5px; text-align: right; }
.season-caption { margin: 0; justify-self: end; font-family: var(--f-mono); font-size: 14px; color: var(--text-2); }

.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.comp-card { padding: 26px; border-radius: var(--radius); background: var(--ink); border: 1px solid var(--line); }
.comp-card h3 { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1; }
.comp-card ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 15px; display: grid; gap: 6px; }
.benefits { margin-top: 64px; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.benefit h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.benefit p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.applications { margin-top: 48px; }

.specs-current { margin-bottom: 18px; color: var(--red); }
.specs-group { margin-bottom: 28px; }
.specs-group-title { margin: 0 0 6px; font-stretch: 125%; font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.compare { margin-top: 32px; border-top: 1px solid var(--line); }
.compare summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 10px; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::before { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-weight: 400; }
.compare[open] summary::before { content: "\2013"; }
.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { font-family: var(--f-mono); font-size: 12.5px; color: #ff5a5a; white-space: nowrap; }
.compare-table tbody th { font-weight: 400; color: var(--text-2); }
.compare-table td { font-family: var(--f-mono); font-size: 13px; }
.docs { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.doc-link { font-size: 14px; color: var(--white); }
.quote-for { margin: 20px 0 0; font-family: var(--f-mono); font-size: 13px; color: var(--light); }
.quote-for span { color: var(--text-2); }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; }
.footer-contact a { color: var(--light); text-decoration: none; }
.footer-contact a:hover { color: var(--white); }

@media (max-width: 1080px) {
  .ribbon-4 { grid-template-columns: repeat(2, 1fr); }
  .ribbon-4 li:nth-child(3) { border-left: 0; padding-left: 0; }
  .ribbon-4 li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .header-cta { display: none; }
  .nav-compact { display: none; }
  .pd-hero-grid { grid-template-columns: 1fr; }
  .pd-gallery { order: -1; }
}
@media (max-width: 600px) {
  .pd-buy { border-radius: 20px; }
  .results { margin-left: 0; width: 100%; }
  .ribbon-3 { grid-template-columns: 1fr 1fr; }
  .season-caption { justify-self: start; }
  .ribbon-4 li:nth-child(4) { border-left: 1px solid var(--line); }
}
