/* =================================================================
   Oasis Trading Post — Design System
   LEGO-inspired, clean, modern, responsive
   ================================================================= */

:root {
  --lego-red: #D01012;
  --lego-red-dark: #A50C0E;
  --lego-yellow: #FFCF00;
  --lego-yellow-dark: #E5BB00;
  --lego-blue: #006DB7;
  --lego-blue-dark: #00558F;
  --lego-green: #00852B;
  --ink: #1a1a1a;
  --ink-soft: #444;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-stud: #fafbfc;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lego-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.75rem 1.25rem; max-width: var(--container); margin: 0 auto;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0;
  text-decoration: none; color: var(--ink);
}
.nav-brand img { height: 44px; width: auto; }
.nav-brand-text {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  display: none;
}
@media (min-width: 480px) { .nav-brand-text { display: block; } }

.nav-menu {
  display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.nav-menu a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
  transition: background 0.15s, color 0.15s; text-decoration: none;
}
.nav-menu a:hover { background: var(--bg-soft); }
.nav-menu a.active { color: var(--lego-red); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 0.5rem; color: var(--ink);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 0.5rem;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu li { width: 100%; }
  .nav-menu a { padding: 0.85rem 1rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative; padding: 4rem 0 5rem; overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(208, 16, 18, 0.06), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(0, 109, 183, 0.06), transparent 40%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.04) 2px, transparent 2.5px);
  background-size: 32px 32px; opacity: 0.6;
}
.hero-inner { position: relative; text-align: center; max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }
.hero-logo { max-width: 480px; width: 100%; margin: 0 auto 1.5rem; }
.hero h1 { margin: 0.5rem 0 1rem; }
.hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft);
  max-width: 620px; margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--lego-red); color: #fff; box-shadow: 0 2px 0 var(--lego-red-dark); }
.btn-primary:hover { background: var(--lego-red-dark); box-shadow: 0 4px 12px rgba(208, 16, 18, 0.3); }

.btn-secondary { background: var(--lego-blue); color: #fff; box-shadow: 0 2px 0 var(--lego-blue-dark); }
.btn-secondary:hover { background: var(--lego-blue-dark); box-shadow: 0 4px 12px rgba(0, 109, 183, 0.3); }

.btn-yellow { background: var(--lego-yellow); color: var(--ink); box-shadow: 0 2px 0 var(--lego-yellow-dark); }
.btn-yellow:hover { background: var(--lego-yellow-dark); box-shadow: 0 4px 12px rgba(255, 207, 0, 0.4); }

.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); background: var(--bg-soft); }

.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-soft { background: var(--bg-soft); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--lego-red); margin-bottom: 0.75rem;
}

/* ===== Brick accent (left bar with stud) ===== */
.brick-accent {
  position: relative; padding-left: 1.25rem;
}
.brick-accent::before {
  content: ""; position: absolute; left: 0; top: 0.4em; bottom: 0.4em;
  width: 6px; background: var(--lego-red); border-radius: 3px;
}

