/* =====================================================================
   Scrap My Carz — Theme
   Palette derived from the brand logo:
     teal  #005858  (gear / recycle mark)
     gold  #e8a21a  (car mark / wordmark)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand */
  --teal-900: #012f2f;
  --teal-800: #013e3e;
  --teal-700: #005858;   /* primary */
  --teal-600: #0a6f6e;
  --teal-500: #1b8988;
  --teal-100: #e3f1f0;
  --teal-50:  #f2f9f8;

  --gold-700: #a86c05;
  --gold-600: #c9860a;
  --gold-500: #e8a21a;   /* primary */
  --gold-400: #f0b544;
  --gold-100: #fdf0d6;
  --gold-50:  #fef8ec;

  --ink:      #132b28;
  --ink-soft: #4a615d;
  --cream:    #fbfaf5;
  --white:    #ffffff;
  --line:     #e3e0d3;
  --danger:   #c4432b;
  --success:  #1f8a5f;

  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(1,47,47,.08);
  --shadow-md: 0 8px 24px rgba(1,47,47,.10);
  --shadow-lg: 0 20px 48px rgba(1,47,47,.16);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--teal-900);
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.icon { width: 1.4em; height: 1.4em; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 36px 0; }
.bg-teal { background: var(--teal-700); color: var(--white); }
.bg-teal-tint { background: var(--teal-50); }
.bg-gold-tint { background: var(--gold-50); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 3px; background: var(--gold-500); border-radius: 2px; }
.section-head { max-width: 620px; margin: 0 0 36px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-500); color: var(--teal-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-400); box-shadow: var(--shadow-md); }
.btn-teal { background: var(--teal-700); color: var(--white); }
.btn-teal:hover { background: var(--teal-600); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-teal { background: transparent; border-color: var(--teal-700); color: var(--teal-700); }
.btn-outline-teal:hover { background: var(--teal-50); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fbd5a; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Top utility bar + Nav ---------- */
.topbar { background: var(--teal-900); color: #cfe7e5; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cfe7e5; }
.topbar a:hover { color: var(--gold-400); }
.topbar-links { display: flex; gap: 18px; }

.navbar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 58px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); color: var(--teal-800); font-size: 1.15rem; }
.brand-text span { font-size: .68rem; color: var(--gold-600); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.nav-links { display: flex; gap: 26px; align-items: center; font-weight: 600; font-size: .92rem; }
.nav-links a { color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-700); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--gold-500); border-radius: 3px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.avatar-chip { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-800); }
.avatar-chip .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--teal-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; font-weight: 800; }

.nav-links .hide-desktop { display: none; }
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 64px 0 0 0; background: var(--white); flex-direction: column; padding: 24px; gap: 18px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--teal-800); }
  .nav-links .hide-desktop { display: block; }
  .nav-cta .btn-sm, .nav-cta .avatar-chip { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--teal-900), var(--teal-700) 130%); color: var(--white); position: relative; overflow: hidden; padding: 60px 0 90px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4vw, 3.1rem); }
