/**
 * /buy/ Phase A — Carwow-clone landing in CPSA chassis colors.
 * Chassis nav + footer come from the global wrappers; this file is body-only.
 */

.ax-buy {
  --ink: #232A25;
  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-soft: #FFE6E6;
  --paper: #fff;
  --paper-soft: #F2F2F2;
  --paper-warm: #FAFAF8;
  --line: rgba(35,42,37,0.08);
  --mute: rgba(35,42,37,0.55);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
.ax-buy a { text-decoration: none; color: inherit; }

/* ── RED HERO BLOCK ──────────────────────────────────── */
.ax-buy .hero { background: var(--red); position: relative; padding: 24px 24px 0; overflow: visible; min-height: 300px; display: flex; align-items: flex-start; justify-content: center; }
.ax-buy .hero-content { position: relative; z-index: 3; text-align: center; max-width: 700px; margin: 0 auto; }
.ax-buy .search-panel { position: relative; z-index: 10; margin-top: 24px; transform: translateY(60px); background: #14181a; color: #fff; border-radius: 14px; padding: 8px 44px 32px; max-width: 1040px; margin-left: auto; margin-right: auto; box-shadow: 0 18px 40px rgba(0,0,0,0.26); }
.ax-buy .side-car { position: absolute; bottom: 0; width: 30vw; max-width: 500px; min-width: 340px; aspect-ratio: 16/9; z-index: 1; pointer-events: none; background-size: contain; background-position: bottom center; background-repeat: no-repeat; }
@media (max-width: 880px) { .ax-buy .side-car { display: none; } }

.ax-buy .hero h1 { font-size: clamp(26px, 2vw + 10px, 42px); font-weight: 900; letter-spacing: -0.035em; line-height: 0.95; margin: 0 0 16px; color: var(--ink); text-transform: uppercase; }

.ax-buy .tabs { display: flex; gap: 24px; padding: 12px 0 8px; justify-content: center; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 14px; }
.ax-buy .tab { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.55); padding-bottom: 9px; margin-bottom: -10px; cursor: pointer; border-bottom: 2px solid transparent; }
.ax-buy .tab.active { color: #fff; border-bottom-color: #fff; }
.ax-buy .search-input { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 4px 4px 4px 18px; }
.ax-buy .search-input input { flex: 1; border: 0; outline: 0; font-size: 14px; padding: 10px 0; background: transparent; color: var(--ink); font-family: inherit; }
.ax-buy .search-input input::placeholder { color: #999; }
.ax-buy .search-input button { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 14px; }
.ax-buy .or-help { text-align: center; font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 10px; }
.ax-buy .or-help .ghost-btn { display: inline-block; margin-left: 6px; padding: 5px 12px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45); border-radius: 6px; font-weight: 600; font-size: 11px; cursor: pointer; }

/* Chip strip */
.ax-buy .chip-strip-band { background: #f5f5f5; padding: 95px 24px 16px; }
.ax-buy .chip-strip { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 1320px; margin: 0 auto; }
.ax-buy .icon-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--paper); border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all 0.15s; border: 1px solid transparent; }
.ax-buy .icon-chip:hover { border-color: var(--ink); }
.ax-buy .icon-chip .ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Sell banner */
.ax-buy .sellbanner { padding: 18px 24px 24px; background: #f5f5f5; }
.ax-buy .sellbanner-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,0.10); }
.ax-buy .sellbanner-left { background: #14181a; color: #fff; padding: 22px 32px 24px; }
.ax-buy .sellbanner-left h2 { font-size: clamp(20px, 1.6vw + 8px, 28px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 10px; text-transform: uppercase; }
.ax-buy .sellbanner-left p { font-size: 13px; color: rgba(255,255,255,0.78); line-height: 1.5; margin: 0 0 6px; max-width: 460px; }
.ax-buy .sellbanner-left a.primary { display: inline-block; margin-top: 10px; background: #fff; color: var(--ink); padding: 9px 18px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.ax-buy .sellbanner-right { background: var(--red); background-size: contain; background-position: right bottom; background-repeat: no-repeat; min-height: 160px; position: relative; }
.ax-buy .sb-reg { position: absolute; top: 28px; right: 28px; background: var(--red); color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }
.ax-buy .sb-trust { position: absolute; bottom: 18px; right: 18px; background: rgba(20,24,26,0.88); color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 12px; display: flex; align-items: center; gap: 8px; font-weight: 500; backdrop-filter: blur(8px); }
.ax-buy .sb-trust .stars { color: #fff; letter-spacing: 1.5px; font-size: 14px; }

/* Browse by budget */
.ax-buy .wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.ax-buy .budget { padding: 80px 0 64px; }
.ax-buy .budget-head { text-align: center; margin-bottom: 36px; }
.ax-buy .budget-head h2 { font-size: clamp(36px, 4vw + 8px, 60px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; margin: 0; text-transform: uppercase; color: var(--ink); }
.ax-buy .budget-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ax-buy .budget-tile { background: var(--paper-soft); border-radius: 14px; padding: 24px 18px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: background 0.18s; aspect-ratio: 1; }
.ax-buy .budget-tile:hover { background: #ebebeb; }
.ax-buy .budget-tile-photo { flex: 1; width: 100%; background-color: transparent; background-size: contain; background-position: center; background-repeat: no-repeat; min-height: 100px; }
.ax-buy .budget-tile-label { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 12px; letter-spacing: -0.01em; }

/* Electric is trending */
.ax-buy .trending { padding: 64px 0 96px; }
.ax-buy .trending-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
.ax-buy .trending-head .icon { width: 56px; height: 56px; flex-shrink: 0; background: var(--red-soft); border-radius: 16px; display: grid; place-items: center; color: var(--red); }
.ax-buy .trending-head .icon svg { width: 28px; height: 28px; fill: currentColor; }
.ax-buy .trending-head h2 { font-size: clamp(32px, 3.5vw + 4px, 48px); font-weight: 700; letter-spacing: -0.025em; line-height: 1; margin: 0 0 8px; }
.ax-buy .trending-head p { font-size: 16px; color: var(--mute); margin: 0; }

.ax-buy .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Carwow card */
.ax-buy .cw { background: var(--paper-soft); border-radius: 18px; overflow: hidden; transition: background 0.18s, transform 0.18s; cursor: pointer; display: flex; flex-direction: column; padding: 28px 28px 0; }
.ax-buy .cw:hover { background: #ebebeb; transform: translateY(-3px); }
.ax-buy .cw-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.ax-buy .cw-titles h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 4px; letter-spacing: -0.015em; }
.ax-buy .cw-tagline { font-size: 14px; color: var(--mute); margin: 0; line-height: 1.4; }
.ax-buy .cw-grant { background: var(--red-soft); color: var(--red-dark); padding: 8px 14px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.3; text-align: center; flex-shrink: 0; max-width: 100px; }
.ax-buy .cw-savetag { display: inline-block; background: var(--ink); color: var(--red); padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-top: 12px; letter-spacing: 0.005em; }
.ax-buy .cw-photo { aspect-ratio: 16/9; background-color: transparent; background-size: contain; background-position: center; background-repeat: no-repeat; margin: 24px -8px 0; min-height: 200px; flex: 1; }
.ax-buy .cw-prices { padding: 18px 0; border-top: 1px solid rgba(35,42,37,0.10); margin-top: 16px; }
.ax-buy .cw-price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.ax-buy .cw-price-lbl { font-size: 13px; color: var(--mute); }
.ax-buy .cw-price-val { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.ax-buy .cw-price-val .unit { font-size: 12px; font-weight: 400; color: rgba(35,42,37,0.5); }
.ax-buy .cw-cta { display: block; margin: 8px -28px 0; background: var(--red); color: #fff; padding: 16px; border-radius: 0 0 18px 18px; font-size: 14px; font-weight: 600; text-align: center; }
.ax-buy .cw-cta:hover { background: var(--red-dark); }

@media (max-width: 1100px) {
  .ax-buy .budget-grid { grid-template-columns: repeat(3, 1fr); }
  .ax-buy .grid { grid-template-columns: repeat(2, 1fr); }
  .ax-buy .sellbanner-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ax-buy .budget-grid { grid-template-columns: repeat(2, 1fr); }
  .ax-buy .grid { grid-template-columns: 1fr; }
}