/* ===== Card grid ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d4d8de; }

.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.5rem;
}
.card .icon.red { background: rgba(208, 16, 18, 0.1); color: var(--lego-red); }
.card .icon.yellow { background: rgba(255, 207, 0, 0.2); color: var(--lego-yellow-dark); }
.card .icon.blue { background: rgba(0, 109, 183, 0.1); color: var(--lego-blue); }
.card .icon.green { background: rgba(0, 133, 43, 0.1); color: var(--lego-green); }

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); margin-bottom: 1rem; flex-grow: 1; }
.card-link {
  font-weight: 600; color: var(--lego-blue);
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.card-link:hover { color: var(--lego-blue-dark); }

/* Featured platform cards (BrickLink/eBay) */
.platform-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 1rem;
}
.platform-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.platform-card h3 { font-size: 1.5rem; }
.platform-card .badge {
  display: inline-block; padding: 0.25rem 0.65rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-red { background: rgba(208, 16, 18, 0.1); color: var(--lego-red); }
.badge-blue { background: rgba(0, 109, 183, 0.1); color: var(--lego-blue); }
.badge-yellow { background: rgba(255, 207, 0, 0.2); color: #8a6c00; }

/* ===== About / split sections ===== */
.split { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ===== Stats ===== */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat { text-align: center; padding: 1rem; }
.stat-num { font-size: 2.25rem; font-weight: 800; color: var(--lego-red); line-height: 1; }
.stat-label { font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; font-weight: 600; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--lego-red), var(--lego-red-dark));
  color: #fff; padding: 3.5rem 1.25rem; border-radius: var(--radius-lg);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 2px, transparent 2.5px);
  background-size: 28px 28px; opacity: 0.6;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 1.75rem; }
.cta-banner .btn-yellow { box-shadow: 0 2px 0 var(--lego-yellow-dark); }

/* ===== Software/Support page styles ===== */
.support-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.support-table th, .support-table td {
  padding: 1rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line);
}
.support-table th { background: var(--bg-soft); font-weight: 700; font-size: 0.95rem; }
.support-table tbody tr:last-child td { border-bottom: 0; }
.support-table tbody tr:hover { background: var(--bg-soft); }
.support-table .name { font-weight: 700; color: var(--lego-blue); }

@media (max-width: 640px) {
  .support-table thead { display: none; }
  .support-table, .support-table tbody, .support-table tr, .support-table td { display: block; width: 100%; }
  .support-table tr { padding: 1rem; border-bottom: 1px solid var(--line); }
  .support-table td { padding: 0.25rem 0; border: 0; }
  .support-table .name { font-size: 1.05rem; }
}

.tier-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.tier {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; transition: border-color 0.15s, transform 0.15s;
}
.tier:hover { border-color: var(--lego-blue); transform: translateY(-2px); }
.tier h3 { color: var(--lego-blue); margin-bottom: 0.25rem; }
.tier .tier-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.tier p { font-size: 0.95rem; }