.hero h1 mark { background: none; color: var(--gold-400); }
.hero p.lead { color: #cfe7e5; font-size: 1.08rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-400); }
.hero-stats div span { font-size: .8rem; color: #a9cdca; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

/* Quick search card overlapping hero */
.quick-search { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; margin-top: -56px; position: relative; z-index: 5; }
.quick-search form { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; }
.quick-search label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 4px; display: block; }
@media (max-width: 900px) { .quick-search form { grid-template-columns: 1fr 1fr; } .hero .container { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 320px; margin: 0 auto; } }

/* ---------- Form controls ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--teal-800); }
.field .hint { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; background: var(--white); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal-600); box-shadow: 0 0 0 4px var(--teal-100); outline: none; }
textarea { resize: vertical; min-height: 110px; }
.input-otp { letter-spacing: .5em; text-align: center; font-size: 1.3rem; font-weight: 700; }
.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; }
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 34px; max-width: 480px; margin: 0 auto; }
.form-card.wide { max-width: 760px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 18px; font-weight: 600; }
.alert-error { background: #fbe8e3; color: var(--danger); }
.alert-success { background: #e2f5ec; color: var(--success); }
.alert-info { background: var(--teal-100); color: var(--teal-800); }

/* ---------- Category cards (gear-notch corners) ---------- */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.cat-card {
  background: var(--white); padding: 26px 22px; text-align: left; position: relative;
  border: 1.5px solid var(--line); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.cat-card .icon-wrap { width: 54px; height: 54px; border-radius: var(--radius-sm); background: var(--teal-100); color: var(--teal-700); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cat-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cat-card p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 0; }
.cat-card .count { position: absolute; top: 22px; right: 20px; font-size: .72rem; font-weight: 800; color: var(--gold-600); background: var(--gold-100); padding: 3px 9px; border-radius: 999px; }

/* ---------- Listing cards ---------- */
.listing-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: box-shadow .18s ease, transform .18s ease; display: flex; flex-direction: column; }
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.listing-thumb { position: relative; aspect-ratio: 4/3; background: var(--teal-50); overflow: hidden; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--gold-500); color: var(--teal-900); font-size: .68rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.badge.badge-teal { background: var(--teal-700); color: #fff; left: auto; right: 10px; }
.listing-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-family: var(--font-display); font-size: 1.25rem; color: var(--teal-800); margin-bottom: 4px; }
.listing-title { font-weight: 700; font-size: .98rem; margin-bottom: 6px; color: var(--ink); }
.listing-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .78rem; color: var(--ink-soft); margin-bottom: 14px; }
.listing-meta span { display: inline-flex; align-items: center; gap: 4px; }
.listing-footer { margin-top: auto; display: flex; gap: 8px; }
.listing-footer .btn { flex: 1; }

/* ---------- Value cycle (signature element) ---------- */
.cycle { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.cycle::before { content: ''; position: absolute; top: 34px; left: 8%; right: 8%; height: 3px; background: repeating-linear-gradient(90deg, var(--gold-500) 0 10px, transparent 10px 18px); z-index: 0; }
.cycle-step { position: relative; text-align: center; z-index: 1; }
.cycle-step .ring { width: 68px; height: 68px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold-500); color: var(--teal-700); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: var(--shadow-sm); }
.cycle-step .ring .icon { width: 30px; height: 30px; }
.cycle-step h4 { font-size: 1rem; margin-bottom: 6px; }
.cycle-step p { font-size: .84rem; color: var(--ink-soft); }
@media (max-width: 900px) { .cycle { grid-template-columns: 1fr 1fr; } .cycle::before { display: none; } }

/* ---------- Video / Album ---------- */
.video-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 14px 16px; }
.video-info h4 { font-size: .95rem; margin-bottom: 4px; }
.video-tag { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; color: var(--teal-700); background: var(--teal-100); padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }

