/* ─── Prevent horizontal overflow on mobile ──────────────────────────────────── */

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ─── Global Header ─────────────────────────────────────────────────────────── */

.global-header-liquid {
  text-align: center;
  margin-bottom: 4rem;
}

.global-header-liquid h2 {
  font-size: var(--fs-section);
  font-weight: 950;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.global-header-liquid p {
  color: var(--cl-accent);
  text-transform: uppercase;
  letter-spacing: 6px;
  font-weight: 800;
  font-size: 0.85rem;
}

/* ─── Product Cards ──────────────────────────────────────────────────────────── */

.liquid-product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s var(--ease-out-quart),
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.35s ease;
  text-decoration: none !important;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.liquid-product-card:hover {
  background-color: rgba(var(--cl-accent-rgb), 0.05);
  border-color: rgba(var(--cl-accent-rgb), 0.32);
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.6);
}

/* light sweep on hover, moved with transform only */
.liquid-product-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translateX(-180%) rotate(25deg);
  transition: transform 0.8s var(--ease-out-quart);
  z-index: 1;
  pointer-events: none;
}

.liquid-product-card:hover::after {
  transform: translateX(380%) rotate(25deg);
}

/* ─── Product Image ──────────────────────────────────────────────────────────── */

/* ─── Product Badges ─────────────────────────────────────────────────────────── */

/* ─── Product Info ───────────────────────────────────────────────────────────── */

.liquid-product-btn {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.liquid-product-card:hover .liquid-product-btn {
  background: var(--cl-accent-strong);
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(var(--cl-accent-rgb), 0.3);
  transform: translateY(-2px);
}

/* ─── Shared Liquid Header ───────────────────────────────────────────────────── */

.liquid-header {
  text-align: left;
  margin-bottom: 5rem;
  border-left: 5px solid var(--cl-accent);
  padding-left: 2rem;
}

.liquid-header h2 {
  font-size: var(--fs-section);
  font-weight: 900;
  color: #fff;
  line-height: 0.9;
  letter-spacing: -3px;
  margin: 0;
}

.liquid-header h1 {
  font-size: var(--fs-display);
  font-weight: 900;
  color: #fff;
  line-height: 0.9;
  letter-spacing: -3px;
}

.liquid-header p {
  color: var(--cl-accent);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
  .liquid-header {
    text-align: center;
    border-left: none;
    padding-left: 0;
  }
}

/* ─── Policy Section ─────────────────────────────────────────────────────────── */

.policy-section-liquid {
  padding-top: 10rem !important;
  padding-bottom: 5rem;
}

@media (max-width: 991.98px) {
  .policy-section-liquid {
    padding-top: 8rem !important;
  }
}

/* Footer styles live in components/footer.njk */

/* ─── Product Page ───────────────────────────────────────────────────────────── */

.liquid-product-container {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2rem;
}

/* Group modal: solid panel so the page doesn't show through */
.modal .modal-content.liquid-product-container { background: #0b1024; }

.liquid-product-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.liquid-variant-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 15px !important;
  padding: 1.25rem !important;
  transition: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.liquid-variant-card.active {
  background: rgba(var(--cl-accent-rgb), 0.1) !important;
  border-color: var(--cl-accent) !important;
  box-shadow: 0 0 20px rgba(var(--cl-accent-rgb), 0.2);
}

.liquid-variant-card:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ── Out of stock variant — dim entire row ── */
.liquid-variant-card[disabled] {
  opacity: 0.38 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.liquid-variant-card[disabled] .liquid-price-tag {
  color: rgba(255,255,255,0.56) !important;
  text-shadow: none !important;
}

.liquid-price-tag {
  font-size: 2rem;
  font-weight: 900;
  color: var(--cl-accent);
  text-shadow: 0 0 20px rgba(var(--cl-accent-rgb), 0.3);
}

/* ── Description tab — underline style ── */
.liquid-tab-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  padding: 0.6rem 0.25rem !important;
  margin-right: 1.5rem !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: rgba(255,255,255,0.56) !important;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease !important;
}

.liquid-tab-btn:hover {
  color: rgba(255, 255, 255, 0.7) !important;
  border-bottom-color: rgba(255,255,255,0.2) !important;
}

.liquid-tab-btn.active {
  background: transparent !important;
  color: #fff !important;
  border-bottom-color: var(--cl-accent) !important;
  box-shadow: none !important;
}

/* ── Rating bar under product title ── */
.ppage-rating-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.ppage-stars {
  display: flex;
  gap: 2px;
}

.ppage-stars svg {
  width: 15px;
  height: 15px;
  fill: #ffd84d;
}

.ppage-rating-score {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffd84d;
  letter-spacing: -0.01em;
}

.ppage-rating-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
}

.ppage-rating-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.64);
}