.alert {
  border-left: 4px solid var(--lego-yellow); background: rgba(255, 207, 0, 0.08);
  padding: 1rem 1.25rem; border-radius: 8px; margin: 1.5rem 0;
}
.alert strong { color: #8a6c00; }

/* ===== Contact form ===== */
.contact-grid {
  display: grid; gap: 3rem; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(208, 16, 18, 0.1); color: var(--lego-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.contact-info-item h4 { margin: 0 0 0.15rem; font-size: 1rem; }
.contact-info-item p { margin: 0; color: var(--ink-soft); }
.contact-info-item a { color: var(--ink); font-weight: 600; }

form.contact-form {
  background: #fff; padding: 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem;
}
.form-row input, .form-row textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: 8px; font-size: 1rem; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 0; border-color: var(--lego-blue);
  box-shadow: 0 0 0 3px rgba(0, 109, 183, 0.15);
}
.form-row textarea { resize: vertical; min-height: 140px; }

/* ===== Social ===== */
.social-row {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem;
}
.social-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--ink); transition: transform 0.15s, background 0.15s, color 0.15s;
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn.facebook:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; border-color: transparent;
}
.social-btn.x:hover { background: #000; color: #fff; border-color: #000; }
.social-btn svg { width: 22px; height: 22px; }

/* ===== Footer ===== */
.site-footer {
  background: #111; color: #d1d5db; padding: 3rem 0 1.5rem; margin-top: 5rem;
}
.footer-grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.site-footer h4 {
  color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #9ca3af; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand-block img { max-width: 200px; margin-bottom: 1rem; }
.site-footer .brand-block p { color: #9ca3af; font-size: 0.95rem; }

.footer-social {
  display: flex; gap: 0.65rem; align-items: center;
  padding: 1.25rem 0; border-top: 1px solid #1f2937;
  margin-bottom: 0.5rem;
}
.footer-social .social-btn {
  background: #1f2937; border-color: #374151; color: #d1d5db;
  width: 40px; height: 40px;
}
.footer-social .social-btn:hover { color: #fff; }
.footer-social-label {
  font-size: 0.85rem; color: #9ca3af; margin-right: 0.5rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}

.footer-bottom {
  border-top: 1px solid #1f2937; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.85rem; color: #6b7280;
}

/* ===== Page hero (smaller, for inner pages) ===== */
.page-hero {
  padding: 3rem 0 2rem; text-align: center;
  background: linear-gradient(180deg, var(--bg-soft), transparent);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: 0.5rem 0 0.5rem 1.75rem; position: relative;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--lego-yellow); box-shadow: 0 0 0 3px rgba(255, 207, 0, 0.25);
}


/* Homepage retail-location announcement */
.retail-location-banner {
  background: #fac42d;
  border-bottom: 3px solid #c21e1c;
  color: #202020;
}
.retail-location-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.72rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  font-size: 1rem;
}
.retail-open-badge {
  background: #be1e1c;
  color: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.72rem;
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.retail-location-inner strong {
  font-size: 1.08rem;
  white-space: nowrap;
}
.retail-divider {
  color: #be1e1c;
  font-weight: 900;
}
.hero-logo-home {
  max-width: 760px;
  width: min(100%, 760px);
}
@media (max-width: 720px) {
  .retail-location-inner {
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
    font-size: 0.92rem;
  }
  .retail-divider {
    display: none;
  }
  .retail-location-inner > span:last-child {
    flex-basis: 100%;
  }
}

.retail-location-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.retail-location-link:hover {
  color: #be1e1c;
}

/* Software & Support under-construction notice */
.construction-notice {
  background: #fff7d6;
  border-bottom: 1px solid #e6c453;
}
.construction-notice-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.construction-label {
  flex: 0 0 auto;
  background: #f4c542;
  color: #1f2937;
  border: 2px solid #1f2937;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.construction-notice p {
  margin: 0.2rem 0 0;
  color: #4b5563;
}
.construction-notice a {
  font-weight: 700;
}
@media (max-width: 700px) {
  .construction-notice-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== About page: A Look Back carousel ===== */
.lookback-section { border-bottom: 1px solid var(--line); }
.lookback-heading { margin-bottom: 2rem; }
.lookback-heading .eyebrow { margin-bottom: 0.45rem; }
.lookback-heading h2 { margin-bottom: 0.35rem; }
.lookback-carousel { max-width: 920px; margin: 0 auto; }
.lookback-viewport {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: #111; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.lookback-track { position: relative; width: 100%; height: 100%; }
.lookback-slide {
  position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.45s ease; display: flex; align-items: center; justify-content: center;
  background: #111;
}
.lookback-slide.is-active { opacity: 1; visibility: visible; }
.lookback-slide img { width: 100%; height: 100%; object-fit: contain; }
.lookback-arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(17,17,17,0.78); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22); transition: background 0.15s, transform 0.15s;
}
.lookback-arrow:hover { background: rgba(208,16,18,0.94); transform: translateY(-50%) scale(1.04); }
.lookback-prev { left: 1rem; }
.lookback-next { right: 1rem; }
.lookback-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.lookback-counter { color: var(--muted); font-size: 0.85rem; font-weight: 700; min-width: 42px; }
.lookback-dots { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.lookback-dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
  background: #c8cdd4; cursor: pointer; transition: width 0.2s, background 0.2s;
}
.lookback-dot.is-active { width: 28px; background: var(--lego-red); }
.lookback-dot:focus-visible, .lookback-arrow:focus-visible { outline: 3px solid var(--lego-yellow); outline-offset: 3px; }
@media (max-width: 640px) {
  .lookback-arrow { width: 40px; height: 40px; font-size: 1.25rem; }
  .lookback-prev { left: 0.65rem; }
  .lookback-next { right: 0.65rem; }
}
@media (prefers-reduced-motion: reduce) { .lookback-slide { transition: none; } }


/* Contact page selling / help callouts */
.sell-callout {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 207, 0, 0.16), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(229, 187, 0, 0.45);
}
.sell-callout .eyebrow {
  margin-bottom: 0.35rem;
  color: #8a6c00;
}
.sell-callout h3 {
  margin-bottom: 0.5rem;
}
.sell-callout p {
  margin-bottom: 0;
}
.contact-help-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.contact-help-box h4 {
  margin-top: 0;
}
.contact-help-box .feature-list {
  margin-bottom: 0;
}


/* Homepage clickable selling card */
.sell-category-card {
  color: inherit;
  text-decoration: none;
  border: 2px solid rgba(255, 207, 0, 0.75);
  background: linear-gradient(180deg, rgba(255, 207, 0, 0.10), #fff 55%);
}
.sell-category-card:hover {
  color: inherit;
  text-decoration: none;
  border-color: var(--lego-yellow-dark);
  box-shadow: var(--shadow);
}
.sell-category-card .sell-card-eyebrow {
  color: #8a6c00;
  margin-bottom: 0.35rem;
}
.sell-category-card .card-link {
  margin-top: auto;
}


/* eBay category card alignment */
.ebay-category-grid {
  align-items: stretch;
}
.ebay-category-card {
  height: 100%;
}
.ebay-category-card .btn {
  margin-top: auto;
  justify-content: center;
}


/* ===== Homepage featured BrickLink inventory ===== */
.featured-inventory-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured-inventory-heading {
  margin-bottom: 2rem;
}
.featured-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.featured-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  min-width: 0;
}
.featured-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d4d8de;
}
.featured-product-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.featured-product-link:hover {
  color: inherit;
  text-decoration: none;
}
.featured-product-image {
  position: relative;
  min-height: 205px;
  padding: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.featured-product-image img {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 175px;
  object-fit: contain;
}
.featured-sale-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: var(--lego-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  box-shadow: var(--shadow-sm);
}
.featured-product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.2rem 1.25rem;
}
.featured-product-body h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  min-height: 2.6em;
}
.featured-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.featured-price-row strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}
.featured-original-price {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: line-through;
}
.featured-bricklink-link {
  margin-top: auto;
  color: var(--lego-blue);
  font-weight: 700;
  font-size: 0.92rem;
}
.featured-product-link:hover .featured-bricklink-link {
  color: var(--lego-blue-dark);
  text-decoration: underline;
}
.featured-inventory-footer {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

@media (max-width: 900px) and (min-width: 681px) {
  .featured-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .featured-inventory-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0 1.25rem 0.8rem;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .featured-product-card {
    flex: 0 0 min(78vw, 285px);
    scroll-snap-align: start;
  }
  .featured-product-image {
    min-height: 195px;
  }
  .featured-product-body h3 {
    min-height: 0;
  }
}


/* Featured set-card preview refinements */
.featured-product-card-preview .featured-product-image img {
  max-width: 100%;
  max-height: 185px;
}
.featured-link-pending {
  color: var(--muted);
  text-decoration: none !important;
  cursor: default;
}


/* ===== Sept 2026: compact homepage art, original nav branding retained ===== */
.hero-logo-home {
  max-width: 650px;
  width: min(100%, 650px);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 680px) {
  .hero {
    padding-top: 2.35rem;
    padding-bottom: 3rem;
  }
  .hero-logo-home {
    max-width: 330px;
    margin-bottom: 1rem;
    border-radius: 10px;
  }
}

/* ===== eBay current-inventory teaser ===== */
.ebay-current-teaser {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.ebay-current-heading {
  margin-bottom: 1.75rem;
}
.ebay-current-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.ebay-current-photo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ebay-current-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f7f7f7;
}
@media (max-width: 900px) {
  .ebay-current-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ebay-current-gallery {
    display: flex;
    overflow-x: auto;
    gap: 0.9rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding: 0 1.25rem 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .ebay-current-photo {
    flex: 0 0 78vw;
    max-width: 300px;
    scroll-snap-align: start;
  }
}
