﻿/* ==========================================================================
   El Mundo CBD 2026 — main stylesheet
   ========================================================================== */

/* Override plugin font-faces with font-display: swap (FCP win ~470ms).
   Plugin CSS uses display:auto/block which delays text render up to 3s.
   Last @font-face declaration for a given family wins. */
@font-face {
  font-family: 'dashicons';
  font-display: swap;
  src: url('/wp-includes/css/dashicons.woff2?v=6.4.2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'WooCommerce';
  font-display: swap;
  src: url('/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'star';
  font-display: swap;
  src: url('/wp-content/plugins/woocommerce/assets/fonts/star.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'tinvwl-webfont';
  font-display: swap;
  src: url('/wp-content/plugins/ti-woocommerce-wishlist/assets/fonts/tinvwl-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Woo-Side-Cart';
  font-display: swap;
  src: url('/wp-content/plugins/side-cart-woocommerce/assets/css/fonts/Woo-Side-Cart.woff2') format('woff2'),
       url('/wp-content/plugins/side-cart-woocommerce/assets/css/fonts/Woo-Side-Cart.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Search modal ─────────────────────────────────────────────────────────── */
.emcbd-search-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; }
.emcbd-search-modal[hidden] { display: none; }
.emcbd-search-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: emcbd-fade-in .18s ease; }
.emcbd-search-box { position: relative; z-index: 1; width: min(680px, calc(100vw - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.22); animation: emcbd-slide-in .2s ease; overflow: hidden; }
@keyframes emcbd-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes emcbd-slide-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.emcbd-search-open { overflow: hidden; }

/* Input row */
.emcbd-search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--wp--preset--color--border); }
.emcbd-search-icon { flex-shrink: 0; color: var(--wp--preset--color--text-muted); }
.emcbd-search-input { flex: 1; border: none; outline: none !important; font-family: var(--wp--preset--font-family--lato), sans-serif; font-size: 16px; color: var(--wp--preset--color--text); background: transparent; }
.emcbd-search-input::placeholder { color: var(--wp--preset--color--text-muted); }
.emcbd-search-clear { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: none; border-radius: 50%; background: var(--wp--preset--color--surface-2); color: var(--wp--preset--color--text-muted); cursor: pointer; flex-shrink: 0; padding: 0; }
.emcbd-search-clear[hidden] { display: none; }
.emcbd-search-close { display: flex; align-items: center; gap: 6px; border: 1px solid var(--wp--preset--color--border); border-radius: 6px; background: transparent; color: var(--wp--preset--color--text-muted); font-family: var(--wp--preset--font-family--lato), sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .5px; padding: 4px 8px; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.emcbd-search-close:hover { background: var(--wp--preset--color--surface-2); }

/* Results area */
.emcbd-search-results { max-height: 480px; overflow-y: auto; overscroll-behavior: contain; }
.emcbd-sr-loading, .emcbd-sr-empty { padding: 28px 24px; text-align: center; color: var(--wp--preset--color--text-muted); font-family: var(--wp--preset--font-family--lato), sans-serif; font-size: 14px; }
.emcbd-sr-section { padding: 12px 0 4px; }
.emcbd-sr-label { margin: 0; padding: 0 20px 8px; font-family: var(--wp--preset--font-family--lato), sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wp--preset--color--text-muted); }
.emcbd-sr-list { list-style: none; margin: 0; padding: 0; }
.emcbd-sr-item { margin: 0; }
.emcbd-sr-link { display: flex; align-items: center; gap: 14px; padding: 10px 20px; text-decoration: none; color: var(--wp--preset--color--text); transition: background .12s; }
.emcbd-sr-link:hover, .emcbd-sr-link.is-focused { background: var(--wp--preset--color--bg); outline: none; }
.emcbd-sr-thumb { flex-shrink: 0; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--wp--preset--color--surface-2); }
.emcbd-sr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.emcbd-sr-placeholder { width: 100%; height: 100%; }
.emcbd-sr-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.emcbd-sr-meta { font-family: var(--wp--preset--font-family--lato), sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.emcbd-sr-title { font-family: var(--wp--preset--font-family--lato), sans-serif; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.emcbd-sr-title mark { background: transparent; color: var(--wp--preset--color--accent); font-weight: 700; }
.emcbd-sr-price { font-family: var(--wp--preset--font-family--lato), sans-serif; font-size: 13px; font-weight: 700; color: var(--wp--preset--color--accent); }
.emcbd-sr-footer { padding: 12px 20px; border-top: 1px solid var(--wp--preset--color--border); }
.emcbd-sr-view-all { font-family: var(--wp--preset--font-family--lato), sans-serif; font-size: 13px; font-weight: 600; color: var(--wp--preset--color--accent); text-decoration: none; }
.emcbd-sr-view-all:hover { text-decoration: underline; }

/* Remove WP block-spacing gap between header and first section — site-wide */
main.wp-block-group.alignfull,
#wp--skip-link--target {
  margin-top: 0 !important;
}

:root {
  --emcbd-radius-sm: 4px;
  --emcbd-radius-md: 8px;
  --emcbd-radius-lg: 12px;
  --emcbd-radius-xl: 16px;
  --emcbd-radius-pill: 999px;
}

/* Reset bits ----------------------------------------------------------------*/
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Section width caps — constrain full-bleed content to wideSize -------------*/
:root { --emcbd-cap: 1280px; }

main .wp-block-group.alignfull > .wp-block-group:not(.alignfull):not(.has-background),
main .wp-block-group.alignfull > .wp-block-columns.alignwide {
  max-width: var(--emcbd-cap);
  margin-inline: auto;
}
main .wp-block-group.alignfull[style*="flex"] > * { /* trust-strip, footer band */
}
.wp-block-group.alignfull.has-background {
  /* full-bleed bg keeps stretching */
}
.wp-block-group.alignfull.has-background > .wp-block-columns,
.wp-block-group.alignfull.has-background > .wp-block-group:not(.alignfull),
.wp-block-group.alignfull.has-background > .wp-block-buttons {
  max-width: var(--emcbd-cap);
  margin-inline: auto;
}

/* Trust strip: constrain inner items to wideSize */
.wp-block-group.alignfull[style*="space-between"] {
  --emcbd-trust-cap: 1280px;
}
.wp-block-group.alignfull[style*="space-between"] > .wp-block-group {
  flex: 0 1 auto;
}

/* Header --------------------------------------------------------------------*/
.emcbd-header {
  gap: clamp(16px, 3vw, 32px) !important;
  align-items: center;
  padding-left: max(40px, calc((100% - 1280px) / 2)) !important;
  padding-right: max(40px, calc((100% - 1280px) / 2)) !important;
}
.emcbd-header > * { flex-shrink: 0; }
.wp-block-site-logo.emcbd-logo,
.wp-block-site-title.emcbd-logo,
.emcbd-logo {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  margin: 0 !important;
}
.wp-block-site-logo.emcbd-logo img { height: 54px !important; width: auto !important; display: block; }
.emcbd-logo a { text-decoration: none !important; }
.wp-block-site-logo.emcbd-footer-logo img { height: 48px !important; filter: brightness(0) invert(1); }
.wp-block-site-title a::after { content: "®"; font-size: .65em; vertical-align: super; letter-spacing: 0; }
.wp-block-navigation.emcbd-nav,
.emcbd-nav {
  flex: 1 1 auto !important;
  min-width: 0;
  justify-content: center !important;
}
.emcbd-nav .wp-block-navigation__container,
.emcbd-nav > ul {
  gap: clamp(12px, 2vw, 28px) !important;
  flex-wrap: nowrap !important;
  justify-content: center;
}
.emcbd-nav .wp-block-navigation-item__content { white-space: nowrap; }
.emcbd-header-actions { flex: 0 0 auto; align-items: center; gap: 8px !important; }
.emcbd-icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--wp--preset--color--text);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.emcbd-icon-link:hover {
  background: var(--wp--preset--color--surface-2);
  color: var(--wp--preset--color--accent);
}

/* Navigation submenus — dropdown ------------------------------------------- */
.emcbd-nav .wp-block-navigation-item.has-child { position: relative; }
.emcbd-nav .wp-block-navigation__submenu-container {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  z-index: 9999 !important;
  min-width: 220px !important;
  background: #ffffff !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.13) !important;
  padding: 8px 0 !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
}
/* Invisible bridge fills the 8px gap so mouse movement to submenu doesn't break hover */
.emcbd-nav .wp-block-navigation__submenu-container::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.emcbd-nav .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container,
.emcbd-nav .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}
.emcbd-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  color: var(--wp--preset--color--text) !important;
  white-space: nowrap;
}
.emcbd-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--accent) !important;
  background: var(--wp--preset--color--bg) !important;
}
.emcbd-nav .wp-block-navigation-item.has-child > .wp-block-navigation-item__content .wp-block-navigation__submenu-icon svg {
  width: 10px; height: 10px; margin-left: 3px;
}

/* Footer — constrain inner content to 1280px (same as header) */
footer.wp-block-group > .wp-block-group.alignfull {
  padding-left: max(40px, calc((100% - 1280px) / 2)) !important;
  padding-right: max(40px, calc((100% - 1280px) / 2)) !important;
}

/* Footer --------------------------------------------------------------------*/
.emcbd-footer {
  background: #000000;
  color: #ffffff;
  font-family: var(--wp--preset--font-family--lato);
}
.emcbd-footer a {
  color: inherit;
  text-decoration: none;
}
.emcbd-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding: 64px 40px 48px;
}
.emcbd-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 320px;
  flex: 0 0 320px;
}
.emcbd-footer__logo {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.2;
}
.emcbd-footer__brand p,
.emcbd-footer__newsletter p {
  margin: 0;
  color: #aaaaaa;
  font-size: 13px;
  line-height: 1.6;
}
.emcbd-footer__social {
  display: flex;
  gap: 12px;
}
.emcbd-footer__social a {
  color: #8a8a8a;
  transition: color .2s ease;
}
.emcbd-footer__social a:hover,
.emcbd-footer__col a:hover,
.emcbd-footer__legal a:hover {
  color: #7ab87a;
}
.emcbd-footer__col,
.emcbd-footer__newsletter {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.emcbd-footer__newsletter {
  width: 300px;
  flex: 0 0 300px;
}
.emcbd-footer h2 {
  margin: 0;
  color: #7ab87a;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.2;
}
.emcbd-footer__col a {
  color: #aaaaaa;
  font-size: 13px;
  line-height: 1.2;
  transition: color .2s ease;
}
.emcbd-footer__form {
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  background: #2a3a2a;
  padding: 0 4px 0 16px;
}
.emcbd-footer__form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  outline: 0;
}
.emcbd-footer__form input::placeholder { color: #cccccc; opacity: 1; }
.emcbd-footer__form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: #7ab87a;
  color: #ffffff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
}
.emcbd-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #1a2a1a;
  border-top: 1px solid #3a4a3a;
  padding: 20px 40px;
}
.emcbd-footer__bottom p {
  margin: 0;
  color: #cccccc;
  font-size: 12px;
}
.emcbd-footer__legal {
  display: flex;
  gap: 24px;
  color: #aaaaaa;
  font-size: 12px;
}
.emcbd-footer__legal span { color: #cccccc; }

footer.wp-block-template-part,
footer.wp-block-template-part .wp-block-group,
footer.wp-block-template-part .wp-block-column,
footer.wp-block-template-part .wp-block-columns {
  color: #ffffff;
}
footer.wp-block-template-part h1,
footer.wp-block-template-part h2,
footer.wp-block-template-part h3,
footer.wp-block-template-part h4,
footer.wp-block-template-part h5,
footer.wp-block-template-part h6,
footer.wp-block-template-part .wp-block-heading {
  color: #7ab87a !important;
  opacity: 1 !important;
}
footer.wp-block-template-part p,
footer.wp-block-template-part li,
footer.wp-block-template-part a,
footer.wp-block-template-part .wp-block-navigation-item__content,
footer.wp-block-template-part .wp-block-navigation-item__label {
  color: #d6ddd6 !important;
  opacity: 1 !important;
}
footer.wp-block-template-part a:hover,
footer.wp-block-template-part .wp-block-navigation-item__content:hover {
  color: #ffffff !important;
}
#footer.footer-wrapper,
.footer-wrapper .footer,
.footer-wrapper .footer-1,
.footer-wrapper .footer-2 {
  background: #000000 !important;
  color: #ffffff !important;
}
.footer-wrapper .widget-title,
.footer-wrapper span.widget-title,
.footer-wrapper .widget-title span,
.footer-wrapper h1,
.footer-wrapper h2,
.footer-wrapper h3,
.footer-wrapper h4,
.footer-wrapper h5,
.footer-wrapper h6 {
  color: #9fe09f !important;
  opacity: 1 !important;
}
.footer-wrapper p,
.footer-wrapper li,
.footer-wrapper a,
.footer-wrapper .menu-item a,
.footer-wrapper .nav > li > a,
.footer-wrapper .ux-menu-link__link,
.footer-wrapper .ux-menu-link__text,
.footer-wrapper .textwidget,
.absolute-footer,
.absolute-footer p,
.absolute-footer a,
.absolute-footer .nav > li > a {
  color: #f2f6f2 !important;
  opacity: 1 !important;
}
.footer-wrapper a:hover,
.footer-wrapper .menu-item a:hover,
.footer-wrapper .nav > li > a:hover,
.absolute-footer a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}
.footer-wrapper .footer-secondary,
.footer-wrapper .footer-primary,
.absolute-footer {
  background: #1a2a1a !important;
}

@media (max-width: 980px) {
  .emcbd-footer__top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
  .emcbd-footer__brand,
  .emcbd-footer__newsletter {
    width: auto;
    flex-basis: auto;
  }
}

@media (max-width: 640px) {
  .emcbd-footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 24px;
  }
  .emcbd-footer__logo { font-size: 18px; }
  .emcbd-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 24px;
  }
  .emcbd-footer__legal {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}

/* ===================================================================
   MOBILE — comprehensive responsive fixes
   =================================================================== */

/* Header + nav (≤900px) */
@media (max-width: 900px) {
  .emcbd-header { padding: 0 16px !important; min-height: 64px !important; }
  .wp-block-site-logo.emcbd-logo img { height: 40px !important; }
  .emcbd-nav { flex: 0 0 auto !important; min-width: auto; }
  .emcbd-header-actions { gap: 12px !important; }
}

/* Topbar mobile — show only promo on small screens */
@media (max-width: 768px) {
  .emcbd-topbar {
    height: auto !important;
    min-height: 32px !important;
    max-height: none !important;
    padding: 6px 16px !important;
    justify-content: center !important;
  }
  .emcbd-topbar__left { display: none !important; }
  .emcbd-topbar__promo { margin: 0 !important; }
}

/* Mobile nav overlay */
.wp-block-navigation__responsive-container.is-menu-open {
  background: var(--wp--preset--color--surface) !important;
  padding: 24px 24px 40px !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  top: 20px !important;
  right: 20px !important;
  color: var(--wp--preset--color--text) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0 !important;
  padding-top: 48px !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  padding: 14px 0 !important;
  color: var(--wp--preset--color--text) !important;
  border-bottom: 1px solid var(--wp--preset--color--border) !important;
  display: block !important;
  width: 100% !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
  border-bottom: none !important;
}
/* Submenu inside overlay */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 0 0 0 16px !important;
  min-width: 0 !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container::before { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 1px !important;
  color: var(--wp--preset--color--text-dim) !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--wp--preset--color--border) !important;
}

/* Hero section mobile */
@media (max-width: 768px) {
  /* Reduce hero group padding */
  .wp-block-group.alignfull.has-bg-background-color[style*="padding-top:80px"] {
    padding: 40px 20px !important;
  }
  /* Hero stats row */
  .emcbd-hero-stats { gap: 16px !important; }
  /* Brand story image height */
  .emcbd-brand-img-wrap { min-height: 240px !important; height: 240px !important; }
  .wp-block-column[style*="flex-basis:50%;min-height:560px"] { min-height: 240px !important; }
  /* Brand story content padding */
  .wp-block-column[style*="padding:80px"] { padding: 32px 24px !important; }
  /* Benefits + categories section padding */
  .emcbd-benefits-section,
  .emcbd-categories-section { padding-left: 20px !important; padding-right: 20px !important; }
  /* Trust strip horizontal on mobile → reduce padding */
  .emcbd-trust-strip__inner { padding: 20px 16px !important; gap: 16px !important; }
}

/* HyperFort banner mobile */
@media (max-width: 768px) {
  .emcbd-hyperfort-content { padding: 0 20px !important; }
}

