/* FSE Global storefront visual system — shared by every warranty page. */
@font-face {
  font-family: "MADE Outer Sans";
  src: url("../../font.php?v=20260803") format("truetype"),
       url("../fonts/made-outer-sans.ttf?v=20260803") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --shop-bg: #171717;
  --shop-bg-deep: #111111;
  --shop-surface: #1d1d1d;
  --shop-surface-2: #222222;
  --shop-surface-3: #2b2b2b;
  --shop-text: #ffffff;
  --shop-muted: #b9b9b9;
  --shop-faint: #7d7d7d;
  --shop-line: rgba(255, 255, 255, .11);
  --shop-red: #ff1212;
  --shop-red-hover: #e90707;
  --shop-card-radius: clamp(10px, 1.05vw, 20px);
  --shop-pill: 60px;
  --shop-shadow: 0 26px 70px rgba(0, 0, 0, .22);
  --animation-nav: .5s cubic-bezier(.6, 0, .4, 1);
  --animation-primary: .5s cubic-bezier(.3, 1, .3, 1);
  --animation-smooth: .7s cubic-bezier(.7, 0, .3, 1);
  --animation-fast: .3s cubic-bezier(.7, 0, .3, 1);
}

* { scrollbar-color: #525252 var(--shop-bg); }
html { background: var(--shop-bg); }
body {
  color: var(--shop-text);
  background: var(--shop-bg);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.25;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .heading, .btn, button, .data-table a, .brand, .stat-card strong {
  font-family: "MADE Outer Sans", Helvetica, Arial, sans-serif !important;
  font-weight: 400;
  letter-spacing: -.01em;
}
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: var(--shop-red); }
.page-noise { opacity: .018; mix-blend-mode: screen; }
.page-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 3000; pointer-events: none; }
.page-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #b90000, var(--shop-red), #ff7777); box-shadow: 0 0 14px rgba(255, 18, 18, .65); transform: scaleX(0); transform-origin: left center; will-change: transform; }
.container { width: min(calc(100% - clamp(48px, 8vw, 144px)), 1560px); max-width: none; }
.container.narrow { max-width: 980px; }