.liquid-image-main {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.liquid-thumb {
  border-radius: 12px !important;
  overflow: hidden;
  border: 2px solid transparent !important;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  opacity: 0.5;
}

.liquid-thumb.active {
  border-color: var(--cl-accent) !important;
  opacity: 1;
  transform: translateY(-3px);
}

.liquid-stats-item {
  background: rgba(var(--cl-accent-rgb), 0.05);
  border-left: 3px solid var(--cl-accent);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
}

/* ─── Status Page ────────────────────────────────────────────────────────────── */

.liquid-status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  text-decoration: none !important;
  transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1rem;
}

.liquid-status-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(10px);
  border-color: rgba(var(--cl-accent-rgb), 0.3);
}

.liquid-status-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.liquid-status-group-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin: 3rem 0 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--cl-accent);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
  .liquid-product-container {
    padding: 1.5rem;
    border-radius: 20px;
  }
}

/* ─── Overrides ──────────────────────────────────────────────────────────────── */

.card.p-4 {
  background: rgba(var(--cl-background-secondary-rgb), 0.3);
}

button.w-100.mt-4.btn.btn-outline-primary {
  color: #ffffff;
  border-color: #ffffff;
}

.navbar-component {
  top: var(--announcement-bar-height, 0px);
}

/* Hero Glow Enhancement */
.global-header-liquid {
  position: relative;
}

/* soft glow centred behind section headings; fades out well inside its box so no edge can clip it */
.global-header-liquid::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(640px, 100vw);
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    closest-side,
    rgba(88, 101, 242, 0.16),
    rgba(88, 101, 242, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.global-header-liquid > * {
  position: relative;
  z-index: 1;
}

.navbar-brand img {
  height: 155px !important;
  width: auto !important;
}

.navbar {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.navbar-brand {
  gap: 10px !important;
}

.navbar-brand span {
  display: none !important;
}

/* Announcement bar mobile fix */
@media (max-width: 767px) {
  [class*="announcement"] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
  }
}



/* 2) PRODUCT CARD HOVER (CLEAR CLICK FEEDBACK) */
.liquid-product-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.liquid-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(133, 102, 255, 0.35) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(133, 102, 255, 0.15);
}

/* 3) NAVBAR ACTIVE STATE (CLEAR LOCATION) */

/* 4) DISCORD BUTTON (BETTER CONTRAST) */
.hero-btn--discord {
  background: rgba(133, 102, 255, 0.10);
  border: 1px solid rgba(133, 102, 255, 0.45);
  color: #d6ccff;
}

.hero-btn--discord:hover {
  background: rgba(133, 102, 255, 0.18);
  border-color: rgba(133, 102, 255, 0.8);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(133, 102, 255, 0.25);
}

/* ─── Compact 2-col variant grid ─────────────────────────────────────────────── */

.variant-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.liquid-variant-compact {
  padding: 0.85rem 0.9rem !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.variant-compact-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.variant-compact-desc {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.64);
  line-height: 1.3;
}

.variant-compact-stock {
  color: rgba(255,255,255,0.64);
  font-weight: 600;
}

.variant-compact-price {
  font-size: 1rem;
  font-weight: 900;
  color: var(--cl-accent);
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.variant-compact-slash {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.25);
}

@media (max-width: 400px) {
  .variant-grid-compact {
    grid-template-columns: 1fr;
  }
}

