/* ==========================================================================
   SNUSLAB — Homepage (template-home.php)
   Own namespace (sl- prefix), no Astra classes.
   ========================================================================== */

:root {
  --sl-ink: #0a0a0a;
  --sl-muted: #6b7280;
  --sl-border: #e4e6e8;
  --sl-mist: #f4f5f6;
}

.sl-home { background: #ffffff; }
.sl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top banner ---------- */
.sl-banner { padding: 16px 0 0; }
.sl-banner-panel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0a0a;
  isolation: isolate;
}
.sl-banner-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 1 / 1;
}
/* dark wash so the text stays readable over any part of the artwork */
.sl-banner-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.55) 55%, rgba(10,10,10,.88) 100%);
  z-index: 1;
}
.sl-banner-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.sl-banner-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #0a0a0a;
  background: #ffffff;
  border-radius: 999px;
  padding: 5px 11px;
}
.sl-banner-title {
  font-size: clamp(30px, 8vw, 54px);
  line-height: .96;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}
.sl-banner-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  margin: 0;
  max-width: 34ch;
}
.sl-banner-btn {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.sl-banner-btn:hover { background: #c8f03c; color: #0a0a0a; }

@media (min-width: 760px) {
  /* a square graphic stretched to 21:9 would crop most of the artwork -
     16:9 keeps more of it while still reading as a wide banner */
  .sl-banner-img { aspect-ratio: 16 / 9; object-position: center; }
  .sl-banner-overlay {
    top: 0;
    bottom: 0;
    right: auto;
    width: min(560px, 60%);
    justify-content: center;
    padding: 40px 44px;
    gap: 12px;
  }
  .sl-banner-panel::after {
    background: linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.6) 45%, rgba(10,10,10,.05) 100%);
  }
}

/* ---------- Hero ---------- */
.sl-hero { padding: 40px 0 10px; }
.sl-hero-title {
  font-size: clamp(36px, 9vw, 62px);
  line-height: .94;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--sl-ink);
  max-width: 12ch;
  margin: 0 0 12px;
}
.sl-hero-sub {
  font-size: 14px;
  line-height: 1.65;
  color: var(--sl-muted);
  max-width: 40ch;
  margin: 0;
}
.sl-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.sl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--sl-border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--sl-muted);
}
.sl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: block;
}
.sl-pill--on {
  background: var(--sl-ink);
  border-color: var(--sl-ink);
  color: #ffffff;
  font-weight: 600;
}

/* ---------- Category icons ---------- */
.sl-cats { padding: 28px 0 6px; }
.sl-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 10px;
}
.sl-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.sl-disc {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sl-ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
}
.sl-disc .sl-ic { width: 26px; height: 26px; stroke: #ffffff; }
.sl-cat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--sl-ink);
  text-align: center;
}

/* ---------- Section headers ---------- */
.sl-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 16px;
}
.sl-sec-title {
  font-size: 26px;
  letter-spacing: .8px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--sl-ink);
  margin: 0;
}
.sl-sec-link {
  font-size: 13px;
  color: var(--sl-muted);
  border-bottom: 1px solid var(--sl-border);
  padding-bottom: 2px;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Product grid (shared with shop template) ---------- */
.sl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sl-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--sl-border);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.sl-card:hover { border-color: #c7cbd0; }
.sl-card-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--sl-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sl-card-media img { width: 78%; height: 78%; object-fit: contain; }
.sl-badge {
  position: absolute;
  top: 10px; left: 10px; z-index: 2;
  font-size: 9px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
  color: #ffffff;
}
.sl-badge--sold { background: #9aa0a6; }
.sl-card--sold .sl-card-media img { opacity: .55; }
.sl-card-body {
  padding: 13px 13px 15px;
  display: flex; flex-direction: column; gap: 7px; flex: 1;
}
.sl-card-name {
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  color: var(--sl-ink); text-decoration: none; flex: 1;
}
.sl-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; padding-top: 4px;
}
.sl-card-price { font-size: 19px; font-weight: 800; color: var(--sl-ink); }
.sl-card-price del { color: #9aa0a6; font-weight: 400; font-size: 14px; margin-right: 4px; }
.sl-card-price ins { text-decoration: none; }
.sl-add-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sl-ink); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none; transition: background .15s;
}
.sl-add-btn:hover { background: #2c2f33; }

/* ---------- CTA button ---------- */
.sl-cta { margin-top: 18px; }
.sl-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--sl-ink);
  color: var(--sl-ink);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
}
.sl-btn:hover { background: var(--sl-ink); color: #ffffff; }

/* ---------- Brand chips ---------- */
.sl-brands { padding-bottom: 8px; }
.sl-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}
.sl-chips::-webkit-scrollbar { display: none; }
.sl-chip {
  flex: 0 0 auto;
  border: 1px solid var(--sl-border);
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--sl-ink);
  text-decoration: none;
}
.sl-chip:hover {
  background: var(--sl-ink);
  color: #ffffff;
  border-color: var(--sl-ink);
}

