@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;1,500;1,600;1,700;1,800&family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&display=swap');

/* ============================================================
   revstance.css — REVSTANCE · Car Bodykit Design
   Cold graphite + electric blue, oblique condensed type.
   Motif: the diagonal stripe from the logo's parallelogram.
   Loads on top of core.css.
   ============================================================ */

:root {
  --ink:        #0a0b0e;
  --ink-2:      #0e1015;
  --surface:    #14171e;
  --surface-2:  #1b1f29;
  --line:       rgba(255, 255, 255, .08);
  --line-2:     rgba(255, 255, 255, .17);

  --accent:      #2f4fff;
  --accent-hi:   #6480ff;
  --accent-deep: #16247a;
  --accent-rgb: 47, 79, 255;

  --text:   #e9ebf1;
  --text-2: #99a1b0;
  --muted:  #838b9c;

  --font-body:    'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  --font-display: 'Barlow Condensed', 'IBM Plex Sans Thai', sans-serif;

  --wrap: 1280px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 2px;
}

body { letter-spacing: .002em; }

/* ── type ──────────────────────────────────────────────────── */

.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-hi);
  display: flex;
  align-items: center;
  gap: 14px;
}
.kicker::before {
  content: '';
  width: 34px; height: 3px;
  background: var(--accent);
  transform: skewX(-30deg);
  flex: none;
}
.kicker.center { justify-content: center; }

.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.005em;
  font-size: clamp(38px, 6.4vw, 88px);
  color: #fff;
}
.display em { font-style: italic; color: var(--accent-hi); }
/* Barlow carries no Thai, so a slanted display heading would be a synthetic
   oblique — wrong for Thai. Set Thai upright in its own face instead. */
.display .th {
  display: block;          /* own line — it reads as a subtitle, not a run-on */
  margin-top: 8px;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: .72em;
  line-height: 1.35;
}
.display .th em { font-style: normal; }

h2.display { font-size: clamp(30px, 4.4vw, 58px); margin-block: 16px 18px; }

.thai-h {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.45;
  color: #fff;
}
.lede { color: var(--text-2); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.85; max-width: 62ch; }

.sec-head { margin-bottom: clamp(38px, 5vw, 60px); }
.sec-head.center { text-align: center; }
.sec-head.center .lede { margin-inline: auto; }

/* ── nav ───────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10, 11, 14, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.nav.scrolled { background: rgba(10, 11, 14, .97); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 40px; width: auto; }
.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: #fff;
  line-height: 1;
}
.nav-logo .wordmark { font-size: 25px; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding-block: 6px;
  transition: color .2s;
}
.nav-menu a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 3px; background: var(--accent);
  transform: skewX(-30deg);
  transition: right .28s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.nav-menu a:hover::after, .nav-menu a.active::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
/* the last menu item leaves the brand site for the company page — set it
   apart so it does not read as one more section of this page */
