/* ===========================================================
   Glass UI — used sparingly: nav pill, rally rows, register card
   =========================================================== */

.glass {
  position: relative;
  overflow: hidden;
  background: rgba(22, 33, 48, 0.5);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-radius: 16px;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    transparent 40%,
    rgba(var(--accent-rgb), 0.05)
  );
  pointer-events: none;
}

.glass > * {
  position: relative;
  z-index: 2;
}

/* rally row uses glass as its own layer, keep specificity higher than .glass base rule */
.rally-row.glass { border-radius: 14px; }
.rally-row.glass:hover {
  border-color: color-mix(in srgb, var(--accent-2) 45%, var(--line) 55%);
}

.audience-card__label .glass-chip {
  display: none;
}
/* ===========================================================
   International Air Rally — base styles
   Brand tokens sourced from copy/brand-kit.md
   =========================================================== */

:root {
  --navy: #0D1B2A;
  --midnight: #162130;
  --slate: #1F2937;
  --cloud: #F7F8FA;
  --gray: #C6CCD3;
  --orange: #F26A21;
  --orange-rgb: 242, 106, 33;
  --gold: #D9A441;
  --sky: #3E8FC4;

  --bg: var(--navy);
  --surface: var(--midnight);
  --surface-2: var(--slate);
  --text: var(--cloud);
  --muted: var(--gray);
  --accent: var(--orange);
  --accent-rgb: var(--orange-rgb);
  --accent-2: var(--gold);
  --line: rgba(198, 204, 211, 0.18);

  --font: 'Inter', sans-serif;
  --font-head: 'Cormorant Garamond', serif;

  --container: 1240px;
  --section-pad: clamp(56px, 8vw, 104px);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--navy); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-2);
}

p { margin: 0; }
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s, background 0.35s, border-color 0.35s;
}
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 75%, #fff 15%));
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.28);
}
.btn--primary:hover { box-shadow: 0 16px 40px rgba(var(--accent-rgb), 0.4); }

.btn--ghost {
  background: rgba(247, 248, 250, 0.04);
  border-color: rgba(247, 248, 250, 0.35);
  color: var(--cloud);
}
.btn--ghost:hover { border-color: var(--cloud); background: rgba(247,248,250,0.08); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 56px);
  background: linear-gradient(to bottom, rgba(13,27,42,0.75), transparent);
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(13, 27, 42, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__mark { width: 88px; height: 88px; display: block; border-radius: 50%; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 34px);
  font-size: 14px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 600;
}
.nav__links a { color: var(--muted); transition: color 0.25s; position: relative; }
.nav__links a:hover { color: var(--cloud); }
.nav__cta { display: none; }
.nav__toggle { display: none; }

.nav .btn--primary.nav__cta { padding: 17px 34px; font-size: 15px; }