/* ── Force all wp:columns to stack on mobile ──────────────────────── */
@media (max-width: 600px) {
  /* Override inline flex-basis on all columns */
  .wp-block-columns { flex-wrap: wrap !important; }
  .wp-block-column {
    flex-basis: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
  }
  /* Brand story image: reduce height when stacked */
  .emcbd-brand-img-wrap {
    min-height: 220px !important;
    height: 220px !important;
  }
  /* Brand story content: fix inline padding:80px */
  .wp-block-column[style*="padding:80px"] {
    padding: 32px 20px !important;
  }
  .wp-block-column[style*="padding: 80px"] {
    padding: 32px 20px !important;
  }
  /* Hero group: reduce padding */
  .wp-block-group.alignfull[style*="padding-top:80px"],
  .wp-block-group.alignfull[style*="padding-top: 80px"] {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  /* General group/section padding on mobile */
  .wp-block-group.alignfull[style*="padding-left:40px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ── Mobile typography scale ─────────────────────────────────────── */
@media (max-width: 600px) {
  /* Section headings (Playfair) */
  h1, .wp-block-heading[style*="clamp(40px"] { font-size: clamp(28px, 7vw, 36px) !important; }
  h2, .wp-block-heading { font-size: clamp(22px, 6vw, 28px) !important; }
  h3 { font-size: 18px !important; }

  /* Product card title */
  .emcbd-card__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .emcbd-product-title { font-size: 14px !important; line-height: 1.3 !important; }

  /* Product price */
  .emcbd-card__price,
  .woocommerce ul.products li.product .price,
  .price { font-size: 16px !important; }

  /* Eyebrow / meta caps */
  .emcbd-card__cat,
  .emcbd-eyebrow,
  .wp-block-paragraph[style*="letterSpacing"] { font-size: 10px !important; letter-spacing: 1.5px !important; }

  /* Add to cart button — prevent 3-line wrap in narrow 2-col cards */
  .woocommerce ul.products li.product form.emcbd-variations .emcbd-btn--primary {
    font-size: 11px !important;
    letter-spacing: 0.6px !important;
    padding: 9px 8px !important;
    margin: 8px 10px 14px !important;
    width: calc(100% - 20px) !important;
  }

  /* Variant pills */
  .emcbd-pill { font-size: 11px !important; padding: 4px 8px !important; }

  /* Body / description text */
  .wp-block-paragraph { font-size: 14px !important; line-height: 1.6 !important; }
  /* But don't shrink tiny meta/labels further */
  .wp-block-paragraph[style*="font-size:12px"],
  .wp-block-paragraph[style*="font-size:13px"] { font-size: 12px !important; }
}

/* Buttons -------------------------------------------------------------------*/
.emcbd-btn,
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.button,
.woocommerce a.button,
.woocommerce button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  border: 0;
  border-radius: var(--emcbd-radius-md);
  padding: 12px 24px;
  background: var(--wp--preset--color--accent) !important;
  color: #ffffff !important;
  transition: background-color .2s ease, transform .2s ease, color .2s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link.has-text-color { color: #ffffff !important; }
.emcbd-btn:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--wp--preset--color--accent-hover) !important;
  color: #ffffff !important;
}
.emcbd-btn--ghost,
.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--text);
  border: 1px solid currentColor;
}
.emcbd-btn--small {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--emcbd-radius-sm);
}

/* Price strikethrough (loop / single / variations) -------------------------*/
.emcbd-del {
  color: var(--wp--preset--color--white);
  text-decoration: line-through;
  font-weight: 700;
  font-size: 1em;
}
.emcbd-ins {
  color: var(--wp--preset--color--text);
  background: var(--wp--preset--color--white);
  padding: 0 6px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
}
.emcbd-btn .emcbd-ins { color: var(--wp--preset--color--text); }

/* Attribute strip ----------------------------------------------------------*/
.emcbd-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.emcbd-attr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  background: var(--wp--preset--color--accent-soft);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--emcbd-radius-pill);
  padding: 4px 10px;
}
.emcbd-attr__label {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wp--preset--color--accent);
  font-size: 10px;
}

/* Lab badge ----------------------------------------------------------------*/
.emcbd-badge-lab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--wp--preset--color--accent-deep);
  color: var(--wp--preset--color--success);
  border: 1px solid var(--wp--preset--color--success);
  border-radius: var(--emcbd-radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

/* WC Gram Variations plugin — variation pill layout -------------------------*/
.wcgv-variation-box {
  overflow: hidden;
  align-items: center;
}
.wcgv-variation-buttons {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  max-width: 120px;
}
.wcgv-economise {
  display: inline-flex !important;
  align-items: center;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 3px 7px !important;
  white-space: nowrap;
  line-height: 1.4;
}
.wcgv-test-bubble,
.wcgv-bon-deal-bubble,
.wcgv-variation-buttons span:not(.wcgv-economise) {
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.3;
  color: var(--wp--preset--color--accent);
  white-space: nowrap;
}

/* Variations dropdown (loop) -----------------------------------------------*/
.emcbd-variations {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Variant pill chips — loop cards */
.emcbd-vpills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 22px 8px;
}
.emcbd-vpill {
  background: var(--wp--preset--color--surface-2);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 4px;
  padding: 5px 10px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  cursor: pointer;
  line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.emcbd-vpill.is-active,
.emcbd-vpill:hover {
  background: var(--wp--preset--color--accent-soft);
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}

/* Mystery gift cart line ---------------------------------------------------*/
.emcbd-gift-tag {
  display: inline-block;
  color: var(--wp--preset--color--success);
  font-weight: 700;
}

/* Upsell under cart --------------------------------------------------------*/
.emcbd-upsell {
  margin-top: 40px;
  padding: 24px 0;
}
.emcbd-upsell__title {
  font-family: var(--wp--preset--font-family--playfair);
  font-size: 22px;
  margin-bottom: 16px;
}
.emcbd-upsell__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0;
  margin: 0;
}
.emcbd-upsell__item {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--emcbd-radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.emcbd-upsell__media img { border-radius: var(--emcbd-radius-md); }
.emcbd-upsell__name { font-size: 15px; font-weight: 600; min-height: 42px; margin: 0; }
.emcbd-upsell__name a { color: inherit; text-decoration: none; }
@media (max-width: 1024px) { .emcbd-upsell__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .emcbd-upsell__grid { grid-template-columns: repeat(2, 1fr); } }

/* Disclaimers --------------------------------------------------------------*/
.emcbd-legal {
  display: block;
  width: 100%;
  margin-top: 12px;
  font-size: 12px;
  color: var(--wp--preset--color--text-muted);
}
.emcbd-eta {
  margin: 12px 0;
  font-size: 13px;
  color: var(--wp--preset--color--text-dim);
}

/* Neutralise WC legacy content wrappers (fired by archive-product.php hooks) */
/* remove_action deferred to init@20 handles this for archive pages           */
.woocommerce #primary,
.woocommerce-page #primary { padding: 0 !important; margin: 0 !important; float: none !important; width: 100% !important; }
.woocommerce #content,
.woocommerce-page #content { padding: 0 !important; margin: 0 !important; float: none !important; width: 100% !important; }

/* WooCommerce wrapper ------------------------------------------------------*/
.emcbd-woo,
.emcbd-woo-content {
  background: var(--wp--preset--color--bg);
}
.emcbd-woo__inner,
.emcbd-woo-content__inner {
  max-width: none;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: max(40px, calc((100% - 1280px) / 2));
  padding-right: max(40px, calc((100% - 1280px) / 2));
}

/* WC default classes — design alignment ------------------------------------*/
.woocommerce ul.products,
.wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  list-style: none;
  padding: 0;
}
/* Kill WC clearfix pseudo-elements — they occupy grid cells as display:table items */
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; content: none !important; }
@media (max-width: 1024px) { .woocommerce ul.products, .wc-block-grid__products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px)  { .woocommerce ul.products, .wc-block-grid__products { grid-template-columns: repeat(2, 1fr) !important; } }

/* Related / upsells: 4 col on product page, 3-col elsewhere */
.woocommerce .related ul.products,
.woocommerce .up-sells ul.products {
  grid-template-columns: repeat(4, 1fr) !important;
}
.woocommerce ul.products.columns-3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

.woocommerce ul.products li.product,
.wc-block-grid__product {
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid #CFC5B7 !important;
  border-radius: 14px !important;
  padding: 0 !important;
  text-align: left;
  overflow: hidden;
  width: auto !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(14,14,15,.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
  box-shadow: 0 12px 40px rgba(14,14,15,.10);
  transform: translateY(-2px);
}
/* Card image area — 240px, surface-2 bg */
.woocommerce ul.products li.product > a,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: block;
  padding: 0;
}
.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 240px;
  object-fit: cover;
  background: var(--wp--preset--color--surface-2);
  margin: 0 !important;
  display: block;
}

/* Card body — vertical flex, 22px padding, 10px gap (matches Pencil body node) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .star-rating,
.woocommerce ul.products li.product .woocommerce-loop-product__rating,
.woocommerce ul.products li.product .emcbd-loop-eyebrow,
.woocommerce ul.products li.product .emcbd-attrs,
.woocommerce ul.products li.product .cbd-fleurs-wrapper-insert {
  padding-left: 22px !important;
  padding-right: 22px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}

/* Eyebrow — Pencil: Lato 11/700, #2D4A2D, letterSpacing 1.5, sits below image */
.emcbd-loop-eyebrow {
  padding-top: 22px !important;
  padding-bottom: 0 !important;
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--wp--preset--color--accent) !important;
  line-height: 1 !important;
}
/* Title padding: less when eyebrow precedes it, full 22px otherwise */
.woocommerce ul.products li.product:has(.emcbd-loop-eyebrow) .woocommerce-loop-product__title {
  padding-top: 10px !important;
}
.woocommerce ul.products li.product:not(:has(.emcbd-loop-eyebrow)) .woocommerce-loop-product__title {
  padding-top: 22px !important;
}

/* Title — Pencil: Lato 18/600, #1A1A1A */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--wp--preset--color--text) !important;
  min-height: auto !important;
  height: auto !important;
}

/* Star rating — Pencil: #F4A419, 14px, inline row */
.woocommerce ul.products li.product .star-rating {
  margin-top: 10px !important;
  font-size: 0.85em;
  color: #F4A419 !important;
}
.woocommerce ul.products li.product .star-rating::before,
.woocommerce ul.products li.product .star-rating span::before { color: #F4A419; }
.woocommerce ul.products li.product .woocommerce-loop-product__rating { margin-top: 10px !important; }

/* Simple product price — Pencil: accent 20px 700 */
.woocommerce ul.products li.product .price {
  color: var(--wp--preset--color--accent) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  margin-top: 10px !important;
  display: block;
}
/* Variable products: price is inside our form, not inside <a> — hide WC rendered price */
.woocommerce ul.products li.product.product-type-variable > a .price,
.woocommerce ul.products li.product.product-type-variable .woocommerce-LoopProduct-link .price { display: none !important; }

/* Variation form — vertical flex, full card width */
.woocommerce ul.products li.product form.emcbd-variations {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1;
  box-sizing: border-box !important;
}
/* Pills row — Pencil varR: gap 6, padding 22 sides */
.woocommerce ul.products li.product form.emcbd-variations .emcbd-vpills {
  padding: 10px 22px 0 !important;
  margin: 0 !important;
}
/* "À partir de" price row — Pencil priceR: flex row, gap 8, alignItems center */
.woocommerce ul.products li.product form.emcbd-variations .emcbd-loop-price {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  padding: 10px 22px 0 !important;
  margin: 0 !important;
  flex: 1;
}

/* "À partir de" label — Pencil: Lato 12px normal #4F4F4F */
.emcbd-from {
  display: inline !important;
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #4F4F4F !important;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
/* Price value — Pencil: Lato 20px 700 accent */
.emcbd-from-price {
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--accent) !important;
}
.emcbd-from-price .amount,
.emcbd-from-price bdi { font-size: 20px !important; font-weight: 700 !important; }

/* Loop button (simple) — Pencil btnB: radius 8, padding [10,16], Lato 12/700 ls1 */
.woocommerce ul.products li.product .button.emcbd-btn--primary,
.woocommerce ul.products li.product .add_to_cart_button.emcbd-btn--primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  margin: auto 22px 22px !important;
  width: calc(100% - 44px) !important;
}
/* Variation form button */
.woocommerce ul.products li.product form.emcbd-variations .emcbd-btn--primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  width: calc(100% - 44px) !important;
  margin: 10px 22px 22px !important;
  box-sizing: border-box !important;
}
@media (max-width: 600px) {
  .woocommerce ul.products li.product form.emcbd-variations .emcbd-btn--primary {
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
    padding: 9px 8px !important;
    margin: 8px 10px 14px !important;
    width: calc(100% - 20px) !important;
  }
}

/* Shopping-bag SVG icon on all loop buttons */
.woocommerce ul.products li.product .emcbd-btn--primary::before {
  content: '' !important;
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
}

/* Hide wcgv select dropdown — we render pill form instead */
.woocommerce ul.products li.product .wcgv-variation-box { display: none !important; }

/* WC default "Choix des options" / variable notice — hidden */
.woocommerce ul.products li.product .added_to_cart,
.woocommerce ul.products li.product p.woocommerce-loop-product__availability,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link + p,
.woocommerce ul.products li.product form.emcbd-variations + p { display: none !important; }

/* WC Blocks product grid cards — same structure */
.wc-block-grid__product {
  padding: 0 !important;
  overflow: hidden;
}
.wc-block-grid__product .wc-block-grid__product-image img { height: 240px; object-fit: cover; margin: 0 !important; }
.wc-block-grid__product .wc-block-grid__product-title {
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 18px !important; font-weight: 600 !important;
  padding: 22px 22px 0 !important; margin: 0 !important;
}
.wc-block-grid__product .wc-block-grid__product-price {
  padding: 10px 22px 0 !important; margin: 0 !important;
  font-size: 20px !important; font-weight: 700 !important;
  color: var(--wp--preset--color--accent) !important;
}
.wc-block-grid__product .wc-block-grid__product-add-to-cart {
  padding: 10px 22px 22px !important; margin: 0 !important; margin-top: auto !important;
}
.wc-block-grid__product .wc-block-grid__product-add-to-cart .wp-block-button__link {
  width: 100% !important; text-align: center !important;
  font-size: 12px !important; letter-spacing: 1px !important;
  padding: 10px 16px !important;
}

/* Sale/Promo badge — absolute top-left pill matching Pencil badgeW */
.woocommerce ul.products li.product,
.wc-block-grid__product { position: relative !important; }

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  background: var(--wp--preset--color--accent) !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  padding: 4px 10px !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 0 !important;
  line-height: 1 !important;
  display: inline-block !important;
  text-align: center !important;
  z-index: 2;
}

