/*
Theme Name: ADX PEP - VR Style
Theme URI: https://adxpep.com
Description: Custom theme mirroring verapeps.com design for ADX PEP. Clean, minimal, light background with floating header, dark footer, and modern typography.
Version: 1.0
Author: ADXWellness
Author URI: https://adxpep.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adx-pep-vr
Tags: woocommerce, custom, light, minimal
*/

/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
  --bg: #f8f7f5;
  --fg: #1d2025;
  --fg-muted: #374151;
  --fg-light: #6b7280;
  --white: #ffffff;
  --border: #e5e5e5;
  --border-light: #f0efed;
  --header-bg: rgba(255, 255, 255, 0.85);
  --footer-bg: #1d2025;
  --footer-fg: #e5e5e5;
  --footer-fg-muted: #9ca3af;
  --accent: #1d2025;
  --accent-hover: #374151;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-header: 0 2px 24px rgba(0,0,0,0.08);
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.25,.46,.45,.94);
  --max-w: 1280px;
  --container-pad: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--fg-muted); }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ===========================
   UTILITY
=========================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.tag-pill {
  display: inline-block;
  background: var(--border);
  color: var(--fg-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

/* ===========================
   ANNOUNCEMENT BAR
=========================== */
.announcement-bar {
  background: var(--fg);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px var(--container-pad);
}

/* ===========================
   HEADER
=========================== */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 var(--container-pad);
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  box-shadow: var(--shadow-header);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--fg);
}

.site-logo img {
  height: 36px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .logo-main { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.logo-text .logo-sub { font-size: 9px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-muted); }

/* Primary nav */
.primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav ul li a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-radius: var(--radius-pill);
  transition: background 0.2s, color 0.2s;
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current_page_item > a {
  background: var(--border-light);
  color: var(--fg);
}

/* active underline */
.primary-nav ul li.current-menu-item > a,
.primary-nav ul li.current_page_item > a {
  color: var(--fg);
  font-weight: 600;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-actions .header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.header-actions .header-icon-btn:hover { background: var(--border-light); box-shadow: var(--shadow-sm); }
.header-actions .header-icon-btn svg { width: 18px; height: 18px; }

.btn-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--white) !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s;
  white-space: nowrap;
}
.btn-cart:hover { background: var(--accent-hover); color: var(--white) !important; transform: translateY(-1px); }
.btn-cart .cart-count {
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  font-size: 12px;
}

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  color: var(--fg);
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s; }

/* ===========================
   HERO
=========================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #dce8f0 0%, #e8f0f5 30%, #f8f7f5 70%);
  padding: 80px var(--container-pad) 60px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 60% 50%, rgba(180,210,230,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.hero-eyebrow span { margin: 0 8px; opacity: 0.4; }

.hero-title {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 460px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--white);
  border: 1px solid var(--fg);
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--white); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-muted);
  font-size: 15px;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--fg); }

/* Hero badge cards */
.hero-badges {
  position: absolute;
  right: max(40px, 8%);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  font-size: 13px;
}

.hero-badge .badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge .badge-title { font-weight: 600; font-size: 13px; color: var(--fg); display: block; }
.hero-badge .badge-sub { font-size: 11px; color: var(--fg-light); display: block; }

/* ===========================
   FEATURE TICKER
=========================== */
.feature-ticker {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
}
.ticker-item svg { width: 16px; height: 16px; color: var(--fg-light); }
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* ===========================
   SECTIONS
=========================== */
.section { padding: 80px var(--container-pad); }
.section-sm { padding: 48px var(--container-pad); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-tag { margin-bottom: 12px; }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.8px;
  line-height: 1.1;
  color: var(--fg);
}

.section-title-wrap { max-width: 600px; }

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.view-all-link:hover { color: var(--fg); }