@media (max-width: 1040px) and (min-width: 861px) {
  .nav__mark { width: 52px; height: 52px; }
  .nav__links { font-size: 11px; letter-spacing: 0.6px; gap: clamp(8px, 1.2vw, 16px); }
  .nav .btn--primary.nav__cta { padding: 12px 22px; font-size: 12px; }
}
@media (max-width: 860px) {
  .nav__links:not(.nav__cta-wrap) { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: rgba(255,255,255,0.03);
    color: var(--cloud);
    font-size: 18px;
  }
}
@media (min-width: 861px) { .nav__cta { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__video-wrap {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero__video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(13,27,42,0.96) 0%, rgba(13,27,42,0.35) 46%, rgba(13,27,42,0.55) 100%),
    linear-gradient(to right, rgba(13,27,42,0.5) 0%, transparent 45%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(20px, 5vw, 48px) clamp(64px, 9vw, 108px);
}
.hero__eyebrow { margin-bottom: 22px; }
.hero__title {
  font-size: clamp(42px, 7.4vw, 96px);
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--cloud);
  max-width: 16ch;
}
.hero__title em {
  font-style: italic;
  color: var(--accent-2);
}
.hero__sub {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--gray);
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  right: clamp(20px, 5vw, 48px);
  bottom: clamp(64px, 9vw, 108px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll .line { width: 1px; height: 46px; background: linear-gradient(to bottom, var(--accent-2), transparent); }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* ---------- Section shell ---------- */
section { position: relative; }
.section {
  padding: var(--section-pad) 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
  margin-top: 16px;
  color: var(--cloud);
}
.section-head .lede { margin-top: 18px; }

/* ---------- Impact (pinned) ---------- */
.impact {
  background: var(--midnight);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.impact__pin {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 48px);
}
.impact__statement {
  max-width: 1080px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-size: clamp(28px, 5.4vw, 58px);
  font-weight: 600;
  line-height: 1.28;
  text-align: center;
}
.impact__statement .word { display: inline-block; margin: 0 0.14em; color: var(--gray); }
.impact__statement .word.accent { color: var(--accent-2); font-style: italic; }

/* ---------- Feature (alternating) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.feature--reverse .feature__media { order: 2; }
.feature--reverse .feature__text { order: 1; }
.feature__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
}
.feature__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.55), transparent 45%);
}
.feature__number {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.feature__title { margin-top: 14px; font-size: clamp(28px, 3.6vw, 42px); color: var(--cloud); }
.feature__body { margin-top: 20px; color: var(--gray); font-size: 16px; max-width: 46ch; line-height: 1.75; }
.feature__list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feature__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--cloud); font-size: 15px; }
.feature__list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  margin-top: 8px;
  background: var(--accent-2);
}

@media (max-width: 820px) {
  .feature, .feature--reverse .feature__media, .feature--reverse .feature__text {
    order: initial;
  }
  .feature { grid-template-columns: 1fr; }
}

/* ---------- Design & Materials (pinned crossfade) ---------- */
.design {
  background: var(--midnight);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.design__pin {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: 120px clamp(20px, 5vw, 48px);
}
.design__stage {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.design__stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
.design__stage img.is-first { opacity: 1; }
.design__panels { display: flex; flex-direction: column; gap: 8px; }
.design__panel {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.4s ease;
}
.design__panel:last-child { border-bottom: 1px solid var(--line); }
.design__panel.is-active { opacity: 1; }
.design__panel h3 { font-size: clamp(20px, 2.4vw, 27px); color: var(--cloud); }
.design__panel p { margin-top: 10px; color: var(--gray); font-size: 15px; max-width: 44ch; line-height: 1.7; }
@media (max-width: 820px) { .design__pin { grid-template-columns: 1fr; } }

/* ---------- Audience cards ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.audience-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  isolation: isolate;
}
.audience-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.16,1,.3,1); }
.audience-card:hover img { transform: scale(1.08); }
.audience-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.92) 8%, rgba(13,27,42,0.15) 55%, transparent 75%);
}
.audience-card__label {
  position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2;
}
.audience-card__label .tag {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: var(--accent-2);
}
.audience-card__label h3 { margin-top: 8px; font-size: 21px; color: var(--cloud); }
.audience-card__label p { margin-top: 6px; font-size: 13px; color: var(--gray); line-height: 1.5; }

@media (max-width: 980px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .audience-grid { grid-template-columns: 1fr; } .audience-card { aspect-ratio: 16/11; } }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--midnight); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card { padding: 32px 28px; }
.testimonial-card p {
  font-family: var(--font-head); font-style: italic; font-size: 18px;
  color: var(--gray); line-height: 1.65;
}
.testimonial-card .sig {
  margin-top: 22px; font-size: 12.5px; letter-spacing: 0.5px;
  color: var(--accent-2); font-weight: 600;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .specs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .specs-grid { grid-template-columns: 1fr; } }

/* ---------- Register CTA ---------- */
.register {
  position: relative;
  padding: var(--section-pad) 0;
  background-image: url("../img/register-bg.jpg");
  background-size: cover;
  background-position: center 30%;
}
.register::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.94) 0%, rgba(13,27,42,0.88) 100%);
}
.register .container { position: relative; z-index: 1; }
.register__head { max-width: 640px; margin: 0 auto; text-align: center; }
.register__head h2 { font-size: clamp(32px, 4.6vw, 56px); color: var(--cloud); margin-top: 16px; }
.register__head .lede { margin: 18px auto 0; text-align: center; }

.rally-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rally-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
}
.rally-row .name { font-family: var(--font-head); font-size: 20px; color: var(--cloud); }
.rally-row .dates { font-size: 14px; color: var(--gray); }
.rally-row .status {
  justify-self: end;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700;
  padding: 8px 14px; border-radius: 999px;
  white-space: nowrap;
}
.status--limited { background: rgba(var(--accent-rgb), 0.16); color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.4); }
.status--soon { background: rgba(198,204,211,0.08); color: var(--muted); border: 1px solid var(--line); }
.status--full { background: rgba(198,204,211,0.05); color: var(--muted); border: 1px solid var(--line); }
.status--complete { background: rgba(198,204,211,0.05); color: var(--muted); border: 1px solid var(--line); }

