/*
Theme Name: Maison Aurouze
Theme URI: https://www.maison-aurouze.fr/
Author: Maison Aurouze
Author URI: https://www.maison-aurouze.fr/
Description: Theme WordPress minimal pour Maison Aurouze (e-commerce), base visuelle inspiree des styles Elementor existants.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: maison-aurouze
*/

:root {
  --ma-primary: #1e6a29;
  --ma-secondary: #133c19;
  --ma-text: #717171;
  --ma-accent: #325324;
  --ma-black: #000000;
  --ma-white: #ffffff;
  --ma-container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--ma-white);
  color: var(--ma-black);
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: var(--ma-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ma-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.125rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.875rem);
}

p {
  margin: 0 0 1rem;
  color: var(--ma-text);
}

.site-content,
.site-footer {
  width: 100%;
  margin: 0;
}

.site-header {
  width: min(100% - 2rem, var(--ma-container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.site-branding a {
  color: var(--ma-black);
}

.site-title {
  margin: 0;
  font-size: 2rem;
}

.site-description {
  margin: 0.25rem 0 0;
  color: var(--ma-text);
  font-size: 0.9rem;
}

.main-navigation ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  font-weight: 500;
}

.site-content {
  padding: 0;
}

.site-footer {
  border-top: 1px solid #e8e8e8;
  padding: 1.25rem 0 2rem;
  color: var(--ma-text);
  font-size: 0.95rem;
}

button,
.button,
input[type="submit"] {
  border: 0;
  border-radius: 0.35rem;
  padding: 0.7rem 1rem;
  background: var(--ma-primary);
  color: var(--ma-white);
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
  background: var(--ma-secondary);
}

/* WooCommerce - Cart premium look */
.woocommerce .ma-cart-shell {
  margin-top: 0.8rem;
  display: grid;
  gap: 1.5rem;
}

.woocommerce .ma-cart-intro {
  margin-bottom: 0;
  padding: 1.4rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(120deg, #f5fbf6 0%, #ffffff 100%);
  border: 1px solid #e6efe8;
}

.woocommerce .ma-cart-intro h1 {
  margin: 0 0 0.35rem;
  color: var(--ma-secondary);
}

.woocommerce .ma-cart-intro p {
  margin: 0;
}

.woocommerce-cart table.shop_table {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.woocommerce-cart table.shop_table th {
  background: #f8faf8;
  color: var(--ma-secondary);
  font-weight: 600;
}

.woocommerce-cart table.shop_table td,
.woocommerce-cart table.shop_table th {
  padding: 1rem;
}

.woocommerce-cart td.product-remove {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  padding: 0.45rem 0.2rem !important;
  text-align: center;
}

.woocommerce-cart td.product-remove a.remove {
  margin-inline: auto;
  width: 24px;
  height: 24px;
  line-height: 22px;
  border-radius: 999px;
  background: #eef5ef;
  color: var(--ma-secondary) !important;
  font-size: 18px;
  font-weight: 700;
}

.woocommerce-cart td.product-remove a.remove:hover {
  background: #f6dede;
  color: #9a1f1f !important;
}

.woocommerce-cart .product-name a {
  color: var(--ma-secondary);
  font-weight: 500;
}

.woocommerce-cart td.product-thumbnail {
  width: 120px;
  min-width: 120px;
}

.woocommerce-cart td.product-thumbnail img {
  width: 100px;
  max-width: 100px;
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce-cart td.product-name,
.woocommerce-cart td.product-price,
.woocommerce-cart td.product-quantity,
.woocommerce-cart td.product-subtotal {
  vertical-align: middle;
}

.woocommerce-cart tr:hover td.product-thumbnail img {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.woocommerce-cart .cart_totals {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 1.1rem 1.1rem 1.35rem;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

.woocommerce-cart .cart-collaterals {
  width: 100% !important;
  float: none !important;
  clear: both;
  margin-top: 1rem;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
  clear: both !important;
  display: block !important;
}

.woocommerce-cart .cart-collaterals::after,
.woocommerce-page .cart-collaterals::after {
  content: "" !important;
  display: block !important;
  clear: both !important;
}

.woocommerce-cart .cart-collaterals .cross-sells,
.woocommerce-page .cart-collaterals .cross-sells {
  width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 0 1rem !important;
}

.woocommerce-cart .cart-collaterals .cross-sells > h2,
.woocommerce-page .cart-collaterals .cross-sells > h2 {
  width: 100% !important;
  margin-bottom: 0.9rem !important;
}

.woocommerce-cart .cart-collaterals .cross-sells ul.products,
.woocommerce-page .cart-collaterals .cross-sells ul.products {
  width: 100% !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem !important;
}

.woocommerce-cart .cart-collaterals .cross-sells ul.products li.product,
.woocommerce-page .cart-collaterals .cross-sells ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  background: var(--ma-primary);
  border-radius: 10px;
  font-weight: 600;
  padding: 0.95rem 1.1rem;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: var(--ma-secondary);
}

.woocommerce .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8e6db;
  border-radius: 999px;
  padding: 0.2rem;
  background: #fff;
}

.woocommerce .quantity .qty {
  width: 52px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 600;
  color: var(--ma-secondary);
  -moz-appearance: textfield;
  pointer-events: none;
  user-select: none;
}

.woocommerce .quantity .qty::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.woocommerce .ma-qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #eef5ef;
  color: var(--ma-secondary);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0;
}

.woocommerce .ma-qty-btn:hover {
  background: var(--ma-primary);
  color: #fff;
}

.woocommerce-cart .actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  align-items: stretch;
  padding-top: 0.9rem !important;
}

.woocommerce-cart .coupon {
  display: flex !important;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
}

.woocommerce-cart .coupon #coupon_code {
  width: min(100%, 420px);
  min-width: 220px;
  border: 1px solid #cfe0d3;
  border-radius: 10px;
  background: #f9fcf9;
  padding: 0.72rem 0.9rem;
  color: var(--ma-secondary);
}

.woocommerce-cart .coupon button[name="apply_coupon"] {
  white-space: nowrap;
}

.woocommerce-cart button[name="update_cart"] {
  display: none !important;
}

.woocommerce-cart .coupon #coupon_code:focus {
  outline: none;
  border-color: var(--ma-primary);
  box-shadow: 0 0 0 3px rgba(30, 106, 41, 0.16);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart button[name="apply_coupon"],
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.single-product .single_add_to_cart_button {
  background: var(--ma-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 0.8rem 1rem !important;
  font-weight: 600 !important;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce-cart button[name="apply_coupon"]:hover,
.woocommerce-cart button[name="update_cart"]:hover,
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.single-product .single_add_to_cart_button:hover {
  background: var(--ma-secondary) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(19, 60, 25, 0.24);
}

.woocommerce .ma-cart-recommendations .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  float: none !important;
}

.woocommerce .ma-cart-recommendations ul.products li.product,
.woocommerce-page .ma-cart-recommendations ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
}

.woocommerce .ma-cart-recommendations ul.products::before,
.woocommerce .ma-cart-recommendations ul.products::after {
  content: none !important;
  display: none !important;
}

.woocommerce .ma-cart-recommendations {
  margin-top: 0.4rem;
  padding: 1.35rem;
  border-radius: 14px;
  border: 1px solid #e6efe8;
  background: #fcfefd;
  width: 100%;
  clear: both;
}

.woocommerce .ma-cart-recommendations__head {
  margin-bottom: 1rem;
}

.woocommerce .ma-cart-recommendations__head h2 {
  margin: 0 0 0.35rem;
  color: var(--ma-secondary);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.woocommerce .ma-cart-recommendations__head p {
  margin: 0;
}

.woocommerce .ma-cart-recommendations ul.products {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.woocommerce .ma-cart-recommendations ul.products li.product {
  border: 1px solid #e8eee9;
  border-radius: 12px;
  padding: 0.8rem;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce .ma-cart-recommendations ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(19, 60, 25, 0.12);
}

.woocommerce ul.products li.product .ma-product-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0.75rem;
}

.woocommerce ul.products li.product .ma-product-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  background: rgba(19, 60, 25, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.woocommerce ul.products li.product .ma-product-image {
  width: 100% !important;
  margin: 0 !important;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.woocommerce ul.products li.product .ma-product-image--secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.woocommerce ul.products li.product:hover .ma-product-image--main {
  transform: scale(1.08);
}

.woocommerce ul.products li.product:hover .ma-product-image--secondary {
  opacity: 1;
  transform: scale(1.08);
}

.woocommerce ul.products li.product:hover .ma-product-image--main.has-secondary {
  opacity: 0;
}

@media (max-width: 768px) {
  .woocommerce .ma-cart-shell {
    gap: 1rem;
  }

  .woocommerce-cart table.shop_table td,
  .woocommerce-cart table.shop_table th {
    padding: 0.7rem;
  }

  .woocommerce .ma-cart-recommendations .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-cart .cart-collaterals .cross-sells ul.products,
  .woocommerce-page .cart-collaterals .cross-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-cart .coupon {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-cart .coupon #coupon_code {
    min-width: 0;
    width: 100%;
  }

  .woocommerce .ma-cart-intro,
  .woocommerce .ma-cart-recommendations,
  .woocommerce-cart .cart_totals {
    border-radius: 10px;
  }
}

@media (max-width: 520px) {
  .woocommerce .ma-cart-recommendations .products {
    grid-template-columns: 1fr;
  }

  .woocommerce-cart .cart-collaterals .cross-sells ul.products,
  .woocommerce-page .cart-collaterals .cross-sells ul.products {
    grid-template-columns: 1fr;
  }
}

/* WooCommerce - Checkout premium */
.woocommerce-checkout .ma-checkout-shell {
  display: grid;
  gap: 1.4rem;
  margin-top: 0.8rem;
}

.woocommerce-checkout .ma-checkout-intro {
  padding: 1.4rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(120deg, #f5fbf6 0%, #ffffff 100%);
  border: 1px solid #e6efe8;
}

.woocommerce-checkout .ma-checkout-intro h1 {
  margin: 0 0 0.4rem;
  color: var(--ma-secondary);
}

.woocommerce-checkout .ma-checkout-intro p {
  margin: 0;
}

.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  margin: 0;
  width: 100%;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2,
.woocommerce-checkout #order_review {
  float: none !important;
  width: 100% !important;
}

.woocommerce-checkout #customer_details > div,
.woocommerce-checkout #order_review {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.woocommerce-checkout #customer_details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.woocommerce-checkout #customer_details .col-1 {
  grid-column: 1 / -1;
  align-self: start;
}

.woocommerce-checkout #customer_details .col-2 {
  grid-column: 1 / -1;
  align-self: start;
  margin-top: 0.2rem;
}

.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-shipping-fields > h3,
.woocommerce-checkout #order_review_heading {
  color: var(--ma-secondary);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  margin-bottom: 0.75rem;
}

.woocommerce-checkout .form-row {
  margin-bottom: 0.8rem;
}

.woocommerce-checkout .form-row label {
  color: #2d2d2d;
  font-weight: 500;
}

.woocommerce-checkout input[type="radio"],
.woocommerce-checkout input[type="checkbox"] {
  accent-color: var(--ma-secondary);
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  border: 1px solid #cfdfd2 !important;
  border-radius: 10px !important;
  background: #fbfdfb !important;
  padding: 0.75rem 0.9rem !important;
  color: var(--ma-secondary);
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
  border-color: var(--ma-primary) !important;
  box-shadow: 0 0 0 3px rgba(30, 106, 41, 0.15);
  outline: none;
}

.woocommerce-checkout #order_review {
  position: static;
}

.woocommerce-checkout #order_review table.shop_table th {
  background: #f8faf8;
  color: var(--ma-secondary);
}

.woocommerce-checkout .ma-checkout-item-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.woocommerce-checkout .ma-checkout-item-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #dde9df;
  background: #fff;
}

.woocommerce-checkout .ma-checkout-item-name-text {
  display: inline-block;
  flex: 1;
}

