/* 0.6.17 — one alignment frame, independent of viewport aspect ratio. */
:root{
 --dv-shell-max:90rem;
 --dv-shell-gutter:clamp(1rem,3vw,3rem);
 --dv-shell-width:min(calc(100% - var(--dv-shell-gutter) * 2),var(--dv-shell-max));
 --dv-shell-edge:max(var(--dv-shell-gutter),calc((100% - var(--dv-shell-max)) / 2));
 --dv-cover-max:120rem;
}
/* Shared outer edges: logo, navigation, page copy, cards and footer. */
.dv-header .dv-header-container,
.dv-footer .dv-footer-container,
.divina-container,
.dv-catalog.dv-catalog-wide .dv-catalog-grid,
.dv-catalog.dv-catalog-wide .dv-catalog-toolbar,
.dv-catalog .dv-catalog-body,
.dv-catalog .dv-empty{
 width:var(--dv-shell-width);max-width:var(--dv-shell-max);margin-inline:auto;
 padding-inline:0;
}
.dv-header .dv-header-container>*{min-width:0}
.dv-header .dv-tools{flex-shrink:0}
.dv-footer-top,.dv-footer-bottom,.dv-footer-groups{min-width:0}
.dv-footer-top>*,.dv-footer-bottom>*,.dv-footer-groups>*{min-width:0;overflow-wrap:anywhere}
.dv-footer .dv-club{justify-self:end;width:100%}
.dv-footer .dv-social{flex-wrap:wrap}
.dv-footer .dv-footer-legal{flex-wrap:wrap}
/* The dropdown shares the same edges without adding another inset. */
@media(min-width:1200px){
 .dv-header .dv-nav-panel{padding:2rem var(--dv-shell-edge) 1.5rem}
 .dv-header .dv-nav-panel-inner{width:100%;max-width:none;margin:0}
 .dv-header .dv-panel-close{right:0}
 .dv-header .dv-nav-list{gap:clamp(.5rem,1vw,1.25rem)}
 .dv-header .dv-nav-root>details>summary,.dv-header .dv-nav-root>.dv-menu-entry{font-size:clamp(.8rem,.85vw,.95rem)}
 .dv-header .dv-mega-products-layout{grid-template-columns:repeat(3,minmax(0,1fr))}
 .dv-header .dv-mega-products-layout>*,.dv-header .dv-hair-menu-cards>*{min-width:0}
 .dv-header .dv-menu-caption,.dv-header .dv-menu-label{overflow-wrap:anywhere}
 .dv-header .dv-logo{width:8rem}
 .dv-header .dv-store-trigger span{display:none}
}
/* Cover artwork stays intact: no fixed-height crop, no object-fit:cover.
   Grid lets long editorial copy increase the hero height without clipping it. */
.dv-catalog .dv-catalog-hero{display:grid;grid-template-columns:minmax(0,1fr);isolation:isolate}
.dv-catalog .dv-catalog-hero>picture{
 grid-area:1/1;display:block;width:min(100%,var(--dv-cover-max));
 justify-self:center;align-self:center;min-width:0;
}
.dv-catalog .dv-catalog-hero>picture img{
 display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:right center;
}
.dv-catalog .dv-catalog-hero .dv-catalog-heading{
 position:relative;inset:auto;grid-area:1/1;align-self:center;z-index:1;
 display:flex;flex-direction:column;justify-content:center;
 width:var(--dv-shell-width);max-width:var(--dv-shell-max);margin-inline:auto;
 padding:clamp(1.5rem,2.5vw,3rem) 0;
}
.dv-catalog .dv-catalog-heading>*{max-width:58rem;overflow-wrap:anywhere}
.dv-catalog .dv-catalog-hero.has-cover .dv-catalog-heading>*{max-width:52%}
.dv-catalog .dv-catalog-claim{font-size:clamp(1.4rem,2vw,2rem)}
.dv-catalog .dv-catalog-intro{font-size:clamp(.875rem,1vw,1rem)}
.dv-catalog.dv-catalog-wide .dv-catalog-toolbar{flex-wrap:wrap;overflow:visible;gap:8px;padding-block:16px}
.dv-catalog.dv-catalog-wide .dv-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 24px}
.dv-catalog .dv-product-card{min-width:0}
.dv-catalog .dv-product-image{max-height:320px}
.dv-catalog .dv-product-meta>span{min-width:0;overflow-wrap:anywhere}
/* Home cover uses the same copy edge; artwork is contained on very wide screens. */
@media(min-width:992px){
 .dv-hero .carousel-item{height:clamp(28rem,48vw,57.6rem)}
 .dv-hero picture{width:min(100%,var(--dv-cover-max));margin-inline:auto}
 .dv-hero .dv-hero-image{object-fit:contain;object-position:right center}
 .dv-hero .dv-hero-copy{left:var(--dv-shell-edge);width:min(42%,38rem);max-width:38rem;top:50%;transform:translateY(-30%)}
}
@media(max-width:1199.98px){
 .dv-header .dv-header-bar>.dv-header-container{width:var(--dv-shell-width);padding-inline:0}
 .dv-catalog.dv-catalog-wide .dv-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px}
}
@media(max-width:991.98px){
 /* The dedicated mobile artwork is never overlapped by long page copy. */
 .dv-catalog .dv-catalog-hero.has-cover>picture{grid-area:1/1}
 .dv-catalog .dv-catalog-hero.has-cover .dv-catalog-heading{grid-area:2/1}
 .dv-catalog .dv-catalog-hero.has-cover .dv-catalog-heading>*{max-width:100%}
 .dv-hero .dv-hero-copy{left:var(--dv-shell-edge)}
}
@media(max-width:650px){
 .dv-catalog.dv-catalog-wide .dv-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}
 .dv-catalog.dv-catalog-wide .dv-catalog-toolbar{flex-wrap:nowrap;overflow-x:auto}
 .dv-catalog .dv-catalog-toolbar>.dv-pill{flex-shrink:0}
 .dv-footer .dv-club{justify-self:stretch;max-width:none}
}
@media(max-width:359px){
 .dv-header .dv-header-bar>.dv-header-container{grid-template-columns:repeat(3,minmax(40px,1fr)) minmax(0,1.6fr) repeat(3,minmax(40px,1fr))}
 .dv-header .dv-tool,.dv-header .dv-menu-toggle{min-width:40px;width:40px}
}
/* Product/editorial rails use the frame; full-bleed section backgrounds stay full width. */
.dv-home .dv-kits>.dv-rail,
.dv-home .dv-lines>.dv-lines-container,
.dv-home .dv-reviews .dv-rail{width:var(--dv-shell-width);max-width:var(--dv-shell-max);margin-inline:auto}
.dv-home .dv-track-kits,.dv-home .dv-track-lines,.dv-home .dv-track-reviews{width:100%;padding-inline:0!important;scroll-padding-inline:0}
@media(min-width:1200px){
 .dv-home .dv-reviews .dv-rail-controls{position:static;inset:auto;transform:none;justify-content:center;margin-top:1rem;pointer-events:auto}
 .dv-home .dv-track-reviews figure{min-height:16rem;padding:2.5rem 1.5rem}
}

