/*
 Theme Name:   Kadence Child — EMK
 Theme URI:    https://metodoemk.it
 Description:  Child theme per EMK — Ecosystem Metabolic Key
 Author:       Gabriele Bernacconi
 Template:     kadence
 Version:      1.0.0
 Text Domain:  kadence-child-emk
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --emk-blue:        #185FA5;
  --emk-blue-dark:   #0f3d6e;
  --emk-blue-light:  #e8f1fb;

  /* Energy */
  --energy-pink:     #F7A6AD;
  --energy-green:    #66B07E;
  --energy-yellow:   #FFD07A;
  --energy-primary:  #E8523A;

  /* Mind */
  --mind-orange:     #E49357;
  --mind-blue:       #1FA3D8;
  --mind-sky:        #9AE3FF;
  --mind-primary:    #1FA3D8;

  /* Keto */
  --keto-brown:      #7A3F2F;
  --keto-orange:     #E88C5A;
  --keto-cream:      #FFF4A3;
  --keto-primary:    #5B8C3E;

  /* Neutrals */
  --bg-base:         #FAFAFA;
  --bg-white:        #FFFFFF;
  --bg-section:      #F4F4F4;
  --text-dark:       #111111;
  --text-mid:        #444444;
  --text-light:      #888888;
  --border:          rgba(0,0,0,0.08);

  /* Typography */
  --font-display:    'Barlow', sans-serif;
  --font-body:       'Plus Jakarta Sans', sans-serif;

  /* Spacing */
  --section-gap:     120px;
  --section-gap-sm:  64px;

  /* Radius */
  --radius-sm:       8px;
  --radius-md:       16px;
  --radius-lg:       24px;
  --radius-xl:       40px;

  /* Glass */
  --glass-bg:        rgba(255, 255, 255, 0.72);
  --glass-blur:      blur(20px);
  --glass-border:    rgba(255, 255, 255, 0.4);

  /* Shadows */
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:       0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:       0 24px 64px rgba(0,0,0,0.14);
  --shadow-blue:     0 16px 48px rgba(24,95,165,0.20);

  /* Transitions */
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:        200ms;
  --dur-mid:         400ms;
  --dur-slow:        700ms;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============================================================
   ADMIN BAR OFFSET
   ============================================================ */
/* WordPress admin bar è 32px — sposta l'header fixed di conseguenza */
.admin-bar #masthead,
.admin-bar #masthead.kadence-sticky-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  .admin-bar #masthead,
  .admin-bar #masthead.kadence-sticky-header {
    top: 46px !important;
  }
}

/* ============================================================
   GLASS NAVIGATION
   ============================================================ */
/* Override Kadence's inline background:#ffffff on masthead */
#masthead,
#masthead.kadence-sticky-header,
#masthead .kadence-sticky-header {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 1000 !important;
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 1px 24px rgba(0,0,0,0.06) !important;
  transition: transform var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-out) !important;
}

.header-hidden #masthead {
  transform: translateY(-100%);
}

/* Header inner layout */
.emk-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 40px;
  transition: padding var(--dur-mid) var(--ease-out);
}

.emk-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.emk-header__logo img {
  height: 86px;
  width: auto;
  transition: height var(--dur-mid) var(--ease-out);
}

/* Shrink on scroll */
#masthead.is-scrolled .emk-header__inner {
  padding: 6px 40px;
}

#masthead.is-scrolled .emk-header__logo img {
  height: 52px;
}

.emk-header__nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.emk-header__nav ul li a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
  white-space: nowrap;
}

.emk-header__nav ul li a:hover {
  color: var(--emk-blue);
  background: var(--emk-blue-light);
}

.emk-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.emk-btn--header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emk-blue);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
  white-space: nowrap;
}

.emk-btn--header-cta:hover {
  background: var(--emk-blue-dark);
  transform: scale(1.03);
  color: #fff !important;
}

/* Hamburger */
.emk-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.emk-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--dur-fast) ease;
}

.emk-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.emk-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.emk-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown */
.emk-mobile-nav {
  display: none;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--border);
}

.emk-mobile-nav.is-open { display: block; }

.emk-mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emk-mobile-nav ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.emk-mobile-nav ul li a:hover {
  background: var(--emk-blue-light);
  color: var(--emk-blue);
}

.emk-mobile-nav .emk-btn--header-cta {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* Push content below fixed header */
#inner-wrap, .site-main, .wrap.kt-clear {
  padding-top: 114px;
}

@media (max-width: 960px) {
  .emk-header__nav { display: none; }
  .emk-hamburger { display: flex; }
  .emk-btn--header-cta { display: none; }
  .emk-header__inner { padding: 14px 24px; }
}

/* Nav links (legacy Kadence selectors) */
.main-navigation a,
.kadence-navigation a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark) !important;
}
.main-navigation a:hover { color: var(--emk-blue) !important; }

/* CTA nav button (legacy) */
.nav-cta-button a,
a.nav-cta {
  background: var(--emk-blue) !important;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
}
.nav-cta-button a:hover { background: var(--emk-blue-dark) !important; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.emk-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(155deg, #0a1628 0%, #0f2d52 25%, #185FA5 55%, #0c2340 100%);
}

.emk-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 5% 95%,  rgba(232,82,58,0.40) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 92% 8%,  rgba(31,163,216,0.30) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 72% 72%,  rgba(91,140,62,0.22) 0%, transparent 48%),
    radial-gradient(ellipse 70% 35% at 45% 2%,  rgba(255,208,122,0.12) 0%, transparent 60%);
  animation: heroAmbient 8s ease-in-out infinite alternate;
}

@keyframes heroAmbient {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.05); }
}

.emk-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 40px 100px;
  color: #fff;
}

.emk-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.2s forwards;
}

.emk-hero__eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: rgba(255,255,255,0.5);
}

.emk-hero__title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.35s forwards;
}

.emk-hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, #FFD07A, #F7A6AD, #9AE3FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.emk-hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin: 0 0 48px;
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.5s forwards;
}

.emk-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.65s forwards;
}

.emk-hero__pillars {
  display: flex;
  gap: 12px;
  margin-top: 80px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp var(--dur-slow) var(--ease-out) 0.8s forwards;
}

.emk-pillar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  color: #fff;
  transition: background var(--dur-fast) ease;
}
.emk-pillar-badge:hover { background: rgba(255,255,255,0.18); }
.emk-pillar-badge--energy { border-color: rgba(247,166,173,0.5); }
.emk-pillar-badge--mind   { border-color: rgba(31,163,216,0.5); }
.emk-pillar-badge--keto   { border-color: rgba(102,176,126,0.5); }

/* Scroll indicator */
.emk-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.emk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) ease;
  cursor: pointer;
  border: none;
}

.emk-btn--primary {
  background: #fff;
  color: var(--emk-blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.emk-btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  color: var(--emk-blue);
}

.emk-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.emk-btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
  color: #fff;
}