.nav-menu a.to-parent { color: var(--muted); }
.nav-menu a.to-parent:hover { color: #fff; }
.nav-toggle {
  display: none; width: 42px; height: 42px;
  background: none; border: 1px solid var(--line-2); border-radius: var(--radius);
  color: #fff; place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

.btn {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.btn-primary { box-shadow: 0 10px 34px -14px var(--accent); }

/* ── hero ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 112px);
}
.hero::before {
  content: '';
  position: absolute; inset: -40% -20% auto -40%; height: 150%;
  background:
    radial-gradient(42% 48% at 24% 26%, rgba(47, 79, 255, .30), transparent 70%),
    radial-gradient(38% 40% at 88% 68%, rgba(47, 79, 255, .12), transparent 70%);
  pointer-events: none;
}
/* the logo's parallelogram, blown up as a background element */
.hero::after {
  content: '';
  position: absolute; right: -6%; top: 12%;
  width: 62%; height: 74px;
  background: linear-gradient(90deg, transparent, rgba(47, 79, 255, .5));
  transform: skewX(-30deg);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-logo { width: clamp(150px, 19vw, 230px); margin-bottom: 26px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub { color: var(--text-2); font-size: clamp(15px, 1.3vw, 17.5px); line-height: 1.85; max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-style: italic; font-weight: 600;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-2);
  padding: 8px 15px 8px 12px;
  background: rgba(255, 255, 255, .03);
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.badge b { color: var(--accent-hi); font-weight: 700; }

.hero-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 52px), 0 100%);
}
.hero-shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }
.hero-shot::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(205deg, transparent 48%, rgba(10, 11, 14, .6));
}
.hero-tag {
  position: absolute; z-index: 2; left: 0; bottom: 62px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-style: italic; font-weight: 700;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 22px 9px 16px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* ── ticker ────────────────────────────────────────────────── */

.ticker { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding-block: 14px; }
.ticker-track { display: flex; width: max-content; animation: rev-slide 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-display);
  font-style: italic; font-weight: 600;
  font-size: 15px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 30px;
  padding-inline: 15px;
}
.ticker-track span::after { content: ''; width: 16px; height: 3px; background: var(--accent); transform: skewX(-30deg); }
@keyframes rev-slide { to { transform: translateX(-50%); } }

/* ── feature trio ──────────────────────────────────────────── */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--ink-2));
  padding: 30px 26px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.feature::before {
  content: '';
  position: absolute; left: -30px; top: 0; width: 60px; height: 3px;
  background: var(--accent);
  transform: skewX(-30deg);
  transition: left .35s;
}
.feature:hover { border-color: rgba(var(--accent-rgb), .5); transform: translateY(-4px); }
.feature:hover::before { left: 0; }
.feature .n {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 13px; letter-spacing: .2em; color: var(--accent-hi); margin-bottom: 14px;
}
.feature h3 { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: var(--text-2); line-height: 1.8; }

