/*
Theme Name: Astra Child Shop Benessere 24
Description: Child theme WooCommerce ottimizzato per vendita consulenziale benessere
Author: Luca Napolitano
Template: astra
Version: 1.1.0
*/

:root {
  --hl-green: #78be20;
  --hl-green-dark: #5d9717;
  --hl-green-soft: #edf7df;
  --hl-green-faint: #f6fbee;
  --hl-text: #1f2937;
  --hl-text-soft: #5b6675;
  --hl-text-muted: #6b7280;
  --hl-bg: #f5f8f2;
  --hl-bg-soft: #f8faf6;
  --hl-white: #ffffff;
  --hl-border: rgba(31, 41, 55, 0.08);
  --hl-border-strong: rgba(31, 41, 55, 0.14);
  --hl-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.04);
  --hl-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
  --hl-shadow-lg: 0 28px 60px rgba(15, 23, 42, 0.08);
  --hl-radius: 24px;
  --hl-radius-md: 18px;
  --hl-radius-sm: 14px;
  --hl-dark: #1f2d3d;
  --hl-whatsapp: #1f6f43;
  --hl-max: 1180px;
}

html {
  overflow-x: hidden;
}

body {
  min-height: 100%;
  overflow-x: hidden;
}

/* =========================
   Header Astra Child SB24
   ========================= */

.sb24-skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 99999;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.sb24-skip-link:focus {
  left: 12px;
}

.sb24-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.sb24-main-header {
  background: rgba(255, 255, 255, 0.98);
}

.sb24-main-header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.sb24-brand {
  min-width: 0;
  display: flex;
  align-items: center;
}

.sb24-brand-logo .custom-logo-link,
.sb24-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sb24-brand-logo img.custom-logo,
.sb24-brand img {
  max-height: 58px;
  width: auto;
  height: auto;
}

.sb24-logo-fallback {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  color: #1f2937;
}

.sb24-desktop-nav {
  justify-self: center;
}

.sb24-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.sb24-nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb24-nav-list a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.sb24-nav-list a:hover,
.sb24-nav-list .current-menu-item > a,
.sb24-nav-list .current_page_item > a {
  color: #5d9717;
}

.sb24-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sb24-header-cart {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #1f2937;
  background: #f3f6f2;
  transition: all 0.25s ease;
  gap: 10px;
}

.sb24-header-cart em {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #78be20;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
}

.sb24-header-cart:hover {
  background: #eaf4de;
  color: #1f2937;
}

.sb24-header-whatsapp,
.sb24-mobile-whatsapp {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  background: #1f6f43;
  box-shadow: 0 12px 24px rgba(31, 111, 67, 0.18);
  transition: all 0.25s ease;
}

.sb24-header-whatsapp:hover,
.sb24-mobile-whatsapp:hover {
  background: #165735;
  color: #fff;
  transform: translateY(-1px);
}

.sb24-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: #f3f6f2;
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
}

.sb24-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #1f2937;
  margin: 4px auto;
  border-radius: 999px;
}

.sb24-mobile-nav {
  display: none;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  background: #fff;
}

.sb24-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 18px 0 12px;
  display: grid;
  gap: 8px;
}

.sb24-mobile-nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb24-mobile-nav-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 700;
  background: #f8faf6;
}

.sb24-mobile-extra-links {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.sb24-mobile-extra-links a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 700;
  background: #f3f6f2;
}

.sb24-mobile-whatsapp {
  width: 100%;
  margin: 10px 0 20px;
}

.admin-bar .sb24-site-header {
  top: 32px;
}

@media (max-width: 1200px) {
  .sb24-nav-list {
    gap: 16px;
  }

  .sb24-header-whatsapp {
    padding: 0 16px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .sb24-main-header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .sb24-desktop-nav,
  .sb24-header-cart,
  .sb24-header-whatsapp {
    display: none;
  }

  .sb24-menu-toggle {
    display: inline-block;
  }

  .sb24-mobile-nav:not([hidden]) {
    display: block;
  }
}

@media (max-width: 768px) {
  .sb24-main-header-inner {
    min-height: 74px;
  }

  .sb24-brand-logo img.custom-logo,
  .sb24-brand img {
    max-height: 46px;
  }

  .admin-bar .sb24-site-header {
    top: 46px;
  }
}

.site-content {
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

.hl-container,
.container-seo {
  width: min(var(--hl-max), calc(100% - 32px));
  margin: 0 auto;
}

.section-padding {
  padding: clamp(26px, 7vw, 20px) 0;
}

.bg-light {
  background: var(--hl-bg-soft);
}

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

.mb-50 {
  margin-bottom: 50px;
}

.title-accent {
  color: var(--hl-dark);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.subtitle-seo {
  color: var(--hl-text-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 760px;
  margin: 0 auto;
}

.btn-herbalife,
.btn-whatsapp,
.hl-whatsapp-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px !important;
  font-weight: 800 !important;
  text-decoration: none;
  border: 0 !important;
  transition: .25s ease;
}

.btn-herbalife,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.single_add_to_cart_button {
  background: var(--hl-green) !important;
  color: #fff !important;
}

.btn-herbalife:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.single_add_to_cart_button:hover {
  background: var(--hl-green-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-whatsapp,
.hl-whatsapp-btn {
  background: var(--hl-whatsapp);
  color: #fff;
}

.btn-whatsapp:hover,
.hl-whatsapp-btn:hover {
  background: #165735;
  color: #fff;
  transform: translateY(-1px);
}

.trust-bar {
  background: var(--hl-dark);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-seo {
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
}

.hero-btns a{
  color: #fff;
}

.hero-seo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 31, 39, 0.72) 0%, rgba(18, 31, 39, 0.48) 55%, rgba(18, 31, 39, 0.35) 100%);
}

.hero-seo .container-seo {
  position: relative;
  z-index: 1;
}

.hero-seo h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  margin-bottom: 18px;
  font-weight: 900;
  max-width: 11ch;
}

.hero-seo p {
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 650px;
  margin-bottom: 26px;
}

.grid-seo,
.grid-2,
.reviews-grid,
.faq-grid,
.footer-grid,
.hl-product-hero,
.hl-content-grid {
  display: grid;
  gap: 28px;
}

.grid-seo {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.card-seo,
.review-card,
.hl-product-gallery,
.hl-product-summary,
.hl-box,
.hl-side-card,
.hl-category-hero,
.hl-category-help__box {
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: var(--hl-radius);
  box-shadow: var(--hl-shadow-sm);
}

.card-seo {
  padding: 34px 28px;
  transition: .25s ease;
  text-align: left;
}

.card-seo:hover,
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hl-shadow);
}

.card-seo h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--hl-dark);
}

.card-seo p {
  color: var(--hl-text-soft);
  line-height: 1.75;
  margin-bottom: 14px;
}