/* ===========================
   PRODUCT GRID
=========================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.product-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  color: var(--fg-muted);
  backdrop-filter: blur(4px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.product-card:hover .product-card-img img { transform: scale(1.03); }

.product-card-body {
  padding: 16px;
}

.product-card-sku {
  font-size: 11px;
  color: var(--fg-light);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card-sub {
  font-size: 12px;
  color: var(--fg-light);
  margin-bottom: 12px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}

.btn-add-cart {
  background: var(--fg);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-add-cart:hover { background: var(--accent-hover); }

/* WooCommerce default product grid override */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products li.product { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; padding: 0 !important; margin: 0 !important; transition: box-shadow 0.2s, transform 0.2s; }
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.woocommerce ul.products li.product a img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 600; color: var(--fg); padding: 12px 16px 4px; }
.woocommerce ul.products li.product .price { display: block; padding: 0 16px 4px; font-size: 14px; font-weight: 600; color: var(--fg); }
.woocommerce ul.products li.product .button { display: block; margin: 8px 16px 16px; background: var(--fg); color: var(--white); border: none; border-radius: var(--radius-pill); padding: 9px 16px; font-size: 13px; font-weight: 600; text-align: center; transition: background 0.2s; }
.woocommerce ul.products li.product .button:hover { background: var(--accent-hover); color: var(--white); }

/* ===========================
   INFO CARDS ROW
=========================== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.info-card:hover { box-shadow: var(--shadow-md); }

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--fg-muted);
}
.info-card-icon svg { width: 22px; height: 22px; }

.info-card-title { font-size: 15px; font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.info-card-desc { font-size: 13px; color: var(--fg-light); line-height: 1.55; }

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
  background: var(--fg);
  color: var(--white);
  padding: 80px var(--container-pad);
  text-align: center;
}

.cta-section .section-title { color: var(--white); }
.cta-section .section-desc { color: var(--footer-fg-muted); margin: 16px auto 36px; max-width: 480px; font-size: 16px; }

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--fg);
  border: 1px solid var(--white);
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-white:hover { background: var(--bg); transform: translateY(-1px); }

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 64px var(--container-pad) 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--footer-fg-muted);
  line-height: 1.65;
  max-width: 240px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-fg-muted);
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--footer-fg-muted);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 13px; color: var(--footer-fg-muted); }

.footer-legal {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal a { font-size: 13px; color: var(--footer-fg-muted); transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

/* ===========================
   PAGES
=========================== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px var(--container-pad);
}

.page-content h1 { font-size: 42px; font-weight: 400; letter-spacing: -1px; margin-bottom: 24px; }
.page-content h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.5px; margin: 40px 0 16px; }
.page-content p { margin-bottom: 20px; color: var(--fg-muted); line-height: 1.7; }
.page-content ul { margin: 0 0 20px 24px; list-style: disc; }
.page-content ul li { margin-bottom: 8px; color: var(--fg-muted); }

/* ===========================
   WORDPRESS BASICS
=========================== */
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--fg-light); text-align: center; margin-top: 8px; }

/* WooCommerce misc */
.woocommerce-notices-wrapper { padding: 0 var(--container-pad); }
.woocommerce form .form-row label { font-size: 14px; font-weight: 500; color: var(--fg); margin-bottom: 6px; display: block; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  width: 100%;
  font-size: 15px;
  background: var(--white);
  color: var(--fg);
  transition: border-color 0.2s;
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--fg); outline: none; }
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--fg) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  padding: 11px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer;
  transition: background 0.2s !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--accent-hover) !important;
  color: var(--white) !important;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-badges { display: none; }
}

