/*
 * Club Services — Custom Theme CSS
 * Amber glassmorphism dark design
 */

/* ─── Layout tokens ─────────────────────────────────── */
:root {
  /* Fixed header clearance: marquee (~34px) + navbar pill block (~64px) + breathing */
  --nav-h: 120px;
}
@media (max-width: 1024px) {
  :root { --nav-h: 100px; }
}

/* ─── Full-section scroll snapping (home only) ──────────
   The .snap-home class is added to <html> by JS only on the home page.
   proximity (not mandatory) so tall sections are never trapped — you can
   scroll through them and the next section engages at the end. dvh (not vh)
   fixes the mobile address-bar height jump. scroll-padding-top keeps the
   snapped section below the fixed navbar. */
html.snap-home {
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--nav-h);
}
.snap-home .snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: calc(100dvh - var(--nav-h));
}

/* Hide Alpine-cloaked elements until Alpine initializes (mobile nav panel). */
[x-cloak] { display: none !important; }

/* ─── Glass Panel ───────────────────────────────────── */
.glass-panel {
  background: rgba(11, 6, 2, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.05);
}

.neon-bloom {
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.25);
}

/* ─── Navbar pill nav-link hover ────────────────────── */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  box-shadow: 0 0 12px 2px rgba(245, 158, 11, 0.8);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover,
.nav-link.active {
  color: #f59e0b !important;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  background-color: rgba(245, 158, 11, 0.05);
}

/* ─── Cursor glow ───────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s ease;
  will-change: left, top;
}

/* ─── Marquee ───────────────────────────────────────── */
.marquee {
  position: relative; z-index: 60;
  overflow: hidden;
  background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24);
  white-space: nowrap;
  padding: 8px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
  font-size: 11px; font-weight: 500;
  color: #fff; letter-spacing: 0.02em;
  font-family: 'JetBrains Mono', monospace;
}
/* Two identical groups; each fills at least the viewport so the -50% loop
   never exposes a blank gap, regardless of content length or screen width. */
.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-width: 100vw;
  justify-content: space-around;
}
.marquee-track span { margin: 0 10px; white-space: nowrap; }
.marquee-track a { color: #fff; text-decoration: none; }
.marquee-track i { font-size: 10px; vertical-align: -1px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Product card (bcard) ──────────────────────────── */
.bcard {
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
  box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.05), 0 4px 20px rgba(0,0,0,0.4);
}
.bcard:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: inset 0 0 30px rgba(245, 158, 11, 0.2), 0 12px 40px rgba(245,158,11,0.25);
}
.bcard-foot {
  max-height: 0; opacity: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: max-height .35s ease, opacity .3s ease, transform .35s ease, padding-top .35s ease;
}
.bcard:hover .bcard-foot {
  max-height: 60px; opacity: 1;
  transform: translateY(0); padding-top: 14px;
  border-top: 0.5px solid rgba(245, 158, 11, 0.2);
}

/* ─── Feature / testimonial card (hcard) ────────────── */
.hcard {
  transition: transform 0.3s ease, border-color .3s ease, box-shadow .3s ease;
}
.hcard:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: inset 0 0 30px rgba(245, 158, 11, 0.15), 0 8px 30px rgba(245, 158, 11, 0.2);
}

/* ─── Scroll reveal ─────────────────────────────────── */
.reveal {
  will-change: opacity, transform;
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ─── Gradient text ─────────────────────────────────── */
.grad-text {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Hero Badge Floating Animation ─────────────────── */
@keyframes hero-badge-float {
  0%, 100% {
    transform: translateY(0px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.45);
  }
}

.hero-floating-badge,
.animate-float-badge {
  display: inline-flex;
  animation: hero-badge-float 4s ease-in-out infinite;
  will-change: transform, box-shadow;
}

/* ─── Entrance animations ───────────────────────────── */
@keyframes fade-in-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ─── Button hover ───────────────────────────────────── */
.btn-hover {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease, box-shadow 0.2s ease;
}
.btn-hover:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}
.btn-hover-secondary { transition: transform 0.2s ease; }
.btn-hover-secondary:hover { transform: scale(1.05); }

/* ─── Fake search bar ───────────────────────────────── */
.fake-searchbar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(77,44,18,0.4);
  border-radius: 9999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.fake-searchbar:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(245,158,11,0.3);
  box-shadow: 0 0 20px rgba(245,158,11,0.15);
}