/* ---------- Benefits ---------- */
.sl-benefits-section { padding-bottom: 20px; }
.sl-bens {
  margin: 32px 0 8px;
  border-top: 1px solid var(--sl-border);
  border-bottom: 1px solid var(--sl-border);
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 14px;
}
.sl-ben { display: flex; gap: 11px; align-items: flex-start; }
.sl-ring {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--sl-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sl-ring .sl-ic { width: 17px; height: 17px; color: var(--sl-ink); }
.sl-ben b {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--sl-ink); margin-bottom: 2px;
}
.sl-ben small {
  font-size: 11.5px; color: var(--sl-muted); line-height: 1.45; display: block;
}

/* ---------- SVG icon base ---------- */
.sl-ic {
  width: 20px; height: 20px; display: block;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .sl-cats-grid { grid-template-columns: repeat(8, 1fr); }
  .sl-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sl-cta { max-width: 280px; }
}
@media (min-width: 1000px) {
  .sl-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .sl-bens { grid-template-columns: repeat(5, 1fr); }
}


/* ---------- Bestsellers (uses the same sl-grid/sl-card as Latest) ---------- */
.sl-bestsellers { padding-bottom: 8px; }

/* ---------- New design / old site preview ---------- */
.sl-redesign { padding: 36px 0 0; }
.sl-redesign-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background: #ffffff;
  border: 1px solid #e4e6e8;
  border-radius: 16px;
  padding: 26px 22px;
}
.sl-redesign-flag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #ffffff;
  background: #0a0a0a;
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 12px;
}
.sl-redesign-title {
  font-size: clamp(24px, 5.5vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #0a0a0a;
  margin: 0 0 12px;
}
.sl-redesign-text p {
  font-size: 14px;
  line-height: 1.65;
  color: #6b7280;
  margin: 0 0 14px;
  max-width: 52ch;
}
.sl-redesign-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sl-redesign-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #374151;
}
.sl-redesign-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
}

/* preview sits under the text on mobile, beside it from tablet up */
.sl-redesign-preview { display: block; max-width: 420px; margin: 0 auto; width: 100%; }

@media (min-width: 900px) {
  .sl-redesign-panel { grid-template-columns: 6fr 5fr; gap: 36px; align-items: center; padding: 34px 32px; }
  .sl-redesign-preview { max-width: none; margin: 0; }
}

.sl-redesign-caption {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9aa0a6;
  margin-bottom: 8px;
  text-align: center;
}