@media (max-width: 768px) {
  .site-header { top: 8px; }
  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .primary-nav.is-open ul { flex-direction: column; gap: 8px; text-align: center; }
  .primary-nav.is-open ul li a { font-size: 24px; padding: 12px 24px; }
  .menu-toggle { display: flex; }
  .hero-section { min-height: 60vh; }
  .hero-title { letter-spacing: -1px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-brand p { max-width: none; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ADX HERO PRODUCT CAROUSEL
   Rotating product showcase on the right of the hero (coverflow style).
   ========================================================================== */

/* Hero becomes an explicit 2-column grid: copy + badges on the left,
   rotating product carousel on the right. */
.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
        "adxCopy adxCarousel"
        "adxBadges adxCarousel";
    align-content: center;
    justify-items: start;
    column-gap: 32px;
    row-gap: 28px;
}

.hero-content { grid-area: adxCopy; }

/* Trust badges move under the hero copy and lay out as a wrapping row. */
.hero-badges {
    grid-area: adxBadges;
    position: static;
    top: auto;
    right: auto;
    transform: none;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 8px;
    max-width: 100%;
}

.hero-badges .hero-badge {
    padding: 8px 12px;
    font-size: 12px;
}

.hero-carousel {
    grid-area: adxCarousel;
    position: relative;
    z-index: 1;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.hero-carousel-stage {
    position: relative;
    width: 100%;
    height: 300px;
}

.hero-carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(160px, 34%, 250px);
    aspect-ratio: 1 / 1;
    margin: 0;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: #0b0b0d;
    text-decoration: none;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.62);
    box-shadow: 0 6px 18px rgba(31, 42, 55, 0.10);
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-carousel-item .hero-carousel-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-item.is-prev,
.hero-carousel-item.is-next {
    opacity: 0.62;
    z-index: 1;
    pointer-events: auto;
    box-shadow: 0 10px 26px rgba(31, 42, 55, 0.14);
}

.hero-carousel-item.is-prev { transform: translate(-140%, -50%) scale(0.72); }
.hero-carousel-item.is-next { transform: translate(40%, -50%) scale(0.72); }

.hero-carousel-item.is-active {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 26px 60px rgba(31, 42, 55, 0.28);
}

.hero-carousel-item.is-active:hover { transform: translate(-50%, -50%) scale(1.03); }

.hero-carousel-item:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 4px;
}

.hero-carousel-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    text-align: center;
}

.hero-carousel-name {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg);
    opacity: 0.72;
}

.hero-carousel-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
}

.hero-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-carousel-dot {
    position: relative;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 42, 55, 0.22);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-carousel-dot:hover { background: rgba(31, 42, 55, 0.45); }

.hero-carousel-dot.is-active {
    background: var(--fg);
    transform: scale(1.4);
}

.hero-carousel-dot .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --- Tablet / mobile: stack the carousel under the hero copy --- */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "adxCopy"
            "adxCarousel"
            "adxBadges";
        justify-items: stretch;
        row-gap: 36px;
    }

    /* Keep the theme's original behaviour: badges are desktop-only. */
    .hero-badges { display: none; }
    .hero-carousel-stage { height: 270px; }
    .hero-carousel-item { width: clamp(150px, 30%, 230px); }
}

@media (max-width: 600px) {
    .hero-carousel-stage { height: 215px; }
    .hero-carousel-item { width: clamp(130px, 38%, 185px); border-radius: 18px; }
}

/* --- Respect reduced-motion preferences --- */
@media (prefers-reduced-motion: reduce) {
    .hero-carousel-item { transition: opacity 0.2s linear; }
    .hero-carousel-item.is-active:hover { transform: translate(-50%, -50%) scale(1); }
}


/* ==========================================================================
   ADX TARGETED FIXES
   ========================================================================== */

/* --- Partner page: centre the page title so it matches the centred content --- */
body.page-id-316 .page-content > h1 {
    text-align: center;
}

/* --- WooCommerce sale badge -------------------------------------------------
   The badge sat at top/right 0 and was clipped by the card's rounded corner
   and overflow:hidden. Inset it, make it a true circle, and use brand blue.
   -------------------------------------------------------------------------- */
.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale,
.woocommerce div.product span.onsale {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    bottom: auto;
    z-index: 10;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background-color: #1d4ed8;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

@media (max-width: 600px) {
    .woocommerce span.onsale,
    .woocommerce ul.products li.product span.onsale,
    .woocommerce div.product span.onsale {
        top: 10px;
        right: 10px;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 11px;
    }
}
