/*
 Theme Name:   Astra Child - Ecowerd
 Theme URI:    http://ecowerd.local
 Description:  Luxury eco-coffee e-commerce – premium (FR / EN / DE).
 Author:       Ecowerd
 Template:     astra
 Version:      4.6.0
 Text Domain:  astra-child
*/

/* ═══════════════════════════════════════════════════════════════
   FONTS
═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  --ec-espresso: #1A0F0A;
  --ec-roast: #3D1C0B;
  --ec-gold: #D4A853;
  --ec-cream: #FAF7F4;

  --ec-green: #1D9E75;
  --ec-green-dark: #0B4D35;
  --ec-green-pale: rgba(29, 158, 117, 0.09);

  --ec-text: #1A0F0A;
  --ec-text-soft: #5A4238;
  --ec-muted: #9B8B80;
  --ec-border: #E4D9D2;
  --ec-bg: #FFFFFF;
  --ec-soft: #FAF7F4;
  --ec-urgent: #D63B4E;

  --ec-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ec-font-display: 'Playfair Display', Georgia, serif;

  --ec-radius: 16px;
  --ec-radius-sm: 10px;
  --ec-radius-pill: 999px;
  --ec-btn-h: 50px;
  --ec-input-h: 50px;
  --ec-max: 1200px;

  --ec-shadow-sm: 0 2px 10px rgba(26, 15, 10, 0.06);
  --ec-shadow-md: 0 8px 32px rgba(26, 15, 10, 0.11);
  --ec-shadow-btn: 0 8px 24px rgba(0, 0, 0, 0.30);

  --ec-t: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --ec-t-slow: 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   BASE RESET
═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden !important;
  font-family: var(--ec-font) !important;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ec-text);
  background: var(--ec-bg);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* NOTE: no `height: auto` on img — that breaks fixed-height card images */
img,
video,
iframe,
svg {
  max-width: 100% !important;
}

