/* ============================================================
   LIVEFLIX — responsive.css
   Breakpoints: 1440 / 1200 / 992 / 768 / 576
   Mobile-first overrides are layered here to keep
   style.css clean and desktop-first.
   ============================================================ */


/* ============================================================
   1440px+ — Ultra-wide adjustments
   ============================================================ */
@media (min-width: 1440px) {
  :root {
    --container-px: 3rem;
  }

  /* posters-grid: flex carousel — no grid override needed */

  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ============================================================
   1200px — Large laptop
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --container-px: 1.75rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* posters-grid: flex carousel — cards always visible, just scroll */

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}


/* ============================================================
   992px — Tablet landscape / Small laptop
   ============================================================ */
@media (max-width: 992px) {
  :root {
    --container-px: 1.5rem;
    --space-24: 4.5rem;
    --space-20: 4rem;
    --space-16: 3rem;
  }

  /* Navbar — show hamburger, hide desktop links */
  .navbar__links {
    display: none;
  }

  /* Keep language/cart visible on mobile; hide only the CTA button */
  .navbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar__actions .btn-primary {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Hero */
  .hero__content {
    max-width: 80%;
  }

  .hero__stats {
    grid-template-columns: repeat(3, auto);
    gap: 1.5rem;
  }

  /* posters-grid: flex carousel — no columns override */

  /* Feature cards → 2 columns */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Steps → 1 column on tablet */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .steps-grid::before {
    display: none;
  }

  .step-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
  }

  .step-item__number {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .step-item__desc {
    padding-inline: 0;
  }

  /* Pricing grid → 2 columns */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Checkout → single column */
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  /* Contact → stacked */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Thank you device cards */
  .device-cards-row {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Thank you main grid */
  .thankyou-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Device selector product page */
  .device-selector {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Product page layout */
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-sticky-card {
    position: static !important;
  }
}


/* ============================================================
   768px — Tablet portrait
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --container-px: 1.25rem;
    --space-24: 4rem;
    --space-20: 3.5rem;
    --space-16: 2.75rem;
    --space-12: 2.5rem;
    --navbar-h: 4.25rem;
  }

  /* Typography scaling */
  .text-display {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .text-heading {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  /* Hero */
  .hero__content {
    max-width: 100%;
  }

  .hero__bg-overlay {
    background:
      linear-gradient(to bottom, rgba(14,14,14,0.6) 0%, transparent 25%),
      linear-gradient(to top, var(--clr-bg) 0%, rgba(14,14,14,0.7) 55%, transparent);
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }

  .hero__stat-value {
    font-size: 1.625rem;
  }

  .hero__ctas {
    flex-direction: column;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Showcase header stack */
  .showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* posters-grid: flex carousel — no columns override */

  /* Features → 1 column */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Devices → wrap tighter */
  .devices-grid {
    gap: 2rem 3rem;
  }

  /* Pricing → 1 column */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }

  /* Pricing popular card — remove scale on mobile */
  .card-pricing--popular {
    transform: none;
  }

  /* CTA block padding */
  .cta-block {
    padding: 3.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  /* Testimonials → 1 column */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ page sidebar → above accordion */
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-categories {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .faq-cat-btn {
    width: auto;
    flex: 0;
    white-space: nowrap;
  }

  /* Checkout */
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card-fields {
    grid-template-columns: 1fr 1fr;
  }

  .card-fields__number {
    grid-column: 1 / -1;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer → 2 cols then 1 */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Device selector → 2x2 */
  .device-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Thank-you device row */
  .device-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Compare table → horizontal scroll */
  .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 1.25rem;
  }

  .compare-table {
    min-width: 600px;
  }

  /* Brands bar — tighter */
  .brands-bar__inner {
    gap: 1.25rem 2rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  /* Pricing tabs */
  .pricing-tabs {
    width: 100%;
    justify-content: center;
  }

  /* Section header spacing */
  .section-header {
    margin-bottom: 2.5rem;
  }
}


/* ============================================================
   576px — Mobile
   ============================================================ */
@media (max-width: 576px) {
  :root {
    --container-px: 1rem;
    --space-24: 3.5rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
    --space-12: 2rem;
    --space-10: 1.75rem;
    --space-8:  1.5rem;
  }

  /* Typography */
  .text-display {
    font-size: clamp(2rem, 9vw, 2.75rem);
    letter-spacing: -0.025em;
  }

  .text-heading {
    font-size: clamp(1.375rem, 6vw, 1.75rem);
  }

  /* Hero badge */
  .hero__eyebrow .chip {
    font-size: 0.625rem;
  }

  /* Hero stats → column */
  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .hero__stat-value {
    font-size: 1.5rem;
  }

  /* posters-grid: flex carousel — gap only */
  .posters-grid {
    gap: 0.75rem;
  }

  /* Feature cards → 1 column */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card { padding: 1.25rem; }
  .card-feature { padding: 1.25rem; }

  /* Devices → tighter */
  .devices-grid {
    gap: 1.5rem 2rem;
  }

  .device-item__icon { font-size: 2.25rem; }

  /* Brands bar */
  .brands-bar__inner {
    gap: 1rem 1.5rem;
  }

  /* FAQ trigger font */
  .faq-item__trigger { padding: 1.25rem 1.5rem; }
  .faq-item__answer  { padding: 0 1.5rem 1.5rem; }

  .faq-item__question {
    font-size: 0.9375rem;
  }

  /* Checkout */
  .card-fields {
    grid-template-columns: 1fr;
  }

  .card-fields__number {
    grid-column: auto;
  }

  /* Checkout trust items */
  .trust-item {
    padding: 0.75rem;
  }

  /* Order summary card */
  .order-summary { padding: 1.25rem; }

  /* Footer → 1 column */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__brand-desc {
    max-width: 100%;
  }

  /* Device selector → 2 cols */
  .device-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  /* Thank you credentials */
  .credentials-card { padding: 1.25rem; }
  .credential-mono  { font-size: 0.875rem; word-break: break-all; }

  .device-cards-row {
    grid-template-columns: 1fr;
  }

  /* Support CTA card */
  .support-cta-card {
    padding: 1.5rem;
  }

  /* Button full-width on mobile */
  .btn--mobile-full {
    width: 100%;
  }

  /* Contact form */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-placeholder {
    height: 14rem;
  }

  /* Pricing */
  .pricing-grid {
    max-width: 100%;
  }

  .card-pricing__amount {
    font-size: 2.5rem;
  }

  .card-pricing--popular .card-pricing__amount {
    font-size: 2.75rem;
  }

  .card-pricing { padding: 1.75rem 1.25rem; }

  /* Steps */
  .step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-item__number {
    margin-bottom: 1rem;
  }

  .step-item__desc { padding-inline: 0; }

  /* CTA block */
  .cta-block {
    padding: 3rem 1rem;
  }

  /* Compare table (hide on very small, keep scroll) */
  .compare-table th,
  .compare-table td {
    padding: 1rem;
    font-size: 0.8125rem;
  }

  /* Mobile menu links */
  .mobile-menu__link {
    font-size: 1.625rem;
  }

  /* Navbar logo */
  .navbar__logo {
    font-size: 1.25rem;
  }

  /* Trust strip */
  .trust-strip {
    flex-direction: column;
    text-align: center;
  }
}


/* ============================================================
   Extra small — 375px (iPhone SE / small Android)
   ============================================================ */
@media (max-width: 375px) {
  :root {
    --container-px: 0.875rem;
  }

  .text-display {
    font-size: 1.875rem;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .device-selector {
    grid-template-columns: 1fr 1fr;
  }

  .posters-grid {
    gap: 0.5rem;
  }

  .card-pricing { padding: 1.5rem 1rem; }
}

/* ============= LiveFlix dynamic conversion fixes ============= */

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

*, *::before, *::after {
  box-sizing: border-box;
}

.container,
.section {
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.card-pricing,
.card-feature,
.card-device {
  max-width: 100%;
}

/* Footer bottom — center the bar regardless of screen size */
.footer__bottom {
  text-align: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Disable 3D tilt on touch devices */
@media (hover: none) {
  .tilt-card {
    transform: none !important;
  }
}

/* ── Mobile (≤ 768px) ───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Footer grid → single column, centered */
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .footer__grid > div {
    width: 100%;
    text-align: center;
  }
  .footer__links {
    align-items: center;
    justify-content: center;
  }

  /* Posters grid → horizontal scroll snap slider */
  .posters-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .posters-grid::-webkit-scrollbar { display: none; }
  .posters-grid > .card-poster {
    flex: 0 0 75%;
    scroll-snap-align: start;
  }
}

/* ── Phone (≤ 576px) ────────────────────────────────────────── */
@media (max-width: 576px) {

  .features-grid,
  .pricing-grid,
  .devices-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .features-grid::-webkit-scrollbar,
  .pricing-grid::-webkit-scrollbar,
  .devices-grid::-webkit-scrollbar { display: none; }

  .features-grid > *,
  .pricing-grid > *,
  .devices-grid > * {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

/* ============================================================
   LiveFlix v1.1 — Aggressive mobile hardening
   Higher specificity + !important to override any conflicts.
============================================================ */
@media (max-width: 768px) {

  /* Kill any horizontal overflow on the whole document */
  html, body,
  .site, main, .section, .container {
    overflow-x: clip !important;
    max-width: 100vw !important;
  }

  /* All images scale down */
  img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Containers get sensible padding */
  .container,
  main > .section > .container,
  .section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Hero: stack the two buttons + center align */
  .hero__actions,
  .hero__buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  .hero__actions > .btn,
  .hero__buttons > .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Hero stats grid becomes 2×2 instead of 1 row */
  .hero__stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }

  /* Display headings don't break */
  .text-display {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    line-height: 1.15 !important;
    word-break: break-word !important;
  }

  /* Posters grid → horizontal snap slider on phone */
  .posters-grid {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 0.75rem !important;
    padding: 0.5rem 1rem 1rem !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .posters-grid::-webkit-scrollbar { display: none !important; }
  .posters-grid > .card-poster,
  .posters-grid > * {
    flex: 0 0 72% !important;
    scroll-snap-align: start !important;
    max-width: 72% !important;
  }

  /* Pricing grid stacks cleanly */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .card-pricing {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Features / Devices / Steps cards → 1 column */
  .features-grid,
  .devices-grid,
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Navbar on mobile — make sure actions don't overflow */
  .navbar__inner {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  .navbar__actions .btn {
    padding: 0.5rem 0.875rem !important;
    font-size: 0.875rem !important;
  }

  /* Footer — single column, centered, proper bottom bar */
  .footer__grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 2rem !important;
  }
  .footer__grid > div { width: 100% !important; }
  .footer__links {
    align-items: center !important;
    justify-content: center !important;
    padding-left: 0 !important;
  }
  .footer__bottom {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1.5rem 1rem !important;
  }

  /* Compare table → horizontal scroll instead of breaking layout */
  .compare-table,
  .table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .compare-table table {
    min-width: 560px !important;
  }

  /* FAQ + Contact forms don't overflow */
  .faq-item,
  .contact-form,
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Cart badge in navbar stays readable */
  .navbar__link--cart {
    gap: 0.25rem !important;
    align-items: center !important;
  }
  .navbar__cart-count {
    color: var(--clr-primary);
    font-weight: 600;
  }
}

/* Ultra-small phones */
@media (max-width: 420px) {
  .text-display {
    font-size: 1.625rem !important;
  }
  .hero__stats {
    grid-template-columns: 1fr !important;
  }
  .posters-grid > * {
    flex: 0 0 82% !important;
    max-width: 82% !important;
  }
}

/* Tablet hardening */
@media (min-width: 577px) and (max-width: 1024px) {
  .pricing-grid,
  .features-grid,
  .devices-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .footer__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   LiveFlix v1.2 — Splash + icon constraints
============================================================ */

/* Splash icon — never exceeds viewport */
.splash-screen__icon,
.splash-screen__icon-wrap img {
  max-width: min(40vw, 160px) !important;
  max-height: min(40vw, 160px) !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Navbar logo must stay compact on mobile */
@media (max-width: 768px) {
  .navbar__logo-img {
    max-height: 36px !important;
    width: auto !important;
  }
  .mobile-menu__brand-icon {
    max-width: 48px !important;
    max-height: 48px !important;
  }
}

/* Hard failsafe — if splash lingers, force-hide after 4s via CSS */
.splash-screen--hide {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s !important;
}

/* Ensure body scroll is never permanently locked by splash */
body.splash-active { overflow: hidden; }

/* ============================================================
   LiveFlix v1.3 — Global logo size + WC checkout + footer
============================================================ */

/* Hard-cap non-theme logos inserted by plugins (e.g. site-logo blocks,
   custom-logo widget). The theme's own .navbar__logo-img / .footer__logo-img
   are deliberately excluded so their explicit sizes win. */
.site-footer img[src*="logo"]:not(.footer__logo-img),
img.custom-logo,
.woocommerce-store-notice ~ * img[src*="logo"] {
  max-height: 56px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* WooCommerce checkout: keep non-theme logo plugins in check
   (navbar__logo-img deliberately excluded so the theme logo keeps
   its normal mobile size on /checkout — matches the rest of the site) */
body.woocommerce-checkout img.custom-logo,
body.woocommerce-checkout .site-branding img,
body.woocommerce-checkout .site-header img[src*="logo"] {
  max-height: 48px !important;
  width: auto !important;
}

/* Footer logo — smaller on mobile */
@media (max-width: 768px) {
  .footer__logo img,
  .site-footer img[src*="logo"] {
    max-height: 56px !important;
  }
}

/* Kill any accidental duplicate brand on mobile menu open */
@media (max-width: 768px) {
  body.mobile-menu-open .navbar__brand .navbar__logo-img { opacity: 1; }
  .mobile-menu .navbar__logo-img,
  .mobile-menu__duplicate-brand { display: none !important; }
}

/* WooCommerce cart remove icon — ensure visible on checkout */
.woocommerce-cart-form .product-remove a.remove,
.woocommerce-checkout-review-order .product-remove a.remove,
.liveflix-cart-remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 70, 70, 0.12);
  color: #ff4646 !important;
  font-size: 18px;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}
.woocommerce-cart-form .product-remove a.remove:hover,
.liveflix-cart-remove:hover {
  background: rgba(255, 70, 70, 0.28);
  transform: scale(1.08);
}

/* Pricing grid — tame zoom/overflow on all screens */
.pricing-grid {
  display: grid !important;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}
.pricing-grid .card-pricing {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  transform: none !important;
  zoom: 1 !important;
}
.pricing-grid .card-pricing * { min-width: 0; }
@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .pricing-grid .card-pricing { padding: 1.25rem !important; }
}

/* ============================================================
   LiveFlix v1.4 — Cart icon + flags + mobile fixes
============================================================ */

/* Cart icon button (desktop + mobile) */
.navbar__cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #eaeaea;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}
.navbar__cart-btn:hover {
  background: rgba(202,253,0,.14);
  color: var(--clr-primary, #cafd00);
  border-color: rgba(202,253,0,.45);
  transform: translateY(-1px);
}
.navbar__cart-btn .material-symbols-outlined { font-size: 22px; }
.navbar__cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--clr-primary, #cafd00);
  color: #0b0b0b;
  font-family: var(--font-headline, Inter, sans-serif);
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(14,14,14,0.9), 0 0 10px rgba(202,253,0,.55);
  animation: lfCartPulse 1.6s ease-in-out infinite;
}
.navbar__cart-btn:not(.has-items) .navbar__cart-badge[hidden] { display: none !important; }
@keyframes lfCartPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.12); }
}

/* SVG-free flag chips (avoid emoji rendering gaps, esp. Dutch on some devices) */
.lf-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-right: 8px;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.lf-flag--fr { background: linear-gradient(to right, #0055A4 0 33.33%, #FFFFFF 33.33% 66.66%, #EF4135 66.66% 100%); }
.lf-flag--gb {
  background:
    linear-gradient(to bottom, transparent 0 40%, #C8102E 40% 60%, transparent 60% 100%),
    linear-gradient(to right,  transparent 0 40%, #C8102E 40% 60%, transparent 60% 100%),
    linear-gradient(45deg,  transparent 45%, #FFFFFF 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, #FFFFFF 45% 55%, transparent 55%),
    #012169;
  background-blend-mode: normal;
}
.lf-flag--nl { background: linear-gradient(to bottom, #AE1C28 0 33.33%, #FFFFFF 33.33% 66.66%, #21468B 66.66% 100%); }

/* Hero stats — side-by-side with compact sizing on mobile */
@media (max-width: 768px) {
  .hero__stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 0.5rem !important;
    padding-top: 1.25rem !important;
    margin-top: 1.5rem !important;
    text-align: center;
  }
  .hero__stats > div { flex: 1; min-width: 0; }
  .hero__stat-value { font-size: 1.35rem !important; white-space: nowrap; }
  .hero__stat-label { font-size: 0.58rem !important; letter-spacing: 0.12em !important; }

  /* Hero CTAs — compact */
  .hero__ctas {
    flex-direction: column;
    gap: 0.6rem !important;
    margin-top: 1.5rem !important;
  }
  .hero__ctas .btn,
  .hero__ctas .btn--lg {
    width: 100%;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.85rem !important;
    min-height: 44px;
  }

  /* Navbar logo — slightly bigger per feedback (was 36px) */
  .navbar__logo-img {
    max-height: 48px !important;
    height: auto !important;
  }

  /* Footer logo — actually small now (correct selector) */
  .footer__logo-img {
    height: 36px !important;
    max-height: 36px !important;
    max-width: 120px !important;
  }
  .footer__brand-logo { margin-bottom: 0.75rem !important; }

  /* Cart button keeps size on mobile but adjust spacing */
  .navbar__cart-btn { width: 38px; height: 38px; }
  .navbar__cart-btn .material-symbols-outlined { font-size: 20px; }
}

/* Navbar actions — proper spacing between lang, cart, CTA */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (max-width: 540px) {
  /* On very narrow viewports, hide the CTA button to avoid cramming — cart + lang stay */
  .navbar__actions .btn-primary { display: none; }
}

/* Ensure mobile menu doesn't show duplicate brand (belt & suspenders with style.css) */
.mobile-menu__brand, .mobile-menu__brand-icon, .mobile-menu__brand-name { display: none !important; }

/* ============================================================
   LiveFlix v1.4 — Showcase carousel (autoplay horizontal scroller)
   JS adds .posters-grid--carousel class to enable this mode.
============================================================ */
.posters-grid--carousel {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.25rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.posters-grid--carousel::-webkit-scrollbar { display: none; }

.posters-grid--carousel > .card-poster {
  flex: 0 0 auto !important;
  width: clamp(180px, 22%, 260px);
  scroll-snap-align: start;
}

@media (max-width: 992px) {
  .posters-grid--carousel > .card-poster { width: clamp(170px, 38%, 230px); }
}
@media (max-width: 640px) {
  .posters-grid--carousel > .card-poster { width: clamp(150px, 64%, 220px); }
}

/* Subtle edge fade so off-screen cards hint at more */
.section:has(.posters-grid--carousel) { position: relative; }
.section:has(.posters-grid--carousel)::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 56px;
  pointer-events: none;
  background: linear-gradient(to left, var(--clr-void, #050505), transparent);
  z-index: 2;
}

/* ============================================================
   LiveFlix v1.5 — Checkout button, devices grid, footer accordion,
   price-pulse animation, mobile navbar spacing
============================================================ */

/* ----- WooCommerce: force Place Order button to be visible & styled ----- */
#place_order,
.wc-block-components-checkout-place-order-button,
.woocommerce-checkout .wp-block-button__link,
.woocommerce #payment #place_order,
.woocommerce-checkout .button.alt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 54px;
  padding: 1rem 2rem !important;
  background: var(--clr-primary, #cafd00) !important;
  color: #0b0b0b !important;
  font-family: var(--font-headline, Inter, sans-serif);
  font-weight: 800 !important;
  font-size: 1rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 30px rgba(202,253,0,.35), 0 0 0 1px rgba(202,253,0,.5) inset !important;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease !important;
}
#place_order:hover,
.woocommerce-checkout .button.alt:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 38px rgba(202,253,0,.5), 0 0 0 1px rgba(202,253,0,.7) inset !important;
}
.woocommerce-checkout-payment { padding-top: .5rem !important; }

/* ----- Devices grid on mobile — 2-3 columns side-by-side ----- */
@media (max-width: 768px) {
  .devices-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.25rem 0.75rem !important;
    justify-items: center;
    align-items: start;
  }
  .device-item { opacity: 1 !important; gap: 0.4rem !important; }
  .device-item__icon { font-size: 2rem !important; }
  .device-item__label { font-size: 0.72rem !important; text-align: center; letter-spacing: 0; }
}
@media (max-width: 380px) {
  .devices-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ----- Footer: accordion on mobile (click title to expand) ----- */
@media (max-width: 768px) {
  .footer__col-title {
    cursor: pointer;
    position: relative;
    padding-right: 1.75rem;
    user-select: none;
  }
  .footer__col-title::after {
    content: "expand_more";
    font-family: 'Material Symbols Outlined';
    font-size: 1.25rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform .25s ease;
    color: var(--clr-muted, #888);
  }
  .footer__col.is-open .footer__col-title::after { transform: translateY(-50%) rotate(180deg); }

  .footer__col .footer__links {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: max-height .35s ease, padding .2s ease;
  }
  .footer__col.is-open .footer__links {
    max-height: 800px;
    padding-top: 0.75rem;
  }

  /* Footer logo — slightly bigger per feedback */
  .footer__logo-img {
    height: 46px !important;
    max-height: 46px !important;
    max-width: 150px !important;
  }
}

/* ----- Mobile navbar: shift cart + hamburger slightly right ----- */
@media (max-width: 768px) {
  .navbar__inner {
    padding-inline: 1rem !important;
  }
  .navbar__actions {
    gap: 0.5rem !important;
    margin-right: 0.25rem;
  }
  .navbar__hamburger {
    margin-left: 0.25rem;
  }
}

/* ----- Price pulse micro-animation (product page) ----- */
@keyframes lfPricePulse {
  0%   { transform: scale(1);    color: var(--clr-primary, #cafd00); }
  40%  { transform: scale(1.08); color: #ffffff; }
  100% { transform: scale(1);    color: var(--clr-primary, #cafd00); }
}
.lf-price-pulse { animation: lfPricePulse .45s ease-out; }

/* ============================================================
   LiveFlix v1.5.1 — Admin bar, showcase heading, mobile logos,
   devices auto-carousel on mobile
============================================================ */

/* ----- WP admin bar offset so navbar doesn't get eaten ----- */
body.admin-bar .navbar { top: 32px !important; }
@media screen and (max-width: 782px) {
  body.admin-bar .navbar { top: 46px !important; }
}
body.admin-bar .splash-screen { top: 0 !important; } /* splash stays full-screen */

/* ----- Showcase section heading: single line on wider viewports ----- */
#showcase-title,
.showcase-header #showcase-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 1100px) {
  #showcase-title,
  .showcase-header #showcase-title {
    white-space: normal;
    text-overflow: clip;
  }
}

/* ----- Mobile logos: slightly larger per feedback ----- */
@media (max-width: 768px) {
  .navbar__logo-img {
    max-height: 72px !important;
    height: auto !important;
  }
  .footer__logo-img {
    height: 48px !important;
    max-height: 48px !important;
    max-width: 160px !important;
  }
}

/* ----- Footer logo hard-cap on WooCommerce pages (checkout/cart) ----- */
body.woocommerce-checkout .footer__logo-img,
body.woocommerce-cart .footer__logo-img,
body.woocommerce-page .footer__logo-img {
  height: 48px !important;
  max-height: 48px !important;
  max-width: 150px !important;
}
@media (max-width: 768px) {
  body.woocommerce-checkout .footer__logo-img,
  body.woocommerce-cart .footer__logo-img,
  body.woocommerce-page .footer__logo-img {
    height: 40px !important;
    max-height: 40px !important;
    max-width: 130px !important;
  }
}

/* ----- Navbar logo: smaller on WooCommerce checkout / cart pages ----- */
body.woocommerce-checkout .navbar__logo-img,
body.woocommerce-cart .navbar__logo-img {
  height: 64px !important;
  max-height: 64px !important;
  max-width: 190px !important;
}
@media (max-width: 768px) {
  body.woocommerce-checkout .navbar__logo-img,
  body.woocommerce-cart .navbar__logo-img {
    max-height: 54px !important;
    height: auto !important;
    max-width: 160px !important;
  }
}

/* ----- Devices on mobile: single-row horizontal auto-carousel ----- */
@media (max-width: 768px) {
  /* Override the grid rule added in v1.5 */
  .devices-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 2rem !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.25rem 1rem 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .devices-grid::-webkit-scrollbar { display: none; }
  .device-item {
    flex: 0 0 auto !important;
    min-width: 96px;
    scroll-snap-align: center;
    opacity: 1 !important;
  }
  .device-item__icon { font-size: 2.2rem !important; }
  .device-item__label {
    font-size: 0.8rem !important;
    white-space: nowrap;
    text-align: center;
  }
}

/* ============================================================
   LiveFlix v1.6 — Real brand + device logos
============================================================ */

/* ────────────────────────────────────────────────────────────
   LF BRANDS SIZE — edit the variables below to resize logos
   ──────────────────────────────────────────────────────────── */
:root {
  --lf-brand-h:         40px;   /* Desktop logo height */
  --lf-brand-h-mobile:  24px;   /* Mobile  logo height */
  --lf-brand-max-w:     140px;  /* Desktop max width   */
  --lf-brand-max-w-mobile: 90px;/* Mobile max width    */
  --lf-brand-marquee-speed: 22s;/* Lower = faster scroll */
}

/* Override legacy style.css rule that used to dim/greyscale brand names
   (needed back when the bar was text). With real colored logos we want
   full visibility by default. */
.brands-bar__inner {
  opacity: 1 !important;
  filter: none !important;
}

/* Desktop — static row, clones hidden. */
.brand-logo {
  height: var(--lf-brand-h);
  width: auto;
  max-width: var(--lf-brand-max-w);
  object-fit: contain;
  display: block;
  opacity: 1;
  transition: transform var(--tr-base);
}
.brand-logo:hover { transform: translateY(-2px) scale(1.05); }
.brand-logo--clone { display: none; } /* only visible during mobile marquee */

/* Mobile — CSS-only infinite marquee. Logos + their clones form a single
   flex row; we animate the row -50% so the clone set slides in as the
   original slides out. Loop is seamless. No JS.
   Frame height is capped tightly — the images fit inside it, not the
   other way around. */
@media (max-width: 768px) {
  .brands-bar {
    padding-block: 1.25rem !important;   /* shrink the outer frame */
    overflow: hidden;
  }
  .brands-bar .container {
    padding-inline: 0;
  }
  .brand-logo {
    height: var(--lf-brand-h-mobile) !important;
    width: auto !important;
    max-width: var(--lf-brand-max-w-mobile) !important;
    max-height: var(--lf-brand-h-mobile) !important;
    flex: 0 0 auto;
    object-fit: contain;
  }
  .brand-logo--clone { display: block; }
  .brands-bar__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: max-content;
    align-items: center !important;
    animation: lf-brands-marquee var(--lf-brand-marquee-speed) linear infinite;
    justify-content: flex-start !important;
  }
  .brands-bar:hover .brands-bar__inner,
  .brands-bar:active .brands-bar__inner {
    animation-play-state: paused;
  }
}
@keyframes lf-brands-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .brands-bar__inner { animation: none !important; }
}



/* LiveFlix hotfix — mobile showcase slider + menu */
@media (max-width: 768px) {
  .posters-grid,
  .posters-grid.posters-grid--carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 0.75rem !important;
    padding: 0.5rem 1rem 1rem !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  .posters-grid::-webkit-scrollbar,
  .posters-grid.posters-grid--carousel::-webkit-scrollbar {
    display: none !important;
  }
  .posters-grid > .card-poster,
  .posters-grid.posters-grid--carousel > .card-poster {
    flex: 0 0 72% !important;
    width: 72% !important;
    max-width: 72% !important;
    min-width: 72% !important;
    scroll-snap-align: start !important;
  }

  body.mobile-menu-open { overflow: hidden !important; }
  .mobile-menu.open { display: flex !important; }
  .navbar__hamburger { position: relative; z-index: 1102; }
}

@media (max-width: 420px) {
  .posters-grid > .card-poster,
  .posters-grid.posters-grid--carousel > .card-poster {
    flex-basis: 82% !important;
    width: 82% !important;
    max-width: 82% !important;
    min-width: 82% !important;
  }
}