/* Warranty workflow controls */
.roll-metrics .form-control[readonly] { color: #111; background: #f2f2f3; font-weight: 700; }
.qr-reader { max-width: 520px; margin: 16px auto 0; overflow: hidden; color: #111; background: #fff; border-radius: 12px; }
.qr-reader[hidden] { display: none; }
.qr-reader video { border-radius: 10px; }
.photo-slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 15px; }
.photo-slot { min-width: 0; padding: 14px; background: #f7f7f8; border: 1px solid #dedee2; border-radius: 10px; }
.photo-slot > span { display: block; margin-bottom: 10px; color: #111; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.photo-slot .upload-zone { min-height: 132px; display: grid; place-content: center; padding: 22px 14px; }
.photo-slot .upload-zone small { display: block; margin-top: 5px; color: #777; font-size: 10px; }
.photo-slot .preview-grid { grid-template-columns: 1fr; margin-top: 10px; }
.photo-slot .preview-grid:empty { display: none; }
.photo-slot .preview-grid img { max-height: 220px; border-radius: 7px; }
.qr-label { width: min(100%, 500px); margin-inline: auto; padding: 36px; color: #111; background: #fff; border: 1px solid #dadade; text-align: center; }
.qr-label__product { margin: 24px 0 8px; color: #111; font: 400 clamp(24px, 3vw, 38px)/1.1 "MADE Outer Sans", Helvetica, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.qr-label__code { width: min(100%, 330px); margin: 22px auto; }
.qr-label__code svg { display: block; width: 100%; height: auto; }
.qr-label__roll { margin: 0; font-size: clamp(27px, 4vw, 42px); overflow-wrap: anywhere; }
.qr-label__batch { margin: 7px 0 20px; color: #666; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.qr-label__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0 16px; border: 1px solid #ddd; }
.qr-label__metrics > div { min-width: 0; padding: 12px 7px; border-right: 1px solid #ddd; }
.qr-label__metrics > div:last-child { border-right: 0; }
.qr-label__metrics span { display: block; color: #777; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.qr-label__metrics strong { display: block; margin-top: 5px; color: #111; font-size: 16px; overflow-wrap: anywhere; }
.roll-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.roll-summary > div { padding: 18px; background: #f4f4f5; border-left: 3px solid var(--shop-red); }
.roll-summary span { display: block; color: #777; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.roll-summary strong { display: block; margin-top: 7px; color: #111; font-size: 22px; }
.roll-list-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.qr-sheet-actions { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 22px; }
.qr-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.qr-sheet-label { min-width: 0; padding: 28px; color: #111; background: #fff; border: 1px solid #d9d9dd; text-align: center; break-inside: avoid; }
.qr-sheet-label > img { width: 120px; height: auto; }
.qr-sheet-label h2 { margin: 20px 0 8px; color: #111; font-size: 25px; letter-spacing: .07em; text-transform: uppercase; }
.qr-sheet-label h3 { margin: 14px 0 0; color: #111; font-size: 21px; overflow-wrap: anywhere; }
.qr-sheet-label > p { margin: 6px 0 0; color: #666; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.qr-sheet-label__code { width: min(100%, 245px); margin: 16px auto; }
.qr-sheet-label__code svg { display: block; width: 100%; height: auto; }

/* Storefront announcement and navigation */
.shop-topbar {
  height: 56px;
  padding: 0 48px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
  color: #f3f3f3;
  background: linear-gradient(100deg, #0b0b0b, #181818 48%, #101010);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 1100;
}
.shop-topbar::before { content: ""; position: absolute; width: 430px; height: 160px; left: -110px; top: -120px; z-index: -1; background: radial-gradient(circle, rgba(255, 18, 18, .22), transparent 68%); pointer-events: none; }
.shop-topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 18, 18, .7), transparent); transform: translateX(-100%); animation: topbar-scan 8s ease-in-out infinite; pointer-events: none; }
.shop-topbar a { color: inherit; text-decoration: none; }
.shop-topbar__trust { display: flex; align-items: center; gap: 10px; color: #bdbdbd; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
.shop-topbar__pulse { width: 7px; height: 7px; background: var(--shop-red); border-radius: 50%; box-shadow: 0 0 0 0 rgba(255, 18, 18, .5); animation: topbar-pulse 2.2s ease-out infinite; }
.shop-topbar__message { min-height: 38px; padding: 0 16px; display: flex; align-items: center; gap: 13px; color: #fff; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; backdrop-filter: blur(12px); transition: color var(--animation-fast), background-color var(--animation-primary), border-color var(--animation-primary), transform var(--animation-primary); }
.shop-topbar__message > svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: var(--shop-red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--animation-primary); }
.shop-topbar__message > span { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.shop-topbar__message strong { font-family: "MADE Outer Sans", Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 400; }
.shop-topbar__divider { color: #5d5d5d; }
.shop-topbar__message .shop-topbar__arrow { width: 16px; stroke: #fff; }
.shop-topbar__message:hover { background: rgba(255, 18, 18, .11); border-color: rgba(255, 18, 18, .48); transform: translateY(-1px); }
.shop-topbar__message:hover > svg:first-child { transform: rotate(-7deg) scale(1.08); }
.shop-topbar__message:hover .shop-topbar__arrow { transform: translateX(4px); }
.shop-topbar__actions { justify-self: end; display: flex; align-items: center; gap: 17px; }
.shop-topbar__social { display: flex; align-items: center; gap: 7px; }
.shop-topbar__social a { width: 32px; height: 32px; display: grid; place-items: center; color: #d5d5d5; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; transition: color var(--animation-fast), background-color var(--animation-fast), border-color var(--animation-fast), transform var(--animation-primary); }
.shop-topbar__social a:hover { color: #fff; background: var(--shop-red); border-color: var(--shop-red); transform: translateY(-2px) rotate(5deg); }
.shop-topbar__social svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.shop-topbar__social rect, .shop-topbar__social circle:not(.icon-fill) { fill: none; stroke: currentColor; stroke-width: 1.8; }
.shop-topbar__global { min-height: 32px; padding: 0 12px; display: flex; align-items: center; gap: 8px; color: #c5c5c5 !important; border-left: 1px solid rgba(255, 255, 255, .12); transition: color var(--animation-fast); }
.shop-topbar__global:hover { color: #fff !important; }
.shop-topbar__global svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
@keyframes topbar-pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 18, 18, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 18, 18, 0); } }
@keyframes topbar-scan { 0%, 15% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

.site-header {
  height: 148px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(23, 23, 23, .95);
  border: 0;
  backdrop-filter: blur(18px);
  transition: height var(--animation-nav), background-color var(--animation-nav), box-shadow var(--animation-nav);
}
.site-header.is-compact { height: 96px; box-shadow: 0 16px 45px rgba(0, 0, 0, .25); }
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}
.brand { grid-column: 2; grid-row: 1; border: 0; padding: 0; justify-self: center; }
.brand img { width: clamp(176px, 13vw, 216px); transition: width var(--animation-nav), transform var(--animation-primary); }
.brand:hover img { transform: scale(1.035); }
.brand span { display: none; }
.main-nav { grid-column: 1; grid-row: 1; display: flex; gap: clamp(23px, 2.4vw, 42px); align-items: center; justify-self: start; }
.main-nav > a, .header-text-link {
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.main-nav > a::after, .header-text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--shop-red);
  transition: right var(--animation-primary);
}
.main-nav > a:hover::after, .main-nav > a.active::after, .header-text-link:hover::after { right: 0; }
.main-nav > a:hover, .main-nav > a.active { color: #fff; }
.header-actions { grid-column: 3; grid-row: 1; display: flex; justify-content: flex-end; align-items: center; gap: 25px; }
.maintenance-header-link { font-size: 13px; }
.maintenance-mobile-link { display: none; }
.dealer-header-link { font-size: 13px; }
.dealer-mobile-link { display: none; }
@media (min-width: 1081px) and (max-width: 1350px) {
  .header-inner { gap: 18px; }
  .header-inner .main-nav { gap: 16px; }
  .header-inner .main-nav > a, .header-inner .header-text-link { font-size: 11px; }
  .header-inner .header-actions { gap: 13px; }
  .header-inner .brand img { width: 175px; }
}
.icon-link { width: 26px; height: 26px; color: #fff; display: grid; place-items: center; transition: transform var(--animation-primary), color var(--animation-fast); }
.icon-link:hover { color: var(--shop-red); transform: translateY(-2px); }
.icon-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.mobile-nav-actions { display: none; }
.nav-toggle { grid-column: 3; grid-row: 1; justify-self: end; display: none; }

/* Shared controls */
.btn {
  min-height: 60px;
  padding: 0 30px;
  gap: 22px;
  border: 0;
  border-radius: var(--shop-pill);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 400;
  position: relative;
  overflow: hidden;
  transition: transform var(--animation-primary), background-color var(--animation-primary), color var(--animation-fast), box-shadow var(--animation-primary);
}
.btn::after { content: "→"; display: inline-block; transition: transform var(--animation-primary); }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, .22) 48%, transparent 68%); transform: translateX(-145%); transition: transform .75s cubic-bezier(.2, .75, .25, 1); pointer-events: none; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateX(145%); }
.btn:hover::after { transform: translateX(6px); }
.btn-primary { color: #fff; background: var(--shop-red); box-shadow: none; }
.btn-primary:hover { color: #fff; background: var(--shop-red-hover); box-shadow: 0 12px 35px rgba(255, 18, 18, .22); }
.btn-dark { color: #fff; background: #050505; }
.btn-dark:hover { background: #000; }
.btn-outline { color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .35); }
.btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .05); }
.btn-ghost { color: #fff; background: #303030; }
.btn-ghost:hover { background: #3b3b3b; }
.btn-danger { color: #fff; background: #6d1717; border: 0; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 13px; }
.btn-sm::after { display: none; }

/* Landing page */
.hero {
  min-height: 638px;
  width: min(calc(100% - 96px), 1900px);
  margin: 0 auto;
  border-radius: var(--shop-card-radius);
  color: #fff;
  background: #050505;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .42) 55%, rgba(0, 0, 0, .12) 100%), url("../img/hero-home.jpg") center 52% / cover no-repeat;
  filter: none;
  transform: translate3d(var(--image-x, 0), var(--image-y, 0), 0) scale(1.045);
  transition: transform 1.2s cubic-bezier(.075, .82, .165, 1);
}
.hero:hover::before { transform: translate3d(var(--image-x, 0), var(--image-y, 0), 0) scale(1.075); }
.hero::after { display: none; }
.hero-grid { width: 100%; grid-template-columns: minmax(0, 840px) 1fr; padding: 80px 60px 62px; }
.eyebrow { color: var(--shop-red); font-size: 13px; letter-spacing: .04em; font-weight: 700; }
.eyebrow::before { width: 38px; height: 1px; }
.hero h1, .page-hero h1 {
  max-width: 920px;
  margin: 26px 0 24px;
  font-size: clamp(58px, 6.2vw, 104px);
  line-height: .94;
  letter-spacing: -.045em;
  text-transform: none;
}
.hero h1 em { color: #fff; font-style: normal; }
.hero p { color: #ededed; max-width: 610px; font-size: 19px; line-height: 1.45; }
.hero-actions { gap: 12px; margin-top: 35px; }
.hero-stats {
  right: 60px;
  bottom: 58px;
  width: auto;
  max-width: 530px;
  color: #fff;
  background: rgba(17, 17, 17, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--shop-pill);
  box-shadow: none;
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.hero-stat { padding: 19px 28px; border-color: rgba(255, 255, 255, .12); }
.hero-stat strong { font-family: "MADE Outer Sans", sans-serif; font-size: 20px; }
.hero-stat span { color: #bcbcbc; font-size: 9px; }
.section { padding: clamp(90px, 9vw, 170px) 0; background: var(--shop-bg); }
.section-sm { padding: 64px 0 100px; background: var(--shop-bg); }
.section-dark { color: #fff; background: #111; }
.section-head { margin-bottom: 52px; align-items: flex-end; }
.section-head h2 { margin-top: 18px; font-size: clamp(46px, 5.3vw, 84px); line-height: .96; text-transform: none; }
.section-head p { color: var(--shop-muted); font-size: 18px; line-height: 1.5; }
.feature-grid { gap: 20px; border: 0; background: transparent; }
.feature-card {
  min-height: 380px;
  color: #fff;
  background: var(--shop-surface-2);
  border-radius: var(--shop-card-radius);
  padding: 42px;
  position: relative;
  overflow: hidden;
  transition: transform var(--animation-primary), background-color var(--animation-primary);
}
.feature-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255, 18, 18, .13), transparent 45%); opacity: 0; transition: opacity var(--animation-primary); pointer-events: none; }
.feature-card:hover::before { opacity: 1; }
.feature-card::after { content: "→"; position: absolute; right: 34px; top: 30px; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; font-size: 20px; transition: transform var(--animation-primary), background-color var(--animation-primary); }
.feature-card:hover { transform: translateY(-7px); background: #292929; }
.feature-card:hover::after { color: #fff; background: var(--shop-red); border-color: var(--shop-red); transform: rotate(-35deg); }
.feature-card .number { color: var(--shop-red); font-size: 12px; }
.feature-icon {
  position: absolute;
  top: 96px;
  left: 42px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 18, 18, .2), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .2);
  transition: color var(--animation-primary), background-color var(--animation-primary), border-color var(--animation-primary), transform var(--animation-primary);
}
.feature-icon::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  left: calc(100% + 13px);
  top: 50%;
  background: linear-gradient(90deg, var(--shop-red), transparent);
}
.feature-icon svg { width: 43px; height: 43px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-card:hover .feature-icon { color: #fff; background: var(--shop-red); border-color: var(--shop-red); transform: translateY(-5px) rotate(-2deg); }
.feature-card h3 { margin: 155px 0 18px; font-size: 30px; text-transform: none; }
.feature-card p { color: var(--shop-muted); font-size: 16px; line-height: 1.5; }
.section-dark .panel { background: var(--shop-surface); border-color: var(--shop-line); }
.section-dark .panel .panel-body { padding: 38px; }
.section-dark .panel h3 { font-size: 26px !important; text-transform: none !important; }
.cta-band { width: min(calc(100% - 96px), 1900px); margin: 0 auto 80px; padding: 70px 62px; color: #fff; background: var(--shop-red); border-radius: var(--shop-card-radius); }
.cta-inner h2 { font-size: clamp(46px, 5vw, 80px); text-transform: none; }

/* Internal title blocks */
.page-hero {
  width: min(calc(100% - 96px), 1900px);
  margin: 0 auto;
  padding: 86px 60px;
  color: #fff;
  background: #0e0e0e;
  border-radius: var(--shop-card-radius);
}
.page-hero::after { display: none; }
.page-hero h1 { margin: 22px 0 16px; font-size: clamp(58px, 7vw, 112px); }
.page-hero p { color: var(--shop-muted); font-size: 18px; line-height: 1.5; }
.detail-hero {
  width: min(calc(100% - 96px), 1900px);
  margin: 0 auto;
  padding: 70px 58px;
  color: #fff;
  background: #0d0d0d;
  border-radius: var(--shop-card-radius);
}
.detail-head h1 { margin-top: 18px; font-size: clamp(48px, 5vw, 76px); text-transform: none; }

/* Locally hosted vehicle imagery for every workflow hero */
.hero-media {
  --hero-image: url("../img/shop-master-series.jpg");
  --hero-position: center;
  min-height: 410px;
  position: relative;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #090909;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .18);
}
.detail-hero.hero-media { min-height: 340px; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  background-image: var(--hero-image);
  background-position: var(--hero-position);
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(.76) contrast(1.06);
  transform: translate3d(var(--image-x, 0), var(--image-y, 0), 0) scale(1.055);
  transition: transform 1.25s cubic-bezier(.075, .82, .165, 1), filter 1s ease;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  background: linear-gradient(90deg, rgba(5, 5, 5, .97) 0%, rgba(5, 5, 5, .82) 43%, rgba(5, 5, 5, .36) 72%, rgba(5, 5, 5, .12) 100%), linear-gradient(0deg, rgba(5, 5, 5, .7), transparent 55%);
  pointer-events: none;
}
.hero-media:hover::before { filter: saturate(.95) contrast(1.08); transform: translate3d(var(--image-x, 0), var(--image-y, 0), 0) scale(1.085); }
.hero-media > .container { width: 100%; position: relative; z-index: 1; }
.hero-media h1 { text-shadow: 0 8px 35px rgba(0, 0, 0, .5); }
.hero-media p { color: #d1d1d1; }
.hero-media--register { --hero-image: url("../img/shop-master-series.jpg"); --hero-position: 74% 54%; }
.hero-media--verify { --hero-image: url("../img/shop-ferrari.jpg"); --hero-position: 72% 64%; }
.hero-media--claims { --hero-image: url("../img/shop-car-detail.jpg"); --hero-position: 70% 48%; }
.hero-media--warranties { --hero-image: url("../img/shop-window-film.jpg"); --hero-position: 72% 60%; }
.hero-media--inventory { --hero-image: url("../img/shop-factory-c.webp"); --hero-position: 70% 51%; }
.hero-media--customers { --hero-image: url("../img/shop-luxury-car.jpg"); --hero-position: 72% 58%; }
.hero-media--settings { --hero-image: url("../img/shop-factory-a.webp"); --hero-position: 68% 50%; }
.hero-media--vehicle { --hero-image: url("../img/shop-concept-car.jpg"); --hero-position: 70% 54%; }

/* Storefront-inspired visual storytelling */
.brand-gallery { padding-top: 40px; }
.brand-gallery__grid { display: grid; grid-template-columns: 1.35fr .65fr; grid-template-rows: repeat(2, minmax(260px, 31vw)); gap: 20px; }
.brand-gallery__item { min-height: 0; margin: 0; position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #101010; border-radius: var(--shop-card-radius); }
.brand-gallery__item--wide { grid-row: 1 / span 2; }
.brand-gallery__item::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .04) 65%); transition: background-color var(--animation-smooth); }
.brand-gallery__item img { width: 100%; height: 100%; display: block; object-fit: cover; transform: scale(1.025); transition: transform 1.15s cubic-bezier(.075, .82, .165, 1), filter .9s ease; }
.brand-gallery__item--wide img { object-position: 52% center; }
.brand-gallery__item:hover img { transform: scale(1.075); filter: saturate(1.08); }
.brand-gallery__item figcaption { position: absolute; left: clamp(24px, 3vw, 50px); right: clamp(24px, 3vw, 50px); bottom: clamp(24px, 3vw, 48px); z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.brand-gallery__item figcaption span { color: var(--shop-red); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.brand-gallery__item figcaption strong { max-width: 520px; color: #fff; font-family: "MADE Outer Sans", Helvetica, Arial, sans-serif; font-size: clamp(25px, 2.3vw, 42px); font-weight: 400; line-height: 1.02; }
.brand-gallery__item:not(.brand-gallery__item--wide) figcaption { align-items: flex-start; flex-direction: column; gap: 10px; }

.dashboard-shell .welcome-row { min-height: 280px; padding: 42px; position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--shop-card-radius); }
.dashboard-shell .welcome-row::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/shop-window-film.jpg") 72% 58% / cover no-repeat; filter: saturate(.75); transform: scale(1.035); transition: transform 1.15s cubic-bezier(.075, .82, .165, 1); }
.dashboard-shell .welcome-row::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 8, .97), rgba(8, 8, 8, .78) 48%, rgba(8, 8, 8, .18)); }
.dashboard-shell .welcome-row:hover::before { transform: scale(1.075); }
.dashboard-shell .welcome-row p { color: #d0d0d0; }

.auth-form-side { position: relative; isolation: isolate; overflow: hidden; }
.auth-form-side::before { content: ""; position: absolute; width: min(62vw, 900px); aspect-ratio: 1.75; right: -21vw; bottom: -5vw; z-index: -1; background: url("../img/shop-concept-car.jpg") center / cover no-repeat; opacity: .1; filter: grayscale(1); transform: rotate(-5deg); border-radius: 50%; }
.auth-form { position: relative; z-index: 1; }

/* Dashboard, collections and data */
.dashboard-shell { color: #fff; background: var(--shop-bg); }
.welcome-row { margin-bottom: 40px; }
.welcome-row h1 { margin-top: 14px; color: #fff; font-size: clamp(44px, 4.4vw, 72px); }
.welcome-row p { color: var(--shop-muted); font-size: 17px; }
.stat-grid { gap: 18px; margin-bottom: 24px; }
.stat-card {
  min-height: 160px;
  padding: 30px;
  color: #fff;
  background: var(--shop-surface-2);
  border: 0;
  border-radius: var(--shop-card-radius);
  transition: transform var(--animation-primary), background-color var(--animation-primary);
}
.stat-card::before { left: 28px; top: auto; bottom: 22px; width: 36px; height: 2px; }
.stat-card:hover { transform: translateY(-5px); background: #292929; }
.stat-card span { color: var(--shop-muted); font-size: 12px; letter-spacing: .04em; }
.stat-card strong { margin-top: 21px; color: #fff; font-size: 44px; }
.stat-card::after { content: ""; position: absolute; right: -45px; bottom: -62px; width: 145px; height: 145px; background: radial-gradient(circle, rgba(255, 18, 18, .15), transparent 68%); pointer-events: none; }
.panel, .form-card {
  color: #fff;
  background: var(--shop-surface);
  border: 0;
  border-radius: var(--shop-card-radius);
  box-shadow: none;
  overflow: hidden;
}
.panel, .form-card { border: 1px solid rgba(255, 255, 255, .055); background-image: linear-gradient(145deg, rgba(255, 255, 255, .018), transparent 38%); }
.panel-head { min-height: 78px; padding: 20px 28px; border-color: var(--shop-line); }
.panel-head h2, .panel-head h3 { color: #fff; font-size: 18px; letter-spacing: -.01em; text-transform: none; }
.panel-body { padding: 30px; }
.dashboard-grid { gap: 22px; }
.data-table { color: #fff; }
.data-table th { padding: 16px 18px; color: #aaa; background: #252525; border-color: var(--shop-line); font-size: 11px; letter-spacing: .04em; }
.data-table td { padding: 20px 18px; color: #eee; border-color: var(--shop-line); font-size: 14px; }
.data-table tbody tr { transition: background-color var(--animation-fast); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .035); }
.data-table a { color: #fff; }
.data-table a:hover { color: var(--shop-red); }
.data-table small, small { color: #999; }
.detail-layout { gap: 22px; }
.detail-item { border-color: var(--shop-line); }
.detail-item span { color: #929292; font-size: 10px; }
.detail-item strong { color: #fff; font-size: 15px; }
.detail-item a { color: #fff; }
.timeline::before { background: #454545; }
.timeline-item::before { background: var(--shop-red); box-shadow: 0 0 0 5px rgba(255, 18, 18, .16); }
.timeline-item p, .timeline-item time { color: #9f9f9f; }
.empty-state { color: #fff; background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: var(--shop-card-radius); }
.empty-state p { color: var(--shop-muted); }
.pagination > a, .pagination > span { color: #fff; background: #222; border: 0; border-radius: 50%; }
.pagination .active { background: var(--shop-red); }
.pagination.pagination { align-items: center; justify-content: safe center; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 2px 0 6px; }
.pagination .pagination__cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 0 0 auto; width: auto; min-width: 136px; padding: 0 20px; border-radius: 999px; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.pagination .pagination__cta > span { display: inline; flex: 0 0 auto; width: auto; min-width: 0; height: auto; color: inherit; background: transparent; border: 0; border-radius: 0; font: inherit; line-height: 1; }
.pagination .pagination__cta.disabled { color: #777; background: #191919; cursor: not-allowed; }
.pagination .pagination__ellipsis { color: #888; background: transparent; }
.qr-sheet-actions { flex-wrap: wrap; }
.qr-label-search { flex: 1 1 420px; margin-right: auto; }
.qr-label-search .form-control { min-width: min(360px, 36vw); }
.qr-sheet-summary { margin: -10px 0 20px; color: #999; font-size: 13px; }
[data-qr-label-browser] { transition: opacity .18s ease; }
[data-qr-label-browser].is-loading { opacity: .48; pointer-events: none; }
.qr-sheet-empty { grid-column: 1 / -1; width: 100%; }

/* Forms and application flows */
.form-card { padding: 38px; }
.form-card + .form-card { margin-top: 20px; }
.form-section-title { margin-bottom: 34px; }
.form-section-title .step { width: 48px; flex-basis: 48px; height: 48px; color: #fff; background: var(--shop-red); border-radius: 50%; }
.form-section-title h2 { color: #fff; font-size: 25px; text-transform: none; }
.form-section-title p { color: #969696; font-size: 14px; line-height: 1.4; }
.form-group { margin-bottom: 21px; }
.form-group label { color: #d7d7d7; font-size: 12px; letter-spacing: .02em; text-transform: none; }
.form-group label .optional, .form-help { color: #858585; }
.form-control {
  height: 62px;
  padding: 0 22px;
  color: #fff;
  background: #222;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 400 16px/1.25 Helvetica, Arial, sans-serif;
  transition: border-color var(--animation-primary), background-color var(--animation-primary), box-shadow var(--animation-primary);
}
.form-control::placeholder { color: #8f8f8f; }
.form-control:focus { color: #fff; background: #272727; border-color: rgba(255, 255, 255, .42); box-shadow: none; }
textarea.form-control { min-height: 138px; padding-block: 19px; }
select.form-control { color-scheme: dark; }
.checkbox-row { color: #c7c7c7; font-size: 14px; line-height: 1.5; }
.checkbox-row input { accent-color: var(--shop-red); }
.progress-steps { margin-bottom: 38px; }
.progress-step { color: #737373; font-size: 11px; }
.progress-step::after { background: #3a3a3a; }
.progress-step.active { color: #fff; }
.progress-step.active .dot { background: var(--shop-red); box-shadow: 0 0 0 5px rgba(255, 18, 18, .12); }
.lookup-box { padding: 26px; color: #fff; background: #111; border-radius: 12px; }
.lookup-box .form-control { color: #fff; background: #202020; border-color: transparent; }
.lookup-result { color: #d9d9d9; background: #242424; border-left-color: var(--shop-red); border-radius: 4px; }
.upload-zone { padding: 42px 25px; color: #fff; background: #222; border-color: #565656; border-radius: 10px; transition: background-color var(--animation-primary), border-color var(--animation-primary); }
.upload-zone:hover, .upload-zone.dragover { background: #292929; border-color: var(--shop-red); }
.upload-zone span { color: #999; }
.preview-grid img { border-radius: 10px; transition: transform var(--animation-primary); }
.preview-grid a:hover img { transform: scale(1.035); }
.search-bar .form-control { background: #292929; }
.alert { border: 0; border-radius: 8px; padding: 16px 20px; }
.alert-danger { color: #ffcbcb; background: #4d1c1c; }
.alert-success { color: #caffea; background: #174c3a; }
.alert-info { color: #d9e9ff; background: #18334d; }
.usage-series-qr svg { display: block; width: 76px; height: 76px; margin-bottom: 7px; background: #fff; }
.admin-note { color: #e7d5b2; background: #4d3b19; border-color: #d59b32; border-radius: 5px; }
.toast { top: 220px; right: 32px; color: #fff; background: #252525; border: 0; border-radius: 8px; box-shadow: var(--shop-shadow); }
.toast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--shop-red); border-radius: 8px 0 0 8px; }
.toast-success::before { background: #2cc98a; }
.status { padding: 7px 12px; font-family: Helvetica, Arial, sans-serif; font-size: 10px; }
.status-success { color: #75e4b7; background: rgba(25, 131, 91, .23); }
.status-warning { color: #ffc96d; background: rgba(159, 100, 0, .24); }
.status-danger { color: #ff8585; background: rgba(168, 31, 31, .24); }
.status-neutral { color: #c5c5c5; background: rgba(255, 255, 255, .08); }

/* Storefront account screen */
.auth-page { min-height: 680px; display: block; color: #fff; background: var(--shop-bg); }
.auth-visual { display: none; }
.auth-form-side { min-height: 680px; padding: 82px 24px 105px; align-items: flex-start; background: var(--shop-bg); }
.auth-form { width: min(100%, 512px); max-width: 512px; }
.auth-form > .eyebrow { display: none; }
.auth-form h2 { margin: 0 0 34px; color: #fff; text-align: center; font-size: clamp(38px, 4vw, 54px); line-height: 1.08; }
.auth-form > p:not(.auth-alt) { display: none; }
.auth-form .form-group label { display: none; }
.auth-form .form-control { height: 64px; background: #1e1e1e; }
.auth-form .btn { margin-top: 22px; }
.auth-alt { margin-top: 28px; color: #bcbcbc; font-size: 16px; }
.auth-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.auth-action-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 34px; margin-top: 22px; }
.auth-action-row .btn { margin-top: 0; }
.auth-create-link { color: var(--shop-red); font-family: "MADE Outer Sans", Helvetica, Arial, sans-serif; font-size: 17px; text-align: center; text-decoration: none; text-transform: uppercase; transition: color var(--animation-fast); }
.auth-create-link:hover { color: #fff; }

/* Certificate */
.certificate { color: #fff; background: #111; border: 0; border-radius: var(--shop-card-radius); box-shadow: var(--shop-shadow); overflow: hidden; }
.certificate-page { padding: 1px 0 50px; background: var(--shop-bg); }
.certificate-top { background: #0a0a0a; }
.certificate-body { background: #111; }
.certificate-title h1 { color: #fff; font-size: 43px; text-transform: none; }
.certificate-block { color: #fff; background: #1e1e1e; border-left: 0; border-radius: 10px; }
.certificate-block span { color: #8d8d8d; }
.certificate-verify { border-color: var(--shop-line); }
.certificate-actions { margin: 34px auto; }

/* Service strip and footer */
.service-strip { padding: 58px 0; color: #fff; background: #151515; border-top: 1px solid var(--shop-line); border-bottom: 1px solid var(--shop-line); }
.service-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service-strip article { min-height: 105px; padding: 0 34px; display: grid; grid-template-columns: 28px 1fr; gap: 18px; align-items: start; border-right: 1px solid var(--shop-line); }
.service-strip article:first-child { padding-left: 0; }
.service-strip article:last-child { border: 0; }
.service-icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--shop-red); transition: color var(--animation-fast), transform var(--animation-primary); }
.service-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.service-strip article:hover .service-icon { color: #fff; transform: translateY(-4px) rotate(-3deg); }
.service-strip h3 { margin: 0 0 10px; color: #bdbdbd; font-size: 22px; line-height: 1.05; }
.service-strip p { margin: 0; color: #f0f0f0; font-size: 14px; line-height: 1.4; }
.site-footer { padding: 82px 0 26px; color: #bbb; background: #111; }
.footer-grid { grid-template-columns: 1.6fr .8fr .8fr 1.2fr; gap: 70px; }
.footer-grid > div { gap: 12px; font-size: 15px; }
.footer-logo { width: 190px; margin-bottom: 24px; }
.footer-grid p { color: #aaa; font-size: 15px; line-height: 1.55; }
.footer-grid a { color: #e3e3e3; transition: color var(--animation-fast); }
.footer-grid a:hover { color: var(--shop-red); }
.footer-label { margin-bottom: 17px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.footer-pill { width: 100%; min-height: 58px; margin-top: 12px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; color: #fff !important; background: #222; border-radius: 6px; }
.footer-pill:hover { background: #292929; }
.footer-bottom { color: #898989; border-color: var(--shop-line); font-size: 12px; }

/* Global premium interaction polish */
.panel, .form-card { transition: transform var(--animation-primary), border-color var(--animation-primary), box-shadow var(--animation-primary), background-color var(--animation-primary); }
.panel:hover, .form-card:hover { }
.form-control:hover:not(:focus) { background: #252525; border-color: rgba(255, 255, 255, .1); }
.data-table tbody tr { transform: translateZ(0); }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .045); }
.section-head .eyebrow::before { transform-origin: left; animation: eyebrow-breathe 3.4s ease-in-out infinite; }
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 620px; height: 300px; right: -210px; bottom: -190px; background: radial-gradient(circle, rgba(255, 18, 18, .1), transparent 66%); pointer-events: none; }
@keyframes eyebrow-breathe { 0%, 100% { transform: scaleX(.55); opacity: .7; } 50% { transform: scaleX(1); opacity: 1; } }

/* Scroll and page motion */
[data-reveal] { opacity: 0; transform: translateY(38px); transition: transform .8s cubic-bezier(.075, .82, .165, 1), opacity .65s cubic-bezier(.19, 1, .22, 1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.panel, .form-card, .stat-card, .feature-card { will-change: transform; }

@media (max-width: 1180px) {
  .container { width: min(calc(100% - 48px), 1900px); }
  .hero, .page-hero, .detail-hero, .cta-band { width: calc(100% - 48px); }
  .shop-topbar { padding-inline: 24px; }
  .main-nav { gap: 20px; }
  .main-nav > a, .header-text-link { font-size: 13px; }
  .header-actions { gap: 17px; }
  .hero-grid { padding-inline: 42px; }
  .hero-stats { right: 42px; }
  .service-strip article { padding-inline: 22px; }
}

@media (max-width: 1080px) {
  .shop-topbar { grid-template-columns: 1fr; height: 52px; }
  .shop-topbar__trust, .shop-topbar__actions { display: none; }
  .shop-topbar__message { justify-self: center; justify-content: center; min-height: 36px; font-size: 12px; }
  .site-header, .site-header.is-compact { height: 96px; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .brand { grid-column: 2; }
  .brand img { width: 150px; }
  .header-actions { display: none; }
  .nav-toggle { display: block; grid-column: 3; }
  .nav-toggle span { background: #fff; transition: transform var(--animation-primary), opacity var(--animation-fast); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav { position: fixed; display: flex; top: 148px; left: 0; right: 0; height: calc(100vh - 148px); padding: 46px 28px; align-items: flex-start; flex-direction: column; gap: 26px; color: #fff; background: #171717; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity var(--animation-nav), visibility var(--animation-nav), transform var(--animation-nav); }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-header.is-compact .main-nav { top: 96px; height: calc(100vh - 96px); }
  .main-nav > a { font-family: "MADE Outer Sans", sans-serif; font-size: 32px; font-weight: 400; text-transform: none; }
  .mobile-nav-actions { width: 100%; margin-top: auto; padding-top: 25px; display: flex; flex-wrap: wrap; gap: 22px; border-top: 1px solid var(--shop-line); }
  .mobile-nav-actions a { color: #aaa; text-decoration: none; }
  .hero-grid { display: block; }
  .hero-stats { position: relative; right: auto; bottom: auto; margin-top: 55px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .brand-gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(430px, 62vw) minmax(280px, 42vw); }
  .brand-gallery__item--wide { grid-column: 1 / -1; grid-row: auto; }
  .dashboard-grid, .detail-layout { grid-template-columns: 1fr; }
  .service-strip__grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .service-strip article:nth-child(2) { border: 0; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-news { grid-column: 1/-1; max-width: 550px; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 32px); }
  .shop-topbar { height: 46px; padding-inline: 10px; }
  .shop-topbar__message { width: 100%; min-height: 34px; padding-inline: 13px; gap: 9px; font-size: 10px; }
  .shop-topbar__message strong { font-size: 10px; }
  .shop-topbar__message > svg:first-child { width: 16px; }
  .shop-topbar__divider, .shop-topbar__detail { display: none; }
  .site-header, .site-header.is-compact { height: 82px; }
  .brand img { width: 126px; }
  .main-nav { top: 128px; height: calc(100vh - 128px); }
  .site-header.is-compact .main-nav { top: 82px; height: calc(100vh - 82px); }
  .hero, .page-hero, .detail-hero, .cta-band { width: calc(100% - 20px); }
  .hero { min-height: 690px; }
  .hero::before { background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.25) 85%), url("../img/hero-home.jpg") 55% center/cover; }
  .hero-grid { padding: 50px 24px 26px; }
  .hero h1 { font-size: clamp(38px, 10vw, 50px); overflow-wrap: anywhere; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { display: none; }
  .section { padding: 82px 0; }
  .section-head h2 { font-size: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .brand-gallery { padding-top: 8px; }
  .brand-gallery__grid { display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; }
  .brand-gallery__item, .brand-gallery__item--wide { grid-column: auto; grid-row: auto; min-height: 420px; }
  .brand-gallery__item:not(.brand-gallery__item--wide) { min-height: 330px; }
  .brand-gallery__item figcaption { align-items: flex-start; flex-direction: column; gap: 10px; }
  .feature-card { min-height: 330px; padding: 30px; }
  .feature-icon { top: 86px; left: 30px; width: 68px; height: 68px; border-radius: 19px; }
  .feature-icon svg { width: 38px; height: 38px; }
  .feature-card h3 { margin-top: 130px; }
  .cta-band { margin-bottom: 38px; padding: 48px 24px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner h2 { font-size: 46px; }
  .page-hero { padding: 55px 25px; }
  .page-hero h1 { font-size: 54px; overflow-wrap: anywhere; }
  .detail-hero { padding: 48px 24px; }
  .hero-media, .detail-hero.hero-media { min-height: 390px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.65) 64%, rgba(5,5,5,.18) 100%); }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .detail-head h1 { font-size: 46px; overflow-wrap: anywhere; }
  .welcome-row { flex-direction: column; align-items: flex-start; }
  .dashboard-shell .welcome-row { min-height: 360px; padding: 30px 24px; justify-content: flex-end; }
  .welcome-row .btn { width: 100%; }
  .stat-grid, .grid-2, .grid-3, .detail-list, .certificate-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 138px; }
  .panel-head { align-items: flex-start; flex-direction: column; }
  .search-bar { width: 100%; flex-direction: column; }
  .search-bar .form-control { min-width: 0; }
  .form-card { padding: 26px 18px; }
  .form-section-title h2 { font-size: 22px; }
  .lookup-row { grid-template-columns: 1fr; }
  .progress-steps { overflow-x: auto; }
  .progress-step { min-width: 130px; }
  .auth-form-side { min-height: 590px; padding: 70px 20px 90px; }
  .auth-form h2 { margin-bottom: 32px; font-size: 46px; }
  .auth-form .grid-2 { display: block; }
  .auth-action-row { grid-template-columns: 1fr; gap: 22px; }
  .certificate-actions { padding-inline: 14px; flex-direction: column; }
  .certificate-actions .btn { width: 100%; }
  .certificate-top, .certificate-body { padding-inline: 22px; }
  .certificate-top span { font-size: 9px; }
  .service-strip { padding: 46px 0; }
  .service-strip__grid { grid-template-columns: 1fr; gap: 28px; }
  .service-strip article, .service-strip article:first-child { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--shop-line); }
  .service-strip article:last-child { padding-bottom: 0; border: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-news { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .toast { top: 145px; left: 16px; right: 16px; }
}

/* Destructive-action confirmation dialog */
.table-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.table-actions form { margin: 0; }
.confirmation-modal { width: min(520px, calc(100% - 32px)); max-width: none; padding: 0; color: #eee; border: 1px solid #414141; border-radius: 14px; background: #171717; box-shadow: 0 30px 90px rgba(0,0,0,.72); }
.confirmation-modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.confirmation-modal__surface { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 18px; padding: 26px; }
.confirmation-modal__icon { display: grid; place-items: center; width: 48px; height: 48px; color: #fff; border: 1px solid rgba(227,33,43,.55); border-radius: 50%; background: rgba(227,33,43,.18); font-size: 24px; font-weight: 800; }
.confirmation-modal h2 { margin: 6px 0 10px; color: #fff; font-size: 26px; }
.confirmation-modal p { margin: 0; color: #bbb; line-height: 1.65; }
.confirmation-modal__actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 9px; padding-top: 5px; }
@media (max-width: 520px) {
  .confirmation-modal__surface { grid-template-columns: 42px minmax(0,1fr); padding: 20px; }
  .confirmation-modal__icon { width: 40px; height: 40px; }
  .confirmation-modal__actions { flex-direction: column-reverse; }
  .confirmation-modal__actions .btn { width: 100%; }
}

/* Responsive hardening shared by every public, customer and admin screen */
img, svg, video, canvas { max-width: 100%; }
input, select, textarea, button { min-width: 0; }
.panel, .form-card, .detail-layout > *, .dashboard-grid > *, .grid-2 > *, .grid-3 > * { min-width: 0; }
.detail-item strong, .timeline-item, .admin-note, .alert, .empty-state, .certificate-block strong { overflow-wrap: anywhere; word-break: break-word; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { gap: 24px; }
  .page-hero h1 { font-size: clamp(48px, 9vw, 82px); }
  .detail-head { align-items: flex-start; }
  .detail-head > div:last-child { flex-wrap: wrap; }
  .data-table { min-width: 720px; }
  .certificate { width: calc(100% - 40px); margin-inline: auto; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .hero-actions, .cta-inner, .welcome-row, .detail-head { align-items: stretch; flex-direction: column; }
  .hero-actions .btn, .welcome-row .btn { width: 100%; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head > * { width: 100%; }
  .section-head p { max-width: none; }
  .hero + .section { padding-top: 96px !important; }
  .detail-head > div:last-child { width: 100%; display: flex !important; align-items: center; gap: 10px !important; }
  .detail-head > div:last-child .btn { flex: 1 1 180px; }
  .detail-head > a.btn { width: 100%; }
  .panel-head > form:not(.search-bar) { width: 100%; }
  .panel-head > form:not(.search-bar) .btn { width: 100%; }
  .search-bar .btn { width: 100%; }
  .lookup-row .btn { width: 100%; }
  .certificate-top { gap: 20px; flex-wrap: wrap; }
  .certificate-verify { align-items: flex-start; flex-direction: column; }
  .certificate-title h1 { overflow-wrap: anywhere; }
  .footer-grid > div { min-width: 0; }
}

@media (max-width: 560px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { width: 100%; min-width: 0; }
  .container, .container.narrow { width: calc(100% - 24px); max-width: none; }
  .hero, .page-hero, .detail-hero, .cta-band { width: calc(100% - 12px); }
  .shop-topbar__message { max-width: 100%; overflow: hidden; }
  .shop-topbar__message > span { min-width: 0; }
  .site-header, .site-header.is-compact { height: 76px; }
  .brand img { width: 112px; }
  .nav-toggle { width: 42px; height: 42px; padding: 7px; }
  .nav-toggle span { width: 24px; margin-block: 6px; }
  .main-nav { top: 122px; height: calc(100dvh - 122px); padding: 34px 20px max(28px, env(safe-area-inset-bottom)); gap: 21px; overflow-y: auto; }
  .site-header.is-compact .main-nav { top: 76px; height: calc(100dvh - 76px); }
  .main-nav > a { font-size: clamp(26px, 8.5vw, 34px); }
  .mobile-nav-actions { gap: 15px 20px; }

  .hero { min-height: max(610px, calc(100svh - 122px)); }
  .hero-grid { padding: 42px 20px 28px; }
  .hero h1 { margin-block: 20px; font-size: clamp(36px, 11vw, 48px); line-height: .97; }
  .hero p, .page-hero p { font-size: 15px; line-height: 1.5; }
  .hero-actions { width: 100%; gap: 9px; }
  .hero-actions .btn { min-height: 55px; }
  .hero-media, .detail-hero.hero-media { min-height: 360px; }
  .page-hero { padding: 42px 20px; }
  .page-hero h1 { margin-block: 18px 12px; font-size: clamp(40px, 12.5vw, 54px); line-height: .95; }
  .detail-hero { padding: 40px 20px; }
  .detail-head { gap: 22px; }
  .detail-head h1 { font-size: clamp(35px, 10.5vw, 46px); }
  .detail-head > div:last-child { align-items: stretch !important; flex-direction: column; }
  .detail-head > div:last-child .btn { width: 100%; flex-basis: auto; }
  .detail-head .status { align-self: flex-start; }

  .section { padding: 66px 0; }
  .section-sm { padding: 42px 0 66px; }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: clamp(38px, 12vw, 48px); overflow-wrap: anywhere; }
  .eyebrow { max-width: 100%; font-size: 11px; line-height: 1.35; }
  .eyebrow::before { flex: 0 0 28px; }
  .feature-card { padding: 26px; }
  .feature-icon { left: 26px; }
  .feature-card h3 { font-size: 27px; }
  .brand-gallery__item, .brand-gallery__item--wide { min-height: 360px; }
  .brand-gallery__item:not(.brand-gallery__item--wide) { min-height: 285px; }
  .brand-gallery__item figcaption { left: 22px; right: 22px; bottom: 22px; }
  .cta-band { padding: 38px 20px; }
  .cta-inner { width: 100%; }
  .cta-inner h2 { font-size: clamp(36px, 11vw, 46px); overflow-wrap: anywhere; }
  .cta-inner .btn { width: 100%; }

  .dashboard-shell .welcome-row { min-height: 330px; padding: 26px 20px; }
  .welcome-row h1 { font-size: clamp(38px, 11vw, 50px); overflow-wrap: anywhere; }
  .stat-grid { gap: 10px; }
  .stat-card { min-height: 124px; padding: 23px; }
  .stat-card strong { font-size: 38px; }
  .panel, .form-card { border-radius: 12px; }
  .panel-head { min-height: 0; padding: 18px; gap: 14px; }
  .panel-head h2, .panel-head h3 { max-width: 100%; font-size: 17px; overflow-wrap: anywhere; }
  .panel-body { padding: 20px 18px; }
  .panel-head > .btn, .panel-head > a.btn { width: 100%; }
  .form-card { padding: 23px 16px; }
  .form-section-title { gap: 13px; margin-bottom: 27px; }
  .form-section-title .step { width: 42px; height: 42px; flex-basis: 42px; }
  .form-section-title > div { min-width: 0; }
  .form-section-title h2 { font-size: 21px; overflow-wrap: anywhere; }
  .form-control { height: 56px; padding-inline: 16px; font-size: 16px; }
  textarea.form-control { min-height: 126px; }
  .btn { min-height: 54px; padding-inline: 20px; font-size: 14px; }
  .btn-sm { min-height: 42px; font-size: 12px; }
  .form-card form > .btn, .empty-state .btn, .lookup-box > .btn { width: 100%; }
  .panel-body [style*="display:flex"] { flex-wrap: wrap; gap: 9px; }
  .upload-zone { padding: 32px 18px; }
  .upload-zone strong, .upload-zone span { overflow-wrap: anywhere; }
  .progress-steps { display: grid; grid-template-columns: 1fr; gap: 9px; overflow: visible; }
  .progress-step { min-width: 0; padding: 10px 12px; background: rgba(255, 255, 255, .035); border-radius: 8px; }
  .progress-step::after { display: none; }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .preview-grid img { border-radius: 7px; }
  .checkbox-row { font-size: 13px; }
  .empty-state { padding: 48px 18px; }

  .data-table { min-width: 660px; }
  .data-table th { padding: 13px 14px; }
  .data-table td { padding: 16px 14px; }
  .table-wrap::after { content: "Swipe table horizontally →"; position: sticky; left: 14px; display: inline-block; margin: 10px 14px 14px; color: #888; font-size: 10px; letter-spacing: .04em; }
  .detail-list { grid-template-columns: minmax(0, 1fr); }
  .detail-item, .detail-item:nth-child(odd) { padding: 16px 0; padding-right: 0; }
  .timeline { padding-left: 21px; }

  .auth-form-side { min-height: auto; padding: 52px 16px 68px; }
  .auth-form h2 { margin-bottom: 28px; font-size: clamp(34px, 9vw, 42px); overflow-wrap: normal; }
  .auth-alt { font-size: 14px; }
  .auth-form-side::before { width: 130vw; right: -72vw; opacity: .07; }

  .certificate-page { padding-inline: 0; }
  .certificate { width: calc(100% - 16px); margin-block: 24px; }
  .certificate-actions { margin: 24px 8px; padding: 0; gap: 8px; }
  .certificate-top { padding: 20px 18px; align-items: flex-start; flex-direction: column; }
  .certificate-top img { width: 118px; }
  .certificate-body { padding: 30px 16px; }
  .certificate-title { margin-bottom: 30px; }
  .certificate-title h1 { font-size: clamp(27px, 9vw, 38px); }
  .certificate-block { padding: 18px 16px; }
  .certificate-verify { gap: 12px; }

  .service-strip article { grid-template-columns: 30px minmax(0, 1fr); gap: 15px; }
  .service-strip h3 { font-size: 20px; }
  .site-footer { padding-top: 62px; }
  .footer-grid { gap: 32px; }
  .footer-logo { width: 155px; }
  .footer-pill { min-height: 54px; }
  .footer-bottom { align-items: flex-start; }
  .toast { top: 132px; max-width: none; }
  .pagination { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .container, .container.narrow { width: calc(100% - 18px); }
  .shop-topbar__message { padding-inline: 10px; }
  .shop-topbar__message .shop-topbar__arrow { display: none; }
  .hero-grid { padding-inline: 17px; }
  .hero h1 { font-size: 35px; }
  .page-hero, .detail-hero { padding-inline: 17px; }
  .page-hero h1 { font-size: 39px; }
  .section-head h2 { font-size: 36px; }
  .feature-card { padding-inline: 22px; }
  .feature-icon { left: 22px; }
  .form-card { padding-inline: 14px; }
  .form-section-title .step { width: 38px; height: 38px; flex-basis: 38px; }
  .form-section-title h2 { font-size: 19px; }
  .btn { font-size: 13px; }
  .certificate-actions .btn { padding-inline: 15px; }
}

/* Device-edge containment: keep every mobile surface visibly inside the screen */
@media (max-width: 720px) {
  :root {
    --mobile-gutter-left: max(16px, env(safe-area-inset-left));
    --mobile-gutter-right: max(16px, env(safe-area-inset-right));
  }

  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  main, main > section, header, footer, form, fieldset, aside, article { min-width: 0; max-width: 100%; }
  h1, h2, h3, h4, p, a, label { max-width: 100%; overflow-wrap: anywhere; }
  pre, code { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }

  .container, .container.narrow {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--mobile-gutter-left);
    padding-right: var(--mobile-gutter-right);
  }

  .shop-topbar {
    padding-left: var(--mobile-gutter-left);
    padding-right: var(--mobile-gutter-right);
  }

  .hero, .page-hero, .detail-hero, .cta-band {
    width: auto;
    max-width: none;
    margin-left: var(--mobile-gutter-left);
    margin-right: var(--mobile-gutter-right);
  }

  .hero > .container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-media > .container,
  .cta-band > .container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .certificate {
    width: auto;
    max-width: none;
    margin-left: var(--mobile-gutter-left);
    margin-right: var(--mobile-gutter-right);
  }

  .certificate-actions {
    width: auto;
    max-width: none;
    margin-left: var(--mobile-gutter-left);
    margin-right: var(--mobile-gutter-right);
  }

  .auth-form-side {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .feature-grid, .stat-grid, .grid-2, .grid-3, .dashboard-grid,
  .detail-layout, .detail-list, .certificate-grid, .brand-gallery__grid,
  .service-strip__grid, .footer-grid, .auth-action-row, .lookup-row,
  .progress-steps, .preview-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .feature-card, .stat-card, .panel, .form-card, .brand-gallery__item,
  .certificate-block, .upload-zone, .lookup-box, .empty-state {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .panel-head, .panel-body, .form-section-title, .detail-item,
  .timeline, .timeline-item, .certificate-top, .certificate-body,
  .certificate-verify, .welcome-row, .section-head, .cta-inner {
    max-width: 100%;
    min-width: 0;
  }

  .btn, .form-control, .status, .alert, .admin-note, .footer-pill {
    max-width: 100%;
  }

  .btn { white-space: normal; text-align: center; line-height: 1.15; }
  .status { white-space: normal; line-height: 1.25; }
  .panel-head > *, .detail-head > *, .section-head > *, .welcome-row > * { min-width: 0; max-width: 100%; }
  .search-bar, .search-bar > *, .panel-head form, .panel-head form > * { max-width: 100%; min-width: 0; }
  .search-bar .form-control { width: 100%; }
  .table-wrap { max-width: 100%; margin: 0; }
  .photo-slot-grid, .roll-summary { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .qr-print-page .shop-topbar, .qr-print-page .site-header, .qr-print-page .site-footer,
  .qr-print-page .page-hero, .qr-print-page .qr-print-actions { display: none !important; }
  .qr-print-page, .qr-print-page main, .qr-print-page .section-sm { color: #111 !important; background: #fff !important; }
  .qr-print-page .section-sm { padding: 0 !important; }
  .qr-print-page .container { width: 100% !important; max-width: none !important; }
  .qr-print-page .qr-label { border: 2px solid #111; box-shadow: none; break-inside: avoid; }
}

/* Completed maintenance inspection modal */
.maintenance-view-button { white-space: nowrap; }
.maintenance-inspection-modal { width: min(1180px, calc(100% - 34px)); max-width: none; height: min(92dvh, 940px); max-height: 92dvh; padding: 0; color: #eee; border: 1px solid #3b3b3b; border-radius: 16px; background: #171717; box-shadow: 0 32px 100px rgba(0,0,0,.7); overflow: hidden; }
.maintenance-inspection-modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.maintenance-inspection-modal__surface { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.maintenance-inspection-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 0 0 auto; padding: 22px 26px; border-bottom: 1px solid #343434; background: #111; }
.maintenance-inspection-modal__header h2 { margin: 5px 0 0; color: #fff; font-size: clamp(20px,2vw,29px); }
.maintenance-inspection-modal__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; color: #fff; border: 1px solid #555; border-radius: 50%; background: transparent; font: 300 29px/1 Arial,sans-serif; cursor: pointer; }
.maintenance-inspection-modal__close:hover { color: #fff; border-color: #bd2021; background: #bd2021; }
.maintenance-inspection-modal__body { flex: 1 1 auto; min-height: 0; padding: 26px; overflow: auto; overscroll-behavior: contain; }
.maintenance-modal-loading,.maintenance-modal-error { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 12px; padding: 40px; text-align: center; color: #bbb; }
.maintenance-modal-error strong { color: #fff; font-size: 18px; }
.maintenance-modal-error p { margin: 0 0 10px; color: #e78787; }
.maintenance-modal-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.maintenance-modal-summary article { min-width: 0; padding: 18px; border: 1px solid #353535; border-radius: 10px; background: #202020; }
.maintenance-modal-summary article>span { display: block; margin-bottom: 8px; color: #999; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.maintenance-modal-summary strong { display: block; color: #fff; font-size: 15px; overflow-wrap: anywhere; }
.maintenance-modal-summary small { display: block; margin-top: 7px; color: #aaa; }
.maintenance-modal-section { margin-top: 18px; }
.maintenance-modal-section-grid { margin-top: 18px; }
.maintenance-modal-details .detail-item { min-width: 0; }
.maintenance-modal-details small { display: block; color: #aaa; overflow-wrap: anywhere; }
.maintenance-delivery-error { margin-top: 6px; color: #ff9d9d !important; }
.maintenance-inspection-modal .maintenance-signature-record { color: #ddd; border: 1px solid #353535; background: #151515; }
.maintenance-inspection-modal .maintenance-signature-record strong { display: block; margin-top: 10px; color: #fff; }
.maintenance-signature-missing { display: grid; place-items: center; min-height: 150px; padding: 20px; color: #999; border: 1px dashed #555; text-align: center; }
.maintenance-inspection-modal .maintenance-admin-photos a { color: #ddd; text-decoration: none; }
.maintenance-inspection-modal .maintenance-admin-photos small { display: block; margin-top: 7px; overflow-wrap: anywhere; }
.maintenance-modal-list { display: grid; gap: 9px; padding-left: 20px; list-style: disc; }
.maintenance-modal-notes { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.maintenance-modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 22px; }

@media(max-width:900px){
  .maintenance-modal-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:620px){
  .maintenance-inspection-modal { width: calc(100% - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 10px; }
  .maintenance-inspection-modal__header { padding: 17px 16px; }
  .maintenance-inspection-modal__body { padding: 16px; }
  .maintenance-modal-summary { grid-template-columns: minmax(0,1fr); }
  .maintenance-modal-section-grid { grid-template-columns: minmax(0,1fr); }
  .maintenance-modal-footer { align-items: stretch; flex-direction: column; }
  .maintenance-modal-footer .btn { width: 100%; }
}

/* Warranty registration: centered single-panel layout inspired by the supplied reference. */
.warranty-registration-page {
  min-height: 100vh;
  color: #20201f;
  background: #fff;
  font-family: "Lato", Poppins, Arial, sans-serif;
}

.warranty-registration-page .shop-topbar,
.warranty-registration-page .site-header,
.warranty-registration-page .service-strip,
.warranty-registration-page .site-footer,
.warranty-registration-page .page-noise,
.warranty-registration-page .page-progress { display: none !important; }

.warranty-registration-main { min-height: 100vh; }

.warranty-registration-wrap {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}

.warranty-registration-panel {
  width: min(70%, 1040px);
  padding: 48px 0 64px;
  background: #fff;
  box-shadow: 0 25px 55px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.warranty-registration-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 72px 46px;
  text-align: center;
}

.warranty-registration-logo {
  width: min(20%, 190px);
  min-width: 130px;
  height: auto;
  margin: 0 auto 34px;
}

.warranty-registration-heading h1 {
  margin: 0;
  color: #20201f;
  font-family: "Barlow", Poppins, Arial, sans-serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: -.025em;
}

.warranty-registration-heading p {
  max-width: 580px;
  margin: 12px 0 0;
  color: #777;
  font-size: 14px;
}

.warranty-registration-panel > .alert,
.warranty-registration-panel > form {
  width: auto;
  margin-inline: 72px;
}

.warranty-registration-page #warranty-form {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.maintenance-inspection-page .maintenance-panel { width: min(90%, 1180px); }
.maintenance-inspection-page #maintenance-form { display: flex; flex-direction: column; gap: 42px; }
.maintenance-inspection-page .form-section-title > div { min-width: 0; }
.maintenance-inspection-page .form-section-title h2 { overflow-wrap: anywhere; }
.maintenance-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #d5d5d5; }
.maintenance-summary > div { min-width: 0; min-height: 84px; padding: 15px 18px; border-right: 1px solid #d5d5d5; border-bottom: 1px solid #d5d5d5; }
.maintenance-summary > div:nth-child(2n) { border-right: 0; }
.maintenance-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
.maintenance-summary span { display: block; margin-bottom: 8px; color: #6b6b6b; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.maintenance-summary strong { display: block; overflow-wrap: anywhere; }
.maintenance-summary .form-control { height: 42px; }
.inspection-table { border: 1px solid #d1d1d1; }
.inspection-row { display: grid; grid-template-columns: minmax(240px, 1.35fr) 105px 150px minmax(180px, 1fr); align-items: stretch; border-bottom: 1px solid #d1d1d1; }
.inspection-row:last-child { border-bottom: 0; }
.inspection-row > * { min-width: 0; margin: 0; padding: 12px; border-right: 1px solid #d1d1d1; }
.inspection-row > *:last-child { border-right: 0; }
.inspection-row > strong { display: flex; align-items: center; font-size: 13px; line-height: 1.35; }
.inspection-row > label { display: flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-size: 11px; }
.inspection-row input[type="radio"] { accent-color: #bd2021; }
.inspection-row .form-control { align-self: center; height: 42px; border: 0; }
.inspection-head { color: #20201f; background: #e6e9f0; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.inspection-head > span { display: flex; align-items: center; }
.maintenance-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.maintenance-action-list { display: grid; gap: 13px; }
.maintenance-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.warranty-registration-page.maintenance-inspection-page .maintenance-photo-slot > span { display: block; margin: 0 0 9px; color: #20201f; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.maintenance-inspection-page .maintenance-photo-slot.has-photo > span { color: #138a47; }
.maintenance-inspection-page .maintenance-photo-slot .vehicle-photo-upload { aspect-ratio: 1.65 / 1; }
.maintenance-inspection-page .maintenance-photo-slot .vehicle-photo-overlay strong { display: block; color: #20201f; font-weight: 700; }
.maintenance-final-status { display: grid; gap: 10px; margin-bottom: 30px; }
.maintenance-final-status label { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid #d7d7d7; cursor: pointer; }
.maintenance-final-status input { accent-color: #bd2021; }
.maintenance-signatures { margin-bottom: 24px; }
.signature-field { min-width: 0; }
.signature-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.signature-heading label { color: #20201f; font-size: 16px; font-weight: 600; }
.signature-clear { padding: 6px 11px; color: #8c1718; background: #fff; border: 1px solid #d7a7a8; border-radius: 3px; font: 700 11px/1 "Lato",sans-serif !important; cursor: pointer; }
.signature-clear:hover { color: #fff; background: #bd2021; border-color: #bd2021; }
.signature-canvas-wrap { position: relative; overflow: hidden; background: #fff; border: 1px solid #aeb2b8; border-radius: 6px; box-shadow: inset 0 -1px 0 #d8d8d8; }
.signature-canvas { display: block; width: 100%; height: 190px; background: #fff; cursor: crosshair; touch-action: none; }
.signature-canvas:focus { outline: 2px solid #bd2021; outline-offset: -2px; }
.signature-placeholder { position: absolute; left: 50%; top: 50%; z-index: 1; color: #9a9a9a; font-size: 13px; pointer-events: none; transform: translate(-50%,-50%); white-space: nowrap; }
.signature-field.has-signature .signature-canvas-wrap { border-color: #138a47; }
.signature-field.signature-invalid .signature-canvas-wrap { border-color: #d91e28; box-shadow: 0 0 0 3px rgba(217,30,40,.1); }
.signature-error { margin: 7px 0 0; color: #b4141b; font-size: 12px; }
.signature-date { margin-top: 24px !important; }
.maintenance-signature-records { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.maintenance-signature-record { padding: 16px; background: #fff; border-radius: 8px; }
.maintenance-signature-record span { display: block; margin-bottom: 10px; color: #666; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.maintenance-signature-record img { display: block; width: 100%; height: 150px; object-fit: contain; background: #fff; border: 1px solid #ddd; }
.maintenance-signature-record small { display: block; margin-top: 9px; color: #666; }
.maintenance-admin-photos { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.maintenance-admin-photos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }

@media (max-width: 1020px) {
  .maintenance-mobile-link { display: flex; }
  .dealer-mobile-link { display: flex; }
}

@media (max-width: 760px) {
  .maintenance-summary { grid-template-columns: minmax(0, 1fr); }
  .maintenance-summary > div { border-right: 0; }
  .maintenance-summary > div:nth-last-child(-n+2) { border-bottom: 1px solid #d5d5d5; }
  .maintenance-summary > div:last-child { border-bottom: 0; }
  .inspection-table { border: 0; }
  .inspection-head { display: none; }
  .inspection-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; border: 1px solid #d1d1d1; }
  .inspection-row > strong { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid #d1d1d1; background: #f4f4f4; }
  .inspection-row > label:nth-of-type(2) { border-right: 0; }
  .inspection-row > .form-control { grid-column: 1 / -1; border-top: 1px solid #d1d1d1; }
  .maintenance-check-grid, .maintenance-photo-grid, .maintenance-admin-photos, .maintenance-signature-records { grid-template-columns: minmax(0, 1fr); }
  .signature-canvas { height: 165px; }
  .signature-placeholder { max-width: calc(100% - 24px); text-align: center; white-space: normal; }
}

.warranty-registration-page .form-card,
.warranty-registration-page .form-card + .form-card {
  margin: 0;
  padding: 0;
  color: #20201f;
  border: 0;
  background: transparent;
}

.warranty-registration-page .form-section-title {
  gap: 14px;
  margin: 0 0 30px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e4e4e4;
}

.warranty-registration-page .form-section-title .step {
  flex-basis: 32px;
  height: 32px;
  background: #bd2021;
  font-size: 12px;
}

.warranty-registration-page .form-section-title h2 {
  color: #20201f;
  font-family: "Barlow", Poppins, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.warranty-registration-page .form-section-title p { font-size: 12px; }

.warranty-registration-page .grid-2,
.warranty-registration-page .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 0; }

.warranty-registration-page .form-group { margin: 0 0 34px; }

.warranty-registration-page .form-group label {
  margin-bottom: 3px;
  color: #20201f;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.warranty-registration-page .required { color: #ef4444; font-size: 18px; }

.warranty-registration-page .form-control {
  height: 44px;
  padding: 0 1px;
  color: #20201f;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #20201f;
  border-radius: 0;
  box-shadow: none;
  font: 400 14px/1.2 "Lato", Poppins, Arial, sans-serif;
}

.warranty-registration-page .form-control:focus {
  border-bottom-color: #bd2021;
  box-shadow: 0 1px 0 #bd2021;
}

.warranty-registration-page .form-control:disabled,
.warranty-registration-page .form-control[readonly] { color: #6f6f6f; background: transparent; }

.warranty-registration-page textarea.form-control {
  min-height: 90px;
  padding: 10px 1px;
}

.warranty-registration-page .form-help { margin-top: 6px; font-size: 11px; }

.warranty-registration-page .lookup-box {
  margin: 0 0 34px;
  padding: 0;
  color: #20201f;
  background: transparent;
}

.warranty-registration-page .lookup-row { align-items: end; }
.warranty-registration-page .verify-vehicle-button { margin: -14px 0 34px; }
.warranty-registration-page .lookup-box .form-control { color: #20201f; background: transparent; border-color: #20201f; }

.warranty-registration-page .btn {
  min-height: 42px;
  border-radius: 0;
  box-shadow: none;
}

.warranty-registration-page .btn-primary { background: #bd2021; }
.warranty-registration-page .btn-primary:hover { background: #9f191a; }

.warranty-registration-page .lookup-result {
  color: #20201f;
  background: #f7f7f7;
  border-left-color: #bd2021;
}

.warranty-registration-page .photo-slot-grid { gap: 16px; }
.warranty-registration-page .photo-slot { padding: 0; overflow: visible; border: 0; border-radius: 7px; background: transparent; }
.warranty-registration-page .photo-slot > span { display: none; }
.warranty-registration-page .photo-slot .upload-zone { min-height: 0; border: 1px solid #cfd4dc; background-color: #f7f8fa; }
.warranty-registration-page .photo-slot .upload-zone strong { color: #20201f; font-size: 12px; font-weight: 500; }
.warranty-registration-page .photo-slot .vehicle-photo-upload {
  min-height: 0;
  aspect-ratio: 1.18 / 1;
  padding: 0;
  overflow: visible;
  place-content: stretch;
  background-color: #f7f8fa;
  background-image: var(--photo-guide) !important;
  background-position: center 42%;
  background-repeat: no-repeat;
  background-size: calc(100% - 26px) auto;
  border: 1px solid #cfd4dc;
  border-radius: 7px;
}
.warranty-registration-page .vehicle-photo-input {
  position: absolute !important;
  inset: auto !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.warranty-registration-page .vehicle-photo-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  color: #20201f;
  background: rgba(247,248,250,.94);
}
.warranty-registration-page .vehicle-photo-overlay strong { display: none; }
.warranty-registration-page .vehicle-photo-overlay small { display: none; }
.warranty-registration-page .photo-picker-trigger {
  min-height: 30px;
  padding: 4px 10px;
  color: #111;
  background: transparent;
  border: 0;
  font: 500 14px/1.2 "Lato",sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.warranty-registration-page .photo-source-menu {
  position: absolute;
  right: 12px;
  bottom: 48px;
  z-index: 5;
  width: min(230px,calc(100% - 24px));
  padding: 8px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}
.warranty-registration-page .photo-source-menu button {
  display: block;
  width: 100%;
  padding: 12px;
  color: #20201f;
  background: #fff;
  border: 0;
  text-align: left;
  font: 600 13px/1.2 "Lato",sans-serif;
  cursor: pointer;
}
.warranty-registration-page .photo-source-menu button + button { border-top: 1px solid #eee; }
.warranty-registration-page .photo-source-menu button:hover { color: #bd2021; background: #f8f8f8; }
.warranty-registration-page .photo-slot .preview-grid { display: none !important; }

.warranty-registration-page .checkbox-row { align-items: flex-start; gap: 14px; margin-top: 14px; padding: 12px 0; font-size: 14px; line-height: 1.55; cursor: pointer; }
.warranty-registration-page .checkbox-row,
.warranty-registration-page .checkbox-row span { color: #20201f; }
.warranty-registration-page .checkbox-row input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: #bd2021; cursor: pointer; }
.warranty-registration-page .checkbox-row span { flex: 1; padding-top: 1px; }
.warranty-registration-page #warranty-form > .form-card:last-child > .btn-block { margin-top: 34px !important; background: #bd2021; }

@media (max-width: 900px) {
  .warranty-registration-wrap { padding: 20px 12px; }
  .warranty-registration-panel { width: min(100%, 760px); padding-top: 38px; }
  .warranty-registration-heading { padding: 0 26px 34px; }
  .warranty-registration-panel > .alert,
  .warranty-registration-panel > form { margin-inline: 26px; }
}

@media (max-width: 600px) {
  .warranty-registration-page { padding-top: 0; }
  .warranty-registration-wrap { padding: 20px 10px; }
  .warranty-registration-panel { padding: 28px 0 38px; box-shadow: 0 14px 34px rgba(0, 0, 0, .16); }
  .warranty-registration-heading { padding: 0 20px 34px; }
  .warranty-registration-logo { width: 42%; min-width: 120px; margin-bottom: 25px; }
  .warranty-registration-panel > .alert,
  .warranty-registration-panel > form { margin-inline: 20px; }
  .warranty-registration-page .lookup-row,
  .warranty-registration-page .photo-slot-grid { grid-template-columns: minmax(0, 1fr); }
  .warranty-registration-page .form-section-title p { display: none; }
  .warranty-registration-page .form-group { margin-bottom: 30px; }
  .warranty-registration-page .form-group label { font-size: 15px; }
  .warranty-registration-page .vehicle-photo-overlay { align-items: center; flex-direction: row; }
  .warranty-registration-page .photo-picker-trigger { width: auto; }
  .warranty-registration-page .photo-source-menu { right: 8px; bottom: 48px; width: calc(100% - 16px); }
  .warranty-registration-page .checkbox-row { gap: 12px; font-size: 13px; }
  .warranty-registration-page .checkbox-row input { flex-basis: 26px; width: 26px; height: 26px; }
}

.warranty-submitted__panel { padding: 48px; text-align: center; }
.warranty-submitted__icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; color: #fff; background: #11865e; font-size: 34px; font-weight: 700; }
.warranty-submitted__panel h1 { margin: 14px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.warranty-submitted__panel > p { max-width: 650px; margin: 0 auto 30px; color: #6c6c72; }
.warranty-submitted__details { margin-top: 26px; text-align: left; }
.warranty-registration-page .warranty-submitted__details .detail-item span { color: #77777d; }
.warranty-registration-page .warranty-submitted__details .detail-item strong { color: #20201f; }
.warranty-registration-page .warranty-submitted__details .detail-item small { color: #66666c; }
.warranty-submitted__actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.warranty-registration-page .warranty-submitted__actions .btn-outline { color: var(--shop-red); background: #fff; border-color: var(--shop-red); }
.warranty-registration-page .warranty-submitted__actions .btn-outline:hover { color: #fff; background: var(--shop-red-hover); border-color: var(--shop-red-hover); }
@media (max-width: 600px) {
  .warranty-submitted__panel { padding: 30px 20px; }
  .warranty-submitted__actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 400px) {
  :root {
    --mobile-gutter-left: max(16px, env(safe-area-inset-left));
    --mobile-gutter-right: max(16px, env(safe-area-inset-right));
  }

  .hero-grid, .page-hero, .detail-hero { padding-left: 18px; padding-right: 18px; }
  .panel-body { padding-left: 16px; padding-right: 16px; }
  .panel-head { padding-left: 16px; padding-right: 16px; }
  .form-card { padding-left: 15px; padding-right: 15px; }
  .cta-band { padding-left: 18px; padding-right: 18px; }
}

/* Stable premium mobile navigation */
@media (max-width: 1080px) {
  :root { --menu-header-height: 96px; }

  html.nav-open { overflow: hidden; overscroll-behavior: none; }
  body.nav-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  html.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--menu-header-height);
    z-index: 2600;
    background: rgba(15, 15, 15, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
  }

  .nav-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    position: relative;
    display: block;
    color: #fff;
    background: linear-gradient(145deg, #292929, #1c1c1c);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 28px rgba(0, 0, 0, .24);
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color var(--animation-primary), border-color var(--animation-primary), box-shadow var(--animation-primary), transform var(--animation-primary);
  }

  .nav-toggle::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 5px;
    height: 5px;
    background: var(--shop-red);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 18, 18, .7);
    transition: opacity var(--animation-fast), transform var(--animation-primary);
  }

  .nav-toggle span {
    position: absolute;
    left: 13px;
    right: 13px;
    width: auto;
    height: 2px;
    margin: 0;
    display: block;
    background: currentColor;
    border-radius: 99px;
    transform-origin: center;
    transition: top var(--animation-primary), transform var(--animation-primary), width var(--animation-primary);
  }

  .nav-toggle span:first-child { top: 19px; }
  .nav-toggle span:last-child { top: 27px; left: 19px; }
  .nav-toggle:hover { border-color: rgba(255, 18, 18, .5); transform: translateY(-2px); }
  .nav-toggle:focus-visible { outline: 2px solid var(--shop-red); outline-offset: 4px; }
  .nav-toggle[aria-expanded="true"] { background: var(--shop-red); border-color: var(--shop-red); box-shadow: 0 12px 32px rgba(255, 18, 18, .28); }
  .nav-toggle[aria-expanded="true"]::after { opacity: 0; transform: scale(0); }
  .nav-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { top: 23px; left: 13px; transform: rotate(-45deg); }

  .main-nav {
    counter-reset: mobile-nav-item;
    isolation: isolate;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    background: linear-gradient(155deg, #151515 0%, #0d0d0d 70%, #160707 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  }

  .main-nav::before {
    content: "";
    position: fixed;
    right: -15%;
    bottom: -8%;
    width: min(78vw, 760px);
    aspect-ratio: 1.45;
    z-index: 0;
    background: linear-gradient(90deg, #111 0%, transparent 65%), url("../img/shop-concept-car.jpg") center / cover no-repeat;
    opacity: .11;
    filter: grayscale(1);
    pointer-events: none;
  }

  .main-nav::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    left: -260px;
    top: 8%;
    z-index: 0;
    background: radial-gradient(circle, rgba(255, 18, 18, .17), transparent 68%);
    pointer-events: none;
  }

  html.nav-open .main-nav.open {
    top: var(--menu-header-height);
    height: calc(100vh - var(--menu-header-height));
    height: calc(100dvh - var(--menu-header-height));
    padding: clamp(32px, 6vh, 64px) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }

  .main-nav > a {
    counter-increment: mobile-nav-item;
    width: 100%;
    min-height: 66px;
    padding: 13px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #f4f4f4;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    position: relative;
    z-index: 1;
    transition: color var(--animation-fast), padding-left var(--animation-primary), border-color var(--animation-fast);
  }

  .main-nav > a::before {
    content: "0" counter(mobile-nav-item);
    flex: 0 0 26px;
    color: var(--shop-red);
    font: 700 10px/1 Helvetica, Arial, sans-serif;
    letter-spacing: .08em;
  }

  .main-nav > a::after {
    content: "→";
    position: static;
    width: 36px;
    height: 36px;
    margin-left: auto;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    font: 400 16px/1 Helvetica, Arial, sans-serif;
    transform: none;
    transition: color var(--animation-fast), background-color var(--animation-primary), border-color var(--animation-primary), transform var(--animation-primary);
  }

  .main-nav > a:hover, .main-nav > a.active { color: #fff; padding-left: 8px; border-color: rgba(255, 18, 18, .55); }
  .main-nav > a:hover::after, .main-nav > a.active::after { color: #fff; background: var(--shop-red); border-color: var(--shop-red); transform: rotate(-35deg); }

  .mobile-nav-actions {
    margin-top: auto;
    position: relative;
    z-index: 1;
  }

  .mobile-nav-actions a {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    color: #d5d5d5;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
  }
}

@media (max-width: 680px) {
  :root { --menu-header-height: 82px; }
  html.nav-open .brand img { width: 126px; }
}

@media (max-width: 560px) {
  :root { --menu-header-height: 76px; }
  .nav-toggle { width: 46px; height: 46px; border-radius: 14px; }
  .nav-toggle span:first-child { top: 18px; }
  .nav-toggle span:last-child { top: 26px; }
  .nav-toggle[aria-expanded="true"] span:first-child,
  .nav-toggle[aria-expanded="true"] span:last-child { top: 22px; }
  html.nav-open .main-nav.open { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .main-nav > a { min-height: 60px; font-size: clamp(25px, 8vw, 31px); }
}

@media print {
  body, main { color: #111 !important; background: #fff !important; }
  .shop-topbar, .service-strip { display: none !important; }
  .certificate { color: #111; background: #fff; }
  .certificate-body { background: #fff; }
  .certificate-block { color: #111; background: #f3f3f3; }
  .certificate-block strong, .certificate-title h1 { color: #111; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/*
 * Authoritative boxed layout system.
 * Every page region keeps an outer frame gap and every content container keeps
 * an additional inner gutter, preventing headers, cards, forms and tables from
 * touching either viewport edge at any breakpoint.
 */
:root {
  --layout-max: 1440px;
  --layout-gutter: clamp(22px, 3vw, 48px);
  --layout-frame: min(calc(100% - clamp(32px, 6vw, 96px)), var(--layout-max));
}

.container,
.container.narrow {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}
.container { max-width: var(--layout-max); }
.container.narrow { max-width: 1040px; }

.shop-topbar,
.site-header,
.hero,
.page-hero,
.detail-hero,
.cta-band,
main.auth-page,
main.certificate-page,
main.section-sm,
main > .section,
.service-strip,
.site-footer {
  width: var(--layout-frame);
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
}

.shop-topbar { display: block; padding: 0; }
.shop-topbar__inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
}
.site-header { border-radius: 0 0 var(--shop-card-radius) var(--shop-card-radius); }
.hero,
.page-hero,
.detail-hero,
.cta-band,
main.auth-page,
main.certificate-page,
main.section-sm,
main > .section,
.service-strip,
.site-footer { border-radius: var(--shop-card-radius); }

.hero-media > .container,
.cta-band > .container {
  width: 100%;
  max-width: var(--layout-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

.page-hero,
.detail-hero,
.cta-band { padding-left: 0; padding-right: 0; }
.section > .container,
.section-sm > .container,
main.section-sm > .container,
.service-strip > .container,
.site-footer > .container { min-width: 0; }

@media (max-width: 1080px) {
  .shop-topbar__inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root {
    --layout-gutter: max(18px, env(safe-area-inset-left));
    --layout-frame: calc(100% - 20px);
  }

  .container,
  .container.narrow,
  .hero-media > .container,
  .cta-band > .container {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--layout-gutter);
    padding-right: var(--layout-gutter);
  }

  .shop-topbar,
  .site-header,
  .hero,
  .page-hero,
  .detail-hero,
  .cta-band,
  main.auth-page,
  main.certificate-page,
  main.section-sm,
  main > .section,
  .service-strip,
  .site-footer {
    width: var(--layout-frame);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .page-hero,
  .detail-hero,
  .cta-band { padding-left: 0; padding-right: 0; }

  .roll-list-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .roll-list-actions .btn, .roll-list-actions .search-bar { width: 100%; }
  .qr-sheet-actions { align-items: stretch; flex-direction: column; }
  .qr-sheet-actions .btn { width: 100%; }
  .qr-sheet { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1180px) and (min-width: 721px) {
  .qr-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  .qr-sheet-page .shop-topbar,
  .qr-sheet-page .site-header,
  .qr-sheet-page .site-footer,
.qr-sheet-page .service-strip,
  .qr-sheet-page .page-hero,
  .qr-sheet-page .qr-sheet-actions { display: none !important; }
  .qr-sheet-page,
  .qr-sheet-page main,
  .qr-sheet-page .section-sm { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; color: #111 !important; background: #fff !important; }
  .qr-sheet-page .container { width: 100% !important; max-width: none !important; padding: 0 !important; }
  .qr-sheet-page .qr-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8mm; }
  .qr-sheet-page .qr-sheet-label { padding: 8mm; border: 1px solid #111; page-break-inside: avoid; }
}
