body.codex-storefront {
  --codex-accent: #8f352d;
  --codex-accent-ink: #fffdf8;
  --codex-benefit-bg: #fffaf2;
  --codex-benefit-border: rgba(51,38,28,.16);
}
body.codex-storefront-boutique-templier { --codex-accent:#822c2a; --codex-benefit-bg:#eee7da; }
body.codex-storefront-boutique-edo { --codex-accent:#953f31; --codex-benefit-bg:#f0ece2; }
body.codex-storefront-boutique-steampunk-theme { --codex-accent:#b98553; --codex-accent-ink:#10171b; --codex-benefit-bg:#182329; --codex-benefit-border:rgba(185,133,83,.45); }
body.codex-storefront-ukraineshop { --codex-accent:#0057b8; --codex-benefit-bg:#f0f6ff; }
body.codex-storefront-vivelapalestine-theme-updated-v4 { --codex-accent:#586235; --codex-benefit-bg:#faf6ed; }

/* Product data remain intact in WooCommerce; only the storefront presentation changes. */
body.codex-storefront.single-product .product_meta,
body.codex-storefront.single-product .stock,
body.codex-storefront.single-product .woocommerce-variation-availability,
body.codex-storefront.single-product .woocommerce-availability,
body.codex-storefront .account-link,
body.codex-storefront .site-header a[href*="/mon-compte/"],
body.codex-storefront .site-footer a[href*="/mon-compte/"],
body.codex-storefront nav a[href*="/mon-compte/"],
body.codex-storefront footer a[href*="/mon-compte/"] { display:none !important; }

body.codex-storefront.single-product .single_add_to_cart_button,
body.codex-storefront.single-product .woocommerce-variation-add-to-cart .button {
  min-height:52px;
  padding:13px 25px;
  border:1px solid transparent;
  border-radius:9px;
  background:var(--codex-accent);
  color:var(--codex-accent-ink);
  font-weight:700;
  line-height:1.3;
  box-shadow:0 8px 20px rgba(0,0,0,.14);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
body.codex-storefront.single-product.woocommerce div.product form.cart button.single_add_to_cart_button.button.alt {
  background:var(--codex-accent) !important;
  color:var(--codex-accent-ink) !important;
  border:1px solid transparent;
  border-radius:9px;
  box-shadow:0 8px 20px rgba(0,0,0,.14);
}
body.codex-storefront.single-product .single_add_to_cart_button::after { content:'  →'; }
body.codex-storefront.single-product .single_add_to_cart_button:hover,
body.codex-storefront.single-product .woocommerce-variation-add-to-cart .button:hover {
  transform:translateY(-2px);
  filter:brightness(1.08);
  box-shadow:0 12px 25px rgba(0,0,0,.2);
}
body.codex-storefront.single-product .single_add_to_cart_button:focus-visible {
  outline:3px solid var(--codex-accent);
  outline-offset:3px;
}
body.codex-storefront.single-product .single_add_to_cart_button:disabled,
body.codex-storefront.single-product .single_add_to_cart_button.disabled {
  transform:none;
  filter:none;
  opacity:.55;
  box-shadow:none;
}

body.codex-storefront .codex-product-benefits {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  clear:both;
  margin:24px 0;
}
body.codex-storefront .codex-benefit {
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
  padding:14px;
  border:1px solid var(--codex-benefit-border);
  border-radius:12px;
  background:var(--codex-benefit-bg);
  color:inherit;
  text-decoration:none;
  line-height:1.35;
}
body.codex-storefront .codex-benefit strong,
body.codex-storefront .codex-benefit small { display:block; }
body.codex-storefront .codex-benefit strong { font-size:.87rem; }
body.codex-storefront .codex-benefit small { margin-top:4px; opacity:.8; font-size:.74rem; }
body.codex-storefront .codex-benefit-icon { flex:none; color:var(--codex-accent); font-size:1.3rem; line-height:1; }
body.codex-storefront .codex-benefit-link:hover { border-color:var(--codex-accent); }
body.codex-storefront .related.products { clear:both; margin-top:44px; }
body.codex-storefront .related.products > h2 { margin-bottom:20px; }
body.codex-storefront .wc-stripe-express-loading .wc-stripe-express-skeleton { display:none; }

@media(max-width:800px){
  body.codex-storefront .codex-product-benefits { grid-template-columns:1fr; }
  body.codex-storefront .codex-benefit { align-items:center; min-height:62px; }
  body.codex-storefront .menu-toggle,
  body.codex-storefront .nav-toggle { min-width:44px; min-height:44px; }
  body.codex-storefront .main-nav a,
  body.codex-storefront .mobile-nav a,
  body.codex-storefront .site-nav a,
  body.codex-storefront .primary-navigation a { min-height:44px; }
  body.codex-storefront-boutique-edo .main-nav .sub-menu a,
  body.codex-storefront-boutique-steampunk-theme #primary-navigation a,
  body.codex-storefront-ukraineshop #navigation-principale a,
  body.codex-storefront-vivelapalestine-theme-updated-v4 #site-navigation .sub-menu a {
    display:flex;
    align-items:center;
    min-height:44px;
  }
  body.codex-storefront-boutique-templier #mobile-nav a { min-height:44px; }
  body.codex-storefront-vivelapalestine-theme-updated-v4 #site-navigation {
    height:calc(100dvh - 114px);
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:20px 24px 32px;
  }
  body.admin-bar.codex-storefront-vivelapalestine-theme-updated-v4 #site-navigation {
    height:calc(100dvh - 160px);
  }
  body.codex-storefront-vivelapalestine-theme-updated-v4 #site-navigation .menu > li > a {
    font-size:clamp(2rem,8vw,2.7rem);
    line-height:1.1;
    padding:8px 0;
  }
  body.codex-storefront-vivelapalestine-theme-updated-v4 #site-navigation .sub-menu {
    gap:4px 14px;
  }
  body.codex-storefront-vivelapalestine-theme-updated-v4 #site-navigation .sub-menu a {
    padding:8px 4px;
    font-size:.82rem;
  }
  body.codex-storefront.single-product .single_add_to_cart_button { min-height:54px; }
}
@media(prefers-reduced-motion:reduce){
  body.codex-storefront.single-product .single_add_to_cart_button { transition:none; }
}