.emk-btn--blue {
  background: var(--emk-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.emk-btn--blue:hover {
  background: var(--emk-blue-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 56px rgba(24,95,165,0.30);
  color: #fff;
}

.emk-btn--outline {
  background: transparent;
  color: var(--emk-blue);
  border: 1.5px solid var(--emk-blue);
}
.emk-btn--outline:hover {
  background: var(--emk-blue-light);
  transform: translateY(-2px);
  color: var(--emk-blue);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.emk-trustbar {
  background: var(--text-dark);
  padding: 16px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.emk-trustbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.emk-trustbar__item strong {
  color: #fff;
  font-weight: 700;
}

.emk-trustbar__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.emk-section {
  padding: var(--section-gap) 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.emk-section--full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.emk-section--bg {
  background: var(--bg-section);
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}
.emk-section--bg > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

.emk-section__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emk-blue);
  margin-bottom: 16px;
}

.emk-section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 0 0 20px;
}

.emk-section__subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 0 56px;
}

/* ============================================================
   PILLARS SECTION
   ============================================================ */
.emk-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.emk-pillar-card {
  position: relative;
  padding: 64px 48px;
  background: var(--bg-white);
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out);
  cursor: pointer;
}
.emk-pillar-card:hover { z-index: 2; transform: scale(1.01); }

.emk-pillar-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  transition: height var(--dur-mid) var(--ease-out);
}
.emk-pillar-card--energy::before { background: linear-gradient(90deg, var(--energy-primary), var(--energy-pink)); }
.emk-pillar-card--mind::before   { background: linear-gradient(90deg, var(--mind-primary), var(--mind-sky)); }
.emk-pillar-card--keto::before   { background: linear-gradient(90deg, var(--keto-primary), var(--keto-orange)); }
.emk-pillar-card:hover::before   { height: 6px; }

.emk-pillar-card__icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  display: block;
}

.emk-pillar-card__verb {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.emk-pillar-card--energy .emk-pillar-card__verb { color: var(--energy-primary); }
.emk-pillar-card--mind   .emk-pillar-card__verb { color: var(--mind-primary); }
.emk-pillar-card--keto   .emk-pillar-card__verb { color: var(--keto-primary); }

.emk-pillar-card__name {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 20px;
}

.emk-pillar-card__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 32px;
}

.emk-pillar-card__services {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emk-pillar-card__services li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}
.emk-pillar-card__services li::before {
  content: '\2192';
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ============================================================
   PRODUCT BADGES (Caffé Milani style)
   ============================================================ */
.emk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.emk-badge--keto      { background: #EDF7E8; color: #3a7a2a; }
.emk-badge--lowcarb   { background: #FFF4E6; color: #b85a00; }
.emk-badge--protein   { background: #EAF2FF; color: #1a5fa5; }
.emk-badge--sugarfree { background: #FFF0F0; color: #c0392b; }
.emk-badge--glutenfree{ background: #F5F0FF; color: #6b3fa0; }
.emk-badge--vegan     { background: #E8FBF0; color: #1d7a4a; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.emk-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.emk-product-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
  position: relative;
}
.emk-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.emk-product-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-section);
  position: relative;
}
.emk-product-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.emk-product-card:hover .emk-product-card__image img {
  transform: scale(1.06);
}

.emk-product-card__badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
}

.emk-product-card__body {
  padding: 20px;
}

.emk-product-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
  line-height: 1.3;
}

.emk-product-card__desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0 0 16px;
}

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

.emk-product-card__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.emk-product-card__add {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--emk-blue);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast) ease,
              transform var(--dur-fast) var(--ease-spring);
  font-size: 1.2rem;
  line-height: 1;
}
.emk-product-card__add:hover {
  background: var(--emk-blue-dark);
  transform: scale(1.12);
}

/* ============================================================
   BUNDLE CARDS
   ============================================================ */
.emk-bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.emk-bundle-card {
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) ease;
}
.emk-bundle-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.emk-bundle-card--starter {
  background: var(--bg-white);
  border: 2px solid var(--border);
}
.emk-bundle-card--rebalance {
  background: linear-gradient(145deg, #185FA5, #1FA3D8);
  color: #fff;
  transform: scale(1.03);
  box-shadow: var(--shadow-blue);
}
.emk-bundle-card--rebalance:hover { transform: scale(1.03) translateY(-8px); }
.emk-bundle-card--routine {
  background: var(--text-dark);
  color: #fff;
}

.emk-bundle-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.emk-bundle-card--starter   .emk-bundle-card__badge { background: var(--emk-blue-light); color: var(--emk-blue); }
.emk-bundle-card--rebalance .emk-bundle-card__badge { background: rgba(255,255,255,0.2); color: #fff; }
.emk-bundle-card--routine   .emk-bundle-card__badge { background: var(--energy-yellow); color: var(--text-dark); }

.emk-bundle-card__duration {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.emk-bundle-card__label {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
  margin-bottom: 20px;
}

.emk-bundle-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.emk-bundle-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 28px;
}

.emk-bundle-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 28px;
}

.emk-bundle-card__items {
  list-style: none;
  padding: 0; margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emk-bundle-card__items li {
  font-size: 0.83rem;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 8px;
}
.emk-bundle-card__items li::before { content: '\2713'; font-weight: 700; opacity: 1; }

/* ============================================================
   FOUNDERS SECTION
   ============================================================ */
.emk-founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.emk-founder-card {
  background: var(--bg-white);
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
}

.emk-founder-card__photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 28px;
  border: 3px solid var(--border);
}

.emk-founder-card__role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emk-blue);
  margin-bottom: 8px;
}

.emk-founder-card__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.emk-founder-card__quote {
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 28px;
  border-left: 3px solid var(--emk-blue);
  padding-left: 20px;
}

/* ============================================================
   OPEN WORKOUT SECTION
   ============================================================ */
.emk-ow-section {
  background: var(--text-dark);
  padding: var(--section-gap) 40px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.emk-ow-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(31,163,216,0.15) 0%, transparent 60%);
}

/* ============================================================
   STATS / NUMBERS
   ============================================================ */
.emk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}

.emk-stat {
  background: var(--bg-white);
  padding: 48px 32px;
  text-align: center;
}

.emk-stat__number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--emk-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.emk-stat__label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   NEWSLETTER / LEAD MAGNET
   ============================================================ */
.emk-newsletter {
  background: linear-gradient(135deg, var(--emk-blue), #1FA3D8);
  border-radius: var(--radius-xl);
  padding: 72px 56px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.emk-newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,208,122,0.15) 0%, transparent 50%);
}

.emk-newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

/* ============================================================
   POPUP LEAD MAGNET
   ============================================================ */
.emk-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) ease;
}
.emk-popup-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.emk-popup {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform var(--dur-mid) var(--ease-spring);
  box-shadow: var(--shadow-lg);
}
.emk-popup-overlay.is-open .emk-popup {
  transform: translateY(0) scale(1);
}

.emk-popup__close {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--bg-section);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: background var(--dur-fast) ease;
}
.emk-popup__close:hover { background: var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */
.emk-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 80px 40px 40px;
  position: relative;
  overflow: hidden;
}

.emk-footer__logo-bg {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 15vw, 200px);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transform: translateX(-50%) translateY(30px);
}
.emk-footer__logo-bg.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.emk-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  position: relative;
}

.emk-footer__brand img {
  height: 88px !important;
  width: auto !important;
  display: block;
}

.emk-footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.emk-footer__tagline {
  font-size: 0.85rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.emk-footer__col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.emk-footer__links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.emk-footer__links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--dur-fast) ease;
}
.emk-footer__links a:hover { color: #fff; }

.emk-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  position: relative;
}

/* ============================================================
   WOOCOMMERCE SHOP PAGE
   ============================================================ */

/* Shop hero */
.emk-shop-page { background: var(--bg-base); }

.emk-shop-hero {
  background: linear-gradient(160deg, #edf7e5 0%, #f8fdf4 50%, #e8f5f0 100%);
  padding: 100px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.emk-shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 15% 50%, rgba(91,140,62,0.28) 0%, transparent 65%),
    radial-gradient(ellipse 60% 80% at 85% 40%, rgba(141,198,65,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 50% 110%, rgba(31,163,216,0.12) 0%, transparent 60%);
}

.emk-shop-hero__inner { position: relative; z-index: 1; }

.emk-shop-hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--keto-primary);
  margin-bottom: 12px;
}

