/* One viewport, no nested scrolling. Tabs give each detail room to breathe. */
html:has(.detail-dialog[open]){overflow:hidden}
.detail-dialog{width:min(1060px,calc(100vw - 40px));max-height:none;height:min(640px,calc(100dvh - 40px));overflow:hidden;border-radius:24px}
.detail-dialog #detail-content,.detail-dialog .detail-layout{height:100%;min-height:0;max-height:none;overflow:visible}
.detail-dialog .detail-layout{grid-template-columns:42% 58%}
.detail-dialog .close-dialog:not(.button){width:38px;height:38px;min-width:38px;min-height:38px;top:12px;right:12px;border:1px solid #e2e7e9;z-index:3}
.detail-dialog .product-gallery{position:relative;align-self:stretch;display:flex;flex-direction:column;justify-content:center;min-height:0;overflow:hidden;padding:32px 24px}
.detail-dialog .gallery-stage{height:auto;flex:1;min-height:0;max-height:390px}
.detail-dialog .gallery-main{max-height:100%;height:100%;min-height:0}
.detail-dialog .gallery-controls{margin-top:12px;flex:none}.detail-dialog .gallery-thumbnails{margin-top:12px;flex:none;flex-wrap:nowrap}
.detail-dialog .gallery-thumbnail{width:46px;height:50px;flex-shrink:1}.detail-dialog .gallery-arrow{width:34px;height:34px;flex-shrink:0}
.detail-dialog .detail-info{padding:26px 30px 24px;min-height:0;display:grid;grid-template-rows:auto 1fr auto;gap:16px;overflow:visible;border-top:0}
.detail-heading{padding-right:22px;min-width:0}
.detail-dialog .detail-branch{font-size:9px;letter-spacing:.07em;margin:0 0 8px}.detail-dialog .detail-heading .eyebrow{font-size:10px;letter-spacing:.12em;margin:0 0 6px;color:#987c47}
.detail-dialog .detail-info h2{font-size:clamp(22px,2.35vw,32px);line-height:1.12;letter-spacing:-.035em;margin:0 0 8px;overflow-wrap:anywhere}
.detail-dialog .product-type{margin:0!important;font-size:12px;color:#71808a}
.detail-reading{display:flex;flex-direction:column;gap:14px;min-height:0}
.detail-tabs{display:flex;border-bottom:1px solid #e3e8ea;gap:22px;flex:none}
.detail-tabs button{position:relative;font-size:11px;color:#7c8991;padding:10px 0;border:0;border-radius:0;min-height:36px;background:none;font-weight:600;white-space:nowrap}
.detail-tabs button[aria-selected=true]{color:#173743}.detail-tabs button[aria-selected=true]::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#b99a62}
.detail-tabs .photo-tab{display:none}.detail-tab-panel{min-height:0;flex:1;position:relative}
.detail-dialog .detail-description{font-size:13px;line-height:1.7;margin:0;color:#566a75;letter-spacing:0}
.fragrance-meta{display:flex;gap:6px 16px;flex-wrap:wrap;margin:15px 0 10px;font-size:10px;color:#8a7550}
.fragrance-perfumer{font-size:11px;line-height:1.5;color:#76858c;margin:7px 0}
.fragrance-source{display:inline-block;margin-top:8px;font-size:10px;color:#839199;text-underline-offset:3px}
.detail-dialog .product-specs{font-size:12px;line-height:1.4}.detail-dialog .product-specs caption{display:none}.detail-dialog .product-specs th,.detail-dialog .product-specs td{padding:8px 0}.detail-dialog .product-specs th{font-size:10px;width:28%;padding-right:10px}
.detail-dialog .detail-order-block{border-top:1px solid #e3e8ea;padding-top:12px;min-width:0}
.detail-purchase-line{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}
.detail-dialog .detail-price{font-size:28px;letter-spacing:-.04em;line-height:1.2;margin:0}.detail-dialog .detail-note{font-size:10px;margin:0 0 10px;line-height:1.4;color:#849097}
.detail-dialog .detail-quantity-row{margin:0;display:flex;gap:10px;font-size:10px}.detail-dialog .quantity{height:34px}.detail-dialog .quantity button{width:32px;height:32px}.detail-dialog .quantity span{min-width:25px;font-size:12px}
.detail-dialog .detail-actions{grid-template-columns:1fr 1fr;gap:10px}.detail-dialog .detail-actions .button{min-height:44px;font-size:11px;padding:9px 10px}.detail-dialog .detail-actions .icon{width:16px;height:16px}
.detail-promotion{font-size:10px;line-height:1.6;color:#857352;margin:8px 0 0}.detail-photo-panel{display:none}
.detail-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:8px;font-size:10px;color:#87949b}.detail-pagination button{padding:4px 8px;min-height:28px;border:1px solid #e5e9eb;border-radius:50%;background:white}.detail-pagination button:disabled{opacity:.35}
.fragrance-circles{display:flex;justify-content:space-between;gap:16px;margin:8px 0 12px}
.fragrance-circle{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:0;background:transparent;border:0;text-align:center;color:#826b45}
.note-art{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;border:1px solid #e0d6c7;background:#faf8f4;overflow:hidden;transition:border-color .2s,transform .2s}
.note-art img{width:100%;height:100%;object-fit:cover}.note-photo{display:block;width:100%;height:100%;background-repeat:no-repeat;border-radius:inherit}.note-art svg{width:39px;height:39px}.fragrance-circle[aria-pressed=true] .note-art{border-color:#ab8d52;box-shadow:0 0 0 2px #ab8d5220}.fragrance-circle:hover .note-art{transform:translateY(-2px)}
.fragrance-circle small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#8a969d}.fragrance-circle strong{font-size:10px;line-height:1.25;font-weight:500;color:#334e5b;max-width:130px}
.note-instruction{font-size:10px;margin:0;color:#88949b}.note-phase-copy{border-top:1px solid #eee8df;padding-top:8px;min-height:48px}.note-phase-copy>span{font-size:9px;color:#987c47;letter-spacing:.1em;text-transform:uppercase}.note-phase-copy>p{font-size:11px;line-height:1.55;margin:3px 0 0;color:#5c707b}.notes-disclosure{font-size:9px;color:#a1a8ab;line-height:1.4;margin:7px 0 0}
.detail-dialog .example-info{display:flex;justify-content:center}.detail-dialog .example-info .detail-description{max-width:400px}
@media(max-width:760px){
 .detail-dialog{width:calc(100vw - 24px);height:min(660px,calc(100dvh - 24px));border-radius:20px}
 .detail-dialog .detail-layout{display:block}.detail-dialog .detail-layout>.product-gallery{display:none}
 .detail-dialog .detail-info{height:100%;border:0;padding:22px 22px 18px;gap:12px;grid-template-rows:auto 1fr auto}
 .detail-dialog .detail-info h2{font-size:25px;max-width:calc(100% - 8px)}.detail-dialog .detail-branch{margin-bottom:6px}.detail-heading{padding-right:24px}
 .detail-tabs{gap:22px;justify-content:space-between}.detail-tabs .photo-tab{display:block}
 .detail-dialog .detail-description{font-size:12px;line-height:1.65}.detail-dialog .detail-price{font-size:26px}.detail-dialog .detail-quantity-row>span{display:none}
 .detail-dialog .detail-actions .button{font-size:11px;padding:10px 8px;min-height:44px}
 .detail-photo-panel{height:100%;display:block}.detail-photo-panel img{display:block;object-fit:contain;height:100%;max-height:260px;width:100%}
 .detail-dialog .detail-layout[data-detail-tab=photo]>.product-gallery{display:flex;position:absolute;left:22px;right:22px;top:var(--mobile-gallery-top,180px);bottom:var(--mobile-gallery-bottom,165px);padding:0;z-index:1;background:#fff;justify-content:center}
 .detail-dialog .detail-layout[data-detail-tab=photo] .gallery-stage{max-height:none}.detail-dialog .gallery-controls{margin-top:4px}.detail-dialog .gallery-thumbnails{margin-top:6px}.detail-dialog .gallery-caption{font-size:9px}.detail-dialog .gallery-thumbnail{width:30px;height:33px}.detail-dialog .gallery-arrow{width:32px;height:32px}
 .detail-dialog .example-info{padding:42px 24px;justify-content:center}.detail-dialog .example-info h2{font-size:30px}
}
@media(max-height:610px){
 .detail-dialog{height:calc(100dvh - 16px)}.detail-dialog .detail-info{padding:16px 24px;gap:9px}.detail-dialog .detail-info h2{font-size:22px;margin-bottom:5px}.detail-dialog .detail-heading .eyebrow{margin-bottom:4px}.detail-dialog .detail-branch{display:none}.detail-reading{gap:9px}.detail-tabs button{padding:6px 0;min-height:30px}.detail-dialog .detail-description{font-size:11px;line-height:1.5}.fragrance-meta{margin:8px 0 4px}.fragrance-perfumer{font-size:10px;margin:4px 0}.detail-dialog .detail-order-block{padding-top:9px}.detail-dialog .detail-price{font-size:24px}.detail-dialog .detail-note{margin-bottom:7px}.note-art{width:44px;height:44px}.note-art svg{width:30px;height:30px}.fragrance-circles{margin:5px 0 8px}.notes-disclosure{display:none}.detail-dialog .product-specs th,.detail-dialog .product-specs td{padding:6px 0}
}
@media(prefers-reduced-motion:reduce){.note-art{transition:none}}
@media(max-height:480px){
 .detail-dialog{width:calc(100vw - 20px);height:calc(100dvh - 12px);border-radius:14px}.detail-dialog .detail-info{padding:10px 20px;gap:8px}.detail-dialog .detail-heading .eyebrow{font-size:8px;margin-bottom:3px}.detail-dialog .detail-info h2{font-size:18px;margin-bottom:4px}.detail-dialog .product-type{font-size:10px}.detail-tabs button{font-size:10px;min-height:26px;padding:4px 0}.detail-reading{gap:6px}.detail-dialog .detail-description{font-size:10px;line-height:1.45}.fragrance-meta{font-size:9px;margin:5px 0}.fragrance-perfumer{font-size:9px;margin:3px 0}.fragrance-source{font-size:9px;margin-top:5px}.detail-promotion{font-size:9px;margin-top:5px}.detail-dialog .detail-order-block{padding-top:6px}.detail-dialog .detail-actions .button{min-height:34px;font-size:10px;padding:7px}.detail-dialog .detail-note{font-size:9px;margin-bottom:5px}.detail-dialog .detail-price{font-size:22px}.detail-purchase-line{margin-bottom:4px}.note-instruction{display:none}.note-art{width:32px;height:32px}.note-art svg{width:24px;height:24px}.fragrance-circle small{font-size:8px}.fragrance-circle strong{font-size:9px}.fragrance-circles{margin:0 0 5px;gap:10px}.note-phase-copy{padding-top:4px;min-height:0}.note-phase-copy>p{font-size:10px;line-height:1.4}.note-phase-copy>span{font-size:8px}.detail-pagination{margin-top:3px}.detail-dialog .product-specs{font-size:10px}.detail-dialog .product-specs th,.detail-dialog .product-specs td{padding:5px 0}.detail-dialog .gallery-thumbnails{display:none}
}
