/* ============================================================
   Fetch resale-site kit — extra components layered on styles.css
   Covers: cookie banner, gallery, steps, CTA band, spec table,
   breadcrumbs, share buttons, hashtags, save/remind, cart,
   footer columns, toasts, badges, mobile nav.
   ============================================================ */

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: #0f1419; color: #e8e8e8; border-top: 1px solid var(--gold-soft);
  padding: 1rem 1.25rem; display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: var(--max); margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 0.9rem; max-width: 60ch; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(1rem);
  background: var(--accent); color: #fff; padding: 0.7rem 1.4rem; border-radius: 999px;
  font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 3000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin: 1rem auto 0; max-width: var(--max); padding: 0 1.25rem; }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs span { color: var(--gold); }

/* ---------- Badges (condition / status) ---------- */
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 0.15rem 0.55rem; border-radius: 5px;
}
.badge-new { background: #e7f6ec; color: #1c6b3c; border: 1px solid #a7e0bd; }
.badge-used { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(30,58,95,.25); }
.badge-sold { background: #f1f1f1; color: #777; border: 1px solid #ddd; }

/* ---------- Gallery overlay ---------- */
.gallery {
  position: fixed; inset: 0; background: rgba(5, 8, 14, 0.95); z-index: 4000;
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.gallery.open { display: flex; }
.gallery img.g-img { max-width: 92vw; max-height: 70vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.gallery .g-title { color: #fff; margin: 0.75rem 0 0.25rem; font-size: 1.1rem; }
.gallery .g-count { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 0.5rem; }
.gallery .g-nav { display: flex; gap: 1rem; align-items: center; }
.gallery .g-nav button {
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px; padding: 0.6rem 1.3rem; cursor: pointer; font-size: 1rem; font-weight: 600;
}
.gallery .g-nav button:hover { background: rgba(255,255,255,0.22); }
.gallery .g-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }
.gallery .g-close:hover { color: var(--gold); }
.gallery .g-thumbs { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
.gallery .g-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.gallery .g-thumbs img.active { border-color: var(--gold); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.step { text-align: left; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #1c1c1c;
  font-weight: 700; font-size: 1.1rem; margin-bottom: 0.75rem;
}
.step h3 { color: var(--accent); font-size: 1.05rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #0f1419 0%, #1e3a5f 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 55ch; margin: 0 auto 1.5rem; }
.cta-band .btn-primary { background: var(--gold); color: #1c1c1c; }
.cta-band .btn-primary:hover { background: #e6c47f; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.spec-table th, .spec-table td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.spec-table th { width: 34%; color: var(--text-muted); font-weight: 600; }
.docs-list { list-style: none; margin: 0; padding: 0; }
.docs-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.docs-list a::before { content: "\1F4C4"; margin-right: 0.5rem; }

/* ---------- Share buttons + hashtags ---------- */
.share { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.share a {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.9rem;
  border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #fff; text-decoration: none;
}
.share a:hover { opacity: 0.9; }
.share .sh-x { background: #0f1419; }
.share .sh-fb { background: #1877f2; }
.share .sh-pin { background: #e60023; }
.share .sh-wa { background: #25d366; color: #1c1c1c; }
.share .sh-mail { background: var(--accent); }
.hashtags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; }
.tag-hash { font-size: 0.78rem; color: var(--accent); background: var(--accent-soft); padding: 0.2rem 0.55rem; border-radius: 999px; }

/* ---------- Save / remind ---------- */
.fav-btn, .remind-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.1rem;
  border-radius: 999px; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: 1px solid var(--border);
  background: #fff; color: var(--accent); transition: all .2s;
}
.fav-btn:hover, .remind-btn:hover { border-color: var(--accent); }
.fav-btn.saved { background: var(--accent); color: #fff; border-color: var(--accent); }
.fav-btn.saved::before { content: "\2665"; color: var(--gold); margin-right: 0.3rem; }
.fav-btn:not(.saved)::before { content: "\2661"; margin-right: 0.3rem; }

/* ---------- Cart ---------- */
.cart-item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-item .thumb { width: 84px; height: 84px; border-radius: 8px; flex: 0 0 auto; display:flex; align-items:center; justify-content:center; font-size:2rem; background: linear-gradient(135deg,#eef2f7,#dfe6ef); overflow:hidden; }
.cart-item .thumb img { width:100%; height:100%; object-fit:cover; }
.cart-item .info { flex: 1; }
.cart-item h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.qty { display: inline-flex; align-items: center; gap: 0.5rem; }
.qty button { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-weight: 700; }
.cart-totals { text-align: right; margin-top: 1.5rem; font-size: 1.1rem; }
.cart-totals strong { color: var(--accent); font-size: 1.4rem; }

/* ---------- Footer columns ---------- */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; margin-bottom: 1.5rem; }
.footer-grid h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-logo { display:flex; align-items:center; gap:0.6rem; margin-bottom:1rem; }
.footer-logo img { width: 40px; height: 40px; border-radius: 8px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; font-size: 0.85rem; }

/* ---------- Mobile nav ---------- */
@media (max-width: 768px) {
  .nav-list { flex-wrap: wrap; gap: 0.4rem 0.8rem; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cart-item { flex-wrap: wrap; }
}

/* ---------- Fetch & Deliver listing-type / availability badges ---------- */
.badge-consigned { background: var(--gold-soft); color: #8a6d1f; border: 1px solid var(--gold); }
.badge-local { background: #e7f0fb; color: var(--accent); border: 1px solid rgba(30,58,95,.25); }
.badge-online { background: #eef2f7; color: #4a5568; border: 1px solid #d7dee8; }
.badge-both { background: #e7f6ec; color: #1c6b3c; border: 1px solid #a7e0bd; }
.filter-group { display:flex; gap:0.5rem; flex-wrap:wrap; align-items:center; margin-bottom:0.75rem; }
.filter-group .lbl { font-size:0.8rem; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-muted); min-width:80px; }

/* ---------- Fetch & Deliver full-lockup logo (200% normal size) ---------- */
.brand-img { display:inline-flex; align-items:center; line-height:0; }
.brand-img img { height: 180px; width: 180px; display:block; }
.footer-logo img { width: 120px; height: 120px; }

/* ---------- Sidebar layout: logo + nav + quick browse (left) / body (right) ---------- */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  background: var(--accent); color: #fff; padding: 1.5rem 1.25rem;
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar .brand-img { margin-bottom: 1.25rem; }
.side-nav { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.25rem; }
.side-nav a {
  color: #fff; text-decoration: none; font-family: var(--font-display);
  font-weight: 500; font-size: 1rem; padding: 0.45rem 0.85rem; border-radius: 8px;
}
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,0.12); }
.side-nav a.nav-cta { background: var(--gold); color: #1c1c1c; font-weight: 700; }
.side-nav a.nav-cta:hover, .side-nav a.nav-cta.active { background: #e6c47f; color: #1c1c1c; }
.side-search { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1rem; }
.side-search h4 { color: var(--gold); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.side-search a { display: block; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; padding: 0.28rem 0.6rem; border-radius: 6px; }
.side-search a:hover { background: rgba(255,255,255,0.12); color: #fff; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
}

/* ---------- Photo uploader ---------- */
.photo-drop { border:2px dashed var(--border); border-radius:12px; padding:1.25rem; text-align:center; cursor:pointer; background:#fff; transition:border-color .2s, background .2s; margin-bottom:1rem; }
.photo-drop.drag { border-color:var(--gold); background:var(--accent-soft); }
.photo-drop p { margin:0 0 0.35rem; }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); gap:0.75rem; }
.photo-card { position:relative; border:1px solid var(--border); border-radius:10px; overflow:hidden; background:#fff; }
.photo-card img { width:100%; height:100px; object-fit:cover; display:block; }
.photo-cover { position:absolute; top:0; left:0; background:var(--gold); color:#1c1c1c; font-size:0.7rem; font-weight:700; padding:0.15rem 0.5rem; border-radius:0 0 8px 0; }
.photo-actions { display:flex; justify-content:center; gap:0.3rem; padding:0.35rem; }
.photo-actions button { border:1px solid var(--border); background:#fff; border-radius:6px; cursor:pointer; font-size:0.85rem; padding:0.05rem 0.45rem; line-height:1.4; }
.photo-actions button:hover { border-color:var(--accent); }