.card-seo a {
  color: var(--hl-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.flash-alert {
  background: #fff7db;
  border: 1px solid #f2df97;
  color: #7a5a00;
  padding: 15px 18px;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.flash-alert strong {
  color: #b45309;
}

.rating-summary {
  margin-top: 16px;
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
}

.rating-text {
  color: var(--hl-text-soft);
  font-size: 0.92rem;
  margin-left: 10px;
  font-weight: 600;
}

.reviews-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card {
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-card.highlight {
  border-color: rgba(120, 190, 32, 0.3);
  background: #fbfef6;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.user-thumb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  background: #eee;
}

.user-name {
  font-weight: 800;
  color: var(--hl-dark);
  font-size: 1rem;
}

.user-goal {
  font-size: 0.76rem;
  color: var(--hl-green-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.review-content p {
  color: var(--hl-text-soft);
  font-style: italic;
  line-height: 1.75;
  font-size: 0.96rem;
}

.review-footer {
  margin-top: 18px;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.verified-tag {
  font-size: 0.76rem;
  color: #1f7a1f;
  font-weight: 700;
}

.disclaimer-area {
  padding: 46px 0;
  background-color: #ffffff;
}

.disclaimer-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(120, 190, 32, 0.18);
  background-color: #f9fcf5;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--hl-shadow-sm);
}

.disclaimer-box h3 {
  color: var(--hl-dark);
  font-size: 1.45rem;
  margin-bottom: 14px;
  font-weight: 800;
}

.disclaimer-box p,
.highlight-contact {
  color: var(--hl-text-soft);
  line-height: 1.7;
  font-size: 1rem;
}

.highlight-contact {
  font-weight: 600;
  margin-top: 16px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  padding-top: 14px;
}

.coach-img img,
.payment-methods img {
  border-radius: 20px;
}

.coach-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
  color: var(--hl-dark);
}

.coach-text p {
  color: var(--hl-text-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 20px;
  padding: 24px;
}

.faq-item h4 {
  color: var(--hl-dark);
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.08rem;
}

.faq-item p {
  color: var(--hl-text-soft);
  font-size: 0.96rem;
  line-height: 1.75;
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
  background-color: #128c7e;
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  fill: white;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: var(--hl-dark);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

.site-footer {
  background-color: var(--hl-dark);
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 30px;
  font-size: 0.95rem;
  margin-top: 0;
}

.footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 50px;
}

.footer-title {
  color: var(--hl-green);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-text,
.footer-contact,
.footer-links a {
  line-height: 1.7;
  color: #cdd3da;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--hl-green);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.disclaimer-official {
  font-size: 0.78rem;
  color: #9fb0bf;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.copyright {
  font-size: 0.82rem;
  color: #8ea1b1;
}

.payment-methods img {
  max-width: 210px;
  margin-top: 15px;
}

.hl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--hl-green-soft);
  color: #507b16;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.hl-badge-sale {
  background: #fff1f2;
  color: #be123c;
}

.hl-breadcrumbs-wrap {
  padding: 28px 0 14px;
  font-size: 14px;
  color: var(--hl-text-soft);
}

.hl-product-page {
  padding: 0 0 70px;
}

.hl-product-hero {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.hl-product-gallery {
  padding: 24px;
}

.hl-product-summary {
  padding: 32px;
  position: sticky;
  top: 110px;
}

.hl-badge-row,
.hl-mini-trust,
.hl-card-benefits,
.hl-category-trust,
.hl-loop-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hl-badge-row {
  margin-bottom: 18px;
}

.hl-product-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  margin: 0 0 14px;
  color: #15202b;
}

.hl-product-subtitle,
.hl-short-description,
.hl-content-entry,
.hl-side-card p,
.hl-side-card li,
.hl-category-description,
.hl-archive-extra-copy,
.hl-category-help__box p {
  color: var(--hl-text-soft);
  line-height: 1.8;
}

.hl-product-subtitle,
.hl-short-description {
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.hl-product-rating {
  margin-bottom: 12px;
}

.hl-price-box {
      margin-top: 20px;
  margin-bottom: 20px;
}

.hl-price-box .price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--hl-green-dark);
}

.hl-product-benefits {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.hl-benefit-item,
.hl-step {
  padding: 14px 16px;
  background: #f8faf6;
  border: 1px solid rgba(120, 190, 32, 0.14);
  border-radius: 16px;
  font-size: 0.96rem;
  color: #344054;
}

.hl-cart-box {
  margin-bottom: 24px;
}

.hl-mini-trust {
  margin-top: 14px;
}

.hl-mini-trust span,
.hl-card-benefits span,
.hl-category-trust span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
  color: #475467;
}

.hl-breakfast-steps {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: #f8faf6;
  border: 1px solid rgba(120, 190, 32, 0.15);
}

.hl-breakfast-steps h2,
.hl-support-box h2,
.hl-side-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.hl-step + .hl-step {
  margin-top: 10px;
}

.hl-support-box {
  padding-top: 24px;
  border-top: 1px solid var(--hl-border);
  margin-top: 24px;
}

.hl-support-box p {
  margin-bottom: 14px;
}

.hl-content-grid {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  margin-top: 36px;
}

.hl-main-content,
.hl-side-content {
  display: grid;
  gap: 22px;
  align-content: start;
}

.hl-box,
.hl-side-card,
.hl-category-help__box,
.hl-category-hero {
  padding: 28px;
}

.hl-box h2,
.hl-related-products h2,
.hl-category-help__box h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
  color: #15202b;
}

.hl-related-products,
.hl-pagination-wrap,
.hl-category-help {
  margin-top: 36px;
}

.hl-tabs-wrap {
  margin-top: 10px;
}

.hl-tabs-wrap ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border: 0 !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
}

.hl-tabs-wrap ul.tabs::before,
.hl-tabs-wrap ul.tabs::after {
  display: none !important;
}

.hl-tabs-wrap ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hl-tabs-wrap ul.tabs li a {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #344054;
  font-weight: 700;
  text-decoration: none;
}

.hl-tabs-wrap ul.tabs li.active a,
.hl-tabs-wrap ul.tabs li a:hover {
  background: var(--hl-green-soft);
  color: #507b16;
}

.hl-tab-panel-inner {
  padding: 6px 4px 4px;
  line-height: 1.75;
  color: var(--hl-text-soft);
}

.hl-category-page {
  padding: 20px 0 70px;
}

.hl-category-hero {
  margin-bottom: 24px;
}

.hl-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hl-green-dark);
}

.hl-category-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  margin-bottom: 14px;
}

.hl-category-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 18px;
}

.hl-category-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 22px;
  box-shadow: var(--hl-shadow-sm);
  text-align: left;
  transition: .25s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--hl-shadow);
}

.hl-product-card {
  list-style: none;
}

.hl-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hl-card-top {
  margin-bottom: 14px;
}

.hl-loop-badges {
  margin-bottom: 10px;
  min-height: 28px;
}

.hl-card-image-link {
  display: block;
  background: #f8faf6;
  border-radius: 18px;
  padding: 14px;
}

.hl-card-image-link img,
.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}

.hl-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hl-card-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.35;
  color: #17212b;
}

.hl-card-title a {
  color: #17212b;
  text-decoration: none;
}

.hl-card-title a:hover {
  color: var(--hl-green-dark);
}

.hl-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--hl-text-soft);
}

.hl-card-rating .star-rating {
  margin: 0 !important;
}

.hl-card-excerpt {
  color: var(--hl-text-soft);
  line-height: 1.65;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hl-card-bottom {
  margin-top: auto;
}

.hl-card-price .price,
.woocommerce ul.products li.product .price {
  margin-bottom: 14px;
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hl-green-dark);
}

.hl-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.hl-card-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #eef2f6 !important;
  color: #1f2937 !important;
  border-radius: 999px !important;
  padding: 14px 20px !important;
  font-weight: 800 !important;
  text-decoration: none;
}

.hl-card-secondary:hover {
  background: #e3e8ef !important;
  color: #111827 !important;
}

.woocommerce ul.products li.product .button {
  width: 100%;
  text-align: center;
}

.woocommerce ul.products li.product .added_to_cart {
  margin-top: 10px;
  display: inline-block;
  font-weight: 700;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 16px;
}

