/* StreetLegend V45.3: compact, readable product hero + separate product and angle carousels.
   Loaded last on the product page. Does not modify commerce state. */
body.sani-p5 .p5-intro h1 {display:flex;flex-direction:row;align-items:baseline;flex-wrap:wrap;column-gap:.18em;row-gap:0;line-height:1.06;font-size:clamp(40px,4.5vw,64px);letter-spacing:-.048em;margin:6px 0 6px;overflow-wrap:normal}
body.sani-p5 .p5-intro h1 em {order:-1;white-space:normal;color:#9d2744}
body.sani-p5 .p5-intro h1 span {order:0;white-space:normal}
body.sani-p5 .p5-description {color:#484148;font-size:clamp(13.5px,1.03vw,15px);line-height:1.55;max-width:49ch;margin:0 0 7px}
body.sani-p5 .p5-tagline {color:#493e43;font-size:13px;line-height:1.45;margin:0 0 7px;font-weight:600}
body.sani-p5 .p5-facts {gap:6px;max-width:450px}
body.sani-p5 .p5-facts dt {color:#34262d;font-size:12px;line-height:1.35}
body.sani-p5 .p5-facts dd {color:#534750;font-size:12.5px;line-height:1.4}
body.sani-p5 .p5-factsheet-detail:has(#p5-factsheet[hidden]) {display:none}
body.sani-p5 .p5-purchase {gap:9px;margin-top:10px}
body.sani-p5 .p5-fineprint {color:#5b5357;font-size:11px;line-height:1.5;max-width:47ch}
body.sani-p5 .p5-bottle-wrap {top:clamp(98px,13dvh,138px);bottom:clamp(72px,12dvh,104px);right:clamp(15px,4vw,65px);width:min(48%,670px)}
body.sani-p5 .p5-bottle {filter:drop-shadow(12px 20px 16px #391e2d24)}
/* SAME PRODUCT ANGLES: thumbnails deliberately live beneath the title. */
body.sani-p5 .sl453-angle-gallery {max-width:100%;padding:0;margin:3px 0 6px;z-index:3}
body.sani-p5 .sl453-angle-caption {display:block;color:#68565e;font:700 10px/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.13em;margin-bottom:4px}
body.sani-p5 .sl45-gallery {justify-content:flex-start;gap:8px;padding:1px 2px 4px;scrollbar-width:thin;max-width:100%}
body.sani-p5 .sl45-thumb {width:49px;height:54px;flex:0 0 49px;padding:4px;border-radius:10px;border-color:#d5cdd0;box-shadow:none;transition:border-color .2s,transform .2s}
body.sani-p5 .sl45-thumb.is-current {border:2px solid #a62944}
body.sani-p5 .sl45-thumb:focus-visible {outline:3px solid #9d2744;outline-offset:2px}
/* Keep existing NEXT/PREVIOUS PRODUCT buttons separate, below the bottle. */
body.sani-p5 .p5-carousel {bottom:clamp(17px,3dvh,35px);right:clamp(18px,4vw,65px)}
body.sani-p5 .sl453-cta-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:9px;width:min(100%,560px)}
body.sani-p5 .sl453-cta-row .p5-primary,body.sani-p5 .sl453-cta-row .sl45-view-info {min-width:0;width:100%;margin:0;min-height:43px;height:auto;padding:9px 10px;font-size:12px;line-height:1.25;border-radius:10px;box-shadow:none}
body.sani-p5 .sl453-cta-row .sl45-view-info {display:flex;align-items:center;justify-content:center;gap:7px;background:#fffafc;border-color:#dacbd0;color:#40343a;font-weight:700}
body.sani-p5 .sl453-info-short {display:none}
/* Crossfade overlay only for selected photo angle; reduced motion honored. */
body.sani-p5 .sl453-photo-outgoing {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:contain!important;pointer-events:none;z-index:2;opacity:1;transform:none!important;transition:opacity .32s ease,filter .32s ease}
body.sani-p5 .sl453-photo-outgoing.sl453-photo-leaving {opacity:0;filter:blur(2px)}
body.sani-p5 .p5-bottle.sl453-photo-incoming {opacity:0;transform:translateY(7px) scale(.985);transition:opacity .31s ease,transform .31s ease}
body.sani-p5 .p5-bottle.sl453-photo-incoming.sl453-photo-visible {opacity:1;transform:translateY(0) scale(1)}
@media (min-width:701px) {
 body.sani-p5 .p5-information {width:min(48%,660px);margin-left:clamp(28px,6.5vw,93px);padding:clamp(112px,15dvh,130px) 0 clamp(15px,2dvh,28px)}
 body.sani-p5 .p5-intro {padding-top:0}
 body.sani-p5 .p5-purchase-controls {gap:9px}
 body.sani-p5 .p5-price {font-size:clamp(28px,2.55vw,37px)}
 body.sani-p5 .p5-quantity,body.sani-p5 .p5-switch-icon {height:41px}
 body.sani-p5 .p5-quantity button {height:35px}
}
@media (min-width:701px) and (max-height:750px) {
 body.sani-p5 .p5-information {padding-top:clamp(108px,15dvh,118px);padding-bottom:17px}
 body.sani-p5 .p5-intro h1 {font-size:clamp(39px,4.05vw,56px);margin:5px 0 4px}
 body.sani-p5 .sl45-thumb {height:46px;flex-basis:44px;width:44px}
 body.sani-p5 .sl453-angle-gallery {margin:0 0 6px}
 body.sani-p5 .p5-purchase {margin-top:8px;gap:6px}
 body.sani-p5 .p5-bottle-wrap {top:80px;bottom:70px}
}
@media (max-width:700px) {
 body.sani-p5 .p5-experience {overflow-x:clip;overflow-y:visible}
 body.sani-p5 .p5-main {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:0;align-content:start;min-height:100dvh;height:auto;padding:clamp(80px,11dvh,96px) clamp(17px,5vw,24px) 14px}
 body.sani-p5 .p5-information {display:contents}
 body.sani-p5 .p5-intro {grid-column:1;grid-row:1;width:100%;min-width:0;max-width:100%;position:relative;z-index:2;padding:0;margin:0}
 body.sani-p5 .p5-intro h1 {font-size:clamp(29px,8.1vw,42px);margin:5px 0 5px;line-height:1.02;gap:0 .15em;max-width:100%;letter-spacing:-.05em}
 body.sani-p5 .sl453-angle-gallery {margin:5px 0 8px}
 body.sani-p5 .sl453-angle-caption {font-size:9px;margin-bottom:3px}
 body.sani-p5 .sl45-gallery {gap:6px;padding:0 1px 3px;overflow-x:auto}
 body.sani-p5 .sl45-thumb {width:43px;height:48px;flex:0 0 43px;border-radius:8px;padding:3px}
 body.sani-p5 .p5-tagline {font-size:12px;margin:0 0 5px;max-width:none}
 body.sani-p5 .p5-description {font-size:13px;line-height:1.46;max-width:64ch;margin:0 0 8px;color:#403940}
 body.sani-p5 .p5-facts {display:flex;flex-wrap:wrap;column-gap:20px;row-gap:5px;max-width:100%;margin:0}
 body.sani-p5 .p5-facts>div {gap:1px}
 body.sani-p5 .p5-facts dt {font-size:11px}
 body.sani-p5 .p5-facts dd {font-size:12px}
 body.sani-p5 .p5-bottle-wrap {grid-column:1;grid-row:2;position:relative;inset:auto!important;top:auto!important;bottom:auto!important;right:auto!important;left:auto!important;width:100%;max-width:100%;height:clamp(195px,30dvh,265px);min-height:0;margin:3px 0 0;padding:0;display:flex;align-items:center;justify-content:center;overflow:visible;z-index:1}
 body.sani-p5 .p5-bottle {width:100%;height:100%!important;min-height:0!important;max-width:100%;max-height:100%!important;object-fit:contain;object-position:center}
 body.sani-p5 .p5-purchase {grid-column:1;grid-row:3;position:relative;z-index:3;align-items:stretch;justify-content:flex-start;width:100%;max-width:100%;min-width:0;margin:0;padding:3px 0 0;gap:7px}
 body.sani-p5 .p5-purchase-controls {gap:8px;flex-wrap:nowrap}
 body.sani-p5 .p5-price {font-size:27px}
 body.sani-p5 .p5-unit {font-size:11px;color:#5a5155}
 body.sani-p5 .p5-quantity,body.sani-p5 .p5-switch-icon {height:35px}
 body.sani-p5 .p5-quantity {min-width:122px}
 body.sani-p5 .p5-quantity button {height:30px}
 body.sani-p5 .p5-switch-icon {width:39px}
 body.sani-p5 .sl453-cta-row {width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 body.sani-p5 .sl453-cta-row .p5-primary,body.sani-p5 .sl453-cta-row .sl45-view-info {height:42px;min-height:42px;padding:8px 6px;font-size:12px}
 body.sani-p5 .sl453-info-long {display:none}
 body.sani-p5 .sl453-info-short {display:inline}
 body.sani-p5 .p5-fineprint {font-size:10.5px;line-height:1.35;max-width:none}
 body.sani-p5 .p5-carousel {grid-column:1;grid-row:4;position:relative;inset:auto;bottom:auto!important;right:auto!important;left:auto!important;top:auto!important;justify-self:end;max-width:100%;z-index:3;margin:7px 0 0;gap:7px}
 body.sani-p5 .p5-shadow {display:none}
}
@media (max-width:390px) {
 body.sani-p5 .p5-main {padding-top:75px}
 body.sani-p5 .p5-intro h1 {font-size:clamp(27px,7.9vw,32px)}
 body.sani-p5 .p5-description {font-size:12.8px;line-height:1.4}
 body.sani-p5 .sl45-thumb {width:39px;height:44px;flex-basis:39px}
 body.sani-p5 .p5-bottle-wrap {height:clamp(195px,29dvh,240px)}
 body.sani-p5 .sl453-cta-row .sl45-view-info {gap:5px}
}
@media (max-width:700px) and (max-height:660px) {
 body.sani-p5 .p5-main {padding-top:72px}
 body.sani-p5 .p5-bottle-wrap {height:clamp(118px,19dvh,145px)}
 body.sani-p5 .p5-description {font-size:12.5px;line-height:1.38}
}
/* Short phones: retain readable controls and full text in the details below.
   Clamp only the hero teaser, never the underlying product description data. */
@media (max-width:700px) and (max-height:740px) {
 body.sani-p5 .p5-main {padding-top:70px;padding-bottom:8px}
 body.sani-p5 .p5-intro h1 {font-size:clamp(27px,7.7vw,32px)}
 body.sani-p5 .p5-description {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:13px;line-height:1.4;margin-bottom:5px}
 body.sani-p5 .p5-bottle-wrap {height:clamp(120px,20dvh,145px)}
 body.sani-p5 .p5-purchase {gap:4px}
 body.sani-p5 .p5-carousel {margin-top:4px}
}
@media (prefers-reduced-motion:reduce) {
 body.sani-p5 .sl453-photo-outgoing,body.sani-p5 .p5-bottle.sl453-photo-incoming {transition:none!important;animation:none!important}
}
/* Inventory guide buttons: responsive dashboard heading. */
.sl453-guide-actions {display:flex;flex-wrap:wrap;gap:8px;align-items:center}
