/* V3.36 additions; existing catalog, promotions and checkout styles remain intact. */
body.storefront .site-header .header-row{min-width:0}
body.storefront .header-actions{min-width:0;flex-shrink:0}
body.storefront .site-nav{flex-wrap:wrap}
body.storefront .site-nav a{white-space:nowrap}
body.storefront #cartBtn{white-space:nowrap;cursor:pointer;min-width:88px;min-height:44px;flex-shrink:0}
body.storefront .announcement-link{white-space:normal;overflow-wrap:anywhere;line-height:1.45;padding:2px 0}
body.storefront .drawer{max-width:100vw}
body.storefront .drawer-panel{max-width:100%;box-sizing:border-box}
.studio-section{padding-top:32px;padding-bottom:32px}.studio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:20px 0}.studio-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;min-width:0}.studio-card video,.studio-card iframe{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#111;border:0;border-radius:10px;margin-bottom:16px}.studio-card p{white-space:pre-line}.selected-video{outline:3px solid var(--accent);outline-offset:3px}
.upgrade-admin336{margin:20px 0}.upgrade-admin336 summary{cursor:pointer;font-size:1.2rem;min-height:44px}.upgrade-admin336[open]>summary{margin-bottom:20px}.upgrade-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.upgrade-grid>*,.quote-item336>*{min-width:0}.upgrade-grid .span-2{grid-column:1/-1}.upgrade-switch{display:flex;align-items:center;gap:12px}.upgrade-switch input{width:auto}.upgrade-row{padding:18px;margin-top:18px;border:1px solid var(--line);border-radius:12px;background:#fff}.upgrade-row input{font-size:.85rem}.quote-item336{display:grid;grid-template-columns:2fr 1.5fr 1fr 1fr auto;gap:12px;align-items:end;padding:16px 0;border-bottom:1px solid var(--line)}.email-preview336{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#f5f3ee;padding:20px;border-radius:12px}.quote-page336{max-width:1000px;padding-top:32px;padding-bottom:60px}.quote-page336 section{background:#fff;padding:24px;border-radius:16px;margin-top:24px}.quote-table-wrap{overflow-x:auto}.quote-table336{width:100%;border-collapse:collapse}.quote-table336 th,.quote-table336 td{padding:12px;text-align:left;border-bottom:1px solid var(--line)}.quote-subtotal{font-size:1.25rem;margin-top:20px}#quoteRates label{display:flex;align-items:center;gap:8px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px}#quoteRates input{width:auto}#quoteDelivery{padding:16px;background:#f6f1e9;border-radius:12px;line-height:1.7}#quoteNotes{white-space:pre-line}
@media(max-width:900px){body.storefront .site-header .header-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand cart" "nav nav";gap:14px}body.storefront .site-header .header-row>div:first-child{grid-area:brand;min-width:0}body.storefront .header-actions{display:contents}body.storefront .site-nav{grid-area:nav;display:flex;justify-content:space-between;gap:4px}body.storefront .site-nav a{padding:8px 6px;font-size:.9rem}body.storefront #cartBtn{grid-area:cart;align-self:center}body.storefront .site-header .eyebrow{font-size:10px;letter-spacing:.1em}body.storefront .site-header h1{font-size:clamp(23px,5vw,30px)}body.storefront .site-header .tagline{font-size:.85rem}.quote-item336{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-item336>button{grid-column:1/-1}}
@media(max-width:600px){.studio-grid,.upgrade-grid{grid-template-columns:1fr}.upgrade-grid .span-2{grid-column:auto}.quote-page336 section{padding:16px}.quote-item336{grid-template-columns:1fr}.studio-section{padding-top:20px}body.storefront .floating-cart{z-index:30;bottom:max(12px,env(safe-area-inset-bottom))}}
@media print{.quote-page336>a,#quoteAddressForm,#quoteRateSection,#quotePay,#printQuote,header a{display:none!important}.quote-page336{width:100%;max-width:none}.quote-page336 section{padding:0}body{background:white}}
/* Keep the drawer's dimmed overlay full-screen; the panel itself stays right-aligned. */
body.storefront #cartDrawer{width:100%!important;max-width:none!important;z-index:100}
body.storefront #cartDrawer .drawer-card{width:min(460px,100%);max-width:100%;height:100dvh;padding-bottom:max(24px,env(safe-area-inset-bottom))}
body.storefront #cartDrawer .cart-item>div{min-width:0;overflow-wrap:anywhere}
body.storefront.cart-open336{overflow:hidden}
body.storefront.cart-open336 #floatingCart{display:none!important}

/* V3.36.2: keep image, close and order controls inside the visible viewport. */
#imageViewer{box-sizing:border-box;padding:12px;z-index:10050;}
#imageViewer .image-viewer-shell{box-sizing:border-box;height:min(820px,calc(100vh - 24px));height:min(820px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;}
#imageViewer .image-viewer-toolbar{min-width:0;flex-shrink:0;}
#imageViewer .image-viewer-title{min-width:0;}
#imageViewer .image-viewer-stage{min-height:0;min-width:0;overflow:auto;}
#imageViewer .image-viewer-stage img{max-height:100%;max-width:100%;min-height:0;object-fit:contain;}
#imageViewer .image-viewer-order{display:flex;align-items:end;gap:12px;padding:12px;background:#fff;border-top:1px solid #ddd;}
#imageViewer .image-viewer-order[hidden]{display:none;}
#imageViewer .image-viewer-order label{display:grid;gap:4px;min-width:0;}
#imageViewer .image-viewer-order input{width:75px;}
#imageViewer .image-viewer-order input,#imageViewer .image-viewer-order select{font-size:16px;min-height:44px;}
#imageViewer [data-action="close"]{min-width:46px;min-height:44px;color:#1f2937;}
@media(max-width:620px){
 #imageViewer{padding:8px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom));}
 #imageViewer .image-viewer-shell{width:100%;height:calc(100vh - 32px);height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));}
 #imageViewer .image-viewer-toolbar{padding:8px;gap:4px;}
 #imageViewer .image-viewer-actions{gap:4px;}
 #imageViewer .image-viewer-btn{padding:0 6px;min-width:36px;}
 #imageViewer .image-viewer-title{font-size:14px;}
 #imageViewer .image-viewer-stage{padding:10px;}
 #imageViewer .image-viewer-order{display:grid;grid-template-columns:minmax(0,1fr) 80px;gap:8px;padding:10px;}
 #imageViewer .image-viewer-order .add-btn,#imageViewer .image-viewer-order>button{grid-column:1/-1;min-height:44px;}
}
