/* Product quick view: one scroll area, compact facts and persistent actions. */
#modal.product-dialog{width:min(980px,calc(100% - 48px));border-radius:20px;max-height:min(90dvh,900px)}
#modal.product-dialog>.modal-header{padding:18px 24px;border-bottom:1px solid #e5eaf1}
#modal.product-dialog .modal-header h2{font-size:18px;font-weight:700}
#modal.product-dialog>#modal-content{padding:24px 24px 0;scroll-padding:20px;scrollbar-gutter:auto;scrollbar-color:#c1cede transparent}
.preview-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:28px;align-items:start}
.preview-media,.preview-summary{min-width:0}
#modal.product-dialog .detail-visual{display:block;min-height:0;padding:12px;background:#f4f7fb;border:1px solid #edf1f7;border-radius:14px}
#modal.product-dialog .product-gallery{display:grid;gap:8px}
#modal.product-dialog .gallery-large{height:300px;width:100%;padding:0;background:transparent;cursor:zoom-in}
#modal.product-dialog .gallery-large img{display:block;width:100%;height:100%;max-height:100%!important;object-fit:contain}
#modal.product-dialog .gallery-navigation{justify-content:center;gap:18px}
#modal.product-dialog .gallery-navigation button{border-radius:50%;background:#fff;width:36px;height:36px;font-size:20px}
#modal.product-dialog .gallery-thumbs{justify-content:safe center;gap:8px;padding:3px;scrollbar-width:thin}
#modal.product-dialog .gallery-thumbs button{flex-basis:52px;border-radius:8px;background:white}
#modal.product-dialog .gallery-thumbs img{width:48px;height:44px;object-fit:contain}
.preview-photo-help{display:block;font-size:11px;line-height:1.5;text-align:center;color:#607490;margin-top:10px}
.preview-summary .status-label{font-size:12px;padding:5px 9px;display:inline-block;border-radius:6px}
.preview-summary h3{font-size:25px;line-height:1.35;margin:12px 0;overflow-wrap:anywhere}
.preview-price{font-size:30px;line-height:1.3;font-weight:800;letter-spacing:-.6px;margin:0 0 14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.preview-price small{font-size:14px;font-weight:500;letter-spacing:0;white-space:nowrap}
.preview-location{display:flex;align-items:center;gap:6px;font-size:13px;color:#607490;margin:0 0 20px}
.preview-location svg{width:16px;height:16px;flex-shrink:0}
.preview-specs h4{font-size:13px;margin:0 0 8px}
.preview-specs dl{margin:0;font-size:13px;line-height:1.5}
.preview-specs dl>div{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:8px 0;border-bottom:1px solid #edf1f7}
.preview-specs dt{color:#607490}.preview-specs dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.preview-seller{display:flex;align-items:center;gap:10px;border-top:1px solid #e5eaf1;margin-top:20px;padding-top:16px}
.preview-seller-avatar{width:36px;height:36px;border-radius:10px;background:#edf3ff;color:#1d4ed8;display:grid;place-items:center;flex-shrink:0}
.preview-seller>div{min-width:0;flex:1}.preview-seller small{display:block;color:#607490;font-size:11px;margin-bottom:2px}.preview-seller strong{display:block;font-size:13px;overflow-wrap:anywhere}
.preview-seller>a{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#1d4ed8;min-height:44px}.preview-seller>a svg{width:16px;height:16px}
.preview-description{margin:20px 0 0;border-top:1px solid #e5eaf1;font-size:14px}
.preview-description summary{padding:16px 0;cursor:pointer;font-weight:600}.preview-description p{white-space:pre-line;overflow-wrap:anywhere;line-height:1.7;margin:0 0 16px;color:#425673}
.preview-bottom{position:sticky;bottom:0;background:white;margin:16px -24px 0;padding:16px 24px;border-top:1px solid #e5eaf1;z-index:1}
.preview-main-actions{display:flex;gap:10px;align-items:stretch}.preview-main-actions>.primary,.preview-main-actions>.secondary{min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;font-size:13px;font-weight:600;flex:1;line-height:1.4;padding:10px 14px}
.preview-share{border:1px solid #d5dfef;border-radius:9px;width:46px;flex:0 0 46px;color:#315b99}.preview-share:hover{background:#edf3ff}
@media(max-width:760px){
 #modal.product-dialog{width:100%;border-radius:0;max-height:var(--modal-viewport-height,100dvh)}
 #modal.product-dialog>.modal-header{padding:10px 16px;min-height:60px}
 #modal.product-dialog>#modal-content{padding:16px 16px 0}
 .preview-layout{grid-template-columns:1fr;gap:18px}
 #modal.product-dialog .detail-visual{padding:10px}
 #modal.product-dialog .gallery-large{height:225px}
 #modal.product-dialog .product-gallery{gap:4px}
 .preview-photo-help{margin-top:6px;font-size:11px}
 .preview-summary h3{font-size:22px;margin:8px 0}
 .preview-price{font-size:28px;margin-bottom:10px}
 .preview-location{margin-bottom:16px}
 .preview-specs dl{font-size:14px}.preview-specs dl>div{padding:9px 0}
 .preview-seller{margin-top:16px;padding-top:12px}
 .preview-bottom{margin:12px -16px 0;padding:12px 16px max(12px,env(safe-area-inset-bottom));box-shadow:0 -4px 12px #10274606}
 .preview-main-actions{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px}
 .preview-main-actions>.primary{grid-column:1;grid-row:1}
 .preview-main-actions>.secondary{grid-column:1/-1;grid-row:2;min-height:40px;padding:8px;font-size:13px}
 .preview-share{grid-column:2;grid-row:1;width:44px}
}
@media(min-width:761px) and (max-height:760px){#modal.product-dialog .gallery-large{height:240px}.preview-specs dl>div{padding:6px 0}}

#modal.product-dialog p.preview-price{font-size:30px;line-height:1.3;font-weight:800;margin:0 0 14px}@media(max-width:760px){#modal.product-dialog p.preview-price{font-size:28px;margin-bottom:10px}}

@media(max-width:760px){.preview-main-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px}.preview-main-actions>.preview-message{grid-column:2;grid-row:1;min-height:46px}.preview-main-actions>.preview-full{grid-column:1/-1;grid-row:2}.preview-main-actions>.preview-share{grid-column:3;grid-row:1}}

@media(max-width:760px){.preview-main-actions>[data-contact],.preview-main-actions>.preview-message{height:44px;min-height:44px;min-width:0;padding:8px;font-size:13px;line-height:1.2;white-space:nowrap}.preview-main-actions>.preview-share{height:44px;min-height:44px}}

@media(max-width:760px){
 .preview-main-actions.preview-no-phone{grid-template-columns:minmax(0,1fr) 44px}
 .preview-no-phone>.preview-message{grid-column:1}
 .preview-no-phone>.preview-share{grid-column:2}
}