@media (max-width: 700px) {
  .rally-row { grid-template-columns: 1fr; text-align: left; gap: 8px; }
  .rally-row .status { justify-self: start; }
}

.register__cta { margin-top: 48px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 0;
  padding: 12vh clamp(20px, 5vw, 48px) 6vh;
  background: var(--navy);
}
.footer::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 100%; height: 30vh;
  background: linear-gradient(to bottom, transparent, var(--navy));
  pointer-events: none;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  max-width: var(--container);
  margin: 0 auto;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer__brand__row { display: flex; align-items: center; gap: 16px; }
.footer__brand .mark { width: 64px; height: 64px; border-radius: 50%; }
.footer__brand .tag { font-family: var(--font-head); font-size: 18px; font-style: italic; color: var(--cloud); }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer__social a:hover { color: var(--cloud); border-color: var(--cloud); background: rgba(247,248,250,0.05); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col h4 { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: var(--gray); transition: color 0.2s; }
.footer__col a:hover { color: var(--cloud); }
.footer__bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Rally detail page ---------- */
.rally-hero {
  position: relative;
  padding: clamp(140px, 18vw, 200px) 0 clamp(64px, 9vw, 100px);
  background-image: url("../img/register-bg.jpg");
  background-size: cover;
  background-position: center 30%;
}
.rally-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.82) 60%, var(--navy) 100%);
}
.rally-hero--light::before {
  background: linear-gradient(180deg, rgba(13,27,42,0.72) 0%, rgba(13,27,42,0.58) 60%, var(--navy) 100%);
}
.rally-hero--lightest::before {
  background: linear-gradient(180deg, rgba(13,27,42,0.48) 0%, rgba(13,27,42,0.32) 60%, var(--navy) 100%);
}
.rally-hero--lightest { background-position: center 85%; }
.rally-hero .container { position: relative; z-index: 1; }
.rally-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.rally-hero__back:hover { color: var(--cloud); }
.rally-hero h1 { font-size: clamp(36px, 6vw, 64px); color: var(--cloud); margin-top: 16px; max-width: 20ch; }
.rally-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 26px; }
.rally-hero__meta .dates { font-size: 16px; color: var(--gray); }

.itinerary-list { list-style: none; margin: 24px 0 0; padding: 0; }
.itinerary-list li { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.itinerary-list li:first-child { border-top: none; padding-top: 0; }
.itinerary-list li:last-child { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.itinerary-list .leg-label {
  font-family: var(--font); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; flex-shrink: 0; width: 112px; padding-top: 2px;
}
.itinerary-list .leg-body h4 { font-family: var(--font-head); font-size: 19px; color: var(--cloud); font-weight: 600; }
.itinerary-list .leg-body p { margin-top: 6px; font-size: 14px; color: var(--gray); line-height: 1.6; }
@media (max-width: 560px) {
  .itinerary-list li { flex-direction: column; gap: 6px; }
  .itinerary-list .leg-label { width: auto; }
}

.rally-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .rally-grid { grid-template-columns: 1fr; } }

.rally-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 110px; }
.rally-card { padding: 26px 28px; }
.rally-card h4 {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 16px;
}
.rally-card .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.rally-card .row:first-of-type { border-top: none; padding-top: 0; }
.rally-card .row span:first-child { color: var(--gray); }
.rally-card .row span:last-child { color: var(--cloud); font-weight: 600; text-align: right; }
.rally-card .btn { width: 100%; margin-top: 18px; }

