/* Shared discovery and natural bottle proportions across LAPO collections. */
.picker-group{display:block;padding:16px 14px 7px;border-top:1px solid var(--line);font-size:10px;letter-spacing:.14em;color:var(--muted)}
body[data-series] .gallery-stage .product-hit{width:76%;height:73%;aspect-ratio:auto}
.series-mark{font-size:10px;letter-spacing:.16em;color:#6f7e66}
.catalog-subfilters{display:flex;flex-wrap:wrap;gap:8px;padding:16px 0 0}
.catalog-subfilters[hidden]{display:none!important}
.catalog-subfilters button{min-height:44px;padding:8px 15px;font-size:12px;color:var(--muted);border-bottom:1px solid transparent}
.catalog-subfilters button[aria-pressed=true]{color:var(--green);border-color:var(--green)}
.catalog-subfilters button:hover{color:var(--green)}
body[data-series] .ingredient-data:has(>article:only-child){grid-template-columns:1fr}
body[data-series] .product-info h1{white-space:normal;text-wrap:balance}
@media(max-width:700px){body[data-series] .gallery-stage .product-hit{width:76%;height:71%}.series-mark{font-size:9px}.catalog-subfilters{gap:4px}.catalog-subfilters button{padding-inline:11px}body[data-series] .section-nav .wrap>div{justify-content:space-between;width:100%}}
/* Pro ingredient descriptions remain readable without reproducing source callout lines. */
#formula .ingredient-panel.ingredient-text{display:block;min-height:0;padding:30px 0;margin:0;width:100%;max-width:none}
#formula .ingredient-text .ingredient-copy{width:100%;justify-self:stretch;display:grid;grid-template-columns:42px minmax(180px,.8fr) minmax(240px,1.2fr);align-items:baseline;gap:24px;max-width:none;padding:0}
#formula .ingredient-text .ingredient-index{margin:0}
#formula .ingredient-text .ingredient-copy h3{margin:0;font-size:23px;line-height:1.6}
#formula .ingredient-text .ingredient-copy p{margin:0}
#formula .ingredient-text .ingredient-copy::after{display:none}
.transparency-grid:not(:has(.origin-visual, .ocean)){grid-template-columns:1fr}
.usage-steps{padding-left:22px;font-size:14px;color:var(--muted);line-height:1.9;margin:0 0 22px}
.usage-steps li+li{margin-top:12px}
@media(max-width:700px){#formula .ingredient-text .ingredient-copy{grid-template-columns:28px 1fr;gap:10px 15px}#formula .ingredient-text .ingredient-copy h3{font-size:19px}#formula .ingredient-text .ingredient-copy p{grid-column:2}#formula .ingredient-panel.ingredient-text{padding:24px 0}}
/* Three peer series; serum grades appear only within Serum Library. */
.catalog-filters button{border-radius:12px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:5px}
.catalog-filters button small{font-size:10px;letter-spacing:.05em;opacity:.8}
.catalog-filters button[data-filter=all]{align-self:stretch}
.subfilter-label{align-self:center;font-size:11px;color:var(--muted);padding-right:8px}
.breadcrumb{align-items:center;flex-wrap:wrap;row-gap:12px}
@media(max-width:700px){.catalog-filters{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.catalog-filters button{min-height:58px}.catalog-toolbar{gap:16px}.breadcrumb{column-gap:8px}.breadcrumb>a,.breadcrumb>span{font-size:10px}.product-picker{margin-left:auto}.catalog-subfilters{gap:2px}.subfilter-label{width:100%;padding:0 0 5px}.catalog-subfilters button{padding-inline:12px}}
/* Separate grades when browsing; global search keeps each match in its series. */
.catalog-group[hidden]{display:none!important}
.catalog-group{border-top:1px solid var(--line);margin-top:36px;padding-top:32px;padding-bottom:16px}
.catalog-group-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.catalog-group-heading h2{margin-top:8px;font-size:30px;letter-spacing:.02em}
.group-count{font-size:12px;color:var(--muted);white-space:nowrap;padding-bottom:5px}
.catalog-group .catalog-grid{margin-top:0}
.catalog-search{width:320px}
@media(max-width:700px){.catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.catalog-filters button{padding:12px 8px;font-size:11px;min-height:64px}.catalog-filters button small{font-size:9px}.catalog-search{width:100%}.catalog-group{margin-top:28px;padding-top:24px}.catalog-group-heading h2{font-size:25px}.catalog-group-heading{gap:12px;margin-bottom:20px}.catalog-group-heading .eyebrow{font-size:9px}}

/* Approved bottle proportions; preserve the card and texture layout. */
.library-card[data-product-id="506"]>img,body[data-product-id="506"] .gallery-stage #main-image{scale:.7}
.library-card:is([data-product-id="508"],[data-product-id="520"])>img,body:is([data-product-id="508"],[data-product-id="520"]) .gallery-stage #main-image{scale:.85}

.ingredient-copy p{overflow-wrap:anywhere}
/* Reserve inline space for note hit areas instead of spilling into adjacent columns. */
.ingredient-copy sup a{margin:0;padding:3px}

/* Keep the image selector and close control visible on shorter screens. */
#lightbox-image{height:min(65dvh,calc(100dvh - 170px))}
#lightbox .dialog-close{z-index:1}

.note-return{display:block;margin-top:12px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:12px;color:var(--green)}
.note-return:hover{background:#edf0e9}
