/* ═══════════════════════════════════════════════════
   GUYSWHOFIT — STYLESHEET
   Deep black + forest green dark theme
═══════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --black:        #080808;
  --black-2:      #0d0d0d;
  --black-3:      #111111;
  --black-4:      #1a1a1a;
  --black-5:      #222222;
  --black-6:      #2a2a2a;

  --green:        #16a34a;
  --green-dark:   #0f7a38;
  --green-deep:   #0a4f25;
  --green-light:  #4ade80;
  --green-glow:   rgba(22,163,74,0.15);
  --green-border: rgba(22,163,74,0.3);

  --white:        #ffffff;
  --white-90:     rgba(255,255,255,0.9);
  --white-70:     rgba(255,255,255,0.7);
  --white-50:     rgba(255,255,255,0.5);
  --white-30:     rgba(255,255,255,0.3);
  --white-15:     rgba(255,255,255,0.15);
  --white-08:     rgba(255,255,255,0.08);
  --white-05:     rgba(255,255,255,0.05);

  --red:          #be123c;
  --blue:         #1d4ed8;
  --orange:       #d97706;
  --purple:       #6d28d9;
  --brown:        #b45309;

  /* Typography */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --radius-full:  9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white-90);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
img { display: block; max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black-2); }
::-webkit-scrollbar-thumb { background: var(--black-6); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ══════════════════════════════════════
   TOP SECTION — shared dark bg
══════════════════════════════════════ */
.top-section {
  background: var(--black-2);
  position: relative;
}

/* noise texture overlay */
.top-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 0.5px solid var(--white-08);
}

.logo {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 5px;
  color: var(--white);
  display: block;
  text-align: center;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo span { color: var(--green); }

.menu-btn,
.profile-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--white-08);
  border: 0.5px solid var(--white-15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--white-70);
  font-size: 17px;
}
.menu-btn:hover,
.profile-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.profile-btn.logged-in {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.header-left { display: flex; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }

/* ══════════════════════════════════════
   NAV BAR
══════════════════════════════════════ */
/* ── REMOVE BROWSER TAP HIGHLIGHT (sky-blue flash on click/tap) ── */
html, body, * { -webkit-tap-highlight-color: transparent !important; }
a, button, .card, .nav-item { -webkit-tap-highlight-color: transparent !important; }
a:active, button:active, .card:active, .nav-item:active { background-color: transparent !important; }

.nav-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 12px 28px;
  border-bottom: 0.5px solid var(--white-08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
}

/* Hide scrollbar track in Chrome/Safari */
.nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-item {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-35, rgba(255,255,255,0.35));
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-item { flex-shrink: 0; }
.nav-item:hover { color: var(--white-70); }
.nav-item.active {
  color: var(--white);
  border-bottom-color: var(--green);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 280px 1fr;
  align-items: flex-start;
  min-height: 500px;
  padding: 0 36px;
  gap: 16px;
}

/* Desktop only — show slider and bubbles */
@media (min-width: 1024px) {
  .hero-center {
    display: flex !important;
  }
}

/* Tablet + small screens — hide slider and bubbles */
@media (max-width: 1023px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
    gap: 10px;
    min-height: unset;
    overflow: hidden;
  }
  .hero-center {
    display: none !important;
  }
  .hero-bubble,
  .hero-bubble-1,
  .hero-bubble-2,
  .hero-bubble-3,
  .hero-bubble-4 {
    display: none !important;
  }
  .hero-h1 { font-size: 46px; }
  .hero-right { gap: 10px; }
}

/* Mobile — full single-column stack */
@media (max-width: 600px) {
  /* Kill the grid entirely */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 16px 24px;
    gap: 0;
    min-height: unset;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* LEFT: headline + stats — full width, left-aligned */
  .hero-left {
    width: 100%;
    padding: 16px 0 20px;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
    order: 1;
  }
  .hero-h1 { font-size: 52px; line-height: 0.88; }
  .hero-sub { max-width: 100%; font-size: 11px; }
  .hero-stats { justify-content: flex-start; gap: 16px; }
  .hstat-num { font-size: 22px; }

/* CENTER: hide slider entirely on mobile */
  .hero-center {
    display: none !important;
    order: 2;
  }
  
  /* Hide ALL bubbles — no overflow, no bleed */
  .hero-bubble,
  .hero-bubble-1,
  .hero-bubble-2,
  .hero-bubble-3,
  .hero-bubble-4 {
    display: none !important;
  }

  /* RIGHT: CTA buttons + badges — full width, below slider */
  .hero-right {
    width: 100%;
    align-items: stretch;
    padding: 20px 0 0;
    gap: 12px;
    order: 3;
  }

  /* Stack the new-tag and CTA button side by side on mobile */
  .new-tag { align-self: flex-start; }
  .hero-cta-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

/* Badges side by side in a row */
  .hero-badge {
    flex: 1;
    min-width: 0;
  }

 /* ── CARD — mobile strip-down ── */
  .card-tags              { display: none !important; }
  .card-pips              { display: none !important; }
  .card-view-link         { display: none !important; }
  .cstat:not([data-like]) { display: none !important; }

 /* Hide price from its normal slot — we reposition it absolutely */
  .card-price {
    display: block !important;
    position: absolute;
    bottom: 14px;
    right: 10px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    letter-spacing: 0.3px;
    margin: 0;
    z-index: 4;
  }

  /* Remove the "Full set —" label text, keep only the strong price */
  .card-price strong {
    font-size: 11px;
  }

  /* Foot row: like on left only, price floats top-right via absolute */
  .card-foot {
    margin-top: 2px;
    width: 100%;
  }
  /* Tighten card body */
  .card-body {
    padding: 0 10px 10px;
    gap: 3px;
  }

  /* Smaller title */
  .card-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .cstat span { font-size: 10px; }
}