.woocommerce-checkout .ma-checkout-remove-item {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #eef5ef;
  color: var(--ma-secondary);
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.woocommerce-checkout .ma-checkout-remove-item:hover {
  background: #f6dede;
  color: #9a1f1f;
}

.woocommerce-checkout .ma-checkout-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #d8e6db;
  border-radius: 999px;
  padding: 0.18rem;
  background: #fff;
}

.woocommerce-checkout .ma-checkout-qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #eef5ef;
  color: var(--ma-secondary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}

.woocommerce-checkout .ma-checkout-qty-btn:hover {
  background: var(--ma-primary);
  color: #fff;
}

.woocommerce-checkout .ma-checkout-qty-value {
  min-width: 1.1rem;
  text-align: center;
  font-weight: 600;
  color: var(--ma-secondary);
}

.woocommerce-checkout #payment {
  background: #f9fcfa !important;
  border: 1px solid #deebdf !important;
  border-radius: 12px !important;
}

.woocommerce-checkout #payment div.payment_box {
  background: #eef6f0;
  border-radius: 10px;
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #eef6f0 !important;
}

/* Shipping methods + Colissimo pickup selector */
.woocommerce-checkout ul#shipping_method,
.woocommerce-checkout .woocommerce-shipping-methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.woocommerce-checkout ul#shipping_method li,
.woocommerce-checkout .woocommerce-shipping-methods li {
  border: 1px solid #dce8de;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-checkout ul#shipping_method li:has(input[type="radio"]:checked),
.woocommerce-checkout .woocommerce-shipping-methods li:has(input[type="radio"]:checked) {
  border-color: var(--ma-primary);
  box-shadow: 0 0 0 2px rgba(30, 106, 41, 0.12);
}

.woocommerce-checkout ul#shipping_method label,
.woocommerce-checkout .woocommerce-shipping-methods label {
  color: var(--ma-secondary);
  font-weight: 500;
}

.woocommerce-checkout [id*="colissimo"],
.woocommerce-checkout [class*="colissimo"],
.woocommerce-checkout [id*="pickup"],
.woocommerce-checkout [class*="pickup"] {
  border-radius: 12px;
}

.woocommerce-checkout [class*="colissimo"] select,
.woocommerce-checkout [id*="colissimo"] select,
.woocommerce-checkout [class*="pickup"] select,
.woocommerce-checkout [id*="pickup"] select {
  min-height: 46px;
  border: 1px solid #cfe0d3 !important;
  border-radius: 10px !important;
  background: #f9fcf9 !important;
}

.woocommerce-checkout [class*="colissimo"] .button,
.woocommerce-checkout [id*="colissimo"] .button,
.woocommerce-checkout [class*="pickup"] .button,
.woocommerce-checkout [id*="pickup"] .button {
  background: var(--ma-primary) !important;
  border-radius: 10px !important;
  color: #fff !important;
  border: 0 !important;
}

.woocommerce-checkout [class*="colissimo"] .button:hover,
.woocommerce-checkout [id*="colissimo"] .button:hover,
.woocommerce-checkout [class*="pickup"] .button:hover,
.woocommerce-checkout [id*="pickup"] .button:hover {
  background: var(--ma-secondary) !important;
}

/* Checkout notices and coupon toggle */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-error {
  border-radius: 10px;
}

@media (max-width: 980px) {
  .woocommerce-checkout #customer_details {
    grid-template-columns: 1fr;
  }
}

/* WooCommerce notices / popups style aligned with theme */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  border-radius: 12px !important;
  border: 1px solid #d8e8dc !important;
  color: var(--ma-secondary) !important;
  background: #f6fbf7 !important;
  box-shadow: 0 8px 20px rgba(19, 60, 25, 0.08);
  padding: 1rem 1rem 1rem 2.8rem !important;
}

.woocommerce-message {
  border-left: 4px solid var(--ma-primary) !important;
}

.woocommerce-info {
  border-left: 4px solid #2b7f8b !important;
  background: #f3fbfd !important;
}

.woocommerce-error {
  border-left: 4px solid #b42318 !important;
  border-color: #f3d6d3 !important;
  background: #fff6f5 !important;
  color: #7a1b13 !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  left: 1rem !important;
  top: 50% !important;
  transform: translateY(-50%);
}

.woocommerce-message::before {
  color: var(--ma-primary) !important;
}

.woocommerce-info::before {
  color: #2b7f8b !important;
}

.woocommerce-error::before {
  color: #b42318 !important;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  color: var(--ma-secondary) !important;
  font-weight: 600;
  text-decoration: underline;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button,
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
  background: var(--ma-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 0.65rem 0.9rem !important;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover,
.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover {
  background: var(--ma-secondary) !important;
}

.woocommerce-notices-wrapper {
  display: grid;
  gap: 0.7rem;
}

/* Checkout coupon notice (avez-vous un code promo) */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
  border-radius: 12px !important;
  border: 1px solid #d8e8dc !important;
  border-left: 4px solid var(--ma-primary) !important;
  background: #f6fbf7 !important;
  color: var(--ma-secondary) !important;
  box-shadow: 0 8px 20px rgba(19, 60, 25, 0.08);
  padding: 1rem 1rem 1rem 2.8rem !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before {
  color: var(--ma-primary) !important;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .showcoupon {
  color: var(--ma-secondary) !important;
  font-weight: 700;
  text-decoration: underline;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info {
  border-radius: 12px !important;
  border: 1px solid #d8e8dc !important;
  border-left: 4px solid var(--ma-primary) !important;
  background: #f6fbf7 !important;
  color: var(--ma-secondary) !important;
  box-shadow: 0 8px 20px rgba(19, 60, 25, 0.08);
  padding: 1rem 1rem 1rem 2.8rem !important;
}

.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info::before {
  color: var(--ma-primary) !important;
}

.woocommerce-checkout .woocommerce-form-login-toggle .showlogin {
  color: var(--ma-secondary) !important;
  font-weight: 700;
  text-decoration: underline;
}

.woocommerce-checkout .woocommerce-form-coupon {
  margin-top: 0.6rem;
  border: 1px solid #d8e8dc;
  border-radius: 12px;
  background: #f6fbf7;
  padding: 1rem;
}

.woocommerce-checkout .woocommerce-form-coupon .form-row {
  margin-bottom: 0.6rem;
}

/* Header Maison Aurouze */
.site-header.ma-header {
  width: 100%;
  margin: 0;
  display: block;
  gap: 0.9rem;
  padding: 1rem 0 0.85rem;
  border-bottom: 1px solid #e8efe9;
  background: #fff;
  position: relative;
  z-index: 50;
  min-height: 96px;
  overflow: visible;
}

.ma-header__top,
.ma-header__bottom {
  align-items: center;
  overflow: visible;
}

.ma-header__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2rem;
  width: min(100% - 2rem, var(--ma-container));
  margin-inline: auto;
}

.ma-header__logo img {
  max-height: 74px;
  width: auto;
}

.ma-header__logo .custom-logo-link,
.ma-header__logo .custom-logo {
  display: block;
}

.ma-header__logo-text {
  color: var(--ma-secondary);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.ma-header__top-right {
  display: grid;
  gap: 0.7rem;
}

.ma-header__phone {
  justify-self: end;
  color: var(--ma-secondary);
  font-weight: 600;
}

.ma-header__nav .ma-menu,
.ma-header__nuisibles .ma-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ma-header__nav .ma-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.2rem;
}

.ma-menu a {
  color: #1f1f1f;
  font-weight: 500;
}

.ma-menu .menu-item {
  position: relative;
}

.ma-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  padding: 0.55rem;
  margin: 0;
  list-style: none;
  border-radius: 10px;
  border: 1px solid #e2ece4;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 40;
}

.ma-menu .menu-item:hover > .sub-menu,
.ma-menu .menu-item:focus-within > .sub-menu {
  display: block;
}

.ma-menu .sub-menu a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 7px;
}

.ma-menu .sub-menu a:hover {
  background: #f2f8f3;
}

.ma-header__bottom {
  width: 100%;
  border-top: 1px solid #edf3ee;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background: #fff;
  z-index: 60;
}

.ma-header__bottom-inner {
  width: min(100% - 2rem, var(--ma-container));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.ma-header__bottom.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.ma-header__bottom-spacer {
  display: none;
}

body.ma-header-fixed .ma-header__bottom-spacer {
  display: block;
  height: var(--ma-header-bottom-height, 72px);
}

.ma-nuisibles-toggle {
  min-width: 170px;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #cfe0d3;
  background: #f4fbf5;
  color: var(--ma-secondary);
  font-weight: 600;
}

.ma-nuisibles-toggle:hover,
.ma-nuisibles-toggle:focus {
  background: var(--ma-secondary);
  color: #fff;
}

.ma-header__nuisibles {
  position: relative;
  overflow: visible;
}

.ma-nuisibles-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 760px;
  max-width: min(92vw, 760px);
  min-height: 360px;
  max-height: none;
  overflow: visible;
  border: 1px solid #e2ece4;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  padding: 0.6rem;
  display: none;
  z-index: 42;
}

.ma-nuisibles-panel.is-open {
  display: block;
}

.ma-header__nuisibles:hover .ma-nuisibles-panel {
  display: block;
}

.ma-tax-menu,
.ma-tax-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ma-tax-menu {
  position: relative;
  display: grid;
  gap: 0.18rem;
  width: 44%;
  min-height: 340px;
  padding: 0.2rem;
  border-right: 1px solid #e5ede7;
  overflow: visible;
}

.ma-tax-item {
  position: static;
}

.ma-tax-item > a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: #1f1f1f;
}

.ma-tax-item:hover > a {
  background: #f2f8f3;
  color: var(--ma-secondary);
}

.ma-tax-item.has-children > a::after {
  content: "›";
  float: right;
  color: #5f6e62;
}

.ma-tax-submenu {
  position: absolute;
  left: calc(100% + 1px);
  top: 0 !important;
  width: calc(128% - 1px);
  min-height: 0;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 0.55rem 0.7rem;
  display: none;
  z-index: 44;
}

.ma-tax-item:hover > .ma-tax-submenu,
.ma-tax-item:focus-within > .ma-tax-submenu {
  display: block;
}

.ma-tax-subitem a {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 7px;
}

.ma-tax-subitem a:hover {
  background: #f2f8f3;
}

.ma-header__search .woocommerce-product-search,
.ma-header__search form {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}

.ma-header__search {
  position: relative;
}

.ma-header__search input[type="search"] {
  width: 100%;
  border: 1px solid #cfe0d3;
  border-radius: 10px;
  background: #f9fcf9;
  padding: 0.72rem 0.85rem;
}

.ma-header__search-preview {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 70;
  border: 1px solid #dce8de;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  display: none;
  overflow: hidden;
}

.ma-header__search-preview.is-open {
  display: block;
}

.ma-header__search-list {
  display: grid;
}

.ma-header__search-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid #edf3ee;
}

.ma-header__search-item:last-child {
  border-bottom: 0;
}

.ma-header__search-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2ebe4;
}

.ma-header__search-meta strong {
  display: block;
  color: #1e3424;
  font-size: 0.9rem;
  line-height: 1.25;
}

.ma-header__search-meta em {
  display: block;
  margin-top: 0.1rem;
  color: var(--ma-secondary);
  font-style: normal;
  font-weight: 600;
  font-size: 0.86rem;
}

.ma-header__search-empty {
  padding: 0.7rem 0.75rem;
  color: #4f6554;
}

.ma-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ma-header__account {
  color: var(--ma-secondary);
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  border-radius: 9px;
}

.ma-header__cart {
  position: relative;
  padding-bottom: 2px;
}

.ma-header__cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  background: #f4fbf5;
  border: 1px solid #d5e5d8;
  color: var(--ma-secondary);
  font-weight: 600;
}

.ma-header__cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--ma-primary);
  color: #fff;
  font-size: 0.76rem;
}

