/* ════════════════════════════════════════
   WOOPW HTML THEME — RESPONSIVE
   Mobile-first enhancements for all pages
════════════════════════════════════════ */

/* ── Mobile menu toggle (hidden on desktop) ── */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}

.mobile-menu-toggle:hover {
  border-color: var(--teal);
}

.mobile-menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark-50);
  z-index: 250;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Lock on <html> only: overflow on <body> would make it a scroll container and unstick the header. */
html.nav-scroll-locked {
  overflow: hidden;
}

body.nav-open .mobile-nav-overlay {
  touch-action: none;
}

body.nav-open .main-nav {
  overscroll-behavior: contain;
}

body.nav-open .mobile-nav-overlay {
  display: block;
  opacity: 1;
}

body.nav-open .mobile-menu-toggle .mobile-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .mobile-menu-toggle .mobile-menu-bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .mobile-menu-toggle .mobile-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer header/footer (hidden on desktop) */
.mobile-nav-header,
.mobile-nav-footer,
.mobile-nav-cta {
  display: none;
}

.mobile-nav-body {
  display: contents;
}

/* ── Tablet & below (1024px) ── */
@media (max-width: 1024px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  /* Without clip support (iOS < 16), overflow on <body> makes it a scroll container and breaks the sticky header. */
  @supports not (overflow-x: clip) {
    body {
      overflow-x: visible;
    }
  }

  body.search-open .site-header {
    z-index: 1000 !important;
  }

  body.search-open .header-search-dropdown {
    z-index: 5;
  }

  /* iOS Safari paints composited page layers (animated hero) above a non-composited sticky header.
     Promote the header without transform, which would trap the fixed mobile drawer inside it. */
  .site-header {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  body.search-open .header-search-dropdown {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  body.search-open .hero-floating-stat {
    animation: none;
  }

  .utility-bar,
  .site-header,
  .site-main,
  .hero,
  .condition-hero,
  .page-default-hero {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .container,
  .utility-bar .container,
  .site-header .container {
    max-width: 100%;
    min-width: 0;
  }

  html body .site-header,
  html body.mobile-header-fixed .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 240;
  }

  html body.mobile-header-fixed {
    padding-top: 0;
  }

  .header-inner {
    gap: 10px;
    padding: 12px 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .logo,
  .logo--image,
  .site-header .custom-logo-link {
    min-width: 0;
    max-width: min(168px, 52vw);
    overflow: visible;
  }

  .site-header .custom-logo,
  .site-header .logo img,
  .site-header .logo--image img {
    display: block;
    width: auto;
    height: auto;
    max-height: var(--pm-header-logo-max-height, auto);
    max-width: var(--pm-header-logo-max-width, auto);
    object-fit: contain;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .header-actions {
    order: 4;
    gap: 8px;
    min-width: 0;
  }

  .header-actions .icon-btn,
  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 92vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: var(--white);
    box-shadow: -8px 0 40px var(--dark-15);
    z-index: 300;
    overflow: hidden;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--grey-200);
    background: var(--white);
    flex-shrink: 0;
  }

  .mobile-nav-logo {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .mobile-nav-logo .logo {
    max-width: 168px;
  }

  .mobile-nav-logo .logo-img,
  .mobile-nav-logo .custom-logo,
  .mobile-nav-logo img {
    display: block;
    width: auto;
    max-width: 168px;
    max-height: 40px;
    height: auto;
  }

  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
  }

  .mobile-nav-close:hover {
    border-color: var(--teal);
    color: var(--teal);
  }

  .mobile-nav-body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    padding-bottom: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-nav-body::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav-cta {
    position: relative;
    z-index: 1;
    display: block;
    padding: 16px 20px;
    border-top: 1px solid var(--grey-200);
    background: var(--white);
    box-shadow: 0 -10px 24px -14px var(--dark-20);
    flex-shrink: 0;
  }

  .mobile-nav-cta + .mobile-nav-footer {
    box-shadow: none;
  }

  .mobile-nav-shop-all {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
  }

  .mobile-nav-footer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--grey-200);
    background: var(--off-white);
    box-shadow: 0 -10px 24px -14px var(--dark-20);
    flex-shrink: 0;
  }

  .mobile-nav-account,
  .mobile-nav-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 56px;
    padding: 11px 10px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--grey-200);
    transition: border-color var(--transition), background var(--transition);
  }

  .mobile-nav-account svg,
  .mobile-nav-cart svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
  }

  .mobile-nav-account:hover,
  .mobile-nav-cart:hover {
    border-color: var(--teal);
    color: var(--teal);
  }

  .mobile-nav-cart .cart-count {
    position: static;
    width: auto;
    min-width: 20px;
    height: 20px;
    margin-left: 2px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
  }

  .mobile-nav-cart .cart-count.is-empty {
    display: none;
  }

  .mobile-menu-toggle {
    z-index: 301;
  }

  body.nav-open .mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .nav-item {
    position: relative;
    border-bottom: 1px solid var(--grey-100);
  }

  .nav-item > a {
    padding: 16px 24px;
    font-size: 15px;
    justify-content: space-between;
  }

  .nav-item.is-active > a {
    background: var(--teal-subtle);
  }

  .nav-item.is-active > a::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    border-radius: 0 2px 2px 0;
  }

  .mega-menu,
  .mega-menu.mega-wide {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--off-white);
    --mega-scroll-max: min(55vh, 420px);
    max-height: none;
    overflow: visible;
  }

  .nav-item.open .mega-menu {
    display: block;
    transform: none;
  }

  /* The drawer body is the only scroll area on mobile; nested scroll boxes trap swipes and hide the end of the menu behind the CTA bar. */
  .mega-main,
  .mega-main.mega-services {
    grid-template-columns: 1fr;
    padding: 16px 20px;
    gap: 20px;
    max-height: none;
    overflow: visible;
  }

  .mega-featured {
    border-left: none;
    border-top: 1px solid var(--grey-200);
    border-radius: 0;
    padding: 20px 20px 24px;
    max-height: none;
    overflow: visible;
  }

  .mega-overlay {
    display: none !important;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header p {
    font-size: 15px;
  }

  .hero {
    padding: clamp(48px, 8vw, 80px) 0;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-trust {
    gap: 16px;
  }

  .trust-sep {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .footer-payments {
    justify-content: center;
  }

  .cta-banner .btn-primary,
  .cta-banner .btn-white,
  .cta-banner .btn-outline-white {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* Inner pages */
  .condition-hero-grid,
  .product-hero-grid,
  .service-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-right-col,
  .service-hero-image,
  .mission-image,
  .brand-image {
    display: none;
  }

  .calc-grid,
  .about-grid,
  .contact-grid,
  .checkout-grid,
  .consult-grid,
  .mission-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .checkout-grid .order-summary,
  .consult-sidebar,
  .service-sidebar,
  .contact-sidebar {
    position: static;
  }

  .product-gallery {
    position: static;
  }

  .select-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .how-steps {
    flex-wrap: wrap;
    gap: 20px;
  }

  .how-step {
    flex: 0 0 calc(33.333% - 14px);
  }

  .how-step::after {
    display: none;
  }
}

/* ── Mobile (768px) ── */
@media (max-width: 768px) {
  .utility-bar {
    display: none;
  }

  .header-actions .header-cta-btn {
    display: none;
  }

  /* Hide search only; keep account + cart visible */
  .header-actions .icon-btn-search {
    display: none;
  }

  .header-actions .icon-btn-search.pm-show-mobile {
    display: none !important;
  }

  .header-search-dropdown {
    padding: 16px 0;
  }

  .header-search-dropdown .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-search-dropdown .als-wrap,
  .header-search-dropdown .als-panel {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    right: auto;
    left: auto;
    transform: none;
  }

  .header-search-dropdown .als-form {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }

  .header-search-dropdown .als-field {
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .header-search-dropdown .als-submit {
    width: auto;
    min-width: 80px;
    padding: 0 16px;
  }

  .header-search-dropdown .als-suggestions {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
  }

  .blog-page .blog-search-toolbar .als-wrap,
  .blog-page .blog-search-toolbar .als-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    right: auto;
    left: auto;
    transform: none;
  }

  .blog-page .blog-search-toolbar .als-form {
    flex-direction: row;
    align-items: stretch;
  }

  .blog-page .blog-search-toolbar .als-submit {
    width: auto;
    min-width: 80px;
  }

  .header-actions .icon-btn-account,
  .header-actions .cart-btn {
    display: none;
  }

  .logo {
    font-size: 17px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .hero-content {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-white,
  .hero-ctas .btn-outline-white {
    justify-content: center;
    text-align: center;
  }

  .hero-visual {
    display: flex;
    width: 100%;
    max-width: 100%;
  }

  .hero-card {
    padding: 24px 20px;
  }

  .hero-card h3 {
    font-size: 20px;
  }

  .hero-card-process {
    gap: 8px;
  }

  .process-step {
    padding: 12px 6px;
  }

  .process-step-label {
    font-size: 10px;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .trust-features {
    display: flex;
    grid-template-columns: none;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .trust-features::-webkit-scrollbar {
    display: none;
  }

  .trust-feature {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 16px 8px;
  }

  .trust-carousel-arrows {
    display: none;
  }

  .product-grid,
  .category-grid,
  .reviews-grid,
  .blog-grid,
  .related-grid,
  .other-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .reviews-grid {
    display: flex !important;
    grid-template-columns: none;
    gap: 16px;
    margin: 0 calc(-1 * clamp(20px, 4vw, 48px)) 0;
    padding: 4px clamp(20px, 4vw, 48px) 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-left: clamp(20px, 4vw, 48px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .reviews-grid::-webkit-scrollbar {
    display: none;
  }

  .reviews-grid .review-card {
    flex: 0 0 calc(100vw - (2 * clamp(20px, 4vw, 48px))) !important;
    width: calc(100vw - (2 * clamp(20px, 4vw, 48px))) !important;
    max-width: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 0;
  }

  .mobile-carousel-arrows {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 14px 0 36px;
  }

  .mobile-carousel-arrows.trust-carousel-arrows {
    display: none;
  }

  .team-carousel-arrows {
    margin-bottom: 0;
  }

  .video-stories-section .video-scroll {
    gap: 0;
    margin: 0;
    padding: 0 0 8px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
  }

  .video-stories-section .video-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    aspect-ratio: 3/4;
    transform: scale(0.88);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .video-stories-section .video-card:hover {
    transform: scale(0.88);
  }

  .team-section .team-photos {
    display: flex;
    grid-template-columns: none;
    grid-template-rows: none;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    max-width: none;
    justify-content: flex-start;
    gap: 0;
    margin: 28px 0 0;
    padding: 0 0 10px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .team-section .team-photos.team-photos--count-1,
  .team-section .team-photos.team-photos--count-2 {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .team-section .team-photos::-webkit-scrollbar {
    display: none;
  }

  .team-section .team-photo {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1/1;
    max-height: 420px;
    background: var(--grey-200);
    overflow: hidden;
    border-radius: 24px;
    clip-path: inset(0 round 24px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .team-section .team-photo-img,
  .team-section .team-photo-placeholder {
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
  }

  .team-section .team-photo-img {
    background-size: cover;
    background-position: center top;
  }

  .team-section .team-photo-overlay {
    padding: 18px 20px;
  }

  .team-section .team-photo-overlay strong {
    font-size: 16px;
  }

  .team-section .team-photo-overlay span {
    font-size: 13px;
  }

  .team-section .team-content {
    text-align: center;
  }

  .team-section .team-content .section-eyebrow {
    justify-content: center;
  }

  .team-section .team-description {
    margin-left: auto;
    margin-right: auto;
  }

  .team-section .team-values {
    align-items: center;
  }

  .team-section .team-value {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
  }

  .team-section .team-value-icon {
    margin-top: 0;
  }

  .team-section .team-content .btn-primary {
    display: inline-flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer {
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand .logo,
  .footer-brand .custom-logo-link {
    justify-content: center;
  }

  .footer-brand .custom-logo,
  .footer-brand .logo--image img,
  .footer-brand .logo .logo-img,
  .footer-brand .custom-logo-link img {
    max-height: var(--pm-footer-logo-max-height, 48px) !important;
    max-width: var(--pm-footer-logo-max-width, 220px) !important;
    width: auto !important;
    height: auto !important;
  }

  .footer-brand p {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-col ul {
    padding: 0;
  }

  .pharmacy-details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    text-align: center;
  }

  .footer-pharmacy {
    text-align: center;
  }

  .team-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .wl-content {
    text-align: center;
  }

  .wl-content .section-eyebrow {
    justify-content: center;
  }

  .wl-content > p {
    margin-left: auto;
    margin-right: auto;
  }

  .wl-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .wl-stat {
    padding: 16px 10px;
  }

  .wl-stat-num {
    font-size: 26px;
  }

  .wl-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
    justify-items: center;
  }

  .wl-feature-tag {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 11px 16px;
    font-size: 14px;
  }

  .wl-content .btn-primary {
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    padding: 14px 18px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
  }

  .wl-calculator {
    margin-top: 28px;
    border-radius: 18px;
  }

  .calc-header {
    padding: 18px 20px;
    align-items: center;
  }

  .calc-header-icon {
    width: 44px;
    height: 44px;
  }

  .calc-header h3 {
    font-size: 20px;
    line-height: 1.15;
  }

  .calc-header p {
    font-size: 14px;
    line-height: 1.45;
  }

  .calc-embed-area {
    min-height: 0;
    padding: 0;
    background: var(--white);
    overflow: hidden;
  }

  .calc-embed-area iframe {
    height: 520px;
    min-height: 0;
  }

  .embed-placeholder {
    width: 100%;
    padding: 18px;
    border: 1px dashed var(--grey-200);
    border-radius: 14px;
    background: var(--off-white);
  }

  .embed-placeholder svg,
  .embed-placeholder code {
    display: none;
  }

  .faq-question {
    padding: 12px 14px;
    font-size: 14px;
    gap: 10px;
  }

  .faq-toggle {
    width: 22px;
    height: 22px;
  }

  .faq-toggle svg {
    width: 11px;
    height: 11px;
  }

  .faq-answer {
    padding: 0 14px;
    font-size: 13px;
  }

  .faq-answer__inner {
    padding-bottom: 12px;
  }

  /* Page heroes */
  .contact-hero,
  .about-hero,
  .service-hero,
  .conditions-hero,
  .thankyou-hero {
    padding: clamp(40px, 6vw, 56px) 0;
  }

  .contact-methods .container {
    display: block;
  }

  .contact-methods-track .contact-method {
    border-right: none;
    border-bottom: none;
  }

  .contact-method:last-child {
    border-bottom: none;
  }

  .cf-row,
  .form-row,
  .co-row {
    grid-template-columns: 1fr;
  }

  .info-bar-item {
    border-right: none;
    border-bottom: none;
  }

  .tabs-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 12px 16px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Checkout steps: see checkout.css */

  .step-indicator {
    gap: 4px;
    overflow-x: auto;
  }

  .step-ind-label {
    font-size: 10px;
  }

  .radio-group {
    flex-direction: column;
  }

  .how-step {
    flex: 0 0 calc(50% - 10px);
  }

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

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

  .expect-grid,
  .referral-grid {
    grid-template-columns: 1fr;
  }

  .sticky-cta-text span {
    display: none;
  }

  .sticky-cta .container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .stats-bar .container {
    display: block;
    overflow: hidden;
    padding-bottom: 20px;
  }

  .stats-bar-track {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    width: max-content;
    overflow: visible;
    animation: stats-marquee 14s linear infinite;
  }

  .stats-bar-set {
    gap: 28px;
    padding-right: 28px;
    justify-content: flex-start;
  }

  .stats-bar-set--clone {
    display: flex;
  }

  .stats-bar .stat-block {
    flex: 0 0 auto;
    min-width: 140px;
  }

  .stats-bar-arrows {
    display: none;
  }
}

/* ── Small mobile (480px) ── */
@media (max-width: 480px) {
  .container {
    padding: 0 24px;
  }

  .calc-embed-area iframe {
    height: 540px;
  }

  .utility-bar .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    text-align: center;
  }

  .utility-bar span,
  .utility-bar a {
    font-size: 12px;
    line-height: 1.35;
  }

  .utility-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  :root {
    --section-pad: clamp(40px, 10vw, 60px);
  }

  .pharmacy-details-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    gap: 6px;
  }

  .logo,
  .logo--image,
  .site-header .custom-logo-link {
    max-width: min(150px, 48vw);
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .icon-btn,
  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 10px;
  }

  .header-actions .icon-btn svg,
  .mobile-menu-toggle svg {
    width: 17px;
    height: 17px;
  }

  .mobile-nav-footer {
    gap: 8px;
    padding: 12px 14px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .mobile-nav-account,
  .mobile-nav-cart {
    font-size: 12px;
    gap: 6px;
    min-height: 52px;
  }

  .weight-loss-section {
    padding: 40px 0;
  }

  .wl-stats {
    grid-template-columns: 1fr;
  }

  .wl-stat {
    padding: 16px 14px;
  }

  .wl-content .btn-primary {
    font-size: 13px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .calc-header {
    gap: 12px;
    padding: 16px 18px;
  }

  .calc-header h3 {
    font-size: 18px;
  }

  .calc-header p {
    font-size: 13px;
  }

  .hero-card-categories {
    flex-wrap: wrap;
  }

  .cat-tag {
    font-size: 12px;
    padding: 6px 12px;
  }

  .team-grid-full,
  .team-photos {
    grid-template-columns: 1fr;
  }

  .how-step {
    flex: 0 0 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .sticky-cta .container {
    flex-direction: column;
    text-align: center;
  }

  .sticky-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .sticky-cta-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .contact-form-card,
  .checkout-form-card,
  .consult-form-card {
    padding: 24px 20px;
  }

  .condition-card,
  .service-card {
    padding: 20px;
  }
  .shop-section .product-card,
  .product-card {
    padding: 0;
  }

  .section-header h2 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .btn-primary,
  .btn-white,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
  }

  .mega-col a {
    padding: 10px;
  }

  .partners-grid {
    padding: 8px 0;
  }

  .partners-track {
    animation-duration: 22s;
  }

  .partners-set {
    gap: 36px;
    padding-right: 36px;
  }

  .partner-logo,
  img.partner-logo {
    height: 48px;
    max-height: 48px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .partners-track,
  .stats-bar-track { animation: none; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .trust-carousel-arrows {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 12px 0 0;
  }
}

/* ── Touch & accessibility ── */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover,
  .btn-white:hover,
  .product-card:hover,
  .category-card:hover {
    transform: none;
  }

  .nav-item > a,
  .icon-btn,
  .mobile-menu-toggle,
  .faq-question {
    min-height: 44px;
  }
}

/* ── Prevent horizontal overflow ── */
img,
video,
iframe,
table {
  max-width: 100%;
  height: auto;
}

.site-main {
  overflow-x: clip;
}

/* Sticky mobile header below the WP admin bar (admin bar is fixed above 600px) */
@media (min-width: 601px) and (max-width: 782px) {
  html body.admin-bar .site-header {
    top: 46px !important;
  }
}
@media (min-width: 783px) and (max-width: 1024px) {
  html body.admin-bar .site-header {
    top: 32px !important;
  }
}

/* Mobile header order: logo … search, menu, account, cart */
@media (max-width: 1024px) {
  .site-header .header-actions {
    display: contents;
  }
  .site-header .header-inner > :first-child {
    margin-right: auto;
  }
  .site-header .header-actions .icon-btn-search {
    order: 3;
  }
  .site-header .mobile-menu-toggle {
    order: 4;
    margin-left: 0;
  }
  .site-header .header-actions .icon-btn-account {
    order: 5;
  }
  .site-header .header-actions .cart-btn {
    order: 6;
  }
  .site-header .header-actions .header-cta-btn {
    order: 7;
  }
}

/* Keep the scroll-to-top button out of the open mobile menu */
body.nav-open .scroll-to-top-btn,
body.nav-open .scroll-to-top-btn.is-visible {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Home: tighten the gap between the reviews / team carousels and their arrows */
@media (max-width: 768px) {
  body.home .reviews-section .reviews-grid {
    margin-bottom: 0 !important;
  }

  body.home .reviews-section .reviews-carousel-arrows {
    margin-top: 4px;
  }

  body.home .team-grid-layout > .team-carousel-arrows {
    margin-top: -58px;
  }
}