/* ==========================================================================
   SickOfAllOfIt — shared styles
   ========================================================================== */

/* EDIT: site-wide color palette and fonts. These variables feed almost every
   color/font used across all 4 pages, so changing one here changes it
   everywhere at once. --accent is the orange used for buttons, links, and
   highlights — it's the one most worth trying different values for. */
:root {
  --bg: #0c0c0e;
  --bg-raised: #16161a;
  --bg-card: #1b1b20;
  --border: #2a2a30;
  --text: #f2f0ea;
  --text-dim: #9c9aa3;
  --text-faint: #6b6975;
  --accent: #c96f4a;
  --accent-hover: #dd8862;
  --accent-soft: rgba(201, 111, 74, 0.14);
  --cream: #e8e1d3;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  animation: page-fade 0.4s ease;
}

@keyframes page-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3,
.brand,
.stat-card .num,
.card-body h3 {
  font-family: var(--font-display);
  letter-spacing: -0.3px;
}

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

/* EDIT: wider variant of .wrap, used on the catalog page so 4 full-size
   product cards fit per row without shrinking them. Add "wrap-wide" alongside
   "wrap" on any section that needs the extra room; change the max-width here
   to make it wider/narrower everywhere it's used. */
.wrap-wide {
  max-width: 1500px;
}

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
}

.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #8a4a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #0c0c0e;
}

.navlinks {
  display: flex;
  gap: 4px;
  align-items: center;
}

.navlinks a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
}

.navlinks a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.navlinks a:hover { color: var(--text); background: var(--bg-raised); }
.navlinks a:hover::after { transform: scaleX(1); }
.navlinks a.active { color: var(--cream); background: var(--accent-soft); }
.navlinks a.active::after { transform: scaleX(0); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wishlist-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s;
}

.wishlist-btn:hover { border-color: var(--accent); }

.wishlist-count {
  background: var(--accent);
  color: #0c0c0e;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 10px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
  animation: blob-pulse 8s ease-in-out infinite;
}

@keyframes blob-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 58px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.08;
  margin: 0 0 20px;
}

.hero h1 span { color: var(--accent); font-weight: 700; }

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--text-dim);
  font-size: 17px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Hero split + conveyor ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  margin-bottom: 56px;
}

.hero-split p.lead { margin: 0 0 30px; }
.hero-split .hero-ctas { justify-content: flex-start; }

.conveyor {
  display: flex;
  gap: 14px;
  height: 520px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}

.conveyor-col {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.conveyor-track {
  display: flex;
  flex-direction: column;
  animation: conveyor-scroll linear infinite;
}

@keyframes conveyor-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.conveyor-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 14px;
  transition: border-color 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.conveyor-card:hover { border-color: var(--accent); }

.conveyor-swatch {
  aspect-ratio: 3 / 4;
  width: 100%;
  display: block;
  /* EDIT: "contain" (not "cover") so a tall/wide product photo shows in full,
     letterboxed on --bg-raised above, instead of being cropped — see the
     matching .card-media .swatch comment for the same choice on the catalog
     grid. Only applies when this is a real <img>; harmless on the gradient
     placeholder div. */
  object-fit: contain;
  background: var(--bg-raised);
}

.conveyor-info { padding: 10px 12px; }

.conveyor-brand {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.conveyor-cat {
  display: block;
  font-size: 10.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .conveyor-track { animation: none; }
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-split .hero-ctas { justify-content: center; }
  .conveyor { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #0c0c0e; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

/* ---------- Stat strip ---------- */
/* EDIT: the "repeat(4, 1fr)" below must match how many .stat-card blocks are
   in the homepage stats section (index.html) — 4 columns for 4 cards. If you
   add/remove a stat card there, update the 4 here to match. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 56px 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}

.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--cream);
}

.stat-card .label {
  font-size: 12px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.faq-q .chev {
  transition: transform 0.2s;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 14px;
}

.faq-item.open .faq-q .chev { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: var(--text-dim);
  font-size: 14px;
  padding: 0 22px;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 22px 20px;
}

/* ---------- CTA block ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-raised));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}

.cta-block h3 { font-size: 24px; margin: 0 0 10px; }
.cta-block p { color: var(--text-dim); margin: 0 0 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-social {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-social svg { flex-shrink: 0; }

.footer-social:hover { color: var(--accent); border-color: var(--accent); }

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  padding: 5px 0;
}
.footer-col a:hover { color: var(--accent); }

.disclaimer {
  font-size: 11.5px;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  padding-top: 20px;
  line-height: 1.7;
}

.copyright {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 16px;
}

/* ---------- Catalog layout ---------- */
.catalog-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 40px 0 90px;
}

.sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
}

.sidebar h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin: 0 0 12px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

.sidebar-links a {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.sidebar-links a:hover, .sidebar-links a.active {
  background: var(--bg-card);
  color: var(--text);
  transform: translateX(3px);
}

.catalog-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13px;
  width: 100%;
}

.search-box input::placeholder { color: var(--text-faint); }
.search-box svg { color: var(--text-faint); flex-shrink: 0; }

.select-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}

.select-box:hover, .select-box:focus-within { border-color: var(--accent); }

.select-box select {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  padding: 10px 34px 10px 14px;
  cursor: pointer;
}

.select-box select option {
  background: var(--bg-card);
  color: var(--text);
}

.select-box svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.results-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 20px;
}