/* 0.6.28: desktop megamenus fit the viewport and share the header grid. */
@media(min-width:1200px){
 .dv-header .dv-nav-panel{max-height:none;overflow:visible;padding:2.75rem var(--dv-shell-edge) 1rem}
 .dv-header .dv-panel-close{right:var(--dv-shell-edge);top:.4rem;width:2.2rem;height:2.2rem;margin:0;display:grid;place-items:center;padding:0;line-height:1}
 .dv-header .dv-nav-panel-inner{width:auto;gap:1rem 1.5rem;transform-origin:top left}
 .dv-header .dv-mega-products-layout{grid-template-rows:auto auto}
 .dv-header .dv-mega-products-layout:not(:has(.dv-mega-promoselections)){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .dv-header .dv-menu-overview{margin:0;padding-right:3rem;line-height:1.2}
 .dv-header .dv-menu-group>details>summary{min-height:0;padding:0 0 .5rem;font-size:.9rem;line-height:1.2}
 .dv-header .dv-menu-entry{min-height:0;padding:.25rem 0;gap:.15rem;line-height:1.2}
 .dv-header .dv-menu-caption{font-size:.82rem;line-height:1.2}
 .dv-header .dv-mega-lines .dv-menu-children{gap:.45rem;width:68%}
 .dv-header .dv-menu-line-visual{width:29%;right:.75rem;max-height:13rem;top:24%}
 .dv-header .dv-mega-benefits .dv-menu-children{gap:.6rem 1rem}
 .dv-header .dv-mega-benefits .dv-menu-art{width:clamp(3.25rem,9dvh,5rem)}
 .dv-header .dv-mega-benefits .dv-menu-entry{font-size:.75rem}
 .dv-header .dv-mega-categories .dv-menu-children{gap:.4rem}
 .dv-header .dv-mega-categories .dv-menu-entry{padding:.45rem .8rem;font-size:.85rem}
 .dv-header .dv-mega-promoselections .dv-menu-children{gap:.65rem}
 .dv-header .dv-mega-promoselections .dv-menu-art{max-height:clamp(4rem,15dvh,8rem)}
 .dv-header .dv-hair-menu-cards{gap:1.25rem}
 .dv-header .dv-hair-menu-cards .dv-menu-art{max-height:clamp(7rem,26dvh,15rem);object-fit:contain}
 .dv-header .dv-hair-menu-cards .dv-menu-label{font-size:1.15rem}
 .dv-header .dv-hair-menu-intro{font-size:.9rem;line-height:1.3}
 .dv-header .dv-hair-menu-intro .dv-menu-art{max-height:9rem}
}

@media(min-width:1200px){
 .dv-header [data-dv-line-preview]{height:13rem;pointer-events:none}
 .dv-header [data-dv-line-preview] picture{display:block;width:100%;height:100%}
 .dv-header [data-dv-line-preview] .dv-line-preview-image{display:block;width:100%;height:100%;max-height:13rem;object-fit:contain}
 .dv-header [data-dv-line-preview][hidden]{display:none}
 .dv-header .dv-line-entry:is(:hover,:focus-visible) .dv-menu-label{text-decoration:underline;text-underline-offset:.2em}
}