video {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Fix Elementor invisible state */
.elementor-invisible {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6,
.e-heading-base {
  font-family: var(--ec-font-display) !important;
  color: var(--ec-text) !important;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(28px, 5vw, 54px) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

h2 {
  font-size: clamp(22px, 3.5vw, 38px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

h3 {
  font-size: clamp(18px, 2.4vw, 26px) !important;
  font-weight: 700 !important;
}

p,
.e-paragraph-base {
  font-family: var(--ec-font) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: var(--ec-text-soft);
}

input,
select,
textarea,
button,
.menu-link {
  font-family: var(--ec-font) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MARKETING BAR
═══════════════════════════════════════════════════════════════ */
body::before {
  content: "Livraison gratuite dès 49€ • Kostenloser Versand ab 49€";
  display: block;
  width: 100%;
  background: #000000;
  color: var(--ec-gold);
  text-align: center;
  font-family: var(--ec-font) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  z-index: 10000;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER STUB (detail in header-fix.css)
═══════════════════════════════════════════════════════════════ */
.site-header,
#masthead {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: #fff !important;
}

.site-branding img,
.custom-logo {
  max-height: 68px !important;
  max-width: 130px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-header-menu .menu-link {
  font-family: var(--ec-font) !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--ec-text);
  padding: 10px 16px;
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item>.menu-link {
  color: var(--ec-green);
}

/* Language switcher */
.ecowerd-lang-switcher--header {
  z-index: 10050;
}

.ecowerd-lang-toggle {
  appearance: none;
  cursor: pointer;
  font-family: var(--ec-font);
  transition: background var(--ec-t), color var(--ec-t);
}

.ecowerd-lang-dropdown {
  display: none;
}

.ecowerd-lang-switcher--header.open .ecowerd-lang-dropdown {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
.button,
.wp-block-button__link,
.elementor-button,
.e-button-base,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.srfm-submit-button,
button[type="submit"],
input[type="submit"] {
  font-family: var(--ec-font) !important;
  background: #111111 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--ec-radius-pill) !important;
  padding: 13px 26px !important;
  min-height: var(--ec-btn-h) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: transform var(--ec-t), box-shadow var(--ec-t) !important;
  position: relative;
  overflow: hidden;
}

/* Shimmer on hover */
.button::before,
.woocommerce a.button::before,
button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);
  transform: skewX(-15deg);
  transition: left 0.5s ease;
}

.button:hover::before,
.woocommerce a.button:hover::before,
button[type="submit"]:hover::before {
  left: 150%;
}

.button:hover,
.e-button-base:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.srfm-submit-button:hover {
  background: #333333 !important;
  color: #fff !important;
  box-shadow: var(--ec-shadow-btn) !important;
  transform: translateY(-2px);
}

.button:active,
.woocommerce a.button:active {
  transform: translateY(0);
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   ADD TO CART
═══════════════════════════════════════════════════════════════ */
.woocommerce a.add_to_cart_button,
.woocommerce a.product_type_simple,
.woocommerce a.product_type_variable,
.woocommerce button.single_add_to_cart_button,
.woocommerce .single_add_to_cart_button,
.add_to_cart_button,
.single_add_to_cart_button {
  background: #111111 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: var(--ec-radius-pill) !important;
  width: 100% !important;
  padding: 12px 18px !important;
  min-height: var(--ec-btn-h) !important;
  font-family: var(--ec-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px;
  margin-top: 10px !important;
  box-shadow: none !important;
  transition: background var(--ec-t), box-shadow var(--ec-t), transform var(--ec-t);
}

.woocommerce a.add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
  background: #333333 !important;
  box-shadow: var(--ec-shadow-btn) !important;
  transform: translateY(-2px);
}

/* "View cart" link after AJAX add — clean inline, NOT overlapping */
.woocommerce a.added_to_cart {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;
  padding: 7px 14px !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--ec-green-dark) !important;
  background: var(--ec-green-pale) !important;
  border: 1.5px solid var(--ec-green) !important;
  border-radius: var(--ec-radius-pill) !important;
  text-decoration: none !important;
  letter-spacing: 0.03em;
  transition: background var(--ec-t), color var(--ec-t);
  position: static !important;
  /* NEVER position absolute */
}

.woocommerce a.added_to_cart:hover {
  background: var(--ec-green) !important;
  color: #fff !important;
}

/* Added dark state of add-to-cart button */
.woocommerce a.add_to_cart_button.added {
  background: #000000 !important;
  margin-top: 8px !important;
}

/* Single product buy box */
.single-product div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.single-product div.product form.cart .quantity {
  margin: 0 !important;
}

.single-product div.product form.cart .quantity .qty {
  min-height: var(--ec-btn-h);
  min-width: 78px;
  border: 2px solid var(--ec-border);
  border-radius: var(--ec-radius-sm);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--ec-font);
  background: var(--ec-cream);
}

.single-product div.product form.cart .single_add_to_cart_button {
  flex: 1 1 200px;
  width: auto !important;
  max-width: 340px !important;
  margin-top: 0 !important;
}

.woocommerce a.button.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background: #111111 !important;
  font-size: 15px !important;
  min-height: 54px !important;
  border-radius: var(--ec-radius-pill) !important;
  font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE SALE BADGE
═══════════════════════════════════════════════════════════════ */
.woocommerce span.onsale {
  background: var(--ec-urgent) !important;
  color: #fff !important;
  font-family: var(--ec-font) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--ec-radius-pill) !important;
  padding: 5px 12px !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1.4 !important;
}

.ec-free-shipping-badge {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   STAR RATINGS — Gold
═══════════════════════════════════════════════════════════════ */
.woocommerce .star-rating span::before,
.woocommerce .star-rating::before {
  color: var(--ec-gold) !important;
}

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE PRODUCT GRID (native ul.products loop)
═══════════════════════════════════════════════════════════════ */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 16px !important;
  list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 1.5px solid var(--ec-border);
  border-radius: var(--ec-radius);
  overflow: hidden;
  transition: border-color var(--ec-t-slow), transform var(--ec-t-slow);
}

.woocommerce ul.products li.product:hover {
  border-color: var(--ec-green);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 46, 36, 0.09);
}

.woocommerce ul.products li.product a:first-child {
  display: block;
  overflow: hidden;
  background: var(--ec-cream);
}

.woocommerce ul.products li.product a img {
  height: 210px !important;
  object-fit: cover !important;
  width: 100% !important;
  display: block;
  transition: transform 0.4s ease;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.ast-woo-product-category,
.ast-woo-product-category a,
.ast-loop-product__category,
.posted_in,
.posted_in a,
.product-category,
.woocommerce ul.products li.product .ast-woo-product-category,
.woocommerce ul.products li.product .posted_in,
.woocommerce ul.products li.product .category {
  font-family: var(--ec-font) !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ec-font-display) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 8px 14px 4px !important;
  color: var(--ec-text) !important;
  line-height: 1.3 !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.woocommerce ul.products li.product .star-rating,
.woocommerce .star-rating,
.product .star-rating,
.star-rating {
  margin: 6px auto !important;
  float: none !important;
  display: block !important;
  position: relative !important;
  width: 5.4em !important;
  height: 1em !important;
  line-height: 1 !important;
  font-size: 14px !important;
  overflow: hidden !important;
}

.woocommerce .star-rating::before,
.product .star-rating::before,
.star-rating::before {
  color: var(--ec-gold) !important;
  opacity: 0.35 !important;
  top: 0 !important;
  left: 0 !important;
  position: absolute !important;
  line-height: 1 !important;
}

.woocommerce .star-rating span,
.product .star-rating span,
.star-rating span {
  overflow: hidden !important;
  float: left !important;
  top: 0 !important;
  left: 0 !important;
  position: absolute !important;
  padding-top: 1.5em !important;
  height: 0 !important;
  width: 100% !important;
}

.woocommerce .star-rating span::before,
.product .star-rating span::before,
.star-rating span::before {
  color: var(--ec-gold) !important;
  opacity: 1 !important;
  top: 0 !important;
  left: 0 !important;
  position: absolute !important;
  line-height: 1 !important;
}

.woocommerce ul.products li.product .price,
.product .price,
.woocommerce .price {
  font-family: var(--ec-font) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--ec-espresso) !important;
  padding: 2px 14px 12px !important;
  display: block !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  text-align: center !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--ec-muted) !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.woocommerce ul.products li.product .price ins {
  color: var(--ec-urgent) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.woocommerce ul.products li.product .price .woocommerce-Price-amount {
  white-space: nowrap !important;
  display: inline-block !important;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  width: calc(100% - 28px) !important;
  max-width: 240px !important;
  margin: 0 auto 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  border-radius: var(--ec-radius-pill) !important;
  min-height: 44px !important;
  font-size: clamp(10px, 2.5vw, 12px) !important;
  padding: 10px 10px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════════ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  font-family: var(--ec-font) !important;
  font-size: 16px !important;
  color: var(--ec-text) !important;
  background: var(--ec-soft) !important;
  border: 1.5px solid var(--ec-border) !important;
  border-radius: var(--ec-radius-sm) !important;
  padding: 13px 16px !important;
  min-height: var(--ec-input-h) !important;
  width: 100% !important;
  transition: border-color var(--ec-t), box-shadow var(--ec-t) !important;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border-color: var(--ec-green) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12) !important;
}

textarea {
  min-height: 130px !important;
  resize: vertical;
}

.woocommerce label,
.woocommerce-billing-fields label,
.woocommerce-shipping-fields label {
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: var(--ec-font) !important;
  color: var(--ec-text) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   ★ ELEMENTOR IMAGE-BOX PRODUCT CARDS (STORE PAGES) ★
   These are the Elementor widgets on the boutique/store/shop pages.
   MUST have flex-direction: column to keep image on top, text below!
═══════════════════════════════════════════════════════════════ */
.elementor-widget-image-box .elementor-image-box-wrapper {
  display: flex !important;
  flex-direction: column !important;
  /* image TOP, text BOTTOM — critical */
  height: 100%;
  background: #fff;
  border: 1.5px solid var(--ec-border);
  border-radius: var(--ec-radius);
  overflow: hidden;
  transition: border-color var(--ec-t-slow), transform var(--ec-t-slow);
}

.elementor-widget-image-box .elementor-image-box-wrapper:hover {
  border-color: var(--ec-green);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 46, 36, 0.09);
}

.elementor-widget-image-box .elementor-image-box-img {
  margin: 0 !important;
  width: 100%;
  overflow: hidden;
  background: var(--ec-cream);
  flex-shrink: 0;
}

.elementor-widget-image-box .elementor-image-box-img img {
  width: 100% !important;
  height: 220px !important;
  max-height: 220px !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.4s ease;
}

.elementor-widget-image-box .elementor-image-box-wrapper:hover .elementor-image-box-img img {
  transform: scale(1.04);
}

.elementor-widget-image-box .elementor-image-box-content {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.elementor-widget-image-box .elementor-image-box-title {
  font-family: var(--ec-font-display) !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  font-weight: 700 !important;
  color: var(--ec-text) !important;
}

.elementor-widget-image-box .elementor-image-box-title a {
  color: var(--ec-text);
  text-decoration: none;
  transition: color var(--ec-t);
}

.elementor-widget-image-box .elementor-image-box-title a:hover {
  color: var(--ec-green);
}

/* Price field (mapped to description in Elementor image-box) */
.elementor-widget-image-box .elementor-image-box-description {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--ec-espresso) !important;
  font-family: var(--ec-font) !important;
  margin: 0 !important;
  margin-top: auto !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Store page image-box link colour */
.elementor-1236 .elementor-image-box-content a,
.elementor-1219 .elementor-image-box-content a,
.elementor-951 .elementor-image-box-content a {
  color: inherit;
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE LAYOUTS (FR / EN / DE)
═══════════════════════════════════════════════════════════════ */

/* Video hero */
.elementor-element-00aebb3,
.elementor-element-00aebb3 .e-con-inner {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.e-self-hosted-video-base,
.elementor-element-00aebb3 video {
  width: 100% !important;
  max-height: 500px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* Benefits section */
.elementor .e-896083f-4bc4473,
.elementor .e-13d87e2,
.elementor-element-0f2734c {
  aspect-ratio: auto !important;
  overflow: visible !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  padding: 24px 20px !important;
  text-align: center !important;
  display: block !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

/* Special offers heading */
.elementor .e-bf164bb-f9d37b6,
h2.e-bf164bb-f9d37b6 {
  position: static !important;
  inset: auto !important;
  text-align: center !important;
  font-size: clamp(20px, 3.5vw, 30px) !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

.elementor .e-083e4ca,
.elementor-element-40ce8b4 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 40px 20px !important;
  background: var(--ec-soft);
}

/* Collections header */
.elementor-element-c4138c2 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px 16px !important;
  padding: 36px 20px 14px !important;
  max-width: var(--ec-max);
  margin: 0 auto;
}

.elementor .e-5c79aaa-2ebddc1,
h2.e-5c79aaa-2ebddc1 {
  margin: 0 !important;
  font-size: clamp(20px, 3.2vw, 30px) !important;
  flex: 1 1 auto;
}

.elementor .e-1108fb4-358c764 a {
  color: var(--ec-green) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color var(--ec-t);
}

.elementor .e-1108fb4-358c764 a:hover {
  color: var(--ec-green-dark);
}

/* Collections 4-col desktop grid */
.elementor .e-f5a67dd,
.elementor-element-d25e1a5 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 10px 20px 40px !important;
  max-width: var(--ec-max);
  margin: 0 auto;
  width: 100%;
}

.elementor .e-f5a67dd img,
.elementor-element-d25e1a5 img {
  width: 100% !important;
  height: 200px !important;
  max-height: 200px !important;
  object-fit: cover !important;
  border-radius: var(--ec-radius);
  border: 1px solid var(--ec-border);
  display: block;
  background: var(--ec-cream);
  transition: transform 0.3s ease;
}

.elementor .e-f5a67dd img:hover {
  transform: translateY(-4px);
}

/* Blog / recipe heading */
.elementor .e-871bb41-a3534a7,
h2.e-871bb41-a3534a7,
.elementor-element-2176321 {
  width: 100% !important;
  text-align: center !important;
  padding: 36px 20px 14px !important;
  font-size: clamp(20px, 3.2vw, 30px) !important;
  margin: 0 !important;
}

/* Blog 2-col grid */
.elementor .e-4e0b429,
.elementor-element-4299166 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  padding: 0 20px 48px !important;
  max-width: var(--ec-max);
  margin: 0 auto;
}

/* Divider */
.elementor .e-2fd6f01-a7ac3d5,
hr.e-divider-base {
  width: 100% !important;
  max-width: 100% !important;
  height: 1px !important;
  margin: 20px auto !important;
  background: var(--ec-border);
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ★ STORE PAGES (FR:1236 / EN:1219 / DE:951) ★
   Elementor image-box grids — 3 columns
═══════════════════════════════════════════════════════════════ */
.elementor-1236,
.elementor-1219,
.elementor-951 {
  padding: 24px 0 56px !important;
}

.elementor-1236 .e-a73ca71,
.elementor-1219 .e-a73ca71,
.elementor-951 .e-a73ca71,
.elementor-1236 .e-7be5268,
.elementor-1219 .e-7be5268,
.elementor-951 .e-7be5268,
.elementor-1236 .elementor-element-211ef31,
.elementor-1219 .elementor-element-211ef31,
.elementor-951 .elementor-element-211ef31,
.elementor-1236 .elementor-element-559b63d,
.elementor-1219 .elementor-element-559b63d,
.elementor-951 .elementor-element-559b63d {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  padding: 18px 20px !important;
  max-width: var(--ec-max) !important;
  margin: 0 auto !important;
  width: 100% !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
}

/* Store page image-box images */
.elementor-1236 .elementor-image-box-img img,
.elementor-1219 .elementor-image-box-img img,
.elementor-951 .elementor-image-box-img img {
  width: 100% !important;
  height: 210px !important;
  max-height: 210px !important;
  object-fit: cover !important;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
═══════════════════════════════════════════════════════════════ */
.single-product div.product {
  padding: 32px 0 60px;
}

.single-product .product_title {
  font-family: var(--ec-font-display) !important;
  font-size: clamp(26px, 3.5vw, 40px) !important;
  font-weight: 900 !important;
  color: var(--ec-espresso) !important;
  line-height: 1.15 !important;
  margin-bottom: 8px !important;
}

.single-product .price {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--ec-espresso) !important;
  margin-bottom: 16px !important;
}

.single-product .price del {
  font-size: 17px !important;
  color: var(--ec-muted) !important;
  font-weight: 400 !important;
}

.single-product .price ins {
  color: var(--ec-urgent) !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   STICKY MOBILE ADD-TO-CART (single product only)
═══════════════════════════════════════════════════════════════ */
.ec-sticky-cart {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: var(--ec-espresso);
  padding: 12px 16px;
  box-shadow: 0 -6px 24px rgba(26, 15, 10, 0.18);
}

.ec-sticky-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: #111111 !important;
  color: #fff !important;
  border-radius: var(--ec-radius-pill) !important;
  font-family: var(--ec-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: var(--ec-shadow-btn);
}

/* ═══════════════════════════════════════════════════════════════
   CART & CHECKOUT
═══════════════════════════════════════════════════════════════ */
.woocommerce-cart table.cart {
  border-radius: var(--ec-radius);
  overflow: hidden;
  border: 1px solid var(--ec-border) !important;
}

.woocommerce-cart table.cart thead th {
  background: var(--ec-espresso) !important;
  color: var(--ec-gold) !important;
  font-family: var(--ec-font) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 16px !important;
  border: none !important;
}

.woocommerce-cart table.cart td {
  padding: 16px !important;
  border-bottom: 1px solid var(--ec-border) !important;
  vertical-align: middle;
}

.woocommerce-cart .cart_totals {
  background: var(--ec-soft);
  border-radius: var(--ec-radius);
  padding: 28px;
  border: 1px solid var(--ec-border);
}

/* ═══════════════════════════════════════════════════════════════
   WOOCOMMERCE NOTICES
═══════════════════════════════════════════════════════════════ */
.woocommerce-message {
  border-top-color: var(--ec-green) !important;
  background: rgba(29, 158, 117, 0.07) !important;
  font-family: var(--ec-font) !important;
}

.woocommerce-error {
  border-top-color: var(--ec-urgent) !important;
  background: rgba(214, 59, 78, 0.06) !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOCUS — Accessibility
═══════════════════════════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ec-green);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════
   TABLET (769px – 1024px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .elementor-1236 .e-a73ca71,
  .elementor-1219 .e-a73ca71,
  .elementor-951 .e-a73ca71,
  .elementor-1236 .e-7be5268,
  .elementor-1219 .e-7be5268,
  .elementor-951 .e-7be5268,
  .elementor-1236 .elementor-element-211ef31,
  .elementor-1219 .elementor-element-211ef31,
  .elementor-951 .elementor-element-211ef31 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .elementor .e-f5a67dd,
  .elementor-element-d25e1a5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .elementor-widget-image-box .elementor-image-box-img img,
  .elementor-1236 .elementor-image-box-img img,
  .elementor-1219 .elementor-image-box-img img,
  .elementor-951 .elementor-image-box-img img {
    height: 180px !important;
    max-height: 180px !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE (≤ 768px)
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  body::before {
    font-size: 10px;
    padding: 7px 10px;
    content: "☕  Livraison gratuite dès 49€  •  Free shipping from €49  ☕";
  }

  h1 {
    font-size: 26px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  .site-branding img,
  .custom-logo {
    max-width: 100px !important;
    max-height: 46px !important;
  }

  /* 2-column product grids on mobile */
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 10px !important;
  }

  .woocommerce ul.products li.product a img {
    height: 160px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    padding: 10px 10px 3px !important;
  }

  .product .price,
  .woocommerce .price,
  .price,
  .elementor-widget-image-box .elementor-image-box-description {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    padding: 2px 0 6px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    line-height: 1.2 !important;
  }

  .product .price *,
  .woocommerce .price *,
  .price *,
  .elementor-widget-image-box .elementor-image-box-description * {
    font-size: 10.5px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    display: inline !important;
    letter-spacing: -0.03em !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .product .price del,
  .woocommerce .price del,
  .price del {
    font-size: 9px !important;
    margin-right: 2px !important;
    white-space: nowrap !important;
    display: inline !important;
  }

  .product .price ins,
  .woocommerce .price ins,
  .price ins {
    font-size: 10.5px !important;
    white-space: nowrap !important;
    display: inline !important;
  }

  .product .button,
  .product .add_to_cart_button,
  .product a.button,
  .product a.product_type_simple,
  .product a.product_type_variable,
  a.add_to_cart_button,
  a.product_type_variable,
  a.product_type_simple,
  .woocommerce a.button,
  .woocommerce a.add_to_cart_button {
    width: calc(100% - 8px) !important;
    max-width: 100% !important;
    margin: 4px auto 10px !important;
    padding: 7px 4px !important;
    min-height: 34px !important;
    height: auto !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0em !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1 !important;
  }

  .product .button *,
  .product .add_to_cart_button *,
  a.add_to_cart_button *,
  a.product_type_variable *,
  a.product_type_simple * {
    font-size: 9px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    display: inline !important;
    line-height: 1 !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  .product .button svg,
  .product .add_to_cart_button svg,
  a.add_to_cart_button svg {
    display: none !important;
  }

  /* Store 2-col on mobile */
  .elementor-1236 .e-a73ca71,
  .elementor-1219 .e-a73ca71,
  .elementor-951 .e-a73ca71,
  .elementor-1236 .e-7be5268,
  .elementor-1219 .e-7be5268,
  .elementor-951 .e-7be5268,
  .elementor-1236 .elementor-element-211ef31,
  .elementor-1219 .elementor-element-211ef31,
  .elementor-951 .elementor-element-211ef31 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 12px 12px !important;
  }

  .elementor-widget-image-box .elementor-image-box-img img,
  .elementor-1236 .elementor-image-box-img img,
  .elementor-1219 .elementor-image-box-img img,
  .elementor-951 .elementor-image-box-img img {
    height: 150px !important;
    max-height: 150px !important;
  }

  .elementor-widget-image-box .elementor-image-box-content {
    padding: 10px 12px 14px;
  }

  .elementor-widget-image-box .elementor-image-box-title {
    font-size: 13px !important;
  }

  .elementor-widget-image-box .elementor-image-box-description {
    font-size: 13px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    margin-top: auto !important;
  }

  /* Collections 2-col */
  .elementor .e-f5a67dd,
  .elementor-element-d25e1a5 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 8px 14px 28px !important;
  }

  /* Collections images: use aspect-ratio on mobile so they
     never overflow their card regardless of column width */
  .elementor .e-f5a67dd img,
  .elementor-element-d25e1a5 img {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
  }

  /* Blog 1-col */
  .elementor .e-4e0b429,
  .elementor-element-4299166 {
    grid-template-columns: 1fr !important;
    padding: 0 14px 36px !important;
    gap: 14px !important;
  }

  /* Sticky cart */
  .ec-sticky-cart {
    display: block;
  }

  /* Mobile buttons full width */
  .button,
  .elementor-button,
  .e-button-base {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Mobile menu items */
  .ast-header-break-point .main-header-menu .menu-link {
    padding: 0 18px !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARD – REMOVE GREEN OVERLAY ICON (produits similaires)
   Hides the Astra Pro "Add to Cart" bar that sits above the image.
   Livraison gratuite badge is excluded (it has its own class).
═══════════════════════════════════════════════════════════════ */
.woocommerce ul.products li.product .ast-woo-shop-product-image-btn-wrap,
.woocommerce .ast-woo-shop-product-image-btn-wrap,
.ast-woo-product-image-btn-wrap,
.ast-woo-product-image-btn,
.ast-shop-product-actions-wrap,
.woocommerce ul.products li.product .product-image-before-wrap,
.yith-wcqv-button,
a.ast-on-card-button,
.ast-on-card-button,
.ast-card-action-tooltip,
.ast-select-options-trigger {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

/* Product card borders on hover: keep as green (brand colour) */
/* Sticky bar hover matches black buttons */
.ec-sticky-btn:hover {
  background: #333333 !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — remove "propulsé par le thème" credit & enforce 2024
   Astra renders it inside .site-info / .ast-footer-copyright.
═══════════════════════════════════════════════════════════════ */
.site-info .ast-footer-copyright > span:not(:first-child),
.site-info .sep,
.ast-footer-copyright .sep + *,
.ast-footer-copyright p:last-child,
.ast-footer-copyright > *:last-child:not(:first-child),
.site-info a[href*="wpastra"],
.site-info a[href*="wordpress"] {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════════════ */
@media print {
  body::before {
    display: none !important;
  }

  .ec-sticky-cart {
    display: none !important;
  }
}