.album-card { position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.album-card:hover img { transform: scale(1.06); }
.album-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1,47,47,0) 40%, rgba(1,47,47,.85)); display: flex; align-items: flex-end; padding: 16px; color: #fff; }
.album-overlay h4 { color: #fff; margin-bottom: 2px; font-size: 1rem; }
.album-overlay span { font-size: .76rem; color: var(--gold-400); font-weight: 700; }
.album-count-chip { position: absolute; top: 10px; right: 10px; background: rgba(1,47,47,.75); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

.lightbox { position: fixed; inset: 0; background: rgba(1,20,20,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 90vw; border-radius: var(--radius-sm); }
.lightbox-close, .lightbox-nav { position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: #b9d8d5; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { font-size: .88rem; color: #9dc2be; }
.site-footer h5 { color: #fff; font-family: var(--font-display); font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .87rem; }
.site-footer a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: #82a9a5; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--gold-500); color: var(--teal-900); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* WhatsApp floating button */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); z-index: 90; animation: pulse 2.4s infinite; }
.whatsapp-float .icon { width: 30px; height: 30px; }
@keyframes pulse { 0%,100% { box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.5);} 50% { box-shadow: 0 10px 24px rgba(0,0,0,.25), 0 0 0 10px rgba(37,211,102,0);} }

/* ---------- Misc ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .88rem; }
.table th { background: var(--teal-50); color: var(--teal-800); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.pill-pending { background: var(--gold-100); color: var(--gold-700); }
.pill-approved { background: #e2f5ec; color: var(--success); }
.pill-rejected { background: #fbe8e3; color: var(--danger); }
.pill-sold { background: var(--teal-100); color: var(--teal-800); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination a, .pagination span { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; border: 1.5px solid var(--line); background: #fff; }
.pagination a:hover { border-color: var(--teal-600); color: var(--teal-700); }
.pagination .current { background: var(--teal-700); color: #fff; border-color: var(--teal-700); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state .icon { width: 60px; height: 60px; color: var(--teal-200, var(--teal-100)); margin: 0 auto 16px; }
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--teal-700); }
.sidebar-filter { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.sidebar-filter h4 { font-size: .95rem; margin-bottom: 14px; }
.filter-group { margin-bottom: 20px; }
.filter-group label.opt { display: flex; align-items: center; gap: 8px; font-size: .87rem; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--teal-800); }
.stat-card span { font-size: .8rem; color: var(--ink-soft); }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px; font-weight: 700; font-size: .88rem; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--teal-700); border-color: var(--gold-500); }

/* =====================================================================
   SPARE PARTS STORE
   ===================================================================== */

.icon-sm { width: 1em; height: 1em; vertical-align: -2px; }

/* ---------- Store hero + vehicle finder ---------- */
.parts-hero {
  background: linear-gradient(155deg, var(--teal-900) 0%, var(--teal-700) 75%, var(--teal-600) 130%);
  color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden;
}
.parts-hero::after {
  content: ''; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px;
  border-radius: 50%; background: rgba(232,162,26,.10);
}
.parts-hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center; position: relative; z-index: 1; }
.parts-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.parts-hero h1 mark { background: none; color: var(--gold-400); }
.parts-hero .lead { color: #cfe7e5; max-width: 520px; }
.parts-trust-row { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.parts-trust-row div { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: #b9d8d5; font-weight: 600; }
.parts-trust-row .icon { width: 22px; height: 22px; color: var(--gold-400); flex-shrink: 0; }

.part-finder {
  background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--gold-500);
}
.part-finder h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--teal-900); }
.part-finder .field { margin-bottom: 12px; }
.part-finder label { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.finder-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 900px) { .parts-hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Part category tiles ---------- */
.part-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.part-cat-tile {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.part-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.part-cat-tile .pct-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--teal-100); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.part-cat-tile .pct-icon .icon { width: 22px; height: 22px; }
.part-cat-tile strong { font-size: .92rem; color: var(--ink); line-height: 1.3; }
.part-cat-tile .pct-count { font-size: .76rem; color: var(--ink-soft); }

/* ---------- Toolbar ---------- */
.parts-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar-controls input[type=search] { min-width: 220px; }

/* ---------- Part cards ---------- */
.part-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; }
.part-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.part-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.part-thumb { position: relative; aspect-ratio: 4/3; background: var(--teal-50); overflow: hidden; }
.part-thumb img { width: 100%; height: 100%; object-fit: cover; }
.save-badge {
  position: absolute; top: 10px; left: 10px; background: var(--gold-500); color: var(--teal-900);
  font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em;
}
.save-badge.big { font-size: .85rem; padding: 6px 14px; top: 14px; left: 14px; }
.stock-badge {
  position: absolute; bottom: 10px; left: 10px; font-size: .68rem; font-weight: 800;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.stock-badge.low { background: var(--gold-100); color: var(--gold-700); }
.stock-badge.out { background: #fbe8e3; color: var(--danger); }

.part-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.part-cat-tag {
  display: inline-block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--teal-700); background: var(--teal-100); padding: 3px 9px; border-radius: 999px; margin-bottom: 9px;
  align-self: flex-start;
}
.part-title { font-size: .98rem; font-weight: 700; margin: 0 0 5px; color: var(--ink); line-height: 1.35; }
.part-fits { font-size: .8rem; color: var(--ink-soft); margin: 0 0 4px; }
.part-number { font-size: .76rem; color: var(--ink-soft); margin: 0 0 10px; font-family: 'Courier New', monospace; }
.part-number strong { color: var(--teal-800); }
.part-price-row { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 8px; }
.price-now { font-family: var(--font-display); font-size: 1.24rem; font-weight: 700; color: var(--teal-800); }
.price-now.big { font-size: 1.9rem; display: block; }
.price-was { font-size: .86rem; color: var(--ink-soft); text-decoration: line-through; }
.price-was.big { font-size: 1.15rem; display: block; }
.part-meta-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cond-chip, .warranty-chip { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.cond-excellent { background: #e2f5ec; color: var(--success); }
.cond-good      { background: var(--teal-100); color: var(--teal-800); }
.cond-fair      { background: var(--gold-100); color: var(--gold-700); }
.cond-for_parts { background: #fbe8e3; color: var(--danger); }
.warranty-chip  { background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line); }

/* ---------- Part detail ---------- */
.part-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .part-detail-grid { grid-template-columns: 1fr; gap: 28px; } }
.part-gallery { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; background: var(--teal-50); border: 1px solid var(--line); }
.part-gallery img { width: 100%; height: 100%; object-fit: cover; }
.part-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.part-thumbs img { aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid var(--line); transition: border-color .15s ease; }
.part-thumbs img:hover { border-color: var(--gold-500); }

.part-detail-title { font-size: 1.75rem; margin: 6px 0 8px; }
.part-detail-fits { font-size: .95rem; color: var(--ink-soft); margin-bottom: 20px; }
.part-detail-fits strong { color: var(--teal-800); }

.price-block {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-end;
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 22px;
}
.price-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 700; margin-bottom: 3px; }
.you-save { margin-left: auto; text-align: right; }
.you-save strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--success); }

.part-spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 24px; }
.spec-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; }
.spec-item span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 700; margin-bottom: 3px; }
.spec-item strong { font-size: .92rem; color: var(--ink); }

