.af-page {
  background: var(--white);
}

.af-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.af-content-wrap {
  padding: 56px 0 80px;
}

:root :where(.wp-element-button, .wp-block-button__link) {
  background: var(--lime);
  color: var(--black);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  transition: background 0.15s ease, color 0.15s ease;
}

@media (max-width: 782px) {
  .af-content-wrap {
    padding: 36px 0 56px;
  }
  .af-container {
    padding: 0 16px;
  }
}

.af-hero {
  position: relative;
  background: var(--black);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(159, 232, 0, 0.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(159, 232, 0, 0.08), transparent 50%);
  color: var(--white);
  padding: 72px 0 56px;
  overflow: hidden;
  isolation: isolate;
}

.af-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--lime-dark));
  opacity: 0.9;
}

.af-hero--slim {
  padding: 44px 0 36px;
}

.af-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.af-breadcrumb {
  margin-bottom: 18px;
}

.af-breadcrumb__list,
.af-breadcrumb a,
.af-breadcrumb span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.af-breadcrumb a {
  transition: color 0.15s ease;
}

.af-breadcrumb a:hover {
  color: var(--lime);
}

.af-breadcrumb__sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.3);
}

.af-breadcrumb__current,
.af-breadcrumb .breadcrumb_last {
  color: var(--white) !important;
  font-weight: 500;
}

.af-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.af-hero__eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--lime);
  display: inline-block;
}

.af-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

.af-hero__subtitle {
  margin: 0;
  max-width: 640px;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.af-hero__meta {
  margin: 16px 0 0;
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  background: var(--lime);
  padding: 6px 14px;
  border-radius: 999px;
}

.af-hero__media {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-card-hover);
}

.af-hero__image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.af-article {
  max-width: 860px;
  margin: 0 auto;
}

.af-container--page .af-article {
  margin: -8px auto 0;
}

.af-article__body {
  font-size: 1.0625rem;
  color: var(--gray-700);
  line-height: 1.75;
}

.af-article__body > *:first-child {
  margin-top: 0;
}

.af-article__body h1,
.af-article__body h2,
.af-article__body h3,
.af-article__body h4 {
  color: var(--black);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2em 0 0.65em;
}

.af-article__body h1 { font-size: 1.875rem; }
.af-article__body h2 { font-size: 1.5rem; }
.af-article__body h3 { font-size: 1.25rem; }
.af-article__body h4 { font-size: 1.0625rem; }

.af-article__body p {
  margin: 0 0 1.25em;
}

.af-article__body a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.af-article__body a:hover {
  color: var(--lime-dark);
}

.af-article__body ul,
.af-article__body ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
  list-style: revert;
}

.af-article__body li {
  margin-bottom: 0.5em;
}

.af-article__body blockquote {
  margin: 1.75em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--lime);
  background: var(--bg-section);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--gray-900);
  font-style: italic;
}

.af-article__body img,
.af-article__body figure {
  border-radius: var(--radius);
}

.af-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  font-size: 0.9375rem;
}

.af-article__body th,
.af-article__body td {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.af-article__body th {
  background: var(--gray-100);
  color: var(--black);
  font-weight: 600;
}

.af-article__body hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 2.5em 0;
}

.af-article__body code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}

.af-article__body pre {
  background: var(--black-soft);
  color: var(--gray-100);
  padding: 18px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
}

.af-page-links {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--gray-200);
  font-size: 0.9375rem;
}

.af-page-links__label {
  font-weight: 600;
  color: var(--black);
  margin-right: 10px;
}

.af-page-links__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  margin-right: 6px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.af-page-links__item a:hover {
  background: var(--lime);
  color: var(--black);
}

.af-edit-link {
  margin-top: 2em;
}

.af-edit-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
}

.af-edit-link a:hover {
  color: var(--black);
  border-color: var(--lime);
}

.af-comments {
  max-width: 860px;
  margin: 3rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gray-200);
}

/* ==========================================================================
   3. WooCommerce — Cart / Checkout / My Account / Order Received
   Re-skin of default Woo markup to match AlphaFit's design tokens.
   ========================================================================== */

.af-woo-shell {
  --wc-radius: var(--radius);
}

.af-woo-notices {
  margin-bottom: 24px;
}

.af-woo-shell .woocommerce-info,
.af-woo-shell .woocommerce-message,
.af-woo-shell .woocommerce-error,
.af-woo-shell .woocommerce-NoticeGroup ul {
  border-top: 3px solid var(--lime);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 14px 18px 14px 46px;
  color: var(--ink);
  list-style: none;
  font-size: 0.9375rem;
}