.rally-map {
  margin-top: 32px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  background: var(--navy);
}
.rally-map svg, .rally-map img { display: block; width: 100%; height: auto; }

.includes-list {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
}
.includes-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--cloud); }
.includes-list li::before {
  content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  margin-top: 7px; background: var(--accent-2);
}
@media (max-width: 560px) { .includes-list { grid-template-columns: 1fr; } }
.rally-note { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Contact page ---------- */
.contact-form {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form .field.full { grid-column: 1 / -1; }
.contact-form label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.contact-form input, .contact-form select, .contact-form textarea {
  background: rgba(247,248,250,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--cloud);
  transition: border-color 0.2s, background 0.2s;
}
.contact-form textarea { resize: vertical; min-height: 64px; }
.contact-form .field-hint { font-size: 12px; color: var(--muted); margin-top: -2px; }
.contact-form .form-group-label {
  grid-column: 1 / -1;
  font-family: var(--font-head); font-style: italic; font-size: 17px;
  color: var(--accent-2); margin-top: 8px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.contact-form .form-group-label:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.person-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247,248,250,0.02);
}
.person-group .group-title {
  grid-column: 1 / -1;
  font-family: var(--font-head); font-size: 20px; color: var(--cloud);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.person-group .remove-person {
  font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; font-weight: 600;
  color: var(--muted); background: none; border: none; cursor: pointer; padding: 4px 0;
}
.person-group .remove-person:hover { color: var(--accent); }
.add-person { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 640px) { .person-group { grid-template-columns: 1fr; padding: 20px; } }
.contact-form select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23C6CCD3' stroke-width='1.6'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
.contact-form select option { background: var(--midnight); color: var(--cloud); }
.contact-form input::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-2); background-color: rgba(247,248,250,0.07); }
.contact-form button[type="submit"] { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.provide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
@media (max-width: 980px) { .provide-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .provide-grid { grid-template-columns: 1fr; } }

/* ---------- Contact quicklinks ---------- */
.contact-quicklinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-quicklink {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 12px;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1);
}
.contact-quicklink:hover { transform: translateY(-3px); }
.contact-quicklink__icon {
  width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  transition: border-color 0.2s, background 0.2s;
}
.contact-quicklink:hover .contact-quicklink__icon { border-color: var(--accent-2); background: rgba(217,164,65,0.08); }
.contact-quicklink__icon svg { width: 38px; height: 38px; }
.contact-quicklink__label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.4px; color: var(--cloud);
}
@media (max-width: 640px) { .contact-quicklinks { grid-template-columns: 1fr; } }

/* ---------- Rally mood gallery ---------- */
.mood-gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.mood-gallery figure {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.mood-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(.16,1,.3,1);
}
.mood-gallery figure:hover img { transform: scale(1.08); }

.mood-gallery--large {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.mood-gallery--large figure { aspect-ratio: 5 / 4; border-radius: 18px; }
.mood-gallery--large figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.8) 0%, transparent 42%);
  pointer-events: none;
}
.mood-gallery--large figcaption {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2;
  font-size: 15px; font-weight: 600; color: var(--cloud); line-height: 1.4;
}
.mood-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mood-gallery--cols-3 figure { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .mood-gallery--cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .mood-gallery--large, .mood-gallery--cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .mood-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .mood-gallery { grid-template-columns: 1fr; } }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 12px; }
.countdown__unit {
  flex: 1;
  text-align: center;
  background: rgba(247,248,250,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 6px;
}
.countdown__value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 480px) { .countdown { gap: 8px; } .countdown__unit { padding: 12px 4px; } }

