/*
Theme Name: Academie Fizioterapie
Theme URI: http://academie-fizioterapie.test
Description: Child theme rapid si curat pentru academia de fizioterapie, construit peste Astra.
Author: Mad Hes
Template: astra
Version: 1.0.0
Text Domain: academie-fizioterapie
*/

:root {
  --af-blue: #003080;
  --af-blue-2: #103080;
  --af-green: #10b080;
  --af-green-2: #10a080;
  --af-ink: #09224f;
  --af-muted: #5a6f91;
  --af-line: #dbe6f2;
  --af-soft: #f4f9fc;
  --af-white: #ffffff;
  --af-shadow: 0 18px 50px rgba(0, 48, 128, 0.12);
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--af-white);
  color: var(--af-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.af-container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
  width: 100%;
}

.af-site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 230, 242, 0.75);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 50;
}

.af-header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 82px;
}

.af-logo img {
  max-height: 68px;
  width: auto;
}

.af-mobile-menu-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 48, 128, 0.2);
  border-radius: 8px;
  color: var(--af-blue);
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.af-mobile-menu-toggle .dashicons {
  font-size: 24px;
  height: 24px;
  width: 24px;
}

.af-nav {
  align-items: center;
  display: flex;
  gap: 26px;
}

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

.af-nav a {
  color: var(--af-ink);
  font-size: 15px;
  font-weight: 700;
  padding: 30px 0 24px;
  position: relative;
}

