/**
 * Shop Redesign (preview) — content only; Theme Builder header/footer stay in place.
 * Source mock: alive4healthshopredesign.html
 */

.a4h-sr {
  --coral: #e0533c;
  --coral-dark: #c6412b;
  --coral-soft: #fbe9e4;
  --teal: #33b4a2;
  --teal-dark: #2aa093;
  --navy: #2b2f6b;
  --redlabel: #c9342a;
  --ink: #2b2b2b;
  --muted: #6c7075;
  --gray-bg: #ececec;
  --gray-soft: #f6f6f6;
  --line: #e4e4e4;
  --shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.22);
  --radius: 16px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Theme Builder zeroes #page-container padding — clear fixed header stack */
body.a4h-shop-redesign-page {
  --a4h-sr-header-offset: 140px;
}

body.admin-bar.a4h-shop-redesign-page {
  --a4h-sr-header-offset: 172px;
}

body.a4h-shop-redesign-page header.et-l--header {
  z-index: 100060;
}

body.a4h-shop-redesign-page .a4h-annivbar {
  z-index: 100061;
}

/* Skip paint work for below-fold sections until near viewport */
.a4h-sr .a4h-sr-defer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

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

.a4h-sr a {
  color: inherit;
  text-decoration: none;
}

.a4h-sr img {
  max-width: 100%;
  height: auto;
  display: block;
}

.a4h-sr .wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 26px;
}

.a4h-sr section {
  scroll-margin-top: 120px;
}

#a4h-sr-toolbar {
  scroll-margin-top: calc(var(--a4h-sr-header-offset, 120px) + 12px);
}

/* Hero */
.a4h-sr .hero {
  position: relative;
  z-index: 1;
  padding-top: var(--a4h-sr-header-offset, 0px);
  background: linear-gradient(180deg, #e9f0dd 0%, #d8e7c6 100%);
  text-align: center;
  overflow: visible; /* allow search suggestions to paint over next section */
}

.a4h-sr .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(150, 175, 110, 0.35));
  pointer-events: none;
  z-index: 0;
}

.a4h-sr .hero .wrap {
  position: relative;
  padding: 34px 26px 40px;
  z-index: 2;
}

.a4h-sr .hero h1 {
  font-size: clamp(25px, 3.4vw, 38px);
  color: #2b3524;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 8px;
}

.a4h-sr .hero p {
  color: #4a5340;
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 18px;
}

.a4h-sr .search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.6px solid var(--coral);
  border-radius: 999px;
  padding: 5px 5px 5px 22px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.3);
  position: relative;
}

.a4h-sr form.search.a4h-sr-search--suggest {
  z-index: 50;
}

.a4h-sr-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35);
  max-height: min(420px, 70vh);
  overflow: auto;
  text-align: left;
  z-index: 60;
  padding: 8px 0;
}

/* Body-portal panel (escapes hero / Divi stacking contexts) */
.a4h-sr-suggest.a4h-sr-suggest--portal {
  position: fixed;
  left: 0;
  right: auto;
  top: 0;
  width: min(680px, calc(100vw - 24px));
  z-index: 99999;
  margin: 0;
}

.a4h-sr-suggest__label {
  padding: 8px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.a4h-sr-suggest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  transition: background 0.15s;
}

.a4h-sr-suggest__item:hover,
.a4h-sr-suggest__item:focus {
  background: var(--coral-soft);
  outline: none;
}

.a4h-sr-suggest__thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--gray-soft);
  flex: none;
}

.a4h-sr-suggest__thumb--empty {
  display: block;
}

.a4h-sr-suggest__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.a4h-sr-suggest__title {
  font-size: 14px;
  font-weight: 600;
  color: #2f3438;
  line-height: 1.3;
}

.a4h-sr-suggest__sub {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.a4h-sr-suggest__all {
  display: block;
  margin-top: 4px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--coral);
}

.a4h-sr-suggest__all:hover {
  background: #fff8f6;
}

.a4h-sr-suggest__empty {
  padding: 16px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.a4h-sr .search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14.5px;
  color: #3a3f43;
  background: transparent;
  min-width: 0;
}

.a4h-sr .search input::placeholder {
  color: #9aa0a4;
}

.a4h-sr .search .go {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--coral);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #fff;
  transition: 0.2s;
}

.a4h-sr .search .go:hover {
  background: var(--coral-dark);
}

/* Sections */
.a4h-sr .section-pad {
  position: relative;
  z-index: 1;
  padding: 52px 0;
}

.a4h-sr .section-pad.gray {
  background: var(--gray-bg);
}

.a4h-sr .section-pad.soft {
  background: var(--gray-soft);
}

.a4h-sr .sec-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.a4h-sr .sec-top h2 {
  font-size: clamp(21px, 2.7vw, 29px);
  color: #2f3438;
  font-weight: 700;
  margin: 0;
}

.a4h-sr .sec-top .seeall {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.a4h-sr .sec-top .seeall:hover {
  color: var(--coral);
}

.a4h-sr .sec-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 30px;
}