.ma-header__mini-cart {
  position: absolute;
  right: 0;
  top: 100%;
  width: 320px;
  max-height: none;
  overflow: visible;
  border-radius: 12px;
  border: 1px solid #dce8de;
  background: #fff;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.15);
  padding: 0.9rem 0.9rem 0.7rem;
  display: none;
  z-index: 43;
}

.ma-header__mini-cart .woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ma-header__mini-cart .woocommerce-mini-cart .woocommerce-mini-cart-item:nth-child(n + 5) {
  display: none;
}

.ma-header__mini-cart .woocommerce-mini-cart-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid #e6eee8;
  border-radius: 10px;
  background: #ffffff;
}

.ma-header__mini-cart .woocommerce-mini-cart-item > a:not(.remove) {
  color: #253a29;
  font-weight: 500;
  line-height: 1.3;
}

.ma-header__mini-cart .woocommerce-mini-cart-item a img {
  width: 54px !important;
  height: 54px !important;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 !important;
}

.ma-header__mini-cart .remove {
  position: static !important;
  width: 24px;
  height: 24px;
  line-height: 22px !important;
  border-radius: 999px;
  background: #eef5ef;
  color: var(--ma-secondary) !important;
  text-align: center;
}

.ma-header__mini-cart .remove:hover {
  background: #f6dede;
  color: #9a1f1f !important;
}

.ma-header__mini-cart .quantity {
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #5b6b5d;
  font-size: 0.9rem;
}

.ma-header__mini-cart .woocommerce-mini-cart__total,
.ma-header__mini-cart .woocommerce-mini-cart__buttons {
  margin-top: 0.65rem;
}

.ma-header__mini-cart .ma-mini-cart-more {
  margin: 0.55rem 0 0.2rem;
  border: 1px solid #e2ebe4;
  border-radius: 9px;
  background: #f7fbf8;
  color: #2f4a35;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.45rem 0.55rem;
}

.ma-header__mini-cart .woocommerce-mini-cart__total {
  border-top: 1px solid #e6eee8;
  padding-top: 0.65rem;
  color: #1d2f21;
}

.ma-header__mini-cart .woocommerce-mini-cart__buttons .button {
  width: 100%;
  text-align: center;
  border-radius: 9px !important;
  font-weight: 600 !important;
  padding: 0.65rem 0.75rem !important;
}

.ma-header__cart:hover .ma-header__mini-cart,
.ma-header__cart:focus-within .ma-header__mini-cart {
  display: block;
}

.ma-header__mobile-toggle,
.ma-header__mobile-panel {
  display: none;
}

.ma-header__mobile-toggle {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid #d5e5d8;
  background: #f4fbf5;
  padding: 0.45rem;
}

.ma-header__mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ma-secondary);
}

@media (max-width: 1024px) {
  .site-header.ma-header {
    position: sticky !important;
    top: 0;
    z-index: 10020;
    padding: 0.65rem 0;
    min-height: 0;
    box-shadow: 0 6px 18px rgba(7, 24, 12, 0.08);
    overflow: visible;
  }

  html,
  body {
    overflow-x: clip;
  }

  .ma-header__top {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    width: min(100% - 1rem, var(--ma-container));
    max-width: 100%;
    margin-inline: auto;
  }

  .ma-header__top > * {
    min-width: 0;
  }

  .ma-header__mobile-toggle {
    display: inline-block;
    background: var(--ma-secondary);
    border-color: var(--ma-secondary);
    color: #fff;
  }

  .ma-header__mobile-toggle span {
    background: #fff;
  }

  .ma-header__mobile-toggle:hover,
  .ma-header__mobile-toggle:focus,
  .ma-header__mobile-toggle:active,
  .ma-header__mobile-toggle[aria-expanded="true"] {
    background: #0f2f16;
    border-color: #0f2f16;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(19, 60, 25, 0.2);
  }

  .ma-header__mobile-toggle:focus-visible {
    outline: 0;
  }

  .ma-header__top-right,
  .ma-header__bottom {
    display: none;
  }

  body.ma-header-fixed .ma-header__bottom-spacer {
    display: none;
  }

  .ma-header__logo {
    justify-self: center;
    min-width: 0;
  }

  .ma-header__logo img {
    max-height: 56px;
    max-width: 100%;
  }

  .ma-header__mobile-panel {
    display: block;
    position: absolute;
    top: calc(100% + 6px);
    left: 0.75rem;
    right: 0.75rem;
    border: 1px solid #dce8de;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.11);
    max-height: min(72vh, 560px);
    overflow: auto;
  }

  .ma-header__mobile-panel[hidden] {
    display: none;
  }

  .ma-header__mobile-inner {
    padding: 0.9rem;
    display: grid;
    gap: 0.9rem;
  }

  .ma-header__mobile-inner .ma-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
  }

  .ma-header__mobile-inner .ma-menu a {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: #f7fbf8;
  }

  .ma-header__mobile-inner .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: 1px solid #e4eee7;
    border-radius: 8px;
    background: #f8fcf9;
    margin-top: 0.3rem;
    padding: 0.2rem 0 0.2rem 0.6rem;
  }

  .ma-header__mobile-inner .menu-item.is-open > .sub-menu {
    display: block;
  }

  .ma-header__mobile-inner .menu-item.menu-item-has-children > a::after,
  .ma-header__mobile-inner .menu-item.page_item_has_children > a::after {
    content: "▾";
    float: right;
    color: #2f5840;
    transition: transform 0.2s ease;
  }

  .ma-header__mobile-inner .menu-item.is-open > a::after {
    transform: rotate(180deg);
  }

  .ma-header__mobile-nuisibles .ma-tax-submenu {
    position: static;
    display: none;
    min-width: 0;
    width: auto;
    min-height: 0;
    box-shadow: none;
    border: 1px solid #e4eee7;
    border-radius: 8px;
    background: #f8fcf9;
    margin: 0.2rem 0 0.2rem 0.6rem;
    padding: 0.25rem 0.25rem 0.25rem 0.45rem;
    max-height: 42vh;
    overflow: auto;
  }

  .ma-header__mobile-nuisibles .ma-tax-item.is-open > .ma-tax-submenu {
    display: block;
  }

  .ma-header__mobile-nuisibles .ma-tax-item.has-children > a::after {
    content: "▾";
    float: right;
    color: #2f5840;
    transition: transform 0.2s ease;
  }

  .ma-header__mobile-nuisibles .ma-tax-item.is-open > a::after {
    transform: rotate(180deg);
  }
}

body .site-header.ma-header {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.site-footer.aurouze-footer {
  width: 100%;
  margin: 0;
  border-top: 0;
  padding: 0;
  background: #1c3a25;
  color: #e2e9e4;
}

.aurouze-footer-main {
  padding: 2.2rem 0 1.6rem;
}

.aurouze-footer-container {
  width: min(100% - 2rem, var(--ma-container));
  margin-inline: auto;
}

.aurouze-footer-main .aurouze-footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.4rem;
}

.aurouze-footer-title {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: 1.35rem;
}

.aurouze-footer-description,
.aurouze-footer p,
.aurouze-footer li {
  color: #e2e9e4;
}

.aurouze-footer a {
  color: #f2f7f3;
}

.aurouze-footer a:hover {
  color: #b8dfbf;
}

.aurouze-footer-social-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.aurouze-footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 500;
}

.aurouze-footer-social-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.aurouze-footer-social-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.aurouze-footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.aurouze-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 0;
}

.aurouze-footer-bottom .aurouze-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.aurouze-footer-legal {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .aurouze-footer-main .aurouze-footer-container {
    grid-template-columns: 1fr;
  }
}

/* Elementor mini-cart redesign */
.elementor-menu-cart__container .elementor-menu-cart__main {
  border-radius: 14px;
  border: 1px solid #dce8de;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.elementor-menu-cart__container .widget_shopping_cart_content {
  padding: 0.9rem;
}

.elementor-menu-cart__products {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  max-height: none !important;
  overflow: visible !important;
}

.elementor-menu-cart__products .elementor-menu-cart__product:nth-child(n + 5) {
  display: none !important;
}

.elementor-menu-cart__container .widget_shopping_cart_content {
  max-height: none !important;
  overflow: visible !important;
}

.elementor-menu-cart__product {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  grid-template-areas:
    "img name remove"
    "img price remove";
  gap: 0.35rem 0.6rem;
  align-items: center;
  border: 1px solid #e6eee8;
  border-radius: 10px;
  background: #fbfdfb;
  padding: 0.5rem;
}

.elementor-menu-cart__product-image {
  grid-area: img;
}

.elementor-menu-cart__product-image img {
  width: 58px !important;
  height: 58px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2ebe4;
}

.elementor-menu-cart__product-name {
  grid-area: name;
  margin: 0 !important;
}

.elementor-menu-cart__product-name a {
  color: #203425 !important;
  font-weight: 600;
  line-height: 1.3;
  font-size: 0.94rem;
}

.elementor-menu-cart__product-price {
  grid-area: price;
  margin: 0 !important;
  color: #58705d;
  font-size: 0.9rem;
}

.elementor-menu-cart__product-price .amount {
  color: #1b3b24;
  font-weight: 700;
}

.elementor-menu-cart__product-remove {
  grid-area: remove;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
}

.elementor-menu-cart__product-remove .elementor_remove_from_cart_button,
.elementor-menu-cart__product-remove .remove_from_cart_button {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 999px;
  background: #eef5ef;
  border: 0;
  display: inline-grid;
  place-items: center;
  text-indent: -9999px;
  overflow: hidden;
  position: relative;
}

/* Elementor adds two remove anchors: keep only one */
.elementor-menu-cart__product-remove .remove_from_cart_button {
  display: none !important;
}

.elementor-menu-cart__product-remove .elementor_remove_from_cart_button::before,
.elementor-menu-cart__product-remove .remove_from_cart_button::before {
  content: "×";
  text-indent: 0;
  font-size: 18px;
  line-height: 1;
  color: #2c4d33;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.elementor-menu-cart__product-remove .elementor_remove_from_cart_button:hover,
.elementor-menu-cart__product-remove .remove_from_cart_button:hover {
  background: #f6dede;
}

.elementor-menu-cart__product-remove .elementor_remove_from_cart_button:hover::before,
.elementor-menu-cart__product-remove .remove_from_cart_button:hover::before {
  color: #9a1f1f;
}

.elementor-menu-cart__subtotal {
  margin-top: 0.75rem;
  border-top: 1px solid #e6eee8;
  padding-top: 0.7rem;
  color: #193220;
}

.elementor-menu-cart__footer-buttons,
.elementor-menu-cart__buttons {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.5rem;
}

.elementor-menu-cart__footer-buttons .elementor-button,
.elementor-menu-cart__buttons .elementor-button,
.elementor-menu-cart__footer-buttons a.elementor-button,
.elementor-menu-cart__buttons a.elementor-button {
  width: 100%;
  justify-content: center;
  border-radius: 10px !important;
  font-weight: 600 !important;
  background: var(--ma-primary) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0.7rem 0.9rem !important;
}

.elementor-menu-cart__footer-buttons .elementor-button:hover,
.elementor-menu-cart__buttons .elementor-button:hover,
.elementor-menu-cart__footer-buttons a.elementor-button:hover,
.elementor-menu-cart__buttons a.elementor-button:hover {
  background: var(--ma-secondary) !important;
}

/* 404 page */
.ma-404 {
  position: relative;
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  background: #102316;
  background-image: url("assets/img/404.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.ma-404__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 24, 15, 0.78) 0%, rgba(20, 45, 29, 0.58) 100%);
}

.ma-404__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  text-align: center;
  color: #fff;
}

.ma-404__eyebrow {
  margin: 0 0 0.35rem;
  color: #d6ebd9;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 600;
}

.ma-404__title {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.ma-404__cta {
  display: inline-block;
  border-radius: 10px;
  background: var(--ma-primary);
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.8rem 1.15rem;
  margin-bottom: 1rem;
}

.ma-404__cta:hover {
  background: var(--ma-secondary);
}

.ma-404__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
}

.ma-404__links li::before {
  content: "›";
  color: #d6ebd9;
  margin-right: 0.35rem;
}

.ma-404__links a {
  color: #f4faf5 !important;
  font-weight: 500;
}

.ma-404__links a:hover {
  color: #b8dfbf !important;
}

/* WooCommerce - My Account page */
.woocommerce-account .woocommerce {
  width: min(100% - 2rem, var(--ma-container));
  margin: 1.3rem auto 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.15rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  border: 1px solid #dbe8de;
  border-radius: 14px;
  background: #f7fbf8;
  display: grid;
  gap: 0.35rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.7rem 0.75rem;
  border-radius: 9px;
  color: #1f3424;
  font-weight: 500;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--ma-primary);
  color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
  border: 1px solid #dbe8de;
  border-radius: 14px;
  background: #fff;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  color: var(--ma-secondary);
  margin-bottom: 0.7rem;
}

