/* ==============================================
   LOVEGOBUY FINDS — Stylesheet
   Fonts: Syne (headings) + Plus Jakarta Sans (body)
   Theme: Dark
============================================== */

/* --- Design Tokens --- */
:root {
  --bg:          #FFFFFF;
  --bg-alt:      #FFFFFF;
  --bg-card:     #FFFFFF;
  --bg-hover:    #F2F2F2;
  --text:        #0D0D0D;
  --text-muted:  #6B7280;
  --border:      #E5E5E5;
  --accent:      #00A86B;
  --accent-dark: #008F5A;
  --accent-bg:   rgba(0, 168, 107, 0.09);

  --display: 'DM Serif Display', Georgia, serif;
  --sans:    'Poppins', system-ui, sans-serif;

  --nav-h:  64px;
  --max-w:  1440px;
  --pad-x:  clamp(1.25rem, 5vw, 5rem);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
  font-size: 15px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
  user-select: none;
}

button { background: none; border: none; cursor: pointer; font-family: inherit; }
a { text-decoration: none; color: inherit; }

::selection { background: rgba(0, 168, 107, 0.55); color: #fff; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ================================================
   NAVBAR
================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
  width: fit-content;
  align-self: center;
  transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
}

.nav__brand:hover {
  transform: none;
}

.nav__brand-logo {
  display: block;
  width: 26px;
  height: 26px;
  min-width: 26px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

.nav__brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.nav__brand-accent {
  color: var(--accent);
}

/* Center — single dark pill container */
.nav__center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 4px 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.83rem;
  font-weight: 500;
  color: #3D4451;
  white-space: nowrap;
  padding: 7px 17px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  background: transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  user-select: none;
  font-family: var(--sans);
}

.nav__link:hover {
  color: #0D0D0D;
  background: transparent;
}

.nav__link.is-active-page {
  color: #0D0D0D;
  background: transparent;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 8px rgba(0, 168, 107, 0.28);
  text-shadow: 0 0 10px rgba(0, 168, 107, 0.18);
}

.nav__link.is-active-page:hover {
  background: var(--accent-bg);
}

/* Click spring animation — ease-spring from beatlink.io */
@keyframes navPill-press {
  0%   { transform: scale(1); }
  35%  { transform: scale(0.87); }
  100% { transform: scale(1); }
}

.nav__link.is-pressed {
  animation: navPill-press 0.45s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

/* Right side */
.nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.nav__cta {
  padding: 10px 22px;
  background: #0D0D0D;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  font-family: var(--sans);
  letter-spacing: -0.01em;
  transition: background 0.25s, transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
}

.nav__cta:hover {
  background: #2a2a2a;
  transform: scale(1.03);
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.nav__burger:hover { border-color: var(--text-muted); }

.nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}

.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu — hidden on desktop completely */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 199;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  flex-direction: column;
  padding: 1.5rem var(--pad-x) 2rem;
  gap: 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease-out), opacity 0.25s;
}

.nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav__mobile-link:last-of-type { border-bottom: none; }
.nav__mobile-link:hover { color: var(--text); }

.nav__mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
  transition: background 0.2s;
}

.nav__mobile-cta:hover { background: var(--accent-dark); }