/* LEFT */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 0;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-light);
}
.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--green-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: 62px;
  line-height: 0.9;
  color: var(--white);
  letter-spacing: 1px;
}
.hero-h1 em {
  color: var(--green);
  font-style: normal;
  position: relative;
}

.hero-sub {
  font-size: 12px;
  color: var(--white-35, rgba(255,255,255,0.35));
  line-height: 1.8;
  max-width: 190px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}
.hstat { display: flex; flex-direction: column; gap: 2px; }
.hstat-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  line-height: 1;
}
.hstat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-30);
}
.hstat-divider {
  width: 1px;
  height: 32px;
  background: var(--white-15);
}

/* CENTER SLIDER */
.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding-top: 28px;
}

.hero-slider-wrap {
  width: 280px;
  height: 480px;
  overflow: hidden;
  border-radius: 20px;
  position: relative;
}

.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  min-width: 280px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide-placeholder i {
  font-size: 80px;
  color: var(--white);
  opacity: 0.08;
}

.hero-slide-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-30);
}

.hero-sdots {
  display: none;
}
.hero-sdot {
  display: none;
}

/* ── HERO PRODUCT BUBBLES ── */
.hero-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 8px 12px 8px 8px;
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: bubble-float 4s ease-in-out infinite;
  white-space: nowrap;
  pointer-events: none;
}

.hero-bubble:nth-child(2) { animation-delay: 1s; }
.hero-bubble:nth-child(3) { animation-delay: 2s; }
.hero-bubble:nth-child(4) { animation-delay: 3s; }

@keyframes bubble-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

.hero-bubble-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.hero-bubble-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero-bubble-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.hero-bubble-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--white-90);
}

/* bubble positions — left side and right side of the slider */
.hero-bubble-1 { top: 60px;  left: -118px; }
.hero-bubble-2 { top: 260px; left: -125px; }
.hero-bubble-3 { top: 80px;  right: -118px; }
.hero-bubble-4 { top: 280px; right: -122px; }

/* RIGHT */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  padding: 40px 0;
}

.new-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-glow);
  border: 0.5px solid var(--green-border);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
}
.new-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--green-light);
}

.hero-cta-btn {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.hero-cta-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.hero-badge {
  background: var(--white-05);
  border: 0.5px solid var(--white-08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}
.badge-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-30);
}
.badge-val {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  line-height: 1;
}
.badge-sub { font-size: 11px; color: var(--white-30); }

/* ══════════════════════════════════════
   TICKER
══════════════════════════════════════ */
.ticker {
  background: var(--green);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 5;
}
.ticker-inner {
  display: inline-flex;
  gap: 36px;
  animation: ticker 25s linear infinite;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.9;
}
.ticker-item::before {
  content: '✦';
  font-size: 7px;
  opacity: 0.6;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.main {
  background: var(--black);
  padding: 0;
}

.section {
  padding: 32px 36px;
  border-bottom: 0.5px solid var(--white-08);
}

.sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.sec-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-30);
}
.sec-more,
.styles-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  margin-top: 2px;
  flex-shrink: 0;
}
.sec-more:hover,
.styles-view-all-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   BRAND RANKINGS
══════════════════════════════════════ */
.rank-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rank-card {
  background: var(--black-3);
  border: 0.5px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.rank-card:hover {
  border-color: var(--green-border);
  transform: translateY(-2px);
}
.rank-card.top {
  border-color: var(--green-border);
  background: var(--black-4);
}

.rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rank-pos {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}
.rank-pos.gold   { color: var(--orange); }
.rank-pos.silver { color: #9ca3af; }
.rank-pos.bronze { color: var(--brown); }
.rank-pos.reg    { color: var(--white-30); }

.rank-trend {
  font-family: var(--font-mono);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.trend-up   { color: var(--green-light); }
.trend-down { color: var(--red); }

.rank-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.rank-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-90);
  margin-bottom: 3px;
}
.rank-stat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--white-30);
  margin-bottom: 8px;
}
.rank-bar-bg {
  height: 3px;
  background: var(--white-08);
  border-radius: 2px;
  overflow: hidden;
}
.rank-bar {
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  transition: width 1s ease;
}

/* ══════════════════════════════════════
   FILTERS
══════════════════════════════════════ */
.filters {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.fpill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 0.5px solid var(--white-15);
  color: var(--white-50);
  transition: all 0.15s;
}
.fpill:hover:not(.active) {
  border-color: var(--white-30);
  color: var(--white-70);
}
.fpill.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ══════════════════════════════════════
   CARDS GRID — All Styles section (4-col)