.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-error {
  margin-bottom: 1rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info {
  border-radius: 12px !important;
  border: 1px solid #d8e8dc !important;
  border-left: 4px solid #2b7f8b !important;
  background: #f3fbfd !important;
  color: var(--ma-secondary) !important;
  box-shadow: 0 8px 20px rgba(19, 60, 25, 0.08);
  padding: 0.9rem 1rem 0.9rem 2.7rem !important;
}

.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info::before {
  color: #2b7f8b !important;
  left: 0.95rem !important;
  top: 50% !important;
  transform: translateY(-50%);
}

/* Single product custom page */
.ma-product-wrap {
  width: min(100% - 2rem, var(--ma-container));
  margin: 1rem auto 2rem;
}

.ma-product-page {
  display: grid;
  gap: 1rem;
}

.ma-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  gap: 1.1rem;
}

.ma-product-gallery,
.ma-product-summary,
.ma-product-section,
.ma-product-service {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: #fff;
}

.ma-product-gallery {
  padding: 0.8rem;
}

.ma-product-gallery__main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fcf9;
  min-height: 380px;
}

.ma-product-gallery__slide {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.ma-product-gallery__slide.is-active {
  display: flex;
}

.ma-product-gallery__slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ma-product-gallery__video-btn {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 3;
  border: 1px solid #cfe1d3;
  border-radius: 999px;
  background: #edf6ef;
  color: #1b4a28;
  font-weight: 700;
  font-size: 0.83rem;
  padding: 0.42rem 0.7rem;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ma-product-gallery__video-btn:hover,
.ma-product-gallery__video-btn:focus {
  background: #dfeee3;
  border-color: #bed5c5;
  transform: translateY(-1px);
}

.ma-product-gallery__video-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 106, 41, 0.2);
}

.ma-product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.ma-product-gallery__thumb {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  border: 1px solid #d8e6db;
  border-radius: 10px;
  background: #fff;
  padding: 0.2rem;
  overflow: hidden;
  line-height: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ma-product-gallery__thumb:hover,
.ma-product-gallery__thumb:focus-visible {
  border-color: #2f7d3d;
  box-shadow: 0 0 0 2px rgba(47, 125, 61, 0.16);
  transform: translateY(-1px);
}

.ma-product-gallery__thumb img {
  width: 100%;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.ma-product-gallery__thumb.is-active {
  border-color: var(--ma-primary);
  box-shadow: 0 0 0 2px rgba(30, 106, 41, 0.12);
}

.ma-product-pests {
  margin-top: 0.8rem;
  padding: 0.75rem;
  border: 1px solid #e1ebe3;
  border-radius: 12px;
  background: #fbfdfb;
}

.ma-product-pests h3 {
  margin: 0 0 0.5rem;
  color: var(--ma-secondary);
  font-size: 1.05rem;
}

.ma-product-pests__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ma-product-pests__item {
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  background: #edf6ef;
  color: var(--ma-secondary);
  font-weight: 600;
  font-size: 0.82rem;
}

.ma-product-summary {
  padding: 1rem 1.05rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.ma-product-summary__back {
  margin-bottom: 0.55rem;
}

.ma-product-summary__cats {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.ma-cat-pill {
  border-radius: 999px;
  background: #edf6ef;
  color: var(--ma-secondary);
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.ma-product-summary__title {
  margin: 0 0 0.55rem;
  color: var(--ma-secondary);
}

.ma-product-summary__price {
  font-size: 1.45rem;
  color: #173420;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.ma-product-summary__excerpt {
  margin-bottom: 0.75rem;
  color: #2f4636;
}

.ma-product-summary__excerpt p {
  color: #2f4636;
}

.ma-product-summary__hook {
  margin: 0 0 0.55rem;
  color: #20402a;
  font-weight: 600;
  font-size: 0.98rem;
}

.ma-product-summary__brand {
  margin: 0 0 0.5rem;
  color: #2e4635;
  font-size: 0.92rem;
}

.ma-product-summary__infestation {
  margin: 0 0 0.6rem;
}

.ma-product-summary__infestation-label {
  margin: 0 0 0.3rem;
  color: #2e4635;
  font-size: 0.9rem;
}

.ma-product-summary__infestation-track {
  width: 100%;
  height: 12px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #33a852 0%, #f1c40f 50%, #e3342f 100%);
  position: relative;
  overflow: visible;
}

.ma-product-summary__infestation-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.18);
}

.ma-product-summary__infestation-marker {
  position: absolute;
  top: -12px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #16331f;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.28));
  z-index: 3;
}

.ma-product-summary__infestation-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16331f;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.ma-product-summary__zones {
  margin: 0 0 0.7rem;
  display: grid;
  gap: 0.3rem;
}

.ma-product-summary__zones strong {
  color: #2e4635;
  font-size: 0.9rem;
}

.ma-product-summary__zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ma-product-summary__zone-pill {
  border-radius: 999px;
  background: #edf6ef;
  color: #1f3424;
  padding: 0.24rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.ma-product-summary__stock {
  margin-bottom: 0.7rem;
}

.ma-product-hazards {
  margin: 0.35rem 0 0.75rem;
  padding: 0.5rem;
  border: 1px solid #e1ebe3;
  border-radius: 12px;
  background: #fbfdfb;
}

.ma-product-hazards__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
}

.ma-product-hazards--below-desc {
  margin-top: 0.9rem;
}

.ma-product-hazards__legend {
  margin: 0 0 0.45rem;
  color: #284333;
  font-weight: 700;
  font-size: 0.92rem;
}

.ma-product-hazards__notice {
  margin: 0.55rem 0 0;
  color: #3f5947;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ma-product-hazards__item {
  position: relative;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dbe8de;
  border-radius: 10px;
  background: #fff;
  padding: 0.4rem;
}

.ma-product-hazards__item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.ma-product-hazards__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: min(290px, 78vw);
  border: 1px solid #d7e4da;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
  padding: 0.55rem 0.6rem;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 8;
}

.ma-product-hazards__tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
  border-right: 1px solid #d7e4da;
  border-bottom: 1px solid #d7e4da;
}

.ma-product-hazards__tooltip strong {
  display: block;
  color: #1f3424;
  margin-bottom: 0.18rem;
  font-size: 0.9rem;
  line-height: 1.2;
}

.ma-product-hazards__tooltip em {
  display: block;
  font-style: normal;
  color: #405946;
  font-size: 0.8rem;
  line-height: 1.35;
}

.ma-product-hazards__item:hover .ma-product-hazards__tooltip {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ma-product-summary__cart form.cart {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.ma-product-summary__cart .single_add_to_cart_button {
  width: auto;
  min-width: 240px;
}

.single-product .ma-product-summary__cart .quantity {
  display: inline-flex !important;
  width: auto !important;
  max-width: fit-content;
  justify-content: flex-start;
  margin: 0;
}

.single-product .ma-product-summary__cart .quantity .qty {
  width: 54px;
  min-width: 54px;
  text-align: center;
  color: #16331f;
  font-weight: 700;
}

.single-product .ma-product-summary__cart .variations {
  width: 100%;
  margin-bottom: 0.55rem;
  border: 1px solid #dfebe2;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 0.65rem;
}

.single-product .ma-product-summary__cart .variations tr {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.single-product .ma-product-summary__cart .variations tr:last-child {
  margin-bottom: 0;
}

.single-product .ma-product-summary__cart .variations td,
.single-product .ma-product-summary__cart .variations th {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}

.single-product .ma-product-summary__cart .variations label {
  color: #2e4635;
  font-weight: 600;
  font-size: 0.92rem;
}

.single-product .ma-product-summary__cart .variations select {
  width: 100%;
  border: 1px solid #cfe0d3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1f3827;
  min-height: 44px;
  padding: 0.6rem 0.75rem !important;
}

.single-product .ma-product-summary__cart .variations select:focus {
  border-color: var(--ma-primary) !important;
  box-shadow: 0 0 0 3px rgba(30, 106, 41, 0.15);
  outline: none;
}

.single-product .ma-product-summary__cart .variations .reset_variations {
  display: inline-flex;
  margin-top: 0.3rem;
  color: #315538;
  font-weight: 600;
  text-decoration: underline;
}

.ma-product-summary__video-link {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.58rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #cfe1d3;
  background: #edf6ef;
  color: #1b4a28;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ma-product-summary__video-link::before {
  content: "▶";
  font-size: 0.75rem;
  line-height: 1;
}

.ma-product-summary__video-link:hover,
.ma-product-summary__video-link:focus {
  background: #dfeee3;
  border-color: #bed5c5;
  transform: translateY(-1px);
}

.ma-product-summary__video-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 106, 41, 0.2);
}

.ma-mobile-atc {
  display: none;
}

.ma-product-section {
  padding: 1rem 1.05rem;
}

.ma-product-section h2,
.ma-product-section h3 {
  margin: 0 0 0.65rem;
  color: var(--ma-secondary);
}

.ma-product-desc-content,
.ma-product-desc-content p,
.ma-product-section p {
  color: #2f4636;
}

.ma-product-infos {
  border: 1px solid #e1ebe3;
  border-radius: 12px;
  overflow: hidden;
}

.ma-product-infos__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 0.75rem;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid #ebf1ec;
}

.ma-product-infos__row:last-child {
  border-bottom: 0;
}

.ma-product-infos__row span {
  color: #4f6755;
}

.ma-product-infos__row strong {
  color: #1a3322;
}

.ma-product-docs {
  display: grid;
  gap: 0.55rem;
}

.ma-product-docs__item {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 10px;
  background: #edf6ef;
  color: var(--ma-secondary);
  font-weight: 600;
  padding: 0.6rem 0.8rem;
}

.ma-product-docs__item:hover {
  background: #dcebe0;
}

.ma-product-video {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e1ebe3;
}

.ma-product-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.ma-product-video-modal {
  position: fixed;
  inset: 0;
  z-index: 20160;
}

.ma-product-video-modal[hidden] {
  display: none;
}

.ma-product-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 11, 0.72);
}

.ma-product-video-modal__dialog {
  position: relative;
  width: min(92vw, 1100px);
  margin: min(7vh, 56px) auto 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dbe8de;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  padding: 0.8rem;
}

.ma-product-video-modal__frame {
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid #e3ece5;
  background: #0f1f14;
}

.ma-product-video-modal__frame iframe {
  width: 100%;
  height: min(78vh, 680px);
  display: block;
}

.ma-product-video-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8e6db;
  background: #fff;
  color: #1f3424;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

.ma-product-faq {
  display: grid;
  gap: 0.45rem;
}

.ma-product-faq__item {
  border: 1px solid #dfe9e2;
  border-radius: 10px;
  background: #fbfdfb;
  padding: 0.55rem 0.65rem;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ma-product-faq__item[open] {
  border-color: #cfe0d3;
  box-shadow: 0 8px 20px rgba(19, 60, 25, 0.08);
}

.ma-product-faq__item summary {
  cursor: pointer;
  color: #1f3424;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.4rem;
}

.ma-product-faq__item summary::-webkit-details-marker {
  display: none;
}

.ma-product-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #1f3424;
  font-weight: 700;
}

.ma-product-faq__item[open] summary::after {
  content: "−";
}