.emk-shop-hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #2d6a18 0%, var(--keto-primary) 45%, #8dc641 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 16px;
}

.emk-shop-hero__title em {
  font-style: normal;
}

.emk-shop-hero__sub {
  color: var(--text-mid);
  font-size: 1rem;
  margin: 0;
}

/* Shop layout */
.emk-shop-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* Filtri */
.emk-shop-filters {
  padding: 28px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.emk-filter-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.emk-filter-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.emk-filter-row__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 106px;
}

.emk-filter-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.emk-filter-pill {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 15px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              background var(--dur-fast) ease;
}

.emk-filter-pill:hover {
  border-color: var(--emk-blue);
  color: var(--emk-blue);
}

.emk-filter-cat.is-active {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #fff;
}

.emk-filter-tag.is-active {
  background: var(--keto-primary);
  border-color: var(--keto-primary);
  color: #fff;
}

.emk-filter-pill:focus {
  outline: none;
}

.emk-filter-pill:focus:not(.is-active) {
  background: transparent !important;
  border-color: var(--border) !important;
  color: var(--text-mid) !important;
  box-shadow: none !important;
}

/* Price range */
.emk-filter-row--price { align-items: center; }

.emk-price-filter {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 340px;
}

.emk-price-slider {
  flex: 1;
  position: relative;
  height: 20px;
  min-width: 120px;
}

.emk-price-slider__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: var(--border);
  border-radius: 4px;
  z-index: 0;
  pointer-events: none;
}

.emk-price-handle {
  position: absolute;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--text-dark);
  cursor: grab;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform var(--dur-fast) ease;
}

.emk-price-handle:active { cursor: grabbing; }

.emk-price-handle:hover,
.emk-price-handle:focus-visible {
  transform: translate(-50%, -50%) scale(1.15);
  outline: none;
}

#emk-price-handle-max { z-index: 3; }

.emk-price-range-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.emk-price-range-sep { color: var(--text-light); }

/* Reset button */
.emk-filters-reset {
  display: none;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  align-self: flex-end;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.emk-filters-reset:hover {
  color: var(--text-dark);
  border-color: var(--text-dark);
}

/* Toolbar */
.emk-shop-toolbar {
  margin-bottom: 28px;
}

.emk-shop-toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.emk-shop-toolbar__count {
  font-size: 0.85rem;
  color: var(--text-light);
}

.emk-shop-toolbar__order select,
.woocommerce-ordering select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 32px 8px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-dark);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Griglia prodotti */
.emk-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Animazione filter */
.emk-grid-filtering .emk-product-card {
  animation: emkGridFade 0.25s ease;
}

@keyframes emkGridFade {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* ── PRODUCT CARD (loop) ────────────────────────────────────── */
.emk-product-card {
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out);
}

.emk-product-card:hover {
  z-index: 2;
}

.emk-product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Immagine */
.emk-product-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-section);
}

.emk-product-card__img {
  position: absolute;
  inset: 0;
  transition: opacity var(--dur-mid) ease, transform var(--dur-slow) var(--ease-out);
}

.emk-product-card__img--main {
  z-index: 1;
  opacity: 1;
}

.emk-product-card__img--hover {
  z-index: 2;
  opacity: 0;
}

.emk-product-card:hover .emk-product-card__img--main {
  transform: scale(1.04);
}

.emk-product-card:hover .emk-product-card__img--hover {
  opacity: 1;
}

.emk-product-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Badge sale */
.emk-product-card__sale {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: var(--energy-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Badge categorie */
.emk-product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Body card */
.emk-product-card__body {
  padding: 20px 20px 24px;
  border-top: 1px solid var(--border);
}

.emk-product-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 4px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.emk-product-card__sub {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0 0 14px;
}

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

.emk-product-card__price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
}

.emk-product-card__price del {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.85em;
  margin-right: 4px;
}

.emk-product-card__price ins {
  text-decoration: none;
  color: var(--energy-primary);
}

.emk-product-card__arrow {
  font-size: 1rem;
  color: var(--text-light);
  transition: transform var(--dur-fast) ease, color var(--dur-fast) ease;
}

.emk-product-card:hover .emk-product-card__arrow {
  transform: translateX(4px);
  color: var(--emk-blue);
}

/* Card action buttons (carrello + preview) */
.emk-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.emk-card-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  padding: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur-fast) ease,
              transform var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              background var(--dur-fast) ease;
}

.emk-product-card:hover .emk-card-btn {
  opacity: 1;
  transform: translateY(0);
}

.emk-card-btn:nth-child(2) { transition-delay: 40ms; }

.emk-card-atc:hover {
  border-color: var(--keto-primary);
  color: var(--keto-primary);
  background: #f2f9ec;
}

.emk-card-preview:hover {
  border-color: var(--emk-blue);
  color: var(--emk-blue);
  background: #eef4fc;
}

.emk-card-btn.is-loading {
  pointer-events: none;
  opacity: 0.5;
}

/* Fast Preview Modal */
.emk-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  backdrop-filter: blur(3px);
}

.emk-preview-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.emk-preview-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.22s var(--ease-out);
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
}

.emk-preview-overlay.is-open .emk-preview-modal {
  transform: scale(1) translateY(0);
}

.emk-preview-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1;
  font-family: Arial, sans-serif;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.emk-preview-modal__close:hover {
  background: #1a1a1a;
  color: #fff;
}

.emk-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.emk-preview-left {
  background: var(--bg-section);
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  position: relative;
}

.emk-preview-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.emk-preview-right {
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 88vh;
}

.emk-preview-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.emk-preview-rating .star-rating { font-size: 0.85rem; color: #f5a623; }

.emk-preview-rating-count {
  font-size: 0.8rem;
  color: var(--text-light);
}

.emk-preview-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.emk-preview-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}

.emk-preview-price del {
  font-weight: 400;
  font-size: 0.85em;
  color: var(--text-light);
  margin-right: 4px;
}

.emk-preview-price ins {
  text-decoration: none;
  color: var(--energy-primary);
}

.emk-preview-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 4px 0;
}

.emk-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.emk-preview-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.emk-preview-btn--cart {
  background: var(--text-dark);
  color: #fff;
  border: none;
}

.emk-preview-btn--cart:hover { background: var(--emk-blue); }
.emk-preview-btn--cart:disabled { opacity: 0.6; cursor: default; }

.emk-preview-btn--link {
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  background: transparent;
}

.emk-preview-btn--link:hover { border-color: var(--text-dark); }

.emk-preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

@media (max-width: 640px) {
  .emk-preview-inner { grid-template-columns: 1fr; }
  .emk-preview-left { border-radius: 20px 20px 0 0; min-height: 220px; }
}

/* Paginazione standard — nascosta, sostituita da infinite scroll */
.emk-shop-pagination { display: none !important; }

/* Infinite scroll */
.emk-load-sentinel {
  height: 1px;
  margin-top: 60px;
}

.emk-load-status {
  display: none;
  text-align: center;
  padding: 32px 0 48px;
}

.emk-load-status.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.85rem;
}

.emk-load-status.is-end {
  display: block;
  color: var(--text-light);
  font-size: 0.82rem;
}

.emk-load-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--keto-primary);
  border-radius: 50%;
  animation: emk-spin 0.7s linear infinite;
}

@keyframes emk-spin {
  to { transform: rotate(360deg); }
}

/* Paginazione */

.emk-shop-pagination .woocommerce-pagination ul {
  display: inline-flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.emk-shop-pagination .woocommerce-pagination ul li a,
.emk-shop-pagination .woocommerce-pagination ul li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: all var(--dur-fast) ease;
}