@media (max-width: 992px) {
  .grid-seo,
  .grid-2,
  .reviews-grid,
  .faq-grid,
  .hl-product-hero,
  .hl-content-grid,
  .hl-category-products ul.products {
    grid-template-columns: 1fr;
  }

  .hl-product-summary {
    position: static;
  }

  .hl-category-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .hero-seo {
    min-height: 64vh;
  }

  .hero-seo h1 {
    max-width: 100%;
  }

  .flash-alert {
    flex-direction: column;
    gap: 8px;
  }

  .hl-product-summary,
  .hl-box,
  .hl-side-card,
  .hl-category-hero,
  .hl-category-help__box,
  .hl-product-gallery,
  .card-seo,
  .review-card,
  .faq-item,
  .disclaimer-box {
    padding: 22px;
  }

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

  .whatsapp-tooltip {
    display: none;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 16px;
    right: 16px;
  }

  .hl-container,
  .container-seo {
    width: min(100% - 20px, var(--hl-max));
  }
}
.hl-tabs-wrap ul.tabs,
.woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hl-tabs-wrap ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hl-tabs-wrap ul.tabs li::before,
.hl-tabs-wrap ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
}
.home-sb24 .center-narrow {
  max-width: 760px;
  margin-inline: auto;
}

.home-sb24 .center-narrow {
  max-width: 760px;
  margin-inline: auto;
}

.home-sb24 .section-head {
  margin-bottom: 34px;
}

.home-sb24 .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.home-sb24 .hero-copy {
  max-width: 760px;
  padding: clamp(64px, 9vw, 110px) 0;
}

.home-sb24 .hero-kicker,
.home-sb24 .section-mini,
.home-sb24 .goal-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-sb24 .hero-kicker,
.home-sb24 .section-mini {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  margin-bottom: 18px;
}

.home-sb24 .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.home-sb24 .btn-secondary-seo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.home-sb24 .btn-secondary-seo:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.home-sb24 .hero-trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-sb24 .hero-trust-inline span,
.home-sb24 .goal-label {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.home-sb24 .hero-trust-inline span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.home-sb24 .goal-label {
  background: #edf7df;
  color: #507b16;
  margin-bottom: 16px;
}

.home-sb24 .objective-grid {
  align-items: stretch;
}

.home-sb24 .card-goal {
  height: 100%;
}

.home-sb24 .featured-goal {
  border-color: rgba(120, 190, 32, 0.25);
  box-shadow: var(--hl-shadow);
  transform: translateY(-4px);
}

.home-sb24 .proof-grid {
  align-items: start;
}

.home-sb24 .left-title,
.home-sb24 .left-copy {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.home-sb24 .proof-cards {
  display: grid;
  gap: 16px;
}

.home-sb24 .mini-proof-card {
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--hl-shadow-sm);
}

.home-sb24 .mini-proof-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--hl-dark);
  font-size: 1.05rem;
}

.home-sb24 .mini-proof-card p {
  margin: 0;
  color: var(--hl-text-soft);
  line-height: 1.7;
}

.home-sb24 .coach-grid {
  align-items: center;
}

@media (max-width: 992px) {
  .home-sb24 .featured-goal {
    transform: none;
  }
}

@media (max-width: 768px) {
  .home-sb24 .hero-actions {
    flex-direction: column;
  }

  .home-sb24 .btn-secondary-seo,
  .home-sb24 .btn-herbalife {
    width: 100%;
  }
}
.home-sb24 .hero-seo,
.home-sb24 .hero-seo h1,
.home-sb24 .hero-seo p,
.home-sb24 .hero-seo .hero-kicker,
.home-sb24 .hero-seo .hero-trust-inline span,
.home-sb24 .hero-seo .btn-secondary-seo {
  color: #ffffff !important;
}

.home-sb24 .hero-seo h1 {
  color: #ffffff !important;
}

.home-sb24 .hero-seo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.62) 0%, rgba(17, 24, 39, 0.3) 45%, rgba(17, 24, 39, 0.16) 100%);
}

.home-sb24 .hero-seo {
  position: relative;
}