══════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ══════════════════════════════════════
   BASE CARD — image-forward, overlay style
   Inspired by: dark bg image + glass info panel
══════════════════════════════════════ */
.card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: var(--black-4);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px var(--green-border);
}

/* ── FULL-BLEED IMAGE ── */
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.card:hover .card-img img { transform: scale(1.06); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-placeholder i {
  font-size: 56px;
  color: var(--white);
  opacity: 0.08;
}

/* gradient fade from bottom */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.45) 42%,
    rgba(0,0,0,0.1)  70%,
    transparent      100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ── TOP ROW: fit number + save ── */
.card-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 0.5px solid rgba(255,255,255,0.12);
}

.card-save {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
}
.card-save:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.card-save.saved { background: var(--green); border-color: var(--green); color: var(--white); }

/* ── BOTTOM INFO PANEL ── */
.card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  overflow: hidden;
}
/* Category tags — same glass pill DNA as .card-num (#001 badge) */
.card-tag,
.card-cat-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.45);
  border: 0.5px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  flex-shrink: 0;
}
/* Subtle color tint per category — just the border shifts, keeps the unified glass look */
.card-tag.featured,
.card-cat-tag.featured { border-color: rgba(22,163,74,0.5);  color: #86efac; }
.card-tag.casual,
.card-cat-tag.casual   { border-color: rgba(29,78,216,0.5);  color: #93c5fd; }
.card-tag.street,
.card-cat-tag.street   { border-color: rgba(109,40,217,0.5); color: #c4b5fd; }
.card-tag.smart,
.card-cat-tag.smart    { border-color: rgba(180,83,9,0.5);   color: #fcd34d; }
.card-tag.summer,
.card-cat-tag.summer   { border-color: rgba(217,119,6,0.5);  color: #fde68a; }
.card-tag.minimal,
.card-cat-tag.minimal  { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); }

/* ── FEATURED BADGE (top-left green sticker) ── */
.card-featured-badge {
  position: absolute;
  top: 44px;
  left: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(22,163,74,0.85);
  color: #fff;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 0.5px solid rgba(22,163,74,0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-hot-badge {
  position: absolute;
  top: 44px;
  left: 14px;
  background: rgba(239, 68, 68, 0.85);
  color: #fecaca;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 0.5px solid rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3;
  pointer-events: none;
}

.card-new-badge {
  position: absolute;
  top: 44px;
  left: 14px;
  background: rgba(139, 92, 246, 0.85);
  color: #ddd6fe;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 0.5px solid rgba(139, 92, 246, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3;
  pointer-events: none;
}

/* ── IMAGE FALLBACK (used by buildCard onerror) ── */
.card-img-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: -4px;
}
.card-price strong { color: var(--green-light); font-weight: 500; }

.card-pips {
  display: flex;
  gap: 5px;
  align-items: center;
}
.pip {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* ── CARD ACTIONS ROW (like count + View + Save) ── */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  width: 100%;
}
.card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cstat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.cstat i { font-size: 13px; }
.cstat:hover { color: rgba(255,255,255,0.75); }
.cstat.liked i { color: #e53e3e; }
.cstat.liked svg[data-ti-icon] { color: #e53e3e; fill: #e53e3e; stroke: #e53e3e; }
.cstat.liked   { color: rgba(255,255,255,0.55); }

/* VIEW button — glass pill */
.card-view-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.card-view-link:hover {
  background: var(--green);
  border-color: var(--green);
}

/* ══════════════════════════════════════
   FEATURED CARD — same size as all cards,
   only difference is the badge label
══════════════════════════════════════ */
.card.card-featured {
  /* no size overrides — same as .card */
}

/* ── LOAD MORE ── */
.load-more-wrap {
  text-align: center;
  padding: 28px 0 0;
}
.load-more-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-50);
  border: 0.5px solid var(--white-15);
  border-radius: var(--radius-full);
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.load-more-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
/* ══════════════════════════════════════
   FOOTER — REDESIGNED
══════════════════════════════════════ */
.footer {
  background: var(--black-2);
  border-top: 0.5px solid var(--white-08);
  padding: 48px 48px 32px;
}

/* ── TOP ROW: logo+tagline  |  nav columns  |  social ── */
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 0.5px solid var(--white-08);
}

/* Brand block */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 5px;
  color: var(--white-70);
  line-height: 1;
}
.footer-logo span { color: var(--green); }
.footer-sub {
  font-size: 12px;
  color: var(--white-30);
  max-width: 220px;
  line-height: 1.7;
}

/* Nav columns */
.footer-nav {
  display: flex;
  gap: 48px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-heading {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 2px;
}
.footer-nav-col a {
  font-size: 13px;
  color: var(--white-50);
  transition: color 0.15s;
}
.footer-nav-col a:hover { color: var(--white-90); }

/* Social block */
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer-social-heading {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-30);
}
.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 180px;
}
.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--white-05);
  border: 0.5px solid var(--white-08);
  color: var(--white-30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.18s;
  text-decoration: none;
}
.footer-social-btn:hover {
  background: var(--green-glow);
  border-color: var(--green-border);
  color: var(--green-light);
  transform: translateY(-2px);
}