.af-nav .current-menu-item > a::after,
.af-nav a:hover::after {
  background: var(--af-green);
  bottom: 18px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.af-header-cart {
  align-items: center;
  border: 1px solid rgba(0, 48, 128, 0.24);
  border-radius: 8px;
  color: var(--af-blue);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 0 13px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.af-header-cart:hover {
  background: #f7fbff;
  border-color: rgba(16, 176, 128, 0.45);
  box-shadow: 0 10px 22px rgba(0, 48, 128, 0.1);
  color: var(--af-blue);
}

.af-header-cart .dashicons {
  font-size: 20px;
  height: 20px;
  width: 20px;
}

.af-header-cart-count {
  align-items: center;
  background: var(--af-green);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 7px;
}

.af-button,
.af-cta,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  align-items: center;
  background: var(--af-green);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.af-button:hover,
.af-cta:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--af-green-2);
  box-shadow: 0 14px 28px rgba(16, 176, 128, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.af-button.is-secondary {
  background: #fff;
  border: 1px solid rgba(0, 48, 128, 0.28);
  color: var(--af-blue);
}

.af-button.is-secondary:hover {
  background: #f7fbff;
  box-shadow: 0 12px 26px rgba(0, 48, 128, 0.12);
  color: var(--af-blue);
}

.af-main {
  min-height: 60vh;
}

.af-hero {
  background:
    radial-gradient(circle at 82% 14%, rgba(16, 176, 128, 0.16), transparent 28%),
    linear-gradient(110deg, #f8fcff 0%, #eef7fb 52%, #ffffff 100%);
  min-height: 650px;
  overflow: hidden;
  overflow-x: clip;
  padding: 94px 0 76px;
  position: relative;
}

.af-hero::before,
.af-footer-cta::after {
  border: 16px solid rgba(16, 176, 128, 0.12);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  height: 520px;
  pointer-events: none;
  position: absolute;
  width: 520px;
}

.af-hero::before {
  left: 42%;
  top: -120px;
  transform: rotate(-28deg);
}

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

.af-hero-full-graphic {
  bottom: 0;
  left: max(46vw, calc(50% - 40px));
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 0;
}

.af-hero-full-graphic::before {
  background: linear-gradient(90deg, #f8fcff 0%, rgba(248, 252, 255, 0.82) 18%, rgba(248, 252, 255, 0) 46%);
  bottom: 0;
  content: "";
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.af-hero-full-graphic img {
  height: 100%;
  object-fit: cover;
  object-position: center right;
  width: 100%;
}

.af-hero-copy {
  max-width: 590px;
  position: relative;
  z-index: 2;
}

.af-eyebrow {
  color: var(--af-green);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.af-hero h1,
.af-page-hero h1 {
  color: var(--af-blue);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.02;
  margin: 0 0 20px;
}

.af-hero h1 span {
  color: var(--af-green);
  display: block;
}

.af-lead {
  color: #26456f;
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 640px;
}

.af-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 30px;
}

.af-proof-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
}

.af-proof-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 230, 242, 0.9);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  display: flex;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
}

.af-icon {
  align-items: center;
  background: #effbf7;
  border: 1px solid rgba(16, 176, 128, 0.2);
  border-radius: 8px;
  color: var(--af-green);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 22px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.af-proof-card strong,
.af-stat strong,
.af-feature-row strong,
.af-step strong {
  color: var(--af-blue);
  display: block;
}

.af-stat-band {
  margin-top: -20px;
  position: relative;
  z-index: 3;
}

.af-stat-grid {
  background: linear-gradient(120deg, var(--af-blue), #0f438f);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  color: #fff;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.af-stat {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding: 28px 26px;
}

.af-stat:last-child {
  border-right: 0;
}

.af-stat strong {
  color: #fff;
  font-size: 28px;
}

.af-stat span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.af-section {
  padding: 78px 0;
}

.af-section.is-soft {
  background: var(--af-soft);
}

.af-two-col {
  align-items: center;
  display: grid;
  gap: 62px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.af-media-card,
.af-card,
.af-quote {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  overflow: hidden;
}

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

.af-section h2 {
  color: var(--af-blue);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.14;
  margin: 0 0 18px;
}

.af-section p {
  color: var(--af-muted);
  line-height: 1.7;
}

.af-feature-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.af-feature-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 52px minmax(0, 1fr);
}

.af-section-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.af-courses-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.af-card-media {
  overflow: hidden;
  position: relative;
}

.af-card-media img,
.af-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.af-image-label,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap::after {
  background: rgba(16, 176, 128, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  bottom: 14px;
  box-shadow: 0 10px 24px rgba(0, 48, 128, 0.16);
  color: #fff;
  content: "Acreditat";
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  left: 14px;
  line-height: 1;
  padding: 8px 11px;
  position: absolute;
  text-transform: uppercase;
  z-index: 2;
}

.af-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.af-badge {
  background: #e9faf5;
  border-radius: 8px;
  color: var(--af-green);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
  padding: 7px 10px;
}

.af-meta {
  color: var(--af-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
  margin: 10px 0 14px;
}

.af-card h3 {
  color: var(--af-blue);
  font-size: 22px;
  margin: 0 0 6px;
}

.af-card-body > p {
  flex: 1;
}

.af-link-button {
  align-items: center;
  border: 1px solid rgba(0, 48, 128, 0.28);
  border-radius: 8px;
  color: var(--af-blue);
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 18px;
  min-height: 44px;
  padding: 0 14px;
}

.af-card .af-link-button {
  margin-top: auto;
}

.af-instructor {
  align-items: center;
  display: grid;
  gap: 52px;
  grid-template-columns: 180px minmax(0, 1fr) minmax(280px, 0.75fr);
}

.af-instructor img {
  border-radius: 8px;
  box-shadow: var(--af-shadow);
}

.af-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.af-chip {
  background: #eaf2fb;
  border-radius: 8px;
  color: var(--af-blue);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.af-quote {
  padding: 30px;
}

.af-quote-mark {
  color: var(--af-green);
  font-size: 52px;
  font-weight: 900;
  line-height: 0.7;
}

.af-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.af-step {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  padding: 24px;
}

.af-step-number {
  align-items: center;
  background: var(--af-green);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  margin-bottom: 16px;
  width: 28px;
}

.af-page-hero {
  background: linear-gradient(110deg, #f4f9fc, #ffffff);
  border-bottom: 1px solid var(--af-line);
  overflow: hidden;
  overflow-x: clip;
  padding: 68px 0;
  position: relative;
}

.af-page-hero::after {
  border: 14px solid rgba(16, 176, 128, 0.12);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  height: 360px;
  position: absolute;
  right: -90px;
  top: -120px;
  transform: rotate(-22deg);
  width: 360px;
}

.af-page-hero p {
  color: var(--af-muted);
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

.af-page-hero-grid {
  align-items: center;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  position: relative;
  z-index: 1;
}

.af-page-hero-copy {
  min-width: 0;
}

.af-page-hero-media {
  border: 1px solid rgba(219, 230, 242, 0.92);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  min-height: 260px;
  overflow: hidden;
}

.af-page-hero-media img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.af-content {
  padding: 62px 0;
}

.af-content .entry-content {
  color: #213b62;
  font-size: 18px;
  line-height: 1.8;
  max-width: 880px;
}

.af-content .entry-content h2,
.af-content .entry-content h3 {
  color: var(--af-blue);
}

.af-contact-layout {
  align-items: start;
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
}

.af-contact-form-col .entry-content {
  max-width: none;
}

.af-contact-info-card {
  background: linear-gradient(180deg, #ffffff, #f6fbfd);
  border: 1px solid var(--af-line);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  padding: 30px;
  position: sticky;
  top: 112px;
}

.af-contact-info-card h2 {
  color: var(--af-blue);
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 24px;
}

.af-contact-list {
  display: grid;
  gap: 18px;
}

.af-contact-list > div {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 52px minmax(0, 1fr);
}

.af-contact-list strong,
.af-contact-note strong {
  color: var(--af-blue);
  display: block;
}

.af-contact-list a,
.af-contact-list span {
  color: var(--af-muted);
}

.af-contact-note {
  border-top: 1px solid var(--af-line);
  margin-top: 24px;
  padding-top: 24px;
}

.af-contact-note p {
  color: var(--af-muted);
  line-height: 1.65;
  margin: 8px 0 0;
}

.af-footer-cta {
  background: linear-gradient(120deg, var(--af-blue), #0d3d89);
  color: #fff;
  overflow: hidden;
  overflow-x: clip;
  padding: 54px 0;
  position: relative;
}

.af-footer-cta::after {
  border-color: rgba(16, 176, 128, 0.28);
  border-left-color: transparent;
  bottom: -230px;
  right: -80px;
}

.af-footer-cta .af-container {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.af-footer-cta h2 {
  color: #fff;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  margin: 0 0 10px;
}

.af-footer-cta p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.af-site-footer {
  background: #fff;
  border-top: 1px solid var(--af-line);
}

.af-footer-inner {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  padding: 30px 0;
}

.af-footer-logo img {
  max-height: 54px;
}

.af-footer-contact,
.af-footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.af-footer-contact,
.af-footer-menu a,
.af-copyright {
  color: var(--af-muted);
  font-size: 14px;
}

.af-footer-bottom {
  border-top: 1px solid var(--af-line);
  padding: 16px 0 24px;
}

.af-footer-bottom .af-container {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.af-mobile-bottom-nav {
  display: none;
}

.af-cookiebar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: var(--af-shadow);
  display: none;
  flex-wrap: wrap;
  gap: 18px;
  left: auto;
  max-width: 420px;
  padding: 18px;
  position: fixed;
  right: 18px;
  z-index: 90;
}

.af-cookiebar.is-visible {
  display: flex;
}

.af-cookiebar p {
  flex-basis: 100%;
  color: var(--af-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.af-cookiebar button {
  white-space: nowrap;
}

.af-cart-feedback {
  background: #fff;
  border: 1px solid var(--af-line);
  border-left: 5px solid var(--af-green);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  display: none;
  max-width: 420px;
  padding: 22px;
  position: fixed;
  right: 24px;
  top: 102px;
  width: calc(100vw - 48px);
  z-index: 120;
}

.af-cart-feedback.is-visible {
  display: block;
}

.af-cart-feedback strong,
.af-cart-inline-notice strong {
  color: var(--af-blue);
  display: block;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.af-cart-feedback p,
.af-cart-inline-notice span {
  color: var(--af-muted);
  display: block;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.af-cart-feedback-close {
  align-items: center;
  background: #f5f9fc;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  color: var(--af-blue);
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
}

.af-cart-feedback-actions,
.af-cart-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.af-cart-feedback-actions .af-button,
.af-cart-inline-actions .af-button {
  min-height: 42px;
  padding: 0 16px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: #fff;
  border: 1px solid var(--af-line);
  border-left: 5px solid var(--af-green);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 48, 128, 0.08);
  color: var(--af-ink);
  line-height: 1.55;
  margin: 0 0 24px;
  padding: 18px 20px;
}

.woocommerce-error {
  border-left-color: #c44747;
}

.af-cart-inline-notice {
  display: grid;
  gap: 4px;
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-products-header,
.woocommerce .page-title,
.woocommerce .page-description,
.woocommerce-result-count,
.woocommerce-ordering {
  display: none;
}

.woocommerce ul.products {
  align-items: stretch;
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.academie-site.woocommerce ul.products.columns-4,
.academie-site.woocommerce-page ul.products.columns-4 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  display: flex;
  flex-direction: column;
  float: none;
  gap: 16px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  padding: 16px;
  width: auto;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  background: #eef7fb;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.woocommerce ul.products li.product .ast-on-card-button {
  display: none !important;
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 16 / 9;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

.woocommerce ul.products li.product .astra-shop-summary-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 8px 6px 4px;
}

.woocommerce ul.products li.product .ast-woo-product-category {
  align-self: flex-start;
  background: rgba(16, 176, 128, 0.1);
  border: 1px solid rgba(16, 176, 128, 0.22);
  border-radius: 999px;
  color: var(--af-green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  margin: 0;
  padding: 8px 11px;
  text-transform: uppercase;
}

.woocommerce ul.products li.product .ast-loop-product__link {
  display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--af-blue);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  min-height: 54px;
  padding: 0;
}

.woocommerce div.product .product_title {
  color: var(--af-blue);
  font-weight: 900;
  line-height: 1.2;
  padding: 0 28px;
}

.woocommerce ul.products li.product .af-loop-course-excerpt {
  color: var(--af-muted);
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.woocommerce ul.products li.product .price {
  color: var(--af-green);
  display: block;
  font-size: 18px;
  font-weight: 900;
  margin: 4px 0 0;
  padding: 0;
}

.woocommerce ul.products li.product .button {
  align-self: stretch;
  margin: auto 0 0;
  width: 100%;
}

.woocommerce div.product {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  padding: 42px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper,
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  overflow: hidden;
}

.woocommerce div.product div.images img {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.woocommerce div.product div.images .zoomImg {
  display: none !important;
}

.woocommerce div.product div.summary {
  margin-bottom: 0;
}

.woocommerce div.product form.cart {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.woocommerce div.product form.cart div.quantity,
.woocommerce div.product form.cart .quantity {
  align-items: center;
  display: flex;
  margin: 0;
}

.woocommerce div.product form.cart .quantity .qty,
.woocommerce div.product form.cart input.qty {
  height: 48px;
  margin: 0;
  min-height: 48px;
  text-align: center;
  width: 78px;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  align-self: stretch;
  margin: 0;
  min-height: 48px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: var(--af-muted);
  font-size: 17px;
  line-height: 1.7;
  margin-top: 16px;
}

.woocommerce div.product .price {
  color: var(--af-green);
  font-size: 28px;
  font-weight: 900;
  margin: 14px 0;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  padding: 34px;
}

.woocommerce table.shop_table {
  border: 1px solid var(--af-line);
  border-radius: 8px;
  overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 18px;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon {
  background: #f8fcff;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  padding: 26px;
}

.woocommerce-account .woocommerce {
  display: grid;
  gap: 28px;
}

.woocommerce-account .woocommerce:has(.u-columns) {
  display: block;
}

.woocommerce-account .u-columns {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.woocommerce-account .u-columns::before,
.woocommerce-account .u-columns::after,
.woocommerce-checkout .col2-set::before,
.woocommerce-checkout .col2-set::after {
  content: none !important;
  display: none !important;
}

.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
  float: none !important;
  margin: 0;
  max-width: none;
  width: 100% !important;
}

.woocommerce-account .u-columns form.login,
.woocommerce-account .u-columns form.register {
  margin: 0;
  max-width: none;
  width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  color: var(--af-blue);
  display: block;
  font-weight: 800;
  padding: 12px 14px;
}

.woocommerce-checkout .woocommerce {
  display: grid;
  gap: 26px;
}

.woocommerce-checkout form.checkout {
  display: grid;
  gap: 30px;
}

.woocommerce-checkout .col2-set {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none;
  width: auto;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--af-line);
  border-radius: 8px;
  min-height: 48px;
  padding: 10px 12px;
}

.woocommerce .quantity .qty {
  border: 1px solid var(--af-line);
  border-radius: 8px;
  min-height: 48px;
  padding: 0 10px;
}

.woocommerce #review_form .comment-form-rating {
  display: grid;
  gap: 8px;
}

.woocommerce #review_form p.stars {
  line-height: 1;
  margin: 0;
  overflow: visible;
  white-space: nowrap;
}

.woocommerce #review_form p.stars span {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 2px;
  max-width: 100%;
  white-space: nowrap;
}

.woocommerce #review_form p.stars a {
  flex: 0 0 auto;
  margin: 0 4px 0 0;
}

.wpcf7-form {
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  box-shadow: var(--af-shadow);
  display: grid;
  gap: 18px;
  margin-top: 28px;
  max-width: 760px;
  padding: 30px;
}

.wpcf7-form label {
  color: var(--af-blue);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.wpcf7-form input,
.wpcf7-form textarea {
  border: 1px solid var(--af-line);
  border-radius: 8px;
  color: var(--af-ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.wpcf7-form textarea {
  min-height: 150px;
  resize: vertical;
}

.wpcf7-form input[type="submit"] {
  background: var(--af-green);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  max-width: 220px;
}

@media (max-width: 980px) {
  .af-footer-cta .af-container,
  .af-footer-bottom .af-container {
    align-items: flex-start;
    flex-direction: column;
  }

  .af-header-inner {
    gap: 18px;
    min-height: 76px;
  }

  .af-nav ul {
    gap: 18px;
  }

  .af-nav a {
    font-size: 14px;
  }

  .af-two-col,
  .af-instructor,
  .af-page-hero-grid,
  .af-contact-layout,
  .woocommerce-account .u-columns,
  .woocommerce-checkout .col2-set {
    grid-template-columns: 1fr;
  }

  .af-hero {
    min-height: 0;
    padding: 54px 0 46px;
  }

  .af-hero-full-graphic {
    border-bottom: 1px solid rgba(219, 230, 242, 0.8);
    height: 360px;
    left: 0;
    margin-bottom: 34px;
    position: relative;
    right: 0;
    top: auto;
  }

  .af-hero-full-graphic::before {
    background: linear-gradient(180deg, rgba(248, 252, 255, 0) 35%, #f8fcff 100%);
  }

  .af-hero-copy {
    max-width: none;
  }

  .af-proof-grid,
  .af-stat-grid,
  .af-courses-grid,
  .af-steps,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .academie-site.woocommerce ul.products.columns-4,
  .academie-site.woocommerce-page ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .af-footer-inner {
    grid-template-columns: 1fr;
  }

  .woocommerce div.product {
    padding: 30px;
  }

  .af-contact-info-card {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 78px;
  }

  .af-container {
    padding: 0 18px;
  }

  .af-proof-grid,
  .af-stat-grid,
  .af-courses-grid,
  .af-steps,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .academie-site.woocommerce ul.products.columns-4,
  .academie-site.woocommerce-page ul.products.columns-4 {
    grid-template-columns: 1fr;
  }

  .af-header-inner {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    min-height: 58px;
    padding: 7px 0;
    position: relative;
  }

  .af-logo {
    display: none;
  }

  .af-mobile-menu-toggle {
    display: inline-flex;
  }

  .af-cta {
    display: none;
  }

  .af-header-cart {
    display: none;
  }

  .af-nav {
    background: #fff;
    border: 1px solid var(--af-line);
    border-radius: 8px;
    box-shadow: var(--af-shadow);
    display: none;
    left: 0;
    max-width: none;
    overflow: hidden;
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: auto;
    z-index: 80;
  }

  .af-nav.is-open {
    display: block;
  }

  .af-nav ul {
    align-items: stretch;
    display: grid;
    gap: 4px;
    justify-content: stretch;
    min-width: 0;
    width: 100%;
  }

  .af-nav a {
    border-radius: 8px;
    display: block;
    font-size: 14px;
    padding: 12px 14px;
    white-space: normal;
  }

  .af-nav .current-menu-item > a::after,
  .af-nav a:hover::after {
    content: none;
  }

  .af-nav .current-menu-item > a,
  .af-nav a:hover {
    background: #effbf7;
    color: var(--af-blue);
  }

  .af-hero {
    padding-top: 34px;
  }

  .af-hero-full-graphic {
    height: 260px;
  }

  .af-section {
    padding: 54px 0;
  }

  .af-page-hero {
    padding: 42px 0;
  }

  .af-page-hero-media {
    min-height: 210px;
  }

  .af-hero h1,
  .af-page-hero h1 {
    font-size: 40px;
  }

  .af-lead,
  .af-page-hero p {
    font-size: 17px;
  }

  .woocommerce div.product {
    padding: 20px;
  }

  .woocommerce div.product form.cart {
    align-items: stretch;
    gap: 10px;
  }

  .woocommerce div.product form.cart .quantity .qty,
  .woocommerce div.product form.cart input.qty {
    width: 74px;
  }

  .woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding: 8px 4px 2px;
  }

  .af-cart-feedback {
    bottom: 88px;
    left: 18px;
    right: 18px;
    top: auto;
    width: auto;
  }

  .wpcf7-form {
    padding: 22px;
  }

  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce,
  .woocommerce-account .woocommerce,
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review,
  .woocommerce-account .woocommerce-MyAccount-content,
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce form.login,
  .woocommerce form.register,
  .woocommerce form.checkout_coupon,
  .af-contact-info-card {
    padding: 20px;
  }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    padding: 12px;
  }

  .af-footer-cta .af-container,
  .af-footer-inner,
  .af-footer-contact,
  .af-footer-menu ul,
  .af-footer-bottom .af-container {
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .af-footer-cta .af-container,
  .af-footer-bottom .af-container {
    flex-direction: column;
  }

  .af-footer-logo {
    display: flex;
    justify-self: center;
    justify-content: center;
    width: 100%;
  }

  .af-footer-logo img {
    margin: 0 auto;
    max-height: 88px;
  }

  .af-footer-contact,
  .af-footer-menu ul {
    gap: 10px 16px;
    justify-content: center;
  }

  .af-mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(219, 230, 242, 0.95);
    bottom: 0;
    box-shadow: 0 -14px 34px rgba(0, 48, 128, 0.12);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    left: 0;
    min-height: 70px;
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    position: fixed;
    right: 0;
    z-index: 95;
  }

  .af-mobile-bottom-nav a {
    align-items: center;
    color: var(--af-muted);
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 800;
    gap: 3px;
    justify-content: center;
    line-height: 1.1;
    min-width: 0;
    text-align: center;
  }

  .af-mobile-bottom-nav a:hover,
  .af-mobile-bottom-nav a:focus {
    color: var(--af-blue);
  }

  .af-mobile-bottom-nav .dashicons {
    color: var(--af-green);
    font-size: 21px;
    height: 21px;
    width: 21px;
  }

  .af-cookiebar {
    bottom: 86px;
    flex-direction: column;
    left: 12px;
    right: 12px;
  }
}