/* ─── Bootstrap modal overrides ────────────────────── */
.modal-content {
  background: #180d06 !important;
  border: 1px solid rgba(77,44,18,0.5) !important;
  border-radius: 1.5rem !important;
  color: #fceee1 !important;
  box-shadow: 0 40px 100px rgba(0,0,0,0.8) !important;
}
.modal-header {
  border-bottom: 1px solid rgba(77,44,18,0.4) !important;
}
.modal-footer {
  border-top: 1px solid rgba(77,44,18,0.4) !important;
}
.modal-title { color: #fceee1 !important; font-weight: 600 !important; }

/* ─── Form controls override ────────────────────────── */
.form-control, .form-select {
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(77,44,18,0.4) !important;
  color: #fceee1 !important;
  border-radius: 0.75rem !important;
}
.form-control::placeholder { color: rgba(212,187,163,0.5) !important; }
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(245,158,11,0.5) !important;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15) !important;
  color: #fceee1 !important;
}
.form-label { color: #d4bba3 !important; font-size: 0.8rem !important; font-weight: 600 !important; }

/* ─── Bootstrap button overrides ───────────────────── */
.btn-primary {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  transition: all 0.2s ease !important;
}
.btn-primary:hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
  box-shadow: 0 0 25px rgba(245,158,11,0.4) !important;
}
.btn-outline-primary {
  border-color: rgba(245,158,11,0.4) !important;
  color: #f59e0b !important;
  background: transparent !important;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  transition: all 0.2s ease !important;
}
.btn-outline-primary:hover {
  background: rgba(245,158,11,0.1) !important;
  border-color: #f59e0b !important;
  color: #f59e0b !important;
}
.btn-close { filter: invert(1) brightness(0.6) !important; }