.home-sb24 .hero-seo .container-seo {
  position: relative;
  z-index: 2;
}
/* ===== Mobile Optimization ===== */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  .container-seo,
  .hl-container {
    width: min(100%, calc(100% - 24px));
    padding-left: 0;
    padding-right: 0;
  }

  .section-padding {
    padding: 22px 0;
  }

  .hero-seo {
    min-height: auto;
    padding: 72px 0 56px;
    background-position: center center !important;
  }

  .home-sb24 .hero-copy {
    max-width: 100%;
    padding: 0;
  }

  .hero-seo h1,
  .home-sb24 .hero-seo h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
    line-height: 1.08;
    margin-bottom: 14px;
  }

  .hero-seo p,
  .home-sb24 .hero-seo p {
    font-size: 1rem;
    line-height: 1.65;
    max-width: 100%;
  }

  .home-sb24 .hero-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn-herbalife,
  .btn-secondary-seo,
  .btn-whatsapp,
  .hl-whatsapp-btn,
  .hl-cart-box .single_add_to_cart_button {
    width: 100%;
    min-height: 52px;
    font-size: 0.98rem;
  }

  .trust-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
    padding: 14px 16px;
  }

  .grid-seo,
  .grid-2,
  .objective-grid,
  .reviews-grid,
  .faq-grid,
  .footer-grid,
  .hl-product-hero {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .card-seo,
  .review-card,
  .faq-item,
  .hl-section,
  .hl-disclaimer-box,
  .mini-proof-card,
  .hl-product-summary {
    padding: 22px;
    border-radius: 18px;
  }

  .review-header {
    align-items: center;
  }

  .user-thumb {
    width: 44px;
    height: 44px;
    margin-right: 12px;
  }

  .coach-grid {
    gap: 24px;
  }

  .coach-img img,
  .hl-product-gallery img {
    border-radius: 18px;
  }

  .hl-product-summary {
    position: static;
    top: auto;
  }

  .hl-product-summary h1 {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }

  .hl-badge-row {
    gap: 8px;
  }

  .hl-badge {
    font-size: 12px;
    padding: 7px 12px;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs,
  .hl-tabs-wrap ul.tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px !important;
    scrollbar-width: none;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar,
  .hl-tabs-wrap ul.tabs::-webkit-scrollbar {
    display: none;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li a,
  .hl-tabs-wrap ul.tabs li a {
    white-space: nowrap;
    min-height: 42px;
    padding: 0 16px !important;
    font-size: 0.92rem;
  }

  .site-footer {
    padding-top: 44px;
    padding-bottom: 28px;
  }

  .footer-grid {
    text-align: left;
    gap: 28px;
  }

  .footer-title {
    margin-bottom: 12px;
  }

  .payment-methods img {
    max-width: 160px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-tooltip {
    display: none !important;
  }
}
/* ===== Typography reset mobile shop ===== */
@media (max-width: 768px) {

  body,
  p,
  li,
  .subtitle-seo,
  .woocommerce-product-details__short-description,
  .woocommerce-tabs .panel p {
    font-size: 16px;
    line-height: 1.65;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title,
  .ast-woo-product-title,
  .product_title {
    font-size: 17px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
  }

  .woocommerce ul.products li.product .price,
  .woocommerce div.product p.price,
  .woocommerce div.product span.price {
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
  }

  .woocommerce ul.products li.product .button,
  .woocommerce ul.products li.product .added_to_cart,
  .single_add_to_cart_button,
  .btn-herbalife,
  .btn-secondary-seo,
  .btn-whatsapp {
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  .woocommerce-breadcrumb,
  .hl-badge,
  .goal-label,
  .user-goal,
  .verified-tag {
    font-size: 12px !important;
  }
}
@media (max-width: 768px) {

  .trust-bar,
  .hero-actions,
  .hero-trust-inline,
  .reviews-grid,
  .footer-grid,
  .faq-grid,
  .objective-grid,
  .grid-seo,
  .grid-2,
  .proof-grid,
  .coach-grid,
  .hl-product-hero {
    min-width: 0;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs,
  .hl-tabs-wrap ul.tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 4px !important;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li,
  .hl-tabs-wrap ul.tabs li {
    flex: 0 0 auto;
  }
}
@media (max-width: 640px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 18px !important;
    border-radius: 18px;
  }
}

@media (min-width: 641px) and (max-width: 992px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
  }
}
/* ===== Product page alignment fix ===== */
.single-product .site-main,
.single-product .content-area,
.single-product .ast-container,
.single-product .woocommerce,
.single-product div.product,
.single-product .hl-product-page,
.single-product .hl-container,
.single-product .hl-product-sections,
.single-product .hl-section,
.single-product .woocommerce-tabs,
.single-product .woocommerce-Tabs-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.single-product .hl-container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.single-product .hl-product-hero,
.single-product .hl-product-sections {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.single-product .hl-section,
.single-product .woocommerce-tabs .panel,
.single-product .woocommerce-Tabs-panel {
  overflow: hidden;
}

.single-product .woocommerce-Tabs-panel > *:first-child,
.single-product .hl-section > *:first-child {
  margin-top: 0;
}

.single-product .woocommerce-Tabs-panel > *:last-child,
.single-product .hl-section > *:last-child {
  margin-bottom: 0;
}

.single-product .woocommerce-Tabs-panel p,
.single-product .woocommerce-Tabs-panel ul,
.single-product .woocommerce-Tabs-panel ol,
.single-product .woocommerce-Tabs-panel table,
.single-product .woocommerce-Tabs-panel img,
.single-product .hl-section p,
.single-product .hl-section ul,
.single-product .hl-section ol,
.single-product .hl-section table,
.single-product .hl-section img {
  max-width: 100%;
}

.single-product .woocommerce-Tabs-panel ul,
.single-product .woocommerce-Tabs-panel ol,
.single-product .hl-section ul,
.single-product .hl-section ol {
  padding-left: 20px;
}

.single-product .woocommerce-Tabs-panel table,
.single-product .hl-section table {
  display: block;
  overflow-x: auto;
}

.single-product .woocommerce-Tabs-panel img,
.single-product .hl-section img {
  display: block;
  height: auto;
  border-radius: 16px;
}

.single-product .woocommerce-tabs {
  margin-top: 0;
}

.single-product .woocommerce div.product .woocommerce-tabs ul.tabs {
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.single-product .woocommerce div.product .woocommerce-tabs .panel {
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .hl-section,
.single-product .hl-disclaimer-box {
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 768px) {
  .single-product .hl-container {
    width: min(100%, calc(100% - 24px));
  }

  .single-product .hl-product-hero,
  .single-product .hl-product-sections {
    gap: 18px;
  }

  .single-product .hl-section,
  .single-product .hl-disclaimer-box,
  .single-product .hl-product-summary {
    padding: 22px;
    border-radius: 18px;
  }

  .single-product .woocommerce-Tabs-panel ul,
  .single-product .woocommerce-Tabs-panel ol,
  .single-product .hl-section ul,
  .single-product .hl-section ol {
    padding-left: 18px;
  }
}
/* ===== WooCommerce category/archive alignment fix ===== */
.woocommerce.archive ul.products,
.woocommerce-page ul.products,
.tax-product_cat ul.products,
.post-type-archive-product ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px !important;
  align-items: stretch;
}

.woocommerce.archive ul.products li.product,
.woocommerce-page ul.products li.product,
.tax-product_cat ul.products li.product,
.post-type-archive-product ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.woocommerce.archive ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-page ul.products li.product a.woocommerce-LoopProduct-link,
.tax-product_cat ul.products li.product a.woocommerce-LoopProduct-link,
.post-type-archive-product ul.products li.product a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
}

.woocommerce.archive ul.products li.product img,
.woocommerce-page ul.products li.product img,
.tax-product_cat ul.products li.product img,
.post-type-archive-product ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 0 14px !important;
}

.woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 10px !important;
  min-height: 2.8em;
}

.woocommerce.archive ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.tax-product_cat ul.products li.product .price,
.post-type-archive-product ul.products li.product .price {
  font-size: 1rem;
  font-weight: 800;
  color: #78be20;
  margin-top: auto !important;
  margin-bottom: 14px !important;
}

.woocommerce.archive ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.tax-product_cat ul.products li.product .button,
.post-type-archive-product ul.products li.product .button {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
}

.woocommerce.archive .site-main,
.tax-product_cat .site-main,
.post-type-archive-product .site-main,
.woocommerce.archive .ast-container,
.tax-product_cat .ast-container,
.post-type-archive-product .ast-container {
  overflow-x: hidden;
}
@media (max-width: 992px) {
  .woocommerce.archive ul.products,
  .woocommerce-page ul.products,
  .tax-product_cat ul.products,
  .post-type-archive-product ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 640px) {
  .woocommerce.archive ul.products,
  .woocommerce-page ul.products,
  .tax-product_cat ul.products,
  .post-type-archive-product ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .woocommerce.archive ul.products li.product,
  .woocommerce-page ul.products li.product,
  .tax-product_cat ul.products li.product,
  .post-type-archive-product ul.products li.product {
    padding: 18px;
    border-radius: 18px;
  }

  .woocommerce.archive ul.products li.product .woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product .woocommerce-loop-product__title,
  .tax-product_cat ul.products li.product .woocommerce-loop-product__title,
  .post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
    font-size: 17px !important;
    min-height: auto;
  }
}
/* ===== Archive/category full-width alignment reset ===== */
.tax-product_cat .site-content,
.tax-product_cat .content-area,
.tax-product_cat .ast-container,
.post-type-archive-product .site-content,
.post-type-archive-product .content-area,
.post-type-archive-product .ast-container,
.woocommerce-shop .site-content,
.woocommerce-shop .content-area,
.woocommerce-shop .ast-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.tax-product_cat .content-area,
.post-type-archive-product .content-area,
.woocommerce-shop .content-area {
  float: none !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.tax-product_cat .ast-left-sidebar #primary,
.tax-product_cat .ast-right-sidebar #primary,
.post-type-archive-product .ast-left-sidebar #primary,
.post-type-archive-product .ast-right-sidebar #primary,
.woocommerce-shop .ast-left-sidebar #primary,
.woocommerce-shop .ast-right-sidebar #primary {
  width: 100% !important;
  margin: 0 auto !important;
}

.tax-product_cat #primary,
.post-type-archive-product #primary,
.woocommerce-shop #primary {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  float: none !important;
}

.tax-product_cat #secondary,
.post-type-archive-product #secondary,
.woocommerce-shop #secondary {
  display: none !important;
}
.tax-product_cat ul.products,
.post-type-archive-product ul.products,
.woocommerce-shop ul.products {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px !important;
}