/* ── BOTTOM ROW: copyright | links ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 11px;
  color: var(--white-15);
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-20, rgba(255,255,255,0.2));
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--green); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer {
    padding: 36px 24px 24px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-social {
    grid-column: span 2;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }
  .footer-social-icons {
    justify-content: flex-start;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 28px 16px 20px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-social {
    grid-column: span 1;
  }
  .footer-nav {
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ══════════════════════════════════════
   AUTH MODAL
══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--black-3);
  border: 0.5px solid var(--white-15);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 380px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s;
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--white-08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-50);
  font-size: 16px;
  transition: all 0.15s;
}
.modal-close:hover { background: var(--white-15); color: var(--white); }

.modal-logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--white-50);
  text-align: center;
  margin-bottom: 20px;
}
.modal-logo span { color: var(--green); }

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 13px;
  color: var(--white-30);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

.modal-google-btn {
  width: 100%;
  background: rgba(234,67,53,0.12);
  border: 0.5px solid rgba(234,67,53,0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  color: var(--white-90);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  margin-bottom: 16px;
}
.modal-google-btn:hover {
  background: rgba(234,67,53,0.22);
  border-color: rgba(234,67,53,0.55);
}
.modal-google-btn i { font-size: 18px; color: #ea4335; }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white-30);
  font-size: 12px;
}
.modal-divider::before,
.modal-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--white-15);
}

.modal-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-input {
  width: 100%;
  background: var(--black-4);
  border: 0.5px solid var(--white-15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--white-90);
  font-size: 13px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  outline: none;
}
.modal-input:focus { border-color: var(--green); }
.modal-input::placeholder { color: var(--white-30); }

.modal-submit {
  width: 100%;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
  margin-top: 4px;
}
.modal-submit:hover { background: var(--green-dark); }

.modal-switch {
  text-align: center;
  font-size: 12px;
  color: var(--white-30);
  margin-top: 16px;
}
.modal-switch-btn {
  color: var(--green);
  font-size: 12px;
  transition: opacity 0.15s;
}
.modal-switch-btn:hover { opacity: 0.8; }

/* ── MODAL — MOBILE RESPONSIVE ── */
@media (max-width: 480px) {
  /* Overlay: anchor to bottom, don't center vertically */
  .modal-overlay {
    align-items: flex-end;
    justify-content: stretch;
  }

  /* Modal becomes a bottom sheet */
  .modal {
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
    /* Slide up from below instead of down from center */
    transform: translateY(100%);
    /* Drag handle visual cue */
    border-top: 0.5px solid var(--white-15);
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

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

  /* Drag handle pill at top of sheet */
  .modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--white-15);
    margin: 0 auto 20px;
  }

  /* Tighten up vertical spacing inside */
  .modal-logo {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .modal-title {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .modal-sub {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .modal-google-btn {
    padding: 14px 12px; /* taller tap target */
    font-size: 14px;
    margin-bottom: 14px;
  }

  .modal-input {
    padding: 14px;      /* taller tap target */
    font-size: 16px;    /* prevent iOS zoom on focus */
  }

  .modal-submit {
    padding: 14px;
    font-size: 14px;
  }

  .modal-switch {
    font-size: 13px;
    margin-top: 14px;
  }

  .modal-switch-btn {
    font-size: 13px;
  }

  /* Close button — move slightly for sheet layout */
  .modal-close {
    top: 20px;
    right: 16px;
  }
}

/* ══════════════════════════════════════
   SKELETON LOADING
══════════════════════════════════════ */
.skeleton {
  background: var(--black-4);
  border-radius: var(--radius-md);
  animation: shimmer 1.5s infinite;
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--white-05) 50%, transparent 100%);
  animation: sweep 1.5s infinite;
}
@keyframes shimmer { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0 20px;
    min-height: auto;
  }
  .hero-center { height: 260px; }
  .hero-right { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .hero-left { padding: 24px 0 0; }
  .hero-h1 { font-size: 48px; }
  .nav-bar { gap: 16px; padding: 10px 16px; overflow-x: auto; justify-content: flex-start; }
  .cat-section { padding: 24px 20px !important; }
  .rank-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 24px 20px; }
  .hero-sub { max-width: 100%; }
}

/* ══════════════════════════════════════
   FIT DETAIL PAGE  (fit.html)
══════════════════════════════════════ */

:root {
  --fp-accent: #16a34a;
}

.back-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--white-08);
  border: 0.5px solid var(--white-15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-70);
  font-size: 17px;
  transition: all 0.2s;
  text-decoration: none;
}
.back-btn:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.fp-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.fp-skeleton-wrap {
  background: var(--black-3);
}

/* ── Color Switcher ── */
.fp-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--black-3);
  border-bottom: 0.5px solid var(--white-08);
  flex-wrap: wrap;
}
.fp-sw-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-30);
  margin-right: 2px;
}
.fp-cdot {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.fp-cdot:hover { transform: scale(1.2); }
.fp-cdot.active { border-color: var(--white); }
.fp-combo-name {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--white-30);
  margin-left: auto;
}

