/*
Theme Name: cjqc
Theme URI: https://wp.centrejardin.quebec/
Description: Theme enfant cjqc base sur Twenty Twenty-Five pour WordPress et WooCommerce.
Author: Centre Jardin Quebec
Template: twentytwentyfive
Version: 1.0.0
Text Domain: cjqc
*/

@import url("https://fonts.googleapis.com/css2?family=Alegreya:wght@400;600;700&family=Open+Sans:wght@400;600;700;800&display=swap");

:root {
  --cjqc-green: #8bc34a;
  --cjqc-dark: #26330f;
  --cjqc-text: #3a3a3a;
  --cjqc-soft: #f7f8f2;
  --cjqc-border: #dfe5d2;
  --cjqc-container: 1200px;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--cjqc-text);
  background: #ffffff;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Alegreya", serif;
  color: var(--cjqc-text);
}

.cjqc-wrap {
  max-width: var(--cjqc-container);
  margin: 0 auto;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

/* Override FSE global block gap on the main wrapper generated by WordPress. */
:where(.wp-site-blocks) > main#wp--skip-link--target {
  margin-block-start: 0 !important;
}

.cjqc-header {
  position: relative;
  top: auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  /* jaime pas border-bottom: 1px solid var(--cjqc-border); */
}

.cjqc-header .wp-block-site-logo {
  margin: 0;
}

.cjqc-header .wp-block-site-logo img {
  max-width: 260px;
  height: auto;
}

.cjqc-header .wp-block-navigation-item__content {
  color: var(--cjqc-text);
  font-weight: 400;
  font-size: 0.98rem;
  /* jaime pas text-transform: uppercase; */
  letter-spacing: 0;
}

.cjqc-header .wp-block-navigation-item__content:hover,
.cjqc-header .wp-block-navigation-item__content:focus {
  color: var(--cjqc-green);
}

.cjqc-header .cjqc-main-nav {
  margin-left: auto;
}

.cjqc-header .cjqc-main-nav .wp-block-navigation__container {
  gap: 0.9rem;
  align-items: center;
}

.cjqc-header .wp-block-navigation__submenu-container {
  border: 1px solid var(--cjqc-border);
  padding: 0.45rem 0;
  min-width: 220px;
}

.cjqc-header .wp-block-navigation-submenu .wp-block-navigation-item__content {
  text-transform: none;
  font-size: 0.94rem;
}

.cjqc-header .cjqc-cart-icon-link .wp-block-navigation-item__content {
  font-size: 0;
  line-height: 1;
}

.cjqc-header .cjqc-cart-icon-link .wp-block-navigation-item__label {
  font-size: 0;
}

.cjqc-header .cjqc-cart-icon-link .wp-block-navigation-item__content::before {
  content: "\1F6D2";
  font-size: 1.25rem;
  line-height: 1;
}

.cjqc-header .wp-block-woocommerce-customer-account {
  display: none;
}

.cjqc-header .cjqc-wrap {
  gap: 0.5rem;
  min-width: 0;
}

.cjqc-header .wp-block-site-logo {
  flex: 0 1 auto;
  min-width: 0;
}

.cjqc-header .cjqc-main-nav {
  flex-shrink: 0;
}

.cjqc-header .wp-block-woocommerce-mini-cart {
  margin-left: 0.5rem;
  flex-shrink: 0;
  line-height: 1;
  /* Meme taille que le bloc home (fontSize medium) */
  font-size: var(--wp--preset--font-size--medium);
  /* Espace pour le badge qui depasse a droite de l'icone */
  padding-right: 0.85rem;
}

.cjqc-header .wc-block-mini-cart__button,
.cjqc-header a.wc-block-mini-cart__button {
  padding: 0.25em;
  font-size: inherit;
  line-height: 1;
}

.cjqc-header .wc-block-mini-cart__icon {
  width: 1.5em;
  height: 1.5em;
  margin: 0;
}

/* Badge legerement a droite de l'icone (style WooCommerce) */
.cjqc-header .wc-block-mini-cart__badge {
  left: 100%;
  right: auto;
  margin-left: -44%;
  transform: translateY(-50%);
  /* Force le style (override les inline styles du JS WooCommerce) */
  background-color: var(--cjqc-dark) !important;
  color: #ffffff !important;
}

.cjqc-header .wc-block-mini-cart__badge[hidden],
.cjqc-header .wc-block-mini-cart__badge:empty {
  display: none;
}

/* WooCommerce masque le mini-panier sur Panier/Checkout : on le force visible */
.woocommerce-cart .cjqc-header .wp-block-woocommerce-mini-cart,
.woocommerce-checkout .cjqc-header .wp-block-woocommerce-mini-cart {
  visibility: visible !important;
}

.cjqc-header a.wc-block-mini-cart__button {
  text-decoration: none;
  color: inherit;
}

.cjqc-hero {
  background:
    linear-gradient(110deg, rgba(26, 34, 10, 0.62), rgba(26, 34, 10, 0.22)),
    url("https://i0.wp.com/www.centrejardin.quebec/wp-content/uploads/2020/04/shutterstock_1464836393-1.jpg?fit=1920%2C1080&ssl=1") top center/cover no-repeat;
  color: #ffffff;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.cjqc-hero-inner {
  text-align: center;
}

.cjqc-hero h1,
.cjqc-hero h2,
.cjqc-hero h3,
.cjqc-hero p {
  color: #ffffff;
}

.cjqc-kicker {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin: 0 0 0.9rem 0;
}

.cjqc-hero-subline {
  font-family: "Alegreya", serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  max-width: 40ch;
  margin: 0 auto;
}

.cjqc-hero-title {
  font-family: "Open Sans", sans-serif;
  font-size: clamp(2.1rem, 4.8vw, 5rem);
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  max-width: 15ch;
}

.cjqc-hero-subtitle {
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  max-width: 52ch;
  margin-top: 1rem;
}

.cjqc-hero-actions {
  justify-content: center;
  margin-top: 1.45rem;
}

