/* TopBuys storefront — premium redesign, navy/gold brand palette from the approved logo */
:root {
  --navy: #16233f;
  --navy-deep: #0e1830;
  --gold: #f2b90d;
  --gold-soft: #ffd94d;
  --paper: #faf9f6;
  --card: #ffffff;
  --ink: #1d2635;
  --muted: #5b6675;
  --line: #eae7de;
  --ok-bg: #e9f6ee; --ok-line: #bfe0c9; --ok-ink: #14532d;
  --bad-bg: #fbeaea; --bad-line: #eec3c3; --bad-ink: #7f1d1d;
  --radius: 16px;
  --font-display: 'Sora', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--paper); color: var(--ink); line-height: 1.55; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Announcement bar */
.announce {
  background: var(--gold); color: var(--navy-deep); text-align: center;
  font-size: 13.5px; font-weight: 700; letter-spacing: .2px; padding: 8px 14px;
}
.announce span { margin: 0 8px; opacity: .55; }

/* Header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 14px rgba(10,16,32,.35); }
.nav { display: flex; align-items: center; gap: 22px; padding-top: 12px; padding-bottom: 12px; }
.brand-logo { height: 56px; width: 56px; border-radius: 12px; display: block; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.main-nav { margin-right: auto; display: flex; gap: 20px; }
.main-nav a { color: #cdd6e4; text-decoration: none; font-size: 15px; font-weight: 600; }
.main-nav a:hover { color: var(--gold-soft); }
.basket-btn {
  background: var(--gold); color: var(--navy-deep); border: none; border-radius: 999px;
  padding: 11px 20px; font-weight: 700; font-size: 15px; transition: background .15s;
}
.basket-btn:hover { background: var(--gold-soft); }
.basket-count {
  display: inline-block; background: var(--navy-deep); color: var(--gold);
  border-radius: 999px; min-width: 24px; padding: 1px 7px; margin-left: 6px; text-align: center;
}

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #22375f 0%, var(--navy) 55%, var(--navy-deep) 100%); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 30px; align-items: center; padding-top: 64px; padding-bottom: 60px; }
.hero-copy h1 { font-family: var(--font-display); font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; letter-spacing: -1px; line-height: 1.16; margin-bottom: 18px; }
.underline { color: var(--gold); }
.hero-copy p { color: #d5dcea; font-size: clamp(15px, 1.8vw, 18px); max-width: 540px; margin-bottom: 26px; }
.cta {
  display: inline-block; background: var(--gold); color: var(--navy-deep); text-decoration: none;
  font-weight: 800; font-size: 16px; padding: 14px 30px; border-radius: 999px; transition: transform .12s, background .15s;
}
.cta:hover { background: var(--gold-soft); transform: translateY(-1px); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(260px, 60%); border-radius: 28px; box-shadow: 0 18px 50px rgba(0,0,0,.45); transform: rotate(3deg); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -34px; position: relative; z-index: 5; }
.trust-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: 0 8px 22px rgba(16,26,48,.07);
  display: flex; flex-direction: column; gap: 3px;
}
.trust-item strong { font-family: var(--font-display); font-size: 15px; color: var(--navy); }
.trust-item span { font-size: 13.5px; color: var(--muted); }

/* Product grid */
.section-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); margin: 44px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; padding-bottom: 60px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: 0 14px 32px rgba(16,26,48,.12); transform: translateY(-2px); }
.card .img { aspect-ratio: 4/3; background: #fcfcfa; display: flex; align-items: center; justify-content: center; }
.card .img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; display: block; transition: transform .25s; }
.card:hover .img img { transform: scale(1.04); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--navy); }
.card .blurb { font-size: 13px; color: var(--muted); }
.card .price { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: var(--navy); margin-top: 2px; }
.add-btn {
  margin-top: auto; background: var(--navy); border: none; color: #fff; border-radius: 10px;
  padding: 11px; font-weight: 700; font-size: 14.5px; transition: background .15s;
}
.add-btn:hover { background: #24365c; }

.empty-state { text-align: center; padding: 60px 20px 80px; color: var(--muted); }
.empty-state h3 { font-family: var(--font-display); color: var(--navy); font-size: 24px; margin-bottom: 8px; }

/* Sticky mobile basket bar */
.sticky-basket { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: transparent; pointer-events: none; }
.sticky-basket button {
  pointer-events: auto; width: 100%; border: none; border-radius: 999px; padding: 15px;
  background: var(--gold); color: var(--navy-deep); font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 30px rgba(16,26,48,.35);
}
@media (min-width: 761px) { .sticky-basket { display: none; } }

/* Basket drawer */
.drawer { position: fixed; inset: 0; z-index: 30; }
.drawer[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(13,20,34,.55); }
.panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(450px, 100%);
  background: #fff; padding: 22px 24px 30px; overflow-y: auto; box-shadow: -12px 0 40px rgba(0,0,0,.28);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head h2 { font-family: var(--font-display); font-size: 21px; color: var(--navy); }
.icon-btn { background: none; border: none; font-size: 19px; color: var(--muted); padding: 6px; }
.items { margin-bottom: 6px; }
.line-item { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.qty { display: flex; align-items: center; gap: 9px; }
.qty button { width: 28px; height: 28px; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; font-weight: 800; color: var(--navy); }
.items-empty { color: var(--muted); font-size: 14.5px; padding: 12px 0; }

.field { margin: 12px 0; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 5px; color: var(--navy); }
.field input { width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 15.5px; background: #fbfbfa; }
.ship-result { margin: 10px 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.ship-ok { background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok-ink); }
.ship-no { background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad-ink); }

.totals { margin-top: 14px; border-top: 2px solid var(--line); padding-top: 10px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals dt { color: var(--muted); }
.totals dd { font-weight: 600; }
.totals .grand dt, .totals .grand dd { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--navy); }

.pay-btn {
  width: 100%; margin-top: 16px; background: var(--gold); color: var(--navy-deep); border: none;
  border-radius: 999px; padding: 16px; font-size: 16.5px; font-weight: 800; transition: background .15s;
}
.pay-btn:hover:not(:disabled) { background: var(--gold-soft); }
.pay-btn:disabled { opacity: .45; cursor: not-allowed; }
.pay-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 9px; }
.form-error { margin-top: 10px; padding: 11px 13px; border-radius: 10px; background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad-ink); font-size: 14px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c3cede; padding: 40px 0; font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 22px; }
.footer-logo { height: 46px; width: 46px; border-radius: 10px; margin-bottom: 10px; }
.footer-brand p { margin-bottom: 4px; }
.footer-note { color: #8fa0b8; font-size: 12.5px; max-width: 300px; }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer nav a { color: #c3cede; text-decoration: none; }
.site-footer nav a:hover { color: var(--gold-soft); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 38px; padding-bottom: 30px; }
  .hero-copy h1 { font-size: clamp(27px, 8.2vw, 40px); letter-spacing: -0.5px; }
  .hero-art { display: none; }
  .main-nav { display: none; }
  .trust { display: flex; gap: 10px; margin-top: 14px; margin-bottom: 2px; overflow: visible; }
  .trust-item { flex: 1; padding: 9px 10px; box-shadow: none; background: transparent; border-color: var(--line); }
  .trust-item strong { font-size: 12px; }
  .trust-item span { display: none; }
  .section-title { margin: 26px 0 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .body { padding: 12px 13px 14px; }
  .card .name { font-size: 14px; }
  .card .img img { padding: 10px; }
}
.photo-credits { font-size: 11.5px; color: #8b8b85; max-width: 720px; margin: 26px auto 10px; padding: 0 16px; line-height: 1.5; }
.photo-credits a { color: #6b6b64; }