.af-woo-shell .woocommerce-error {
  border-top-color: #e74c3c;
}

.af-woo-shell .woocommerce-message::before,
.af-woo-shell .woocommerce-info::before {
  color: var(--lime-dark);
}

.af-woo-shell .woocommerce-error::before {
  color: #e74c3c;
}

.af-woo-shell .button,
.af-woo-shell .checkout-button,
.af-woo-shell button.button,
.af-woo-shell input.button,
.af-woo-shell #place_order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime);
  color: var(--black);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 26px;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.af-woo-shell .button:hover,
.af-woo-shell .checkout-button:hover,
.af-woo-shell button.button:hover,
.af-woo-shell input.button:hover,
.af-woo-shell #place_order:hover {
  background: var(--lime-dark);
  box-shadow: var(--shadow-card-hover);
}

.af-woo-shell .button:disabled,
.af-woo-shell .button.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.af-woo-shell a.remove {
  color: var(--gray-500) !important;
  background: var(--gray-100) !important;
  border-radius: 50% !important;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease;
}

.af-woo-shell a.remove:hover {
  color: var(--white) !important;
  background: #e74c3c !important;
}

/* ---- Cart table ---- */

.af-woo-shell table.shop_table,
.af-woo-shell table.cart {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.af-woo-shell table.shop_table th {
  background: var(--gray-100);
  color: var(--black);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.af-woo-shell table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
  color: var(--gray-700);
  font-size: 0.9375rem;
}

.af-woo-shell table.shop_table tr:last-child td {
  border-bottom: none;
}

.af-woo-shell td.product-thumbnail img {
  border-radius: 6px;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--gray-200);
}

.af-woo-shell td.product-name a {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
}

.af-woo-shell td.product-name a:hover {
  color: var(--lime-dark);
}

.af-woo-shell .product-quantity .qty,
.af-woo-shell input.qty {
  width: 64px;
  padding: 8px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  color: var(--black);
}

.af-woo-shell input.qty:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(159, 232, 0, 0.2);
}

.af-woo-shell .product-subtotal,
.af-woo-shell td.product-price {
  font-weight: 600;
  color: var(--black);
}

/* ---- Cart totals / coupon ---- */

.af-woo-shell .cart-collaterals {
  margin-top: 32px;
}

.af-woo-shell .cart_totals,
.af-woo-shell .cart-collaterals .cart_totals {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 420px;
  margin-left: auto;
}

.af-woo-shell .cart_totals h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 16px;
}

.af-woo-shell .cart_totals table {
  background: transparent;
  border: none;
}

.af-woo-shell .cart_totals table th,
.af-woo-shell .cart_totals table td {
  background: transparent;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
  font-size: 0.9375rem;
}

.af-woo-shell .cart_totals .order-total th,
.af-woo-shell .cart_totals .order-total td {
  border-bottom: none;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--black);
}

.af-woo-shell .cart_totals .amount {
  font-weight: 700;
  color: var(--black);
}

.af-woo-shell .wc-proceed-to-checkout {
  margin-top: 18px;
}

.af-woo-shell .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  width: 100%;
}

.af-woo-shell .coupon {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.af-woo-shell .coupon .input-text {
  flex: 1 1 200px;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

.af-woo-shell .coupon .input-text:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(159, 232, 0, 0.2);
}

.af-woo-shell .coupon button.button {
  background: var(--black);
  color: var(--white);
}

.af-woo-shell .coupon button.button:hover {
  background: var(--gray-900);
}

.af-woo-shell .actions {
  padding-top: 20px;
}

/* ---- Checkout form ---- */

.af-woo-shell #customer_details,
.af-woo-shell .woocommerce-billing-fields,
.af-woo-shell .woocommerce-shipping-fields {
  background: var(--white);
}

.af-woo-shell .woocommerce-billing-fields h3,
.af-woo-shell #order_review_heading,
.af-woo-shell .woocommerce-shipping-fields h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 18px;
}

.af-woo-shell .form-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
  display: block;
}

.af-woo-shell .form-row .required {
  color: var(--lime-dark);
  text-decoration: none;
}

.af-woo-shell .form-row input.input-text,
.af-woo-shell .form-row textarea,
.af-woo-shell .form-row select,
.af-woo-shell .select2-container .select2-selection--single {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.af-woo-shell .select2-container .select2-selection--single {
  height: 46px;
  display: flex;
  align-items: center;
}

.af-woo-shell .form-row input.input-text:focus,
.af-woo-shell .form-row textarea:focus,
.af-woo-shell .form-row select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(159, 232, 0, 0.2);
}