.a4h-sr .sec-center .kick {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
}

.a4h-sr .sec-center h2 {
  font-size: clamp(22px, 2.9vw, 32px);
  color: #2f3438;
  margin: 8px 0;
  font-weight: 700;
}

.a4h-sr .sec-center p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Toolbar */
.a4h-sr .toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.a4h-sr .count-txt {
  color: var(--muted);
  font-size: 14px;
}

.a4h-sr .count-txt .woocommerce-result-count {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.a4h-sr .woocommerce-notices-wrapper {
  margin-bottom: 16px;
}

.a4h-sr .woocommerce-notices-wrapper .woocommerce-message,
.a4h-sr .woocommerce-notices-wrapper .woocommerce-info,
.a4h-sr .woocommerce-notices-wrapper .woocommerce-error {
  margin: 0 0 12px;
}

.a4h-sr .chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-left: auto;
}

.a4h-sr .chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #3a3f43;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.18s;
  font-family: inherit;
  line-height: 1.2;
}

.a4h-sr .chip:hover {
  border-color: var(--coral);
}

.a4h-sr .chip.active {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.a4h-sr .sortwrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.a4h-sr select.sort {
  font-family: inherit;
  font-size: 13.5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  color: #2f3438;
  cursor: pointer;
}

/* Product grid */
.a4h-sr .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.a4h-sr .pcard {
  background: #fff;
  border: 1px solid #ededed;
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  transition: 0.25s;
  position: relative;
  margin: 0;
}

.a4h-sr .pcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.a4h-sr .pcard .cat {
  text-align: center;
  color: #4a5056;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  flex: none;
}

.a4h-sr .thumb {
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  flex: none;
}

.a4h-sr .thumb a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.a4h-sr .thumb img {
  max-height: 86%;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.a4h-sr .sale {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  background: var(--teal);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
}

.a4h-sr .pcard h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #2f3438 !important;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  flex: none;
  min-height: 3.9em; /* ~3 lines — keeps cards even before ATC push */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.a4h-sr .pcard h3 a,
.a4h-sr .pcard h3 a:visited {
  color: #2f3438 !important;
  text-decoration: none !important;
}

.a4h-sr .pcard h3 a:hover {
  color: var(--coral) !important;
}

.a4h-sr .stars {
  color: #2f3438;
  letter-spacing: 1px;
  font-size: 13px;
  margin: 8px 0 6px;
  flex: none;
}

.a4h-sr .price {
  font-size: 14.5px;
  color: #2f3438;
  line-height: 1.45;
  flex: none;
  margin-bottom: 0;
}

.a4h-sr .price .now {
  font-weight: 700;
}

.a4h-sr .price .was {
  color: #9aa0a4;
  text-decoration: line-through;
  margin-right: 6px;
}

.a4h-sr .price .sub {
  color: var(--muted);
  font-weight: 400;
  display: inline;
}

.a4h-sr .add,
.a4h-sr .pcard .button,
.a4h-sr .pcard a.button,
.a4h-sr .pcard a.add_to_cart_button,
.a4h-sr .pcard a.product_type_simple,
.a4h-sr .pcard a.product_type_variable,
.a4h-sr .pcard a.product_type_subscription,
.a4h-sr .pcard a.product_type_variable-subscription {
  margin-top: auto !important; /* pin ATC to card bottom */
  margin-bottom: 0 !important;
  border: none;
  background: var(--coral) !important;
  color: #fff !important;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px !important;
  border-radius: 999px !important;
  cursor: pointer;
  transition: 0.2s;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  width: 100%;
  box-shadow: none !important;
  flex: none;
}

.a4h-sr .add:hover,
.a4h-sr .pcard .button:hover,
.a4h-sr .pcard a.add_to_cart_button:hover {
  background: var(--coral-dark) !important;
}

/* Pagination */
.a4h-sr .pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.a4h-sr .pager a,
.a4h-sr .pager span,
.a4h-sr .pager .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #3a3f43;
  transition: 0.18s;
}

.a4h-sr .pager a:hover,
.a4h-sr .pager .page-numbers:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.a4h-sr .pager .current,
.a4h-sr .pager a.active,
.a4h-sr .pager span.page-numbers.current {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.a4h-sr .pager .dots {
  border: none;
  background: transparent;
  pointer-events: none;
  color: var(--muted);
}

/* AJAX catalog loading skeleton */
.a4h-sr-skeleton-grid {
  width: 100%;
}

.a4h-sr-skeleton-card {
  min-height: 320px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eceff1 0%, #f5f7f8 45%, #eceff1 90%);
  background-size: 200% 100%;
  animation: a4h-sr-shimmer 1.2s ease-in-out infinite;
}

.a4h-sr-catalog--loading .a4h-sr-catalog__grid {
  opacity: 0.85;
}

.a4h-sr-catalog__pagination {
  margin-top: 28px;
}

@keyframes a4h-sr-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Native WooCommerce pagination inside redesign */
.a4h-sr .woocommerce-pagination-wrapper .woocommerce-pagination {
  margin: 0;
}

.a4h-sr .woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.a4h-sr .woocommerce-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.a4h-sr .woocommerce-pagination ul.page-numbers a,
.a4h-sr .woocommerce-pagination ul.page-numbers span {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #3a3f43;
  transition: 0.18s;
  text-decoration: none;
}

.a4h-sr .woocommerce-pagination ul.page-numbers a:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.a4h-sr .woocommerce-pagination ul.page-numbers span.current {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.a4h-sr .pcard .added_to_cart {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  text-align: center;
}

.a4h-sr .pcard .button.loading::after,
.a4h-sr .pcard a.button.loading::after {
  display: inline-block;
}

/* Category tiles */
.a4h-sr .cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.a4h-sr .cat-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1 / 0.92;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  cursor: pointer;
  transition: 0.25s;
}

.a4h-sr .cat-tile:hover {
  transform: translateY(-4px);
}

.a4h-sr .cat-tile span {
  position: relative;
  font-weight: 600;
  font-size: 17px;
  z-index: 1;
}

.a4h-sr .cat-tile .arw {
  position: relative;
  margin-left: auto;
  z-index: 1;
  flex: none;
}

.a4h-sr .cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.42));
}