/* WC Blocks product-collection (.wc-block-product) — same card design as classic loop */
.wc-block-product {
  position: relative !important;
  background: var(--wp--preset--color--surface) !important;
  border: 1px solid #CFC5B7 !important;
  border-radius: 14px !important;
  padding: 0 !important;
  text-align: left;
  overflow: hidden;
  width: auto !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 20px rgba(14,14,15,.04);
  transition: box-shadow .2s ease, transform .2s ease;
}
.wc-block-product:hover {
  box-shadow: 0 12px 40px rgba(14,14,15,.10);
  transform: translateY(-2px);
}
.wc-block-product .wc-block-components-product-image,
.wc-block-product .wp-block-woocommerce-product-image {
  display: block !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
}
.wc-block-product .wc-block-components-product-image a {
  position: relative;
  display: block;
}
.wc-block-product .wc-block-components-product-image img,
.wc-block-product .wp-block-woocommerce-product-image img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  background: var(--wp--preset--color--surface-2);
  margin: 0 !important;
  display: block;
  border-radius: 0 !important;
}
/* Sale badge: reposition from alignright to absolute top-left */
.wc-block-product .wp-block-woocommerce-product-sale-badge {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2;
}
.wc-block-product .wc-block-components-product-sale-badge {
  position: static !important;
  display: inline-block !important;
  width: auto !important;
}
.wc-block-product .wc-block-components-product-sale-badge__text {
  background: var(--wp--preset--color--accent) !important;
  color: #fff !important;
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  line-height: 1 !important;
}
/* Body padding */
.wc-block-product .emcbd-loop-eyebrow,
.wc-block-product .wp-block-post-title,
.wc-block-product .star-rating,
.wc-block-product .woocommerce-loop-product__rating,
.wc-block-product .wc-block-components-product-price,
.wc-block-product .wp-block-woocommerce-product-price {
  padding-left: 22px !important;
  padding-right: 22px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  box-sizing: border-box;
}
.wc-block-product:has(.emcbd-loop-eyebrow) .wp-block-post-title { padding-top: 10px !important; }
.wc-block-product:not(:has(.emcbd-loop-eyebrow)) .wp-block-post-title { padding-top: 22px !important; }
.wc-block-product .wp-block-post-title {
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--wp--preset--color--text) !important;
  line-height: 1.3 !important;
}
.wc-block-product .wp-block-post-title a { color: inherit !important; text-decoration: none !important; }
.wc-block-product .star-rating { margin-top: 10px !important; font-size: 0.85em; }
.wc-block-product .star-rating::before,
.wc-block-product .star-rating span::before { color: #F4A419; }
.wc-block-product .woocommerce-loop-product__rating { margin-top: 10px !important; }
/* Price — simple products */
.wc-block-product .wc-block-components-product-price,
.wc-block-product .wp-block-woocommerce-product-price { margin-top: 10px !important; }
.wc-block-product .wc-block-grid__product-price,
.wc-block-product .wc-block-components-product-price .woocommerce-Price-amount {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--accent) !important;
}
/* Variable: price block hidden — pills form renders it */
.wc-block-product.product-type-variable .wc-block-components-product-price,
.wc-block-product.product-type-variable .wp-block-woocommerce-product-price { display: none !important; }
/* Variation form */
.wc-block-product form.emcbd-variations {
  display: flex !important; flex-direction: column !important; gap: 0 !important;
  width: 100% !important; margin: 0 !important; padding: 0 !important;
  flex: 1; box-sizing: border-box !important;
}
.wc-block-product form.emcbd-variations .emcbd-vpills { padding: 10px 22px 0 !important; margin: 0 !important; }
.wc-block-product form.emcbd-variations .emcbd-loop-price {
  display: flex !important; align-items: center !important; gap: 8px !important;
  flex-wrap: nowrap !important; padding: 10px 22px 0 !important; margin: 0 !important; flex: 1;
}
.wc-block-product form.emcbd-variations .emcbd-btn--primary {
  display: flex !important; align-items: center !important; justify-content: center !important;
  gap: 6px !important; font-size: 12px !important; font-weight: 700 !important;
  letter-spacing: 1px !important; padding: 10px 16px !important; border-radius: 8px !important;
  width: calc(100% - 44px) !important; margin: 10px 22px 22px !important; box-sizing: border-box !important;
}
.wc-block-product .emcbd-btn--primary::before {
  content: '' !important; display: inline-block !important;
  width: 14px !important; height: 14px !important; flex-shrink: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C%2Fsvg%3E") !important;
  background-repeat: no-repeat !important; background-position: center !important; background-size: contain !important;
}
/* Simple product: WC block native button → restyle */
.wc-block-product .wp-block-woocommerce-product-button { padding: 0 22px 22px !important; margin-top: auto !important; }
.wc-block-product .wc-block-components-product-button__button,
.wc-block-product .wp-block-woocommerce-product-button .wp-element-button {
  background: var(--wp--preset--color--accent) !important; color: #fff !important;
  border: none !important; font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: 1px !important;
  padding: 10px 16px !important; border-radius: 8px !important;
  width: 100% !important; text-align: center !important; cursor: pointer; text-transform: uppercase;
}

/* Single product — Pencil IfHOk ────────────────────────────────────────── */

/* Hide ADP bulk discount table */
.wdp_bulk_table_content { display: none !important; }

/* 2-col grid: gallery left spans 2 rows / summary top-right / tabs below summary */
.single-product div.product {
  display: grid;
  grid-template-columns: 640px 1fr;
  grid-template-areas:
    "gallery summary"
    "gallery tabs"
    "related related";
  column-gap: 64px;
  row-gap: 0;
  align-items: start;
  max-width: none;
  padding-top: 24px;
  padding-bottom: 80px;
  padding-left: max(40px, calc((100% - 1280px) / 2));
  padding-right: max(40px, calc((100% - 1280px) / 2));
}
.single-product div.product .woocommerce-product-gallery {
  grid-area: gallery;
  grid-row: span 2;         /* spans summary + tabs rows */
  width: 100% !important;   /* override WC's width: 48.8% */
  float: none !important;
  align-self: start;
}
.single-product div.product .summary.entry-summary {
  grid-area: summary;
  width: 100% !important;   /* override WC's width: 48.8% */
  float: none !important;
  clear: none !important;
}
.single-product div.product .woocommerce-tabs {
  grid-area: tabs;
  padding-top: 32px;
}
.single-product div.product .related.products            { grid-area: related; }
/* onsale badge: place in gallery grid-area so it overlays the image */
.single-product div.product > .onsale {
  grid-area: gallery;
  align-self: start;
  justify-self: start;
  position: relative;
  z-index: 10;
  margin: 12px 0 0 12px !important;
}

/* Summary — vertical stack, 24px gap; reset WC child margins to avoid double-spacing */
.single-product .summary.entry-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.single-product .summary.entry-summary > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Category eyebrow */
.emcbd-pd-eyebrow {
  margin: 0;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}

/* Title */
.single-product .product .product_title {
  margin: 0;
  font-family: var(--wp--preset--font-family--lato);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--wp--preset--color--text);
}

/* Price — hide range; wcgv/variation shows selected price ----------------*/
.single-product .summary > .price { display: none !important; }

/* Selected variation price (wcgv renders variation-price-box) */
.single-product .woocommerce-variation-price {
  display: block !important;
}
.single-product .woocommerce-variation-price .variation-price-box {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
}
.single-product .woocommerce-variation-price .grams { display: none !important; }
.single-product .woocommerce-variation-price .variation-price-box > *:not(.price) { display: none !important; }
.single-product .woocommerce-variation-price .price,
.single-product .woocommerce-variation-price .price .woocommerce-Price-amount {
  display: inline !important;
  font-family: var(--wp--preset--font-family--lato), sans-serif !important;
  font-size: 42px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: var(--wp--preset--color--accent) !important;
  margin: 0 !important;
}
.single-product .woocommerce-variation-price .price del { display: none !important; }
.single-product .woocommerce-variation-price .price ins {
  text-decoration: none !important;
  color: var(--wp--preset--color--accent) !important;
}
.single-product .woocommerce-variation-price .economise { display: none !important; }
.single-product .woocommerce-variation-price .price-per-gram { display: none !important; }

/* Short description */
.single-product .woocommerce-product-details__short-description {
  margin: 0;
  font-size: 15px;
  color: var(--wp--preset--color--text-muted);
  line-height: 1.7;
}

/* ── Add-to-cart row: [qty] [button] [heart] ─────────────────────────────── */
/* Simple product: form.cart directly wraps qty + button */
.single-product .summary form.cart:not(.variations_form) {
  display: flex !important;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  z-index: auto !important;
}
/* Variable product: action area inside single_variation_wrap */
.single-product .summary .woocommerce-variation-add-to-cart {
  display: flex !important;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}
/* Variable form itself: block so wcgv pills stack above the action row */
.single-product .summary form.variations_form.cart {
  display: block !important;
  position: static !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/* Qty stepper: white bg, #D8D0C4 border, r8 */
.single-product .summary form.cart .quantity,
.single-product .summary .woocommerce-variation-add-to-cart .quantity {
  display: flex !important;
  align-items: center !important;
  background: #ffffff;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
  height: 48px;
}
.emcbd-pd-qty-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 48px; flex: 0 0 44px;
  background: transparent; border: none; cursor: pointer;
  color: #1A1A1A;
  transition: color .15s ease;
}
.emcbd-pd-qty-minus:hover { color: #c0392b; }
.emcbd-pd-qty-plus:hover  { color: var(--wp--preset--color--accent); }
.single-product .summary form.cart .quantity input.qty,
.single-product .summary .woocommerce-variation-add-to-cart .quantity input.qty {
  width: 48px; height: 48px;
  text-align: center;
  border: none; border-left: 1px solid #D8D0C4; border-right: 1px solid #D8D0C4;
  background: transparent;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 14px; font-weight: 700; color: #1A1A1A;
  -moz-appearance: textfield;
  outline: none; padding: 0;
}
.single-product .summary form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product .summary form.cart .quantity input.qty::-webkit-inner-spin-button,
.single-product .summary .woocommerce-variation-add-to-cart .quantity input.qty::-webkit-outer-spin-button,
.single-product .summary .woocommerce-variation-add-to-cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ATC button: green fill, shopping-bag icon via ::before */
.single-product .summary form.cart .single_add_to_cart_button,
.single-product .summary .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  background: #2D4A2D !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0 32px !important;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 14px !important; font-weight: 700 !important; letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease;
  white-space: nowrap;
}
.single-product .summary form.cart .single_add_to_cart_button:hover,
.single-product .summary .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover { background: #3A5C3A !important; }
.single-product .summary form.cart .single_add_to_cart_button::before,
.single-product .summary .woocommerce-variation-add-to-cart .single_add_to_cart_button::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  flex-shrink: 0;
  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='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ── TI WooCommerce Wishlist button — styled as icon-only heart ────────────── */
/* Shared: hide all plugin children — we draw the heart via ::before SVG */
.tinvwl_add_to_wishlist_button span,
.tinvwl_add_to_wishlist_button::before { display: none !important; }
.tinv-wraper .tinvwl-tooltip,
.tinv-wraper .tinv-wishlist-clear { display: none !important; }
.tinv-wishlist.tinvwl-after-add-to-cart .tinvwl_add_to_wishlist_button { margin-top: 0 !important; }
/* Hide plugin's "Default wishlist" heading — page title already serves as heading */
.tinv-wishlist .tinv-wishlist-main-header,
.tinv-wishlist h2.tinv-wishlist-name,
.tinv-wishlist .tinv-header h2 { display: none !important; }

/* Wishlist Actions select + button */
.tinv-wishlist .tinv-wishlist-main-footer select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff 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='%235A5A5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  padding: 10px 40px 10px 14px;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  cursor: pointer;
  min-width: 200px;
}
.tinv-wishlist .tinv-wishlist-main-footer select:focus {
  outline: none;
  border-color: #2D4A2D;
}
.tinv-wishlist .tinv-wishlist-main-footer .button {
  background: #2D4A2D !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: background .15s ease !important;
}
.tinv-wishlist .tinv-wishlist-main-footer .button:hover {
  background: #3A5C3A !important;
}

/* Heart SVG via ::after */
.tinvwl_add_to_wishlist_button::after {
  content: '';
  display: block;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' 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/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}
/* Active state: filled red heart */
.tinvwl_add_to_wishlist_button.tinvwl-product-in-list::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23e63946' stroke='%23e63946' 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/svg%3E");
}

/* Single product: inline with qty + ATC button */
.single-product .tinv-wraper.tinv-wishlist {
  display: inline-flex !important;
  align-items: center;
  align-self: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0 !important;
}
.single-product .tinv-wraper.tinv-wishlist .tinvwl_add_to_wishlist_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: #fff;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s ease;
  box-sizing: border-box;
}
.single-product .tinv-wraper.tinv-wishlist .tinvwl_add_to_wishlist_button:hover { border-color: var(--wp--preset--color--accent); }
.single-product .tinv-wraper .tinvwl_add_to_wishlist_button.tinvwl-product-in-list { border-color: #e63946; }

/* Loop / product cards: icon overlay top-right of image */
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product .tinv-wraper.tinv-wishlist {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  width: auto !important;
  z-index: 2;
  margin: 0 !important;
}
.woocommerce ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.92);
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .15s ease;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}
.woocommerce ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button::after {
  width: 16px; height: 16px;
}
.woocommerce ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button:hover { border-color: var(--wp--preset--color--accent); }
.woocommerce ul.products li.product .tinv-wraper .tinvwl_add_to_wishlist_button.tinvwl-product-in-list { border-color: #e63946; }

/* Legal strip — small text below add-to-cart row */
.emcbd-legal {
  margin: 0;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  color: var(--wp--preset--color--text-muted);
  line-height: 1.5;
}

/* Trust strip */
.emcbd-pd-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #D8D0C4;
  border-bottom: 1px solid #D8D0C4;
}
.emcbd-pd-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  color: #1A1A1A;
}
.emcbd-pd-trust__item svg { color: var(--wp--preset--color--accent); flex-shrink: 0; }

/* Gallery main image — 640px to match Pencil --------------------------------*/
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  border-radius: 12px;
  width: 100% !important;
  height: auto !important;
}
.single-product .woocommerce-product-gallery ol.flex-control-thumbs {
  display: flex !important;
  gap: 12px;
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 0 !important;
}
.single-product .woocommerce-product-gallery ol.flex-control-thumbs li { margin: 0 !important; }
.single-product .woocommerce-product-gallery ol.flex-control-thumbs img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover;
  border-radius: 8px !important;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.single-product .woocommerce-product-gallery ol.flex-control-thumbs .flex-active {
  border-color: var(--wp--preset--color--accent) !important;
}

/* FORMAT label above variation pills ----------------------------------------*/
.emcbd-pd-format-label {
  margin: 0;
  font-family: var(--wp--preset--font-family--lato), sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-muted);
}

/* wcgv variation pills on single product — Pencil varRow --------------------*/
.single-product table.variations { display: none !important; }
.single-product .reset_variations { display: none !important; }

.single-product .wcgv-variation-options {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.single-product .wcgv-variation-radio {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important; height: 0 !important;
}
.single-product .wcgv-variation-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 64px !important;
  padding: 10px 14px !important;
  background: var(--wp--preset--color--surface-2) !important;
  border: 1.5px solid var(--wp--preset--color--border) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all .15s ease !important;
  overflow: visible !important;
}
.single-product .wcgv-variation-radio:checked + .wcgv-variation-box {
  background: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
}
.single-product .wcgv-variation-radio:checked + .wcgv-variation-box .wcgv-gram,
.single-product .wcgv-variation-radio:checked + .wcgv-variation-box .wcgv-price,
.single-product .wcgv-variation-radio:checked + .wcgv-variation-box ins,
.single-product .wcgv-variation-radio:checked + .wcgv-variation-box .woocommerce-Price-amount {
  color: #ffffff !important;
}
.single-product .wcgv-variation-box:hover {
  border-color: var(--wp--preset--color--accent) !important;
  background: var(--wp--preset--color--surface-2) !important;
}
/* Override wcgv plugin's hover→black-bg+white-text — body selector wins specificity battle */
body .single-product .wcgv-variation-box:hover {
  color: var(--wp--preset--color--text) !important;
  box-shadow: none !important;
}
body .single-product .wcgv-variation-box:hover .wcgv-gram { color: var(--wp--preset--color--text) !important; }
body .single-product .wcgv-variation-box:hover ins,
body .single-product .wcgv-variation-box:hover ins .woocommerce-Price-amount { color: var(--wp--preset--color--accent) !important; }
body .single-product .wcgv-variation-box:hover del,
body .single-product .wcgv-variation-box:hover del .woocommerce-Price-amount { color: #999 !important; }
body .single-product .wcgv-variation-box:hover .wcgv-economise { background: var(--wp--preset--color--accent) !important; color: #fff !important; border-color: var(--wp--preset--color--accent) !important; }
.single-product .wcgv-variation-content { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 2px !important; }
.single-product .wcgv-variation-info { display: flex !important; }
.single-product .wcgv-variation-main { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 2px !important; }
.single-product .wcgv-gram {
  font-family: var(--wp--preset--font-family--lato), sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--wp--preset--color--text) !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
}
.single-product .wcgv-separator { display: none !important; }
.single-product .wcgv-price-wrapper,
.single-product .wcgv-variation-main .wcgv-price,
.single-product .wcgv-variation-main ins,
.single-product .wcgv-variation-main del {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
.single-product .wcgv-variation-main ins { color: var(--wp--preset--color--accent) !important; text-decoration: none !important; }
.single-product .wcgv-variation-main del { color: #aaaaaa !important; font-size: 10px !important; }
.single-product .wcgv-variation-buttons { display: none !important; }
.single-product .wcgv-economise {
  display: inline-flex !important;
  background: var(--wp--preset--color--accent) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  margin-top: 3px !important;
}

/* ── Accordion (WC tabs converted) ──────────────────────────────────────── */
.single-product .woocommerce-tabs .wc-tabs-wrapper {
  display: flex;
  flex-direction: column;
}
.emcbd-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid #D8D0C4;
  cursor: pointer;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 15px; font-weight: 600;
  color: #1A1A1A;
  user-select: none;
}
.emcbd-acc-body {
  display: none;
  padding: 0 0 20px;
  border-bottom: 1px solid #D8D0C4;
}
.emcbd-acc-body.is-open { display: block; }
.emcbd-acc-body .panel {
  font-size: 14px;
  color: var(--wp--preset--color--text);
  line-height: 1.7;
}
.emcbd-acc-body .panel p,
.emcbd-acc-body .panel li,
.emcbd-acc-body .panel td,
.emcbd-acc-body .panel h1,
.emcbd-acc-body .panel h2,
.emcbd-acc-body .panel h3 {
  color: var(--wp--preset--color--text) !important;
}
.emcbd-acc-chevron {
  flex-shrink: 0;
  transition: transform .2s ease;
  color: #8A8A8A;
}
.emcbd-acc-header.is-open .emcbd-acc-chevron {
  transform: rotate(180deg);
  color: var(--wp--preset--color--accent);
}

/* ── Related products section — Pencil KU93e ─────────────────────────────── */
.single-product .related.products {
  background: #ffffff;
  padding: 64px 40px;
  margin: 0 -40px;
}
.emcbd-rel-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 32px;
}
.emcbd-rel-eyebrow {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}
.emcbd-rel-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--playfair);
  font-size: 32px; font-weight: 600; letter-spacing: -0.3px;
  color: var(--wp--preset--color--text);
}