.emk-shop-pagination .woocommerce-pagination ul li a:hover {
  border-color: var(--emk-blue);
  color: var(--emk-blue);
}

.emk-shop-pagination .woocommerce-pagination ul li span.current {
  background: var(--text-dark);
  border-color: var(--text-dark);
  color: #fff;
}

/* Shop empty */
.emk-shop-empty {
  text-align: center;
  padding: 80px 24px;
}

/* ── SINGLE PRODUCT PAGE ────────────────────────────────────── */
.emk-single-product {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* Breadcrumb */
.emk-breadcrumb,
.emk-single-product__breadcrumb {
  padding: 20px 0;
  font-size: 0.78rem;
  color: var(--text-light);
}

.emk-breadcrumb a,
.woocommerce-breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.emk-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover {
  color: var(--emk-blue);
}

/* Layout 2 colonne sticky */
.emk-single-product__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 64px;
}

/* Galleria sinistra */
.emk-single-product__gallery {
  position: sticky;
  top: 92px; /* header height + offset */
}

/* ── EMK Product Gallery Slider ─────────────────────────── */
.emk-product-gallery {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f0f0f0;
  user-select: none;
}

.emk-gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  background: var(--emk-energy, #E8523A);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

/* Track: stacking context per le slide in fade */
.emk-gallery-track {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: crosshair;  /* indica che è interattiva */
}

/* Slides: tutte sovrapposte, visibilità via opacity */
.emk-gallery-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
  z-index: 1;
}

/* Prima slide: position relative per dare altezza al track */
.emk-gallery-slide:first-child {
  position: relative;
}

.emk-gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.emk-gallery-slide a {
  display: block;
  line-height: 0;
  overflow: hidden;  /* clipping per zoom lens */
}

/* Immagine: cover full, zoom via JS con transform-origin */
.emk-gallery-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* Frecce prev/next — sempre visibili con buon contrasto */
.emk-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: opacity var(--dur-fast) ease,
              background var(--dur-fast) ease,
              transform var(--dur-fast) ease;
  opacity: 0;
}

.emk-product-gallery:hover .emk-gallery-arrow {
  opacity: 1;
}

.emk-gallery-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

.emk-gallery-prev { left: 14px; }
.emk-gallery-next { right: 14px; }

/* Dots */
.emk-gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 0 10px;
  background: #fff;
}

.emk-gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.emk-gallery-dot.is-active {
  background: var(--text-dark);
  transform: scale(1.4);
}

.emk-gallery-dot:hover:not(.is-active) {
  background: rgba(0,0,0,0.4);
}

/* Nascondi vecchia gallery WooCommerce */
.woocommerce-product-gallery { display: none !important; }
.flex-control-thumbs { display: none !important; }

/* Summary destra */
.emk-single-product__summary .product_title,
.emk-single-product__summary h1.entry-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-dark);
  margin: 0 0 16px;
}

/* Rating */
.emk-single-product__summary .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.emk-single-product__summary .star-rating {
  color: #f5a623;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

.emk-single-product__summary .woocommerce-review-link {
  font-size: 0.82rem;
  color: var(--text-light);
  text-decoration: none;
  line-height: 1;
}

/* Short description */
.emk-single-product__summary .woocommerce-product-details__short-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 28px;
}

/* Prezzo */
.emk-single-product__summary p.price,
.emk-single-product__summary span.price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  display: block;
}

.emk-single-product__summary p.price del,
.emk-single-product__summary span.price del {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.75em;
}

.emk-single-product__summary p.price ins,
.emk-single-product__summary span.price ins {
  text-decoration: none;
  color: var(--energy-primary);
}

/* Variazioni */
.variations {
  width: 100%;
  margin-bottom: 20px;
  border: none;
}

.variations td,
.variations th {
  padding: 4px 0 8px;
  vertical-align: top;
}

.variations label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.variations select {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: #fff;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease;
}

.variations select:focus {
  outline: none;
  border-color: var(--emk-blue);
}

/* Qty + Add to cart */
.cart {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.quantity {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.quantity .qty {
  width: 48px;
  text-align: center;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  padding: 10px 0;
  -moz-appearance: textfield;
}

.quantity .qty::-webkit-inner-spin-button,
.quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; }

button.single_add_to_cart_button {
  flex: 1;
  background: var(--text-dark);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-spring);
}

button.single_add_to_cart_button:hover {
  background: var(--emk-blue);
  transform: scale(1.02);
}

button.single_add_to_cart_button.loading {
  opacity: 0.7;
  cursor: wait;
}

/* Tab descrizione */
.emk-single-product__below {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  margin-top: 0;
}

.woocommerce-tabs .tabs {
  display: flex;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  border-bottom: 2px solid var(--border);
}

.woocommerce-tabs .tabs li {
  margin-bottom: -2px;
}

.woocommerce-tabs .tabs li a {
  display: block;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.woocommerce-tabs .tabs li.active a,
.woocommerce-tabs .tabs li a:hover {
  color: var(--text-dark);
  border-bottom-color: var(--text-dark);
}

/* Pannello tab */
.woocommerce-Tabs-panel {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 720px;
}

.woocommerce-Tabs-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 20px;
}

/* Recensioni */
#reviews {
  padding-top: 40px;
}

/* Prodotti correlati */
.emk-single-product__related {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  margin-top: 0;
}

/* ── SIDE CART DRAWER ───────────────────────────────────────── */
.emk-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
}

.emk-cart-drawer.is-open {
  pointer-events: all;
  visibility: visible;
}

.emk-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--dur-mid) ease;
}

.emk-cart-drawer.is-open .emk-cart-drawer__overlay {
  opacity: 1;
}

.emk-cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-mid) var(--ease-out);
  box-shadow: -24px 0 80px rgba(0,0,0,0.15);
}

.emk-cart-drawer.is-open .emk-cart-drawer__panel {
  transform: translateX(0);
}

/* Header drawer */
.emk-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: var(--text-dark);
  color: #fff;
  flex-shrink: 0;
}

.emk-cart-drawer__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.emk-cart-drawer__close {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
  flex-shrink: 0;
}

.emk-cart-drawer__close svg {
  stroke: #fff;
  flex-shrink: 0;
}

.emk-cart-drawer__close:hover {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.8);
}

/* Body drawer */
.emk-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Loading spinner */
.emk-cart-drawer__loading {
  display: flex;
  justify-content: center;
  padding: 48px 0;
}

.emk-cart-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--emk-blue);
  border-radius: 50%;
  animation: emkSpin 0.7s linear infinite;
}

@keyframes emkSpin {
  to { transform: rotate(360deg); }
}

/* Cart item */
.emk-cart-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.emk-cart-item:last-child {
  border-bottom: none;
}

.emk-cart-item__image {
  flex-shrink: 0;
}

.emk-cart-item__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-section);
}

.emk-cart-item__info {
  flex: 1;
  min-width: 0;
}

.emk-cart-item__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
}

.emk-cart-item__variation {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.emk-cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

/* Qty controls */
.emk-cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.emk-qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease;
}

.emk-qty-btn:hover {
  background: var(--bg-section);
}

.emk-qty-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  color: var(--text-dark);
}

.emk-cart-item__price {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}

.emk-cart-item__remove {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color var(--dur-fast) ease;
}

.emk-cart-item__remove:hover {
  color: var(--energy-primary);
}

/* Empty cart */
.emk-cart-empty {
  text-align: center;
  padding: 48px 0;
}