.tax-product_cat ul.products li.product,
.post-type-archive-product ul.products li.product,
.woocommerce-shop ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}
@media (max-width: 992px) {
  .tax-product_cat ul.products,
  .post-type-archive-product ul.products,
  .woocommerce-shop ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .tax-product_cat ul.products,
  .post-type-archive-product ul.products,
  .woocommerce-shop ul.products {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tax-product_cat #primary,
  .post-type-archive-product #primary,
  .woocommerce-shop #primary {
    max-width: calc(100% - 24px) !important;
  }
}
/* ========== Cart & Checkout ========== */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-cart .ast-container,
.woocommerce-checkout .ast-container,
.woocommerce-cart #primary,
.woocommerce-checkout #primary {
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto !important;
  float: none !important;
}

.woocommerce-cart #secondary,
.woocommerce-checkout #secondary {
  display: none !important;
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
  padding-top: 24px;
  padding-bottom: 60px;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  width: 100%;
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table,
.woocommerce-checkout-review-order,
.woocommerce form.checkout,
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .col2-set,
.woocommerce-checkout #order_review {
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 24px;
  box-shadow: var(--hl-shadow-sm);
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-checkout table.shop_table th,
.woocommerce-checkout table.shop_table td {
  padding: 16px 18px !important;
  border-color: rgba(31, 41, 55, 0.08);
  vertical-align: middle;
}

.woocommerce-cart .cart-collaterals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .col2-set {
  padding: 24px;
}

.woocommerce-cart .cart_totals h2,
.woocommerce-checkout #order_review_heading,
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--hl-dark);
  margin-bottom: 18px;
  font-weight: 800;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
  width: 100% !important;
  float: none !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--hl-border-strong);
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
  color: var(--hl-text);
}

.woocommerce form .form-row textarea {
  min-height: 120px;
  padding-top: 14px;
}

.woocommerce form .form-row label {
  font-weight: 700;
  color: var(--hl-dark);
  margin-bottom: 8px;
}

.woocommerce-checkout-payment,
#payment {
  background: #f8faf6 !important;
  border: 1px solid rgba(120, 190, 32, 0.12);
  border-radius: 18px;
  padding: 18px;
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 0 !important;
  padding-bottom: 8px;
}

.woocommerce-checkout #payment div.payment_box {
  background: #fff !important;
  border-radius: 14px;
  color: var(--hl-text-soft);
}

.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 56px;
  font-size: 1rem !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
}

.woocommerce-cart .coupon {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.woocommerce-cart .coupon input.input-text {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--hl-border-strong);
  padding: 0 14px !important;
  min-width: 220px;
}

.woocommerce-cart .quantity .qty {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--hl-border-strong);
}

.woocommerce-cart .product-name a,
.woocommerce-checkout .product-name {
  color: var(--hl-dark);
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-cart .product-subtotal,
.woocommerce-checkout .product-total,
.woocommerce-cart .order-total,
.woocommerce-checkout .order-total {
  font-weight: 800;
  color: var(--hl-dark);
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  border-radius: 16px;
  box-shadow: none;
}

/* checkout layout */
@media (min-width: 993px) {
  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 24px;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #order_review {
    align-self: start;
  }

  .woocommerce-cart .cart-collaterals {
    margin-top: 24px;
  }
}

/* mobile */
@media (max-width: 992px) {
  .woocommerce-cart table.shop_table,
  .woocommerce-checkout table.shop_table,
  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #order_review,
  .woocommerce-cart .cart-collaterals {
    border-radius: 18px;
  }

  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout #order_review,
  .woocommerce-checkout .col2-set {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .woocommerce-cart .entry-content,
  .woocommerce-checkout .entry-content {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  .woocommerce-cart table.shop_table thead {
    display: none;
  }

  .woocommerce-cart table.shop_table tbody tr {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  }

  .woocommerce-cart table.shop_table tbody td {
    display: block;
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
  }

  .woocommerce-cart .product-thumbnail {
    max-width: 110px;
  }

  .woocommerce-cart .coupon {
    flex-direction: column;
  }

  .woocommerce-cart .coupon input.input-text,
  .woocommerce-cart .coupon button,
  .woocommerce-checkout #place_order {
    width: 100%;
  }

  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select {
    font-size: 16px;
  }
}
/* ========== Cart & Checkout Templates ========== */
.sb24-flow-hero {
  padding: 28px 0 10px;
}

.sb24-flow-hero .hl-container {
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 24px;
  box-shadow: var(--hl-shadow-sm);
  padding: 28px;
}

.sb24-flow-hero h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  color: var(--hl-dark);
  margin: 8px 0 12px;
}

.sb24-flow-hero p {
  color: var(--hl-text-soft);
  line-height: 1.75;
  max-width: 760px;
  margin: 0;
}

.sb24-flow-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sb24-flow-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  background: var(--hl-green-soft);
  color: #507b16;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.sb24-cart-page,
.sb24-checkout-page {
  padding: 24px 0 70px;
}

.sb24-cart-layout,
.sb24-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.sb24-panel {
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 24px;
  box-shadow: var(--hl-shadow-sm);
  padding: 24px;
}

.sb24-cart-table-wrap {
  overflow: hidden;
}

.sb24-help-card h2,
.sb24-cart-totals h2,
.sb24-order-review-wrap h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--hl-dark);
  margin-bottom: 12px;
  font-weight: 800;
}

.sb24-help-card p {
  color: var(--hl-text-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.sb24-cart-side,
.sb24-checkout-side {
  display: grid;
  gap: 18px;
}

.sb24-checkout-reassurance {
  margin-top: 18px;
  padding: 16px;
  background: #f8faf6;
  border: 1px solid rgba(120, 190, 32, 0.12);
  border-radius: 18px;
}

.sb24-checkout-reassurance h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--hl-dark);
}

.sb24-checkout-reassurance ul {
  margin: 0;
  padding-left: 18px;
}

.sb24-checkout-reassurance li {
  color: var(--hl-text-soft);
  line-height: 1.7;
  margin-bottom: 6px;
}

@media (max-width: 992px) {
  .sb24-cart-layout,
  .sb24-checkout-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sb24-flow-hero .hl-container,
  .sb24-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .sb24-flow-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .sb24-cart-page,
  .sb24-checkout-page {
    padding: 18px 0 40px;
  }
}
/* ========== Footer overlap fix ========== */
.site,
.site-content,
.content-area,
.site-main,
.ast-container,
#primary {
  position: relative;
}

.site-footer {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  clear: both;
  z-index: 1;
}

.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.sb24-cart-page,
.sb24-checkout-page {
  margin-bottom: 0 !important;
  padding-bottom: 48px !important;
}

.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-cart .content-area,
.woocommerce-checkout .content-area {
  overflow: visible !important;
}

.sb24-cart-layout,
.sb24-checkout-layout {
  align-items: start;
}

@media (max-width: 768px) {
  .woocommerce-cart .site-main,
  .woocommerce-checkout .site-main,
  .woocommerce-cart .entry-content,
  .woocommerce-checkout .entry-content,
  .sb24-cart-page,
  .sb24-checkout-page {
    padding-bottom: 32px !important;
    padding: 0px !important;
  }
}
/* ========== Safe checkout/cart flow ========== */
.sb24-cart-side,
.sb24-checkout-side,
.sb24-order-review-wrap,
.sb24-cart-totals,
.woocommerce-checkout #order_review {
  position: static !important;
  top: auto !important;
}

@media (min-width: 993px) {
  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #order_review,
  .sb24-cart-main,
  .sb24-cart-side,
  .sb24-checkout-main,
  .sb24-checkout-side {
    align-self: start;
  }
}
/* ========== Global page height / footer flow fix ========== */
html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  display: block;
}

.site,
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content,
.ast-container,
.site-main,
.content-area,
#primary {
  width: 100%;
}