.cjqc-button,
.cjqc-button .wp-element-button {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0;
  border-radius: 0;
  transition: all 0.2s ease;
}

.cjqc-button .wp-element-button {
  border: 2px solid #ffffff;
  padding: 0.9rem 1.6rem;
}

.cjqc-button:hover,
.cjqc-button .wp-element-button:hover {
  background: #ffffff;
  color: #1f2910;
}

.cjqc-feature-strip {
  margin-top: -52px;
  margin-bottom: 3rem;
}

.cjqc-feature-strip .wp-block-columns {
  gap: 1.2rem;
}

.cjqc-feature-card {
  background: #ffffff;
  border: 1px solid var(--cjqc-border);
  padding: 2.05rem 1.6rem 1.8rem;
  box-shadow: 0 16px 36px rgba(29, 44, 11, 0.09);
  height: 100%;
  text-align: center;
}

.cjqc-feature-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.cjqc-feature-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.cjqc-feature-icon {
  margin-bottom: 0.85rem;
  justify-items: center;
}

.cjqc-section {
  /* padding-top: 3.75rem; */
  padding-bottom: 3.75rem;
}

.cjqc-muted {
  background: var(--cjqc-soft);
}

.cjqc-search-band {
  background:
    linear-gradient(100deg, rgba(35, 48, 13, 0.88), rgba(35, 48, 13, 0.72)),
    url("https://i0.wp.com/www.centrejardin.quebec/wp-content/uploads/2020/04/shutterstock_1046821747.jpg?fit=1350%2C900&ssl=1") bottom right/cover no-repeat;
  text-align: center;
}

.cjqc-search-title,
.cjqc-search-band .wp-block-heading.cjqc-search-title {
  color: #ffffff;
  margin-bottom: 0.8rem;
  text-align: center !important;
  width: 100%;
}

.cjqc-search-band .wp-block-search__inside-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  max-width: 760px;
  margin: 0 auto;
  border-radius: 0;
  min-height: 50px;
  align-items: stretch;
}

.cjqc-search-band .wp-block-search__inside-wrapper:focus-within {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.32);
}

.cjqc-search-band .wp-block-search .wp-block-search__input {
  background: transparent;
  color: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  height: 50px;
  box-sizing: border-box;
}

.cjqc-search-band .wp-block-search .wp-block-search__input:focus,
.cjqc-search-band .wp-block-search .wp-block-search__input:focus-visible {
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}

.cjqc-search-band .wp-block-search__input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.cjqc-search-band .wp-block-search__button {
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.cjqc-steps-layout {
  gap: 2.2rem;
}

.cjqc-steps-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
}

.cjqc-steps-grid .wp-block-group {
  border-left: 0;
  padding-left: 0;
}

.cjqc-steps-grid h3 {
  margin-bottom: 1.2rem;
  color: #23a455;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-weight: 600;
  line-height: 1.1;
}

.cjqc-steps-grid h4 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.45rem 0;
}

.cjqc-step-item {
  margin-top: 1.15rem;
  gap: 0.95rem;
}

.cjqc-step-icon {
  margin: 0;
  min-width: 28px;
  line-height: 1;
}

.cjqc-step-icon i {
  color: #23a455;
  font-size: 25px;
}

.cjqc-step-text p {
  margin: 0;
  color: #23a455;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}

.cjqc-participants-title,
.cjqc-participants .wp-block-heading.cjqc-participants-title {
  margin-top: 0;
  margin-bottom: 1.3rem;
  padding-top: 0.25rem;
  text-align: center !important;
  width: 100%;
  color: #3dd14d;
  font-weight: 700;
}

.cjqc-participants-title span {
  color: var(--cjqc-green);
}

.cjqc-address-inline {
  text-align: center;
  margin-top: 0;
}

.cjqc-pickup-card {
  border: 1px solid var(--cjqc-border);
  background: #ffffff;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 6px 24px rgba(29, 44, 11, 0.07);
}

.cjqc-pickup-card h4 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
}

.cjqc-map iframe {
  border: 0;
  width: 100%;
  min-height: 520px;
  display: block;
}

#cjqc-pickup-map {
  min-height: 348px;
  width: 100%;
}

.cjqc-participants {
  padding-top: 3rem;
  padding-bottom: 2.4rem;
  position: relative;
  background-color: #3a3333;
  overflow: hidden;
}

.cjqc-participants::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://i0.wp.com/www.centrejardin.quebec/wp-content/uploads/2022/08/horticulture-vegetable-produce.jpg?fit=1030%2C625&ssl=1");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
}

.cjqc-participants > .cjqc-wrap {
  position: relative;
  z-index: 1;
}

.cjqc-participants .cjqc-address-inline {
  color: #ffffff;
}

.cjqc-map-full {
  margin-top: 0;
}

.cjqc-footer {
  background: #1f2910;
  color: #f7f8f2;
  margin-top: 0;
}

.cjqc-footer p,
.cjqc-footer a {
  color: #f7f8f2;
  margin: 0;
}

@media (min-width: 1025px) {
  .cjqc-hero,
  .cjqc-search-band {
    background-attachment: fixed;
  }
}

.cjqc-footer a:hover,
.cjqc-footer a:focus {
  color: var(--cjqc-green);
}

.woocommerce .wp-block-button__link,
.woocommerce-page .wp-block-button__link,
.woocommerce button,
.woocommerce .button,
.woocommerce-page button,
.woocommerce-page .button {
  border-radius: 0;
}

.cjqc-contact-page {
  padding: 3rem 0 4rem;
  background: #f8faf4;
}

.cjqc-contact-wrap {
  max-width: 880px;
}

.cjqc-contact-title {
  margin: 0 0 0.45rem;
  font-family: "Alegreya", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cjqc-contact-subtitle {
  margin: 0 0 1.5rem;
  color: #4d5830;
}

.cjqc-contact-form {
  background: #ffffff;
  border: 1px solid var(--cjqc-border);
  box-shadow: 0 10px 26px rgba(29, 44, 11, 0.08);
  padding: 1.5rem;
}

.cjqc-contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #2f3a15;
  font-size: 0.95rem;
}