.emk-cart-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.emk-cart-empty__text {
  color: var(--text-mid);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* Footer drawer */
.emk-cart-drawer__footer {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: #fff;
}

.emk-cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.emk-cart-drawer__subtotal span {
  font-weight: 500;
  color: var(--text-mid);
}

.emk-cart-drawer__subtotal strong {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-dark);
  font-size: 1.3rem;
}

.emk-cart-drawer__free-shipping {
  margin-bottom: 18px;
}

.emk-fship__msg {
  font-size: 0.75rem;
  color: var(--text-mid);
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
}

.emk-fship__msg strong {
  color: var(--text-dark);
}

.emk-fship__bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 100px;
  overflow: hidden;
}

.emk-fship__bar-fill {
  height: 100%;
  border-radius: 100px;
  width: 0%;
  background: linear-gradient(90deg, #E8523A 0%, #1FA3D8 60%, #5B8C3E 100%);
  background-size: 300% 100%;
  transition: width 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stato: spedizione gratuita sbloccata */
.emk-cart-drawer__free-shipping.is-free .emk-fship__bar-fill {
  background: linear-gradient(90deg, #5B8C3E, #7FBF95);
  background-size: 100% 100%;
}

.emk-cart-drawer__free-shipping.is-free .emk-fship__msg {
  color: var(--keto-primary);
  font-weight: 600;
}

.emk-cart-drawer__free-shipping.is-free .emk-fship__msg strong {
  color: inherit;
}

.emk-cart-drawer__actions {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.emk-cart-drawer__btn {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--dur-fast) ease;
}

.emk-cart-drawer__btn--primary {
  background: var(--text-dark);
  color: #fff;
}

.emk-cart-drawer__btn--primary:hover {
  background: var(--emk-blue);
  color: #fff;
}

.emk-cart-drawer__btn--secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
}

.emk-cart-drawer__btn--secondary:hover {
  border-color: var(--text-dark);
}

.emk-cart-drawer__payment-note {
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* Cart count nell'header */
.emk-cart-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.emk-cart-trigger:hover {
  color: var(--emk-blue);
  background: var(--emk-blue-light);
}

.emk-cart-count {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emk-blue);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}

/* Fly animation */
.emk-fly-item {
  display: none;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.5);
}

/* Body locked quando carrello aperto */
body.emk-cart-open {
  overflow: hidden;
}

/* ── RESPONSIVE WOOCOMMERCE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .emk-products-grid { grid-template-columns: repeat(2, 1fr); }
  .emk-single-product__layout { grid-template-columns: 1fr; gap: 32px; }
  .emk-single-product__gallery { position: static; }
  .emk-shop-layout { padding-left: 24px; padding-right: 24px; }
  .emk-single-product { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 640px) {
  .emk-products-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .emk-shop-hero { padding: 80px 24px 40px; }
  .emk-cart-drawer__panel { width: 100%; }
  .emk-shop-filters__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .emk-products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME PAGE — FULL WIDTH OVERRIDE (Kadence reset)
   ============================================================ */

/* Hide Kadence's page title hero on home */
.emk-home .page-hero-section,
.emk-home .entry-hero,
.emk-home .entry-title {
  display: none !important;
}

/* Remove Kadence content constraints on home */
.emk-home .content-area,
.emk-home .content-container,
.emk-home .site-container,
.emk-home .content-wrap,
.emk-home .entry-content-wrap,
.emk-home .entry-content,
.emk-home .single-content,
.emk-home .single-entry,
.emk-home #primary,
.emk-home #main,
.emk-home article.entry {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Remove paragraph spacing from block-level containers */
.emk-home .entry-content > p:empty {
  display: none;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.emk-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.emk-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.emk-reveal--delay-1 { transition-delay: 0.1s; }
.emk-reveal--delay-2 { transition-delay: 0.2s; }
.emk-reveal--delay-3 { transition-delay: 0.3s; }
.emk-reveal--delay-4 { transition-delay: 0.4s; }
.emk-reveal--delay-5 { transition-delay: 0.5s; }

/* ============================================================
   ANIMATIONS KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .emk-pillars        { grid-template-columns: 1fr; }
  .emk-bundle-grid    { grid-template-columns: 1fr; }
  .emk-founders       { grid-template-columns: 1fr; }
  .emk-stats          { grid-template-columns: repeat(2,1fr); }
  .emk-footer__grid   { grid-template-columns: 1fr 1fr; }
  .emk-bundle-card--rebalance { transform: none; }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 72px;
    --section-gap-sm: 40px;
  }
  .emk-section        { padding: var(--section-gap) 24px; }
  .emk-hero__content  { padding: 120px 24px 80px; }
  .emk-trustbar       { gap: 20px; padding: 14px 24px; }
  .emk-stats          { grid-template-columns: repeat(2,1fr); }
  .emk-footer__grid   { grid-template-columns: 1fr; }
  .emk-product-grid   { grid-template-columns: repeat(2,1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .emk-product-grid { grid-template-columns: 1fr; }
  .emk-hero__ctas   { flex-direction: column; }
}

/* ============================================================
   SINGLE PRODUCT — SUMMARY ELEMENTS
   ============================================================ */

/* ── Variations ─────────────────────────────────────────── */
.emk-variations {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.emk-variation-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.emk-variation-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.emk-variation-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 1.5px solid #e0e6f0;
  border-radius: 100px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23185FA5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.emk-variation-select-wrap select:focus {
  outline: none;
  border-color: var(--emk-blue);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.12);
}

.emk-reset-variations {
  display: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  margin-top: -8px;
}

/* ── Qty wrap + cart row ─────────────────────────────────── */
.emk-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.emk-qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e6f0;
  border-radius: 100px;
  overflow: hidden;
  height: 48px;
  flex-shrink: 0;
}

.emk-qty-control {
  width: 40px;
  height: 100%;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}

.emk-qty-control:hover {
  background: var(--emk-blue-light);
  color: var(--emk-blue);
}

.emk-qty-wrap .quantity input.qty {
  width: 44px;
  height: 100%;
  border: none;
  border-left: 1.5px solid #e0e6f0;
  border-right: 1.5px solid #e0e6f0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  -moz-appearance: textfield;
  background: transparent;
}

.emk-qty-wrap .quantity input.qty::-webkit-inner-spin-button,
.emk-qty-wrap .quantity input.qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.emk-qty-wrap .quantity {
  display: contents;
}

/* ── Add to cart button ──────────────────────────────────── */
.emk-atc-btn,
.single_add_to_cart_button.emk-atc-btn {
  flex: 1;
  height: 48px;
  padding: 0 28px;
  background: var(--text-dark);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.emk-atc-btn:hover,
.single_add_to_cart_button.emk-atc-btn:hover {
  background: var(--emk-blue);
  transform: translateY(-1px);
}

.emk-atc-btn:active {
  transform: translateY(0);
}

/* ── Wishlist ────────────────────────────────────────────── */
.emk-wishlist-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}

.emk-wishlist-btn svg { transition: fill var(--dur-fast) ease; }

.emk-wishlist-btn:hover {
  color: #e85555;
}

.emk-wishlist-btn:hover svg {
  fill: #e85555;
  stroke: #e85555;
}

/* YITH wishlist integration */
.emk-wishlist-wrap .yith-wcwl-add-to-wishlist {
  margin: 0;
}

.emk-wishlist-wrap .add_to_wishlist {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 8px 0;
  transition: color var(--dur-fast) ease;
}

.emk-wishlist-wrap .add_to_wishlist::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.emk-wishlist-wrap .add_to_wishlist:hover { color: #e85555; }

/* ── Trust strip ─────────────────────────────────────────── */
.emk-product-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef2f8;
}

.emk-product-trust__item,
.emk-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 12px 6px;
  background: #f8faff;
  border-radius: 12px;
}

.emk-product-trust__item svg,
.emk-trust-item svg {
  color: var(--emk-blue);
  flex-shrink: 0;
}

.emk-product-trust__item span,
.emk-trust-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

@media (max-width: 480px) {
  .emk-product-trust { grid-template-columns: repeat(2, 1fr); }
}

/* ── WooCommerce variation price/stock display ───────────── */
.woocommerce-variation.single_variation {
  margin-bottom: 12px;
  min-height: 0;
}

.woocommerce-variation-price .price {
  font-size: 1.4rem;
  font-weight: 700;
}

.woocommerce-variation-availability .stock {
  font-size: 0.85rem;
  color: #5B8C3E;
  font-weight: 600;
}

/* ── Stock HTML ──────────────────────────────────────────── */
.woocommerce-stock-html.in-stock {
  display: none;
}

/* ============================================================
   SINGLE PRODUCT — BELOW-FOLD SECTIONS
   ============================================================ */

.emk-product-section {
  padding: 72px 0;
  border-top: 1px solid #eef2f8;
}

.emk-product-section--dark {
  background: var(--text-dark);
  color: #fff;
  border-top: none;
}

.emk-product-section__header {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 40px;
}

.emk-product-section__header span,
.emk-product-section__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  color: inherit;
  margin: 0;
}

