/* ============================================================
   Bostron UKC Electronics — storefront styles
   Palette: ink #000 · navy #14213d · amber #fca311
            grey #e5e5e5 · white #fff
   ============================================================ */

:root {
  --ink: #000000;
  --navy: #14213d;
  --navy-soft: #1c2c4d;
  --amber: #fca311;
  --amber-dim: #d4870a;
  --grey: #e5e5e5;
  --grey-mid: #c7c7c7;
  --white: #ffffff;

  --bg: var(--white);
  --text: var(--ink);
  --muted: #5a6378;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 10px;
  --maxw: 1180px;
  --shadow: 0 14px 40px rgba(20, 33, 61, 0.12);
  --shadow-sm: 0 4px 14px rgba(20, 33, 61, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .sigdot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(252, 163, 17, 0); }
  100% { box-shadow: 0 0 0 0 rgba(252, 163, 17, 0); }
}
.brand .name {
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.04em; font-size: 1.15rem;
  text-transform: uppercase;
}
.brand .name .ukc { color: var(--amber); }

.nav-actions { display: flex; align-items: center; gap: 22px; }
.nav-actions a { font-size: 0.92rem; color: rgba(255,255,255,0.82); transition: color .15s; }
.nav-actions a:hover { color: var(--white); }
.cart-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 14px; border-radius: 999px;
}
.cart-link .count {
  background: var(--amber); color: var(--navy);
  font-weight: 700; min-width: 20px; height: 20px;
  border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0 5px; font-size: 0.78rem;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 84px 0 96px;
  position: relative; overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero .eyebrow {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.72rem;
  color: var(--amber); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.02em; max-width: 14ch;
}
.hero h1 em { color: var(--amber); font-style: normal; }
.hero p {
  margin-top: 22px; max-width: 46ch;
  color: rgba(255,255,255,0.74); font-size: 1.05rem;
}
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* equalizer signature */
.equalizer {
  position: absolute; right: 0; bottom: 0; z-index: 1;
  display: flex; align-items: flex-end; gap: 7px;
  height: 100%; padding: 0 40px 0 0; opacity: 0.9;
}
.equalizer .bar {
  width: 14px; background: linear-gradient(var(--amber), var(--amber-dim));
  border-radius: 4px 4px 0 0;
  animation: eq 1.1s ease-in-out infinite alternate;
}
.equalizer .bar:nth-child(1){ height: 30%; animation-delay: 0s; }
.equalizer .bar:nth-child(2){ height: 62%; animation-delay: .15s; }
.equalizer .bar:nth-child(3){ height: 44%; animation-delay: .30s; }
.equalizer .bar:nth-child(4){ height: 78%; animation-delay: .10s; }
.equalizer .bar:nth-child(5){ height: 52%; animation-delay: .40s; }
.equalizer .bar:nth-child(6){ height: 88%; animation-delay: .22s; }
.equalizer .bar:nth-child(7){ height: 36%; animation-delay: .05s; }
@keyframes eq { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }
@media (max-width: 760px){ .equalizer { opacity: 0.18; } }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.01em;
  border: none; cursor: pointer; border-radius: var(--radius);
  padding: 14px 26px; display: inline-flex; align-items: center;
  gap: 10px; transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #ffb22e; box-shadow: 0 8px 22px rgba(252,163,17,.35); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-soft); }
.btn[disabled]{ opacity:.5; cursor: not-allowed; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Section heads ---------- */
.section { padding: 70px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 34px; gap: 20px; flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em;
}
.section-head .label {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted);
}

/* category filter */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--grey); color: var(--navy);
  border: 1px solid transparent; padding: 8px 16px;
  border-radius: 999px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); color: var(--white); }