.part-description { margin-bottom: 24px; }
.part-description h3 { font-size: 1.05rem; margin-bottom: 8px; }
.part-cta-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }

.assurance-row { display: flex; gap: 20px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.assurance-row div { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.assurance-row .icon { width: 20px; height: 20px; color: var(--teal-600); flex-shrink: 0; }

.enquiry-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
.enquiry-card h3 { font-size: 1rem; margin-bottom: 4px; }

/* =====================================================================
   E-COMMERCE: cart, checkout, orders
   ===================================================================== */

.cart-link { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: var(--teal-800); transition: background .15s ease; }
.cart-link:hover { background: var(--teal-50); }
.cart-link .icon { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 2px; right: 0; background: var(--gold-500); color: var(--teal-900); font-size: .66rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.part-card-wrap { display: flex; flex-direction: column; }
.part-card-wrap .part-card { flex: 1; }
.card-add-form { margin-top: 8px; }

.add-cart-form { display: flex; gap: 10px; align-items: flex-end; }
.add-cart-form .btn { flex: 1; }
.qty-picker label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 5px; }
.qty-picker input { width: 74px; text-align: center; padding: 12px 6px; }

/* Cart layout */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-row { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; }
.cart-thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; background: var(--teal-50); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h3 { font-size: .98rem; margin: 0 0 2px; color: var(--ink); }
.cart-info a:hover h3 { color: var(--teal-700); }
.cart-qty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cart-qty input { width: 66px; text-align: center; padding: 8px 4px; }
.link-remove { background: none; border: none; color: var(--ink-soft); font-size: .78rem; cursor: pointer; text-decoration: underline; padding: 0; }
.link-remove:hover { color: var(--danger); }
.cart-line-total { text-align: right; min-width: 92px; }
.cart-line-total strong { font-family: var(--font-display); font-size: 1.12rem; color: var(--teal-800); }
@media (max-width: 620px) { .cart-row { grid-template-columns: 76px 1fr; } .cart-qty, .cart-line-total { grid-column: 2; text-align: left; align-items: flex-start; } }

/* Summary panel */
.order-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; position: sticky; top: 90px; }
.order-summary h3 { font-size: 1.05rem; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 7px 0; color: var(--ink-soft); }
.sum-row.total { border-top: 2px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.05rem; color: var(--ink); font-weight: 700; }
.sum-row.total span:last-child { font-family: var(--font-display); font-size: 1.3rem; color: var(--teal-800); }
.sum-item { display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; padding: 6px 0; }
.ship-nudge { background: var(--gold-50); border: 1px dashed var(--gold-500); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .82rem; color: var(--gold-700); margin: 10px 0 0; }

.checkout-steps { display: flex; gap: 6px; margin-top: 14px; }
.checkout-steps div { flex: 1; text-align: center; font-size: .68rem; font-weight: 700; padding: 7px 3px; border-radius: var(--radius-sm); background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line); }
.checkout-steps div.done { background: #e2f5ec; color: var(--success); border-color: #bfe6d3; }
.checkout-steps div.current { background: var(--gold-100); color: var(--gold-700); border-color: var(--gold-500); }

/* Checkout blocks */
.checkout-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; margin-bottom: 16px; }
.checkout-block h3 { font-size: 1.05rem; margin-bottom: 14px; }
.addr-choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.addr-choice, .pay-choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 14px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.addr-choice:has(input:checked), .pay-choice:has(input:checked) { border-color: var(--teal-600); background: var(--teal-50); }
.pay-choice { margin-bottom: 10px; }
.addr-label { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-700); background: var(--teal-100); padding: 3px 9px; border-radius: 999px; }