.emk-product-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Description section (2 col) ────────────────────────── */
.emk-product-desc-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 40px;
  border-top: 1px solid #eef2f8;
}

.emk-product-desc-section__img img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.emk-product-desc-section__content--full {
  grid-column: 1 / -1;
}

.emk-product-desc-section__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 8px 0 16px;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.emk-product-desc-section__text p,
.emk-product-desc-section__text div {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
}

@media (max-width: 768px) {
  .emk-product-desc-section { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
}

/* ── Accordion ───────────────────────────────────────────── */
.emk-accordion {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.emk-product-section:not(.emk-product-section--dark) .emk-accordion {
  border-top-color: #e0e6f0;
}

.emk-accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.emk-product-section:not(.emk-product-section--dark) .emk-accordion-item {
  border-bottom-color: #e0e6f0;
}

.emk-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.emk-accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-fast) ease, background var(--dur-fast) ease, color var(--dur-fast) ease;
  opacity: 0.7;
}

.emk-accordion-icon .icon-minus { display: none; }
.emk-accordion-icon .icon-plus  { display: block; }

.emk-accordion-item.is-open .emk-accordion-icon {
  transform: rotate(180deg);
  opacity: 1;
}

.emk-accordion-item.is-open .emk-accordion-icon .icon-minus { display: block; }
.emk-accordion-item.is-open .emk-accordion-icon .icon-plus  { display: none; }

.emk-product-section:not(.emk-product-section--dark) .emk-accordion-item.is-open .emk-accordion-icon {
  background: var(--emk-blue-light);
  color: var(--emk-blue);
  border-color: var(--emk-blue);
}

.emk-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.emk-accordion-item.is-open .emk-accordion-body {
  max-height: 600px;
}

.emk-accordion-body .emk-accordion-content,
.emk-accordion-body__inner {
  padding: 0 0 24px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: inherit;
  opacity: 0.85;
}

.emk-accordion-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.emk-accordion-body table td,
.emk-accordion-body table th {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.emk-product-section:not(.emk-product-section--dark) .emk-accordion-body table td,
.emk-product-section:not(.emk-product-section--dark) .emk-accordion-body table th {
  border-bottom-color: #eef2f8;
}

/* ── Reviews section ─────────────────────────────────────── */
.emk-reviews-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.emk-rating-summary {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid #e0e6f0;
  flex-wrap: wrap;
}

.emk-rating-summary__score {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
}

.emk-rating-summary__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.emk-rating-summary__stars svg {
  fill: #f5a623;
  color: #f5a623;
}

.emk-rating-summary__count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* WooCommerce reviews override */
#reviews #comments {
  background: transparent;
  padding: 0;
}

#reviews #comments h2 { display: none; }

#reviews ol.commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#reviews ol.commentlist li.comment {
  background: #f8faff;
  border-radius: 16px;
  padding: 24px;
}

#reviews ol.commentlist .comment-text {
  margin: 0;
}

#reviews ol.commentlist .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

#reviews ol.commentlist .woocommerce-review__author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

#reviews ol.commentlist .woocommerce-review__published-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

#reviews .star-rating {
  color: #f5a623;
  font-size: 0.9rem;
}

#reviews p.description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
}

#reviews #review_form_wrapper {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e0e6f0;
}

#reviews #review_form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

#reviews #review_form textarea,
#reviews #review_form input[type="text"],
#reviews #review_form input[type="email"] {
  border: 1.5px solid #e0e6f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}

#reviews #review_form input#submit {
  background: var(--text-dark);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 12px 32px;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-fast) ease;
}

#reviews #review_form input#submit:hover { background: var(--emk-blue); }

/* ── Related products ────────────────────────────────────── */
.emk-related-section {
  padding: 64px 0;
  border-top: 1px solid #eef2f8;
}

.emk-related-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 32px;
  text-align: center;
}

.emk-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .emk-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .emk-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── Below-fold responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .emk-product-section { padding: 48px 0; }
  .emk-product-section__header { padding: 0 24px; margin-bottom: 32px; }
  .emk-product-section__inner { padding: 0 24px; }
  .emk-product-section__header span,
  .emk-product-section__title { font-size: clamp(2rem, 8vw, 3.5rem); }
  .emk-accordion { padding: 0 24px; }
  .emk-reviews-inner { padding: 0 24px; }
}

/* ============================================================
   PRODUCT PAGE — LAYOUT FIXES & OVERRIDES
   ============================================================ */

/* 1. Nascondi breadcrumb Kadence (usiamo il nostro) */
.product-title.product-above,
#kadence-breadcrumbs:not(.emk-breadcrumb) {
  display: none !important;
}

/* 2. Rimuovi padding Kadence da .entry-content-wrap e box-shadow da .single-entry
      (WooCommerce aggiunge queste classi all'elemento #product-xx) */
.emk-single-product.entry-content-wrap {
  padding: 0 !important;
}

.emk-single-product.entry.single-entry,
.emk-single-product.entry {
  box-shadow: none !important;
}

/* 3. Sfondo body/inner-wrap: bianco per pagine prodotto
      (Kadence imposta body bg = #444 che crea "carta grigia su grigio") */
body.single-product,
body.single-product #inner-wrap {
  background: #fff !important;
}

/* 4. Boxed product layout — max-width centrato con padding laterale */
.emk-single-product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px 0;
}

/* 5. Below-fold sections: si estendono fino ai bordi del contenitore con sfondo pieno
      Ma il contenuto interno è già boxato dal proprio max-width */
.emk-single-product__below {
  margin: 0 -48px;  /* annulla il padding del parent per le sezioni full-bleed */
}

/* 6. Accordion trigger — padding destra per dare respiro all'icona */
.emk-accordion-trigger {
  padding: 22px 12px 22px 0;
}