/* ---------- Nav cart icon ---------- */
.nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--cloud);
  cursor: pointer;
  transition: background 0.2s;
}
.nav__cart:hover { background: rgba(247,248,250,0.06); }
.nav__cart svg { width: 20px; height: 20px; }
.nav__cart-count {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

/* ---------- Shop hero ---------- */
.shop-hero {
  position: relative;
  padding: clamp(150px, 20vw, 220px) 0 clamp(80px, 10vw, 120px);
  background-image: url("../img/audience-owner-pilots.jpg");
  background-size: cover;
  background-position: center 60%;
  text-align: center;
}
.shop-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.88) 0%, rgba(13,27,42,0.82) 55%, var(--navy) 100%);
}
.shop-hero .container { position: relative; z-index: 1; max-width: 760px; }
.shop-hero .eyebrow { justify-content: center; }
.shop-hero h1 { font-size: clamp(38px, 6.5vw, 72px); color: var(--cloud); margin-top: 18px; }
.shop-hero p.lede { margin: 22px auto 0; text-align: center; }
.shop-hero__secondary { margin-top: 10px; font-family: var(--font-head); font-style: italic; color: var(--accent-2); font-size: 17px; }
.shop-hero__actions { margin-top: 38px; display: flex; justify-content: center; }

/* ---------- Featured / editorial cards ---------- */
.featured-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.featured-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  isolation: isolate;
  display: block;
  background: var(--midnight);
}
.featured-card img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 28px; box-sizing: border-box;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.7s cubic-bezier(.16,1,.3,1);
}
.featured-card:hover img { transform: scale(1.06); }
.featured-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.92) 10%, rgba(13,27,42,0.1) 55%, transparent 75%);
}
.featured-card__body { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; }
.featured-card__badge {
  display: inline-block; margin-bottom: 10px;
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700;
  color: var(--accent-2);
}
.featured-card__body h3 { font-size: 24px; color: var(--cloud); }
.featured-card__body .price { margin-top: 8px; font-size: 15px; color: var(--gray); font-weight: 600; }

@media (max-width: 980px) { .featured-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .featured-grid { grid-template-columns: 1fr; } }

/* ---------- Product grid ---------- */
.product-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 460px) { .product-grid { grid-template-columns: 1fr; } }

.product-card { display: block; }
.product-card__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--cloud);
  border: 1px solid var(--line);
  padding: 22px;
  box-sizing: border-box;
}
.product-card__media img {
  width: 100%; height: 100%; object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(.16,1,.3,1);
}
.product-card__media img.hover-img { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-card__media img.base-img { transform: scale(1.05); }
.product-card:hover .product-card__media img.hover-img { opacity: 1; }
.product-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700;
  color: var(--navy); background: var(--accent-2);
  padding: 5px 10px; border-radius: 999px;
}
.product-card__cta {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 16px; border-radius: 999px;
  background: rgba(13,27,42,0.85); backdrop-filter: blur(6px);
  border: 1px solid rgba(247,248,250,0.25);
  color: var(--cloud);
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s;
}
.product-card:hover .product-card__cta { opacity: 1; transform: translateY(0); }
.product-card:hover .product-card__cta { border-color: var(--accent-2); }
.product-card__body { margin-top: 16px; }
.product-card__cat { font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.product-card__name { margin-top: 6px; font-family: var(--font-head); font-size: 20px; color: var(--cloud); }
.product-card__desc { margin-top: 4px; font-size: 13.5px; color: var(--gray); }
.product-card__row { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-size: 15px; font-weight: 600; color: var(--accent-2); }
.product-card__swatches { display: flex; gap: 6px; }
.product-card__swatches span {
  width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-block;
}

/* ---------- Aviation lifestyle full-bleed section ---------- */
.lifestyle-section {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  background-image: url("../img/design-cockpit-1.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}
.lifestyle-section::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.72) 0%, rgba(13,27,42,0.55) 50%, rgba(13,27,42,0.85) 100%);
}
.lifestyle-section .container { position: relative; z-index: 1; max-width: 680px; }
.lifestyle-section h2 { font-size: clamp(30px, 4.6vw, 50px); color: var(--cloud); }
.lifestyle-section p.lede { margin: 20px auto 0; text-align: center; }
.lifestyle-section .btn { margin-top: 32px; }

