/* Category page and product page in the home-vert design system (prototype, DIGISEO-88 steps 3 and 4).
   Everything under .hv; tokens from home-vert.css. Own classes: hvs-. Product cards are home-vert's .hv-pcard. */

.hv .hvs{padding:20px 20px 40px;display:flex;flex-direction:column;gap:20px}
.hv .hvs ::selection{background:var(--accent);color:var(--accent-ink)}
.hv .hvs h1,.hv .hvs h2,.hv .hvs h3,.hv .hvs p,.hv .hvs ul,.hv .hvs ol,.hv .hvs dl,.hv .hvs dd{margin:0}
.hv .hvs ul{list-style:none;padding:0}

.hv .hvs-crumbs{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;font-size:13px;color:var(--muted)}
.hv .hvs-crumbs a{color:var(--ink2)}
.hv .hvs-crumbs a:hover{color:var(--link-hover)}
.hv .hvs-crumbs [aria-current]{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}

.hv .hvs-head{display:flex;flex-direction:column;gap:10px;padding:8px 0 0}
.hv .hvs-head h1{font:800 clamp(28px,1.8vw + 20px,42px)/1.08 var(--display);letter-spacing:-.025em;text-wrap:balance;color:var(--ink)}
.hv .hvs-head p{font-size:16px;line-height:1.55;color:var(--ink2);max-width:72ch}