/* 7. WooCommerce product meta (SKU / Categoria) — stile discreto */
.emk-single-product__summary .product_meta {
  margin: 12px 0 0;
  padding: 12px 0;
  border-top: 1px solid #eef2f8;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.emk-single-product__summary .product_meta span.sku_wrapper,
.emk-single-product__summary .product_meta span.posted_in,
.emk-single-product__summary .product_meta span.tagged_as {
  display: block;
}

.emk-single-product__summary .product_meta a {
  color: var(--emk-blue);
  text-decoration: none;
}

.emk-single-product__summary .product_meta a:hover {
  text-decoration: underline;
}

/* 8. Sezione below: headings più compatti su desktop */
@media (max-width: 768px) {
  .emk-single-product {
    padding: 24px 20px 0;
  }
  .emk-single-product__below {
    margin: 0 -20px;
  }
}

/* ============================================================
   ACCORDION — KETO GRADIENT HOVER (fix completo)
   ============================================================ */

/* Base trigger: reset esplicito per sovrascrivere stili Kadence/browser */
.emk-accordion-trigger {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  transition: background var(--dur-fast) ease !important;
  padding: 22px 14px;  /* uguale sx e dx */
}

/* Hover — sezioni DARK (Specifiche, FAQ): gradient Keto pieno */
.emk-product-section--dark .emk-accordion-trigger:hover {
  background: linear-gradient(90deg,
    rgba(91,140,62,0.45) 0%,
    rgba(91,140,62,0.18) 55%,
    transparent 100%) !important;
}

/* Selected/Open — sezioni DARK: gradient Keto più deciso */
.emk-product-section--dark .emk-accordion-item.is-open > .emk-accordion-trigger {
  background: linear-gradient(90deg,
    rgba(91,140,62,0.55) 0%,
    rgba(91,140,62,0.22) 55%,
    transparent 100%) !important;
  color: #fff !important;
}

/* Icona cerchio: verde keto quando aperta nella sezione dark */
.emk-product-section--dark .emk-accordion-item.is-open .emk-accordion-icon {
  border-color: #5B8C3E !important;
  color: #5B8C3E !important;
  background: rgba(91,140,62,0.20) !important;
}

/* Hover — sezioni LIGHT (Specifiche se light, Reviews) */
.emk-product-section:not(.emk-product-section--dark) .emk-accordion-trigger:hover {
  background: linear-gradient(90deg,
    rgba(91,140,62,0.12) 0%,
    rgba(91,140,62,0.04) 60%,
    transparent 100%) !important;
}

/* Selected/Open — sezioni LIGHT */
.emk-product-section:not(.emk-product-section--dark) .emk-accordion-item.is-open > .emk-accordion-trigger {
  background: linear-gradient(90deg,
    rgba(91,140,62,0.15) 0%,
    rgba(91,140,62,0.05) 60%,
    transparent 100%) !important;
}

/* ============================================================
   ADD TO CART — NOTIFICA INLINE SOPPRESSA
   (usiamo lo side cart al posto del notice WooCommerce)
   ============================================================ */

/* Nascondi il messaggio "X è stato aggiunto al carrello" */
.woocommerce-message,
.woocommerce-info.woocommerce-message,
ul.woocommerce-messages,
.wc-block-mini-cart__overlay {
  display: none !important;
}

/* Side cart opening animation — flash sul badge */
@keyframes emk-cart-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.5); background: #5B8C3E; }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.emk-cart-count.is-bouncing {
  animation: emk-cart-pulse 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

/* Header minimal checkout */
.emk-header--checkout {
  position: static !important;
  transform: none !important;
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 0 var(--border) !important;
}

.emk-checkout-header__inner {
  justify-content: space-between;
  padding: 16px 40px !important;
}

.emk-checkout-header__label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.emk-checkout-header__secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* Rimuovi padding-top aggiunto per header fisso */
.woocommerce-checkout #inner-wrap,
.woocommerce-checkout .site-main,
.woocommerce-checkout .wrap.kt-clear {
  padding-top: 0 !important;
}

/* Nascondi titolo pagina + hero band Kadence sul checkout */
.woocommerce-checkout .entry-header,
.woocommerce-checkout .page-header,
.woocommerce-checkout .kadence-page-header,
.woocommerce-checkout .wp-block-post-title,
.woocommerce-checkout h1.entry-title,
.woocommerce-checkout .page-title,
.woocommerce-checkout .kadence-inner-column-inner > h1,
.woocommerce-checkout #kt-inside-inner-col > h1 {
  display: none !important;
}

/* Layout pagina */
.woocommerce-checkout .woocommerce {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 40px 80px;
}

/* Margine tra header checkout e contenuto */
.woocommerce-checkout #inner-wrap,
.woocommerce-checkout .site-main {
  margin-top: 80px !important;
}

/* Grid 2 colonne */
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Colonna sinistra: dettagli cliente */
.woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 3;
}

/* Riepilogo ordine — colonna destra */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  grid-column: 2;
}

.woocommerce-checkout #order_review_heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

/* Box ordine riepilogo */
.woocommerce-checkout-review-order {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 24px;
}

/* Tabella ordine */
.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.woocommerce-checkout-review-order-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
}

.woocommerce-checkout-review-order-table .product-name {
  font-weight: 600;
  color: var(--text-dark);
}

.woocommerce-checkout-review-order-table .product-total {
  text-align: right;
  font-weight: 700;
  color: var(--text-dark);
}

.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: none;
  padding-top: 16px;
}

/* Sezione heading (Dati di fatturazione, Spedizione) */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

/* Griglia campi */
.woocommerce-checkout .form-row {
  margin-bottom: 16px;
}

.woocommerce-checkout .form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.woocommerce-checkout .form-row label .required {
  color: var(--energy-primary);
  font-weight: 700;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  outline: none;
  -webkit-appearance: none;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--emk-blue);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
}

.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select {
  border-color: var(--energy-primary);
}

.woocommerce-checkout .form-row.woocommerce-validated input.input-text {
  border-color: var(--keto-primary);
}

/* Checkbox spedizione */
.woocommerce-checkout .woocommerce-shipping-fields .shipping_address {
  margin-top: 16px;
}

/* Checkbox "ship to different address" */
#ship-to-different-address label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  color: var(--text-dark) !important;
  padding: 14px 16px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: border-color var(--dur-fast) ease;
}

#ship-to-different-address label:hover { border-color: var(--emk-blue); }

#ship-to-different-address input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--emk-blue);
  cursor: pointer;
}

/* Coupon */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  margin-bottom: 0;
}

.woocommerce-checkout .woocommerce-info {
  background: var(--emk-blue-light);
  border: none;
  border-left: 3px solid var(--emk-blue);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.woocommerce-checkout .woocommerce-info::before { display: none; }

.woocommerce-checkout .woocommerce-info a {
  color: var(--emk-blue);
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-checkout #coupon_code {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  flex: 1;
}

.woocommerce-checkout #coupon_code:focus { border-color: var(--emk-blue); }

/* Sezione pagamento */
#payment {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 20px;
}

#payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0;
}

#payment ul.payment_methods li {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

#payment ul.payment_methods li:last-child { border-bottom: none; }

#payment ul.payment_methods li label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

#payment ul.payment_methods li input[type="radio"] {
  accent-color: var(--emk-blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

#payment ul.payment_methods li img {
  height: 24px;
  width: auto;
  margin-left: auto;
}

