/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Maison Select — visual system draft */
:root {
  --ms-ink: #171717;
  --ms-text: #333333;
  --ms-muted: #6f6a66;
  --ms-price: #8a5f43;
  --ms-line: rgba(23,23,23,.14);
  --ms-soft: #f5f2ee;
  --ms-content: 900px;
}

/* Global readability */
body {
  color: var(--ms-text);
  -webkit-font-smoothing: antialiased;
}

.site-content p,
.site-content li {
  line-height: 1.7;
}

/* Institutional / information pages */
body.page .site-content > article:not(.product) {
  font-size: 16px;
}

body.page .site-content > article:not(.product) > h1,
body.page .site-content > article:not(.product) > h2,
body.page .site-content > article:not(.product) > h3,
body.page .site-content > article:not(.product) > p,
body.page .site-content > article:not(.product) > ul,
body.page .site-content > article:not(.product) > ol {
  max-width: var(--ms-content);
  margin-left: auto;
  margin-right: auto;
}

body.page .site-content > article:not(.product) > h1 {
  margin-top: 54px;
  margin-bottom: 34px;
  color: var(--ms-ink);
  font-size: clamp(32px, 3.1vw, 42px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.025em;
}

body.page .site-content > article:not(.product) > h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  color: var(--ms-ink);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.015em;
}

body.page .site-content > article:not(.product) > p,
body.page .site-content > article:not(.product) > ul,
body.page .site-content > article:not(.product) > ol {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.75;
}