/* ── Hero Slider ── */
.fp-hero {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.fp-slides-wrap {
  overflow: hidden;
  border-radius: var(--radius-xl);
}
.fp-slides-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.fp-slide {
  min-width: 100%;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #0a0a0a;
  border-radius: var(--radius-xl);
}
.fp-s-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.fp-s-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}
.fp-sarr {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  font-size: 15px;
  transition: background 0.2s;
}
.fp-sarr:hover { background: var(--fp-accent); }

.fp-sdots {
  position: absolute;
  bottom: 82px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.fp-sdot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.fp-sdot.active { background: var(--fp-accent); width: 18px; border-radius: 3px; }

.fp-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}
.fp-fit-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--fp-accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fp-fit-title {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}
.fp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-tag {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Combo Bar ── */
.fp-combo-bar {
  background: #0a0a0a;
  padding: 10px 20px 14px;
  border-bottom: 0.5px solid var(--white-08);
}
.fp-combo-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-30);
  text-align: center;
  margin-bottom: 8px;
}
.fp-combo-chips {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fp-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 0.5px solid var(--white-15);
  font-size: 11px;
  color: var(--white-50);
}
.fp-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ── Price Bar ── */
.fp-pbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--white-08);
  border-bottom: 0.5px solid var(--white-08);
}
.fp-pc {
  background: var(--black-3);
  padding: 14px 16px;
  text-align: center;
}
.fp-pl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 4px;
}
.fp-pv {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  line-height: 1;
}
.fp-pv.accent { color: var(--fp-accent); }

/* ── Content Sections ── */
.fp-main > .fp-section-label,
.fp-main > .fp-vibe,
.fp-main > .fp-items,
.fp-main > .fp-tips-grid,
.fp-main > .fp-cta {
  padding-left: 20px;
  padding-right: 20px;
}

.fp-section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-30);
  margin: 20px 20px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fp-section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--white-08);
}

.fp-vibe {
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-50);
  border-left: 2px solid var(--fp-accent);
  padding: 8px 0 8px 16px;
  margin: 0 20px 20px;
}

/* ── Items List ── */
.fp-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 20px 20px;
}
.fp-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--black-3);
  border: 0.5px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.fp-item:hover { border-color: var(--fp-accent); }
.fp-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--black-5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  filter: none;
}
.fp-item-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-30);
  margin-bottom: 2px;
}
.fp-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-90);
  margin-bottom: 2px;
}
.fp-item-det {
  font-size: 11px;
  color: var(--white-30);
}
.fp-item-right { text-align: right; flex-shrink: 0; }
.fp-item-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 5px;
}
.fp-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  border: 0.5px solid var(--green);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  transition: all 0.15s;
  text-decoration: none;
}
.fp-buy-btn:hover { background: var(--green); color: var(--white); }

/* ── Tips Grid ── */
.fp-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 20px 20px;
}
.fp-tip {
  background: var(--black-3);
  border: 0.5px solid var(--white-08);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.fp-tip-ico {
  font-size: 18px;
  color: var(--fp-accent) !important;
  margin-bottom: 6px;
  display: block;
  transition: none !important;
}
.fp-tip-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-90);
  margin-bottom: 4px;
}
.fp-tip-body {
  font-size: 12px;
  color: var(--white-30);
  line-height: 1.55;
}

/* ── Two-column layout ── */
.fp-layout {
  display: grid;
  grid-template-columns: 480px 1fr;
  align-items: start;
  gap: 0;
}

.fp-col-img {
  position: sticky;
  top: 0;
}

.fp-col-info {
  padding: 28px 28px 40px;
  border-left: 0.5px solid var(--white-08);
}

/* ── Info head ── */
.fp-info-head {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--white-08);
}
.fp-fit-num-inline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--fp-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.fp-fit-title-inline {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.fp-tags-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Stats row ── */
.fp-stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.fp-stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--black-3);
  border: 0.5px solid var(--white-08);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  flex: 1;
  min-width: 80px;
}
.fp-stat-pill i {
  font-size: 18px;
  color: var(--fp-accent);
  flex-shrink: 0;
}
.fp-stat-val {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  line-height: 1;
}
.fp-stat-key {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-30);
  margin-top: 2px;
}

/* ── Shop all button (replaces old CTA) ── */
.fp-shop-all-wrap {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.fp-shop-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.fp-shop-all-btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.fp-shop-note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--white-20);
  text-align: center;
  text-transform: uppercase;
}

/* ── Related fits section ── */
.fp-related-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 28px 24px;
  border-top: 0.5px solid var(--white-08);
}
.fp-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.fp-related-all {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fp-accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s;
}
.fp-related-all:hover { opacity: 0.7; }
.fp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fp-related-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 40px;
}

/* ── Overrides: content sections inside fp-col-info ── */
.fp-col-info .fp-section-label,
.fp-col-info .fp-vibe,
.fp-col-info .fp-items,
.fp-col-info .fp-tips-grid {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}
.fp-col-info .fp-vibe {
  margin: 0 0 20px;
  padding: 8px 0 8px 16px;
}
.fp-col-info .fp-items {
  margin: 0 0 20px;
}
.fp-col-info .fp-tips-grid {
  margin: 0 0 20px;
}
.fp-col-info .fp-section-label {
  margin: 0 0 10px;
}