.ma-product-faq__answer {
  margin-top: 0;
  color: #2f4636;
  overflow: clip;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.3s ease, opacity 0.22s ease, transform 0.22s ease, margin-top 0.22s ease;
}

.ma-product-faq__item[open] .ma-product-faq__answer {
  margin-top: 0.45rem;
  opacity: 1;
  transform: translateY(0);
}

.ma-product-section--reviews #reviews {
  margin-top: 0.6rem;
}

.ma-product-section--reviews .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ma-product-section--reviews .comment_container {
  border: 1px solid #e1ebe3;
  border-radius: 10px;
  background: #fbfdfb;
  padding: 0.65rem;
}

.ma-product-section--reviews .comment-form {
  display: grid;
  gap: 0.55rem;
}

.ma-product-section--reviews .comment-form input,
.ma-product-section--reviews .comment-form textarea,
.ma-product-section--reviews .comment-form select {
  border: 1px solid #cfe0d3;
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem 0.75rem;
}

.single-product .ma-product-section--complementary ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 !important;
}

.single-product .ma-product-section--complementary ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.single-product .ma-product-section--complementary ul.products::before,
.single-product .ma-product-section--complementary ul.products::after {
  content: none !important;
  display: none !important;
}

/* Category pages */
.ma-cat-page {
  width: min(100% - 2rem, var(--ma-container));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.ma-shop-cats,
.ma-shop-collection {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: #fff;
  padding: 1rem 1.1rem;
}

.ma-shop-cats__head,
.ma-shop-collection__head {
  margin-bottom: 0.7rem;
}

.ma-shop-cats__head h2,
.ma-shop-collection__head h2 {
  margin: 0 0 0.2rem;
  color: var(--ma-secondary);
}

.ma-shop-cats__head p {
  margin: 0;
}

.ma-shop-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.ma-shop-cats__item {
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  background: #fbfdfb;
  overflow: hidden;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ma-shop-cats__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(19, 60, 25, 0.1);
}

.ma-shop-cats__img img {
  width: 68px;
  height: 68px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid #e2ebe4;
}

.ma-shop-cats__meta {
  display: grid;
  gap: 0.15rem;
}

.ma-shop-cats__meta strong {
  color: #1d3624;
  line-height: 1.2;
  font-size: 0.92rem;
}

.ma-shop-cats__meta em {
  font-style: normal;
  color: #5b705f;
  font-size: 0.82rem;
}

.ma-shop-collection ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 !important;
}

.ma-shop-collection ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  padding: 0.65rem;
  background: #fff;
}

.ma-shop-collection ul.products::before,
.ma-shop-collection ul.products::after {
  content: none !important;
  display: none !important;
}

.ma-shop-collection ul.products li.product .price {
  color: var(--ma-secondary) !important;
  font-weight: 700;
}

.ma-shop-collection ul.products li.product .price .amount {
  color: #173420 !important;
}

.ma-shop-collection ul.products li.product .button,
.ma-shop-collection ul.products li.product a.button,
.ma-shop-collection ul.products li.product .added_to_cart {
  margin-top: auto !important;
}

.ma-cat-header {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: linear-gradient(120deg, #f5fbf6 0%, #fff 100%);
}

.ma-pathbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.45rem;
}

.ma-back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #d4e4d8;
  background: #f6fbf7;
  color: #1e5f2d;
  font-weight: 600;
  font-size: 0.83rem;
  line-height: 1;
}

.ma-back-link:hover {
  background: #edf6ef;
}

.ma-pathbar .woocommerce-breadcrumb {
  margin: 0;
  font-size: 0.86rem;
}

.ma-pathbar .woocommerce-breadcrumb a,
.ma-pathbar .woocommerce-breadcrumb span {
  color: #335542;
}

.ma-cat-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
  align-items: center;
}

.ma-cat-header__visual img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dfe9e2;
}

.ma-cat-title {
  margin: 0.25rem 0 0.35rem;
  color: var(--ma-secondary);
}

.ma-cat-desc {
  margin: 0;
}

.ma-subcats {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.ma-subcats h2 {
  margin: 0 0 0.65rem;
  color: var(--ma-secondary);
}

.ma-subcats-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 180px);
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
}

.ma-subcats-grid::-webkit-scrollbar {
  display: none;
}

.ma-subcats-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.ma-subcats-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.ma-subcats-layout.has-video {
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: stretch;
}

.ma-subcats-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8e6db;
  background: #fff;
  color: #1f3424;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.ma-subcats-nav:hover {
  background: var(--ma-primary);
  border-color: var(--ma-primary);
  color: #fff;
}

.ma-subcats-video-teaser {
  border: 1px solid #dfebe2;
  border-radius: 12px;
  background: #fbfdfb;
  overflow: hidden;
  align-self: stretch;
}

.ma-subcats-video-teaser__button {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  padding: 0;
  text-align: left;
}

.ma-subcats-video-teaser:hover {
  border-color: #cfe0d3;
  box-shadow: 0 10px 24px rgba(19, 60, 25, 0.1);
}

.ma-subcats-video-teaser__button:hover,
.ma-subcats-video-teaser__button:focus,
.ma-subcats-video-teaser__button:focus-visible {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  outline: none;
}

.ma-subcats-video-teaser__button:hover .ma-subcats-video-teaser__play,
.ma-subcats-video-teaser__button:focus-visible .ma-subcats-video-teaser__play {
  background: #1e6a29;
}

.ma-subcats-video-teaser__thumb {
  position: relative;
  display: block;
}

.ma-subcats-video-teaser__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.ma-subcats-video-teaser__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(20, 49, 30, 0.9);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.ma-subcats-video-teaser__meta {
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem 0.75rem;
}

.ma-subcats-video-teaser__meta strong {
  color: #1d3624;
  font-size: 0.92rem;
  line-height: 1.25;
}

.ma-subcats-video-teaser__meta em {
  font-style: normal;
  color: #5b705f;
  font-size: 0.82rem;
}

.ma-subcat-card {
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  background: #fbfdfb;
  overflow: hidden;
  display: grid;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.ma-subcat-card__img img {
  width: 100%;
  height: 86px;
  object-fit: cover;
}

.ma-subcat-card__name {
  padding: 0.5rem 0.55rem;
  color: #1d3624;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.25;
}

.ma-cat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  align-items: start;
}

.ma-cat-media {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: #fff;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
}

.ma-cat-media__gallery {
  display: grid;
  gap: 0.45rem;
}

.ma-cat-media__slides {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2ebe4;
  background: #f9fcf9;
}

.ma-cat-media__slide {
  display: none;
}

.ma-cat-media__slide.is-active {
  display: block;
}

.ma-cat-media__slide img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.ma-cat-media__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}

.ma-cat-media__thumb {
  border: 1px solid #d8e6db;
  border-radius: 9px;
  padding: 0.15rem;
  background: #fff;
}

.ma-cat-media__thumb img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 7px;
}

.ma-cat-media__thumb.is-active {
  border-color: var(--ma-primary);
}

.ma-cat-media__video {
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  overflow: hidden;
}

.ma-cat-media__video iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
}

.ma-cat-filters,
.ma-cat-content {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: #fff;
}

.ma-cat-filters {
  padding: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.ma-cat-filters h3 {
  margin: 0 0 0.2rem;
  color: var(--ma-secondary);
}

.ma-cat-filters label {
  display: grid;
  gap: 0.32rem;
}

.ma-cat-filters label > span {
  color: #425848;
  font-weight: 500;
  font-size: 0.92rem;
}

.ma-cat-filters input[type="text"],
.ma-cat-filters select {
  border: 1px solid #cfe0d3;
  border-radius: 9px;
  background: #fff;
  padding: 0.65rem 0.72rem;
}

.ma-filter-range {
  border: 1px solid #dbe8de;
  border-radius: 10px;
  background: #fbfdfb;
  padding: 0.55rem 0.6rem 0.45rem;
  display: grid;
  gap: 0.35rem;
}

.ma-filter-range__values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #1f3424;
  font-size: 0.86rem;
}

.ma-filter-range__values strong {
  color: #173420;
}

.ma-filter-range input[type="range"] {
  width: 100%;
  accent-color: #2f7d3d;
}

.ma-cat-filters__checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
}

.ma-cat-filters__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ma-cat-filters-toggle,
.ma-cat-filters-overlay,
.ma-cat-filters__mobile-head {
  display: none;
}

.ma-cat-content {
  padding: 0.95rem;
}

.ma-cat-content ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 !important;
}

.ma-cat-content ul.products::before,
.ma-cat-content ul.products::after {
  content: none !important;
  display: none !important;
}

.ma-cat-count {
  margin: 0 0 0.65rem;
  color: #425848;
  font-weight: 500;
}

.ma-cat-empty-notice {
  border: 1px solid #d8e8dc;
  border-left: 4px solid var(--ma-primary);
  border-radius: 12px;
  background: #f6fbf7;
  color: var(--ma-secondary);
  box-shadow: 0 8px 20px rgba(19, 60, 25, 0.08);
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
}

.ma-cat-empty-notice p {
  margin: 0;
}

.ma-cat-empty-reco {
  margin-top: 0.25rem;
}

.ma-cat-content ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  padding: 0.65rem;
  background: #fff;
}

.ma-cat-page mark,
.ma-cat-page .price mark,
.ma-cat-page .woocommerce-loop-product__title mark,
mark {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
}

.ma-cat-content ul.products li.product .woocommerce-loop-product__title {
  color: #1d3624;
  line-height: 1.3;
}

.ma-cat-content ul.products li.product .price {
  color: var(--ma-secondary) !important;
  font-weight: 700;
  margin: 0.35rem 0 0.55rem !important;
}

.ma-cat-content ul.products li.product .price .amount {
  color: #173420 !important;
}

.ma-cat-content ul.products li.product .button,
.ma-cat-content ul.products li.product a.button,
.ma-cat-content ul.products li.product .added_to_cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto !important;
  min-height: 38px;
  border-radius: 10px !important;
  padding: 0.55rem 0.7rem !important;
  font-size: 0.88rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-cat-pagination {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.ma-cat-pagination nav.woocommerce-pagination {
  margin: 0;
  border: 1px solid #dce8de;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(19, 60, 25, 0.08);
  padding: 0.2rem;
}

.ma-cat-pagination nav.woocommerce-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.ma-cat-pagination nav.woocommerce-pagination ul.page-numbers li {
  margin: 0;
  padding: 0;
  border: 0 !important;
  float: none !important;
}

.ma-cat-pagination nav.woocommerce-pagination ul.page-numbers a,
.ma-cat-pagination nav.woocommerce-pagination ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #1f3424;
  background: transparent;
  font-weight: 600;
  line-height: 1;
  padding: 0 0.5rem;
}

.ma-cat-pagination nav.woocommerce-pagination ul.page-numbers a:hover {
  background: #edf6ef;
  border-color: #d8e6db;
  color: #183320;
}

.ma-cat-pagination nav.woocommerce-pagination ul.page-numbers .current {
  background: var(--ma-primary);
  border-color: var(--ma-primary);
  color: #fff;
}

.ma-cat-pagination nav.woocommerce-pagination ul.page-numbers .next,
.ma-cat-pagination nav.woocommerce-pagination ul.page-numbers .prev {
  min-width: 34px;
  font-size: 1rem;
}

body.ma-cat-loading .ma-cat-pagination::after {
  content: "Chargement des produits...";
  display: block;
  margin-top: 0.6rem;
  color: #4a6352;
  font-weight: 500;
}

.ma-cat-video-modal {
  position: fixed;
  inset: 0;
  z-index: 20050;
}

.ma-cat-video-modal[hidden] {
  display: none;
}

.ma-cat-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 17, 11, 0.72);
}

.ma-cat-video-modal__dialog {
  position: relative;
  width: min(92vw, 1100px);
  margin: min(7vh, 56px) auto 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dbe8de;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  padding: 0.8rem;
}

.ma-cat-video-modal__frame {
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid #e3ece5;
  background: #0f1f14;
}

