/* ==========================================================================
   Matins d'Avril: product pages (side panel + content of the 4 tabs)
   Single place to edit the design. Panel widths: variables below.
   ========================================================================== */
:root{
  --ma-ink:#000; --ma-rose:#F4A6A5; --ma-blue:#E2EAF8; --ma-brown:#75312B; --ma-cotton:#7C854E; --ma-yellow:#F0EC8D;
  --ma-line:rgba(0,0,0,.10); --ma-grey:#D3D3D3;
  --ma-panel-width:max(30vw,380px);               /* side panel width: 30% of the screen, never below 380px */
  --ma-panel-width-size:var(--ma-panel-width);    /* size guide panel width (same as the others) */
  --ma-ease:cubic-bezier(.22,1,.36,1);
}

/* ---------- Existing Woodmart side panel (.wd-side-hidden): wider + styling ---------- */
.wd-side-hidden.ma-side{width:var(--ma-panel-width)!important;max-width:100vw;--wd-side-hidden-w:var(--ma-panel-width);color:var(--ma-ink);background:#fff}
.wd-side-hidden.ma-side.ma-side-size{--wd-side-hidden-w:var(--ma-panel-width-size)}
.wd-side-hidden.ma-side .wd-heading{padding:1.25rem 2rem .5rem;border:0}
.wd-side-hidden.ma-side .wd-heading .title{font-weight:inherit;font-size:2rem;line-height:1.2;font-family:inherit;color:var(--ma-ink);text-transform:none;letter-spacing:0}
.wd-side-hidden.ma-side .woocommerce-Tabs-panel{padding:2rem 2rem 4rem}
.wd-hidden-tab-title{font-family:inherit;letter-spacing:.16em;text-transform:uppercase;font-weight:600;font-size:.8125rem}
@media (max-width:700px){.wd-side-hidden.ma-side{width:100%!important}.wd-side-hidden.ma-side .wd-heading{padding-left:1.5rem;padding-right:1.5rem}.wd-side-hidden.ma-side .wd-heading .title{font-size:3rem}.wd-side-hidden.ma-side .woocommerce-Tabs-panel{padding:1.5rem 1.5rem 8rem}}

/* ---------- Tab content (same inside the panel and without JavaScript) ---------- */
.ma-tab{font-family:inherit;font-weight:inherit;color:var(--ma-ink);font-size:1rem;line-height:1.65}
:where(.ma-tab p,.ma-tab ul,.ma-tab h3){margin:0;padding:0}
.ma-tab,.ma-tab *{font-family:inherit}
.ma-icon{display:flex;justify-content:center;margin:0 0 1.5rem}
.ma-icon img{display:block;width:164px;height:164px;max-width:100%;object-fit:contain}
.ma-size .ma-icon img{width:100%;height:auto;max-height:none}
.ma-lead{margin-bottom:1.75rem;font-size:1.1rem;line-height:1.6;font-weight:inherit}
.ma-text{margin-bottom:.8rem}
.ma-sub{margin:2rem 0 .75rem;font-weight:600;font-size:.7rem;font-family:inherit;letter-spacing:.22em;text-transform:uppercase;color:var(--ma-ink)}
.ma-tab .ma-lines{list-style:none;margin:0;padding:0}
.ma-lines li{padding:.8rem 0;border-top:1px solid var(--ma-line)}
.ma-lines li:last-child{border-bottom:1px solid var(--ma-line)}
.ma-chips{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.75rem}
.ma-chip{display:inline-flex;align-items:center;gap:.5rem;padding:.35rem .9rem .35rem .45rem;border:1px solid var(--ma-grey);border-radius:999px;background:#fff;font-weight:700;font-size:.66rem;font-family:inherit;letter-spacing:.1em;text-transform:uppercase}
.ma-chip:not(:has(img)){padding-left:.9rem}
.ma-chip img{display:block;width:26px;height:26px;object-fit:contain;border-radius:50%}
/* fabric composition */
.ma-comp{margin:1.2rem 0 1.4rem}
.ma-comp-label{margin-bottom:.4rem;font-weight:600;font-size:.68rem;font-family:inherit;letter-spacing:.16em;text-transform:uppercase}

.ma-bar{display:flex;height:12px}
.ma-bar span{display:block;height:100%;border-radius:999px;flex:0 1 calc(var(--p) * 1%)}
.ma-bar span+span{margin-left:3px}
/* Bar fill animation is pure CSS: each segment grows from 0 to its width (flex-basis), driven by the class Woodmart toggles on the panel */
.wd-side-hidden.ma-side:not(.wd-opened) .ma-bar span{flex-basis:0%}
.wd-side-hidden.ma-side.wd-opened .ma-bar span{flex-basis:calc(var(--p) * 1%);transition:flex-basis 1.6s var(--ma-ease) .45s}
.ma-comp-text{margin-top:.7rem;font-size:1.1rem;font-weight:inherit}
.ma-comp-text b{font-weight:700;font-size:1.35rem}
.ma-group{margin-bottom:1.75rem}
.ma-group+.ma-group{padding-top:1.5rem;border-top:1px solid var(--ma-line)}
/* manufacturing and certifications */
.ma-statement{margin-bottom:1.25rem;font-size:1.25rem;line-height:1.4;font-weight:inherit}
.ma-statement b{font-weight:700}
.ma-cert{display:flex;gap:1.1rem;align-items:flex-start;padding:1.15rem 0;border-top:1px solid var(--ma-line)}
.ma-cert:last-of-type{border-bottom:1px solid var(--ma-line)}
.ma-badge{flex:0 0 4rem;display:flex;align-items:center;justify-content:center;width:4rem;height:3.8rem;padding:.3rem;border:1px solid var(--ma-grey);border-radius:.65rem;background:#fff;font-weight:700;font-size:.67rem;line-height:1.2;font-family:inherit;text-align:center;overflow:hidden}
.ma-badge img{display:block;width:100%;height:100%;object-fit:contain}
.ma-badge.ma-flag{padding:0}.ma-badge.ma-flag svg{width:100%;height:100%;display:block}
.ma-cert-name{margin-bottom:.3rem;font-weight:700;font-size:.72rem;font-family:inherit;letter-spacing:.16em;text-transform:uppercase}
.ma-cert .ma-text{margin:0}
/* size guide */
.ma-table-wrap{margin:1.5rem 0;border:1px solid rgba(0,0,0,.07);border-radius:1.2rem;overflow:auto;background:#fff}
.ma-sizes th,.ma-sizes td{font-family:inherit}
.ma-sizes{width:100%;border-collapse:collapse;font-size:1rem;font-variant-numeric:tabular-nums}
.ma-sizes thead th{padding:.8rem .5rem;background:rgba(0,0,0,.035);font-weight:700;font-size:.62rem;line-height:1.3;font-family:inherit;letter-spacing:.1em;text-transform:uppercase;text-align:center}
.ma-sizes tbody th,.ma-sizes tbody td{padding:.7rem .5rem;text-align:center;border-top:1px solid var(--ma-line);transition:background .3s}
.ma-sizes thead th:first-child,.ma-sizes tbody th{padding-left:1rem;text-align:left;font-weight:700}
.ma-sizes tbody tr.is-clickable{cursor:pointer}
.ma-sizes tbody tr.is-clickable:hover{background:rgba(0,0,0,.03)}
.ma-sizes tbody tr.is-active{background:rgba(124,133,78,.1)}
.ma-sizes tbody tr.is-active th{box-shadow:inset 3px 0 0 var(--ma-cotton)}
.ma-sizes tbody tr.is-active td{font-weight:700}
.ma-help{margin-top:2rem;padding:1.3rem 1.5rem;background:#f7f7f7;border:1px solid rgba(0,0,0,.07);border-radius:1.25rem}
.ma-help a{color:var(--ma-ink);font-weight:700;text-decoration:underline;text-underline-offset:3px;word-break:break-word}
.ma-guide{margin:1.5rem 0}
.ma-result{display:flex;flex-direction:column;gap:.1rem;margin-bottom:1.25rem}
.ma-result span{font-weight:700;font-size:.68rem;font-family:inherit;letter-spacing:.16em;text-transform:uppercase}
.ma-result strong{font-weight:600;font-size:2.4rem;line-height:1;font-family:inherit;display:inline-block}
.ma-result strong.bump{animation:maBump .5s cubic-bezier(.34,1.56,.64,1)}
@keyframes maBump{0%{transform:scale(.6)}100%{transform:scale(1)}}
.ma-note{margin-top:.3rem;font-size:.9rem;color:#b45309}
.ma-slider{--pct:.5;--fill:var(--ma-rose);margin-bottom:1.1rem}
.ma-slider:nth-of-type(2n){--fill:var(--ma-blue)}
.ma-slider:nth-of-type(3n){--fill:var(--ma-brown)}
.ma-slider-top{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.4rem}
.ma-slider-top label{font-weight:700;font-size:.66rem;font-family:inherit;letter-spacing:.14em;text-transform:uppercase}
.ma-slider-top output{min-width:3.6rem;padding:.12rem .6rem;border-radius:999px;background:var(--fill);color:#000;font-weight:700;font-size:.85rem;font-family:inherit;text-align:center}
.ma-slider:nth-of-type(3n) output{color:#fff}
.ma-slider input{-webkit-appearance:none;appearance:none;display:block;width:100%;height:26px;margin:0;background:transparent;cursor:pointer}
.ma-slider input::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(90deg,var(--fill) calc(var(--pct)*100%),rgba(0,0,0,.1) 0)}
.ma-slider input::-moz-range-track{height:6px;border-radius:999px;background:linear-gradient(90deg,var(--fill) calc(var(--pct)*100%),rgba(0,0,0,.1) 0)}
.ma-slider input::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-8px;border-radius:50%;background:#fff;border:3px solid var(--fill);box-shadow:0 6px 12px -2px rgba(0,0,0,.3)}
.ma-slider input::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid var(--fill)}