/* ---------- Rally participant strip ---------- */
.rally-participant {
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--midnight);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.rally-participant .container { max-width: 640px; }
.rally-participant .eyebrow { justify-content: center; }
.rally-participant h2 { margin-top: 14px; font-size: clamp(26px, 3.6vw, 38px); color: var(--cloud); }
.rally-participant p.lede { margin: 16px auto 0; text-align: center; }
.rally-participant .btn { margin-top: 28px; }

/* ---------- Trust grid ---------- */
.trust-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item { text-align: center; padding: 6px; }
.trust-item__icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
}
.trust-item__icon svg { width: 22px; height: 22px; }
.trust-item h4 { font-size: 14px; letter-spacing: 0.6px; color: var(--cloud); font-weight: 600; }
.trust-item p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Shipping info ---------- */
.shipping-block {
  margin-top: 24px;
  padding: 26px 28px;
}
.shipping-block h4 { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.shipping-block p { font-size: 14.5px; color: var(--gray); line-height: 1.7; }
.shipping-block p + p { margin-top: 10px; }

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }

.product-gallery__main {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--cloud);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  padding: 36px;
  box-sizing: border-box;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
.product-gallery__thumbs { margin-top: 14px; display: flex; gap: 10px; }
.product-thumb {
  width: 68px; height: 68px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--cloud); cursor: pointer;
  padding: 8px; box-sizing: border-box; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-thumb:hover { opacity: 0.85; }
.product-thumb.is-active { opacity: 1; border-color: var(--accent-2); }

.product-info { position: sticky; top: 120px; }
.product-info .eyebrow { justify-content: flex-start; }
.product-info h1 { margin-top: 14px; font-size: clamp(30px, 3.8vw, 44px); color: var(--cloud); }
.product-price { margin-top: 14px; font-size: 22px; font-weight: 600; color: var(--accent-2); }
.product-desc { margin-top: 18px; font-size: 15.5px; color: var(--gray); line-height: 1.75; max-width: 48ch; }

.variant-group { margin-top: 28px; }
.variant-group__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700;
  margin-bottom: 12px;
}
.size-guide-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent-2); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-btn {
  min-width: 46px; padding: 11px 16px;
  border-radius: 10px; border: 1px solid var(--line);
  background: rgba(247,248,250,0.03); color: var(--cloud);
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.variant-btn:hover { border-color: var(--gray); }
.variant-btn.is-selected { border-color: var(--accent-2); background: rgba(217,164,65,0.12); color: var(--accent-2); }
.variant-btn:disabled, .variant-btn.is-unavailable {
  opacity: 0.3; cursor: not-allowed; text-decoration: line-through;
}
.variant-swatch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(247,248,250,0.03);
  cursor: pointer; transition: border-color 0.2s;
}
.variant-swatch:hover { border-color: var(--gray); }
.variant-swatch.is-selected { border-color: var(--accent-2); }
.variant-swatch__dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
.variant-swatch__label { font-size: 13px; color: var(--cloud); font-weight: 600; }

.product-notice { margin-top: 14px; font-size: 13px; color: var(--accent); min-height: 18px; }