.af-woo-shell #order_review {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 24px;
}

.af-woo-shell #order_review table.shop_table {
  border: none;
  background: transparent;
}

.af-woo-shell #order_review table.shop_table th,
.af-woo-shell #order_review table.shop_table td {
  background: transparent;
  padding: 10px 0;
}

.af-woo-shell .payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--gray-200);
  padding-top: 16px;
}

.af-woo-shell .wc_payment_method {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 10px;
  padding: 14px 16px;
  background: var(--white);
}

.af-woo-shell .wc_payment_method label {
  font-weight: 600;
  color: var(--black);
}

.af-woo-shell .payment_box {
  background: var(--gray-100);
  border-radius: 6px;
  padding: 14px;
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.af-woo-shell #place_order {
  width: 100%;
  margin-top: 18px;
  padding: 16px 26px;
  font-size: 1rem;
}

.af-woo-shell .woocommerce-terms-and-conditions-wrapper {
  margin: 14px 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.af-woo-shell .woocommerce-order {
  max-width: 760px;
  margin: 0 auto;
}

.af-woo-shell .woocommerce-thankyou-order-received {
  display: block;
  background: var(--gray-100);
  border-left: 4px solid var(--lime);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 24px;
}

.af-woo-shell ul.woocommerce-order-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.af-woo-shell ul.woocommerce-order-overview li {
  flex: 1 1 160px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.af-woo-shell ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--black);
}

.af-woo-shell.af-woo-shell--account .woocommerce-MyAccount-navigation {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 28px;
}

.af-woo-shell .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.af-woo-shell .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.af-woo-shell .woocommerce-MyAccount-navigation li a:hover {
  background: var(--gray-200);
  color: var(--black);
}

.af-woo-shell .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--lime);
  color: var(--black);
}

.af-woo-shell .woocommerce-MyAccount-content {
  background: var(--white);
}

.af-woo-shell .woocommerce-MyAccount-content table.shop_table th,
.af-woo-shell .woocommerce-MyAccount-content table.shop_table td {
  font-size: 0.875rem;
}

.af-woo-shell .woocommerce-Address {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 20px;
}

.af-woo-shell .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.af-woo-shell .woocommerce-Address-title h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.af-woo-shell .woocommerce-Address-title a {
  font-size: 0.8125rem;
  color: var(--lime-dark);
  text-decoration: underline;
}

.af-woo-shell.af-woo-shell--account form.woocommerce-form-login,
.af-woo-shell.af-woo-shell--account form.woocommerce-form-register {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 460px;
}

.af-woo-shell .woocommerce-form-row label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gray-900);
}

.af-woo-shell .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--gray-700);
}

.af-woo-shell .lost_password a,
.af-woo-shell .woocommerce-LostPassword a {
  color: var(--gray-500);
  font-size: 0.8125rem;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .af-woo-shell table.shop_table thead {
    display: none;
  }

  .af-woo-shell table.shop_table tr {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .af-woo-shell table.shop_table td {
    border: none;
    padding: 6px 8px;
    flex: 1 1 50%;
  }

  .af-woo-shell td.product-remove {
    order: -1;
    flex: 0 0 auto;
  }

  .af-woo-shell .cart_totals {
    max-width: 100%;
    margin-left: 0;
  }
}

.af-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}

.af-qty-stepper input.qty {
  border: none !important;
  border-radius: 0 !important;
  width: 46px !important;
  text-align: center;
}

.af-qty-stepper__btn {
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 40px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.af-qty-stepper__btn:hover {
  background: var(--lime);
  color: var(--black);
}

@keyframes af-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(159, 232, 0, 0.45); }
  100% { box-shadow: 0 0 0 10px rgba(159, 232, 0, 0); }
}

.af-pulse {
  animation: af-pulse 0.5s ease-out;
  border-radius: var(--radius);
}

.af-coupon-prompt {
  margin: 0 0 18px;
}

.af-coupon-prompt .af-coupon-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 3px;
}

.af-woo-shell form.checkout_coupon {
  display: none;
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
  gap: 10px;
}

.af-field-focused label {
  color: var(--lime-dark) !important;
}

.af-empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-section);
  border-radius: var(--radius);
}

.af-empty-state__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 8px;
}

.af-empty-state__body {
  color: var(--gray-500);
  max-width: 420px;
  margin: 0 auto 22px;
  font-size: 0.9375rem;
}

.af-empty-state .button {
  display: inline-flex;
}

.af-account-nav-item a {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .af-woo-shell .button,
  .af-woo-shell a.remove {
    transition: none;
  }
}