/* ── Responsive: stack to single column on tablet/mobile ── */
@media (max-width: 900px) {
  .fp-layout {
    grid-template-columns: 1fr;
  }
  .fp-col-img {
    position: static;
  }
  .fp-col-info {
    padding: 20px 16px 32px;
    border-left: none;
    border-top: 0.5px solid var(--white-08);
  }
  .fp-fit-title-inline { font-size: 34px; }
  .fp-related-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-related-wrap { padding: 24px 16px 20px; }
}
@media (max-width: 480px) {
  .fp-fit-title-inline { font-size: 28px; }
  .fp-stats-row { gap: 8px; }
  .fp-related-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ── Shake animation for form validation ── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ── Fit page mobile responsive ── */

/* 901px–1100px: layout already stacked to 1fr (full width), height tracks 4/3 ratio of viewport */
@media (min-width: 901px) and (max-width: 1100px) {
  .fp-slide { height: calc((100vw) * 4 / 3); max-height: 640px; border-radius: var(--radius-xl); }
  .fp-hero { border-radius: var(--radius-xl); overflow: hidden; }
  .fp-slides-wrap { border-radius: var(--radius-xl); overflow: hidden; }
}

/* 769px–900px: same stacked layout, slightly shorter screens */
@media (min-width: 769px) and (max-width: 900px) {
  .fp-slide { height: calc((100vw) * 4 / 3); max-height: 600px; border-radius: var(--radius-xl); }
  .fp-hero { border-radius: var(--radius-xl); overflow: hidden; }
  .fp-slides-wrap { border-radius: var(--radius-xl); overflow: hidden; }
}

@media (max-width: 768px) {
  /* On mobile the column is full-width ~390px → 390 * 4/3 ≈ 520px, cap at 480 for shorter screens */
  .fp-slide { height: 480px; border-radius: var(--radius-xl); }
  .fp-hero { border-radius: var(--radius-xl); overflow: hidden; }
  .fp-slides-wrap { border-radius: var(--radius-xl); overflow: hidden; }
  .fp-tips-grid { grid-template-columns: 1fr; }
  .fp-item { grid-template-columns: 50px 1fr auto; }
  .fp-item-thumb { width: 50px; height: 50px; }
}

/* ═══════════════════════════════════════════════════
   NEW SECTIONS — index.html additions
═══════════════════════════════════════════════════ */

/* ── UNIVERSAL CARD GRID — used by Latest, Category, and All Styles ── */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* Every card everywhere uses the same compact portrait ratio */
.card {
  aspect-ratio: 2 / 3;
}

/* Wipe out any featured-card size override — all cards equal */
.card.card-featured,
.card.featured {
  grid-column: span 1;
  height: unset;
  aspect-ratio: 2 / 3;
}

/* ── CATEGORY SECTIONS ── */
.cat-section {
  padding: 32px 36px;
  border-bottom: 0.5px solid var(--white-08);
}

.cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cat-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-section-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.cat-section-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
}

.cat-section-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-30);
  margin-top: 3px;
}

/* Legacy grid classes — kept for safety, now unused */
.cat-grid-3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-grid-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* ═══════════════════════════════════════════════════
   ALL STYLES — CUSTOM FILTER + SEARCH
═══════════════════════════════════════════════════ */
.style-controls {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* SEARCH */
.style-search-wrap {
  position: relative;
  max-width: 380px;
}

/* Default: icons are inline */
svg[data-ti-icon] { display: inline-block; }

.style-search-icon,
svg.style-search-icon {
  position: absolute;
  display: block;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white-30);
  font-size: 15px;
  pointer-events: none;
  width: 1em;
  height: 1em;
}

.style-search {
  width: 100%;
  background: var(--black-3);
  border: 0.5px solid var(--white-15);
  border-radius: var(--radius-full);
  padding: 10px 40px 10px 40px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--white-90);
  outline: none;
  transition: border-color 0.2s;
}
.style-search::placeholder { color: var(--white-30); }
.style-search:focus { border-color: var(--green); }

.style-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white-30);
  font-size: 12px;
  padding: 4px;
  display: none;
}
.style-search-clear.visible { display: block; }
.style-search-clear:hover { color: var(--white); }

/* FILTER PILLS — custom designed, no default dropdown */
.style-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sfpill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--white-15);
  color: var(--white-50);
  background: var(--black-3);
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.sfpill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.15s;
}

.sfpill:hover {
  border-color: var(--white-30);
  color: var(--white-70);
}

.sfpill.active {
  background: var(--black-4);
  border-color: var(--green);
  color: var(--white);
}