/* ================================================
   HERO
================================================ */
.hero {
  padding: calc(var(--nav-h) + 5rem) var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 60% at 50% -5%, rgba(0,168,107,0.10) 0%, transparent 65%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero__tp-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: var(--accent-bg);
  border: 1px solid rgba(0,182,122,0.2);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.hero__tp-logo-star { display: block; flex-shrink: 0; }

.hero__tp-wordmark { font-weight: 600; color: #191919; letter-spacing: -0.01em; }

.hero__tp-sep { color: var(--border); }

.hero__tp-stars { color: #00B67A; font-size: 0.75rem; letter-spacing: 1px; }
.hero__tp-half {
  display: inline-block;
  background: linear-gradient(90deg, #00B67A 50%, #D1D5DB 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tp-score { color: #191919; font-weight: 700; }

.hero__tp-count { color: var(--text-muted); }

.hero__title {
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero__sub {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.hero__sub strong { color: var(--text); }

.hero__title-accent { color: var(--accent); }

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__nudge {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: -0.5rem;
}

/* Buttons */
.btn {
  padding: 13px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--sans);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,182,122,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* Hero stats bar */
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  margin: 0 calc(-1 * var(--pad-x));
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 1.5rem 3rem;
  flex: 1;
  border-right: 1px solid var(--border);
}

.hero__stat:last-child { border-right: none; }

.hero__stat-num {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ================================================
   HERO FADE-IN (page load)
================================================ */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__content > * {
  animation: hero-fade-in 0.7s var(--ease-out) both;
}

.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.18s; }
.hero__content > *:nth-child(3) { animation-delay: 0.30s; }
.hero__content > *:nth-child(4) { animation-delay: 0.42s; }

.page-hero > * {
  animation: hero-fade-in 0.7s var(--ease-out) both;
}

.page-hero > *:nth-child(1) { animation-delay: 0.05s; }
.page-hero > *:nth-child(2) { animation-delay: 0.18s; }
.page-hero > *:nth-child(3) { animation-delay: 0.30s; }

/* ================================================
   CATEGORY TABS
================================================ */
.cat-tabs-wrapper {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-tabs-wrapper::-webkit-scrollbar { display: none; }

.cat-tabs {
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  min-width: max-content;
}

.cat-tab {
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  background: transparent;
}

.cat-tab:hover { color: var(--text); }

.cat-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ================================================
   TOOLBAR
================================================ */
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.toolbar__filter-wrapper {
  position: relative;
  flex-shrink: 0;
}

.toolbar__filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.2s;
  white-space: nowrap;
}

.toolbar__filter-btn:hover { border-color: var(--text-muted); color: var(--text); }

.toolbar__chevron { font-size: 9px; }

.toolbar__filter-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 180px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s var(--ease-out), opacity 0.2s, visibility 0.2s;
  visibility: hidden;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.toolbar__filter-dropdown.is-open {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
}

.toolbar__filter-item {
  padding: 10px 14px;
  font-size: 0.8rem;
  font-family: var(--sans);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar__filter-item:last-child { border-bottom: none; }
.toolbar__filter-item:hover { background: var(--bg-hover); color: var(--text); }
.toolbar__filter-item.is-active { color: var(--accent); font-weight: 600; }
.toolbar__filter-item--all { font-weight: 600; color: var(--text); }
.toolbar__filter-item--all::before { display: none; }

.toolbar__filter-item::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.toolbar__filter-item.is-active::before {
  background: var(--accent);
  border-color: var(--accent);
}

.toolbar__search-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.toolbar__search-icon {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.toolbar__search {
  width: 100%;
  padding: 8px 14px 8px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  transition: border-color 0.2s;
}

.toolbar__search::placeholder { color: var(--text-muted); }
.toolbar__search:focus { outline: none; border-color: var(--accent); }

.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--bg-card);
}

.toolbar__sort:hover { border-color: var(--text-muted); color: var(--text); }
.toolbar__sort.is-asc .toolbar__sort-chevron,
.toolbar__sort.is-desc .toolbar__sort-chevron { color: var(--accent); }
.toolbar__sort-chevron { font-size: 10px; display: inline-block; transition: transform 0.2s; }
.toolbar__sort.is-desc .toolbar__sort-chevron { transform: rotate(180deg); }

/* Count */
.collection__count-wrapper {
  padding: 7px var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.collection__count {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ================================================
   COLLECTION / PRODUCTS
================================================ */
.collection {
  padding: 0 var(--pad-x) 4.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: transparent;
}

.collection__loading,
.collection__empty {
  text-align: center;
  padding: 6rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.loading__dots { animation: blink 1.4s step-end infinite; }

/* Product Card */
.product-card {
  display: block;
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: background 0.25s;
}

.product-card:hover { background: var(--bg-card); z-index: 1; position: relative; }

.product-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__image img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
}

.product-card:hover .product-card__image img { transform: scale(1.03); }

.product-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-card__info {
  padding: 0.9rem 1rem 1.1rem;
  border-top: 1px solid var(--border);
}

.product-card__name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.product-tooltip {
  position: fixed;
  background: #fff;
  color: #0D0D0D;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 9999;
}

.product-card__price {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
}

.product-card__cta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--sans);
}

.product-card:hover .product-card__cta {
  color: var(--accent);
}

/* Fade in */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.fade-in.is-visible { opacity: 1; transform: translateY(0); }

.products-sentinel { height: 1px; pointer-events: none; }

/* ================================================
   REVIEWS
================================================ */
.reviews {
  background: var(--bg-alt);
  padding: 2.5rem var(--pad-x);
  border-top: 1px solid var(--border);
}

.reviews__inner { max-width: var(--max-w); margin: 0 auto; }

.reviews__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  text-align: center;
}

.reviews__tp-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.875rem;
}

.reviews__tp-stars { color: #00B67A; font-size: 1rem; letter-spacing: 2px; }
.reviews__tp-star-half {
  background: linear-gradient(90deg, #00B67A 50%, #D1D5DB 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.reviews__tp-score { font-family: var(--sans); font-size: 0.85rem; font-weight: 700; color: var(--text); }
.reviews__tp-sep { color: var(--text-muted); font-size: 0.75rem; }
.reviews__tp-label { font-size: 0.8rem; color: var(--text-muted); }

.reviews__title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.reviews__sub { font-size: 0.88rem; color: var(--text-muted); margin-top: -0.5rem; }

.reviews__carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviews__track-wrapper {
  overflow: hidden;
  flex: 1;
  padding: 4px 0;
  margin: -4px 0;
}

.reviews__track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reviews__arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.reviews__arrow:hover { border-color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.reviews__arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

.review-card {
  flex: 0 0 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.review-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.review-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F2F2F2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.review-card__photo img,
.review-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.review-card__photo--video { position: relative; cursor: pointer; }

.review-card__photo--yt {
  background-size: cover;
  background-position: center top;
  cursor: pointer;
  position: relative;
}

.review-card__photo--yt iframe {
  position: absolute;
  width: 178%;
  height: 178%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  opacity: 0;
  pointer-events: none;
}

.review-card__photo--yt.is-playing iframe {
  opacity: 1;
  pointer-events: auto;
}

.review-card__photo--yt.is-playing .review-card__play {
  opacity: 0;
  pointer-events: none;
}

.review-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.review-card__play svg { width: 52px; height: 52px; }

.review-card__photo--video.is-playing .review-card__play { opacity: 0; }

.review-card__stars { color: #FFB800; font-size: 0.88rem; letter-spacing: 1px; }
.review-card__star-empty { opacity: 0.3; }

.review-card__text {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.review-card__author { display: flex; align-items: center; gap: 10px; }

.review-card__avatar {
  width: 36px;
  height: 36px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__author strong { display: block; font-size: 0.82rem; color: var(--text); }
.review-card__author span  { font-size: 0.7rem; color: var(--text-muted); }
.review-card__check { color: var(--accent); font-weight: 600; }


/* ================================================
   HOW TO ORDER
================================================ */
.how-to-order {
  padding: 2.5rem var(--pad-x);
  border-top: 1px solid var(--border);
}

.how-to-order__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.how-to-order__title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: -0.01em;
}

.how-to-order__sub { font-size: 0.88rem; color: var(--text-muted); text-align: center; margin-top: -1.5rem; }

.how-to-order__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.step {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,182,122,0.08);
}

.step__num {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  line-height: 1;
}

.step__title { font-size: 0.92rem; font-weight: 600; color: var(--text); }
.step__desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; }

.how-to-order__video { width: 100%; max-width: 720px; }

.how-to-order__video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.video-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 14px;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.video-placeholder__btn {
  width: 60px;
  height: 60px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  border: 1px solid rgba(0,182,122,0.25);
}

.video-placeholder p { font-size: 0.85rem; color: var(--text-muted); }

/* ================================================
   SIZE GUIDE
================================================ */
.size-section {
  padding: 2.5rem var(--pad-x);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.size-section__inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.size-section__title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: -0.01em;
}
.size-section__sub { font-size: 0.84rem; color: var(--text-muted); text-align: center; margin-top: -1.5rem; line-height: 1.7; }
.size-table-wrap { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.size-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; font-weight: 500; table-layout: fixed; }
.size-table thead { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.size-table th { padding: 12px 6px; text-align: center; color: var(--text-muted); font-size: 0.7rem; font-weight: 600; }
.size-table th:first-child { text-align: left; padding-left: 16px; width: 56px; border-right: 1px solid var(--border); }
.size-table tbody tr { border-bottom: 1px solid var(--border); }
.size-table tbody tr:last-child { border-bottom: none; }
.size-table td { padding: 10px 6px; text-align: center; }
.size-table td:first-child { text-align: left; padding-left: 16px; color: var(--text-muted); font-size: 0.72rem; border-right: 1px solid var(--border); background: var(--bg-card); }
.sz-m   { color: #1a7a50; background: rgba(0,168,107,0.08); }
.sz-l   { color: #008F5A; background: rgba(0,168,107,0.12); }
.sz-xl  { color: #00A86B; background: rgba(0,168,107,0.16); }
.sz-xxl { color: #00B87A; background: rgba(0,168,107,0.20); }
.sz-3xl { color: #007a4d; background: rgba(0,168,107,0.24); }
.sz-4xl { color: #006640; background: rgba(0,168,107,0.28); }
.sz-5xl { color: #005233; background: rgba(0,168,107,0.32); }
.size-tips { display: flex; flex-direction: column; gap: 0.5rem; }
.size-tip { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.size-tip::before { content: '→'; color: var(--accent); flex-shrink: 0; }

/* ================================================
   FAQ
================================================ */
.faq {
  background: var(--bg-alt);
  padding: 2.5rem var(--pad-x);
  border-top: 1px solid var(--border);
}

.faq__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.faq__title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: -0.01em;
}

.faq__sub { font-size: 0.88rem; color: var(--text-muted); text-align: center; margin-top: -1.5rem; }

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

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background 0.15s, color 0.2s;
}

.faq-item__q:hover { background: var(--bg-hover); }
.faq-item.is-open > .faq-item__q { color: var(--accent); }

.faq-item__icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.28s var(--ease-out), color 0.2s;
}

.faq-item.is-open > .faq-item__q .faq-item__icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease-out);
}

.faq-item.is-open .faq-item__a { max-height: 1200px; }
.faq-item__a .size-table-wrap { overflow-x: auto; max-width: 600px; margin: 0 auto 1.25rem; }
.faq-item__a .size-table { font-size: 0.65rem; }
.faq-item__a .size-table th, .faq-item__a .size-table td { padding: 6px 4px; }

.faq-item__a p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq__discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 1.5rem 1.25rem;
  padding: 8px 16px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(0,182,122,0.2);
  font-family: var(--sans);
  transition: background 0.2s;
}

.faq__discord-btn:hover { background: rgba(0,182,122,0.18); }

/* ================================================
   BACK TO TOP
================================================ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-md);
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================
   FOOTER
================================================ */
.footer {
  padding: 1.6rem var(--pad-x);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.footer__brand-logo { display: block; width: 20px; height: 20px; min-width: 20px; flex-shrink: 0; }

.footer__brand-text { display: inline-flex; align-items: baseline; gap: 2px; }
.footer__brand-accent { color: var(--accent); }

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--text); }

.footer__collab { opacity: 0.55; }
.footer__collab:hover { opacity: 1 !important; }

/* ================================================
   COLLAB STRIP
================================================ */
.collab-strip {
  padding: 1.1rem var(--pad-x);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.collab-strip__text {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.collab-strip__text strong {
  color: var(--text);
}

.collab-strip__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.collab-strip__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,168,107,0.12);
}

@media (max-width: 768px) {
  .collab-strip { flex-direction: column; gap: 0.75rem; text-align: center; }
}

.footer__copy { font-size: 0.75rem; color: var(--text-muted); }

/* ================================================
   RESPONSIVE — Mobile First
================================================ */

/* Anchor scroll offset — accounts for fixed nav */
#reviews, #how-to-order, #faq {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

/* ================================================
   PAGE HERO (shared across secondary pages)
================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 2.5rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,168,107,0.08) 0%, transparent 65%);
  border-bottom: 1px solid var(--border);
}

.page-hero__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-hero__title {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero__sub {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-hero { padding: calc(var(--nav-h) + 2.5rem) var(--pad-x) 3rem; }
}

/* Tablet */
@media (max-width: 1200px) {
  .collection__grid       { grid-template-columns: repeat(3, 1fr); }
  .reviews__grid          { grid-template-columns: repeat(2, 1fr); }
  .how-to-order__steps    { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --nav-h: 58px; --pad-x: 1.25rem; }

  /* Nav: hide center links, show burger */
  .nav { grid-template-columns: 1fr auto; }
  .nav__center { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { font-size: 0.75rem; padding: 8px 12px; }

  /* Mobile menu: now visible (display: flex) */
  .nav__mobile { display: flex; }

  /* Hero */
  .hero { padding: calc(var(--nav-h) + 3rem) var(--pad-x) 0; }
  .hero__content { padding-bottom: 3rem; gap: 1.25rem; }
  .hero__title { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero__stats { margin: 0 calc(-1 * var(--pad-x)); }
  .hero__stat { padding: 1.25rem 1rem; }
  .hero__stat-num { font-size: 1.5rem; }

  /* Tabs */
  .cat-tabs { padding: 0 var(--pad-x); }
  .cat-tab  { padding: 12px 14px; font-size: 0.8rem; }

  /* Toolbar */
  .toolbar { padding: 8px var(--pad-x); flex-wrap: wrap; }

  /* Grid */
  .collection { padding: 0 0 3.5rem; }
  .collection__grid { grid-template-columns: repeat(2, 1fr); }

  /* Reviews */
  .reviews { padding: 3.5rem var(--pad-x); }
  .reviews__grid { grid-template-columns: 1fr; gap: 1rem; }
  .review-card { flex: 0 0 calc(100vw - 2 * var(--pad-x) - 100px); }
  .reviews__arrow { width: 32px; height: 32px; font-size: 0.85rem; }

  /* How to order */
  .how-to-order { padding: 3.5rem var(--pad-x); }
  .how-to-order__steps { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* FAQ */
  .faq { padding: 2.5rem var(--pad-x); }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* Small mobile */
@media (max-width: 480px) {
  :root { --pad-x: 1rem; }

  .nav__cta { display: none; }

  .hero { padding: calc(var(--nav-h) + 2rem) var(--pad-x) 0; }
  .hero__ctas .btn--ghost { display: none; }
  .btn--primary { width: 100%; justify-content: center; }

  .hero__stats { flex-direction: row; }
  .hero__stat { padding: 1rem 0.5rem; flex: 1; }
  .hero__stat-num { font-size: 1.3rem; }

  .how-to-order__steps { grid-template-columns: 1fr; }
  .collection__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__links { gap: 1rem; }
}