/* Testimonials */
.a4h-sr .tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.a4h-sr .tcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.a4h-sr .tcard .stars {
  color: var(--coral);
  font-size: 15px;
  margin: 0;
}

.a4h-sr .tcard p {
  color: #3a4147;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.a4h-sr .tperson {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.a4h-sr .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: none;
}

.a4h-sr .tperson b {
  font-size: 14px;
  display: block;
}

.a4h-sr .tperson small {
  color: var(--muted);
  font-size: 12.5px;
}

/* Quiz band */
.a4h-sr .band {
  background: var(--coral);
  color: #fff;
  border-radius: 20px;
  padding: 44px 42px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.a4h-sr .band h2 {
  font-size: clamp(23px, 3vw, 33px);
  color: #fff;
  margin: 0 0 8px;
  font-weight: 700;
}

.a4h-sr .band p {
  color: #ffe6df;
  max-width: 520px;
  margin: 0;
}

.a4h-sr .btn-white {
  background: #fff;
  color: var(--coral);
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  display: inline-block;
}

.a4h-sr .btn-white:hover {
  background: #fff4f0;
  color: var(--coral-dark);
}

/* FAQ */
.a4h-sr .faq {
  max-width: 820px;
  margin: 0 auto;
}

.a4h-sr .qa {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.a4h-sr .qa summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: #2f3438;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.a4h-sr .qa summary::-webkit-details-marker {
  display: none;
}

.a4h-sr .qa summary .pm {
  color: var(--coral);
  font-size: 22px;
  transition: 0.2s;
  line-height: 1;
}

.a4h-sr .qa[open] summary .pm {
  transform: rotate(45deg);
}

.a4h-sr .qa .ans {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.a4h-sr .note {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 26px 28px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.a4h-sr .empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .a4h-sr .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .a4h-sr .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .a4h-sr .tgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body.a4h-shop-redesign-page {
    --a4h-sr-header-offset: 196px;
  }

  body.admin-bar.a4h-shop-redesign-page {
    --a4h-sr-header-offset: 228px;
  }

  .a4h-sr .wrap {
    padding: 0 16px;
  }
  .a4h-sr .hero .wrap {
    padding: 28px 16px 32px;
  }
  .a4h-sr .section-pad {
    padding: 36px 0;
  }
  .a4h-sr .grid,
  .a4h-sr .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .a4h-sr .pcard {
    padding: 14px 12px 16px;
  }
  .a4h-sr .pcard h3 {
    font-size: 13px;
    min-height: 3.9em;
  }
  .a4h-sr .pcard .cat {
    font-size: 13px;
  }
  .a4h-sr .price {
    font-size: 13px;
  }
  .a4h-sr .add,
  .a4h-sr .pcard .button,
  .a4h-sr .pcard a.add_to_cart_button {
    font-size: 13px;
    padding: 10px !important;
  }
  .a4h-sr .toolbar {
    gap: 12px;
  }
  .a4h-sr .chips {
    margin-left: 0;
    width: 100%;
    order: 3;
  }
  .a4h-sr .sortwrap {
    width: 100%;
  }
  .a4h-sr .sortwrap select.sort {
    flex: 1;
    width: 100%;
  }
  .a4h-sr .band {
    padding: 28px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .a4h-sr .btn-white {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
  .a4h-sr .search {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .a4h-sr .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .a4h-sr .cat-grid {
    grid-template-columns: 1fr;
  }
  .a4h-sr .pcard h3 {
    min-height: 0;
    -webkit-line-clamp: 4;
  }
  .a4h-sr .hero h1 {
    font-size: 24px;
  }
  .a4h-sr .chip {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}