.sfpill-icon {
  font-size: 13px;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.sfpill span:last-child {
  position: relative;
  z-index: 1;
}

/* HOT pill gets a glow when active */
.sfpill[data-sf="hot"].active {
  border-color: #f97316;
  color: #fdba74;
}

/* ═══════════════════════════════════════════════════
   GALLERY PREVIEW SECTION (home)
═══════════════════════════════════════════════════ */
.gallery-preview-section {
  overflow: hidden;
}

.gp-stage {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  position: relative;
}

/* each column clips its overflow */
.gp-col {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

/* scrolling track */
.gp-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Continuous scroll animations */
@keyframes gp-scroll-up {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes gp-scroll-down {
  0%   { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.gp-track-up {
  animation: gp-scroll-up 18s linear infinite;
}

.gp-track-down {
  animation: gp-scroll-down 16s linear infinite;
}

.gp-track-slow {
  animation-duration: 24s;
}

.gp-track:hover {
  animation-play-state: paused;
}

/* Gallery image tiles */
.gp-tile {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--black-4);
  cursor: pointer;
}

/* Tall tiles */
.gp-col-tall .gp-tile { height: 200px; }
.gp-col-tall .gp-tile:nth-child(3n+1) { height: 260px; }
.gp-col-tall .gp-tile:nth-child(3n+2) { height: 180px; }

/* Middle column tiles — taller */
.gp-col-mid .gp-tile { height: 280px; }
.gp-col-mid .gp-tile:nth-child(2n) { height: 220px; }

/* Right column */
.gp-col-right .gp-tile { height: 190px; }
.gp-col-right .gp-tile:nth-child(3n+1) { height: 240px; }

.gp-tile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-tile-placeholder i {
  font-size: 36px;
  color: var(--white);
  opacity: 0.06;
}

.gp-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px;
}

.gp-tile:hover .gp-tile-overlay { opacity: 1; }

.gp-tile-actions {
  display: flex;
  gap: 6px;
}

.gp-tile-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.6);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s;
  cursor: pointer;
}
.gp-tile-btn:hover { background: var(--green); border-color: var(--green); }
.gp-tile-btn.saved  { background: var(--green); border-color: var(--green); }
.gp-tile-btn.liked  { background: #be123c; border-color: #be123c; }

/* ── MOBILE: always-visible like btn on gallery preview tiles ── */
@media (hover: none) {
  .gp-tile-overlay {
    opacity: 1;
    background: none;
    pointer-events: none;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 8px;
  }
  .gp-tile-label { display: none; }
  .gp-tile-actions { pointer-events: auto; }
  .gp-tile:hover .gp-tile-overlay { opacity: 1; }
}

.gp-tile-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.gp-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.gp-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}
.gp-explore-btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.gp-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-30);
}

/* ═══════════════════════════════════════════════════
   SIGN UP SECTION
═══════════════════════════════════════════════════ */
.signup-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 36px;
  background: var(--black-2);
  border-bottom: 0.5px solid var(--white-08);
  position: relative;
  overflow: hidden;
}

.signup-section::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
}

.signup-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.signup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-glow);
  border: 0.5px solid var(--green-border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-light);
  width: fit-content;
}

.signup-h2 {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1;
}

.signup-sub {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.7;
  max-width: 360px;
}

.signup-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--white-70);
}

.signup-perk i {
  color: var(--green-light);
  font-size: 16px;
  flex-shrink: 0;
}

.signup-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.signup-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.signup-btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.signup-btn-ghost {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-30);
  cursor: pointer;
  transition: color 0.2s;
}
.signup-btn-ghost:hover { color: var(--white-70); }

.signup-fine {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--white-20, rgba(255,255,255,0.2));
  text-transform: uppercase;
}

/* DECO CARD */
.signup-deco {
  position: relative;
  z-index: 1;
}

.signup-deco-card {
  background: var(--black-4);
  border: 0.5px solid var(--white-08);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
  max-width: 340px;
  margin-left: auto;
}

.sdc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--white-08);
}

.sdc-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--green);
  animation: pulse 2s infinite;
}

.sdc-title {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--white);
  flex: 1;
}

.sdc-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-light);
  background: var(--green-glow);
  border: 0.5px solid var(--green-border);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}

.sdc-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sdc-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sdc-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdc-iname {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-90);
  margin-bottom: 2px;
}

.sdc-iprice {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green-light);
}

/* ═══════════════════════════════════════════════════
   GALLERY PAGE
═══════════════════════════════════════════════════ */
.gal-page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 36px 36px;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.gal-page-h1 {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 2px;
  line-height: 0.95;
  color: var(--white);
  margin: 10px 0;
}

.gal-page-h1 em {
  color: var(--green);
  font-style: normal;
}

.gal-page-sub {
  font-size: 13px;
  color: var(--white-50);
  max-width: 280px;
  line-height: 1.7;
}

.gal-page-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--white-05);
  border: 0.5px solid var(--white-08);
  border-radius: var(--radius-xl);
  flex-shrink: 0;
}

/* GALLERY FILTER BAR */
.gal-filter-bar {
  display: flex;
  gap: 8px;
  padding: 20px 36px 0;
  flex-wrap: wrap;
}

.gfpill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 0.5px solid var(--white-15);
  color: var(--white-50);
  background: var(--black-3);
  transition: all 0.15s;
  cursor: pointer;
}
.gfpill:hover { border-color: var(--white-30); color: var(--white-70); }
.gfpill.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* UNIFORM GRID — 4 cols, fixed 3:4 aspect ratio (1080×1440) */
.gal-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px 36px;
}

@media (max-width: 1024px) { .gal-masonry { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .gal-masonry { grid-template-columns: repeat(2, 1fr); } }

.gal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--black-4);
  cursor: pointer;
  display: block;
  aspect-ratio: 3 / 4;
}