.cjqc-contact-form input,
.cjqc-contact-form textarea {
  width: 100%;
  border: 1px solid #c9d3b2;
  background: #ffffff;
  padding: 0.75rem 0.8rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #22300f;
  border-radius: 0;
  box-sizing: border-box;
}

.cjqc-contact-form input:focus,
.cjqc-contact-form textarea:focus {
  border-color: #7aa738;
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 167, 56, 0.22);
}

.cjqc-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cjqc-contact-grid + .cjqc-contact-grid {
  margin-top: 0.15rem;
}

.cjqc-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cjqc-contact-recaptcha-placeholder {
  border: 1px dashed #aac289;
  padding: 0.8rem 1rem;
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
  color: #4f6329;
  background: #f6fbe9;
}

.cjqc-contact-submit-wrap {
  margin-bottom: 0;
}

.cjqc-contact-submit {
  border: 0;
  border-radius: 0;
  background: #7fb13a;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
}

.cjqc-contact-submit:hover,
.cjqc-contact-submit:focus {
  background: #6e9b31;
}

.cjqc-contact-alert {
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid;
}

.cjqc-contact-alert-success {
  color: #1f5d22;
  background: #e9f6e7;
  border-color: #9fca9a;
}

.cjqc-contact-alert-error {
  color: #7b2222;
  background: #fdeeee;
  border-color: #e5b0b0;
}

/* =====================================================
   SHOP / BOUTIQUE â€” layout avec sidebar de filtres
   ===================================================== */
.cjqc-shop-page {
  max-width: none !important;
  padding-top: 1.4rem;
  padding-bottom: 3rem;
}

.cjqc-shop-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Sidebar filtres */
.cjqc-shop-sidebar {
  width: 240px;
  min-width: 220px;
  flex-shrink: 0;
}

.cjqc-sidebar-title {
  font-family: "Open Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cjqc-dark);
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--cjqc-green);
}

/* Wrapper pour les filtres */
.cjqc-filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Mobile toggle wrapper for filters (closed by default on small screens). */
.cjqc-mobile-filters-toggle {
  display: block;
}

.cjqc-mobile-filters-checkbox {
  display: none;
}

.cjqc-mobile-filters-summary {
  display: none;
}

.cjqc-mobile-filters-icon {
  display: inline-flex;
  width: 0.9rem;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cjqc-mobile-filters-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.3rem solid transparent;
  border-bottom: 0.3rem solid transparent;
  border-left: 0.42rem solid currentColor;
  transform: rotate(0deg);
  transform-origin: 40% 50%;
  transition: transform 0.15s ease;
}

/* Desktop: keep filters visible and hide mobile toggle button. */
@media (min-width: 901px) {
  .cjqc-mobile-filters-summary {
    display: none !important;
  }

  .cjqc-mobile-filters-toggle > .cjqc-filters-wrapper {
    display: flex !important;
  }
}

/* Widget / bloc de filtre WooCommerce classique */
.cjqc-filters-wrapper .widget,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav-filters {
  border: 1px solid var(--cjqc-border);
  background: #ffffff;
  padding: 0.75rem 0.9rem;
  list-style: none;
  margin: 0 !important;
}

/* Titre du widget de filtre */
.cjqc-filters-wrapper .widget_title,
.cjqc-filters-wrapper .widgettitle,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav-list__item--heading,
.cjqc-filters-wrapper h3,
.woocommerce-widget-layered-nav h3 {
  font-family: "Open Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cjqc-dark);
  margin: 0 0 0.55rem 0 !important;
  padding: 0 0 0.4rem 0 !important;
  border-bottom: 1px solid var(--cjqc-border);
}

/* Ã‰lÃ©ments de liste (termes) */
.cjqc-filters-wrapper .woocommerce-widget-layered-nav-list li,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav ul li,
.cjqc-filters-wrapper .widget_product_categories .product-categories > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  flex-wrap: nowrap;
  padding: 0.22rem 0 !important;
  list-style: none !important;
  margin: 0 !important;
}