body.page .site-content > article:not(.product) a:not(.button) {
  color: var(--ms-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Elementor/WoodMart informational page titles */
body.page .elementor .title-wrapper .woodmart-title-container {
  color: var(--ms-ink);
  letter-spacing: -.015em;
}

body.page .elementor .title-after_title,
body.page .elementor .title-after_title p,
body.page .elementor .wd-text-block,
body.page .elementor .elementor-widget-text-editor {
  font-size: 16px;
  line-height: 1.7;
}

body.page .elementor .title-after_title h1 {
  margin: 10px 0 18px;
  color: var(--ms-ink);
  font-size: clamp(32px, 3.1vw, 42px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.025em;
}

/* FAQ */
body.page .e-n-accordion-item-title-text {
  color: var(--ms-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

body.page .e-n-accordion-item {
  border-color: var(--ms-line);
}

body.page .e-n-accordion-item .elementor-widget-text-editor,
body.page .e-n-accordion-item .wd-text-block {
  color: var(--ms-text);
  font-size: 16px;
  line-height: 1.7;
}

/* Product cards: make commercial hierarchy clearer */
.wd-products .wd-entities-title {
  margin-bottom: 8px;
  color: var(--ms-ink);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

/* Prices in product grids: explicit WoodMart selectors */
body .wd-product.product-grid-item .product-element-bottom > .price,
body .wd-product.product-grid-item .product-element-bottom > .price .amount,
body .wd-products .wd-product .price,
body .wd-products .wd-product .price .amount {
  color: var(--ms-price) !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 650 !important;
  letter-spacing: -.01em;
}

/* Single product: price should be immediately visible */
.single-product .summary .product_title {
  color: var(--ms-ink);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.single-product .summary > .price,
.single-product .summary-inner > .price,
.single-product .ms-product-price-row > .price {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--ms-price) !important;
  font-size: clamp(24px, 2.2vw, 28px) !important;
  line-height: 1.2;
  font-weight: 650 !important;
  letter-spacing: -.02em;
}

.single-product .ms-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.single-product .ms-product-price-row > .price {
  flex: 0 0 auto;
  margin: 0 !important;
}

.single-product .ms-product-shop-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 0 4px;
  border-bottom: 1px solid currentColor;
  color: var(--ms-ink);
  font-family: Lato, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease, opacity .2s ease;
}

.single-product .ms-product-shop-link:hover {
  color: var(--ms-gold);
}

.single-product .ms-product-shop-link svg {
  flex: 0 0 auto;
}

.single-product .woocommerce-product-details__short-description {
  color: var(--ms-text);
  font-size: 16px;
  line-height: 1.7;
}

/* Shop controls: quieter and more premium */
.shop-loop-head {
  border-color: var(--ms-line);
}

.shop-loop-head,
.shop-loop-head select,
.shop-loop-head a,
.woocommerce-result-count {
  font-size: 13px;
}

/* Forms */
.wpcf7 label {
  color: var(--ms-ink);
  font-size: 14px;
  font-weight: 500;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  font-size: 16px;
}

.wpcf7 .wpcf7-submit {
  min-height: 48px;
  padding-left: 28px;
  padding-right: 28px;
  letter-spacing: .04em;
}

/* Maison Select — harmonisation ciblée des pages éditoriales */
body.page-id-4400 .site-content,
body.page-id-4439 .site-content,
body.page-id-27759 .site-content,
body.page-id-27754 .site-content,
body.page-id-12 .site-content,
body.page-id-27757 .site-content,
body.page-id-3 .site-content,
body.page-id-27761 .site-content {
  padding-top: 18px;
  padding-bottom: 56px;
}

body.page-id-4400 .site-content h1,
body.page-id-4439 .site-content h1,
body.page-id-27759 .site-content h1,
body.page-id-27754 .site-content h1,
body.page-id-12 .site-content h1,
body.page-id-27757 .site-content h1,
body.page-id-3 .site-content h1,
body.page-id-27761 .site-content h1 {
  color: var(--ms-ink);
  font-size: clamp(34px, 3vw, 42px) !important;
  line-height: 1.12 !important;
  font-weight: 600 !important;
  letter-spacing: -.025em !important;
}

body.page-id-4400 .site-content h2,
body.page-id-4439 .site-content h2,
body.page-id-27759 .site-content h2,
body.page-id-27754 .site-content h2,
body.page-id-12 .site-content h2,
body.page-id-27757 .site-content h2,
body.page-id-3 .site-content h2,
body.page-id-27761 .site-content h2 {
  color: var(--ms-ink);
  font-size: clamp(23px, 2vw, 27px) !important;
  line-height: 1.28 !important;
  font-weight: 600 !important;
  letter-spacing: -.015em !important;
}

body.page-id-4400 .site-content p,
body.page-id-4439 .site-content p,
body.page-id-27759 .site-content p,
body.page-id-27754 .site-content p,
body.page-id-12 .site-content p,
body.page-id-27757 .site-content p,
body.page-id-3 .site-content p,
body.page-id-27761 .site-content p,
body.page-id-4400 .site-content li,
body.page-id-4439 .site-content li,
body.page-id-27759 .site-content li,
body.page-id-27754 .site-content li,
body.page-id-12 .site-content li,
body.page-id-27757 .site-content li,
body.page-id-3 .site-content li,
body.page-id-27761 .site-content li {
  font-size: 16px !important;
  line-height: 1.72 !important;
}

body.page-id-27754 .site-content > article,
body.page-id-27761 .site-content > article,
body.page-id-27757 .site-content > article,
body.page-id-3 .site-content > article,
body.page-id-12 .site-content > article {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

body.page-id-27754 .site-content > article > h1,
body.page-id-27761 .site-content > article > h1,
body.page-id-27757 .site-content > article > h1,
body.page-id-3 .site-content > article > h1,
body.page-id-12 .site-content > article > h1 {
  margin-top: 30px;
  margin-bottom: 30px;
}

body.page-id-27754 .site-content > article > h2,
body.page-id-27761 .site-content > article > h2,
body.page-id-27757 .site-content > article > h2,
body.page-id-3 .site-content > article > h2,
body.page-id-12 .site-content > article > h2 {
  margin-top: 38px;
  margin-bottom: 12px;
}

body.page-id-4439 .elementor .woodmart-title-container,
body.page-id-27759 .elementor .woodmart-title-container,
body.page-id-4400 .elementor .woodmart-title-container {
  font-size: 13px !important;
  line-height: 1.3 !important;
  text-transform: uppercase;
  letter-spacing: .12em !important;
  font-weight: 600 !important;
}

body.page-id-4439 .elementor .title-after_title h1,
body.page-id-27759 .elementor .title-after_title h1,
body.page-id-4400 .elementor .title-after_title h1 {
  margin-top: 12px;
  margin-bottom: 16px;
}

body.page-id-4439 .elementor .e-con-inner,
body.page-id-27759 .elementor .e-con-inner,
body.page-id-4400 .elementor .e-con-inner {
  max-width: 1040px;
}

body.page-id-27759 .e-n-accordion {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

body.page-id-27759 .e-n-accordion-item-title {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

body.page-id-27759 .e-n-accordion-item-title-text {
  font-size: 17px !important;
  font-weight: 600 !important;
}

body.page-id-4439 .wpcf7 input,
body.page-id-4439 .wpcf7 textarea {
  border-color: var(--ms-line);
}

body.page-id-4439 .wpcf7 textarea {
  min-height: 170px;
}

/* Maison Select — boutique premium */
body.post-type-archive-product .main-page-wrapper,
body.woocommerce-shop .main-page-wrapper {
  padding-top: 18px;
}

/* Introduction catalogue — courte, éditoriale et identique sur les deux pages */
body.woocommerce-shop .ms-catalog-intro,
body.tax-product_cat.term-t-shirts .ms-catalog-intro {
  max-width: 820px;
  margin: 6px 0 24px;
  padding: 12px 16px;
  border-left: 2px solid var(--ms-price);
  background: rgba(255, 255, 255, .24);
}

body.woocommerce-shop .ms-catalog-intro p,
body.tax-product_cat.term-t-shirts .ms-catalog-intro p {
  margin: 0;
  color: var(--ms-text);
  font-family: Lato, Arial, Helvetica, sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: .005em;
}

body.woocommerce-shop .ms-catalog-origin,
body.tax-product_cat.term-t-shirts .ms-catalog-origin {
  color: var(--ms-price);
  font-weight: 600;
}

@media (max-width: 767px) {
  body.woocommerce-shop .ms-catalog-intro,
  body.tax-product_cat.term-t-shirts .ms-catalog-intro {
    margin: 2px 0 20px;
    padding: 10px 13px;
  }

  body.woocommerce-shop .ms-catalog-intro p,
  body.tax-product_cat.term-t-shirts .ms-catalog-intro p {
    font-size: 14.5px;
    line-height: 1.5;
  }
}

body.post-type-archive-product .shop-loop-head,
body.woocommerce-shop .shop-loop-head {
  margin-bottom: 28px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--ms-line);
  border-bottom: 1px solid var(--ms-line);
}

body.post-type-archive-product .shop-loop-head .wd-shop-tools,
body.woocommerce-shop .shop-loop-head .wd-shop-tools {
  gap: 18px;
}

body.post-type-archive-product .woocommerce-result-count,
body.woocommerce-shop .woocommerce-result-count,
body.post-type-archive-product .shop-loop-head a,
body.woocommerce-shop .shop-loop-head a,
body.post-type-archive-product .shop-loop-head select,
body.woocommerce-shop .shop-loop-head select {
  color: var(--ms-muted);
  font-size: 12.5px !important;
  font-weight: 500;
  letter-spacing: .01em;
}

body.post-type-archive-product .woocommerce-ordering select,
body.woocommerce-shop .woocommerce-ordering select {
  min-width: 190px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: 0;
  border-bottom: 1px solid var(--ms-line);
  background: transparent !important;
}

body.post-type-archive-product .wd-products-per-page,
body.woocommerce-shop .wd-products-per-page,
body.post-type-archive-product .wd-products-shop-view,
body.woocommerce-shop .wd-products-shop-view {
  opacity: .78;
}

body.post-type-archive-product .wd-products,
body.woocommerce-shop .wd-products {
  row-gap: 30px;
}

body.post-type-archive-product .wd-product .product-wrapper,
body.woocommerce-shop .wd-product .product-wrapper {
  transition: transform .28s ease, box-shadow .28s ease;
}

body.post-type-archive-product .wd-product .product-element-top,
body.woocommerce-shop .wd-product .product-element-top {
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255,255,255,.22);
}

body.post-type-archive-product .wd-product .product-element-top img,
body.woocommerce-shop .wd-product .product-element-top img {
  transition: transform .42s ease;
}

body.post-type-archive-product .wd-product:hover .product-element-top img,
body.woocommerce-shop .wd-product:hover .product-element-top img {
  transform: scale(1.012);
}

body.post-type-archive-product .wd-product .product-element-bottom,
body.woocommerce-shop .wd-product .product-element-bottom {
  padding-top: 12px;
  padding-left: 2px;
  padding-right: 2px;
}

body.post-type-archive-product .wd-product .wd-entities-title,
body.woocommerce-shop .wd-product .wd-entities-title {
  margin-bottom: 6px;
  color: var(--ms-ink);
  font-size: 14.5px !important;
  line-height: 1.42;
  font-weight: 500;
}

body.post-type-archive-product .wd-buttons,
body.woocommerce-shop .wd-buttons {
  right: 12px;
  top: 12px;
  gap: 4px;
}

body.post-type-archive-product .wd-buttons .wd-action-btn,
body.woocommerce-shop .wd-buttons .wd-action-btn {
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(20,20,20,.08);
}

body.post-type-archive-product .wd-show-sidebar-btn a,
body.woocommerce-shop .wd-show-sidebar-btn a {
  font-weight: 600;
}

body.post-type-archive-product .wd-sidebar .widget-title,
body.woocommerce-shop .wd-sidebar .widget-title {
  color: var(--ms-ink);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.post-type-archive-product .wd-sidebar .widget,
body.woocommerce-shop .wd-sidebar .widget {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ms-line);
}

/* Origine commune, compacte, sous chaque produit des deux catalogues */
body.woocommerce-shop .wd-product .ms-card-origin-proof,
body.tax-product_cat.term-t-shirts .wd-product .ms-card-origin-proof {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 7px 0 0;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(91, 79, 67, .18);
  border-radius: 2px;
  background: rgba(255, 255, 255, .38);
  color: #4d4741;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 767px) {
  body.woocommerce-shop .wd-product .ms-card-origin-proof,
  body.tax-product_cat.term-t-shirts .wd-product .ms-card-origin-proof {
    margin-top: 6px;
    padding: 5px 6px;
    font-size: 9px;
  }
}

/* Traduction visuelle des deux derniers titres WoodMart en anglais */
body.post-type-archive-product #woodmart-woocommerce-layered-nav-7 > .widget-title,
body.woocommerce-shop #woodmart-woocommerce-layered-nav-7 > .widget-title,
body.post-type-archive-product #wd-widget-stock-status-9 > .widget-title,
body.woocommerce-shop #wd-widget-stock-status-9 > .widget-title {
  font-size: 0 !important;
}

body.post-type-archive-product #woodmart-woocommerce-layered-nav-7 > .widget-title::after,
body.woocommerce-shop #woodmart-woocommerce-layered-nav-7 > .widget-title::after {
  content: "Taille";
  font-size: 13px;
}

body.post-type-archive-product #wd-widget-stock-status-9 > .widget-title::after,
body.woocommerce-shop #wd-widget-stock-status-9 > .widget-title::after {
  content: "Disponibilité";
  font-size: 13px;
}

body.post-type-archive-product .wd-swatches-filter .wd-swatch,
body.woocommerce-shop .wd-swatches-filter .wd-swatch {
  min-width: 34px;
  min-height: 34px;
  border-color: var(--ms-line);
}

body.post-type-archive-product .wd-swatches-filter .wd-swatch:hover,
body.woocommerce-shop .wd-swatches-filter .wd-swatch:hover {
  border-color: var(--ms-ink);
}

/* Maison Select — fiche produit premium */
.single-product .product-image-summary-wrap {
  padding-top: 28px;
  padding-bottom: 34px;
}

.single-product .summary-inner {
  max-width: 560px;
}

.single-product .single-breadcrumbs-wrapper {
  margin-bottom: 18px;
}

.single-product .wd-breadcrumbs {
  color: var(--ms-muted);
  font-size: 12px;
}

.single-product .summary .product_title {
  margin-bottom: 10px;
  font-size: clamp(30px, 2.6vw, 38px) !important;
  font-weight: 600;
}

.single-product .woocommerce-product-details__short-description {
  margin-top: 18px;
  margin-bottom: 24px;
  color: var(--ms-text);
  font-size: 16px;
  line-height: 1.72;
}

.single-product form.variations_form {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--ms-line);
}

.single-product table.variations {
  margin-bottom: 18px;
}

.single-product table.variations th.label,
.single-product table.variations .label {
  padding-bottom: 10px;
  color: var(--ms-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.single-product .wd-swatches-product .wd-swatch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  margin-right: 8px !important;
  padding: 0 !important;
  border: 1px solid rgba(23,23,23,.28) !important;
  border-radius: 2px !important;
  background: rgba(255,255,255,.55) !important;
  color: var(--ms-ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.single-product .wd-swatches-product .wd-swatch:hover,
.single-product .wd-swatches-product .wd-swatch.wd-active {
  border-color: var(--ms-ink) !important;
  background: var(--ms-ink) !important;
  color: #fff !important;
}

.single-product .single_variation_wrap {
  margin-top: 8px;
}

.single-product .quantity {
  min-height: 48px;
  border: 1px solid var(--ms-line);
  background: rgba(255,255,255,.5);
}

.single-product .quantity input,
.single-product .quantity button {
  min-height: 46px;
}

.single-product .single_add_to_cart_button,
.single-product .wd-buy-now-btn {
  min-height: 48px;
  padding: 0 24px !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: transform .2s ease, opacity .2s ease;
}

.single-product .single_add_to_cart_button:hover,
.single-product .wd-buy-now-btn:hover {
  transform: translateY(-1px);
}

.single-product .wd-buy-now-btn {
  margin-left: 8px;
}

.single-product .wd-wishlist-btn {
  margin-top: 16px;
  color: var(--ms-muted);
}

.single-product .wd-wishlist-btn a {
  font-size: 13px;
}

.single-product .woocommerce-product-gallery {
  background: rgba(255,255,255,.18);
}

.single-product .wd-gallery-thumb .wd-carousel-item {
  opacity: .72;
  transition: opacity .2s ease;
}

.single-product .wd-gallery-thumb .wd-carousel-item:hover,
.single-product .wd-gallery-thumb .wd-carousel-item.wd-active {
  opacity: 1;
}

.single-product .woocommerce-tabs,
.single-product .wd-tabs {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--ms-line);
}

.single-product .woocommerce-tabs .tabs li a,
.single-product .wd-tabs .wd-nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .035em;
}

.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
.single-product .wd-tabs .wd-tab-content {
  max-width: 900px;
  color: var(--ms-text);
  font-size: 16px;
  line-height: 1.72;
}

.single-product .related-products,
.single-product .upsells-products {
  margin-top: 50px;
}

.single-product .related-products > h3,
.single-product .upsells-products > h3 {
  margin-bottom: 24px;
  color: var(--ms-ink);
  font-size: 24px;
  font-weight: 600;
}

@media (max-width: 767px) {
  body.page .site-content > article:not(.product) {
    font-size: 16px;
  }

  body.page .site-content > article:not(.product) > h1 {
    margin-top: 34px;
    margin-bottom: 24px;
  }

  body.page .site-content > article:not(.product) > h2 {
    margin-top: 32px;
  }

  body .wd-product.product-grid-item .product-element-bottom > .price,
  body .wd-product.product-grid-item .product-element-bottom > .price .amount,
  body .wd-products .wd-product .price,
  body .wd-products .wd-product .price .amount {
    font-size: 19px !important;
  }

  .single-product .summary > .price,
  .single-product .summary-inner > .price {
    font-size: 25px !important;
  }
}

/* Maison Select — header premium */
.whb-header .whb-general-header {
  border-bottom: 1px solid rgba(23,23,23,.08);
  box-shadow: none !important;
}

.whb-header .whb-general-header-inner {
  min-height: 72px;
}

.whb-header .site-logo img {
  transition: opacity .2s ease;
}

.whb-header .site-logo a:hover img {
  opacity: .82;
}

.whb-header .wd-nav-main > li > a {
  padding-left: 12px;
  padding-right: 12px;
  color: var(--ms-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.whb-header .wd-nav-main > li.current-menu-item > a,
.whb-header .wd-nav-main > li > a:hover {
  color: #8a5f43;
}

.whb-header .wd-tools-element > a {
  color: var(--ms-ink);
}

.whb-header .wd-tools-element {
  margin-left: 5px;
  margin-right: 5px;
}

.whb-header .wd-header-my-account .wd-tools-text,
.whb-header .wd-header-cart .wd-cart-subtotal {
  font-size: 12px;
  font-weight: 500;
}

.whb-header .wd-tools-icon {
  transition: opacity .2s ease, transform .2s ease;
}

.whb-header .wd-tools-element:hover .wd-tools-icon {
  opacity: .72;
  transform: translateY(-1px);
}

/* Maison Select — footer premium */
.wd-footer {
  margin-top: 56px;
  border-top: 1px solid var(--ms-line);
  background: rgba(245,242,238,.72);
}

.wd-footer .main-footer {
  padding-top: 46px;
  padding-bottom: 38px;
}

.wd-footer .footer-sidebar {
  row-gap: 28px;
}

.wd-footer .footer-widget .widget-title {
  margin-bottom: 18px;
  color: var(--ms-ink);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wd-footer .footer-widget li {
  margin-bottom: 10px;
}

.wd-footer .footer-widget a {
  color: var(--ms-muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.wd-footer .footer-widget a:hover {
  color: var(--ms-ink);
}

.wd-footer .copyrights-wrapper {
  border-top: 1px solid var(--ms-line);
}

.wd-footer .copyrights-wrapper,
.wd-footer .copyrights-wrapper p,
.wd-footer .copyrights-wrapper a {
  color: var(--ms-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Responsive polish */
@media (max-width: 1024px) {
  .whb-header .whb-general-header-inner {
    min-height: 66px;
  }

  .whb-header .site-logo img {
    max-width: 170px !important;
  }

  .wd-footer .main-footer {
    padding-top: 38px;
    padding-bottom: 32px;
  }
}

@media (max-width: 767px) {
  .whb-header .whb-general-header-inner {
    min-height: 60px;
  }

  .whb-header .whb-mobile-center .site-logo img {
    max-width: 145px !important;
  }

  .whb-header .wd-header-mobile-nav .wd-tools-text {
    font-size: 0;
  }

  .whb-header .wd-header-mobile-nav .wd-tools-icon {
    margin-right: 0;
  }

  .whb-header .whb-mobile-left,
  .whb-header .whb-mobile-right {
    min-width: 48px;
  }

  .wd-footer {
    margin-top: 38px;
  }

  .wd-footer .main-footer {
    padding-top: 32px;
    padding-bottom: 26px;
  }

  .wd-footer .footer-column {
    padding-bottom: 4px;
  }

  .wd-footer .footer-widget .widget-title {
    margin-bottom: 12px;
  }

  .wd-footer .footer-widget li {
    margin-bottom: 8px;
  }

  .wd-footer .footer-widget a {
    font-size: 14px;
  }

  .single-product .product-image-summary-wrap {
    padding-top: 12px;
    padding-bottom: 24px;
  }

  .single-product .summary .product_title {
    font-size: 28px !important;
    line-height: 1.18 !important;
  }

  .single-product .woocommerce-product-details__short-description {
    font-size: 15px;
    line-height: 1.65;
  }

  .single-product .single_add_to_cart_button,
  .single-product .wd-buy-now-btn {
    min-height: 46px;
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 11px !important;
  }

  .single-product .wd-buy-now-btn {
    margin-left: 5px;
  }

  body.woocommerce-shop .shop-loop-head,
  body.post-type-archive-product .shop-loop-head {
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  body.woocommerce-shop .wd-products,
  body.post-type-archive-product .wd-products {
    row-gap: 22px;
  }

  body.page .site-content h1 {
    font-size: 30px !important;
  }

  body.page .site-content h2 {
    font-size: 22px !important;
  }
}

/* Maison Select — raffinement panier / checkout */
.woocommerce-cart .cart_totals,
.woocommerce-checkout .woocommerce-checkout-review-order {
  border: 1px solid rgba(23,23,23,.10);
  background: rgba(250,248,245,.92);
  box-shadow: 0 14px 34px rgba(27,24,21,.045);
}

.woocommerce-cart .cart_totals .cart-totals-inner {
  padding: 28px 30px 24px;
}

.woocommerce-cart .cart_totals h2 {
  margin-bottom: 22px;
  color: var(--ms-ink);
  font-size: 23px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.015em;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  padding-top: 15px;
  padding-bottom: 15px;
  border-color: rgba(23,23,23,.08);
}

.woocommerce-cart .cart_totals table th {
  color: #2a2826;
  font-weight: 600;
}

.woocommerce-cart .cart_totals .amount,
.woocommerce-cart .cart_totals .woocommerce-Price-amount,
.woocommerce-checkout .woocommerce-checkout-review-order .amount,
.woocommerce-checkout .woocommerce-checkout-review-order .woocommerce-Price-amount {
  color: #9b8350 !important;
  font-weight: 700 !important;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td,
.woocommerce-checkout .woocommerce-checkout-review-order .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order .order-total td {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 18px;
}

.woocommerce-cart .cart_totals .order-total .amount,
.woocommerce-checkout .woocommerce-checkout-review-order .order-total .amount {
  color: #8d7546 !important;
  font-size: 22px !important;
  letter-spacing: -.01em;
}

.woocommerce-cart .ms-cart-city-search,
.woocommerce-checkout #billing_city + .select2 .select2-selection,
.woocommerce-checkout #shipping_city + .select2 .select2-selection {
  min-height: 46px !important;
  border: 1px solid rgba(23,23,23,.16) !important;
  border-radius: 2px !important;
  background: #fff !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.woocommerce-cart .ms-cart-city-search:focus,
.woocommerce-checkout .select2-container--open .select2-selection {
  border-color: rgba(23,23,23,.42) !important;
  box-shadow: 0 0 0 3px rgba(155,131,80,.08) !important;
  outline: none !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
.woocommerce-checkout #place_order {
  min-height: 52px !important;
  border: 1px solid #171717 !important;
  border-radius: 2px !important;
  background: #171717 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .075em !important;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(23,23,23,.09);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-checkout #place_order:hover {
  background: #292725 !important;
  border-color: #292725 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(23,23,23,.12);
}

.woocommerce-cart .coupon .button {
  min-height: 46px !important;
  border: 1px solid #7b7752 !important;
  border-radius: 2px !important;
  background: #7b7752 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .055em;
  text-transform: uppercase;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease !important;
}

.woocommerce-cart .coupon .button:hover {
  background: #696543 !important;
  border-color: #696543 !important;
  transform: translateY(-1px);
}

.woocommerce-cart .coupon input.input-text {
  min-height: 46px;
  border: 1px solid rgba(23,23,23,.14);
  border-radius: 2px;
  background: rgba(255,255,255,.94);
}

.woocommerce-cart .ms-stock-limit-note {
  margin-top: 7px;
  color: #7a5d49;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .woocommerce-cart .cart_totals .cart-totals-inner {
    padding: 24px 20px 20px;
  }

  .woocommerce-cart .cart_totals h2 {
    font-size: 21px;
  }

  .woocommerce-cart .cart_totals table th,
  .woocommerce-cart .cart_totals table td {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .woocommerce-cart .wc-proceed-to-checkout .checkout-button,
  .woocommerce-checkout #place_order {
    min-height: 50px !important;
    font-size: 11px !important;
  }

  .woocommerce-cart .coupon .button {
    width: 100%;
  }
}

/* Boutique — prix harmonisés avec la catégorie T-shirts */
html body.woocommerce-shop .wd-products .wd-product.product-grid-item .product-element-bottom > .price,
html body.woocommerce-shop .wd-products .wd-product.product-grid-item .product-element-bottom > .price .amount,
html body.woocommerce-shop .wd-products .wd-product.product-grid-item .product-element-bottom > .price bdi,
html body.woocommerce-shop .wd-products .wd-product.product-grid-item .product-element-bottom > .price .woocommerce-Price-currencySymbol {
  color: var(--ms-price) !important;
  font-family: Lato, Arial, Helvetica, sans-serif !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  vertical-align: baseline !important;
}

html body.woocommerce-shop .wd-products .wd-product.product-grid-item .product-element-bottom > .price .woocommerce-Price-currencySymbol {
  display: inline !important;
  margin-left: 0 !important;
}

@media (max-width: 767px) {
  html body.woocommerce-shop .wd-products .wd-product.product-grid-item .product-element-bottom > .price,
  html body.woocommerce-shop .wd-products .wd-product.product-grid-item .product-element-bottom > .price .amount,
  html body.woocommerce-shop .wd-products .wd-product.product-grid-item .product-element-bottom > .price bdi,
  html body.woocommerce-shop .wd-products .wd-product.product-grid-item .product-element-bottom > .price .woocommerce-Price-currencySymbol {
    font-size: 19px !important;
  }
}

/* Fiche produit — aperçu court et Voir plus sur mobile */
button.ms-description-toggle {
  display: none;
}

@media (max-width: 767px) {
  body.single-product .woocommerce-Tabs-panel--description .ms-description-collapsible.is-collapsed {
    position: relative;
  }

  body.single-product .woocommerce-Tabs-panel--description .ms-description-collapsible.is-collapsed > *:nth-child(n+4) {
    display: none !important;
  }

  body.single-product .woocommerce-Tabs-panel--description .ms-description-collapsible.is-collapsed > *:nth-child(3) {
    display: -webkit-box !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  body.single-product .woocommerce-Tabs-panel--description .ms-description-collapsible.is-collapsed::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 54px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(245, 242, 238, 0), var(--ms-soft) 88%);
  }

  body.single-product .woocommerce-Tabs-panel--description .ms-description-collapsible.is-expanded > * {
    display: revert;
  }

  body.single-product button.ms-description-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    min-height: 0 !important;
    margin: 14px 0 4px;
    padding: 0 0 4px !important;
    border: 0 !important;
    border-bottom: 1px solid currentColor !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--ms-ink) !important;
    font-family: Lato, Arial, Helvetica, sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  body.single-product .ms-description-toggle-icon {
    flex: 0 0 auto;
    transition: transform .25s ease;
  }

  body.single-product button.ms-description-toggle.is-expanded .ms-description-toggle-icon {
    transform: rotate(180deg);
  }

  body.single-product .related-products {
    margin-top: 20px !important;
  }
}