.ma-cat-video-modal__frame iframe {
  width: 100%;
  height: min(78vh, 680px);
  display: block;
}

.ma-cat-video-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8e6db;
  background: #fff;
  color: #1f3424;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

body.ma-video-modal-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .ma-shop-collection ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ma-cat-content ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ma-shop-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-cat-header__inner {
    grid-template-columns: 1fr;
  }

  .ma-cat-header__visual img {
    width: 100%;
    height: 160px;
  }

  .ma-subcats-grid {
    grid-auto-columns: minmax(145px, 170px);
  }

  .ma-cat-media {
    grid-template-columns: 1fr;
  }

  .ma-cat-layout {
    grid-template-columns: 1fr;
  }

  .ma-cat-filters-toggle {
    position: fixed !important;
    left: 0.8rem;
    right: auto !important;
    top: auto;
    bottom: calc(1.35rem + env(safe-area-inset-bottom));
    z-index: 2200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #cfe0d3;
    background: var(--ma-secondary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(19, 60, 25, 0.28);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
  }

  .ma-cat-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 360px);
    z-index: 2300;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    padding: 0.7rem;
    overflow: auto;
    background: #fff;
    border-right: 1px solid #dbe8de;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
  }

  .ma-cat-sidebar.is-open {
    transform: translateX(0);
  }

  .ma-cat-filters {
    height: 100%;
    align-content: start;
  }

  .ma-cat-filters-overlay {
    position: fixed;
    inset: 0;
    z-index: 2250;
    display: block;
    background: rgba(8, 20, 12, 0.45);
  }

  .ma-cat-filters-overlay[hidden] {
    display: none;
  }

  .ma-cat-filters__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
  }

  .ma-cat-filters__mobile-head h3 {
    margin: 0;
  }

  .ma-cat-filters > h3 {
    display: none;
  }

  .ma-cat-filters__close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d8e6db;
    background: #fff;
    color: #1f3424;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
  }

  .ma-subcats-layout.has-video {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.single-product {
    padding-bottom: 92px;
  }

  .single-product .ma-mobile-atc {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 0.55rem 0.7rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #dce9df;
    box-shadow: 0 -8px 20px rgba(12, 30, 19, 0.12);
    backdrop-filter: blur(2px);
  }

  .single-product .ma-mobile-atc__inner {
    width: min(100%, var(--ma-container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: center;
  }

  .single-product .ma-mobile-atc__meta {
    display: grid;
    gap: 0.1rem;
    line-height: 1.15;
  }

  .single-product .ma-mobile-atc__meta small {
    color: #5b7360;
    font-size: 0.78rem;
    font-weight: 600;
  }

  .single-product .ma-mobile-atc__meta strong {
    color: #16331f;
    font-size: 1rem;
  }

  .single-product .ma-mobile-atc__btn {
    min-width: 175px;
    margin: 0 !important;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .ma-shop-cats__grid {
    grid-template-columns: 1fr;
  }

  .ma-cat-content ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-cat-filters-toggle {
    bottom: calc(1.2rem + env(safe-area-inset-bottom));
    left: 0.9rem;
    right: auto !important;
  }

  .ma-subcats-row {
    grid-template-columns: 1fr;
  }

  .ma-subcats-nav {
    display: none;
  }

  .ma-cat-video-modal__dialog {
    width: min(96vw, 1100px);
    margin-top: 11vh;
    padding: 0.6rem;
  }
}

/* Home masterclass shortcode */
.ma-home-masterclass {
  width: min(100% - 2rem, var(--ma-container));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.ma-home-masterclass__hero,
.ma-home-masterclass__section {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: #fff;
}

.ma-home-masterclass__hero {
  padding: 1.4rem 1.3rem;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.ma-home-masterclass__hero .ma-home-masterclass__eyebrow,
.ma-home-masterclass__hero h1,
.ma-home-masterclass__hero p {
  color: #fff;
}

.ma-home-masterclass__hero h1 {
  margin-bottom: 0.45rem;
}

.ma-hero-rotator {
  display: inline-block;
  margin-left: 0.25rem;
  color: #d7f1dc;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ma-hero-rotator.is-switching {
  opacity: 0.15;
  transform: translateY(3px);
}

.ma-home-masterclass__hero p {
  max-width: 820px;
}

.ma-home-masterclass__cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.ma-home-masterclass__cta-card {
  display: inline-grid !important;
  grid-template-columns: 44px 1fr;
  gap: 0.55rem;
  align-items: center;
  min-width: 260px;
  border-radius: 12px !important;
  padding: 0.45rem 0.65rem !important;
  background: #1e6a29 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  box-shadow: 0 12px 22px rgba(8, 24, 12, 0.35);
}

.ma-home-masterclass__cta-card:hover {
  background: #133c19 !important;
  transform: translateY(-1px);
}

.ma-home-masterclass__cta-secondary {
  background: #214a28 !important;
}

.ma-home-masterclass__cta-thumb {
  display: block;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  line-height: 0;
  align-self: center;
}

.ma-home-masterclass__cta-thumb img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  object-fit: cover;
  display: block;
  vertical-align: top;
}

.ma-home-masterclass__cta-copy {
  display: grid;
  gap: 0.05rem;
}

.ma-home-masterclass__cta-copy strong {
  color: #fff;
  line-height: 1.2;
  font-size: 0.95rem;
}

.ma-home-masterclass__cta-copy em {
  color: #d7eadc;
  font-style: normal;
  font-size: 0.76rem;
  line-height: 1.2;
}

.ma-home-masterclass__section {
  padding: 1rem;
}

.ma-home-masterclass__ambiance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.ma-home-masterclass__ambiance-item {
  margin: 0;
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f7f6;
  position: relative;
  height: 255px;
}

.ma-home-masterclass__ambiance-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center !important;
  display: block;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.ma-home-masterclass__ambiance-item img.is-active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.ma-home-masterclass__ambiance-item img.is-entering-right {
  opacity: 0;
  transform: translateX(18px);
  z-index: 3;
}

.ma-home-masterclass__ambiance-item img.is-entering-right.is-active {
  opacity: 1;
  transform: translateX(0);
}

.ma-home-masterclass__ambiance-item img.is-leaving-left {
  opacity: 0;
  transform: translateX(-18px);
  z-index: 1;
}

.ma-home-masterclass__head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.7rem;
}

.ma-home-masterclass__section-cta {
  margin-top: 1.15rem;
  padding-top: 0.25rem;
  text-align: center;
}

.ma-home-masterclass__action-btn {
  background: var(--ma-primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  padding: 0.7rem 1rem !important;
  box-shadow: 0 10px 20px rgba(19, 60, 25, 0.2);
}

.ma-home-masterclass__action-btn:hover {
  background: var(--ma-secondary) !important;
  transform: translateY(-1px);
}

.ma-home-masterclass__head h2 {
  margin: 0;
  color: var(--ma-secondary);
}

.ma-home-masterclass__cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.ma-home-masterclass__cat-card {
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  background: #fbfdfb;
  overflow: hidden;
}

.ma-home-masterclass__cat-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.ma-home-masterclass__cat-meta {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem;
}

.ma-home-masterclass__cat-meta strong {
  color: #1d3624;
  line-height: 1.25;
}

.ma-home-masterclass__cat-meta em {
  font-style: normal;
  color: #5b705f;
  font-size: 0.84rem;
}

.ma-home-masterclass .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ma-home-masterclass .products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  list-style: none !important;
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  padding: 0.65rem;
  background: #fff;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.ma-home-masterclass .products li.product::marker {
  content: "";
}

.ma-home-masterclass .products li.product .woocommerce-LoopProduct-link img {
  border-radius: 10px;
}

/* Fix secondary images in "Produits les plus demandés" cards */
.ma-home-masterclass .products li.product a.woocommerce-LoopProduct-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.ma-home-masterclass .products li.product a.woocommerce-LoopProduct-link img {
  width: 100% !important;
  display: block;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.ma-home-masterclass .products li.product a.woocommerce-LoopProduct-link img:nth-of-type(2) {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  transform: scale(1.02);
}

.ma-home-masterclass .products li.product a.woocommerce-LoopProduct-link:hover img:nth-of-type(2) {
  opacity: 1;
  transform: scale(1.05);
}

.ma-home-masterclass .products li.product a.woocommerce-LoopProduct-link:hover img:nth-of-type(1):not(:only-of-type) {
  opacity: 0;
}

.ma-home-masterclass .products li.product a.woocommerce-LoopProduct-link img:nth-of-type(n + 3) {
  display: none !important;
}

.ma-home-masterclass .products li.product .woocommerce-loop-product__title {
  margin: 0.25rem 0 0.2rem !important;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1.05rem !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: #1d3624;
}

.ma-home-masterclass .products li.product .woocommerce-loop-product__title a {
  color: #1d3624;
}

.ma-home-masterclass .products li.product .price {
  margin: 0 0 0.2rem !important;
  color: #1b3b24 !important;
  font-weight: 700;
  font-size: 0.98rem;
}

.ma-home-masterclass .products li.product .button {
  width: fit-content;
  min-width: 0;
  padding: 0.5rem 0.75rem !important;
  border-radius: 9px !important;
  font-size: 0.85rem !important;
  color: #fff !important;
}

.ma-home-masterclass .products li.product .button:hover,
.ma-home-masterclass .products li.product .button:focus,
.ma-home-masterclass .products li.product .button:visited {
  color: #fff !important;
}

.ma-home-masterclass__videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.15rem;
}

.ma-home-masterclass__spotlight-card {
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  gap: 0.85rem;
  border: 1px solid #deebe2;
  border-radius: 12px;
  background: linear-gradient(120deg, #f5fbf6 0%, #ffffff 100%);
  padding: 0.7rem;
}

.ma-home-masterclass__spotlight-slider {
  position: relative;
  min-height: 360px;
}

.ma-home-masterclass__spotlight-slider .ma-home-masterclass__spotlight-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.992);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    visibility 0s linear 0.55s;
  will-change: opacity, transform;
}

.ma-home-masterclass__spotlight-slider .ma-home-masterclass__spotlight-card.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.ma-home-masterclass__spotlight-media img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dfe9e2;
}

.ma-home-masterclass__spotlight-body {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.ma-home-masterclass__spotlight-kicker {
  margin: 0;
  color: #315738;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ma-home-masterclass__spotlight-body h3 {
  margin: 0;
}

.ma-home-masterclass__spotlight-body h3 a {
  color: #1d3624;
}

.ma-home-masterclass__spotlight-price {
  color: #173420;
  font-weight: 700;
}

.ma-home-masterclass__spotlight-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ma-home-masterclass__spotlight-actions .button,
.ma-home-masterclass__spotlight-actions .button:visited,
.ma-home-masterclass__spotlight-actions .button:hover,
.ma-home-masterclass__spotlight-actions .button:focus {
  color: #fff !important;
}

.ma-home-masterclass__video {
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ma-home-masterclass__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.ma-home-masterclass__posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.15rem;
}

.ma-home-masterclass__post-card {
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ma-home-masterclass__post-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.ma-home-masterclass__post-body {
  padding: 0.65rem 0.7rem;
}

.ma-home-masterclass__post-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.ma-home-masterclass__post-link {
  font-weight: 600;
}

@media (max-width: 1024px) {
  .ma-home-masterclass__cats,
  .ma-home-masterclass .products,
  .ma-home-masterclass__videos,
  .ma-home-masterclass__posts,
  .ma-home-masterclass__ambiance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-home-masterclass__spotlight-card {
    grid-template-columns: 1fr;
  }

  .ma-home-masterclass__spotlight-slider {
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  .ma-home-masterclass__cats,
  .ma-home-masterclass .products,
  .ma-home-masterclass__videos,
  .ma-home-masterclass__posts,
  .ma-home-masterclass__ambiance-grid {
    grid-template-columns: 1fr;
  }

  .ma-home-masterclass__ambiance-item {
    height: 220px;
  }

  .ma-home-masterclass__spotlight-slider {
    min-height: 560px;
  }
}

@media (max-width: 480px) {
  .ma-shop-collection ul.products {
    grid-template-columns: 1fr;
  }
}

/* Search page */
.ma-search-page {
  width: min(100% - 2rem, var(--ma-container));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 0.9rem;
}

.ma-search-header,
.ma-search-form,
.ma-search-types,
.ma-search-results,
.ma-search-empty {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: #fff;
}

.ma-search-header {
  padding: 1rem 1.1rem;
  background: linear-gradient(120deg, #f5fbf6 0%, #fff 100%);
}

.ma-search-header h1 {
  margin: 0 0 0.25rem;
  color: var(--ma-secondary);
}

.ma-search-header p {
  margin: 0;
}

.ma-search-form {
  padding: 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
}

.ma-search-form input[type="search"] {
  border: 1px solid #cfe0d3;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.ma-search-types {
  padding: 0.55rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.ma-search-type {
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  background: #edf6ef;
  color: #214027;
  font-weight: 600;
}

.ma-search-type.is-active {
  background: var(--ma-primary);
  color: #fff;
}

.ma-search-results {
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.ma-search-card {
  border: 1px solid #e3ebe5;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 0.65rem;
  background: #fbfdfb;
}

.ma-search-card__media img,
.ma-search-card__placeholder {
  width: 145px;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  background: #edf3ee;
  display: block;
}

.ma-search-card__body {
  padding: 0.7rem 0.75rem 0.7rem 0.1rem;
}

.ma-search-card__type {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4e6653;
}

.ma-search-card__body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.ma-search-card__body h2 a {
  color: #1d3624;
}

.ma-search-card__price {
  color: var(--ma-secondary);
  font-weight: 700;
  margin-bottom: 0.22rem;
}

.ma-search-card__body p {
  margin: 0;
}

.ma-search-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  padding: 0;
}

.ma-search-pagination a,
.ma-search-pagination span {
  border: 1px solid #d8e6db;
  border-radius: 999px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
}

.ma-search-pagination .current {
  background: var(--ma-primary);
  color: #fff;
  border-color: var(--ma-primary);
}

.ma-search-empty {
  padding: 1rem 1.1rem;
}

.ma-product-desc-content p:last-child {
  margin-bottom: 0;
}

.ma-product-service {
  padding: 1rem 1.05rem;
  background: linear-gradient(120deg, #f3fbf5 0%, #ffffff 100%);
}

.ma-product-service h3 {
  margin: 0 0 0.45rem;
  color: var(--ma-secondary);
}

.single-product .ma-product-section ul.products li.product .price {
  color: var(--ma-secondary) !important;
  font-weight: 700;
}

.single-product .ma-product-section ul.products li.product .price .amount,
.single-product .ma-product-section ul.products li.product .price ins .amount {
  color: #173420 !important;
}

.single-product .ma-product-section ul.products li.product .price del .amount {
  color: #7c8f80 !important;
}

@media (max-width: 1024px) {
  .ma-product-hero {
    grid-template-columns: 1fr;
  }

  .ma-product-infos__row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .ma-product-hazards__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .single-product .ma-product-section--complementary ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.woocommerce-account table.shop_table {
  border: 1px solid #e2ebe4 !important;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.woocommerce-account table.shop_table th {
  background: #f2f8f3;
  color: var(--ma-secondary);
  font-weight: 600;
}

.woocommerce-account table.shop_table td,
.woocommerce-account table.shop_table th {
  padding: 0.82rem 0.75rem;
  border-color: #e8efe9 !important;
}

.woocommerce-account table.shop_table tbody tr:nth-child(odd) {
  background: #fbfdfb;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.woocommerce-orders-table__cell-order-actions {
  min-width: 170px;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table td.woocommerce-orders-table__cell-order-actions .button {
  display: inline-flex;
  margin-right: 0.45rem;
  margin-bottom: 0.35rem;
}

.woocommerce-account .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.9rem !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses::before,
.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses::after {
  content: none !important;
  display: none !important;
}

.woocommerce-account .woocommerce-Address {
  width: 100% !important;
  float: none !important;
  border: 1px solid #e1ebe3;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 0.9rem;
}

.woocommerce-account .woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.woocommerce-account .woocommerce-Address-title h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.woocommerce-account .woocommerce-Address-title .edit {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #eef5ef;
  color: var(--ma-secondary);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.woocommerce-account .woocommerce-Address-title .edit:hover {
  background: #dcebe0;
}

.woocommerce-account .woocommerce-Address address {
  margin: 0;
  color: #1f3424;
  line-height: 1.55;
}

.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses .u-column1,
.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses .u-column2,
.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses .col-1,
.woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses .col-2 {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  clear: none !important;
  max-width: none !important;
}

.woocommerce-account .woocommerce-EditAccountForm fieldset,
.woocommerce-account form.woocommerce-EditAccountForm,
.woocommerce-account form.woocommerce-address-fields,
.woocommerce-account form.woocommerce-form-login {
  border: 1px solid #e1ebe3;
  border-radius: 12px;
  padding: 0.9rem;
  background: #fbfdfb;
}

.woocommerce-account form .form-row {
  margin-bottom: 0.75rem;
}

.woocommerce-account form .input-text,
.woocommerce-account form select,
.woocommerce-account form textarea {
  border: 1px solid #cfe0d3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 0.72rem 0.85rem !important;
}

.woocommerce-account form .input-text:focus,
.woocommerce-account form select:focus,
.woocommerce-account form textarea:focus {
  border-color: var(--ma-primary) !important;
  box-shadow: 0 0 0 3px rgba(30, 106, 41, 0.15);
  outline: none;
}

@media (max-width: 980px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .woocommerce-MyAccount-content .u-columns.woocommerce-Addresses {
    grid-template-columns: 1fr !important;
  }
}

/* My Account hard fix for Elementor shortcode layouts */
.elementor-widget-shortcode .woocommerce .woocommerce-MyAccount-navigation,
.elementor-widget-shortcode .woocommerce .woocommerce-MyAccount-content {
  float: none !important;
}

.elementor-widget-shortcode .woocommerce {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 1.15rem;
  align-items: start;
}

.elementor-widget-shortcode .woocommerce .woocommerce-MyAccount-navigation {
  width: 100% !important;
  margin: 0 !important;
}

.elementor-widget-shortcode .woocommerce .woocommerce-MyAccount-content {
  width: 100% !important;
  margin: 0 !important;
  min-width: 0;
}

@media (max-width: 980px) {
  .elementor-widget-shortcode .woocommerce {
    grid-template-columns: 1fr !important;
  }
}

/* Ultimate fix: keep My Account nav/content on same row */
.elementor-shortcode > .woocommerce,
.elementor-widget-shortcode .elementor-shortcode > .woocommerce {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 1.15rem !important;
  width: 100% !important;
}

/* Do not apply My Account flex fix to checkout/cart wrappers */
.woocommerce-checkout .elementor-shortcode > .woocommerce,
.woocommerce-checkout .elementor-widget-shortcode .elementor-shortcode > .woocommerce,
.woocommerce-cart .elementor-shortcode > .woocommerce,
.woocommerce-cart .elementor-widget-shortcode .elementor-shortcode > .woocommerce {
  display: block !important;
}

.woocommerce-checkout .elementor-shortcode > .woocommerce > *,
.woocommerce-checkout .elementor-widget-shortcode .elementor-shortcode > .woocommerce > * {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
}

.elementor-shortcode > .woocommerce > .woocommerce-MyAccount-navigation,
.elementor-widget-shortcode .elementor-shortcode > .woocommerce > .woocommerce-MyAccount-navigation {
  flex: 0 0 280px !important;
  max-width: 280px !important;
  width: 280px !important;
  margin: 0 !important;
}

.elementor-shortcode > .woocommerce > .woocommerce-MyAccount-content,
.elementor-widget-shortcode .elementor-shortcode > .woocommerce > .woocommerce-MyAccount-content {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.elementor-shortcode > .woocommerce > .woocommerce-MyAccount-content table.shop_table,
.elementor-widget-shortcode .elementor-shortcode > .woocommerce > .woocommerce-MyAccount-content table.shop_table {
  width: 100% !important;
}

@media (max-width: 980px) {
  .elementor-shortcode > .woocommerce,
  .elementor-widget-shortcode .elementor-shortcode > .woocommerce {
    display: block !important;
  }

  .elementor-shortcode > .woocommerce > .woocommerce-MyAccount-navigation,
  .elementor-widget-shortcode .elementor-shortcode > .woocommerce > .woocommerce-MyAccount-navigation,
  .elementor-shortcode > .woocommerce > .woocommerce-MyAccount-content,
  .elementor-widget-shortcode .elementor-shortcode > .woocommerce > .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Single article template */
.ma-article-page {
  width: min(100% - 2rem, var(--ma-container));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.ma-article-hero {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: linear-gradient(120deg, #12391a 0%, #1e6a29 100%);
  padding: 1.2rem 1.1rem;
}

.ma-article-hero__eyebrow {
  margin: 0 0 0.2rem;
  color: #d8ecd9;
  font-weight: 600;
}

.ma-pathbar--dark .ma-back-link {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  color: #f2fbf2;
}

.ma-pathbar--dark .ma-back-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ma-pathbar--dark .woocommerce-breadcrumb a,
.ma-pathbar--dark .woocommerce-breadcrumb span {
  color: #e6f2e8;
}

.ma-article-hero__title {
  color: #fff;
  margin: 0 0 0.4rem;
}

.ma-article-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #eaf6eb;
  font-size: 0.92rem;
}

.ma-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.ma-article-main {
  display: grid;
  gap: 0.9rem;
  /* Colonne grid : sans cela, min-width:auto suit la largeur intrinsèque de l’image après chargement et casse la mise en page. */
  min-width: 0;
}

.ma-article-cover,
.ma-article-content,
.ma-article-products,
.ma-article-recent-posts,
.ma-article-reviews,
.ma-article-brand,
.ma-article-post-nav {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: #fff;
}

.ma-article-cover {
  margin: 0;
  overflow: hidden;
}

.ma-article-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.ma-article-content {
  padding: 1rem 1.05rem;
}

.ma-article-content h2,
.ma-article-content h3 {
  margin-top: 1rem;
  color: var(--ma-secondary);
}

.ma-article-content p,
.ma-article-content li {
  color: #2f4636;
}

.ma-article-content ul,
.ma-article-content ol {
  padding-left: 1.2rem;
}

.ma-article-taxonomies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ma-article-pill {
  display: inline-flex;
  border-radius: 999px;
  background: #edf6ef;
  color: #1f3424;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
}

.ma-article-pill:hover {
  background: #dcebe0;
}

.ma-article-post-nav {
  padding: 0.8rem 0.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.ma-article-post-nav__item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 0.45rem;
}

.ma-article-post-nav__item--next {
  grid-template-columns: 1fr 58px;
  text-align: right;
}

.ma-article-post-nav__thumb {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #dfe9e2;
  background: #edf3ee;
}

.ma-article-post-nav__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ma-article-post-nav__meta {
  display: grid;
  gap: 0.1rem;
}

.ma-article-post-nav__meta small {
  color: #5c725f;
  font-weight: 600;
}

.ma-article-post-nav__meta strong {
  color: #1f3424;
  line-height: 1.25;
}

.ma-article-products {
  padding: 1rem;
  background: linear-gradient(120deg, #f7fcf8 0%, #ffffff 100%);
}

.ma-article-products__head {
  margin-bottom: 0.7rem;
}

.ma-article-products__head h2 {
  margin: 0;
  color: var(--ma-secondary);
}

.ma-article-products__head p {
  margin: 0.25rem 0 0;
  color: #45604d;
  font-size: 0.92rem;
}

.ma-article-products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 !important;
}

.ma-article-products__grid::before,
.ma-article-products__grid::after {
  content: none !important;
  display: none !important;
}

.ma-article-products__grid li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  padding: 0.68rem;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.ma-article-products__grid li.product .woocommerce-loop-product__title {
  font-size: 1rem !important;
  line-height: 1.3 !important;
}

.ma-article-products__grid li.product .price {
  color: var(--ma-secondary) !important;
  font-weight: 700;
  margin: 0.35rem 0 0.55rem !important;
}

.ma-article-products__grid li.product .price .amount {
  color: #173420 !important;
}

.ma-article-products__grid li.product .button,
.ma-article-products__grid li.product a.button,
.ma-article-products__grid li.product .added_to_cart {
  margin-top: auto !important;
  width: 100%;
  min-height: 38px;
  justify-content: center;
}

.ma-article-products__cta {
  min-width: 260px;
}

.ma-article-product-card {
  border: 1px solid #e2ebe4;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.ma-article-product-card:hover {
  transform: translateY(-3px);
  border-color: #cfe3d5;
  box-shadow: 0 10px 26px rgba(19, 57, 28, 0.12);
}

.ma-article-product-card__media {
  position: relative;
  display: block;
  overflow: hidden;
}

.ma-article-product-card__media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.ma-article-product-card__media img:nth-of-type(2) {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
}

.ma-article-product-card__media:hover img:nth-of-type(2) {
  opacity: 1;
  transform: scale(1.06);
}

.ma-article-product-card__media:hover img:nth-of-type(1):not(:only-of-type) {
  opacity: 0;
}

.ma-article-product-card__body {
  padding: 0.65rem;
  display: grid;
  gap: 0.35rem;
}

.ma-article-product-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.ma-article-product-card__body h3 a {
  color: #1f3424;
}

.ma-article-product-card__price {
  margin: 0;
  color: #173420;
  font-weight: 700;
}

.ma-article-product-card__price .amount {
  color: #173420;
}

.ma-article-product-card .button {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.ma-article-section-cta {
  text-align: center;
  margin-top: 0.9rem;
}

.ma-article-reviews {
  padding: 0.95rem;
}

.ma-article-brand {
  padding: 1rem 1.05rem;
  background: linear-gradient(120deg, #f3fbf5 0%, #ffffff 100%);
}

.ma-article-brand h2 {
  margin: 0 0 0.4rem;
  color: var(--ma-secondary);
}

.ma-article-brand__actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.ma-article-aside {
  display: grid;
  gap: 0.8rem;
  position: sticky;
  top: 84px;
}

.ma-article-aside-card {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem 0.9rem;
}

.ma-article-aside-card h2 {
  margin: 0 0 0.5rem;
  color: var(--ma-secondary);
  font-size: 1.4rem;
}

.ma-article-aside-posts {
  display: grid;
  gap: 0.5rem;
}

.ma-article-aside-post {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid #e2ebe4;
  border-radius: 10px;
  background: #fbfdfb;
  padding: 0.4rem;
}

.ma-article-aside-post__thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dfe9e2;
  background: #edf3ee;
}

.ma-article-aside-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ma-article-aside-post__title {
  color: #1f3424;
  font-weight: 600;
  line-height: 1.25;
}

.ma-article-toc__list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  display: grid;
  gap: 0.35rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.35rem;
}

.ma-article-toc__list li.is-sub {
  margin-left: 0.8rem;
  font-size: 0.94rem;
}

.ma-article-toc__list li.is-empty {
  margin-left: 0;
  list-style: none;
  color: #58705d;
}

.ma-article-toc__list a {
  color: #1f3424;
}

.ma-article-toc__list a:hover {
  color: var(--ma-primary);
}

.ma-article-youtube {
  background: #f4fbf5;
}

.ma-article-youtube a {
  font-weight: 600;
}

@media (max-width: 1100px) {
  .ma-article-wrap {
    grid-template-columns: 1fr;
  }

  .ma-article-aside {
    position: static;
  }
}

@media (max-width: 980px) {
  .ma-article-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ma-article-post-nav {
    grid-template-columns: 1fr;
  }

  .ma-article-post-nav__item,
  .ma-article-post-nav__item--next {
    grid-template-columns: 52px 1fr;
    text-align: left;
  }

  .ma-article-products__grid {
    grid-template-columns: 1fr;
  }

  .ma-product-hazards__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .single-product .ma-product-section--complementary ul.products {
    grid-template-columns: 1fr;
  }
}

/* Blog index + category templates */
.ma-blog-page {
  width: min(100% - 2rem, var(--ma-container));
  margin: 1rem auto 2rem;
  display: grid;
  gap: 1rem;
}

.ma-blog-hero {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: linear-gradient(120deg, #12391a 0%, #1e6a29 100%);
  padding: 1.2rem 1.1rem;
}

.ma-blog-hero__eyebrow {
  margin: 0 0 0.25rem;
  color: #d8ecd9;
  font-weight: 600;
}

.ma-blog-hero h1 {
  margin: 0 0 0.3rem;
  color: #fff;
}

.ma-blog-hero__subtitle {
  margin: 0;
  color: #e7f4e9;
  font-size: 1.05rem;
}

.ma-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.ma-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.ma-blog-card,
.ma-blog-empty,
.ma-blog-aside-card {
  border: 1px solid #dfebe2;
  border-radius: 14px;
  background: #fff;
}

.ma-blog-card {
  overflow: hidden;
}

.ma-blog-card__thumb {
  display: block;
}

.ma-blog-card__thumb img,
.ma-blog-card__placeholder {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #edf3ee;
}

.ma-blog-card__body {
  padding: 0.8rem;
}

.ma-blog-card__meta {
  color: #5c725f;
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.ma-blog-card__body h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.25;
}

.ma-blog-card__body h2 a {
  color: #1f3424;
}

.ma-blog-card__body p {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #415a49;
}

.ma-blog-card__link {
  font-weight: 700;
  font-size: 0.9rem;
}

.ma-blog-empty {
  padding: 1rem;
}

.ma-blog-aside {
  display: grid;
  gap: 0.8rem;
  position: sticky;
  top: 84px;
}

.ma-blog-aside-card {
  padding: 0.85rem 0.9rem;
}

.ma-blog-aside-card h2 {
  margin: 0 0 0.5rem;
  color: var(--ma-secondary);
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
}

.ma-blog-aside-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.ma-blog-aside-card ul li a {
  display: block;
  border: 1px solid #e2ebe4;
  border-radius: 9px;
  background: #fbfdfb;
  color: #1f3424;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
}

.ma-blog-youtube-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.ma-blog-youtube-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid #e2ebe4;
  border-radius: 10px;
  background: #fbfdfb;
  padding: 0.3rem;
}

.ma-blog-youtube-item__thumb img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.ma-blog-youtube-item__title {
  color: #1f3424;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
}

.ma-blog-pagination .page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.ma-blog-pagination .page-numbers a,
.ma-blog-pagination .page-numbers span {
  min-width: 34px;
  height: 34px;
  border: 1px solid #d8e6db;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  color: #1f3424;
}

.ma-blog-pagination .page-numbers .current {
  background: var(--ma-primary);
  color: #fff;
  border-color: var(--ma-primary);
}

/* Add-to-cart modal (upsell) */
.ma-atc-modal[hidden] {
  display: none !important;
}

.ma-atc-modal {
  position: fixed;
  inset: 0;
  z-index: 20100;
}

.ma-atc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 14, 0.62);
}

.ma-atc-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 94vw);
  max-height: 82vh;
  overflow: auto;
  margin: 0;
  border: 1px solid #dbe8de;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, calc(-50% + 14px)) scale(0.98);
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.ma-atc-modal.is-open .ma-atc-modal__dialog {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.ma-atc-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8e6db;
  background: #fff;
  color: #1f3424;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

.ma-atc-modal__content {
  padding: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.ma-atc-modal__kicker {
  margin: 0 0 0.45rem;
  color: #2a5a33;
  font-weight: 700;
  font-size: 0.9rem;
}

.ma-atc-modal__added {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.7rem;
  align-items: center;
}

.ma-atc-modal__thumb img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dfe9e2;
}

.ma-atc-modal__meta strong {
  display: block;
  color: #1f3424;
}

.ma-atc-modal__meta span {
  color: #173420;
  font-weight: 700;
}

.ma-atc-modal__actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ma-atc-modal__actions .button {
  margin: 0 !important;
}

.ma-atc-modal__btn-secondary,
.ma-atc-modal__btn-secondary:visited {
  background: #eaf4ec !important;
  color: #1d4728 !important;
  border: 1px solid #cfe1d3 !important;
}

.ma-atc-modal__btn-secondary:hover,
.ma-atc-modal__btn-secondary:focus {
  background: #dcece0 !important;
  color: #163720 !important;
  box-shadow: none !important;
  transform: none !important;
}

.ma-atc-modal__reco h3 {
  margin: 0 0 0.4rem;
  color: var(--ma-secondary);
  font-size: 1.15rem;
}

.ma-atc-modal__reco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.ma-atc-modal__reco-item {
  border: 1px solid #e1ebe3;
  border-radius: 11px;
  background: #fbfdfb;
  padding: 0.35rem;
  display: grid;
  gap: 0.2rem;
}

.ma-atc-modal__reco-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2ebe4;
}

.ma-atc-modal__reco-name {
  color: #1f3424;
  font-weight: 600;
  line-height: 1.25;
  font-size: 0.8rem;
}

.ma-atc-modal__reco-price {
  color: #173420;
  font-weight: 700;
  font-size: 0.78rem;
}

/* Free shipping progress bars */
.ma-free-ship {
  border: 1px solid #dce8de;
  border-radius: 11px;
  background: #f8fcf9;
  padding: 0.55rem 0.65rem;
  display: grid;
  gap: 0.35rem;
}

.ma-free-ship__text {
  margin: 0;
  color: #274632;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.3;
}

.ma-free-ship__text--ok {
  color: #1e6a29;
}

.ma-free-ship__track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e6efe8;
  overflow: hidden;
}

.ma-free-ship__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #d5534b;
  transition: width 0.26s ease, background-color 0.26s ease;
}

.ma-free-ship__meta {
  margin: 0;
  color: #4d6352;
  font-size: 0.78rem;
}

.ma-free-ship--mini-cart {
  margin-top: 0.5rem;
  margin-bottom: 0.2rem;
}

.ma-free-ship--cart,
.ma-free-ship--checkout {
  margin-bottom: 0.7rem;
}

.ma-free-ship--cart {
  margin-top: 0.25rem;
}

.ma-free-ship.is-stage-mid .ma-free-ship__fill {
  background: #d98b2b;
}

.ma-free-ship.is-stage-high .ma-free-ship__fill {
  background: #b3a332;
}

.ma-free-ship.is-reached .ma-free-ship__fill {
  background: #1e6a29;
}

.ma-atc-bump {
  animation: maAtcBump 0.34s ease;
}

@keyframes maAtcBump {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

body.ma-atc-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .ma-blog-layout {
    grid-template-columns: 1fr;
  }

  .ma-blog-aside {
    position: static;
  }

  .ma-atc-modal__reco-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .ma-blog-grid {
    grid-template-columns: 1fr;
  }

  .ma-atc-modal__dialog {
    width: min(96vw, 760px);
    max-height: 88vh;
  }

  .ma-atc-modal__content {
    padding: 0.7rem;
    gap: 0.6rem;
  }

  .ma-atc-modal__reco h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .ma-atc-modal__reco-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .ma-atc-modal__reco-item {
    padding: 0.28rem;
    gap: 0.15rem;
  }

  .ma-atc-modal__reco-thumb img {
    aspect-ratio: 1 / 1;
    max-height: 82px;
  }

  .ma-atc-modal__reco-name {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .ma-atc-modal__reco-price {
    font-size: 0.72rem;
  }
}

@media (max-width: 520px) {
  .ma-atc-modal__added {
    grid-template-columns: 76px 1fr;
    gap: 0.5rem;
  }

  .ma-atc-modal__thumb img {
    width: 76px;
    height: 76px;
  }

  .ma-atc-modal__actions .button {
    flex: 1 1 100%;
    justify-content: center;
  }

  .ma-atc-modal__reco-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ma-atc-modal__reco-thumb img {
    max-height: 72px;
  }
}