/* Mobile — single product responsive */
@media (max-width: 900px) {
  .single-product div.product {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "summary"
      "tabs"
      "related";
    padding: 16px 16px 0;
    column-gap: 0;
    row-gap: 24px;
  }
  .single-product div.product .woocommerce-product-gallery { grid-row: span 1; }
  .single-product div.product .woocommerce-tabs { padding-top: 0; }
  .single-product .related.products { margin: 0 -16px; padding: 40px 16px; }
}
@media (max-width: 768px) {
  .single-product div.product { padding-bottom: 80px; }
  .single-product .summary form.cart:not(.variations_form),
  .single-product .summary .woocommerce-variation-add-to-cart {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    background: var(--wp--preset--color--surface) !important;
    border-top: 1px solid var(--wp--preset--color--border) !important;
    padding: 12px 16px !important;
    z-index: 50 !important;
  }
}

/* Legal TOC sidebar --------------------------------------------------------*/
.emcbd-toc { position: sticky; top: 24px; align-self: flex-start; }
.emcbd-toc__inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.emcbd-toc__inner a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--wp--preset--color--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.emcbd-toc__inner a:hover {
  color: var(--wp--preset--color--accent);
}

/* Checkout notices + coupon — zero padding, let parent handle width */
.woocommerce-checkout .woocommerce-notices-wrapper,
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce form.checkout_coupon,
.woocommerce-checkout .checkout_coupon,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error {
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

/* Cart block store notices */
.woocommerce.wc-block-store-notices.alignwide { padding-bottom: 40px !important; }

/* Cart / Checkout heading ---------------------------------------------------*/
.emcbd-cart-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}
.emcbd-eyebrow {
  margin: 0;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}
.emcbd-cart-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--playfair);
  font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -0.3px;
  color: var(--wp--preset--color--text);
}
/* Hide WP post-title on cart/checkout — WC hook renders correct heading */
.woocommerce-cart .wp-block-post-title,
.woocommerce-checkout .wp-block-post-title { display: none !important; }

/* Cart 2-col layout — matches Pencil frame vyIIE > cartM -------------------*/
/* Remove page.html's 40px padding-top — emcbd-cart-head handles its own spacing */
.woocommerce-cart main.wp-block-group,
.woocommerce-checkout main.wp-block-group,
.woocommerce-account main.wp-block-group { padding-top: 0 !important; }
/* All WC pages + wishlist: match header's responsive padding formula — keeps content at wideSize=1280px */
.woocommerce-cart .wp-block-post-content,
.woocommerce-checkout .wp-block-post-content,
.woocommerce-account .wp-block-post-content,
.woocommerce-order-received .wp-block-post-content,
.tinvwl-theme-style .wp-block-post-content {
  margin-top: 0 !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: max(40px, 50% - 640px) !important;
  padding-right: max(40px, 50% - 640px) !important;
}
.woocommerce-checkout .wp-block-post-content {
  padding-top: 40px !important;
}
.woocommerce-account .wp-block-post-content,
.woocommerce-order-received .wp-block-post-content {
  padding-top: 40px !important;
}
/* Cancel WP constrained-layout auto-centering on direct children */
.woocommerce-cart .wp-block-post-content > *,
.woocommerce-checkout .wp-block-post-content > *,
.woocommerce-account .wp-block-post-content > *,
.woocommerce-order-received .wp-block-post-content > *,
.tinvwl-theme-style .wp-block-post-content > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce { max-width: none !important; }

.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  padding-top: 0;
  padding-bottom: 80px;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 900px) {
  /* Single column — remove inner padding, reset grid-column to prevent implicit 2nd column */
  .woocommerce-cart .woocommerce { grid-template-columns: 1fr; padding: 0 0 48px; }
  .woocommerce-cart .woocommerce-cart-form { grid-column: 1 !important; }
  .woocommerce-cart .cart-collaterals { grid-column: 1 !important; }
}
@media (max-width: 600px) {
  /* Cart head */
  .emcbd-cart-head { padding-top: 8px; gap: 4px; }
  .emcbd-cart-title { font-size: 22px !important; line-height: 1.2 !important; }

  /* Cart items: CSS grid layout matching pen design — image left, info top-right, qty+price bottom-right */
  .emcbd-cart-items { gap: 10px; }
  .emcbd-cart-item {
    display: grid !important;
    grid-template-columns: 64px 1fr auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 6px !important;
    padding: 12px !important;
    align-items: start !important;
  }
  .emcbd-ci-img    { grid-column: 1 !important; grid-row: 1 / 3 !important; align-self: start; }
  .emcbd-ci-img img { width: 64px; height: 64px; border-radius: 6px; }
  .emcbd-ci-info   { grid-column: 2 / 3 !important; grid-row: 1 !important; gap: 3px; }
  .emcbd-ci-remove { grid-column: 3 !important; grid-row: 1 !important; align-self: start; flex: none; }
  .emcbd-ci-remove .remove { width: 24px; height: 24px; }
  .emcbd-ci-qty    { grid-column: 2 !important; grid-row: 2 !important; justify-self: start; }
  .emcbd-ci-price  { grid-column: 3 !important; grid-row: 2 !important; justify-self: end; font-size: 15px; }
  .emcbd-ci-name { font-size: 14px; }
  .emcbd-ci-eyebrow { font-size: 10px; letter-spacing: 1px; }
  .emcbd-ci-meta { font-size: 12px; }
  .emcbd-ci-qty .quantity input[type="number"] { width: 36px; height: 34px; font-size: 12px; }

  /* Summary card */
  .emcbd-cart-totals { padding: 16px !important; gap: 12px !important; border-radius: 10px !important; }
  .emcbd-recap-label { font-size: 12px; letter-spacing: 1.5px; }
  .emcbd-totals-row { font-size: 13px; }

  /* Checkout CTA button */
  .emcbd-checkout-cta .checkout-button,
  .emcbd-checkout-cta a.button {
    font-size: 12px !important;
    letter-spacing: 1px !important;
    padding: 13px 16px !important;
    white-space: nowrap !important;
  }
}
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1; min-width: 0; }
.woocommerce-cart .cart-collaterals { grid-column: 2; }

/* ── Cart notice width constraint ──────────────────────────────────────── */
/* Notices can land anywhere in the DOM (shortcode level, main, body).     */
/* Match the content container width (max 1280px, centered, 40px padding). */
.woocommerce-cart .woocommerce-notices-wrapper {
  display: block;
  width: 100%;
  box-sizing: border-box;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: max(40px, 50% - 600px) !important;
  padding-right: max(40px, 50% - 600px) !important;
}
/* When already inside the .woocommerce grid, remove the padding so it
   doesn't double-up (the grid container handles spacing). */
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ── Cart items list ────────────────────────────────────────────────────── */
.emcbd-cart-items { display: flex; flex-direction: column; gap: 16px; }

/* Single cart item card — Pencil: white, r12, border, p20, gap 20, align-center */
.emcbd-cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 20px;
}