.site-content {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  clear: both;
  flex-shrink: 0;
  z-index: 1;
}
/* ========== WooCommerce flow height fix ========== */
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-cart .content-area,
.woocommerce-checkout .content-area,
.woocommerce-cart #primary,
.woocommerce-checkout #primary {
  display: block;
  min-height: auto;
  overflow: visible !important;
}

.sb24-cart-page,
.sb24-checkout-page {
  display: block;
  width: 100%;
  padding-bottom: 64px !important;
}

.sb24-cart-layout,
.sb24-checkout-layout {
  display: grid;
  align-items: start;
}

.sb24-cart-main,
.sb24-cart-side,
.sb24-checkout-main,
.sb24-checkout-side {
  min-width: 0;
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
  padding-bottom: 64px !important;
}
/* ========== Extra bottom safety space ========== */
.site-content {
  padding-bottom: 0;
}

.woocommerce-cart .site-content,
.woocommerce-checkout .site-content {
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .sb24-cart-page,
  .sb24-checkout-page,
  .woocommerce-cart .entry-content,
  .woocommerce-checkout .entry-content,
  .woocommerce-cart .site-content,
  .woocommerce-checkout .site-content {
    padding-bottom: 32px !important;
  }
}
/* ===== Footer flow fix definitivo ===== */
html, body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

#page,
.site {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content,
.ast-container,
.site-main,
.content-area,
#primary {
  width: 100%;
}

.site-content {
  flex: 1 0 auto;
}

.site-footer {
  margin-top: auto;
  position: relative !important;
  clear: both;
  z-index: 2;
}

.sb24-cart-page,
.sb24-checkout-page,
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
  padding-bottom: 48px !important;
}
/* ===== FIX CARRELLO CHE SI AFFIANCA AL FOOTER ===== */

/* 1) Il footer deve sempre iniziare sotto qualsiasi float */
.site-footer {
  clear: both !important;
  float: none !important;
  width: 100%;
  display: block;
  position: relative;
}

/* 2) Anche il contenitore subito prima del footer deve chiudere i float */
.site-content::after,
.content-area::after,
.site-main::after,
.woocommerce::after,
.woocommerce-cart-form::after,
.cart-collaterals::after,
.sb24-cart-layout::after,
.sb24-cart-main::after,
.sb24-cart-side::after {
  content: "";
  display: block;
  clear: both;
}

/* 3) Stop ai float legacy WooCommerce nella pagina carrello */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-cart .cross-sells,
.woocommerce-cart .woocommerce-cart-form {
  float: none !important;
  width: 100% !important;
}

/* 4) Layout desktop controllato solo dalla grid custom */
@media (min-width: 993px) {
  .sb24-cart-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
  }

  .sb24-cart-main,
  .sb24-cart-side {
    float: none !important;
    width: auto !important;
    min-width: 0;
  }

  .sb24-cart-side {
    align-self: start;
  }
}