/* ---------- Product grid & cards ---------- */
/* EDIT: catalog items per row on wide screens. Change the 4 to show more/fewer
   columns (there are matching, smaller values for tablet/mobile screens
   further down this file, in the @media sections, if you want those too).
   The page uses .wrap-wide (see near the top of this file) to make room for
   4 full-size cards without shrinking them — if you lower this number you
   may not need that extra width anymore. */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
  will-change: transform;
  transform-style: preserve-3d;
  position: relative;
  cursor: pointer;
}

.card-enter {
  opacity: 0;
  animation: card-in 0.5s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .card-enter { animation: none; opacity: 1; }
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

/* EDIT: shape of the image area at the top of each card — a lower number
   (e.g. 1/1) makes it taller/bigger, a higher number (e.g. 16/9) makes it
   shorter. Applies to both the placeholder gradient and real photos alike. */
.card-media {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
}

.card-media .swatch {
  width: 100%;
  height: 100%;
  /* EDIT: "contain" shows the whole photo (letterboxed on --bg-raised above if
     it isn't square) instead of cropping it to fill the box — "cover" crops
     aggressively on tall/wide product photos, cutting off real content. */
  object-fit: contain;
  display: block;
}

.card-media .swatch.blur-in {
  filter: blur(14px);
  opacity: 0;
  transform: scale(1.08);
  transition: filter 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}
.card-media .swatch.blur-in.loaded {
  filter: blur(0);
  opacity: 1;
  transform: scale(1);
}

.card-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.15s, transform 0.15s;
  z-index: 2;
}

.card-wish:hover { transform: scale(1.08); }
.card-wish.active { color: var(--accent); background: rgba(12, 12, 14, 0.75); }
.card-wish svg { pointer-events: none; }

.card-wish.pop { animation: heart-pop 0.4s ease; }

@keyframes heart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .card-wish.pop { animation: none; }
}

.card-tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(12, 12, 14, 0.6);
  backdrop-filter: blur(4px);
  color: var(--cream);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 9px;
  border-radius: 6px;
  z-index: 2;
}

.card-body { padding: 20px; }

.card-seller {
  display: block;
  font-size: 11.5px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.card-body h3 {
  font-size: 15.5px;
  margin: 0 0 12px;
  font-weight: 700;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--cream);
}

.view-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.card:hover .view-hint { transform: translateX(3px); }

/* ---------- Skeleton loading ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-raised) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card { height: 280px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-faint);
  grid-column: 1 / -1;
}

/* ---------- Social links (Links page) ---------- */
.social-grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--bg-raised);
}

.social-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.social-icon svg { width: 32px; height: 32px; }

/* EDIT: background color behind each icon on the Links page (updates.html).
   .mail is the Newsletter card's icon background — it's currently white so
   the red "k." logo image (img/newletter-icon.png) stands out; if you swap
   that image for a different one, you may want to change this color to match. */