/* Thumbnail — 120×120, r8 */
.emcbd-ci-img { flex: 0 0 120px; }
.emcbd-ci-img img {
  width: 120px; height: 120px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Info column */
.emcbd-ci-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.emcbd-ci-eyebrow {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #5A5A5A;
}
.emcbd-ci-name { font-family: var(--wp--preset--font-family--lato); font-size: 18px; font-weight: 600; color: #1A1A1A; }
.emcbd-ci-name a { color: inherit; text-decoration: none; }
.emcbd-ci-name a:hover { color: var(--wp--preset--color--accent); }
.emcbd-ci-meta { font-size: 13px; color: #8A8A8A; }
.emcbd-ci-meta dl, .emcbd-ci-meta dt, .emcbd-ci-meta dd { display: inline; margin: 0; }
.emcbd-ci-meta dd::after { content: ' · '; }
.emcbd-ci-meta dd:last-child::after { content: ''; }

/* Qty stepper — surface-2 bg, r8, border */
.emcbd-ci-qty { flex: 0 0 auto; }
.emcbd-ci-qty .quantity { display: flex; align-items: center; }
.emcbd-ci-qty .quantity input[type="number"] {
  width: 44px; height: 40px;
  text-align: center;
  background: #EDE8DF;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px; font-weight: 700;
  color: #1A1A1A;
  -moz-appearance: textfield;
}
.emcbd-ci-qty .quantity input[type="number"]::-webkit-outer-spin-button,
.emcbd-ci-qty .quantity input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Price */
.emcbd-ci-price {
  flex: 0 0 auto;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 18px; font-weight: 700;
  color: var(--wp--preset--color--accent);
}
.emcbd-ci-price ins { text-decoration: none; }
.emcbd-ci-price del { color: #8A8A8A; font-size: 14px; font-weight: 400; }

/* Remove button */
.emcbd-ci-remove { flex: 0 0 32px; }
.emcbd-ci-remove .remove { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: #5A5A5A; text-decoration: none; }
.emcbd-ci-remove .remove:hover { color: #c0392b; }
.emcbd-ci-remove .remove svg { display: block; }

/* Coupon row — Pencil: white, r8, border, p[14,16], gap 8 */
.emcbd-cart-coupon {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 16px;
}
.emcbd-cart-coupon svg { flex: 0 0 auto; }
.emcbd-cart-coupon input[type="text"] {
  flex: 1 1 auto; min-width: 0;
  border: none; outline: none; background: transparent;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px; color: #1A1A1A;
}
.emcbd-cart-coupon input[type="text"]::placeholder { color: #5A5A5A; }
.emcbd-coupon-btn {
  flex: 0 0 auto;
  background: #E8F0E8;
  color: #2D4A2D;
  border: 1px solid #2D4A2D;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  cursor: pointer;
}
.emcbd-coupon-btn:hover { background: #2D4A2D; color: #fff; }

/* Update cart button */
.emcbd-cart-update { margin-top: 12px; display: flex; justify-content: flex-end; }
.emcbd-update-btn {
  background: transparent;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px; color: #5A5A5A; cursor: pointer;
}
.emcbd-update-btn:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

/* ── Cart totals (summary card) — Pencil: tIpry ────────────────────────── */
.emcbd-cart-totals {
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #fff !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  border-radius: 12px !important;
  padding: 32px !important;
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 900px) { .emcbd-cart-totals { position: static; } }

.emcbd-recap-label {
  margin: 0 0 4px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #1A1A1A;
}

.emcbd-totals-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.emcbd-totals-lbl { font-size: 14px; color: #8A8A8A; }
.emcbd-totals-val { font-size: 14px; font-weight: 600; color: #1A1A1A; }
.emcbd-totals-val .woocommerce-Price-amount { font-weight: 600; }

/* Promo row — green */
.emcbd-totals-row--promo .emcbd-totals-lbl { color: #2D4A2D; }
.emcbd-totals-row--promo .emcbd-totals-val { color: #2D4A2D; }

/* Shipping row */
.emcbd-totals-row--shipping { flex-direction: column; gap: 4px; }
.emcbd-totals-row--shipping .shipping { display: flex; justify-content: space-between; width: 100%; flex-wrap: wrap; gap: 4px; }
.emcbd-totals-row--shipping .shipping th { font-size: 14px; color: #8A8A8A; font-weight: 400; }
.emcbd-totals-row--shipping .shipping td { font-size: 14px; font-weight: 600; }
.emcbd-totals-row--shipping .shipping td .free-shipping { color: #3CB371; }

.emcbd-totals-divider { border: none; border-top: 1px solid #D8D0C4; margin: 4px 0; }

/* Total TTC row */
.emcbd-totals-row--total { align-items: flex-end; margin-top: 4px; }
.emcbd-totals-lbl--ttc { font-size: 18px; font-weight: 700; color: #1A1A1A; }
.emcbd-totals-val--ttc { text-align: right; }
.emcbd-totals-val--ttc strong { font-size: 28px; font-weight: 700; color: #2D4A2D; display: block; }
.emcbd-totals-val--ttc strong .woocommerce-Price-amount,
.emcbd-totals-val--ttc strong bdi { font-size: 28px; font-weight: 700; color: #2D4A2D; }
.emcbd-totals-val--ttc small.includes_tax { display: none; }

/* Checkout CTA button */
.emcbd-checkout-cta { margin-top: 4px; width: 100%; box-sizing: border-box; overflow: hidden; }
.emcbd-checkout-cta .checkout-button,
.emcbd-checkout-cta a.button {
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #2D4A2D !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 24px !important;
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 14px !important; font-weight: 700 !important; letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background-color .2s ease !important;
}
.emcbd-checkout-cta .checkout-button:hover,
.emcbd-checkout-cta a.button:hover { background: #3A5C3A !important; }

/* Security note */
.emcbd-secure-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0;
  font-size: 11px; color: #5A5A5A;
  font-family: var(--wp--preset--font-family--lato);
}

/* Hide old WC cart table and default cart_totals h2 */
.woocommerce-cart .cart_totals h2 { display: none !important; }
.woocommerce-cart .cart_totals table { display: none !important; }
.woocommerce-cart .cart_totals .wc-proceed-to-checkout:not(.emcbd-checkout-cta) { display: none !important; }

/* Checkout layout (emcbd-2026 — Pencil spec zp2H3) -------------------------*/

/* Page background */
.woocommerce-checkout {
  background: #F5F0E8;
}

/* ----- Header: eyebrow + step indicator ---------------------------------- */
.emcbd-co-header {
  max-width: none;
  padding-top: 32px;
  padding-bottom: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.emcbd-co-eyebrow {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #2D4A2D;
  text-transform: uppercase;
  margin: 0;
}

/* Step indicator */
.emcbd-co-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.emcbd-co-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.emcbd-co-step__connector {
  width: 48px;
  height: 1px;
  background: #D8D0C4;
  flex-shrink: 0;
  margin-bottom: 22px; /* align with pill centres */
}

.emcbd-co-step__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.emcbd-co-step__label {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Step states */
.emcbd-co-step--done .emcbd-co-step__pill {
  background: #2D4A2D;
  color: #fff;
}
.emcbd-co-step--done .emcbd-co-step__label {
  color: #2D4A2D;
}

.emcbd-co-step--current .emcbd-co-step__pill {
  background: #E8F0E8;
  border: 1px solid #2D4A2D;
  color: #2D4A2D;
}
.emcbd-co-step--current .emcbd-co-step__label {
  color: #1A1A1A;
  font-weight: 700;
}

.emcbd-co-step--upcoming .emcbd-co-step__pill {
  background: #EDE8DF;
  color: #5A5A5A;
}
.emcbd-co-step--upcoming .emcbd-co-step__label {
  color: #5A5A5A;
}

/* ----- Main 2-column grid ------------------------------------------------- */
.emcbd-co-form {
  background: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.emcbd-co-main {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
  max-width: none;
  padding-top: 24px;
  padding-bottom: 80px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.emcbd-co-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.emcbd-co-right {
  width: 380px;
  position: sticky;
  top: 24px;
}

/* ----- Card base ---------------------------------------------------------- */
.emcbd-co-card {
  background: #fff;
  border: 1px solid #D8D0C4;
  border-radius: 12px;
  padding: 32px;
}

/* Payment card — active, green border */
.emcbd-co-card--payment {
  border: 2px solid #2D4A2D;
}

/* ----- Section titles ----------------------------------------------------- */
.emcbd-co-section-title {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1A1A1A;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.emcbd-co-section-title--active {
  color: #2D4A2D;
}

/* ----- Address card: hide WC default col2-set floats --------------------- */
.emcbd-co-card .col2-set { float: none; width: 100%; }
.emcbd-co-card .col2-set::after { content: ''; display: table; clear: both; }
.emcbd-co-card .col-1,
.emcbd-co-card .col-2 { float: none; width: 100%; }

/* WC adds <h3> headings inside billing/shipping sections — hide them, we use our title */
.emcbd-co-card .woocommerce-billing-fields h3,
.emcbd-co-card .woocommerce-shipping-fields h3 {
  display: none;
}

/* ----- Form fields -------------------------------------------------------- */
.emcbd-co-card .form-row { margin-bottom: 16px; }

.emcbd-co-card .form-row label,
.emcbd-co-card .form-row label.checkbox {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8A8A8A;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.emcbd-co-card .form-row .woocommerce-input-wrapper input,
.emcbd-co-card .form-row .woocommerce-input-wrapper select,
.emcbd-co-card .form-row .woocommerce-input-wrapper textarea,
.emcbd-co-card .form-row input.input-text,
.emcbd-co-card .form-row select,
.emcbd-co-card .form-row textarea,
.emcbd-co-card .select2-selection--single {
  width: 100%;
  background: #F5F0E8 !important;
  border: 1px solid #D8D0C4 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1A1A1A !important;
  height: auto !important;
  box-shadow: none !important;
  outline: none;
  transition: border-color .15s ease;
  box-sizing: border-box;
}

.emcbd-co-card .form-row input.input-text:focus,
.emcbd-co-card .form-row select:focus,
.emcbd-co-card .form-row textarea:focus {
  border-color: #2D4A2D !important;
  background: #fff !important;
}

/* select2 height fix */
.emcbd-co-card .select2-selection--single {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  min-height: 46px !important;
}
.emcbd-co-card .select2-selection__rendered { line-height: 1.4 !important; padding: 0 !important; }
.emcbd-co-card .select2-selection__arrow { top: 50% !important; transform: translateY(-50%) !important; }

/* 2-col rows */
.emcbd-co-card .form-row-first,
.emcbd-co-card .form-row-last {
  width: calc(50% - 8px);
  display: inline-block;
  vertical-align: top;
}
.emcbd-co-card .form-row-first { margin-right: 16px; }

/* Postcode fixed width */
.emcbd-co-card #billing_postcode_field,
.emcbd-co-card #shipping_postcode_field {
  width: 160px;
  display: inline-block;
  vertical-align: top;
  margin-right: 16px;
}
.emcbd-co-card #billing_city_field,
.emcbd-co-card #shipping_city_field {
  width: calc(100% - 176px);
  display: inline-block;
  vertical-align: top;
}

/* ----- Shipping method options (Card B) ----------------------------------- */
/* WC renders shipping inside woocommerce_checkout_shipping hook which goes
   into the address card. Card B (shipping method) is a separate WC section
   rendered by the shipping plugin / woocommerce_review_order_before_payment.
   The selectors below style whatever WC outputs inside the order review       */
#order_review .shipping-methods,
.emcbd-co-card .shipping-methods {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#order_review .shipping-methods li,
.emcbd-co-card .shipping-methods li {
  background: #F5F0E8;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

#order_review .shipping-methods li.selected,
#order_review .shipping-methods li:has(input:checked),
.emcbd-co-card .shipping-methods li:has(input:checked) {
  background: #E8F0E8;
  border: 2px solid #2D4A2D;
}

#order_review .shipping-methods li input[type="radio"],
.emcbd-co-card .shipping-methods li input[type="radio"] {
  accent-color: #2D4A2D;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

#order_review .shipping-methods li label,
.emcbd-co-card .shipping-methods li label {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  flex: 1;
  cursor: pointer;
  margin-bottom: 0;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shipping-method__description {
  font-size: 12px;
  font-weight: 400;
  color: #8A8A8A;
  display: block;
  margin-top: 4px;
}

.shipping-method__price--free {
  font-size: 13px;
  font-weight: 700;
  color: #3CB371;
}

/* ----- Payment section (Card C) ------------------------------------------ */
/* Reset WC's own woocommerce-checkout-payment styles */
.emcbd-co-card--payment .woocommerce-checkout-payment {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.emcbd-co-card--payment #payment {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

.emcbd-co-card--payment #payment ul.payment_methods {
  list-style: none;
  padding: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emcbd-co-card--payment #payment ul.payment_methods li.payment_method {
  background: #F5F0E8 !important;
  border: 1px solid #D8D0C4 !important;
  border-radius: 8px !important;
  padding: 20px !important;
  margin: 0 !important;
  transition: border-color .15s, background-color .15s;
}

.emcbd-co-card--payment #payment ul.payment_methods li.payment_method.active,
.emcbd-co-card--payment #payment ul.payment_methods li.payment_method:has(input:checked) {
  background: #E8F0E8 !important;
  border: 2px solid #2D4A2D !important;
}

.emcbd-co-card--payment #payment ul.payment_methods li label {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

.emcbd-co-card--payment #payment ul.payment_methods li input[type="radio"] {
  accent-color: #2D4A2D;
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin-right: 10px;
  vertical-align: middle;
}

.emcbd-co-card--payment #payment .payment_box {
  background: #F0F7F0 !important;
  border: 1px solid #c3d9c3 !important;
  border-radius: 8px !important;
  padding: 16px !important;
  margin-top: 12px !important;
  font-size: 13px;
  color: #1A1A1A;
}

/* Hide the default WC "Your order" heading — we have our own card title */
#order_review_heading { display: none !important; }

/* Hide default WC place-order button from inside #payment (it lives in our summary card) */
/* Actually keep the place_order button but re-style it via the summary card selectors below */

/* ----- Summary card (right column) --------------------------------------- */
.emcbd-co-summary-card .emcbd-co-section-title {
  margin-bottom: 20px;
}

/* Product table */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  background: transparent;
}

.emcbd-co-summary-card .woocommerce-checkout-review-order-table thead {
  display: none;
}

.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart_item td {
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #D8D0C4;
  vertical-align: middle;
}

/* Product image cell */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart_item .product-thumbnail img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Product name cell */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart_item .product-name {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  padding-left: 12px;
}
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart_item .product-name .product-quantity {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #8A8A8A;
  margin-top: 2px;
}

/* Product price cell */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart_item .product-total {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1A1A1A;
  text-align: right;
  white-space: nowrap;
}

/* Totals rows */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart-subtotal td,
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart-subtotal th,
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .shipping td,
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .shipping th {
  padding: 10px 0;
  border: none;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 14px;
  color: #1A1A1A;
  border-bottom: 1px solid #D8D0C4;
}

.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart-subtotal td,
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .shipping td {
  text-align: right;
}

/* Order total */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .order-total td,
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .order-total th {
  padding: 16px 0 0;
  border: none;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
}

.emcbd-co-summary-card .woocommerce-checkout-review-order-table .order-total th {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
}

.emcbd-co-summary-card .woocommerce-checkout-review-order-table .order-total td {
  font-size: 24px;
  font-weight: 700;
  color: #2D4A2D;
  text-align: right;
}

/* Divider between items and totals */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table tbody tr:last-child td {
  border-bottom: 1px solid #D8D0C4;
}

/* ----- CTA / Place Order button ------------------------------------------ */
#place_order,
.emcbd-co-summary-card #place_order {
  display: block !important;
  width: 100% !important;
  background: #2D4A2D !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 24px !important;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  margin-top: 20px !important;
  transition: background-color .2s ease !important;
  text-align: center !important;
}

#place_order:hover,
.emcbd-co-summary-card #place_order:hover {
  background: #3A5C3A !important;
}

/* WC places #place_order inside .woocommerce-checkout-payment → .place-order.
   Since we moved payment to the left card, the button ends up there.
   Re-position it visually to the summary card via CSS order if needed,
   but typically the button renders where do_action('woocommerce_checkout_payment')
   is called — which is our left payment card. Move it with display override. */

/* ----- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .emcbd-co-main {
    grid-template-columns: 1fr;
    padding: 16px 0 60px;
  }
  .emcbd-co-right {
    width: 100%;
    position: static;
  }
  .emcbd-co-header { padding: 24px 0 0; }
  .emcbd-co-step__connector { width: 32px; }
  .emcbd-co-step__label { font-size: 10px; }
}

@media (max-width: 600px) {
  .emcbd-co-steps { gap: 0; }
  .emcbd-co-step__connector { width: 20px; }
  .emcbd-co-card { padding: 20px 16px; }
  .emcbd-co-card .form-row-first,
  .emcbd-co-card .form-row-last { width: 100%; display: block; margin-right: 0; }
  .emcbd-co-card #billing_postcode_field,
  .emcbd-co-card #shipping_postcode_field,
  .emcbd-co-card #billing_city_field,
  .emcbd-co-card #shipping_city_field { width: 100%; display: block; margin-right: 0; }
}

/* Checkout page — hide theme's own page header (emcbd-cart-head) which
   shows "FINALISER LA COMMANDE / Étape 2 sur 3" from the page template.
   Our emcbd-co-header provides the correct step indicator instead. */
.woocommerce-checkout .emcbd-cart-head { display: none !important; }
.woocommerce-checkout .wp-block-post-title { display: none !important; }

/* Summary card: hide shipping method blocks injected before the table
   (our cart-shipping.php template rendered via WC review-order hooks) */
.emcbd-co-summary-card .emcbd-shipping-block { display: none !important; }

/* Summary card: hide "Livraison estimée: le X mai" which appears as
   dl.variation inside each .product-name cell (added by estimated-delivery plugin) */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .product-name dl.variation,
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .product-name .variation { display: none !important; }

/* Summary: hide shipping row (La Poste shows it but we want clean totals) */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .shipping { display: none !important; }

/* Hide tax breakdown in total "(dont X€ TVA)" */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .order-total td small,
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .order-total td .includes_tax,
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .tax-total { display: none !important; }

/* Product thumbnail column in checkout review table */
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart_item .product-thumbnail { display: table-cell !important; vertical-align: middle; padding-right: 8px; }
.emcbd-co-summary-card .woocommerce-checkout-review-order-table .cart_item .product-thumbnail img { width: 48px !important; height: 48px !important; object-fit: cover; border-radius: 4px; display: block; }

/* ── Order Summary — div-based review-order.php layout ──────────────────── */

.emcbd-osum-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #D8D0C4;
}
.emcbd-osum-item:first-child { padding-top: 0; }

.emcbd-osum-img { flex-shrink: 0; width: 48px; height: 48px; }
.emcbd-osum-img img {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.emcbd-osum-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.emcbd-osum-name {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  line-height: 1.3;
}
.emcbd-osum-qty {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #8A8A8A;
}
.emcbd-osum-price {
  flex-shrink: 0;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1A1A1A;
  text-align: right;
}

.emcbd-osum-shipping-methods { margin: 10px 0 0; }
.emcbd-osum-shipping-methods .woocommerce-shipping-methods {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.emcbd-osum-shipping-methods .woocommerce-shipping-methods li {
  display: flex; align-items: center; gap: 8px;
}
.emcbd-osum-shipping-methods .woocommerce-shipping-methods label {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px; color: #1A1A1A; cursor: pointer;
}
.emcbd-osum-shipping-methods input[type="radio"] {
  accent-color: #2D4A2D; width: 14px; height: 14px; cursor: pointer;
}

.emcbd-osum-divider {
  border: none;
  border-top: 1px solid #D8D0C4;
  margin: 4px 0 14px;
}

.emcbd-osum-totals { display: flex; flex-direction: column; gap: 10px; }

.emcbd-osum-row { display: flex; justify-content: space-between; align-items: center; }

.emcbd-osum-lbl {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px; font-weight: 400; color: #8A8A8A;
}
.emcbd-osum-val {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px; font-weight: 600; color: #1A1A1A;
}
.emcbd-osum-row--promo .emcbd-osum-lbl,
.emcbd-osum-row--promo .emcbd-osum-val { color: #2D4A2D; }
.emcbd-osum-val--free { color: #3CB371; font-weight: 600; }

.emcbd-osum-row--total {
  margin-top: 6px; padding-top: 14px;
  border-top: 1px solid #D8D0C4;
  align-items: flex-end;
}
.emcbd-osum-lbl--total {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 16px; font-weight: 700; color: #1A1A1A;
}
.emcbd-osum-val--total {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 24px; font-weight: 700; color: #2D4A2D;
}
.emcbd-osum-val--total .includes_tax,
.emcbd-osum-val--total small { display: none !important; }

/* Account page — hide WP raw post title; emcbd-cart-head stays visible for eyebrow+heading */
.woocommerce-account .wp-block-post-title { display: none !important; }

/* Suppress old WC two-column grid — replaced by tabbed card */
.woocommerce-account .u-columns.col2-set { display: block !important; }
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2 {
  all: unset;
  display: block;
}

/* ── Account page layout ───────────────────────────────────────────────── */

/* 2-column: login card left (480w) + preview right */
.emcbd-ac-page--login {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.emcbd-ac-col-login { flex: 0 0 480px; max-width: 480px; }
.emcbd-ac-col-preview { flex: 1 1 0; min-width: 0; }

.emcbd-ac-preview-card {
  background: #fff;
  border: 1px solid #D8D0C4;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

/* Dashboard (logged-in) */
.emcbd-ac-page--dashboard { display: flex; flex-direction: column; gap: 24px; }

/* Welcome card */
.emcbd-dash-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid #D8D0C4;
  border-radius: 12px;
  padding: 32px;
}
.emcbd-dash-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #2D4A2D;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.emcbd-dash-avatar--ghost {
  background: #D8D0C4;
  color: #8A8A8A;
}
.emcbd-dash-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.emcbd-dash-name {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
}
.emcbd-dash-meta {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #8A8A8A;
}
.emcbd-dash-edit {
  flex-shrink: 0;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  padding: 10px 18px;
  background: #F5F0E8;
  white-space: nowrap;
}
.emcbd-dash-edit:hover { border-color: #2D4A2D; color: #2D4A2D; }

/* 3-card shortcut grid */
.emcbd-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.emcbd-dash-grid--ghost { opacity: 0.7; }

.emcbd-dash-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid #D8D0C4;
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.emcbd-dash-card:hover {
  border-color: #2D4A2D;
  box-shadow: 0 2px 8px rgba(45,74,45,0.08);
}
.emcbd-dash-icon { color: #2D4A2D; flex-shrink: 0; }
.emcbd-dash-card-title {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
}
.emcbd-dash-card-sub {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #8A8A8A;
}

/* Sub-pages wrapper */
.emcbd-ac-page--sub { display: flex; flex-direction: column; gap: 24px; }

/* Sub-pages layout */
.emcbd-ac-sub-layout { display: flex; gap: 32px; align-items: flex-start; }
.emcbd-ac-sub-layout .woocommerce-MyAccount-navigation {
  flex: 0 0 220px;
  background: #fff;
  border: 1px solid #D8D0C4;
  border-radius: 12px;
  padding: 8px 0;
}
.emcbd-ac-sub-layout .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.emcbd-ac-sub-layout .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 20px;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  color: #1A1A1A;
  text-decoration: none;
}
.emcbd-ac-sub-layout .woocommerce-MyAccount-navigation ul li.is-active a,
.emcbd-ac-sub-layout .woocommerce-MyAccount-navigation ul li a:hover { color: #2D4A2D; font-weight: 600; }
.emcbd-ac-sub-content { flex: 1 1 0; min-width: 0; }

/* Sub-page content card */
.emcbd-ac-sub-content .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid #D8D0C4;
  border-radius: 12px;
  padding: 32px;
}
.emcbd-ac-sub-content .woocommerce-MyAccount-content h2,
.emcbd-ac-sub-content .woocommerce-MyAccount-content h3 {
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 20px;
}
.emcbd-ac-sub-content .woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; }
.emcbd-ac-sub-content .woocommerce-MyAccount-content table th,
.emcbd-ac-sub-content .woocommerce-MyAccount-content table td {
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid #EDE8DF;
  text-align: left;
}
.emcbd-ac-sub-content .woocommerce-MyAccount-content table th { font-weight: 700; color: #5A5A5A; }
.emcbd-ac-sub-content .woocommerce-MyAccount-content .woocommerce-button,
.emcbd-ac-sub-content .woocommerce-MyAccount-content .button {
  display: inline-block;
  background: #2D4A2D;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.emcbd-ac-sub-content .woocommerce-MyAccount-content .woocommerce-button:hover,
.emcbd-ac-sub-content .woocommerce-MyAccount-content .button:hover { background: #3A5C3A; }

/* ── Strip the emcbd-ac-login-wrap centering when inside the 2-col layout ── */
.emcbd-ac-col-login .emcbd-ac-login-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Account login — tabbed card -----------------------------------------------*/
.emcbd-ac-login-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 80px;
  box-sizing: border-box;
}

.emcbd-ac-card {
  background: #ffffff;
  border: 1px solid #D8D0C4;
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tab row */
.emcbd-ac-tabs {
  display: flex;
  border-bottom: 1px solid #D8D0C4;
  margin-bottom: 4px;
  gap: 0;
}

.emcbd-ac-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 16px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #5A5A5A;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s, border-color 0.15s;
}

.emcbd-ac-tab.is-active {
  color: #2D4A2D;
  border-bottom-color: #2D4A2D;
  font-weight: 700;
}

.emcbd-ac-tab:hover:not(.is-active) {
  color: #2D4A2D;
}

/* Panels */
.emcbd-ac-panel { display: none; }
.emcbd-ac-panel.is-active { display: block; }

/* Strip WC's own borders/padding from the inner forms */
.emcbd-ac-card form.woocommerce-form-login,
.emcbd-ac-card form.woocommerce-form-register {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* Field labels */
.emcbd-ac-card .form-row label,
.emcbd-ac-card .woocommerce-form__label {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #8A8A8A;
  margin-bottom: 6px;
}

/* Inputs */
.emcbd-ac-card .form-row input[type="text"],
.emcbd-ac-card .form-row input[type="email"],
.emcbd-ac-card .form-row input[type="password"],
.emcbd-ac-card .form-row input.input-text {
  width: 100%;
  background: #F5F0E8;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1A1A1A;
  box-sizing: border-box;
  transition: border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.emcbd-ac-card .form-row input[type="text"]:focus,
.emcbd-ac-card .form-row input[type="email"]:focus,
.emcbd-ac-card .form-row input[type="password"]:focus,
.emcbd-ac-card .form-row input.input-text:focus {
  border-color: #2D4A2D;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 74, 45, 0.08);
}

/* Password field wrapper (input + eye icon) */
.emcbd-ac-pw-wrap {
  position: relative;
  display: block;
}

.emcbd-ac-pw-wrap input {
  padding-right: 46px !important;
}

.emcbd-ac-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #8A8A8A;
  display: flex;
  align-items: center;
  line-height: 1;
}

.emcbd-ac-pw-toggle:hover { color: #2D4A2D; }

/* Remember-me / lost-password row */
.emcbd-ac-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.emcbd-ac-remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #5A5A5A;
}

.emcbd-ac-remember input[type="checkbox"] {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #D8D0C4 !important;
  border-radius: 3px !important;
  accent-color: #2D4A2D;
  cursor: pointer;
  flex-shrink: 0;
}

.emcbd-ac-lost-pw {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #2D4A2D;
  text-decoration: none;
  white-space: nowrap;
}

.emcbd-ac-lost-pw:hover { text-decoration: underline; }

/* Submit buttons */
.emcbd-ac-card .emcbd-ac-submit,
.emcbd-ac-card button[name="login"],
.emcbd-ac-card button[name="register"] {
  display: block;
  width: 100%;
  background: #2D4A2D;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s;
  box-sizing: border-box;
}

.emcbd-ac-card .emcbd-ac-submit:hover,
.emcbd-ac-card button[name="login"]:hover,
.emcbd-ac-card button[name="register"]:hover {
  background: #3A5C3A;
}

/* Auto-generate password notice */
.emcbd-ac-pw-autogenerate {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: #5A5A5A;
  margin: 0;
}

/* WC error / info notices inside the card */
.emcbd-ac-card .woocommerce-error,
.emcbd-ac-card .woocommerce-message,
.emcbd-ac-card .woocommerce-info {
  border-radius: 8px;
  font-size: 13px;
  margin: 0 0 4px !important;
}

/* Required asterisk */
.emcbd-ac-card .required { color: #C0392B; }

/* Spacing between form-row paragraphs */
.emcbd-ac-card .form-row { margin-bottom: 4px; }

/* Responsive */
@media (max-width: 600px) {
  .emcbd-ac-login-wrap { padding: 0 16px 60px; }
  .emcbd-ac-card { padding: 24px 20px; gap: 16px; }
}

/* Account dashboard (logged in) --------------------------------------------*/
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 280px !important;
  float: none !important;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--emcbd-radius-lg);
  padding: 24px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li { padding: 8px 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a { color: var(--wp--preset--color--text); text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-content {
  margin-left: 312px;
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--emcbd-radius-lg);
  padding: 32px;
}
@media (max-width: 900px) {
  .woocommerce-account .woocommerce-MyAccount-navigation { width: 100% !important; }
  .woocommerce-account .woocommerce-MyAccount-content { margin-left: 0; margin-top: 16px; }
}


/* Mobile sticky add bar — handled in single product block above */

/* Accessibility ------------------------------------------------------------*/
:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 2px;
}

/* Topbar contrast ----------------------------------------------------------*/
.wp-block-group.has-black-background-color {
  color: #ffffff;
}
.wp-block-group.has-black-background-color p {
  color: #ffffff !important;
  opacity: 1 !important;
}
/* Topbar ------------------------------------------------------------------- */
.emcbd-topbar {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding-left: max(40px, calc((100% - 1280px) / 2)) !important;
  padding-right: max(40px, calc((100% - 1280px) / 2)) !important;
}
.emcbd-topbar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.emcbd-topbar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #E8F0E8 !important;
  text-decoration: none !important;
}
.emcbd-topbar__item:hover { color: #ffffff !important; }
.emcbd-topbar__promo {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  color: #7AB87A !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}
.wp-block-group.has-black-background-color .has-topbar-accent-color {
  color: #7AB87A !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 600 !important;
}

/* Hyperfort banner overrides ----------------------------------------------*/
.emcbd-hyperfort,
.emcbd-hyperfort * { color: #ffffff !important; }
.emcbd-hyperfort h1,
.emcbd-hyperfort h2,
.emcbd-hyperfort h3 { color: #ffffff !important; }
.emcbd-hyperfort p[style*="7AB87A"],
.emcbd-hyperfort .has-topbar-accent-color { color: #9FE09F !important; }
.wp-block-cover.alignfull,
.wp-block-cover.alignfull * { color: #ffffff !important; }
.wp-block-cover.alignfull .has-topbar-accent-color { color: #9FE09F !important; }

/* Broken/empty img fallback ------------------------------------------------*/
.emcbd-hero-img img,
.wp-block-image img[src=""],
.wp-block-image img:not([src]) {
  display: none;
}
/* Hero right column empty fill -------------------------------------------*/
.wp-block-columns.alignwide:has(> .wp-block-column h1.wp-block-heading) > .wp-block-column:not(:has(p)):not(:has(h1)):not(:has(h2)) {
  background: linear-gradient(135deg, rgba(15,42,30,.35), rgba(45,74,45,.15)),
              url("https://elmundocbd.fr/wp-content/uploads/slide-standard.jpg") center/cover no-repeat #2D4A2D;
  border-radius: 16px;
  min-height: 480px;
}
.emcbd-hero-img {
  background: linear-gradient(135deg, rgba(15,42,30,.35), rgba(45,74,45,.15)),
              url("https://elmundocbd.fr/wp-content/uploads/slide-standard.jpg") center/cover no-repeat #2D4A2D;
  border-radius: 16px;
  min-height: 480px;
}
/* Brand story full-bleed empty image column */
.wp-block-columns.alignfull:has(> .wp-block-column h2.wp-block-heading) > .wp-block-column:not(:has(p)):not(:has(h1)):not(:has(h2)):not(:has(h3)) {
  background: linear-gradient(135deg, rgba(15,42,30,.45), rgba(45,74,45,.25)),
              url("https://elmundocbd.fr/wp-content/uploads/slide-standard-2.jpg") center/cover no-repeat #2D4A2D;
  min-height: 560px;
}

/* Hero stats row ------------------------------------------------------------*/
.emcbd-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--wp--preset--color--border);
}
.emcbd-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.emcbd-stat-num {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 24px;
  font-weight: 700;
  color: var(--wp--preset--color--text);
  line-height: 1.2;
}
.emcbd-stat-lbl {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  color: var(--wp--preset--color--text-muted);
}

/* Trust strip ---------------------------------------------------------------*/
/* Outer: full-bleed bg */
.emcbd-trust-strip {
  background: var(--wp--preset--color--surface);
  width: 100%;
}
/* Inner: constrained container with items */
.emcbd-trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px;
}
.emcbd-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 200px;
}
.emcbd-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #E8F0E8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2D4A2D;
}
.emcbd-trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.emcbd-trust-text strong {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px;
  font-weight: 700;
  color: var(--wp--preset--color--text);
  letter-spacing: 0.5px;
}
.emcbd-trust-text span {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  color: var(--wp--preset--color--text-muted);
}
@media (max-width: 700px) {
  .emcbd-trust-strip__inner { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .emcbd-trust-item { flex: 1 1 100%; }
}

/* Brand story list + help box -----------------------------------------------*/
.emcbd-brand-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.emcbd-brand-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 15px;
  color: var(--wp--preset--color--text-dim);
}
.emcbd-brand-list svg { flex-shrink: 0; }
.emcbd-help-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #F1F7F1;
  border: 1px solid #9DBA9D;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 8px;
}
.emcbd-help-box > svg { flex-shrink: 0; }
.emcbd-help-box > div { flex: 1; }
.emcbd-help-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: var(--wp--preset--color--accent);
  color: #fff !important;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
}

/* Benefits grid -------------------------------------------------------------*/
.emcbd-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 900px) {
  .emcbd-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .emcbd-benefits-grid { grid-template-columns: 1fr; }
}
.emcbd-benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #CFC5B7;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
}
.emcbd-benefit-icon {
  width: 64px;
  height: 64px;
  background: #E8F0E8 !important;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}
.emcbd-benefit-title {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 15px;
  font-weight: 700;
  color: var(--wp--preset--color--text);
  letter-spacing: 1.5px;
}
.emcbd-benefit-desc {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 14px;
  color: #4F4F4F;
  margin: 0;
  line-height: 1.5;
}

/* Hyperfort override -------------------------------------------------------*/
.emcbd-hyperfort .wp-block-cover__inner-container { padding: 0 !important; }

/* Categories grid -----------------------------------------------------------*/
.emcbd-categories-section,
.emcbd-hyperfort + .wp-block-group.alignfull {
  background:
    radial-gradient(circle at 15% 0%, rgba(45,74,45,.10), transparent 28%),
    linear-gradient(180deg, #f5f0e8 0%, #ede8df 100%) !important;
}
.emcbd-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 900px) {
  .emcbd-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .emcbd-cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.emcbd-cat-card {
  position: relative;
  display: block;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-color: var(--wp--preset--color--surface-2);
}
.emcbd-cat-card:hover .emcbd-cat-overlay { opacity: .85; }
.emcbd-cat-card:hover { transform: translateY(-3px); transition: transform .2s ease; }
.emcbd-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.22) 55%, rgba(0,0,0,.05) 100%);
  transition: opacity .2s ease;
}
.emcbd-cat-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.emcbd-cat-name {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
}
.emcbd-cat-count {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px;
  color: #F0F0F0;
  margin-top: 4px;
  display: block;
}

/* Brand story image column --------------------------------------------------*/
/* WP layout injects padding:20px 38px on alignfull columns — strip it */
.wp-block-columns:has(.emcbd-brand-img-wrap) {
  padding: 0 !important;
  gap: 0 !important;
}
.wp-block-columns:has(.emcbd-brand-img-wrap) .wp-block-column:first-child,
.wp-block-columns:has(.emcbd-brand-img-wrap) .wp-block-column:last-child {
  box-sizing: border-box !important;
  flex-basis: 50% !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  width: 50% !important;
  max-width: 50% !important;
}
.wp-block-columns:has(.emcbd-brand-img-wrap) .wp-block-column:first-child {
  padding: 0 !important;
  min-height: 560px;
  position: relative !important;
}
.emcbd-brand-img-wrap {
  position: absolute !important;
  inset: 0 !important;
  height: 100% !important;
  min-height: 560px;
  background-size: cover !important;
  background-position: center !important;
}

/* Footer links list ---------------------------------------------------------*/
.emcbd-footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.emcbd-footer-links li { margin: 0 0 14px !important; }
.emcbd-footer-links li:last-child { margin-bottom: 0 !important; }
.emcbd-footer-links a {
  color: #aaaaaa !important;
  text-decoration: none;
  font-size: 13px;
  transition: color .15s;
}
.emcbd-footer-links a:hover { color: #ffffff !important; }

/* Newsletter form -----------------------------------------------------------*/
.emcbd-newsletter-form {
  display: flex;
  background: #2a3a2a;
  border-radius: 8px;
  overflow: hidden;
  height: 44px;
}
.emcbd-newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 13px;
  color: #ffffff;
  font-family: var(--wp--preset--font-family--lato);
}
.emcbd-newsletter-form input::placeholder { color: #cccccc; opacity: 1; }
.emcbd-newsletter-form button {
  background: #7ab87a;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  transition: background .15s;
}
.emcbd-newsletter-form button:hover { background: #5fa65f; }

/* Footer bottom bar — links group must sit flush right, not auto-centered ----*/
.has-footer-base-background-color > .wp-block-group {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Footer social icons — strip WP branded circles, plain grey 20px icons -----*/
footer .wp-block-social-links .wp-social-link,
.wp-block-template-part footer .wp-social-link {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 0 !important;
}
footer .wp-block-social-links .wp-social-link a,
.wp-block-template-part footer .wp-social-link a {
  padding: 0 !important;
  width: 20px !important;
  height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
footer .wp-block-social-links .wp-social-link svg,
.wp-block-template-part footer .wp-social-link svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: #8A8A8A !important;
}
footer .wp-block-social-links .wp-social-link:hover svg,
.wp-block-template-part footer .wp-social-link:hover svg {
  stroke: #ffffff !important;
}
/* Some WP social icons use fill not stroke */
footer .wp-block-social-links .wp-social-link svg path,
footer .wp-block-social-links .wp-social-link svg rect,
footer .wp-block-social-links .wp-social-link svg circle,
footer .wp-block-social-links .wp-social-link svg polygon {
  fill: #8A8A8A !important;
  stroke: none !important;
}
footer .wp-block-social-links .wp-social-link:hover svg path,
footer .wp-block-social-links .wp-social-link:hover svg rect,
footer .wp-block-social-links .wp-social-link:hover svg circle,
footer .wp-block-social-links .wp-social-link:hover svg polygon {
  fill: #ffffff !important;
}

/* Section ornament */
.emcbd-section-ornament { display:flex; align-items:center; justify-content:center; gap:16px; margin:8px 0 4px; }
.emcbd-ornament-line { flex:0 0 80px; height:1px; background:#2D4A2D; opacity:.4; }

/* HyperFort banner — Pencil-matched */
.emcbd-hyperfort-wrap { position:relative; width:100%; height:380px; overflow:hidden; display:flex; align-items:center; justify-content:center; background:#000; }
.emcbd-hyperfort-img { position:absolute; inset:0; background-size:cover; background-position:center; opacity:.45; }
.emcbd-hyperfort-overlay { position:absolute; inset:0; background:linear-gradient(to right, rgba(0,0,0,.75), rgba(0,0,0,.92)); }
.emcbd-hyperfort-content { position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; gap:20px; padding:0 40px; text-align:center; max-width:800px; }
.emcbd-hf-tag { display:inline-flex; align-items:center; gap:8px; background:#2D4A2D; color:#fff; font-family:Lato,sans-serif; font-size:12px; font-weight:700; letter-spacing:2px; padding:6px 16px; border-radius:999px; }
.emcbd-hf-title { font-family:Lato,sans-serif; font-size:clamp(28px,3.5vw,48px); font-weight:600; color:#fff; letter-spacing:-0.5px; line-height:1.1; }
.emcbd-hf-sub { font-family:Lato,sans-serif; font-size:17px; color:#E6E6E6; max-width:560px; }
.emcbd-hf-btn { display:inline-flex; align-items:center; gap:8px; background:#2D4A2D; color:#fff; font-family:Lato,sans-serif; font-size:13px; font-weight:700; letter-spacing:1px; padding:12px 28px; border-radius:8px; text-decoration:none; }
.emcbd-hf-btn:hover { background:#3A5C3A; color:#fff; }

/* HyperFort full-bleed breakout */
.emcbd-hyperfort-wrap { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }

/* HyperFort full-bleed — force override WP constrained layout */
.wp-site-blocks .emcbd-hyperfort-wrap,
.is-layout-constrained > .emcbd-hyperfort-wrap,
.wp-block-group > .emcbd-hyperfort-wrap { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; width: 100vw !important; max-width: 100vw !important; }

/* Trust strip full-bleed */
.wp-site-blocks .emcbd-trust-strip,
.is-layout-constrained > .emcbd-trust-strip,
.wp-block-group > .emcbd-trust-strip { margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; width: 100vw !important; max-width: 100vw !important; box-sizing: border-box; }

/* Remove block gap between homepage sections — sections are flush */
main.wp-block-group > *,
main.wp-block-group > .wp-block-group,
main.wp-block-group > .wp-block-columns,
main.wp-block-group > .wp-block-html { margin-block-start: 0 !important; margin-block-end: 0 !important; }

.wp-block-columns.alignfull .wp-block-column:first-child {
  position: relative !important;
  min-height: 560px;
}

/* Fix horizontal scrollbar from full-bleed elements */
html, body, .wp-site-blocks { overflow-x: hidden !important; }

/* Section heading → grid gap (matches Pencil 48px blockGap) */
.emcbd-benefits-section > .wp-block-group,
.emcbd-categories-section > .wp-block-group { margin-bottom: 0; }
.emcbd-benefits-grid { margin-top: 48px; }
.emcbd-cat-grid { margin-top: 48px; }

/* Fix: WP constrained layout doesn't apply blockGap — force it */
.emcbd-categories-section > * + * { margin-top: 48px; }
.wp-block-group.alignfull[style*="background:#ffffff"] > .wp-block-group + .emcbd-benefits-grid,
.wp-block-group.alignfull[style*="background:#ffffff"] > .wp-block-group { margin-bottom: 0; }
.wp-block-group.alignfull[style*="background:#ffffff"] > .emcbd-benefits-grid { margin-top: 48px; }

/* Benefits + Categories: 48px gap heading→grid (clean class-based) */
.emcbd-benefits-section > * + * { margin-top: 48px; }
.emcbd-categories-section > .wp-block-html { margin-top: 0; }

/* ===== Side Cart (xoo-wsc) — theme override ===== */
/* Container + panel */
.xoo-wsc-container,
.xoo-wsc-slider { background-color: #F5F0E8 !important; font-family: 'Lato', sans-serif !important; color: #1A1A1A !important; }

/* Header */
.xoo-wsc-header { background-color: #2D4A2D !important; color: #fff !important; border-bottom: none !important; }
.xoo-wsc-header * { color: #fff !important; }
span.xoo-wsch-close { color: #fff !important; opacity: .7; }
span.xoo-wsch-close:hover { opacity: 1; }

/* Body (scrollable product list area) */
.xoo-wsc-body { background-color: #F5F0E8 !important; color: #1A1A1A !important; }

/* Empty cart state */
.xoo-wsc-body .xoo-wsc-empty-msg,
.xoo-wsc-empty-msg,
.xoo-wsc-body p { color: #1A1A1A !important; }

/* Product rows */
.xoo-wsc-product { background: #fff !important; border-radius: 8px !important; border-bottom: none !important; margin-bottom: 8px !important; padding: 12px !important; }
span.xoo-wsc-pname, span.xoo-wsc-pname a { font-family: 'Lato', sans-serif !important; font-weight: 600 !important; font-size: 14px !important; color: #1A1A1A !important; }
.xoo-wsc-sm-info { color: #5A5A5A !important; font-size: 13px !important; }
.xoo-wsc-smr-ptotal { color: #2D4A2D !important; font-weight: 700 !important; }

/* Subtotal row */
.xoo-wsc-subtotal,
.xoo-wsc-footer { background-color: #F5F0E8 !important; border-top: 1px solid #D8D0C4 !important; }
.xoo-wsc-subtotal .amount,
.xoo-wsc-ft-subtotal .amount { color: #1A1A1A !important; font-weight: 700 !important; font-family: 'Lato', sans-serif !important; }

/* Footer buttons — primary (checkout) */
a.xoo-wsc-ft-btn,
a.xoo-wsc-ft-btn:visited,
.xoo-wsc-container .xoo-wsc-btn,
.xoo-wsc-container button.xoo-wsc-btn,
.xoo-wsc-container input[type="submit"] {
  background-color: #2D4A2D !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: .5px !important;
  padding: 12px 20px !important;
  text-decoration: none !important;
  transition: background-color .2s ease !important;
}
a.xoo-wsc-ft-btn:hover,
.xoo-wsc-container .xoo-wsc-btn:hover { background-color: #3A5C3A !important; color: #fff !important; }

/* "Continue shopping" / secondary ghost button */
a.xoo-wsc-ft-btn-cs,
a.xoo-wsc-ft-btn-cs:visited {
  background-color: transparent !important;
  color: #1A1A1A !important;
  border: 1px solid #1A1A1A !important;
}
a.xoo-wsc-ft-btn-cs:hover { background-color: #1A1A1A !important; color: #fff !important; }

/* Cart item count badge */
.xoo-wsc-items-count,
span.xoo-wsc-sc-count,
span.xoo-wscb-count { background-color: #2D4A2D !important; color: #fff !important; }

/* Backdrop */
.xoo-wsc-opac { background-color: rgba(0,0,0,.5) !important; }

/* Scrollbar */
.xoo-wsc-markup *::-webkit-scrollbar-thumb { background: #D8D0C4 !important; }

/* Side cart trigger (floating basket icon) */
.xoo-wsc-basket,
.xoo-wsc-basket:hover {
  background-color: #2D4A2D !important;
  color: #fff !important;
  border-color: #2D4A2D !important;
}
.xoo-wsc-basket:hover { background-color: #3A5C3A !important; }


/* Qty stepper +/- — Pencil design: EDE8DF bg, r8, D8D0C4 border */
.emcbd-qty-stepper {
  display: flex;
  align-items: center;
  background: #EDE8DF;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  overflow: hidden;
}
.emcbd-qty-minus,
.emcbd-qty-plus {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 40px; flex: 0 0 36px;
  background: transparent; border: none; cursor: pointer;
  color: #1A1A1A;
  transition: background-color .15s ease;
}
.emcbd-qty-minus:hover { color: #c0392b; }
.emcbd-qty-plus:hover { color: #2D4A2D; }
.emcbd-qty-input {
  width: 44px; height: 40px;
  text-align: center;
  background: transparent;
  border: none; border-left: 1px solid #D8D0C4; border-right: 1px solid #D8D0C4;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px; font-weight: 700; color: #1A1A1A;
  -moz-appearance: textfield;
  outline: none;
}
.emcbd-qty-input::-webkit-outer-spin-button,
.emcbd-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Delete icon — no red circle hover, just color change */
.emcbd-ci-remove .remove {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: #8A8A8A;
  background: transparent !important;
  text-decoration: none;
  border-radius: 50%;
  transition: color .15s ease;
}
.emcbd-ci-remove .remove:hover { color: #c0392b !important; background: transparent !important; }
.emcbd-ci-remove .remove::before { display: none !important; }

/* Shipping section in summary card — new div-based template */
.emcbd-shipping-block { display: flex; flex-direction: column; gap: 8px; }
.emcbd-shipping-block .emcbd-totals-lbl { font-size: 14px; color: #8A8A8A; font-weight: 400; }
.emcbd-shipping-options { display: flex; flex-direction: column; gap: 6px; }
.emcbd-shipping-options .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.emcbd-shipping-options .woocommerce-shipping-methods li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.emcbd-shipping-options .woocommerce-shipping-destination { font-size: 12px; color: #5A5A5A; margin: 4px 0 0; }

/* Legacy table-based fallback (hide th, display td as block) */
.emcbd-totals-row--shipping { flex-direction: column; gap: 8px; }
.emcbd-totals-row--shipping .shipping { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.emcbd-totals-row--shipping .shipping th { display: none; }
.emcbd-totals-row--shipping .shipping td { display: block; }
.emcbd-totals-row--shipping .shipping ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.emcbd-totals-row--shipping .shipping li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
/* Green radio buttons */
.emcbd-cart-totals input[type="radio"] { accent-color: #2D4A2D; width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; cursor: pointer; }
.emcbd-cart-totals input[type="radio"]:checked { accent-color: #2D4A2D; }
/* Shipping sub-info box */
.emcbd-cart-totals .wc-laposte-info,
.emcbd-cart-totals .shipping-description { font-size: 12px; color: #5A5A5A; background: #F5F0E8; border-radius: 6px; padding: 10px 12px; margin-top: 4px; }

/* ============================================================================
   SHOP / CATEGORY ARCHIVE — Sidebar layout (Pencil DTHLX)
   ============================================================================ */

/* Outer flex row wrapper */
.emcbd-shop-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: none;
  padding-top: 48px;
  padding-bottom: 80px;
  padding-left: max(40px, calc((100% - 1280px) / 2));
  padding-right: max(40px, calc((100% - 1280px) / 2));
}

/* Breadcrumb above sidebar layout */
.emcbd-woo__breadcrumb {
  max-width: none;
  padding-top: 16px;
  padding-bottom: 0;
  padding-left: max(40px, calc((100% - 1280px) / 2));
  padding-right: max(40px, calc((100% - 1280px) / 2));
}
.emcbd-woo__breadcrumb .woocommerce-breadcrumb {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px;
  color: var(--wp--preset--color--text-muted);
  margin: 0;
}
.emcbd-woo__breadcrumb .woocommerce-breadcrumb a {
  color: var(--wp--preset--color--text-muted);
  text-decoration: none;
}
.emcbd-woo__breadcrumb .woocommerce-breadcrumb a:hover {
  color: var(--wp--preset--color--accent);
  text-decoration: underline;
}

/* Sidebar — 260px fixed, white card, border-radius 12, border 1px #D8D0C4 */
.emcbd-shop-sidebar {
  flex: 0 0 260px;
  width: 260px;
  position: sticky;
  top: 24px;
  align-self: flex-start;
}
.emcbd-sidebar-card {
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar title "FILTRER" */
.emcbd-sidebar-title {
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--wp--preset--color--text) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Filter group — each section (Prix / Type / Taux CBD / Format) */
.emcbd-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--wp--preset--color--border);
}
.emcbd-filter-label {
  font-family: var(--wp--preset--font-family--lato) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: var(--wp--preset--color--text-dim) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Price range — WC widget override */
.emcbd-price-filter-wrap .widget_price_filter { padding: 0; margin: 0; border: none; box-shadow: none; }
.emcbd-price-filter-wrap .widget_price_filter .price_slider_wrapper { margin: 0; }
.emcbd-price-filter-wrap .widget_price_filter .price_slider { margin-bottom: 10px; }

/* Track */
.emcbd-price-filter-wrap .ui-slider {
  position: relative;
  height: 4px !important;
  background: #E0D8CC !important;
  border-radius: 2px !important;
  border: none !important;
  margin: 8px 0;
}
.emcbd-price-filter-wrap .ui-slider .ui-slider-range {
  background: #2D4A2D !important;
  height: 4px !important;
  border-radius: 2px !important;
  border: none !important;
  position: absolute;
  top: 0;
}
/* Handles */
.emcbd-price-filter-wrap .ui-slider .ui-slider-handle {
  width: 14px !important;
  height: 14px !important;
  background: #2D4A2D !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  top: -5px !important;
  margin-left: -7px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2) !important;
  outline: none;
  position: absolute;
}
.emcbd-price-filter-wrap .ui-slider .ui-slider-handle:focus { box-shadow: 0 0 0 3px rgba(45,74,45,.25); }

/* Price amounts row */
.emcbd-price-filter-wrap .price_slider_amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.emcbd-price-filter-wrap .price_slider_amount .price_label {
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  flex: 1;
}
.emcbd-price-filter-wrap .price_slider_amount button {
  background: var(--wp--preset--color--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.emcbd-price-filter-wrap .price_slider_amount button:hover {
  background: var(--wp--preset--color--accent-hover, #3A5C3A);
}
/* Hide WC widget title if it leaks through */
.emcbd-price-filter-wrap h2, .emcbd-price-filter-wrap .widget-title { display: none; }

/* Price range bar (static fallback, kept for reference) */
.emcbd-price-range { display: flex; flex-direction: column; gap: 8px; }
.emcbd-price-bar {
  height: 4px;
  background: #E0D8CC;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.emcbd-price-endpoints {
  display: flex;
  justify-content: space-between;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  font-weight: 600;
  color: var(--wp--preset--color--text);
}

/* Type checkboxes */
.emcbd-filter-check { margin: 0; }
.emcbd-filter-check__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px;
  font-weight: 400;
  color: var(--wp--preset--color--text);
  padding: 2px 0;
}
.emcbd-filter-check__link:hover { color: var(--wp--preset--color--accent); }
.emcbd-filter-check__box {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1.5px solid #D8D0C4;
  border-radius: 3px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
.emcbd-filter-check__box.is-checked {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
  color: #fff;
}
.emcbd-filter-check__count {
  margin-left: auto;
  font-size: 12px;
  color: var(--wp--preset--color--text-muted);
}

/* Pills (Taux CBD / Format) */
.emcbd-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.emcbd-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #D8D0C4;
  border-radius: 999px;
  background: #fff;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 12px;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
  cursor: pointer;
}
.emcbd-pill:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}
.emcbd-pill.is-active {
  background: var(--wp--preset--color--accent-soft);
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}

/* Main product area — fills remaining space */
.emcbd-shop-main {
  flex: 1;
  min-width: 0;
}
.emcbd-shop-main::after {
  content: '';
  display: table;
  clear: both;
}

/* Archive 3-column grid — override 4-col default only on archive/shop pages */
.emcbd-shop-main .woocommerce ul.products {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 900px) {
  .emcbd-shop-main .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* WC before_shop_loop bar — flex row: result count left, ordering right */
.emcbd-shop-main .woocommerce-notices-wrapper { margin: 0; }

/* Result count + ordering — same line via float */
.emcbd-shop-main .woocommerce-result-count {
  float: left !important;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px;
  color: var(--wp--preset--color--text-dim);
  line-height: 36px;
  margin: 0 0 16px !important;
}
.emcbd-shop-main .woocommerce-ordering {
  float: right !important;
  margin: 0 0 16px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}
/* Clearfix so product grid starts below the bar */
.emcbd-shop-main .woocommerce-ordering + * { clear: both; }
.emcbd-shop-main ul.products { clear: both; }

/* "Trier par" label */
.emcbd-shop-main .woocommerce-ordering::before {
  content: 'Trier par';
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px;
  font-weight: 400;
  color: var(--wp--preset--color--text-dim);
  white-space: nowrap;
}
.emcbd-shop-main .woocommerce-ordering select {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 6px;
  padding: 7px 30px 7px 12px;
  font-family: var(--wp--preset--font-family--lato);
  font-size: 13px;
  font-weight: 600;
  color: var(--wp--preset--color--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  line-height: 1.4;
}
.emcbd-shop-main .woocommerce-ordering select:hover,
.emcbd-shop-main .woocommerce-ordering select:focus {
  border-color: var(--wp--preset--color--accent);
}

/* Pagination */
.emcbd-shop-main .woocommerce-pagination {
  margin-top: 40px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .emcbd-shop-layout { gap: 24px; }
  .emcbd-shop-sidebar { flex: 0 0 220px; width: 220px; }
  .emcbd-sidebar-card { padding: 20px; }
}
@media (max-width: 768px) {
  .emcbd-shop-layout {
    flex-direction: column;
    padding-top: 24px;
  }
  .emcbd-shop-sidebar {
    flex: none;
    width: 100%;
    position: static;
  }
  .emcbd-shop-main .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}


/* Complianz cookie popup — theme colors -------------------------------------*/
.cmplz-cookiebanner .cmplz-btn.cmplz-accept,
.cmplz-manage-consent .cmplz-btn.cmplz-accept {
  background-color: #2D4A2D !important;
  border-color: #2D4A2D !important;
  color: #fff !important;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover {
  background-color: #3A5C3A !important;
  border-color: #3A5C3A !important;
}
.cmplz-cookiebanner a,
.cmplz-manage-consent a,
.cmplz-cookiebanner .cmplz-links a { color: #2D4A2D !important; }

/* xoo-wsc side-cart text visibility (footer bg is cream, text was white) -----*/
.xoo-wsc-footer,
.xoo-wsc-ft-totals,
.xoo-wsc-ft-amt,
.xoo-wsc-ft-amt-label,
.xoo-wsc-ft-amt-value { color: #1A1A1A !important; }
/* Empty cart state */
.xoo-wsc-empty-msg,
.xoo-wsc-empty { color: #1A1A1A !important; background: transparent !important; }

/* Category intro hero -------------------------------------------------------*/
/* Break out of WP is-layout-constrained (max-width:contentSize, margin:auto) */
.is-layout-constrained > .emcbd-cat-hero,
.has-global-padding > .emcbd-cat-hero {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.emcbd-cat-hero {
  position: relative;
  height: 280px;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  background-color: #141414;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.emcbd-cat-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.67) 0%, rgba(20,20,20,.80) 100%);
}
.emcbd-cat-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.emcbd-cat-hero__eyebrow {
  font-family: var(--wp--preset--font-family--lato), sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #E8F0E8;
  margin: 0;
}
.emcbd-cat-hero__title {
  font-family: var(--wp--preset--font-family--lato), sans-serif;
  font-size: clamp(32px, 3.3vw, 48px);
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}
.emcbd-cat-hero__sub {
  font-family: var(--wp--preset--font-family--lato), sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,.67);
  max-width: 800px;
  margin: 0;
  line-height: 1.6;
}

/* Category SEO block --------------------------------------------------------*/
/* Break out of constrained layout */
.is-layout-constrained > .emcbd-cat-seo,
.has-global-padding > .emcbd-cat-seo {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.emcbd-cat-seo {
  background: #fff;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.emcbd-cat-seo__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.emcbd-cat-seo__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--wp--preset--font-family--lato), sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2D4A2D;
}
.emcbd-cat-seo__body,
.emcbd-cat-seo__body p {
  font-family: var(--wp--preset--font-family--lato), sans-serif;
  font-size: 14px;
  color: #8A8A8A;
  line-height: 1.7;
  max-width: 1100px;
}

/* Breadcrumb bar — full-width cream bar, text constrained to content width ---*/
.woocommerce-breadcrumb.emcbd-breadcrumb,
nav.emcbd-breadcrumb {
  display: block !important;
  background: var(--wp--preset--color--bg) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  font-family: var(--wp--preset--font-family--lato), sans-serif !important;
  font-size: 12px !important;
  color: var(--wp--preset--color--text-muted) !important;
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.emcbd-bc-inner {
  max-width: none;
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: max(40px, calc((100% - 1280px) / 2));
  padding-right: max(40px, calc((100% - 1280px) / 2));
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
nav.emcbd-breadcrumb a {
  color: var(--wp--preset--color--text-muted) !important;
  text-decoration: none !important;
  font-size: 12px;
}
nav.emcbd-breadcrumb a:hover { color: var(--wp--preset--color--accent) !important; }
nav.emcbd-breadcrumb .emcbd-bc-sep {
  color: var(--wp--preset--color--text-dim);
  margin: 0 4px;
  flex-shrink: 0;
}
nav.emcbd-breadcrumb .emcbd-bc-current {
  color: var(--wp--preset--color--accent) !important;
  font-weight: 700;
  font-size: 12px;
}
/* Break out of constrained layout */
.is-layout-constrained > .emcbd-breadcrumb,
.has-global-padding > .emcbd-breadcrumb {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* WooCommerce pagination ----------------------------------------------------*/
.woocommerce-pagination { margin: 32px 0 0 !important; text-align: center !important; }
.woocommerce-pagination ul.page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  flex-wrap: wrap;
  width: auto !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
.woocommerce-pagination ul.page-numbers li { margin: 0 !important; display: list-item !important; border-right: 0 !important; }
.woocommerce-pagination ul.page-numbers li a.page-numbers,
.woocommerce-pagination ul.page-numbers li span.page-numbers {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  background: #fff !important;
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--lato), sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all .15s ease !important;
  box-shadow: none !important;
  outline: none !important;
}
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
  background: var(--wp--preset--color--surface-2) !important;
  border-color: var(--wp--preset--color--border) !important;
}
.woocommerce-pagination ul.page-numbers li span.page-numbers.current {
  background: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
  color: #fff !important;
}
.woocommerce-pagination ul.page-numbers li span.page-numbers.dots,
.woocommerce-pagination ul.page-numbers li a.page-numbers.dots {
  border: none !important;
  background: transparent !important;
  color: var(--wp--preset--color--text-muted) !important;
}

/* ── Blog index ──────────────────────────────────────────────────────────── */

/* Dynamic PHP tabs */
.emcbd-blog-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 24px 40px;
  background: var(--wp--preset--color--bg);
}
.emcbd-blog-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--lato), sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--wp--preset--color--text-muted);
  background: var(--wp--preset--color--surface);
  border: 1px solid var(--wp--preset--color--border);
  transition: all .15s ease;
  cursor: pointer;
}
.emcbd-blog-tab:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}
.emcbd-blog-tab.is-active {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
  color: #ffffff;
  font-weight: 700;
}

/* Hero cover — ensure dark enough on cream bg */
.blog .wp-block-cover {
  background-color: #1a2a1a !important;
}

/* Featured article card — horizontal layout */
.emcbd-blog-featured {
  display: flex !important;
  flex-direction: row !important;
  overflow: hidden;
  min-height: 380px;
}
/* wp:post-featured-image renders as <figure> — target it directly */
.emcbd-blog-featured figure.wp-block-post-featured-image {
  flex: 0 0 600px !important;
  width: 600px !important;
  align-self: stretch !important;
  overflow: hidden !important;
  margin: 0 !important;
}
.emcbd-blog-featured figure.wp-block-post-featured-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.emcbd-blog-featured figure.wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.emcbd-blog-featured__body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.emcbd-blog-featured__body .wp-block-post-title a {
  color: var(--wp--preset--color--text) !important;
  text-decoration: none;
}
.emcbd-blog-featured__body .wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent) !important;
}

/* Blog grid cards */
.emcbd-blog-card {
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
}
.emcbd-blog-card .wp-block-post-featured-image {
  height: 240px;
  overflow: hidden;
}
.emcbd-blog-card .wp-block-post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* News & Guides cards on home: image must fill top edge.
   Card uses .wp-block-group.has-surface-background-color.has-global-padding
   which adds 20px top padding before featured image. Remove that, keep
   horizontal/bottom padding for inner content. */
.wp-block-post > .wp-block-group.has-surface-background-color {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden;
  border-radius: 12px;
}
.wp-block-post > .wp-block-group.has-surface-background-color > .wp-block-post-featured-image,
.wp-block-post > .wp-block-group.has-surface-background-color > figure.wp-block-post-featured-image {
  margin: 0 !important;
  border-radius: 0 !important;
}
.wp-block-post > .wp-block-group.has-surface-background-color > .wp-block-post-featured-image img {
  border-radius: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.wp-block-post > .wp-block-group.has-surface-background-color > :not(.wp-block-post-featured-image):not(figure) {
  padding-left: 24px;
  padding-right: 24px;
}
.wp-block-post > .wp-block-group.has-surface-background-color > :last-child {
  padding-bottom: 24px;
}
.emcbd-blog-card .wp-block-post-title a {
  color: var(--wp--preset--color--text) !important;
  text-decoration: none;
}
.emcbd-blog-card .wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent) !important;
}
.emcbd-blog-card .wp-block-post-terms a {
  color: var(--wp--preset--color--accent) !important;
  text-decoration: none;
}

/* Load more button */
.emcbd-blog-more-btn .wp-block-button__link {
  padding: 14px 32px !important;
  background: transparent !important;
  color: var(--wp--preset--color--text) !important;
  border: 1px solid var(--wp--preset--color--text) !important;
}
.emcbd-blog-more-btn .wp-block-button__link:hover {
  background: var(--wp--preset--color--text) !important;
  color: #fff !important;
}

/* WP block query pagination (archive.html) */
.wp-block-query-pagination {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.wp-block-query-pagination-numbers {
  border: none !important;
  outline: none !important;
  background: transparent !important;
}
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span,
.wp-block-query-pagination-previous a,
.wp-block-query-pagination-next a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 1px solid var(--wp--preset--color--border) !important;
  background: #fff !important;
  color: var(--wp--preset--color--text) !important;
  font-family: var(--wp--preset--font-family--lato), sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all .15s ease !important;
  box-shadow: none !important;
  outline: none !important;
}
.wp-block-query-pagination-numbers a:focus,
.wp-block-query-pagination-numbers span:focus,
.wp-block-query-pagination-previous a:focus,
.wp-block-query-pagination-next a:focus,
.woocommerce-pagination ul.page-numbers li a.page-numbers:focus,
.woocommerce-pagination ul.page-numbers li span.page-numbers:focus {
  outline: none !important;
  box-shadow: none !important;
}
.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-previous a:hover,
.wp-block-query-pagination-next a:hover {
  background: var(--wp--preset--color--surface-2) !important;
}
.wp-block-query-pagination-numbers span.current {
  background: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
  color: #fff !important;
}

/* Responsive: featured card stacks on mobile */
@media (max-width: 768px) {
  .emcbd-blog-featured {
    flex-direction: column !important;
  }
  .emcbd-blog-featured .emcbd-blog-featured__img {
    width: 100% !important;
    flex: 0 0 220px !important;
    height: 220px;
  }
  .emcbd-blog-featured__body {
    padding: 24px !important;
  }
}

/* ── Account page mobile ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Post-content top padding tighter on mobile */
  .woocommerce-account .wp-block-post-content { padding-top: 24px !important; }

  /* Welcome card — grid: [avatar | info | edit-btn] in one compact row */
  .emcbd-dash-welcome {
    display: grid !important;
    grid-template-columns: 44px 1fr auto !important;
    gap: 12px !important;
    padding: 16px !important;
    align-items: center !important;
  }
  .emcbd-dash-avatar { width: 44px !important; height: 44px !important; font-size: 16px !important; }
  .emcbd-dash-info { gap: 2px; }
  .emcbd-dash-name { font-size: 16px !important; }
  .emcbd-dash-meta { font-size: 11px !important; }
  .emcbd-dash-edit { padding: 8px 12px !important; font-size: 11px !important; white-space: nowrap; align-self: center; }

  /* Shortcut cards — single column, horizontal layout */
  .emcbd-dash-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .emcbd-dash-card {
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
  }
  .emcbd-dash-icon { flex-shrink: 0; width: 20px !important; height: 20px !important; }
  .emcbd-dash-card-title { font-size: 14px !important; }
  .emcbd-dash-card-sub { font-size: 12px !important; }

  /* Sub-pages: stack nav above content */
  .emcbd-ac-sub-layout { flex-direction: column !important; gap: 12px !important; }

  /* Nav sidebar: horizontal scrollable pills on mobile */
  .emcbd-ac-sub-layout .woocommerce-MyAccount-navigation {
    flex: none !important;
    width: 100% !important;
    padding: 0 !important;
    border-radius: 10px !important;
    overflow-x: auto;
  }
  .emcbd-ac-sub-layout .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-direction: row !important;
    padding: 4px 8px !important;
    gap: 4px !important;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .emcbd-ac-sub-layout .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
  .emcbd-ac-sub-layout .woocommerce-MyAccount-navigation ul li {
    padding: 0 !important;
    border: none !important;
    flex-shrink: 0;
  }
  .emcbd-ac-sub-layout .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 7px 14px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    border: 1px solid #D8D0C4;
    background: #F5F0E8;
  }
  .emcbd-ac-sub-layout .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #2D4A2D !important;
    color: #fff !important;
    border-color: #2D4A2D !important;
    font-weight: 600 !important;
  }

  /* Content card: tighter padding */
  .emcbd-ac-sub-content .woocommerce-MyAccount-content { padding: 16px !important; }
  .woocommerce-account .woocommerce-MyAccount-content { padding: 16px !important; }

  /* WC sub-page: headings — target both with and without .woocommerce-MyAccount-content wrapper */
  .emcbd-ac-sub-content h2,
  .emcbd-ac-sub-content h3,
  .emcbd-ac-sub-content .woocommerce-MyAccount-content h2,
  .emcbd-ac-sub-content .woocommerce-MyAccount-content h3 {
    font-size: 15px !important;
    font-family: var(--wp--preset--font-family--lato), Lato, sans-serif !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
  }

  /* Addresses: stack 2-column layout */
  .emcbd-ac-sub-content .u-columns.col2-set { display: flex !important; flex-direction: column !important; gap: 20px !important; }
  .emcbd-ac-sub-content .u-column1,
  .emcbd-ac-sub-content .u-column2 { width: 100% !important; float: none !important; }

  /* Address section header: flex row (title + edit link) */
  .emcbd-ac-sub-content .woocommerce-Address-title { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; margin-bottom: 8px !important; }
  .emcbd-ac-sub-content .woocommerce-Address-title h2 { margin: 0 !important; }
  .emcbd-ac-sub-content .woocommerce-Address-title .edit { font-size: 12px !important; white-space: nowrap; color: #2D4A2D !important; }

  /* Scrollable tables */
  .emcbd-ac-sub-content table,
  .emcbd-ac-sub-content .woocommerce-MyAccount-content table { display: block !important; overflow-x: auto !important; }
  .emcbd-ac-sub-content table th,
  .emcbd-ac-sub-content table td,
  .emcbd-ac-sub-content .woocommerce-MyAccount-content table th,
  .emcbd-ac-sub-content .woocommerce-MyAccount-content table td { padding: 8px 10px !important; font-size: 12px !important; }

  /* Form fields: full width */
  .emcbd-ac-sub-content .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper,
  .emcbd-ac-sub-content .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    display: flex !important; flex-direction: column !important; gap: 8px !important;
  }
  .emcbd-ac-sub-content .woocommerce-MyAccount-content .form-row { width: 100% !important; float: none !important; clear: both !important; }
  .emcbd-ac-sub-content .woocommerce-MyAccount-content input,
  .emcbd-ac-sub-content .woocommerce-MyAccount-content select { width: 100% !important; box-sizing: border-box !important; font-size: 14px !important; }

  /* Login page: stack columns */
  .emcbd-ac-page--login { flex-direction: column !important; }
  .emcbd-ac-col-login { flex: none !important; max-width: 100% !important; width: 100% !important; }
  .emcbd-ac-col-preview { display: none !important; }
}

/* ── Footer mobile ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Main footer body: tighter side padding */
  footer.wp-block-group > .wp-block-group:first-of-type {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Bottom bar: stack copyright above links */
  footer .has-footer-base-background-color {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Legal links: allow wrapping, smaller gap */
  footer .has-footer-base-background-color > .wp-block-group {
    flex-wrap: wrap !important;
    gap: 8px 20px !important;
  }

  /* Newsletter form: full width */
  .emcbd-newsletter-form {
    width: 100% !important;
  }
  .emcbd-newsletter-form input {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   Contact Form 7 — match theme tokens (cream bg, green accent)
   ────────────────────────────────────────────────────────────────────── */
.wpcf7 {
  max-width: 720px;
  margin: 0 0 48px;
}
.wpcf7 form > p,
.wpcf7 form > div { margin: 0 0 18px; }
.wpcf7 label {
  display: block;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  background: #fff;
  border: 1px solid #D8D0C4;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 15px;
  color: #1A1A1A;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.wpcf7 textarea {
  min-height: 140px;
  resize: vertical;
}
.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff 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='%235A5A5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
  padding-right: 42px;
  cursor: pointer;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: #2D4A2D;
  box-shadow: 0 0 0 3px rgba(45, 74, 45, 0.12);
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: #8A8A8A; }
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
  background: #2D4A2D;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: var(--wp--preset--font-family--lato), Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  width: auto;
  min-width: 200px;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
  background: #3A5C3A;
}
.wpcf7 input[type="submit"]:active {
  transform: translateY(1px);
}
.wpcf7-checkbox,
.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wpcf7-checkbox label,
.wpcf7-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
  font-size: 15px;
}
.wpcf7-checkbox input,
.wpcf7-radio input {
  width: 18px;
  height: 18px;
  accent-color: #2D4A2D;
  margin: 0;
}
.wpcf7-not-valid-tip {
  color: #B91C1C;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}
.wpcf7-response-output {
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  margin: 16px 0 0 !important;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #E8F5E8;
  border: 1px solid #3CB371 !important;
  color: #1F4F2A;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  background: #FEF2F2;
  border: 1px solid #B91C1C !important;
  color: #B91C1C;
}
.wpcf7-spinner { background-color: #2D4A2D; }

/* Two-column layout helper for CF7 (use [text] in <p class="cf7-row"> wrappers) */
@media (min-width: 720px) {
  .wpcf7 .cf7-row,
  .wpcf7 form > p:has(+ p > input):not(:has(textarea)) {
    /* Keep simple: full-width fields by default */
  }
}