.gal-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gal-card:hover .gal-card-img { transform: scale(1.04); }

.gal-card-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gal-card-placeholder i {
  font-size: 40px;
  color: var(--white);
  opacity: 0.06;
}

.gal-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  gap: 8px;
}

.gal-card:hover .gal-card-overlay { opacity: 1; }

.gal-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--white);
  line-height: 1.1;
}

.gal-card-actions {
  display: flex;
  gap: 6px;
}

/* ── MOBILE: always-visible like btn, no hover overlay ── */
@media (hover: none) {
  .gal-card-overlay {
    opacity: 1;
    background: none; /* remove gradient */
    justify-content: flex-end;
    align-items: flex-end;
    padding: 8px;
    pointer-events: none;
  }
  .gal-card-title { display: none; } /* hide title on touch */
  .gal-card-actions {
    pointer-events: auto;
  }
  .gal-card:hover .gal-card-img { transform: none; } /* no scale on touch */
}

.gal-card-btn {
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.6);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.15s;
  cursor: pointer;
}
.gal-card-btn:hover { background: var(--green); border-color: var(--green); }
.gal-card-btn.liked { background: #be123c; border-color: #be123c; }
.gal-card-btn.saved { background: var(--green); border-color: var(--green); }

/* LIGHTBOX */
.gal-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.gal-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.gal-lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--white-08);
  border: 0.5px solid var(--white-15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}
.gal-lb-close:hover { background: var(--red); }

.gal-lb-inner {
  max-width: 420px;
  width: 90%;
  background: var(--black-3);
  border: 0.5px solid var(--white-08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.gal-lightbox.open .gal-lb-inner { transform: scale(1); }

.gal-lb-img-wrap {
  height: 360px;
  background: var(--black-4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gal-lb-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.gal-lb-body {
  padding: 20px;
}

.gal-lb-fitnum {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 6px;
}

.gal-lb-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 8px;
}

.gal-lb-price {
  font-size: 12px;
  color: var(--white-30);
  margin-bottom: 16px;
}

.gal-lb-btns {
  display: flex;
  gap: 8px;
}

.gal-lb-btn {
  flex: 1;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.gal-lb-btn.primary {
  background: var(--green);
  border: none;
  color: var(--white);
}
.gal-lb-btn.primary:hover { background: var(--green-dark); }

.gal-lb-btn.secondary {
  background: transparent;
  border: 0.5px solid var(--white-15);
  color: var(--white-70);
}
.gal-lb-btn.secondary:hover { border-color: var(--white-30); color: var(--white); }

/* ═══════════════════════════════════════════════════
   BACK BUTTON (fit.html / gallery.html)
═══════════════════════════════════════════════════ */
.back-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--white-08);
  border: 0.5px solid var(--white-15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--white-70);
  font-size: 16px;
}
.back-btn:hover { background: var(--green); border-color: var(--green); color: var(--white); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — new sections
═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .card.featured { grid-column: span 3; }
}

@media (max-width: 900px) {
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid .card.featured { grid-column: span 1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .card.featured { grid-column: span 2; height: 340px; }
  .card.featured .card-title { font-size: 28px; }
  .cat-grid-3  { grid-template-columns: 1fr 1fr; }
  .gp-stage    { grid-template-columns: 1fr 1fr; height: 380px; }
  .gp-col-right { display: none; }
  .signup-section { grid-template-columns: 1fr; }
  .signup-deco { display: none; }
  .gal-page-hero { flex-direction: column; align-items: flex-start; }
  .gal-masonry { columns: 2; }
}

@media (max-width: 600px) {
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .card.featured { grid-column: span 2; height: 280px; }
  .card.featured .card-title { font-size: 22px; }
  .cat-grid-3  { grid-template-columns: 1fr 1fr; }
  .cat-grid-2  { grid-template-columns: 1fr 1fr; }
  .gp-stage    { grid-template-columns: 1fr; height: 300px; }
  .gp-col-tall, .gp-col-right { display: none; }
  .style-filters { gap: 6px; }
  .sfpill span:last-child { display: none; }
  .gal-masonry { padding: 16px 16px; }
}

/* ══════════════════════════════════════
   GALLERY PAGE — controls bar overrides
   Reuses .posts-page-header, .posts-controls,
   .pd-*, .posts-empty from posts.css
══════════════════════════════════════ */
.gal-main {
  padding-bottom: 60px;
}

/* posts.css is loaded on gallery page so .pd-* vars are available.
   posts-controls already has correct padding; just needs search flex */
.gal-main .posts-controls .style-search-wrap {
  flex: 1;
  min-width: 180px;
  max-width: 420px;
}

/* Masonry gets a little top breathing room after controls bar */
.gal-main .gal-masonry {
  padding-top: 20px;
}

@media (max-width: 720px) {
  .gal-main .posts-controls {
    padding: 16px 16px 0;
  }
  .gal-main .posts-controls .style-search-wrap {
    max-width: 100%;
    flex: 1 1 100%;
    order: -1;
  }
  .gal-main .pd-wrap { flex: 1; }
  .gal-main .pd-trigger { width: 100%; justify-content: space-between; }
}