/* ─── General link ──────────────────────────────────── */
a { color: inherit; }
a:hover { color: #f59e0b; }

/* ─── Bootstrap card override ───────────────────────── */
.card {
  background: rgba(11,6,2,0.6) !important;
  border: 1px solid rgba(245,158,11,0.15) !important;
  border-radius: 1rem !important;
  color: #fceee1 !important;
}

/* ─── bg-gray utility ───────────────────────────────── */
.bg-gray { background: rgba(255,255,255,0.03) !important; border: 1px solid rgba(77,44,18,0.3) !important; }

/* ─── Pagination ────────────────────────────────────── */
.pagination .page-link {
  background: rgba(11,6,2,0.6) !important;
  border: 1px solid rgba(77,44,18,0.4) !important;
  color: #d4bba3 !important;
  border-radius: 0.75rem !important;
  transition: all 0.2s ease !important;
}
.pagination .page-link:hover {
  background: rgba(245,158,11,0.1) !important;
  border-color: rgba(245,158,11,0.4) !important;
  color: #f59e0b !important;
}
.pagination .page-item.active .page-link {
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #fff !important;
}

/* ─── Badge overrides ───────────────────────────────── */
.badge { border-radius: 9999px !important; font-weight: 700 !important; }
.badge.bg-success, .badge.text-bg-success {
  background: rgba(34,197,94,0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34,197,94,0.25) !important;
}
.badge.bg-danger, .badge.text-bg-danger {
  background: rgba(239,68,68,0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239,68,68,0.25) !important;
}
.badge.bg-warning, .badge.text-bg-warning {
  background: rgba(245,158,11,0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245,158,11,0.25) !important;
}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #0b0602; }
::-webkit-scrollbar-thumb { background: rgba(245,158,11,0.3); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #f59e0b; }

/* ─── Selection ─────────────────────────────────────── */
::selection { background: rgba(245,158,11,0.3); color: #fff; }

/* ─── Section py-5-nav util (SellAuth compat) ────────── */
.py-5-nav { padding-top: calc(74px + 1.5rem); padding-bottom: 1.5rem; }

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .marquee-track { font-size: 10px; }

  /* On phones, snap sections shouldn't force extra empty height when their
     content is short — keep the floor but let content breathe. */
  .snap-home .snap-section { min-height: calc(100dvh - var(--nav-h)); padding-top: 1.5rem; padding-bottom: 1.5rem; }

  /* Product card: lighter media + tighter body so 1-column cards aren't bulky */
  .pcard-media-mobile { height: 150px; }

  /* Hero stat strip: even 2-col grid instead of cramped wrapped inline items */
  .hero-stats { width: 100%; }
}

/* ─── Rendered Markdown (product & variant descriptions) ─ */
.markdown-body { line-height: 1.65; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body p { margin: 0 0 1rem; }
.markdown-body h4.md-h {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1rem;
}
.markdown-body h5.md-h {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  opacity: .85;
  margin: 1.4rem 0 .6rem;
}
.markdown-body ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  list-style: none;
}
.markdown-body li {
  position: relative;
  padding-left: 1rem;
  margin: 0 0 .45rem;
}
.markdown-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(245,158,11,0.75);
}
.markdown-body strong { font-weight: 700; color: inherit; }

/* Variant-specific note shown above the full product description */
.markdown-body .variant-note {
  border: 1px solid rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.06);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: 1.4rem;
}
.markdown-body .variant-note > :first-child { margin-top: 0; }
.markdown-body .variant-note > :last-child { margin-bottom: 0; }
.markdown-body .variant-note h4.md-h,
.markdown-body .variant-note h5.md-h {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
  margin: 0 0 .35rem;
  color: #f59e0b;
}

/* ─── Cart quantity input (hide native number spinners) ─ */
.cart-qty-num::-webkit-outer-spin-button,
.cart-qty-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-num { -moz-appearance: textfield; appearance: textfield; }

/* ─── Horizontal scroll carousel (related products, thumbnails) ─ */
.hscroll { scrollbar-width: none; scroll-snap-type: x proximity; }
.hscroll::-webkit-scrollbar { display: none; }

/* ─── line-clamp util ───────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ─── Legal documents (HTML supplied by SellAuth) ─
   Used together with .markdown-body (amber-dot bullets, p spacing, strong). */
.legal-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #d4bba3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legal-body h1,
.legal-body h2,
.legal-body h3,
.legal-body h4 { scroll-margin-top: calc(var(--nav-h) + 16px); color: #fceee1; }
.legal-body h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 2rem 0 .75rem;
}
.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.5rem 0 .5rem;
}
.legal-body h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 1.25rem 0 .5rem;
}
.legal-body > :first-child { margin-top: 0; }
.legal-body p { line-height: 1.6; }
.legal-body strong,
.legal-body b { font-weight: 600; color: #fceee1; }
.legal-body a { color: #f59e0b; text-decoration: none; }
.legal-body a:hover { color: #f59e0b; text-decoration: underline; }
.legal-body ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  list-style: decimal;
}
.legal-body ol li { padding-left: .25rem; margin: 0 0 .45rem; }
.legal-body ol li::before { content: none; }
.legal-body li > ul,
.legal-body li > ol { margin-top: .45rem; margin-bottom: 0; }
.legal-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 1rem;
}
.legal-body th,
.legal-body td {
  border: 1px solid #4d2c12;
  padding: .5rem .75rem;
  text-align: left;
  vertical-align: top;
}
.legal-body th { color: #fceee1; font-weight: 600; }