.social-icon.ig { background: linear-gradient(135deg, #f6a03c, #dd2a7b, #7c3aed); }
.social-icon.tiktok { background: #101114; }
.social-icon.pinterest { background: #d5003c; }
.social-icon.youtube { background: #e11d1d; }
.social-icon.x { background: #16161a; border: 1px solid var(--border); }
.social-icon.mail { background: #ffffff; color: #0c0c0e; }

.social-body { flex: 1; min-width: 0; }

.social-body h3 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 600;
}

.social-body p {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0 0 8px;
}

.social-handle {
  font-size: 13px;
  color: var(--text-faint);
  font-weight: 600;
}

.social-arrow {
  font-size: 24px;
  color: var(--text-faint);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.social-card:hover .social-arrow { color: var(--accent); transform: translateX(3px); }

/* ---------- Guide page (step list) ---------- */
.step-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0;
}

.step-item {
  display: flex;
  gap: 20px;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body { flex: 1; min-width: 0; }

.step-body h3 { font-size: 17px; margin: 4px 0 8px; }

.step-placeholder {
  color: var(--text-faint);
  font-size: 14px;
  font-style: italic;
  margin: 0 0 14px;
}

.step-image-placeholder {
  aspect-ratio: 16 / 9;
  max-width: 420px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-raised);
}

.marquee-track {
  display: inline-flex;
  width: max-content;
  padding: 14px 0;
  animation: marquee-scroll 26s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 0 18px;
  white-space: nowrap;
}

.marquee-track span:nth-child(2n) {
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  padding: 0 6px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Partner block ---------- */
.partner-block {
  border-color: rgba(201, 111, 74, 0.35);
  position: relative;
}

/* ---------- Product modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal { transition: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s, transform 0.15s;
}

.modal-close:hover { background: var(--bg-raised); transform: scale(1.06); }

.modal-gallery {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-raised);
}

/* Set only when there's a real photo in the main box (see showMainImage() in
   js/catalog.js) — clicking it opens the full-size lightbox. */
.modal-gallery-main:has(.modal-gallery-img) {
  cursor: zoom-in;
}

.modal-gallery-img {
  width: 100%;
  height: 100%;
  /* EDIT: "contain" (not "cover") so a tall/wide product photo shows in full,
     letterboxed on --bg-raised above, instead of being cropped to fill the box. */
  object-fit: contain;
  display: block;
}

.modal-gallery-thumbs-wrap {
  position: relative;
}

.modal-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.modal-gallery-thumbs::-webkit-scrollbar { display: none; }

/* EDIT: 3 boxes visible at a time — extra photos scroll via the arrow buttons
   instead of shrinking to fit. Math: 2 gaps of 10px shared across 3 boxes. */
.modal-gallery-thumbs button {
  flex: 0 0 calc((100% - 20px) / 3);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: var(--bg-raised);
  transition: border-color 0.15s ease;
}

.modal-gallery-thumbs button img {
  width: 100%;
  height: 100%;
  /* EDIT: "contain", not "cover" — see .modal-gallery-img above for why. */
  object-fit: contain;
  display: block;
}

.modal-gallery-thumbs button.active,
.modal-gallery-thumbs button:hover { border-color: var(--accent); }

.modal-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s, transform 0.15s;
}

.modal-gallery-arrow:hover { background: rgba(12, 12, 14, 0.9); }
.modal-gallery-arrow.prev { left: 4px; }
.modal-gallery-arrow.next { right: 4px; }
.modal-gallery-arrow[hidden] { display: none; }

.modal-details {
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.modal-tag-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 12px;
}

.modal-seller {
  font-size: 13.5px;
  color: var(--text-faint);
}

.modal-title {
  font-size: 32px;
  margin: 6px 0 14px;
  font-weight: 700;
}

.modal-price {
  font-size: 23px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 28px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-wish { display: inline-flex; align-items: center; gap: 8px; }
.modal-wish.active { border-color: var(--accent); color: var(--accent); }
.modal-wish svg { flex-shrink: 0; }

/* EDIT: color/size option pills shown below the Wishlist/Visit Site buttons.
   Populated from a product's "colors"/"sizes" arrays in data/products.json —
   a group is skipped entirely when that array is empty or missing. */
.modal-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.option-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-faint);
  margin-bottom: 8px;
  display: block;
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill {
  font-size: 13px;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

/* EDIT: color swatch photo size — used instead of an .option-pill whenever a
   color has its own distinct photo (see the "colors" schema note in
   js/catalog.js). Clicking one opens the same lightbox as gallery thumbnails. */
.option-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.option-swatch:hover { border-color: var(--accent); }

.option-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Image lightbox (full-size preview on thumbnail click) ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(12, 12, 14, 0.7);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.lightbox-close:hover { background: rgba(12, 12, 14, 0.9); transform: scale(1.06); }

@media (max-width: 640px) {
  .modal { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-details { padding: 8px 20px 24px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
  .sidebar-links { flex-direction: row; margin-bottom: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navlinks { display: none; }
  .menu-toggle { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .social-card { padding: 20px; gap: 16px; }
  .social-icon { width: 52px; height: 52px; }
  .social-icon svg { width: 24px; height: 24px; }
  .social-body h3 { font-size: 18px; }
}