/* Product page CTA trust/conversion tweaks */
.liquid-product-btn[type="submit"] {
  box-shadow: 0 0 24px rgba(132, 99, 255, 0.45);
  transform: translateY(0);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.liquid-product-btn[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(132, 99, 255, 0.65);
}

.liquid-product-btn:not([type="submit"]) {
  opacity: 0.88;
}

/* ─── 4D4P overrides carried over from the old pro.css ───────────────────────
 * The old theme edited pro.css directly. These rules re-apply those edits on
 * top of the updated pro.css so pro.css can stay stock for future updates.
 */

/* Navbar is position:fixed, so page sections need extra top space */
.py-5-nav {
  padding-top: calc(74px + 5.5rem);
}

.announcement {
  background: #13131cbd;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--nav-border);
}

.cart .form {
  background: rgb(20 22 33 / 65%);
}

.editor .e-hr,
.editor hr {
  height: auto;
  background: none;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--cl-accent);
  margin: 0.5rem 0;
}

/* ─── 4D4P motion system ──────────────────────────────────────────────────────
 * One shared scroll reveal (snippets/motion.njk). Elements with .rv rise 18px and
 * fade in with an exponential ease-out; nothing bounces. html.rv-on is only set
 * when motion is allowed, so without it everything is simply visible.
 */
:root {
  /* deeper accent behind white text: keeps the brand purple but reaches 4.5:1 */
  --cl-accent-strong: var(--cl-accent);
  /* one vertical rhythm for every homepage section */
  --section-y: clamp(3.5rem, 7vw, 6rem);
  /* type scale: page titles, section titles, card titles */
  --fs-display: clamp(2.4rem, 4.6vw, 3.75rem);
  --fs-section: clamp(1.9rem, 3.4vw, 2.75rem);
  --fs-card-title: 1.125rem;
  --tracking-tight: -0.03em;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

.rv-on .rv:not(.rv-in) {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

/* quint ease-out: moves evenly at first and settles softly (expo felt abrupt on phones) */
.rv-on .rv:not(.rv-done) {
  transition:
    opacity 0.75s var(--ease-out-quint),
    transform 0.95s var(--ease-out-quint);
  will-change: opacity, transform;
}

/* Reduced motion: no loops, no travel. Short fades and colour changes still give feedback. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* homepage product/category section joins the shared rhythm */
.products-section-liquid {
  padding: calc(var(--section-y) * 0.5) 0 var(--section-y);
}

@supports (background: color-mix(in srgb, red 50%, black)) {
  :root { --cl-accent-strong: color-mix(in srgb, var(--cl-accent) 80%, #000); }
}

/* ─── Comfortable tap targets on phones (44px minimum) ─────────────────────── */
@media (max-width: 991.98px) {
  .lqp-pill {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .hero-search__btn { min-height: 40px; }

  .pf-qty-group .btn,
  .pf-qty-group .form-control { min-height: 44px; }
}

/* Lives here (in <head>) rather than in hero.njk so it applies before first paint. */
/* ── 4D4P hero entrance: the page's one authored moment ──
   Headline lines slide up out of a clip, then the supporting content follows.
   Runs once on load, only when motion is allowed (html.rv-on). */
@keyframes hero-line-in {
  from { transform: translate3d(0, 105%, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
@keyframes hero-rise-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.rv-on .hero-title-line {
  overflow: hidden;
  padding-bottom: 0.08em;   /* keep descenders inside the clip */
  margin-bottom: -0.08em;
}
.rv-on .hero-title-line > span {
  display: inline-block;
  animation: hero-line-in 0.9s var(--ease-out-expo) both;
}
.rv-on .hero-title-line:nth-child(2) > span { animation-delay: 0.08s; }
.rv-on .hero-title-line:nth-child(3) > span { animation-delay: 0.16s; }
.rv-on .hero-badge,
.rv-on .hero-subtitle,
.rv-on .hero-ctas,
.rv-on .hero-search,
.rv-on .hero-features {
  animation: hero-rise-in 0.8s var(--ease-out-expo) both;
}
.rv-on .hero-badge    { animation-delay: 0s; }
.rv-on .hero-subtitle { animation-delay: 0.32s; }
.rv-on .hero-ctas     { animation-delay: 0.42s; }
.rv-on .hero-search   { animation-delay: 0.5s; }
.rv-on .hero-features { animation-delay: 0.6s; }