/* ---------- Product grid ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: var(--white); border: 1px solid var(--grey);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--grey-mid); }
.card .thumb {
  aspect-ratio: 4 / 3; background: var(--grey);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .noimg {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--muted); letter-spacing: 0.1em;
}
.card .tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--navy); color: var(--white);
  padding: 5px 10px; border-radius: 5px;
}
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.card .spec { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price {
  font-family: var(--font-mono); font-weight: 700;
  color: var(--amber-dim); font-size: 1.12rem;
}
.price .cur { color: var(--muted); font-size: 0.78rem; margin-right: 2px; }
.add-btn {
  background: var(--navy); color: var(--white); border: none;
  width: 40px; height: 40px; border-radius: 8px; cursor: pointer;
  font-size: 1.3rem; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center; transition: background .15s;
}
.add-btn:hover { background: var(--amber); color: var(--navy); }
.stock-out { font-family: var(--font-mono); font-size: 0.72rem; color: #b00020; }

/* ---------- Product detail ---------- */
.detail { padding: 56px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.detail-img {
  background: var(--grey); border-radius: var(--radius);
  aspect-ratio: 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gthumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; padding: 0;
  border: 2px solid var(--grey); background: var(--grey); cursor: pointer; transition: border-color .15s; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb:hover { border-color: var(--grey-mid); }
.gthumb.active { border-color: var(--amber); }
.detail .tag-row { display: flex; gap: 8px; margin-bottom: 16px; }
.detail h1 { font-family: var(--font-display); font-size: clamp(1.8rem,3.4vw,2.6rem); letter-spacing: -0.01em; line-height: 1.08; }
.detail .price-lg { font-family: var(--font-mono); font-weight: 700; color: var(--amber-dim); font-size: 1.9rem; margin: 18px 0; }
.detail .desc { color: var(--muted); margin-bottom: 26px; white-space: pre-line; }
.spec-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.92rem; }
.spec-table td { padding: 11px 0; border-bottom: 1px solid var(--grey); }
.spec-table td:first-child { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); width: 42%; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--grey-mid); border-radius: 8px; overflow: hidden; }
.qty button { border: none; background: var(--white); width: 40px; height: 44px; font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: var(--grey); }
.qty span { width: 48px; text-align: center; font-family: var(--font-mono); }
.detail .buy-row { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 50px 0; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--grey); }
.cart-item .ci-img { width: 84px; height: 84px; border-radius: 8px; background: var(--grey); overflow: hidden; }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { font-family: var(--font-display); font-size: 1rem; }
.cart-item .ci-price { font-family: var(--font-mono); color: var(--amber-dim); font-weight: 700; }
.cart-item .ci-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.link-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.82rem; text-decoration: underline; }
.summary { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; height: fit-content; position: sticky; top: 90px; }
.summary h3 { font-family: var(--font-display); margin-bottom: 18px; }
.summary .row { display: flex; justify-content: space-between; padding: 9px 0; color: rgba(255,255,255,0.78); font-size: 0.94rem; }
.summary .row.total { border-top: 1px solid rgba(255,255,255,0.16); margin-top: 8px; padding-top: 16px; color: var(--white); font-size: 1.15rem; }
.summary .row.total span:last-child { font-family: var(--font-mono); color: var(--amber); font-weight: 700; }

.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--grey-mid);
  border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem; background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--amber); border-color: var(--amber); }

/* ---------- Empty / states ---------- */
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .big { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--navy); color: var(--white); padding: 14px 24px; border-radius: 999px;
  font-size: 0.92rem; box-shadow: var(--shadow); z-index: 100; transition: transform .3s;
  display: flex; align-items: center; gap: 10px;
}
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.62); padding: 50px 0 30px; margin-top: 40px; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.site-footer h4 { color: var(--white); font-family: var(--font-display); margin-bottom: 14px; font-size: 0.95rem; }
.site-footer a { display: block; padding: 4px 0; font-size: 0.9rem; }
.site-footer a:hover { color: var(--amber); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; font-family: var(--font-mono); font-size: 0.76rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.loading { text-align: center; padding: 60px; font-family: var(--font-mono); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .detail-grid, .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .nav-actions a:not(.cart-link) { display: none; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