.product-qty-row { margin-top: 30px; display: flex; gap: 14px; align-items: center; }
.qty-stepper {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty-stepper button {
  width: 42px; height: 46px; border: none; background: transparent; color: var(--cloud);
  font-size: 16px; cursor: pointer; transition: background 0.2s;
}
.qty-stepper button:hover { background: rgba(247,248,250,0.06); }
.qty-stepper input {
  width: 40px; text-align: center; border: none; background: transparent; color: var(--cloud);
  font-family: var(--font); font-size: 15px; font-weight: 600;
}
.product-add { flex: 1; }
.product-shipping { margin-top: 20px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.product-note {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px;
  background: rgba(217,164,65,0.08); border: 1px solid rgba(217,164,65,0.25);
  font-size: 12.5px; color: var(--gray); line-height: 1.6;
}

@media (max-width: 640px) {
  .product-qty-row { flex-wrap: wrap; }
  .product-add { width: 100%; }
}

/* Sticky mobile add-to-cart bar */
.product-sticky-bar { display: none; }
@media (max-width: 640px) {
  .product-sticky-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(13,27,42,0.96); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .product-sticky-bar .price { font-weight: 600; color: var(--accent-2); font-size: 15px; }
  .product-sticky-bar .btn { flex: 1; }
}

/* ---------- Size guide modal ---------- */
.size-guide-overlay, .cart-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(13,27,42,0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.size-guide-overlay.is-open, .cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.size-guide-modal {
  position: fixed; z-index: 301;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: min(680px, calc(100vw - 40px));
  max-height: 82vh; overflow-y: auto;
  background: var(--midnight);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px clamp(20px, 4vw, 40px);
  box-shadow: 0 40px 90px rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.size-guide-modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.size-guide-modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--cloud);
  cursor: pointer;
}
.size-guide-modal__fit { margin-top: 22px; font-size: 16px; color: var(--accent-2); }
.size-guide-modal__fit:first-of-type { margin-top: 0; }
.size-guide-table-wrap { margin-top: 12px; overflow-x: auto; }
.size-guide-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.size-guide-table th, .size-guide-table td { padding: 9px 12px; text-align: left; white-space: nowrap; }
.size-guide-table th { color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.size-guide-table td { color: var(--gray); border-bottom: 1px solid var(--line); }
.size-guide-note { margin-top: 16px; font-size: 12px; color: var(--muted); }

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 301;
  width: min(420px, 100vw);
  background: var(--midnight);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
  box-shadow: -30px 0 70px rgba(0,0,0,0.4);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-drawer__head h3 { font-size: 20px; color: var(--cloud); }
.cart-drawer__close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--cloud);
  cursor: pointer;
}
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-drawer__empty { color: var(--muted); font-size: 14px; padding: 20px 0; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; background: var(--navy); flex-shrink: 0; }
.cart-line__body { flex: 1; min-width: 0; }
.cart-line__name { font-size: 14.5px; color: var(--cloud); font-weight: 600; }
.cart-line__meta { margin-top: 3px; font-size: 12px; color: var(--muted); }
.cart-line__row { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; }
.cart-line__qty { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); }
.cart-line__step {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--cloud); cursor: pointer; font-size: 13px; line-height: 1;
}
.cart-line__price { font-size: 13.5px; color: var(--accent-2); font-weight: 600; }
.cart-line__remove {
  align-self: flex-start; background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 13px; padding: 4px;
}
.cart-line__remove:hover { color: var(--cloud); }
.cart-drawer__footer { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 15px; color: var(--cloud); font-weight: 600; margin-bottom: 16px; }
.cart-drawer__checkout { width: 100%; }
.cart-drawer__continue { width: 100%; margin-top: 10px; }
body.cart-open { overflow: hidden; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===========================================================
   WooCommerce compatibility — restyles WC's native markup
   (variation form, cart, checkout, notices) to match the
   navy/gold design system. Product grid / single product
   layout above already matches the static mockup via the
   theme's own template overrides in /woocommerce/.
   =========================================================== */

.product-thumb-img {
  width: 68px; height: 68px; border-radius: 10px; overflow: hidden; object-fit: cover;
  border: 1px solid var(--line); background: var(--cloud); cursor: pointer;
  padding: 8px; box-sizing: border-box; opacity: 0.7; transition: opacity 0.2s, border-color 0.2s;
  display: inline-block; margin-right: 10px;
}
.product-thumb-img:hover { opacity: 1; border-color: var(--accent-2); }
.product-gallery__thumbs { margin-top: 14px; }

.woocommerce-variation-form-wrap { margin-top: 28px; }
.woocommerce-variation-form-wrap .variations {
  width: 100%; border-collapse: collapse; margin-bottom: 20px;
}
.woocommerce-variation-form-wrap .variations tr { display: flex; flex-direction: column; margin-bottom: 16px; }
.woocommerce-variation-form-wrap .variations td.label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700;
  padding-bottom: 8px;
}
.woocommerce-variation-form-wrap .variations td.value select {
  width: 100%; background: rgba(247,248,250,0.04); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; font-family: var(--font); font-size: 15px; color: var(--cloud);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23C6CCD3' stroke-width='1.6'%3E%3Cpath d='M5 7l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px;
}
.woocommerce-variation-form-wrap .variations td.value select option { background: var(--midnight); color: var(--cloud); }
.woocommerce-variation-form-wrap .reset_variations { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--accent-2); }
.woocommerce-variation-form-wrap .woocommerce-variation-price { margin: 12px 0; color: var(--accent-2); font-weight: 600; }
.woocommerce-variation-form-wrap .woocommerce-variation-availability { font-size: 13px; color: var(--muted); }

