/* ================================================
   AALTEN PHARMA — Main Stylesheet
   ================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "DM Sans", sans-serif;
  color: #1a1a1a;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
.woocommerce-MyAccount-content a {
  text-decoration: underline;
}
a.btn-primary {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
.ap-root {
  max-width: 1024px;
  margin: 0 auto;
} /* dit bepaalt de breedte op desktop, maar op mobiel wordt het automatisch smaller door padding in sections!!!!!!!!! */
/* was 960, maar dat is te smal, dus nu 1024 */
/* ------------------------------------------------
   NAV
   ------------------------------------------------ */
.ap-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 20px 40px; */
  border-bottom: 1px solid #e8e8e4;
  background: #fff;
}
.ap-logo {
  font-family: "DM Serif Display", serif;
  font-size: 20px;
  color: #1a1a1a;
}
.ap-logo a {
  text-decoration: none;
  color: inherit;
}
.ap-logo span {
  color: #d32f2f;
}
.ap-nav-links {
  position: relative;
  margin-right: 8px;
}
.ap-primary-menu {
  display: flex;
  gap: 28px;
  font-size: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-primary-menu > li {
  position: relative;
  list-style: none;
}
.ap-nav-links a {
  text-decoration: none;
  color: #555;
  transition: color 0.2s;
}
.ap-nav-links a:hover {
  color: #1a1a1a;
}

/* Submenu dropdown */
.ap-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background: #fff;
  border: 1px solid #e8e8e4;
  border-radius: 6px;
  padding: 8px 0;
  min-width: 180px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.ap-primary-menu > li:hover > .ap-submenu,
.ap-primary-menu > li.is-open > .ap-submenu {
  display: block;
}
.ap-submenu li {
  list-style: none;
}
.ap-submenu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}
.ap-submenu a:hover {
  background: #f8f8f5;
  color: #1a1a1a;
}
.ap-submenu-arrow {
  font-size: 10px;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s;
}
.ap-primary-menu > li.is-open > a .ap-submenu-arrow {
  transform: rotate(180deg);
}
.ap-nav-cta {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  transition: background 0.2s;
}
.ap-nav-cta:hover {
  background: #333;
}

/* Mobile menu toggle */
.ap-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.ap-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #1a1a1a;
  border-radius: 2px;
  transition: 0.3s;
}
h3 {
  padding: 12px 0px 12px 0px;
}
/* ------------------------------------------------
   HERO
   ------------------------------------------------ */
.ap-hero {
  padding: 72px 40px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: #f8f8f5;
  border-bottom: 1px solid #e8e8e4;
}
.ap-hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: #d32f2f;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.ap-hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: 44px;
  line-height: 1.15;
  color: #1a1a1a;
  margin-bottom: 20px;
}
.ap-hero p {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 32px;
}
p {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 22px;
}
option,
select {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  padding-right: 5px;
}

.ap-hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: #d32f2f;
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: #8c2323;
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #ccc;
  padding: 13px 26px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  transition: border-color 0.2s;
}
.btn-secondary:hover {
  border-color: #999;
}

/* Product card */
.ap-product-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e8e4;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}
.ap-product-badge {
  display: inline-block;
  font-size: 11px;
  background: #fcb7b4;
  color: #d32f2f;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 500;
  margin-bottom: 4px;
  width: fit-content;
}
.ap-product-name {
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  color: #1a1a1a;
}
.ap-product-sub {
  font-size: 13px;
  color: #999;
}
.ap-price {
  font-size: 28px;
  font-weight: 500;
  color: #1a1a1a;
  margin-top: 4px;
}
.ap-price span.ap-inc-vat {
  font-size: 13px;
  font-weight: 400;
  color: #999;
}
.ap-buy-btn {
  margin-top: 8px;
  background: #d32f2f;
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: background 0.2s;
  text-align: center;
  text-decoration: none;
  display: block;
}
.ap-buy-btn:hover {
  background: #8c2323;
}

/* Product image in card */
.ap-product-image {
  border-radius: 8px;
  margin-bottom: 6px;
}

/* ------------------------------------------------
   TRUST BAR
   ------------------------------------------------ */
.ap-trust {
  display: flex;
  justify-content: space-around;
  padding: 28px 40px;
  border-bottom: 1px solid #e8e8e4;
  flex-wrap: wrap;
}
.ap-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #444;
}
.ap-trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fcb7b4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ------------------------------------------------
   SECTIONS (generic)
   ------------------------------------------------ */
.ap-section {
  padding: 60px 40px;
}
.ap-section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  color: #d32f2f;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ap-section h2 {
  font-family: "DM Serif Display", serif;
  font-size: 32px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.ap-section-sub {
  font-size: 15px;
  color: #666;
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 600px;
}

/* ------------------------------------------------
   INGREDIENTS
   ------------------------------------------------ */
.ap-ingredients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ap-ing-card {
  background: #f8f8f5;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e8e8e4;
}
.ap-ing-name {
  font-weight: 500;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.ap-ing-amount {
  font-size: 13px;
  color: #d32f2f;
  font-weight: 500;
  margin-bottom: 8px;
}
.ap-ing-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.55;
}