/* ── filter tabs ───────────────────────────────────────────── */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }
.tab {
  font-family: var(--font-display);
  font-style: italic; font-weight: 600;
  font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
  background: none;
  border: 1px solid var(--line-2);
  padding: 10px 20px;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: color .2s, background .2s, border-color .2s;
}
.tab:hover { color: #fff; border-color: var(--text-2); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── model panels ──────────────────────────────────────────── */

.panel {
  border: 1px solid var(--line);
  background: var(--ink-2);
  margin-bottom: 22px;
  overflow: hidden;
}
.panel[hidden] { display: none; }

.panel-media { display: grid; gap: 1px; background: var(--line); }
.panel-media.two { grid-template-columns: 1fr 1fr; }
/* a model now ships with a key visual plus part-by-part photography, so the
   strip wraps into a grid instead of stacking one 16:9 frame per shot */
.panel-media.grid { grid-template-columns: repeat(3, 1fr); }

.note {
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, .025);
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.85;
}
.note b { color: #fff; font-weight: 600; }
.panel-media figure { position: relative; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.panel-media figure:hover img { transform: scale(1.05); }
.panel-media figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 34px 16px 13px;
  background: linear-gradient(to top, rgba(10,11,14,.92), transparent);
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
/* the Model Y render is a light studio plate — let it stay bright */
.panel-media.studio { background: #eceef2; }
.panel-media.studio img { aspect-ratio: 16 / 10; object-fit: contain; background: linear-gradient(160deg, #f4f5f8, #dcdfe6); }

.panel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 26px clamp(20px, 3vw, 34px) 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(26px, 3.4vw, 42px); text-transform: uppercase; line-height: 1; color: #fff;
}
.panel-head .fit { font-size: 13.5px; color: var(--muted); margin-top: 7px; }
.flag {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 6px 16px 6px 11px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  align-self: center;
}
.flag.ghost { background: none; color: var(--accent-hi); border: 1px solid rgba(var(--accent-rgb), .5); }

.items { padding: 6px clamp(20px, 3vw, 34px) 26px; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 24px;
  align-items: center;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }
.item-name {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 19px; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.chip {
  font-family: var(--font-body); font-style: normal;
  font-size: 11.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 3px 11px;
}
.chip.full { color: var(--accent-hi); border-color: rgba(var(--accent-rgb), .5); }
.item p { font-size: 14px; color: var(--text-2); line-height: 1.75; margin-top: 6px; }
.item .ask {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-2);
  padding: 10px 18px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s, border-color .2s, background .2s;
}
.item .ask svg { width: 15px; height: 15px; }
.item .ask:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ── spec strip ────────────────────────────────────────────── */

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec { background: var(--ink); padding: 26px 22px 28px; }
.spec dt {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 9px;
}
.spec dd { font-size: 14.5px; color: var(--text-2); line-height: 1.8; }
.spec dd b { color: #fff; display: block; font-size: 17px; font-weight: 700; margin-bottom: 4px; }

/* ── cta ───────────────────────────────────────────────────── */

.cta {
  position: relative;
  text-align: center;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 50% 100%, rgba(47, 79, 255, .22), transparent 70%);
}
.cta .wrap { position: relative; z-index: 2; }
.cta p { color: var(--text-2); max-width: 54ch; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── footer ────────────────────────────────────────────────── */

footer { background: #000; border-top: 1px solid var(--line); padding-block: clamp(44px, 5vw, 64px) 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.foot-brand .mark { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.foot-brand img { height: 60px; width: auto; }
.foot-brand .wordmark { font-size: 30px; }
.foot-brand p { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 40ch; }
footer h4 {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.foot-links { list-style: none; display: grid; gap: 10px; }
.foot-links a, .foot-contact a, .foot-contact p { font-size: 14px; color: var(--muted); line-height: 1.8; transition: color .2s; }
.foot-links a:hover, .foot-contact a:hover { color: var(--accent-hi); }
.foot-contact a { display: block; }

/* brand channels — square like everything else on this page */
.socials { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--text-2); background: rgba(255, 255, 255, .03);
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.socials a:hover {
  color: #fff; border-color: var(--accent);
  background: rgba(var(--accent-rgb), .16); transform: translateY(-2px);
}
.socials svg { width: 17px; height: 17px; }

/* the one way back to the parent company */
.by-company {
  margin-top: clamp(34px, 4vw, 50px);
  border-top: 1px solid var(--line);
  padding-block: 26px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.by-company a { display: inline-flex; align-items: center; gap: 14px; transition: opacity .25s; }
.by-company a:hover { opacity: .75; }
.by-company img { height: 40px; width: auto; opacity: .9; }
.by-company span {
  font-family: var(--font-display); font-style: italic;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.by-company small { font-size: 12.5px; color: var(--muted); }

/* ── floating LINE ─────────────────────────────────────────── */

.float-line {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  background: #06c755; color: #fff;
  padding: 13px 20px 13px 16px;
  border-radius: 100px;
  font-weight: 600; font-size: 14.5px;
  box-shadow: 0 14px 34px -10px rgba(6, 199, 85, .6);
  transition: transform .25s;
}
.float-line:hover { transform: translateY(-3px) scale(1.02); }
.float-line svg { width: 21px; height: 21px; }

/* ── responsive ────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .features { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { order: -1; max-width: 520px; }
  .nav-menu {
    /* the nav's own backdrop-filter makes it the containing block for this
       fixed sheet, so the offset is measured from the nav, not the viewport:
       100% hangs it off the nav's bottom edge whatever its height. */
    position: fixed; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 11, 14, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 22px;
    transform: translateY(-14px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav-menu a::after { display: none; }
  .nav-toggle { display: grid; }
  .nav-cta .btn { display: none; }
}

@media (max-width: 380px) {
  .nav-logo .wordmark { display: none; }
}

@media (max-width: 700px) {
  .panel-media.grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .panel-media.two { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: auto; }
  .item { grid-template-columns: 1fr; }
  .item .ask { justify-self: start; }
  .float-line span { display: none; }
  .float-line { padding: 15px; }
  .hero-shot { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 0 100%); }
}

/* ── นิ้วโป้งต้องกดโดน ─────────────────────────────────────────
   ลิงก์ตัวหนังสือใน footer และหน้าติดต่อสูงราว 20px ซึ่งเล็กเกินไป
   สำหรับการกดบนมือถือ ขยายพื้นที่กดโดยไม่ขยับหน้าตาบนจอคอม   */
@media (max-width: 700px) {
  .foot-links a, .foot-contact a {
    display: block;
    min-height: 40px;
    padding-block: 9px;
    line-height: 1.5;
  }
}

/* ── quote list ──────────────────────────────────────────────
   Looks like a cart, takes no money: nothing on this page is
   priced, so the list gathers parts and hands them to LINE. The
   wording says "ขอใบเสนอราคา" everywhere for that reason — a
   visitor who reads "ตะกร้า" expects to pay at the end of it.
   ------------------------------------------------------------ */

.item .add {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.item .add svg { width: 15px; height: 15px; flex: none; }
.item .add:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.item .add.added { background: #06c755; border-color: #06c755; color: #fff; }
.item .add.added .add-label::after { content: 'แล้ว'; }

/* the counter sits on the nav button and on the floating bubble */
.q-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: none; color: #fff; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.q-btn:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.q-btn svg { width: 19px; height: 19px; }
.q-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 19px; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  display: grid; place-items: center;
}
.q-count[hidden] { display: none; }

.q-panel {
  position: fixed; inset: 0; z-index: 300;
  display: grid; grid-template-columns: 1fr min(460px, 100%);
}
.q-panel[hidden] { display: none; }
.q-panel::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(4, 5, 8, .72); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .24s;
}
.q-panel.open::before { opacity: 1; }
.q-scrim { grid-column: 1; cursor: pointer; }
.q-sheet {
  grid-column: 2; position: relative; z-index: 2;
  background: var(--ink-2); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s cubic-bezier(.3,.8,.4,1);
  overflow-y: auto;
}
.q-panel.open .q-sheet { transform: none; }

.q-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--q-pad, 26px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--ink-2); z-index: 2;
}
.q-head h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 24px; text-transform: uppercase; color: #fff;
}
.q-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.q-close {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: none; color: #fff; cursor: pointer;
}
.q-close svg { width: 16px; height: 16px; }

.q-body { padding: 0 var(--q-pad, 26px) 26px; }
.q-list { list-style: none; }
.q-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.q-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.q-name span { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.q-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); }
.q-qty button {
  width: 30px; height: 30px; background: none; border: 0; color: var(--text);
  font-size: 17px; line-height: 1; cursor: pointer;
}
.q-qty button:hover { color: var(--accent-hi); }
.q-qty b { min-width: 26px; text-align: center; font-size: 14px; }
.q-del { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }
.q-del:hover { color: #ff5b5b; }
.q-del svg { width: 15px; height: 15px; }

.q-empty { padding: 44px 0; text-align: center; color: var(--muted); font-size: 14.5px; }

.q-form { margin-top: 22px; display: grid; gap: 12px; }
.q-form label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.q-form input, .q-form select, .q-form textarea {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 11px 13px;
}
.q-form textarea { resize: vertical; min-height: 74px; }
.q-form input:focus, .q-form select:focus, .q-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.q-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-send {
  margin-top: 6px; width: 100%; justify-content: center;
  display: inline-flex; align-items: center; gap: 10px;
  background: #06c755; color: #fff; border: 0; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 15px 20px; cursor: pointer; transition: filter .2s;
}
.q-send:hover { filter: brightness(1.08); }
.q-send svg { width: 18px; height: 18px; }
.q-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 12px; }

@media (max-width: 700px) {
  .q-panel { grid-template-columns: 0 1fr; }
  .q-sheet { border-left: 0; }
  .q-form .two { grid-template-columns: 1fr; }
}

/* ── warranty registration ───────────────────────────────────
   A long form, so it is broken into named blocks and the labels sit
   above their fields: on a phone a two-column form is unreadable.
   ------------------------------------------------------------ */
.wf-head { max-width: 62ch; }
.wf-block { border: 1px solid var(--line); background: var(--ink-2); padding: clamp(20px,2.6vw,30px); margin-bottom: 16px; }
.wf-block > h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 20px; text-transform: uppercase; color: #fff; margin-bottom: 4px;
}
.wf-block > p.hint { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.wf-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.wf-grid.one { grid-template-columns: 1fr; }
.wf-block label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.wf-block label small { color: var(--muted); }
.wf-block input, .wf-block select, .wf-block textarea {
  width: 100%; font-family: var(--font-body); font-size: 14.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 11px 13px;
}
.wf-block textarea { min-height: 78px; resize: vertical; }
.wf-block input:focus, .wf-block select:focus, .wf-block textarea:focus { outline: none; border-color: var(--accent); }
.wf-item { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.wf-item:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.wf-del { background: none; border: 0; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 0; text-decoration: underline; }
.wf-del:hover { color: #ff5b5b; }
.wf-add {
  background: none; border: 1px dashed var(--line-2); color: var(--text-2);
  font-family: var(--font-body); font-size: 13.5px; padding: 11px 16px;
  border-radius: var(--radius); cursor: pointer; width: 100%; margin-top: 16px;
}
.wf-add:hover { border-color: var(--accent); color: #fff; }
.wf-err { border: 1px solid #ff5b5b; background: rgba(255,91,91,.08); color: #ffb3b3;
  padding: 13px 16px; font-size: 14px; margin-bottom: 16px; }
.wf-submit {
  width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 15.5px; padding: 16px;
  cursor: pointer; transition: filter .2s;
}
.wf-submit:hover { filter: brightness(1.1); }
.wf-submit:disabled { opacity: .6; cursor: default; }
.wf-note { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 14px; }

/* the certificate panel shown after submitting */
.wf-done { border: 1px solid var(--accent); background: var(--ink-2); padding: clamp(24px,3vw,40px); }
.wf-done .tag {
  display: inline-block; font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 6px 12px; margin-bottom: 18px;
}
.wf-no {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(30px,5vw,54px); color: #fff; line-height: 1; letter-spacing: .01em;
}
.wf-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-top: 26px; }
.wf-rows > div { background: var(--ink-2); padding: 16px 18px; }
.wf-rows dt { font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.wf-rows dd { font-size: 15px; color: #fff; margin-top: 5px; }

@media (max-width: 700px) {
  .wf-grid, .wf-grid.three, .wf-rows { grid-template-columns: 1fr; }
}

/* file attachments on the registration form */
.wf-up { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.wf-up input[type=file] { padding: 10px 12px; font-size: 13.5px; cursor: pointer; }
.wf-up input[type=file]::file-selector-button {
  font-family: var(--font-body); font-size: 13px; margin-right: 12px;
  padding: 7px 13px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.wf-files { list-style: none; margin-top: 10px; display: grid; gap: 5px; }
.wf-files li { font-size: 12.5px; color: var(--muted); padding-left: 18px; position: relative; word-break: break-all; }
.wf-files li::before { content: '○'; position: absolute; left: 0; }
.wf-files li.ok { color: #6ee7a0; }
.wf-files li.ok::before { content: '✓'; }
.wf-files li.bad { color: #ff8f8f; }
.wf-files li.bad::before { content: '✕'; }

/* language switch — same button in every nav */
.lang-btn {
  flex: none;
  font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 0 12px; height: 42px; min-width: 50px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: none; color: var(--text); cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.lang-btn:hover { border-color: var(--accent); color: #fff; background: rgba(var(--accent-rgb), .12); }
