/* ==========================================================================
   Phoenix Automotive Camera Technology — site styles
   Palette: navy #0d1f3c / #122a52, gold #d4af37 → #f1d27a, off-white
   ========================================================================== */
:root {
  --navy-900: #0a1730;
  --navy-800: #0d1f3c;
  --navy-700: #122a52;
  --navy-600: #1a3a6b;
  --gold: #d4af37;
  --gold-light: #f1d27a;
  --gold-dark: #b08d1e;
  --ink: #1c2333;
  --muted: #5b6474;
  --line: #e3e7ee;
  --bg: #f6f7fa;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 23, 48, 0.10);
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.header-inner {
  display: flex; align-items: center; gap: 26px;
  padding: 10px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; border-radius: 8px; }
.brand-text { line-height: 1.15; }
.brand-text .b1 { font-size: 1.25rem; font-weight: 700; letter-spacing: .5px; }
.brand-text .b1 span { color: var(--gold-light); }
.brand-text .b2 { font-size: .66rem; text-transform: uppercase; letter-spacing: 2.2px; color: #b8c4dc; }
.main-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.main-nav a {
  padding: 9px 14px; border-radius: 9px; font-size: .95rem; font-weight: 500;
  color: #dfe6f3; transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a.active { color: var(--gold-light); }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: -2px; right: -2px;
  background: var(--gold); color: #14243f; font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: none; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #14243f;
  box-shadow: 0 6px 18px rgba(212, 175, 55, .35);
}
.btn-gold:hover { box-shadow: 0 8px 24px rgba(212, 175, 55, .5); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-outline { background: #fff; border: 1.5px solid var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(212,175,55,.16), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(26,58,107,.55), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: 72px 0 66px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-light); font-size: .8rem; letter-spacing: 2.5px; text-transform: uppercase;
  margin-bottom: 18px; font-weight: 600;
}
.hero-kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); display: inline-block; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero p.lead { color: #c3cee4; font-size: 1.05rem; max-width: 34em; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.5rem; color: var(--gold-light); }
.hero-stats .stat span { font-size: .82rem; color: #aab8d4; }
.hero-visual { position: relative; }
.hero-visual .main-shot {
  border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transform: rotate(1.5deg);
}
.hero-visual .badge-float {
  position: absolute; left: -14px; bottom: 26px;
  background: rgba(10,23,48,.85); border: 1px solid rgba(212,175,55,.5);
  color: #fff; border-radius: 14px; padding: 10px 16px; font-size: .85rem;
  backdrop-filter: blur(6px);
}
.hero-visual .badge-float b { color: var(--gold-light); }

/* ---------- Section scaffolding ---------- */
.section { padding: 64px 0; }
.section.navy { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #e8edf7; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow {
  color: var(--gold-dark); font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700;
}
.section.navy .section-head .eyebrow { color: var(--gold-light); }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-head p { color: var(--muted); margin: 0; }
.section.navy .section-head p { color: #b6c3dd; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
  color: var(--ink);
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card .ico { font-size: 1.9rem; }
.cat-card h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.cat-card p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.cat-card a { color: var(--navy-600); font-weight: 600; font-size: .92rem; }
.cat-card a:hover { color: var(--gold-dark); }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.prod-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; position: relative;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(10,23,48,.16); }
.prod-card .thumb { aspect-ratio: 1; background: #fff; display: block; overflow: hidden; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.prod-card:hover .thumb img { transform: scale(1.05); }
.prod-card .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14243f; font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase;
}
.prod-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-card .model { font-size: .72rem; letter-spacing: 2px; color: var(--gold-dark); font-weight: 700; text-transform: uppercase; }
.prod-card h3 { font-size: 1.02rem; margin: 0; }
.prod-card .short { color: var(--muted); font-size: .84rem; margin: 0; }
.prod-card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 9px; padding-top: 8px; }
.prod-card .price { font-size: 1.22rem; font-weight: 700; color: var(--navy-700); }
.prod-card .compare { color: #9aa3b2; text-decoration: line-through; font-size: .86rem; }
.prod-card .add {
  margin-top: 10px; width: 100%;
}

/* ---------- Features / why us ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius); padding: 26px 24px;
}
.feat-item .ico { font-size: 1.7rem; margin-bottom: 10px; }
.feat-item h3 { font-size: 1.05rem; color: var(--gold-light); margin-bottom: 6px; }
.feat-item p { color: #b6c3dd; font-size: .92rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #14243f; text-align: center; padding: 46px 0;
}
.cta-band h2 { font-size: 1.6rem; margin-bottom: 6px; }
.cta-band p { margin: 0 0 20px; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #a9b6d2; padding: 54px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 38px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand img { height: 62px; border-radius: 8px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: .82rem;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 44px 0; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 6px; }
.page-head p { color: #b6c3dd; margin: 0; }
.crumbs { font-size: .82rem; color: #8fa1c4; margin-bottom: 10px; }
.crumbs a:hover { color: var(--gold-light); }

/* ---------- Catalog page ---------- */
.catalog-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--navy-600); }
.chip.active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.search-box { margin-left: auto; display: flex; }
.search-box input {
  border: 1.5px solid var(--line); border-right: none; border-radius: 999px 0 0 999px;
  padding: 9px 16px; font-size: .9rem; width: 230px; outline: none; background: #fff;
}
.search-box input:focus { border-color: var(--navy-600); }
.search-box button {
  border: 1.5px solid var(--navy-700); background: var(--navy-700); color: #fff;
  border-radius: 0 999px 999px 0; padding: 9px 16px; cursor: pointer;
}
.empty-note { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- Product detail ---------- */
.pd-wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 44px; padding: 44px 0; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow);
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs button {
  border: 2px solid var(--line); background: #fff; border-radius: 9px; padding: 0; cursor: pointer;
  aspect-ratio: 1; overflow: hidden;
}
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs button.active { border-color: var(--gold); }
.pd-info .model-line { color: var(--gold-dark); font-weight: 700; letter-spacing: 2px; font-size: .8rem; text-transform: uppercase; }
.pd-info h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 6px 0 8px; }
.pd-info .short { color: var(--muted); font-size: 1rem; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.pd-price { font-size: 2rem; font-weight: 700; color: var(--navy-700); }
.pd-compare { color: #9aa3b2; text-decoration: line-through; font-size: 1.05rem; }
.pd-save {
  background: #fdf3d7; color: #8a6d1a; font-size: .78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.hl-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 20px; }
.hl-pill {
  background: #eef2f9; color: var(--navy-700); font-size: .8rem; font-weight: 600;
  border: 1px solid #dbe3f0; padding: 5px 13px; border-radius: 999px;
}
.opt-label { font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 20px; }
.opt-item {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer;
  background: #fff; font-size: .86rem; text-align: left; transition: all .18s; color: var(--ink);
}
.opt-item:hover { border-color: var(--navy-600); }
.opt-item.active { border-color: var(--gold); background: #fdf7e7; box-shadow: 0 0 0 1px var(--gold); }
.opt-item .opt-price { display: block; font-weight: 700; color: var(--navy-700); font-size: .9rem; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-ctl { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-ctl button { width: 38px; height: 38px; border: none; background: none; font-size: 1.1rem; cursor: pointer; color: var(--navy-700); }
.qty-ctl button:hover { background: #f0f3f9; }
.qty-ctl input { width: 44px; text-align: center; border: none; font-size: 1rem; font-weight: 600; outline: none; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; font-size: .86rem; color: var(--muted); }
.pd-perks div { display: flex; gap: 8px; align-items: center; }

/* detail lower sections */
.pd-section { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; margin-bottom: 26px; }
.pd-section h2 { font-size: 1.35rem; margin-bottom: 20px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { background: var(--bg); border-radius: 12px; padding: 20px; }
.feature-card h3 { font-size: 1rem; color: var(--navy-700); }
.feature-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 220px; }
.spec-table tr:nth-child(even) { background: #fafbfd; }
.inbox-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.inbox-list li { background: var(--bg); border-radius: 10px; padding: 12px 16px; font-size: .92rem; display: flex; gap: 9px; align-items: center; }
.inbox-list li::before { content: "✓"; color: var(--gold-dark); font-weight: 800; }
.detail-images { display: grid; gap: 14px; }
.detail-images img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding: 40px 0; align-items: start; }
.cart-list { display: grid; gap: 16px; }
.cart-item {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; padding: 16px; align-items: center;
}
.cart-item img { width: 110px; height: 110px; object-fit: contain; border-radius: 10px; background: #fff; }
.cart-item h3 { font-size: 1rem; margin: 0 0 3px; }
.cart-item .variant { color: var(--muted); font-size: .84rem; }
.cart-item .unit { color: var(--navy-700); font-weight: 700; margin-top: 6px; display: inline-block; }
.cart-item .right { text-align: right; display: grid; gap: 10px; justify-items: end; }
.cart-item .line-total { font-weight: 700; font-size: 1.05rem; color: var(--navy-700); }
.remove-btn { background: none; border: none; color: #b33; cursor: pointer; font-size: .84rem; padding: 0; }
.remove-btn:hover { text-decoration: underline; }
.cart-summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; position: sticky; top: 90px; }
.cart-summary h2 { font-size: 1.2rem; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .95rem; }
.sum-row.total { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.15rem; color: var(--navy-700); }
.cart-summary .btn { width: 100%; margin-top: 14px; }
.cart-note { font-size: .8rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- About / contact ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; padding: 44px 0; align-items: start; }
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.contact-card h3 { color: var(--navy-700); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list b { display: block; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-size: .84rem; font-weight: 600; display: block; margin-bottom: 5px; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font-size: .92rem; font-family: inherit; outline: none; background: #fff;
}
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--navy-600); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--navy-800); color: #fff; padding: 13px 26px; border-radius: 999px;
  font-size: .92rem; box-shadow: 0 12px 30px rgba(0,0,0,.3); opacity: 0; z-index: 99;
  transition: all .35s cubic-bezier(.2,.9,.3,1.2); pointer-events: none;
  border: 1px solid rgba(212,175,55,.5);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast b { color: var(--gold-light); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner, .pd-wrap, .cart-layout, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .cat-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-900); flex-direction: column; padding: 12px 5vw 18px; gap: 6px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .cart-link { margin-left: 0; }
}
@media (max-width: 620px) {
  .cat-grid, .feat-grid, .feature-grid, .opt-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .pd-section { padding: 22px; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; flex: 1; }
  .search-box { display: flex; width: 100%; }
}

/* ---------- Full-catalog additions ---------- */
.pd-desc { color: var(--muted); max-width: 860px; margin: 0 0 18px; line-height: 1.7; }
.count-note { font-size: .85rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.detail-images { column-count: 1; max-width: 860px; margin: 0 auto; }
.detail-images img { width: 100%; margin-bottom: 14px; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
@media (min-width: 760px) { .detail-images { column-count: 2; column-gap: 14px; } }
.prod-card .thumb { background: #fff; }

/* ---------- detail image captions ---------- */
.detail-figure { margin: 0 0 16px; break-inside: avoid; }
.detail-figure img { width: 100%; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); display: block; }
.detail-figure figcaption {
  background: var(--white); border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px 16px; font-size: .88rem; color: var(--ink); line-height: 1.6;
  box-shadow: var(--shadow); border-top: 3px solid var(--gold);
}
.detail-figure figcaption::before { content: "EN "; font-weight: 700; color: var(--gold-dark); letter-spacing: 1px; font-size: .72rem; }