/* ------------------------------------------------
   TESTIMONIALS
   ------------------------------------------------ */
.ap-testimonials-bg {
  background: #f8f8f5;
  border-top: 1px solid #e8e8e4;
  border-bottom: 1px solid #e8e8e4;
}
.ap-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ap-testi-card {
  background: #fff;
  border-radius: 10px;
  padding: 22px;
  border: 1px solid #e8e8e4;
}
.ap-stars {
  color: #d32f2f;
  font-size: 14px;
  margin-bottom: 12px;
}
.ap-testi-text {
  font-size: 13px;
  line-height: 1.65;
  color: #444;
  margin-bottom: 16px;
}
.ap-testi-author {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}
.ap-testi-country {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

/* ------------------------------------------------
   CERTIFICATIONS
   ------------------------------------------------ */
.ap-certs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.ap-cert-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e8e8e4;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #444;
  background: #fff;
}
.ap-cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d32f2f;
  flex-shrink: 0;
}

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */
.ap-footer {
  padding: 28px 40px;
  border-top: 1px solid #e8e8e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #aaa;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.ap-footer-links li {
  list-style: none;
}
.ap-footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.ap-footer-links a:hover {
  color: #555;
}
.ap-divider {
  height: 1px;
  background: #e8e8e4;
  margin: 0 40px;
}

/* ------------------------------------------------
   WORDPRESS SPECIFIC
   ------------------------------------------------ */
.wp-block-image img {
  border-radius: 10px;
}
.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}
.alignright {
  float: right;
  margin: 0 0 20px 20px;
}
.aligncenter {
  display: block;
  margin: 0 auto 20px;
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ------------------------------------------------
   RESPONSIVE
   ------------------------------------------------ */
@media (max-width: 1024px) {
  #main {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 680px) {
  .ap-hero {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .ap-hero h1 {
    font-size: 32px;
  }
  .ap-ingredients {
    grid-template-columns: 1fr 1fr;
  }
  .ap-testimonials {
    grid-template-columns: 1fr;
  }
  .ap-nav-links {
    display: none;
  }
  .ap-nav-links.active {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 40px;
    border-bottom: 1px solid #e8e8e4;
    z-index: 100;
  }
  .ap-nav-links.active .ap-primary-menu {
    flex-direction: column;
    gap: 16px;
  }
  .ap-nav-links.active .ap-submenu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 8px 0 0 16px;
    display: none;
  }
  .ap-nav-links.active .ap-primary-menu > li:hover > .ap-submenu {
    display: none;
  }
  .ap-nav-links.active .ap-primary-menu > li.is-open > .ap-submenu {
    display: block;
  }
  .ap-menu-toggle {
    display: flex;
  }
  .ap-section {
    padding: 40px 20px;
  }
  .ap-trust {
    padding: 20px;
  }
  .ap-footer {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
  .ap-certs {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ap-ingredients {
    grid-template-columns: 1fr;
  }
  .ap-hero h1 {
    font-size: 28px;
  }
  .ap-nav {
    padding: 16px 20px;
  }
}

.ap-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: #555;
}

.ap-cart-icon:hover {
  color: #1a1a1a;
}

.ap-cart-count {
  position: absolute;
  top: -3px;
  left: 14px;
  background: #d32f2f;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ap-cart-count:empty,
.ap-cart-count[data-count="0"] {
  display: none;
}

/* WooCommerce overrides */

.ap-page-content {
  max-width: 100% !important;
}
.woocommerce-info,
.woocommerce-message {
  border-top: 1px solid #e8e8e4 !important;
  background: #f8f8f5 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #555 !important;
}
.woocommerce-info::before {
  color: #d32f2f !important;
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table td a {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #555 !important;
}

#add_payment_method table.cart td.actions .coupon .input-text,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-checkout table.cart td.actions .coupon .input-text {
  min-width: 220px;
  margin-top: 11px !important;
}
button[name="apply_coupon"] {
  margin-right: 5px !important;
}

#rememberme {
  margin-top: 21px !important;
}
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
  background: #f8f8f5 !important;
  border-top: 1px solid #e8e8e4 !important;
}
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
  width: 100% !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  #respond
  input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles))
  input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  #respond
  input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(
    :not(.edit-post-visual-editor)
  )
  .woocommerce
  input.button {
  margin-top: 8px !important;
  background: #d32f2f !important;
  color: #fff !important;
  border: none !important;
  padding: 13px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  font-family: "DM Sans", sans-serif !important;
  transition: background 0.2s !important;
  text-align: center !important;
  text-decoration: none !important;
  display: block !important;
}
fieldset {
  border: 0 !important;
}
.woocommerce-account .addresses .title .edit {
  float: left !important;
  font-weight: 700;
}

:root :where(.wp-element-button, .wp-block-button__link) {
  background: #d32f2f !important;
}
.wp-block-woocommerce-empty-cart-block h2 {
  color: #d32f2f !important;
}
.wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
  display: none !important;
}

.woocommerce-loop-product__title {
  height: 100px;
}

.wc-block-components-title wc-block-components-checkout-step__title {
  font-family: "DM Serif Display", serif !important;
  font-size: 32px;
  color: #1a1a1a;
  margin-bottom: 10px;
}