/* ---------- sub-categories ---------- */
.hv .hvs-children{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.hv .hvs-children a:not(:has(.hv-mm-chip)){grid-template-columns:minmax(0,1fr)}
.hv .hvs-children a:not(:has(.hv-mm-chip)) .hvs-child-sub{grid-column:1}
.hv .hvs-children a{display:grid;grid-template-columns:32px minmax(0,1fr);gap:4px 12px;align-items:center;background:#fff;border:1px solid transparent;border-radius:10px;padding:16px;color:var(--ink);text-decoration:none;transition:border-color .15s,box-shadow .2s}
.hv .hvs-children a:hover{border-color:var(--nav2);box-shadow:0 8px 24px -14px rgba(15,23,32,.3)}
.hv .hvs-child-n{font:700 16px/1.25 var(--display)}
.hv .hvs-child-sub{grid-column:2;font-size:13px;line-height:1.4;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* above a product list the sub-categories are one scrolling row of chips */
.hv .hvs-children-row{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.hv .hvs-children-row a{display:flex;flex:none;align-items:center;min-height:44px;padding:8px 16px;border-color:var(--line2);border-radius:999px}
.hv .hvs-children-row a:has(.hv-mm-chip){padding-left:8px}
.hv .hvs-children-row .hvs-child-n{font:600 14px/1 var(--text)}
.hv .hvs-children-row .hvs-child-sub{display:none}
.hv .hvs-children-row .hv-mm-chip{border-radius:999px;width:28px;height:28px}

/* ---------- list ---------- */
.hv .hvs-cols{display:grid;grid-template-columns:288px minmax(0,1fr);gap:20px;align-items:start}
.hv .hvs-cat-nofilters .hvs-cols{grid-template-columns:minmax(0,1fr)}
.hv .hvs-results,.hv .hvs-list{display:flex;flex-direction:column;gap:16px;min-width:0}
.hv .hvs-list.sf-loading{opacity:.5;transition:opacity .15s}

.hv .hvs-toolbar{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:12px 16px}
.hv .hvs-count{font-size:14px;color:var(--ink2);font-variant-numeric:tabular-nums;margin-right:auto}
.hv .hvs-active{display:flex;flex-wrap:wrap;gap:6px;flex-basis:100%;order:3}
.hv .hvs-active a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px 0 12px;border-radius:999px;background:var(--tint);color:var(--accent-ink);font-size:13px;font-weight:600;text-decoration:none}
.hv .hvs-active a:hover{background:var(--accent)}
.hv .hvs-sort{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hv .hvs-sort label{font-size:13px;color:var(--muted)}
.hv .hvs-sort select{appearance:none;height:40px;padding:0 34px 0 12px;border:1px solid var(--line);border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2333404A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;color:var(--ink);font:500 14px/1 var(--text);cursor:pointer}
.hv .hvs-sort select:hover{border-color:var(--ink2)}
.hv .hvs-sort select+label{margin-left:8px}
/* the submit button is for visitors without script; with script the lists submit on change */
.hv .hvs-sort-go{height:40px;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:#fff;font:600 13px/1 var(--text);color:var(--ink)}
.hv .hvs-js .hvs-sort-go{position:absolute;left:-9999px}

/* the list is a white panel of homepage cards (.hv-pcard, styled by home-vert.css): nothing about the card is redefined */
.hv .hvs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;background:#fff;border-radius:10px;padding:20px}
.hv .hvs-out{font-size:12px;font-weight:600;color:var(--muted);margin-top:auto}
.hv .hvs-out+.hv-btn{margin-top:0}
.hv a.hvs-btn-quiet{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.hv a.hvs-btn-quiet:hover{background:var(--chip);color:var(--ink)}

.hv .hvs-empty{align-items:flex-start;gap:12px;padding:32px}
.hv .hvs-empty p{color:var(--ink2);font-size:15px}

.hv .hvs-pager{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 16px;padding-top:4px}
.hv .hvs-pager ul{display:flex;gap:6px}
.hv .hvs-pager-n,.hv .hvs-pager-gap{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font:600 14px/1 var(--text);font-variant-numeric:tabular-nums}
.hv a.hvs-pager-n{background:#fff;border:1px solid var(--line);color:var(--ink);text-decoration:none}
.hv a.hvs-pager-n:hover{border-color:var(--ink2)}
.hv .hvs-pager-n.on{background:var(--nav);color:#fff}
.hv .hvs-pager-gap{color:var(--muted);min-width:24px}
.hv a.hvs-pager-step{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 14px;border-radius:999px;color:var(--ink);font:600 14px/1 var(--text);text-decoration:none}
.hv a.hvs-pager-step:hover{background:#fff}

/* ---------- filters: the block printed by solimar-filters.php, re-skinned through its own variables ----------
   The shell's stylesheet resets every button inside .hv to the browser's look ([type]:where(.hv button)); that also
   hits the filter block's own buttons, so their look is restated here with enough weight. */
.hv .hvs-filters{min-width:0}
.hv .hvs-filters .sf{--sf-p:var(--nav2);--sf-b:var(--line2);--sf-t:var(--ink);--sf-m:var(--muted);font-family:var(--text)}
.hv .hvs-filters .sf button.sf-toggle{display:none}
.hv .hvs-filters .sf-heading{font-family:var(--text);color:var(--muted)}
.hv .hvs-filters .sf-card{border-color:transparent;box-shadow:none}
.hv .hvs-filters .sf-card.is-open{border-color:var(--line2)}
.hv .hvs-filters .sf button.sf-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:8px 10px 8px 14px;border:0;border-radius:0;background:none;color:var(--ink);font:600 14px/1.3 var(--text);text-align:left}
.hv .hvs-filters .sf button.sf-head:hover{color:var(--nav2)}
.hv .hvs-filters .sf-opt{min-height:36px}
.hv .hvs-filters .sf button.sf-apply{display:block;width:100%;height:40px;margin-top:10px;border:0;border-radius:999px;background:var(--accent);color:var(--accent-ink);font:700 13px/1 var(--text)}
.hv .hvs-filters .sf.sf-js button.sf-apply{display:none}
.hv button.hvs-filter-toggle{display:none;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font:600 15px/1 var(--text)}
.hv button.hvs-filter-toggle[aria-expanded=true]{border-color:var(--nav2);color:var(--nav2)}

/* help band */
.hv .hvs-help{flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px 40px;padding:24px 28px}
.hv .hvs-help>div:first-child{flex:1 1 360px;display:flex;flex-direction:column;gap:8px}
.hv .hvs-help h2{font:800 24px/1.15 var(--display);color:#fff}
.hv .hvs-help .hv-help-cta{flex-direction:row;flex-wrap:wrap;align-items:center;margin:0}

/* ---------- product ---------- */
.hv .hvs-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(20px,3vw,48px);padding:clamp(16px,2vw,28px);align-items:start}
.hv .hvs-gallery{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;position:sticky;top:20px}
.hv .hvs-gallery:not(:has(.hvs-thumbs)){grid-template-columns:minmax(0,1fr)}
.hv .hvs-stage{grid-column:2;grid-row:1;background:var(--soft);border-radius:10px;overflow:hidden;aspect-ratio:1}
.hv .hvs-gallery:not(:has(.hvs-thumbs)) .hvs-stage{grid-column:1}
.hv .hvs-stage a,.hv .hvs-stage .hv-noimg{display:block;width:100%;height:100%;cursor:zoom-in}
.hv .hvs-stage img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;display:block;padding:4%}
.hv .hvs-thumbs{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:8px;max-height:100%;overflow-y:auto;scrollbar-width:none}
.hv .hvs-thumbs a{display:block;border:1px solid var(--line2);border-radius:8px;overflow:hidden;background:var(--soft);aspect-ratio:1;transition:border-color .15s}
.hv .hvs-thumbs a:hover{border-color:var(--ink2)}
.hv .hvs-thumbs a.on{border-color:var(--nav2);box-shadow:0 0 0 1px var(--nav2)}
.hv .hvs-thumbs img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;display:block}

.hv .hvs-buy{display:flex;flex-direction:column;gap:14px;min-width:0}
.hv a.hvs-brand{align-self:flex-start;color:var(--nav2);font-size:12px}
.hv a.hvs-brand:hover{color:var(--nav)}
.hv .hvs-buy h1{font:800 clamp(24px,1.2vw + 18px,34px)/1.12 var(--display);letter-spacing:-.02em;text-wrap:balance;color:var(--ink)}
.hv .hvs-ref{display:flex;flex-wrap:wrap;gap:4px 20px;font-size:13px;color:var(--muted)}
.hv .hvs-ref strong{color:var(--ink2);font-weight:600;font-variant-numeric:tabular-nums}
.hv .hvs-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding-top:6px}
.hv .hvs-price strong{font:900 clamp(30px,1.4vw + 22px,40px)/1 var(--display);letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink)}
.hv .hvs-price span{font-size:15px;color:var(--muted);font-variant-numeric:tabular-nums}
.hv .hvs-stock{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ok)}
.hv .hvs-stock::before{content:"";width:8px;height:8px;border-radius:999px;background:currentColor}
.hv .hvs-stock-out{color:var(--promo)}

.hv .hvs-add{display:flex;flex-wrap:wrap;gap:10px;padding-top:4px}
.hv .hvs-qty{display:flex;align-items:center;height:52px;border:1px solid var(--line);border-radius:999px;background:#fff}
.hv .hvs-qty button{width:46px;height:100%;border:0;background:transparent;font:500 20px/1 var(--text);color:var(--ink);border-radius:999px}
.hv .hvs-qty button:hover{background:var(--chip)}
.hv .hvs-qty input{width:48px;height:100%;border:0;background:transparent;text-align:center;font:600 16px/1 var(--text);color:var(--ink);appearance:textfield;-moz-appearance:textfield}
.hv .hvs-qty input::-webkit-outer-spin-button,.hv .hvs-qty input::-webkit-inner-spin-button{appearance:none;margin:0}
.hv button.hvs-add-btn{flex:1 1 220px;height:52px;font-size:16px;box-shadow:0 8px 20px -10px rgba(27,77,46,.55)}

.hv .hvs-actions{display:flex;flex-wrap:wrap;gap:6px 20px}
.hv a.hvs-action{display:inline-flex;align-items:center;gap:8px;min-height:40px;color:var(--ink2);font-size:14px;font-weight:500;text-decoration:none}
.hv a.hvs-action:hover{color:var(--nav2)}
.hv a.hvs-action-wa{color:var(--nav2);font-weight:600}

.hv .hvs-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;border-top:1px solid var(--line2);margin-top:6px}
.hv .hvs-facts>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line2);font-size:14px}
.hv .hvs-facts dt{color:var(--muted)}
.hv .hvs-facts dd{color:var(--ink);font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.hv a.hvs-facts-more{align-self:flex-start;min-height:32px;display:inline-flex;align-items:center}

.hv .hvs-services{display:grid;gap:0;background:var(--soft);border-radius:10px;padding:4px 16px}
.hv .hvs-services li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;padding:12px 0;border-bottom:1px solid var(--line2);font-size:14px}
.hv .hvs-services li:last-child{border-bottom:0}
.hv .hvs-services strong{color:var(--ink)}
.hv .hvs-services span{grid-column:1;color:var(--ink2);font-size:13px}
.hv .hvs-services a{grid-column:2;grid-row:1/3;align-self:center;font-size:13px;white-space:nowrap}

.hv .hvs-anchors{position:sticky;top:0;z-index:5;display:flex;gap:4px;overflow-x:auto;background:var(--canvas);padding:8px 0;margin-block:-8px;scrollbar-width:none}
.hv .hvs-anchors a{flex:none;min-height:40px;display:inline-flex;align-items:center;padding:0 16px;border-radius:999px;color:var(--ink2);font:600 14px/1 var(--text);text-decoration:none}
.hv .hvs-anchors a:hover{background:#fff;color:var(--ink)}

.hv .hvs-detail{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.hv .hvs-detail-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.hv .hvs-detail-side{position:sticky;top:76px}
.hv .hvs-detail-side .hv-help h2{font:800 22px/1.15 var(--display);color:#fff}
.hv .hvs-section{padding:clamp(20px,2.6vw,36px);gap:18px;scroll-margin-top:64px}
.hv .hvs-section>h2{font:800 24px/1.15 var(--display);letter-spacing:-.01em}

.hv .hvs .hvs-prose{max-width:74ch;font-size:16px;line-height:1.7;color:var(--ink2)}
.hv .hvs .hvs-prose>*,.hv .hvs .hvs-prose>article>*{margin:0}
.hv .hvs .hvs-prose>*+*,.hv .hvs .hvs-prose>article>*+*{margin-top:1em}
.hv .hvs .hvs-prose h2,.hv .hvs .hvs-prose h3{font:700 19px/1.3 var(--display);color:var(--ink);margin-top:1.7em}
.hv .hvs .hvs-prose h4{font:700 16px/1.3 var(--text);color:var(--ink);margin-top:1.4em}
.hv .hvs .hvs-prose>:first-child,.hv .hvs .hvs-prose>article>:first-child{margin-top:0}
.hv .hvs-prose strong{color:var(--ink);font-weight:600}
.hv .hvs-prose a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
.hv .hvs .hvs-prose ul,.hv .hvs .hvs-prose ol{display:flex;flex-direction:column;gap:.4em;padding:0;list-style:none}
.hv .hvs-prose li{position:relative;padding-left:1.5em}
.hv .hvs-prose ul>li::before{content:"";position:absolute;left:.3em;top:.68em;width:7px;height:7px;border-radius:999px;background:var(--accent)}
.hv .hvs-prose table{width:100%;border-collapse:collapse;font-size:15px}
.hv .hvs-prose th,.hv .hvs-prose td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line2)}
.hv .hvs-prose img{height:auto;border-radius:8px}

.hv .hvs-spec{columns:2;column-gap:40px}
.hv .hvs-spec>div{break-inside:avoid;display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);gap:16px;padding:11px 0;border-bottom:1px solid var(--line2);font-size:15px;line-height:1.4}
.hv .hvs-spec dt{color:var(--muted)}
.hv .hvs-spec dd{color:var(--ink);font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}

.hv .hvs-downloads{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.hv .hvs-downloads a{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:52px;padding:8px 16px;border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:14px;font-weight:600;text-decoration:none}
.hv .hvs-downloads a:hover{border-color:var(--nav2);color:var(--nav2)}
.hv .hvs-downloads small{font-size:12px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}

.hv .hvs-related-row{grid-auto-columns:minmax(220px,1fr)}

/* phone: price and button stay reachable once the form has scrolled away */
.hv .hvs-sticky{position:fixed;left:0;right:0;bottom:0;z-index:14;display:none;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -8px 24px -12px rgba(15,23,32,.25)}
.hv .hvs-sticky>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.hv .hvs-sticky strong{font:800 18px/1 var(--display);font-variant-numeric:tabular-nums}
.hv .hvs-sticky span{font-size:12px;color:var(--muted)}

@media (prefers-reduced-motion:no-preference){
	html:has(.hvs-anchors){scroll-behavior:smooth}
}
@media (max-width:1100px){
	.hv .hvs-detail{grid-template-columns:minmax(0,1fr)}
	.hv .hvs-detail-side{position:static}
	.hv .hvs-spec{columns:1}
	.hv .hvs-cols{grid-template-columns:248px minmax(0,1fr)}
}
@media (max-width:900px){
	.hv .hvs-cols{grid-template-columns:minmax(0,1fr)}
	/* phone and tablet: the filters fold behind one button (with script; without it they stay open above the list) */
	.hv .hvs-js button.hvs-filter-toggle{display:flex}
	.hv .hvs-js .hvs-filters:not(.open) .sf{display:none}
	.hv .hvs-filters .sf{margin-top:12px}
	.hv .hvs-top{grid-template-columns:minmax(0,1fr)}
	.hv .hvs-gallery{position:static}
}
@media (max-width:768px){
	.hv .hvs{padding:16px 16px 32px;gap:16px}
	.hv .hvs-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
	.hv .hvs-grid .hv-pcard{padding:10px}
	.hv .hvs-grid .hv-pimg{height:150px}
	.hv .hvs-grid .hv-price strong{font-size:17px}
	.hv .hvs-grid a.hv-btn{padding:14px 6px;font-size:12px}
	.hv .hvs-toolbar{padding:12px}
	.hv .hvs-count{flex-basis:100%}
	.hv .hvs-sort{flex:1}
	.hv .hvs-sort select{flex:1;min-width:0}
	.hv .hvs-sort label[for=hvs-per-page],.hv .hvs-sort #hvs-per-page{display:none}
	.hv .hvs-children{grid-template-columns:minmax(0,1fr)}
	.hv .hvs-gallery{grid-template-columns:minmax(0,1fr)}
	.hv .hvs-stage{grid-column:1;grid-row:1}
	.hv .hvs-thumbs{grid-column:1;grid-row:2;flex-direction:row;overflow-x:auto}
	.hv .hvs-thumbs li{flex:0 0 64px}
	.hv .hvs-facts{grid-template-columns:minmax(0,1fr)}
	.hv .hvs-spec>div{grid-template-columns:minmax(0,42%) minmax(0,1fr);gap:12px;font-size:14px}
	.hv .hvs-services li{grid-template-columns:minmax(0,1fr)}
	.hv .hvs-services a{grid-column:1;grid-row:auto;justify-self:start;min-height:32px;display:inline-flex;align-items:center}
	.hv .hvs-sticky:not([hidden]){display:flex}
	.hv .hvs-product{padding-bottom:96px}
	.hv .hvs-help{padding:22px}
}

/* WooCommerce notices ("… a été ajouté à votre panier") above the page */
.hv .hvs .woocommerce-notices-wrapper:empty{display:none}
.hv .hvs .woocommerce-message,.hv .hvs .woocommerce-info,.hv .hvs .woocommerce-error{list-style:none;margin:0 0 4px;padding:14px 18px;border-radius:8px;background:var(--tint);color:var(--accent-ink);font-size:15px;line-height:1.5;display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}
.hv .hvs .woocommerce-error{background:var(--promo-tint);color:var(--promo)}
.hv .hvs .woocommerce-message a.button,.hv .hvs .woocommerce-info a.button{order:2;margin-left:auto;font-weight:700;color:var(--nav);text-decoration:underline}

/* not found */
.hv .hvs-404{align-items:flex-start;gap:16px;padding:clamp(24px,5vw,64px)}
.hv .hvs-404 h1{font:800 clamp(30px,3vw + 16px,52px)/1.05 var(--display);letter-spacing:-.025em;text-wrap:balance}
.hv .hvs-404 p{font-size:17px;line-height:1.55;color:var(--ink2);max-width:60ch}
.hv .hvs-404-search{width:100%;max-width:640px}
.hv .hvs-404-links{display:flex;flex-wrap:wrap;gap:8px}
.hv .hvs-404-links a{border:1px solid var(--line);color:var(--ink);padding:11px 16px;border-radius:999px;font-size:14px;font-weight:600;text-decoration:none}
.hv .hvs-404-links a:hover{border-color:var(--ink2)}

/* WordPress' own class for text meant for screen readers only; the theme's stylesheet normally hides it, this page must not depend on that */
.hv .screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