/* 5) Sicurezza generale */
.woocommerce-cart .site-content,
.woocommerce-cart .site-main,
.woocommerce-cart #primary,
.woocommerce-cart .entry-content {
  overflow: visible !important;
}
/* ===== CHECKOUT HEADINGS FIX ===== */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  color: var(--hl-dark);
  font-size: 1.35rem;
  line-height: 1.2;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-checkout-review-order {
  overflow: hidden;
}
/* ===== CHECKOUT DESKTOP FINAL ALIGN FIX ===== */
@media (min-width: 993px) {
  .sb24-checkout-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 24px;
    align-items: start;
  }

  .sb24-checkout-main,
  .sb24-checkout-side {
    min-width: 0;
    width: 100%;
  }

  /* Colonna sinistra */
  .sb24-checkout-fields,
  .woocommerce-checkout .col2-set {
    background: #fff;
    border: 1px solid var(--hl-border);
    border-radius: 24px;
    box-shadow: var(--hl-shadow-sm);
  }

  .sb24-checkout-fields {
    padding: 0 !important;
    overflow: hidden;
  }

  .woocommerce-checkout .col2-set {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .woocommerce-billing-fields h3,
  .woocommerce-shipping-fields h3,
  .woocommerce-additional-fields h3 {
    margin: 0 !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid var(--hl-border);
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--hl-dark);
    background: #fff;
  }

  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper {
    padding: 22px 24px 24px;
  }

  /* Colonna destra */
  .sb24-order-review-wrap {
    background: #fff !important;
    border: 1px solid var(--hl-border);
    border-radius: 24px;
    box-shadow: var(--hl-shadow-sm);
    padding: 0 !important;
    overflow: hidden;
  }

  .sb24-order-review-wrap > #order_review_heading,
  .sb24-order-review-wrap > h3,
  .woocommerce-checkout #order_review_heading {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid var(--hl-border);
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--hl-dark);
    background: #fff;
    text-align: left !important;
  }

  .sb24-order-review-wrap #order_review,
  .woocommerce-checkout #order_review {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 22px 24px 24px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse;
    margin: 0 0 20px !important;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table th,
  .woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 14px 0 !important;
    vertical-align: top;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table thead th:first-child,
  .woocommerce-checkout .woocommerce-checkout-review-order-table tbody td.product-name,
  .woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th:first-child {
    width: 68%;
    text-align: left !important;
    padding-right: 18px !important;
    white-space: normal !important;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table thead th:last-child,
  .woocommerce-checkout .woocommerce-checkout-review-order-table tbody td.product-total,
  .woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    width: 32%;
    text-align: right !important;
    white-space: nowrap;
  }

  .woocommerce-checkout-payment {
    margin-top: 18px;
    border-radius: 18px !important;
  }
}
/* ===== CHECKOUT DESKTOP POLISH FINAL ===== */
@media (min-width: 993px) {

  .sb24-checkout-layout {
    display: grid !important;
    grid-template-columns: minmax(680px, 1.15fr) minmax(360px, 420px);
    gap: 28px;
    align-items: start;
  }

  .sb24-checkout-main,
  .sb24-checkout-side {
    width: 100%;
    min-width: 0;
  }

  /* LEFT PANEL */
  .sb24-checkout-fields {
    background: #fff;
    border: 1px solid var(--hl-border);
    border-radius: 26px;
    box-shadow: var(--hl-shadow-sm);
    overflow: hidden;
    padding: 0 !important;
  }

  .woocommerce-checkout .col2-set {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  .woocommerce-billing-fields,
  .woocommerce-shipping-fields,
  .woocommerce-additional-fields {
    width: 100%;
  }

  .woocommerce-billing-fields h3,
  .woocommerce-shipping-fields h3,
  .woocommerce-additional-fields h3 {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 22px 26px !important;
    border-bottom: 1px solid var(--hl-border);
    background: #fff;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--hl-dark);
  }

  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper {
    padding: 24px 26px 28px !important;
    width: 100%;
  }

  .woocommerce-checkout .form-row {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 18px !important;
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    width: calc(50% - 10px) !important;
    max-width: none !important;
    float: left !important;
  }

  .woocommerce-checkout .form-row-first {
    margin-right: 20px !important;
  }

  .woocommerce-checkout .form-row-wide {
    clear: both !important;
    width: 100% !important;
  }

  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row select,
  .woocommerce form .form-row textarea {
    width: 100% !important;
    max-width: none !important;
    min-height: 56px;
    border-radius: 16px;
    padding-inline: 16px;
  }

  /* RIGHT PANEL */
  .sb24-order-review-wrap {
    background: #fff !important;
    border: 1px solid var(--hl-border);
    border-radius: 26px;
    box-shadow: var(--hl-shadow-sm);
    overflow: hidden;
    padding: 0 !important;
  }

  .woocommerce-checkout #order_review_heading,
  .sb24-order-review-wrap > h3 {
    display: block;
    width: 100%;
    margin: 0 !important;
    padding: 22px 26px !important;
    border-bottom: 1px solid var(--hl-border);
    background: #fff;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--hl-dark);
    text-align: left !important;
  }

  .sb24-order-review-wrap #order_review,
  .woocommerce-checkout #order_review {
    width: 100% !important;
    margin: 0 !important;
    padding: 22px 26px 26px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table {
    width: 100% !important;
    margin: 0 0 20px !important;
    border-collapse: collapse;
    table-layout: auto !important;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table th,
  .woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 16px 0 !important;
    vertical-align: top;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table th:first-child,
  .woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name,
  .woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th {
    text-align: left !important;
    padding-right: 18px !important;
    white-space: normal !important;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table th:last-child,
  .woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
  .woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
    text-align: right !important;
    white-space: nowrap;
  }

  .woocommerce-checkout-payment {
    margin-top: 20px;
    border-radius: 20px !important;
    padding: 18px !important;
  }
}

/* ===================== SINGLE POST - OTTIMIZZATO 2026 ===================== */
.single-post-seo .single-container {
    max-width: 720px;           /* <-- Questo è il cambiamento principale */
    margin: 40px auto;
    padding: 0 20px;
    font-size: 1.08rem;
    line-height: 1.85;
}

.entry-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.post-meta {
    color: #555;
    font-size: 0.97rem;
    margin-bottom: 35px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================== IMMAGINI ALLINEATE ===================== */
.entry-content img.alignright {
    float: right;
    margin: 8px 0 20px 25px;     /* Ridotto il margine sinistro per meno spazio */
    max-width: 45%;
    border-radius: 10px;
}

.entry-content img.alignleft {
    float: left;
    margin: 8px 25px 20px 0;
    max-width: 45%;
    border-radius: 10px;
}

.entry-content img.aligncenter {
    display: block;
    margin: 35px auto;
    border-radius: 10px;
}

/* Pulizia float */
.entry-content:after {
    content: "";
    display: table;
    clear: both;
}

/* Leggibilità del testo */
.entry-content {
    font-size: 1.085rem;
    line-height: 1.88;
    color: #222;
}

.entry-content h2 {
    font-size: 1.85rem;
    color: #7BC143;
    margin: 48px 0 22px;
    scroll-margin-top: 80px;
}

.entry-content h3 {
    font-size: 1.45rem;
    margin: 38px 0 16px;
}

/* TOC */
.toc-wrapper {
    background: #f8f9f8;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 35px 0;
    border-left: 6px solid #7BC143;
}

/* CTA Intermedio */
.cta-intermedio {
    background: linear-gradient(135deg, #7BC143, #67BC2A);
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
    margin: 55px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .single-container {
        max-width: 100%;
        padding: 0 15px;
        font-size: 1.05rem;
    }
    
    .entry-title {
        font-size: 2.25rem;
    }
    
    .entry-content img.alignright,
    .entry-content img.alignleft {
        float: none;
        max-width: 100%;
        margin: 25px auto;
        display: block;
    }
}

/* ===================== PAGINE + ARTICOLI - ASTRA OTTIMIZZATO ===================== */

/* Container principale più largo e leggibile */
.page .ast-container,
.single .ast-container,
.site-content .ast-container,
.page-seo .page-container,
.single-post-seo .single-container {
    max-width: 1220px !important;     /* ← Cambiato da 720 a 820px */
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* Padding interno comodo */
.page .ast-container,
.single .ast-container {
    padding-left: 25px !important;
    padding-right: 25px !important;
}

/* Titolo più elegante */
.entry-title {
    font-size: 2.65rem !important;
    line-height: 1.2 !important;
}

/* Leggibilità del testo */
.entry-content,
.page-seo .entry-content {
    font-size: 1.085rem !important;
    line-height: 1.85 !important;
    color: #222;
}

/* Immagini allineate a destra (spaziatura corretta) */
.entry-content img.alignright,
.entry-content .alignright,
.wp-block-image.alignright {
    float: right !important;
    margin: 12px 0 28px 35px !important;
    max-width: 48% !important;
    border-radius: 12px !important;
}

/* Pulizia float */
.entry-content::after {
    content: "" !important;
    display: block !important;
    clear: both !important;
}

/* Responsive */
@media (max-width: 768px) {
    .page .ast-container,
    .single .ast-container {
        max-width: 100% !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
    
    .entry-title {
        font-size: 2.25rem !important;
    }
    
    .entry-content img.alignright {
        float: none !important;
        max-width: 100% !important;
        margin: 25px auto !important;
        display: block !important;
    }
}

/* ===================== HEADER CUSTOM - VERSIONE 2 ===================== */
.ast-header-boxed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-main-wrapper {
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 10px 0;
}

/* Menu più compatto */
.main-header-menu {
    display: flex !important;
    gap: 4px !important;
    margin-left: auto !important;
}

.main-header-menu > li > a {
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    padding: 20px 12px !important;     /* Ridotto per evitare overflow */
    color: #1f1f1f !important;
    white-space: nowrap;
}

.main-header-menu li a:hover {
    color: #7BC143 !important;
}

/* Rimuove doppio icona sottomenù */
.main-header-menu .menu-item-has-children > a:after {
    font-size: 0.75rem;
    margin-left: 4px;
    opacity: 0.7;
}

/* Sottomenu migliorato */
.main-header-menu .sub-menu {
    background: #ffffff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.18) !important;
    border-top: 4px solid #7BC143;
    min-width: 250px;
    margin-top: 8px;
}

.main-header-menu .sub-menu li a {
    padding: 14px 20px !important;
}

/* Azioni destra */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ast-header-woo-cart {
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 921px) {
    .main-header-menu {
        display: none !important;
    }
    .header-right-actions {
        gap: 10px;
        margin: 0px -10px 0px 10px;
    }
}

.header-right-actions {
    display: flex;
    align-items: center;
}

.ast-header-woo-cart {
    margin-left: 0px !important;
    cursor: pointer;
}

.ast-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.ast-header-search .search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 5px 0px;
    border-radius: 4px;
}

.ast-header-search .search-field {
    border: none;
    outline: none;
    padding: 15px;
    background: transparent;
    max-width: 150px; /* Regola la larghezza come preferisci */
}

.ast-header-search .search-submit {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
/* Allineamento contenitore principale */
.ast-header-search .search-form {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #7BC143; /* Colore verde Herbalife come la tua barra */
    border-radius: 50px; /* Arrotondato moderno */
    padding: 2px 15px;
    background: #fff;
}

/* Rimuove i bordi nativi dal campo di testo */
.ast-header-search .search-field {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    outline: none !important;
    flex-grow: 1; /* Prende tutto lo spazio disponibile */
    font-size: 14px;
}

/* Sistema il pulsante/lente */
.ast-header-search .search-submit {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0 10px !important;
    cursor: pointer;
    line-height: 1 !important;
    display: flex;
    align-items: center;
}


/* Nasconde il testo "Cerca" se il tema lo inserisce nel pulsante */
.ast-header-search .search-submit {
    font-size: 0 !important;
}

/* --- SHOP BENESSERE 24 - NEW DESIGN SYSTEM --- */
:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --soft-green: #f4fcf4;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --klarna-pink: #ffb3c7;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --border-radius: 20px;
}

.home-sb24-v2 {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Hero Section */
.hero-seo-v2 {
    padding: 100px 0;
    color: white;
    text-align: center;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero-copy h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-actions {
    margin: 35px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-herbalife-v2 {
    background: var(--primary-green);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-herbalife-v2:hover {
    transform: translateY(-3px);
    background: var(--dark-green);
}

/* Griglia Obiettivi */
.objective-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card-seo-v2 {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card-seo-v2:hover {
    transform: translateY(-10px);
}

.featured-v2 {
    background: var(--soft-green);
    border: 2px solid var(--primary-green);
    position: relative;
}

.goal-label-v2 {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Sezione Klarna */
.klarna-promo-section {
    background: #fff0f3; /* Leggero richiamo al brand Klarna */
    padding: 60px 0;
    margin: 80px 0;
    border-radius: var(--border-radius);
}

.klarna-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.klarna-logo img {
    max-width: 180px;
}

/* Recensioni */
.reviews-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card-v2 {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.stars { color: #f1c40f; margin-bottom: 15px; }

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero-copy h1 { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .container-seo { padding: 0 20px; }
}

/* --- SHOP BENESSERE 24 - MODERN DESIGN SYSTEM --- */
:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --soft-green: #f4fcf4;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --klarna-pink: #ffb3c7;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --border-radius: 20px;
}

.home-sb24-v2 {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* Hero Section: Moderna e Imponente */
.hero-seo-v2 {
    padding: 120px 0;
    color: white;
    text-align: center;
    border-radius: 0 0 50px 50px;
    background-size: cover;
}

.hero-copy h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.btn-herbalife-v2 {
    background: var(--primary-green);
    color: white !important;
    padding: 20px 40px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.btn-herbalife-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(46, 204, 113, 0.5);
}

/* Griglia Obiettivi (Card Modernizzate) */
.objective-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.card-seo-v2 {
    background: white;
    padding: 45px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.card-seo-v2:hover { transform: translateY(-10px); }

.featured-v2 {
    border: 2px solid var(--primary-green);
    background: var(--soft-green);
    transform: scale(1.05);
}

/* Sezione Klarna: Call to Action Finanziaria */
.klarna-promo-section {
    background: #fff0f3;
    padding: 50px;
    border-radius: 30px;
    margin: 80px 0;
}

.klarna-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-copy h1 { font-size: 2.2rem; }
    .featured-v2 { transform: scale(1); }
}

/* RESET E STRUTTURA */
.sb24-power-layout {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Garantisce che il footer stia al suo posto */
}

/* HERO: Forza il colore bianco del titolo */
.sb24-hero h1.white-text {
    color: #ffffff !important;
    font-size: 3.5rem;
    font-weight: 800;
    margin: 20px 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.sb24-hero p { color: #ffffff; }

/* RECENSIONI (Nuovi stili) */
.bg-soft-green { background-color: #f4fcf4; }

.reviews-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.review-card-v2 {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.featured-review {
    border: 2px solid #2ecc71;
    transform: translateY(-5px);
}

.stars { color: #f1c40f; margin-bottom: 10px; font-size: 1.2rem; }

.user-info {
    margin-top: 20px;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.user-info strong { color: #2ecc71; }

/* FIX FOOTER: Assicurati che il footer segua il flusso naturale */
#main { flex-grow: 1; }
footer { position: relative !important; width: 100%; }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .sb24-hero h1.white-text { font-size: 2.2rem; }
    .grid-2 { grid-template-columns: 1fr; text-align: center; }
}

/* --- RESET & FONT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

.sb24-power-layout {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.sb24-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

/* --- HERO --- */
.sb24-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: white;
    border-bottom-left-radius: 80px;
}

.hero-content { max-width: 700px; }
.hero-content h1 { font-size: 3.5rem; font-weight: 800; margin: 20px 0; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }

.badge-top { background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 30px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.btn-primary { background: #2ecc71; color: white !important; padding: 18px 35px; border-radius: 50px; font-weight: 800; text-decoration: none; display: inline-block; transition: 0.3s; box-shadow: 0 10px 20px rgba(46,204,113,0.3); }
.btn-primary:hover { transform: translateY(-3px); background: #27ae60; }

.hero-stats { display: flex; gap: 30px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; }

/* --- OBJECTIVE GRID --- */
.section-spacing { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; }
.title-line { width: 60px; height: 5px; background: #2ecc71; margin: 15px auto; border-radius: 10px; }

.objective-grid-v3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.goal-card { background: white; padding: 50px; border-radius: 30px; text-align: center; text-decoration: none; color: inherit; box-shadow: 0 10px 40px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #f0f0f0; }
.goal-card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.goal-icon { font-size: 3rem; margin-bottom: 20px; }
.featured { border: 2px solid #2ecc71; background: #f4fcf4; position: relative; }
.card-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #2ecc71; color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }

/* --- KLARNA BANNER --- */
.klarna-box { background: #fff0f3; border-radius: 40px; padding: 60px; display: grid; grid-template-columns: 1fr 200px; align-items: center; gap: 40px; }
.btn-klarna-link { color: #2c3e50; font-weight: 800; text-decoration: none; border-bottom: 2px solid #ffb3c7; }

/* --- COACH --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.coach-photo img { width: 100%; border-radius: 40px; box-shadow: 20px 20px 0 #f4fcf4; }

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .grid-2 { grid-template-columns: 1fr; text-align: center; }
    .klarna-box { grid-template-columns: 1fr; text-align: center; padding: 30px; }
    .hero-stats { flex-direction: column; gap: 10px; }
}

@keyframes wa-pulse {
  0%,100%  { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%      { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}
.whatsapp-float { animation: wa-pulse 2s ease 3s 3; }



.btn-primary:focus-visible,
.btn-whatsapp:focus-visible {
  outline: 3px solid var(--hl-green);
  outline-offset: 3px;
}

/* Container principale */
.single-container {
    max-width: 800px; /* Larghezza ottimale per la leggibilità */
    margin: 0 auto;   /* Centra il contenuto */
    padding: 20px;
}

/* Immagine in evidenza */
.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* CTA Intermedio */
.cta-intermedio {
    background: #f4f4f4;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

/* Griglia prodotti e articoli correlati */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 30px 0;
}

/* Allineamento breadcrumb */
.breadcrumb-seo {
    text-align: left !important; /* Forza l'allineamento a sinistra */
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #555;
}

/* Rimuovi eventuali margini forzati dal tema */
.breadcrumb-seo nav {
    margin: 0 !important;
}

/* Container sezione correlati */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

/* Griglia degli articoli */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Card dell'articolo */
.related-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px); /* Effetto al passaggio del mouse */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-item img {
    width: 100%;
    height: 180px;
    object-fit: cover; /* Mantiene l'immagine proporzionata senza deformarla */
}

.related-item h3 {
    font-size: 1.1rem;
    padding: 15px;
    margin: 0;
    line-height: 1.4;
    color: #333;
}
.coach-bio-container {
    display: flex;
    align-items: flex-start; /* <--- MODIFICA QUI: allinea tutto in alto */
    gap: 30px; /* Spazio tra foto e testo */
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 0;
    padding:40px;
}

.coach-avatar img {
    width: 250px; /* Dimensioni dell'avatar */
    height: 250px;
    border-radius: 10%; /* Foto tonda */
    object-fit: cover;
    border: 1px solid #005a39; /* Colore Herbalife/Brand */
}

.coach-text h2 { margin-top: 0; }

.cta-button {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

/* Adattamento Mobile: la foto va sopra il testo */
@media (max-width: 768px) {
    .coach-bio-container { flex-direction: column; text-align: center; }
}