/* browser chrome */
.sl-oldsite {
  border: 1px solid #e4e6e8;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,.07);
}
.sl-oldsite-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: #f4f5f6;
  border-bottom: 1px solid #e4e6e8;
}
.sl-oldsite-bar span {
  width: 7px; height: 7px; border-radius: 50%; background: #d7dade;
}
.sl-oldsite-screen {
  height: 260px;
  overflow: hidden;
  background: #080808;
  position: relative;
}
@media (min-width: 900px) {
  .sl-oldsite-screen { height: 320px; }
}
/* soft fade at top and bottom so the scroll looks continuous */
.sl-oldsite-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,8,.9) 0%, rgba(8,8,8,0) 12%, rgba(8,8,8,0) 88%, rgba(8,8,8,.9) 100%);
  z-index: 3;
}
.sl-oldsite-scroll {
  transform: translateY(0);
}
.sl-oldsite-scroll.is-playing {
  animation: slOldScroll 16s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes slOldScroll {
  0%, 8%    { transform: translateY(0); }
  46%, 54%  { transform: translateY(calc(-100% + var(--sl-os-h, 320px))); }
  92%, 100% { transform: translateY(0); }
}
.sl-oldsite-scroll { --sl-os-h: 260px; }
@media (min-width: 900px) {
  .sl-oldsite-scroll { --sl-os-h: 320px; }
}

/* ---- the old dark design, in miniature ---- */
.sl-oldsite-scroll { font-family: 'DM Sans', system-ui, sans-serif; }
.sl-os-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid #1a1a1a;
}
.sl-os-nav b, .sl-os-foot b {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px; letter-spacing: 1.2px; color: #f0ede8;
}
.sl-os-nav i, .sl-os-foot i { font-style: normal; }
.sl-os-nav b i, .sl-os-foot b i { color: #c8f03c; }
.sl-os-dots { display: flex; gap: 4px; }
.sl-os-dots i { width: 12px; height: 2px; background: #3a3a3a; display: block; }

.sl-os-hero {
  padding: 22px 12px 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  background: radial-gradient(120% 80% at 70% 0%, rgba(200,240,60,.13) 0%, rgba(8,8,8,0) 60%);
}
.sl-os-eyebrow { font-size: 7px; letter-spacing: 1.6px; text-transform: uppercase; color: #c8f03c; }
.sl-os-h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px; line-height: .92; letter-spacing: .8px; color: #f0ede8;
}
.sl-os-btn {
  font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  background: #c8f03c; color: #080808; padding: 5px 12px; border-radius: 2px; margin-top: 3px;
}

.sl-os-strip {
  display: flex; justify-content: space-between; gap: 6px;
  padding: 7px 12px; border-top: 1px solid #1a1a1a; border-bottom: 1px solid #1a1a1a;
  background: #0d0d0d;
}
.sl-os-strip span { font-size: 6.5px; letter-spacing: .6px; text-transform: uppercase; color: #6b6b6b; }

.sl-os-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 12px;
}
.sl-os-card {
  background: #161616; border: 1px solid #222; border-radius: 4px; padding: 7px;
  display: flex; flex-direction: column; gap: 5px;
}
.sl-os-thumb {
  display: block; height: 42px; border-radius: 3px;
  background: radial-gradient(circle at 50% 45%, #2a2a2a 0%, #101010 70%);
}
.sl-os-card i { display: block; height: 4px; width: 78%; background: #2e2e2e; border-radius: 2px; }
.sl-os-card b { display: block; height: 5px; width: 40%; background: #c8f03c; border-radius: 2px; }

.sl-os-band { padding: 14px 12px; border-top: 1px solid #1a1a1a; }
.sl-os-band-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px; letter-spacing: 1.6px; color: #f0ede8; display: block; margin-bottom: 8px;
}
.sl-os-chips { display: flex; gap: 5px; }
.sl-os-chips i { display: block; height: 14px; width: 40px; background: #161616; border: 1px solid #222; border-radius: 999px; }

.sl-os-foot {
  padding: 14px 12px 20px; border-top: 1px solid #1a1a1a; background: #0a0a0a;
  display: flex; flex-direction: column; gap: 8px;
}
.sl-os-foot-rows { display: flex; flex-direction: column; gap: 5px; }
.sl-os-foot-rows i { display: block; height: 4px; background: #222; border-radius: 2px; }
.sl-os-foot-rows i:nth-child(1) { width: 60%; }
.sl-os-foot-rows i:nth-child(2) { width: 45%; }
.sl-os-foot-rows i:nth-child(3) { width: 52%; }

@media (prefers-reduced-motion: reduce) {
  .sl-oldsite-scroll.is-playing { animation: none; }
}

/* ---------- About ---------- */
.sl-about { padding: 36px 0 6px; }
.sl-about-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e4e6e8;
  border-radius: 16px;
  overflow: hidden;
}
.sl-about-main { padding: 26px 22px 24px; }
.sl-about-title {
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #0a0a0a;
  margin: 0 0 12px;
}
.sl-about-lead {
  font-size: 15px;
  line-height: 1.6;
  color: #0a0a0a;
  font-weight: 500;
  margin: 0 0 10px;
  max-width: 54ch;
}
.sl-about-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
  max-width: 54ch;
}
.sl-about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.sl-chip--static { cursor: default; font-weight: 500; font-size: 12px; padding: 7px 14px; }

/* right rail */
.sl-about-side {
  background: #f4f5f6;
  border-top: 1px solid #e4e6e8;
  padding: 8px 22px;
}
.sl-about-side-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.sl-about-side-row + .sl-about-side-row { border-top: 1px solid #e4e6e8; }
.sl-about-side-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e4e6e8;
  display: flex; align-items: center; justify-content: center;
  color: #0a0a0a;
}
.sl-about-side-icon .sl-ic { width: 17px; height: 17px; }
.sl-about-side-text { display: flex; flex-direction: column; gap: 2px; }
.sl-about-side-text b { font-size: 13.5px; font-weight: 700; color: #0a0a0a; }
.sl-about-side-text small { font-size: 11.5px; color: #6b7280; }

@media (min-width: 860px) {
  .sl-about-panel { grid-template-columns: 7fr 5fr; }
  .sl-about-main { padding: 34px 32px; }
  .sl-about-side {
    border-top: none;
    border-left: 1px solid #e4e6e8;
    padding: 10px 26px;
    display: flex; flex-direction: column; justify-content: center;
  }
}

/* ---------- Newsletter ---------- */
.sl-newsletter { padding: 20px 0 10px; }
.sl-nl-box {
  background: var(--sl-mist, #f4f5f6);
  border: 1px solid var(--sl-border, #e4e6e8);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}
.sl-nl-title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  color: var(--sl-ink, #0a0a0a);
  margin: 0 0 8px;
}
.sl-nl-sub {
  font-size: 14px;
  color: var(--sl-muted, #6b7280);
  margin: 0 0 20px;
  line-height: 1.6;
}
.sl-nl-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.sl-nl-input {
  flex: 1;
  border: 1px solid var(--sl-border, #e4e6e8);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  background: #ffffff;
  color: var(--sl-ink, #0a0a0a);
  outline: none;
}
.sl-nl-input:focus { border-color: var(--sl-ink, #0a0a0a); }
.sl-nl-input::placeholder { color: #9aa0a6; }
.sl-nl-btn {
  border: none;
  border-radius: 10px;
  background: var(--sl-ink, #0a0a0a);
  color: #ffffff;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sl-nl-btn:hover { background: #2c2f33; }
.sl-nl-note {
  font-size: 11px;
  color: #9aa0a6;
  margin: 12px 0 0;
}