.payment_box {
  padding: 14px 20px;
  background: rgba(24,95,165,0.04);
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Bottone conferma ordine — classico + blocchi WooCommerce */
#payment #place_order,
.woocommerce-checkout #place_order,
body.woocommerce-checkout #place_order,
.wc-block-checkout__place-order-button,
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button,
.wc-block-components-checkout-place-order-button {
  display: inline-block !important;
  width: auto !important;
  min-width: 200px !important;
  padding: 17px 36px !important;
  background: linear-gradient(135deg, #E8523A 0%, #1FA3D8 55%, #5B8C3E 100%) !important;
  background-size: 200% 100% !important;
  background-position: 0% 50% !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 100px !important;
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background-position 0.5s ease, transform 200ms ease, box-shadow 200ms ease !important;
  box-shadow: 0 8px 28px rgba(31,163,216,0.28) !important;
  margin-top: 20px !important;
  text-align: center !important;
  text-decoration: none !important;
  -webkit-text-fill-color: #ffffff !important;
  outline: none !important;
}

#payment #place_order:hover,
#payment #place_order:focus,
.woocommerce-checkout #place_order:hover,
.wc-block-checkout__place-order-button:hover,
.wc-block-checkout__place-order-button:focus,
.wp-block-woocommerce-checkout-actions-block .wc-block-components-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background-position: 100% 50% !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 36px rgba(232,82,58,0.32) !important;
}

/* Testo interno al bottone blocchi */
.wc-block-checkout__place-order-button .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button .wc-block-components-button__text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Trust strip sotto il bottone */
.woocommerce-checkout-review-order::after {
  content: '🔒 SSL · ↩ Reso entro 14 gg · \2713 Dati protetti';
  display: block;
  margin-top: 16px;
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  letter-spacing: 0.03em;
}

/* Errori */
.woocommerce-error {
  background: #fff5f5;
  border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #b91c1c;
  list-style: none;
  margin-bottom: 24px;
}

/* Login form sul checkout */
.woocommerce-checkout .woocommerce-form-login {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}

/* Registrazione account durante checkout */
.woocommerce-account-fields {
  margin-top: 8px;
  padding: 18px 20px;
  background: var(--emk-blue-light);
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(24,95,165,0.15);
}

.woocommerce-account-fields label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--emk-blue) !important;
  cursor: pointer;
}

.woocommerce-account-fields input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--emk-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.woocommerce-account-fields .create-account {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.woocommerce-account-fields .create-account .form-row {
  margin-bottom: 0;
}

/* Footer checkout */
.emk-checkout-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 40px;
}

.emk-checkout-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.emk-checkout-footer__logo img {
  display: block;
  height: 42px !important;
  width: auto !important;
  opacity: 0.7;
  transition: opacity var(--dur-fast) ease;
}

.emk-checkout-footer__logo:hover img { opacity: 1; }

.emk-checkout-footer__help {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.emk-checkout-footer__help-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

.emk-checkout-footer__contact,
.emk-checkout-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  transition: border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              background var(--dur-fast) ease;
  color: var(--text-dark);
}

.emk-checkout-footer__contact:hover {
  border-color: var(--emk-blue);
  color: var(--emk-blue);
}

.emk-checkout-footer__wa {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

.emk-checkout-footer__wa:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .woocommerce-checkout #customer_details { grid-row: auto; }
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review { grid-column: 1; }
  .woocommerce-checkout-review-order { position: static; }
  .emk-checkout-header__inner { padding: 14px 24px !important; }
  .emk-checkout-header__label { position: static; transform: none; }
  .emk-checkout-header__secure { display: none; }
  .woocommerce-checkout .woocommerce { padding: 32px 20px 60px; }
  .emk-checkout-footer { padding: 20px 24px; }
  .emk-checkout-footer__help-label { display: none; }
}
@media (max-width: 480px) {
  .emk-checkout-footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .emk-checkout-footer__help { gap: 10px; }
  .woocommerce-checkout .woocommerce { padding: 24px 16px 48px; }
  #payment #place_order,
  .woocommerce-checkout #place_order,
  .wc-block-checkout__place-order-button { min-width: 160px !important; padding: 15px 24px !important; }
}

/* ============================================================
   CHECKOUT — Terms block: visual alert + modal
   ============================================================ */
@keyframes emk-terms-pulse {
  0%,100% { border-color: rgba(232,82,58,.3); box-shadow: 0 0 0 0 rgba(232,82,58,0); }
  50%      { border-color: rgba(232,82,58,.8); box-shadow: 0 0 0 5px rgba(232,82,58,.1); }
}
@keyframes emk-terms-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
.wp-block-woocommerce-checkout-terms-block {
  background: rgba(232,82,58,.04);
  border: 1.5px dashed rgba(232,82,58,.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 8px;
  animation: emk-terms-pulse 2.2s ease-in-out 1.5s 3;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.wp-block-woocommerce-checkout-terms-block:has(input[type="checkbox"]:checked) {
  border-color: rgba(34,160,100,.45);
  background: rgba(34,160,100,.04);
  animation: none;
}
.wp-block-woocommerce-checkout-terms-block.emk-terms--error {
  animation: emk-terms-shake .45s ease;
  border-color: rgba(232,82,58,.9) !important;
  background: rgba(232,82,58,.07) !important;
}
.wp-block-woocommerce-checkout-terms-block input[type="checkbox"] {
  width: 19px; height: 19px;
  accent-color: #E8523A;
  cursor: pointer; flex-shrink: 0;
}
.emk-terms-required-badge {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: .67rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #E8523A;
  margin-bottom: 8px; line-height: 1.4;
}
.emk-terms-required-badge::before { content: '⚠'; font-size: .8rem; flex-shrink: 0; margin-top: 1px; }

/* Modal overlay */
.emk-terms-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.52);
  z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .22s;
}
.emk-terms-overlay.is-open { opacity: 1; pointer-events: all; }
.emk-terms-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 680px; width: 100%;
  max-height: 82vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .24s;
  box-shadow: 0 28px 70px rgba(0,0,0,.2);
}
.emk-terms-overlay.is-open .emk-terms-modal { transform: translateY(0) scale(1); }
.emk-terms-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px; border-bottom: 1px solid #ececec; flex-shrink: 0;
}
.emk-terms-modal__head h3 { margin: 0; font-size: 1rem; font-weight: 800; color: #1a1a1a; }
.emk-terms-modal__close {
  width: 44px; height: 44px; border-radius: 50%;
  background: #f4f4f4; border: none; font-size: 1.1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #555; transition: background .18s, color .18s; line-height: 1;
  flex-shrink: 0;
}
.emk-terms-modal__close:hover { background: #E8523A; color: #fff; }
.emk-terms-modal__body {
  overflow-y: auto; padding: 22px 26px;
  font-size: .88rem; line-height: 1.72; color: #333;
}
.emk-terms-modal__body h2 { font-size: .95rem; font-weight: 800; margin: 22px 0 5px; }
.emk-terms-modal__body h3 { font-size: .87rem; font-weight: 700; margin: 14px 0 4px; color: #555; }
.emk-terms-modal__body ul { padding-left: 18px; margin: 6px 0 12px; }
.emk-terms-modal__body p { margin: 0 0 10px; }
.emk-terms-modal__foot {
  padding: 14px 26px; border-top: 1px solid #ececec;
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
  gap: 12px;
}
.emk-terms-modal__foot-note { font-size: .78rem; color: #999; }
.emk-terms-modal__accept {
  background: linear-gradient(135deg, #E8523A, #185fa5);
  color: #fff; border: none; border-radius: 50px;
  padding: 11px 28px; font-size: .86rem; font-weight: 700;
  cursor: pointer; transition: opacity .18s; white-space: nowrap;
}
.emk-terms-modal__accept:hover { opacity: .88; }
@media (max-width: 600px) {
  .emk-terms-modal__foot { flex-direction: column; align-items: stretch; }
  .emk-terms-modal__accept { text-align: center; }
  .emk-terms-overlay { padding: 0; align-items: flex-end; }
  .emk-terms-modal { max-height: 88vh; max-width: 100%; border-radius: 20px 20px 0 0; }
  .emk-terms-overlay.is-open .emk-terms-modal { transform: translateY(0) scale(1); }
  .emk-terms-modal__head { padding: 14px 18px; }
  .emk-terms-modal__body { padding: 18px; }
  .emk-terms-modal__foot { padding: 12px 18px; }
}