.cjqc-filters-wrapper .woocommerce-widget-layered-nav-list li a,
.cjqc-filters-wrapper .woocommerce-widget-layered-nav ul li a,
.cjqc-filters-wrapper .widget_product_categories .product-categories > li > a {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.93rem;
  color: var(--cjqc-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cjqc-filters-wrapper a:hover {
  color: var(--cjqc-green);
}

/* Compteur de produits */
.cjqc-filters-wrapper .count {
  display: inline-block;
  white-space: nowrap;
  flex: 0 0 auto;
  color: #888;
  font-size: 0.83rem;
  margin-left: auto;
}

.cjqc-filters-wrapper .widget_product_categories .current-cat > a,
.cjqc-filters-wrapper .widget_product_categories .current-cat-parent > a {
  font-weight: 700;
  color: #1f2910;
}

/* Remove browser default list spacing only for category values. */
.cjqc-filters-wrapper .widget_product_categories .product-categories {
  margin: 0 !important;
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  padding-left: 0 !important;
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter .cjqc-product-name-filter-form {
  display: grid;
  gap: 0.5rem;
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter input[type="search"] {
  width: 100%;
  border: 1px solid var(--cjqc-border);
  padding: 0.5rem 0.65rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.93rem;
  color: var(--cjqc-text);
  background: #ffffff;
  border-radius: 0;
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter input[type="search"]:focus {
  outline: none;
  border-color: var(--cjqc-green);
  box-shadow: 0 0 0 2px rgba(139, 195, 74, 0.2);
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter button {
  border: 0;
  background: var(--cjqc-green);
  color: #ffffff;
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.cjqc-filters-wrapper .cjqc-widget-product-name-filter button:hover,
.cjqc-filters-wrapper .cjqc-widget-product-name-filter button:focus {
  background: #6e9b31;
}

/* Active filters: show each selected filter on its own line. */
.cjqc-filters-wrapper .widget_layered_nav_filters ul,
.cjqc-filters-wrapper .woocommerce.widget_layered_nav_filters ul {
  display: block !important;
}

.cjqc-filters-wrapper .widget_layered_nav_filters ul li,
.cjqc-filters-wrapper .woocommerce.widget_layered_nav_filters ul li {
  display: block !important;
  width: 100%;
  padding: 0.22rem 0 !important;
}

.cjqc-filters-wrapper .widget_layered_nav_filters ul li a,
.cjqc-filters-wrapper .woocommerce.widget_layered_nav_filters ul li a {
  display: inline-flex !important;
  width: 100%;
}

.cjqc-filters-wrapper .widget_layered_nav_filters ul li a,
.cjqc-filters-wrapper .woocommerce.widget_layered_nav_filters ul li a {
  font-family: "Open Sans", sans-serif;
  font-size: 0.93rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--cjqc-text);
}

/* Keep very long attribute lists compact (Hauteur, Contenant). */
.cjqc-filters-wrapper > .widget:nth-of-type(3) .woocommerce-widget-layered-nav-list,
.cjqc-filters-wrapper > .widget:nth-of-type(4) .woocommerce-widget-layered-nav-list {
  max-height: 290px;
  overflow: auto;
  padding-right: 0.25rem;
}

.cjqc-filters-wrapper > .widget:nth-of-type(3) .woocommerce-widget-layered-nav-list::-webkit-scrollbar,
.cjqc-filters-wrapper > .widget:nth-of-type(4) .woocommerce-widget-layered-nav-list::-webkit-scrollbar {
  width: 8px;
}

.cjqc-filters-wrapper > .widget:nth-of-type(3) .woocommerce-widget-layered-nav-list::-webkit-scrollbar-thumb,
.cjqc-filters-wrapper > .widget:nth-of-type(4) .woocommerce-widget-layered-nav-list::-webkit-scrollbar-thumb {
  background: #c3cfaa;
}

/* Zone principale produits */
.cjqc-shop-main {
  flex: 1 1 0;
  min-width: 0;
}

/* Center product button text in listings (e.g. "Voir le produit"). */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart,
.woocommerce-page ul.products li.product .added_to_cart {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 0.3rem;
  /* width: 70%; */
}

/* Tighten default WooCommerce spacing inside product cards. */
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
  margin: 0 0 0.45rem;
}

.woocommerce ul.products li.product {
    text-align: center;
}

/* Use grid to keep cards aligned even when product names have variable length. */
.cjqc-shop-main .woocommerce ul.products,
.cjqc-shop-main .woocommerce-page ul.products,
.woocommerce .cjqc-shop-main ul.products,
.woocommerce-page .cjqc-shop-main ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

/* Prevent WooCommerce clearfix pseudo-elements from becoming grid items. */
.cjqc-shop-main .woocommerce ul.products::before,
.cjqc-shop-main .woocommerce ul.products::after,
.cjqc-shop-main .woocommerce-page ul.products::before,
.cjqc-shop-main .woocommerce-page ul.products::after,
.woocommerce .cjqc-shop-main ul.products::before,
.woocommerce .cjqc-shop-main ul.products::after,
.woocommerce-page .cjqc-shop-main ul.products::before,
.woocommerce-page .cjqc-shop-main ul.products::after {
  content: none !important;
  display: none !important;
}

/* Keep product card text/price/button aligned across each row. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

/* Disable WooCommerce nth-child clear rules that can create visual gaps in CSS grid. */
.woocommerce ul.products li.product:nth-child(n),
.woocommerce-page ul.products li.product:nth-child(n),
.woocommerce.columns-3 ul.products li.product:nth-child(n),
.woocommerce.columns-4 ul.products li.product:nth-child(n) {
  clear: none !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce-page ul.products li.product .woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  line-height: 1.35;
  min-height: 2.7em;
  margin: 0 0 0.25rem;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 2.2em;
  margin-top: auto;
  margin-bottom: 0.35rem;
}

/* Single product: hide breadcrumb and related products as final fallback. */
.single-product .woocommerce-breadcrumb,
.single-product .related.products {
  display: none !important;
}

/* Product description: keep HTML formatting from admin. */
.single-product .cjqc-product-description .wp-block-post-excerpt__excerpt > *:first-child {
  margin-top: 0;
}

.single-product .cjqc-product-description .wp-block-post-excerpt__excerpt > *:last-child {
  margin-bottom: 0;
}

.single-product .cjqc-product-description p {
  margin: 0 0 0.85em;
  line-height: 1.55;
}

.single-product .cjqc-product-description ul,
.single-product .cjqc-product-description ol {
  margin: 0 0 0.85em;
  padding-left: 1.25em;
}

.single-product .cjqc-product-description a {
  color: var(--cjqc-green-dark, #4a6b1f);
  text-decoration: underline;
}

.single-product .cjqc-product-description a:hover {
  color: var(--cjqc-green, #8bc34a);
}

/* Variable product: table of in-stock combinations. */
.single-product .variations_form table.variations.cjqc-variations-hidden,
.single-product .variations_form .reset_variations.cjqc-variations-hidden {
  display: none !important;
}

.single-product .cjqc-variations-table-wrap {
  margin: 0 0 1rem;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.single-product .cjqc-variation-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--cjqc-border, #d7decc);
}

.single-product .cjqc-variation-table th,
.single-product .cjqc-variation-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--cjqc-border, #d7decc);
  font-size: 0.92rem;
  color: #20300f;
}

.single-product .cjqc-variation-table thead th {
  font-family: "Open Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #253313;
  background: #f4f7ef;
  white-space: nowrap;
}

.single-product .cjqc-variation-table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.single-product .cjqc-variation-table tbody tr:hover {
  background: #f7faF2;
}

.single-product .cjqc-variation-table tbody tr.is-selected {
  background: rgba(139, 195, 74, 0.14);
}

.single-product .cjqc-variation-table tbody tr:focus-visible {
  outline: 2px solid var(--cjqc-green, #8bc34a);
  outline-offset: -2px;
}

.single-product .cjqc-variation-table th.cjqc-variation-table-choose,
.single-product .cjqc-variation-table td.cjqc-variation-table-choose {
  width: 2.8rem;
  padding: 0.65rem 0.75rem 0.65rem 1.1rem;
  text-align: center;
}

.single-product .cjqc-variation-table-choose input[type="radio"] {
  accent-color: var(--cjqc-green, #8bc34a);
  margin: 0;
  pointer-events: none;
}

.single-product .cjqc-variation-table-price {
  white-space: nowrap;
  font-weight: 600;
}

.single-product .cjqc-variation-table-price del {
  opacity: 0.65;
  font-weight: 500;
  margin-right: 0.25rem;
}

.single-product .cjqc-variation-table-empty {
  text-align: center;
  color: #5a684c;
  cursor: default;
}

.single-product .variations_form.cjqc-has-variation-table .single_variation_wrap,
.single-product .variations_form.cjqc-has-variation-table .single_variation {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
}
.single-product .cjqc-variation-table-note {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  color: #5a684c;
}

@media (max-width: 600px) {
  .single-product .cjqc-variation-table th,
  .single-product .cjqc-variation-table td {
    padding: 0.55rem 0.5rem;
    font-size: 0.86rem;
  }

  .single-product .cjqc-variation-table th.cjqc-variation-table-choose,
  .single-product .cjqc-variation-table td.cjqc-variation-table-choose {
    padding: 0.55rem 0.5rem 0.55rem 1rem;
  }
}

@media (max-width: 900px) {
  .cjqc-shop-main .woocommerce ul.products,
  .cjqc-shop-main .woocommerce-page ul.products,
  .woocommerce .cjqc-shop-main ul.products,
  .woocommerce-page .cjqc-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cjqc-header .wp-block-site-logo img {
    max-width: 160px;
  }

  .cjqc-header .cjqc-wrap {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .cjqc-header .wp-block-woocommerce-mini-cart {
    margin-left: 0.25rem;
    padding-right: 0.75rem;
  }

  .cjqc-header .wc-block-mini-cart__button {
    padding: 0.15em;
  }

  .cjqc-feature-strip {
    margin-top: 1rem;
  }

  .cjqc-section {
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
  }

  .cjqc-map iframe {
    min-height: 380px;
  }

  #cjqc-pickup-map {
    min-height: 380px;
  }

  .cjqc-contact-page {
    padding-top: 2.2rem;
    padding-bottom: 3rem;
  }

  .cjqc-contact-form {
    padding: 1.15rem;
  }

  .cjqc-contact-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Shop mobile: empiler sidebar + contenu */
  .cjqc-shop-layout {
    flex-direction: column;
    gap: 1.4rem;
  }

  .cjqc-shop-sidebar {
    width: 100%;
    min-width: 0;
  }

  .cjqc-sidebar-title {
    display: none;
  }

  .cjqc-mobile-filters-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    cursor: pointer;
    font-family: "Open Sans", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cjqc-dark);
    border: 1px solid var(--cjqc-border);
    background: #ffffff;
    padding: 0.6rem 0.8rem;
    list-style: none;
  }

  .cjqc-mobile-filters-toggle > .cjqc-filters-wrapper {
    display: none;
    margin-top: 0.6rem;
  }

  .cjqc-mobile-filters-checkbox:checked + .cjqc-mobile-filters-summary + .cjqc-filters-wrapper {
    display: flex;
  }

  .cjqc-mobile-filters-checkbox:checked + .cjqc-mobile-filters-summary {
    border-color: var(--cjqc-green);
  }

  .cjqc-mobile-filters-checkbox:checked + .cjqc-mobile-filters-summary .cjqc-mobile-filters-icon::before {
    transform: rotate(90deg);
  }

  .cjqc-filters-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .cjqc-filters-wrapper .widget,
  .cjqc-filters-wrapper .woocommerce-widget-layered-nav,
  .cjqc-filters-wrapper ul {
    flex: 1 1 160px;
  }
}

@media (max-width: 480px) {
  .cjqc-filters-wrapper {
    flex-direction: column;
  }
}


.cjqc-contact-recaptcha-note {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.82rem;
  color: #6b6b6b;
}

/* Panier Gutenberg: le theme WP applique outline noir via .wp-site-blocks :focus */
.woocommerce-cart .wp-site-blocks .wc-block-cart table:focus,
.woocommerce-cart .wp-site-blocks .wc-block-cart table:focus-visible,
.woocommerce-cart .wp-site-blocks table.wc-block-cart-items:focus,
.woocommerce-cart .wp-site-blocks table.wc-block-cart-items:focus-visible,
.woocommerce-cart .wp-site-blocks .wc-block-cart-items:focus,
.woocommerce-cart .wp-site-blocks .wc-block-cart-items:focus-visible,
.woocommerce-cart .wp-site-blocks .wc-block-cart tbody:focus,
.woocommerce-cart .wp-site-blocks .wc-block-cart tbody:focus-visible,
.woocommerce-cart .wp-site-blocks tr.wc-block-cart-items__row:focus,
.woocommerce-cart .wp-site-blocks tr.wc-block-cart-items__row:focus-visible,
.woocommerce-cart .wp-site-blocks .wc-block-cart table tr:focus,
.woocommerce-cart .wp-site-blocks .wc-block-cart table tr:focus-visible,
.woocommerce-cart .wp-site-blocks .wc-block-cart table td:focus,
.woocommerce-cart .wp-site-blocks .wc-block-cart table td:focus-visible {
  outline: none;
}

/* === Order confirmation: lignes produits style panier === */
.woocommerce-order-received .wc-block-order-confirmation-totals__table, .cjqc-account-order-view .wc-block-order-confirmation-totals__table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-order-received .cjqc-confirmation-item td, .cjqc-account-order-view .cjqc-confirmation-item td {
  vertical-align: top;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.woocommerce-order-received .cjqc-confirmation-item__image, .cjqc-account-order-view .cjqc-confirmation-item__image {
  width: 72px;
  padding-left: 0 !important;
}

.woocommerce-order-received .cjqc-confirmation-item__image img, .cjqc-account-order-view .cjqc-confirmation-item__image img,
.woocommerce-order-received .cjqc-confirmation-item__img, .cjqc-account-order-view .cjqc-confirmation-item__img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.woocommerce-order-received .cjqc-confirmation-item__img-placeholder, .cjqc-account-order-view .cjqc-confirmation-item__img-placeholder {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
}

.woocommerce-order-received .cjqc-confirmation-item__product, .cjqc-account-order-view .cjqc-confirmation-item__product {
  text-align: left;
}

.woocommerce-order-received .cjqc-confirmation-item__wrap, .cjqc-account-order-view .cjqc-confirmation-item__wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.woocommerce-order-received .cjqc-confirmation-item__wrap .wc-block-components-product-name, .cjqc-account-order-view .cjqc-confirmation-item__wrap .wc-block-components-product-name {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.woocommerce-order-received .cjqc-confirmation-item__prices, .cjqc-account-order-view .cjqc-confirmation-item__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.95em;
  opacity: 0.9;
}

.woocommerce-order-received .cjqc-confirmation-item__qty, .cjqc-account-order-view .cjqc-confirmation-item__qty {
  opacity: 0.75;
}

.woocommerce-order-received .cjqc-confirmation-item__product .wc-item-meta, .cjqc-account-order-view .cjqc-confirmation-item__product .wc-item-meta,
.woocommerce-order-received .cjqc-confirmation-item__product .wc-block-components-product-details, .cjqc-account-order-view .cjqc-confirmation-item__product .wc-block-components-product-details {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9em;
  opacity: 0.85;
}

.woocommerce-order-received .cjqc-confirmation-item__product .wc-item-meta li, .cjqc-account-order-view .cjqc-confirmation-item__product .wc-item-meta li {
  margin: 0;
}

.woocommerce-order-received .cjqc-confirmation-item__total, .cjqc-account-order-view .cjqc-confirmation-item__total {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  width: 1%;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table thead th, .cjqc-account-order-view .wc-block-order-confirmation-totals__table thead th {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table tfoot th, .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot th,
.woocommerce-order-received .wc-block-order-confirmation-totals__table tfoot td, .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot td {
  padding: 0.65rem 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table tfoot th, .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot th {
  text-align: right;
  font-weight: 500;
}

@media (max-width: 600px) {
  .woocommerce-order-received .cjqc-confirmation-item__image, .cjqc-account-order-view .cjqc-confirmation-item__image {
    width: 56px;
  }
  .woocommerce-order-received .cjqc-confirmation-item__image img, .cjqc-account-order-view .cjqc-confirmation-item__image img,
  .woocommerce-order-received .cjqc-confirmation-item__img, .cjqc-account-order-view .cjqc-confirmation-item__img,
  .woocommerce-order-received .cjqc-confirmation-item__img-placeholder, .cjqc-account-order-view .cjqc-confirmation-item__img-placeholder {
    width: 48px;
    height: 48px;
  }
}

/* === Order confirmation: polish === */
.woocommerce-order-received .cjqc-order-details-title, .cjqc-account-order-view .cjqc-order-details-title {
  font-weight: 700;
}

.woocommerce-order-received .cjqc-billing-address-title, .cjqc-account-order-view .cjqc-billing-address-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.woocommerce-order-received .wc-block-order-confirmation-totals__table tfoot td.wc-block-order-confirmation-totals__total, .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot td.wc-block-order-confirmation-totals__total,
.woocommerce-order-received .cjqc-price-nowrap, .cjqc-account-order-view .cjqc-price-nowrap {
  white-space: nowrap;
}

.woocommerce-order-received .wc-block-order-confirmation-order-note, .cjqc-account-order-view .wc-block-order-confirmation-order-note {
  margin-top: 1.25rem;
  padding: 0;
  border: none;
  background: transparent;
}

.woocommerce-order-received .wc-block-order-confirmation-order-note__label, .cjqc-account-order-view .wc-block-order-confirmation-order-note__label {
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.woocommerce-order-received .wc-block-order-confirmation-order-note__body, .cjqc-account-order-view .wc-block-order-confirmation-order-note__body {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: transparent;
}

.woocommerce-order-received .wc-block-order-confirmation-order-note__body > p, .cjqc-account-order-view .wc-block-order-confirmation-order-note__body > p {
  margin-top: 0;
  margin-bottom: 0;
}

.woocommerce-order-received .cjqc-confirmation-pickup, .cjqc-account-order-view .cjqc-confirmation-pickup {
  margin: 1.5rem 0 0.5rem;
}

.woocommerce-order-received .cjqc-confirmation-pickup__label, .cjqc-account-order-view .cjqc-confirmation-pickup__label {
  margin: 0.85rem 0 0.4rem;
}

.woocommerce-order-received .cjqc-confirmation-pickup__label strong, .cjqc-account-order-view .cjqc-confirmation-pickup__label strong {
  font-weight: 700;
}

.woocommerce-order-received .cjqc-confirmation-pickup__box, .cjqc-account-order-view .cjqc-confirmation-pickup__box {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: transparent;
}

/* Masquer un wrapper additional-fields vide / residuel */
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-additional-fields-wrapper:empty, .cjqc-account-order-view .wp-block-woocommerce-order-confirmation-additional-fields-wrapper:empty,
.woocommerce-order-received .wc-block-order-confirmation-additional-fields-wrapper:has(.wc-block-components-additional-fields-list:empty), .cjqc-account-order-view .wc-block-order-confirmation-additional-fields-wrapper:has(.wc-block-components-additional-fields-list:empty) {
  display: none;
}

/* Mon compte : pleine largeur du conteneur (evite content-size trop etroit) */
body.woocommerce-account main.cjqc-wrap.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.woocommerce-account main.cjqc-wrap > .wp-block-post-title,
body.woocommerce-account main.cjqc-wrap > .wp-block-post-content,
body.woocommerce-account main.cjqc-wrap > .entry-content {
  max-width: none;
}

/* Mon compte > Adresses : une seule adresse (facturation), pleine largeur */
body.woocommerce-account .woocommerce-Addresses.col2-set,
body.woocommerce-account .woocommerce-Addresses.col2-set .u-column1,
body.woocommerce-account .woocommerce-Addresses.col2-set .u-column2,
body.woocommerce-account .woocommerce-Address {
  width: 100%;
  float: none;
  max-width: none;
}

/* Mon compte > Adresses : lien Modifier aligne a gauche */
body.woocommerce-account .woocommerce-Address-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
body.woocommerce-account .woocommerce-Address-title .edit,
body.woocommerce-account .woocommerce-Address-title a.edit {
  float: none;
  margin-left: 0;
  text-align: left;
}

/* Mon compte > Voir commande : petits ajustements */
.cjqc-account-order-view {
  margin-top: 1.25rem;
}
.cjqc-account-order-view .cjqc-order-details-title {
  margin-bottom: 1rem;
}
.cjqc-account-order-addresses {
  margin-top: 1.75rem;
}
.cjqc-account-order-address {
  display: block;
  font-style: normal;
  line-height: 1.55;
}
.cjqc-account-order-address p {
  margin: 0.35rem 0 0;
}
.cjqc-account-order-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Centrage force des titres home (override styles blocs WP) */
.cjqc-search-band,
.cjqc-search-band .cjqc-wrap,
.cjqc-participants,
.cjqc-participants .cjqc-wrap {
  text-align: center;
}

.cjqc-search-band .wp-block-heading,
.cjqc-participants .wp-block-heading {
  text-align: center !important;
}

/* Mon compte > Voir commande mobile */
@media (max-width: 781px) {
  /* Navigation compte au-dessus, contenu pleine largeur */
  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    margin-top: 1.25rem;
  }

  .cjqc-account-order-view {
    overflow-x: visible;
  }

  .cjqc-account-order-view .wc-block-order-confirmation-totals__table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
  }

  .cjqc-account-order-view .wc-block-order-confirmation-totals__table thead {
    display: none;
  }

  .cjqc-account-order-view .wc-block-order-confirmation-totals__table tbody,
  .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot {
    display: block;
    width: 100%;
  }

  /* Ligne produit : image + infos, total en dessous a droite */
  .cjqc-account-order-view .cjqc-confirmation-item {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "image product"
      "total total";
    column-gap: 0.85rem;
    row-gap: 0.45rem;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
  }

  .cjqc-account-order-view .cjqc-confirmation-item td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
    width: auto !important;
  }

  .cjqc-account-order-view .cjqc-confirmation-item__image {
    grid-area: image;
    width: 72px !important;
  }

  .cjqc-account-order-view .cjqc-confirmation-item__image img,
  .cjqc-account-order-view .cjqc-confirmation-item__img,
  .cjqc-account-order-view .cjqc-confirmation-item__img-placeholder {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px;
  }

  .cjqc-account-order-view .cjqc-confirmation-item__product {
    grid-area: product;
    min-width: 0;
    text-align: left !important;
  }

  .cjqc-account-order-view .cjqc-confirmation-item__wrap {
    min-width: 0;
  }

  .cjqc-account-order-view .cjqc-confirmation-item__wrap .wc-block-components-product-name {
    display: block;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .cjqc-account-order-view .cjqc-confirmation-item__total {
    grid-area: total;
    text-align: right !important;
    font-weight: 700;
    padding-top: 0.15rem !important;
  }

  /* Totaux : label a gauche, montant a droite */
  .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot tr {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    width: 100%;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
  }

  .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot th,
  .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot td {
    display: block;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important;
  }

  .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot th {
    text-align: left !important;
    flex: 1 1 auto;
    font-weight: 500;
  }

  .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot td,
  .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot td.wc-block-order-confirmation-totals__total {
    text-align: right !important;
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 600;
  }
}

/* Voir commande : overrides shop_table WooCommerce */
.woocommerce .cjqc-account-order-view table.shop_table,
.woocommerce-page .cjqc-account-order-view table.shop_table,
body.woocommerce-view-order .cjqc-account-order-view table.shop_table {
  text-align: right !important;
}

.cjqc-account-order-view .cjqc-confirmation-item__image,
.cjqc-account-order-view .cjqc-confirmation-item__product,
.cjqc-account-order-view .cjqc-confirmation-item__wrap,
.cjqc-account-order-view thead th.cjqc-confirmation-item__product,
.cjqc-account-order-view thead th.cjqc-confirmation-item__image {
  text-align: left !important;
}

.cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot th,
.cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot td.wc-block-order-confirmation-totals__total {
  text-align: right !important;
}

/* Moyen de paiement : ligne pleine largeur (colspan 3) */
.cjqc-account-order-view .cjqc-order-payment-method__cell {
  padding: 0.75rem 0.75rem !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: right !important;
  white-space: normal !important;
}

.cjqc-account-order-view .cjqc-order-payment-method__cell,
.cjqc-account-order-view .cjqc-order-payment-method__cell * {
  white-space: normal !important;
}

.cjqc-account-order-view .cjqc-order-payment-method__label {
  /* Meme graisse que les labels tfoot (th) */
  font-weight: 500 !important;
  font-size: inherit;
  color: inherit;
}

.cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot th.wc-block-order-confirmation-totals__label {
  font-weight: 500 !important;
}

.cjqc-account-order-view .cjqc-order-payment-method__value {
  font-weight: 600;
}

@media (max-width: 781px) {
  .cjqc-account-order-view .wc-block-order-confirmation-totals__table tfoot tr.cjqc-order-payment-method {
    display: block !important;
    width: 100%;
  }

  .cjqc-account-order-view .cjqc-order-payment-method__cell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0.55rem 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .cjqc-account-order-view .cjqc-order-payment-method__label,
  .cjqc-account-order-view .cjqc-order-payment-method__value {
    display: inline;
    white-space: normal !important;
  }
}

/* Liens produit (image + nom) sur confirmation / voir commande */
.cjqc-account-order-view .cjqc-confirmation-item__image a,
.woocommerce-order-received .cjqc-confirmation-item__image a {
  display: inline-block;
  line-height: 0;
}
.cjqc-account-order-view .cjqc-confirmation-item__wrap .wc-block-components-product-name:hover,
.woocommerce-order-received .cjqc-confirmation-item__wrap .wc-block-components-product-name:hover {
  text-decoration: underline;
}


/* Variation truck / trailer warning */
.single-product .cjqc-variation-table-warning-col {
  width: 2.4rem;
  text-align: center;
  vertical-align: middle;
}

.single-product .cjqc-truck-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.single-product .cjqc-truck-icon svg {
  display: block;
}

/* Woo Blocks places form.cart in a column grid (min-content auto auto).
   The truck banner must not become an extra horizontal grid track. */
.single-product .wp-block-woocommerce-add-to-cart-form form.cart.cjqc-has-variation-table,
.single-product .wc-block-add-to-cart-form form.cart.cjqc-has-variation-table,
.single-product form.cart.variations_form.cjqc-has-variation-table {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  grid-auto-flow: row;
  grid-template-columns: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.single-product form.cart.cjqc-has-variation-table .woocommerce-variation-add-to-cart,
.single-product form.cart.cjqc-has-variation-table .variations_button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}


.single-product .cjqc-truck-warning {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #f0c36d;
  background: #fff8e8;
  color: #5c4813;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.single-product .cjqc-truck-warning[hidden] {
  display: none !important;
}

.single-product .cjqc-truck-warning__icon {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.single-product .cjqc-truck-warning__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* === Panier: pas de scroll horizontal mobile + avertissement transport === */
.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-cart .wc-block-cart,
.woocommerce-cart .wc-block-cart-items,
.woocommerce-cart table.wc-block-cart-items {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.woocommerce-cart .wc-block-cart-items__row,
.woocommerce-cart .wc-block-cart-item__product,
.woocommerce-cart .wc-block-cart-item__total,
.woocommerce-cart .wc-block-cart-item__quantity,
.woocommerce-cart .wc-block-components-product-name,
.woocommerce-cart .wc-block-components-product-details {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.woocommerce-cart .wc-block-components-product-name,
.woocommerce-cart .wc-block-components-product-details {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.woocommerce-cart .cjqc-cart-truck-warning,
.woocommerce-checkout .cjqc-cart-truck-warning {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #f0c36d;
  background: #fff8e8;
  color: #5c4813;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 781px) {
  .woocommerce-cart main.cjqc-wrap,
  .woocommerce-cart .wp-block-post-content,
  .woocommerce-cart .wp-block-woocommerce-cart,
  .woocommerce-cart .wc-block-cart {
    max-width: 100%;
    overflow-x: clip;
  }

  .woocommerce-cart .wc-block-cart-items,
  .woocommerce-cart table.wc-block-cart-items,
  .woocommerce-cart .wc-block-cart-items__row,
  .woocommerce-cart .wc-block-cart-item__product,
  .woocommerce-cart .wc-block-cart-item__quantity,
  .woocommerce-cart .wc-block-cart-item__total,
  .woocommerce-cart .wc-block-cart-item__wrap {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .woocommerce-cart table.wc-block-cart-items {
    width: 100% !important;
  }

  /* Annule notre ancienne grille custom qui faisait chevaucher nom et sous-total. */
  .woocommerce-cart .wc-block-cart-item__product,
  .woocommerce-cart .wc-block-cart-item__quantity,
  .woocommerce-cart .wc-block-cart-item__total,
  .woocommerce-cart .wc-block-cart-item__image {
    grid-column: unset;
    grid-row: unset;
    position: relative;
    z-index: auto;
  }

  .woocommerce-cart .wc-block-cart-item__total {
    white-space: nowrap;
  }

  .woocommerce-cart .wc-block-cart-item__product {
    flex: 1 1 auto;
    min-width: 0;
  }

  .woocommerce-cart .wc-block-components-product-name,
  .woocommerce-cart .wc-block-components-product-details,
  .woocommerce-cart .cjqc-cart-truck-warning {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}


/* Panier: masquer le libelle "Transport:" devant l'encadre */
.woocommerce-cart .wc-block-components-product-details li:has(.cjqc-cart-truck-warning) .wc-block-components-product-details__name,
.woocommerce-checkout .wc-block-components-product-details li:has(.cjqc-cart-truck-warning) .wc-block-components-product-details__name,
.woocommerce-cart .wc-block-components-product-details li:has(.cjqc-cart-truck-warning) .wc-block-components-product-details__name::after,
.woocommerce-checkout .wc-block-components-product-details li:has(.cjqc-cart-truck-warning) .wc-block-components-product-details__name::after {
  display: none !important;
}

.woocommerce-cart .wc-block-components-product-details li:has(.cjqc-cart-truck-warning),
.woocommerce-checkout .wc-block-components-product-details li:has(.cjqc-cart-truck-warning) {
  display: block;
  margin-top: 0.35rem;
}

.woocommerce-cart .wc-block-components-product-details li:has(.cjqc-cart-truck-warning) .wc-block-components-product-details__value,
.woocommerce-checkout .wc-block-components-product-details li:has(.cjqc-cart-truck-warning) .wc-block-components-product-details__value {
  margin: 0;
  display: block;
}