/* Address book */
.address-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.address-card.is-default { border-color: var(--teal-600); }
.addr-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.addr-actions form { margin: 0; }

/* Orders */
.order-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; transition: box-shadow .15s ease, transform .15s ease; }
.order-row:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (max-width: 700px) { .order-row { grid-template-columns: 1fr 1fr; } }

.order-timeline { list-style: none; margin: 0; padding: 0; }
.order-timeline li { position: relative; padding: 0 0 14px 20px; border-left: 2px solid var(--line); font-size: .88rem; }
.order-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.order-timeline li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-500); border: 2px solid #fff; }

/* =====================================================================
   PRODUCT IMAGE ZOOM (Amazon-style hover magnifier)
   ===================================================================== */

.zoom-wrap { position: relative; }
.part-gallery { cursor: crosshair; }

/* Lens that tracks the cursor over the product image */
.zoom-lens {
  position: absolute;
  display: none;
  border: 2px solid var(--gold-500);
  background: rgba(232, 162, 26, .16);
  border-radius: 4px;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 0 0 9999px rgba(1, 47, 47, .18);
}

/* Magnified view — sits to the right of the image, overlapping the
   details column exactly like Amazon does. */
.zoom-panel {
  position: absolute;
  display: none;
  top: 0;
  left: calc(100% + 18px);
  width: 460px;
  height: 400px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: #fff;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  pointer-events: none;
}

.zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(1, 47, 47, .78);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity .18s ease;
}
.zoom-hint .icon { width: 13px; height: 13px; }
.part-gallery:hover .zoom-hint { opacity: 0; }

/* Active thumbnail */
.part-thumb-btn.active { border-color: var(--gold-500); }

/* Fullscreen viewer — the touch/click fallback */
.zoom-fullscreen {
  position: fixed;
  inset: 0;
  background: rgba(1, 20, 20, .93);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 30px;
}
.zoom-fullscreen.open { display: flex; }
.zoom-fullscreen img {
  max-width: 94vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  background: #fff;
}
.zoom-fs-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.zoom-fs-close:hover { background: rgba(255, 255, 255, .26); }

/* Inner-zoom mode: when there's no room for a side panel, the magnified
   image fills the image box itself. */
.part-gallery.inner-zooming {
  background-repeat: no-repeat;
  cursor: zoom-in;
}
.part-gallery.inner-zooming .save-badge,
.part-gallery.inner-zooming .zoom-hint { display: none; }

/* Touch devices can't hover, so the fullscreen viewer takes over there. */
@media (hover: none) {
  .zoom-panel, .zoom-lens { display: none !important; }
  .part-gallery { cursor: zoom-in; }
  .zoom-hint::after { content: ' — tap to enlarge'; }
}

/* Rendered content pages (Terms, Privacy, etc.) */
.page-content { font-size: .98rem; line-height: 1.75; color: var(--ink); }
.page-content h1, .page-content h2, .page-content h3 { margin: 1.6em 0 .5em; }
.page-content h2 { font-size: 1.3rem; }
.page-content h3 { font-size: 1.1rem; }
.page-content p { margin: 0 0 1.1em; }
.page-content ul, .page-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.page-content li { margin-bottom: .5em; }
.page-content a { color: var(--teal-700); text-decoration: underline; }
.page-content blockquote { border-left: 4px solid var(--gold-500); margin: 1.2em 0; padding: .4em 0 .4em 1.2em; color: var(--ink-soft); }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.page-content th, .page-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; font-size: .9rem; }
.page-content th { background: var(--teal-50); }

/* OTP log code cells */
.otp-code { font-family: 'Courier New', monospace; font-size: 1.05rem; font-weight: 700; letter-spacing: .12em;
  background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; display: inline-block; }
.otp-code.live { background: var(--gold-100); border-color: var(--gold-500); color: var(--gold-700); }