.quantity { display: inline-flex; align-items: center; }
.quantity input.qty {
  width: 64px; text-align: center; background: rgba(247,248,250,0.04); border: 1px solid var(--line);
  border-radius: 10px; color: var(--cloud); font-family: var(--font); font-size: 15px; padding: 13px 8px;
}
.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px; font-family: var(--font); font-size: 14px; font-weight: 600;
  letter-spacing: 0.4px; border: 1px solid transparent; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 75%, #fff 15%));
  color: var(--navy); box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.28);
  margin-top: 14px;
}
.woocommerce div.product form.cart .button { margin-top: 14px; }

.woocommerce-message, .woocommerce-error, .woocommerce-info {
  list-style: none; padding: 16px 20px; border-radius: 10px; margin: 0 0 24px;
  background: rgba(217,164,65,0.1); border: 1px solid rgba(217,164,65,0.3); color: var(--cloud);
}
.woocommerce-error { background: rgba(214,69,69,0.1); border-color: rgba(214,69,69,0.35); }

/* Cart page */
.woocommerce-cart-form table.shop_table,
.woocommerce-checkout-review-order-table {
  width: 100%; border-collapse: collapse; margin: 32px 0;
}
.woocommerce-cart-form table.shop_table th,
.woocommerce-cart-form table.shop_table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; color: var(--gray); font-size: 14px;
}
.woocommerce-cart-form table.shop_table th { color: var(--muted); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.woocommerce-cart-form .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.woocommerce-cart-form .product-name a { color: var(--cloud); font-family: var(--font-head); font-size: 17px; }
.woocommerce-cart-form .product-remove a { color: var(--muted); font-size: 20px; }
.woocommerce-cart-form td.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cart-collaterals .cart_totals { max-width: 420px; margin-left: auto; margin-top: 32px; }
.cart-collaterals .cart_totals table { width: 100%; }
.cart-collaterals .cart_totals th, .cart-collaterals .cart_totals td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--gray); }
.cart-collaterals .order-total .amount { color: var(--accent-2); font-weight: 700; }
.wc-proceed-to-checkout a.checkout-button { width: 100%; text-align: center; }

/* Checkout */
.woocommerce-checkout form.checkout .form-row { margin-bottom: 16px; }
.woocommerce-checkout label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100%; background: rgba(247,248,250,0.04); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; font-family: var(--font); font-size: 15px; color: var(--cloud);
}
.woocommerce-checkout #order_review { margin-top: 32px; }
#place_order { width: 100%; }

.woocommerce-page .container,
.woocommerce div.product { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
