/* V12 provisional brand palette; original logo served from parent site. */
:root{--ap-blue:#15365b;--ap-accent:#1769aa;--ap-bg:#f4f7fb;--ap-border:#d9e2ed}
body{background:var(--ap-bg);color:#17304c;font-family:Arial,Helvetica,sans-serif} h1,h2,h3{font-family:inherit} header,footer{background:#fff;color:var(--ap-blue)} header{border-bottom:1px solid var(--ap-border)} .brand{display:flex;align-items:center;gap:12px;color:var(--ap-blue)} .brand img{width:145px;height:52px;object-fit:contain} .brand span{font-size:15px} .hero{background:linear-gradient(120deg,#102b48,#20588a);color:#fff} .hero .location{color:#d6e8ff} button,.upload{background:var(--ap-accent);color:white;border-radius:7px} button.secondary{background:#fff;color:var(--ap-blue);border:1px solid var(--ap-border)} button:disabled{opacity:.5} .dashboard,.shop{max-width:1250px} dialog{background:#fff;color:#17304c} #modal.product-editor{box-sizing:border-box;width:min(1120px,96vw);max-width:96vw;max-height:92dvh;padding:24px;border-radius:14px;overflow:auto} .editor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:22px;align-items:start} .editor-grid section{min-width:0;border:1px solid var(--ap-border);border-radius:10px;padding:14px} .editor-grid h3{margin:0 0 12px;font-size:17px} .editor-grid textarea{min-height:64px} #preview{width:100%;max-height:200px;object-fit:contain;background:#f1f4f8} #preview[hidden]{display:none} .photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px} .photo-grid>div{border:1px solid var(--ap-border);padding:5px;border-radius:8px} .photo-grid button{padding:5px 3px;font-size:11px;white-space:normal;width:100%} .photo-grid label{font-size:11px;display:flex;align-items:center;gap:3px;line-height:1.2} .photo-grid input[type=checkbox]{width:auto;flex:none} #suggestion aside{background:#f4f7fb;border:1px solid var(--ap-border);padding:10px;border-radius:8px;font-size:13px} #suggestion p{margin:6px 0} #suggestion summary{cursor:pointer;font-weight:bold;color:var(--ap-accent)} .price-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0} .price-choices button{font-size:12px;padding:8px 4px;white-space:normal} .editor-actions{position:sticky;bottom:-24px;background:white;padding:12px 0;border-top:1px solid var(--ap-border);z-index:1} @media(max-width:720px){#modal.product-editor{padding:12px;width:96vw}.editor-grid{grid-template-columns:1fr;gap:10px}.editor-grid section{padding:10px}.editor-actions{bottom:-12px}.brand img{width:100px}.brand span{font-size:12px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V13 */
.brand img{width:190px;height:65px}.brand span{font-weight:600} #modal.product-editor{width:min(1200px,96vw);padding:20px 24px;box-shadow:0 18px 70px #102b4840} .editor-grid{gap:16px;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)} .editor-grid section{padding:16px;background:#fff} .editor-grid h3{color:#15365b;border-bottom:1px solid #d9e2ed;padding-bottom:10px} .photo-grid>div{background:#f7f9fc} .photo-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:4px} .photo-controls button{font-size:19px;padding:3px;line-height:1.2} .photo-controls button:last-child{background:#fff;color:#a22;border:1px solid #e2d5d5} .editor-actions{bottom:-20px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;box-shadow:0 -6px 16px #15365b0b} .action-help{flex-basis:100%;font-size:12px;color:#526579;margin:0} .listing-preview{width:min(580px,90vw);max-height:90vh;overflow:auto;padding:24px;border-radius:14px} .listing-preview img{width:100%;max-height:330px;object-fit:contain} .listing-preview p{white-space:pre-wrap} #suggestion aside{border-left:3px solid #1769aa} .price-choices button{background:#eef5fc;color:#15365b;border:1px solid #cbdced} @media(max-width:720px){.brand img{width:125px;height:48px}#modal.product-editor{padding:12px}.editor-grid{grid-template-columns:1fr}.editor-actions{bottom:-12px}.editor-grid section{padding:10px}}
#modal.product-gallery{width:min(860px,95vw);max-width:95vw;max-height:92dvh;box-sizing:border-box;padding:24px;overflow:auto}.public-gallery{margin:12px 0 20px}.gallery-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;background:#eef3f8;border-radius:12px;padding:8px}.gallery-stage .gallery-main{padding:0;background:transparent;border:0;width:100%;cursor:zoom-in}.gallery-main img{display:block;width:100%;height:min(46vh,440px);object-fit:contain}.gallery-prev,.gallery-next{padding:10px 4px;font-size:22px}.gallery-tools{display:flex;justify-content:space-between;align-items:center;margin:8px 0}.gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:4px}.gallery-thumbs button{flex:0 0 84px;padding:3px;background:white;border:2px solid transparent}.gallery-thumbs button[aria-pressed=true]{border-color:#1769aa}.gallery-thumbs img{display:block;width:100%;height:65px;object-fit:cover;border-radius:4px}.public-zoom{box-sizing:border-box;width:96vw;max-width:96vw;height:94dvh;max-height:94dvh;background:#102033;color:white;padding:12px;overflow:hidden}.public-zoom::backdrop{background:#000c}.zoom-toolbar{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}.zoom-pane{height:calc(100% - 65px);overflow:auto;display:block}.zoom-pane img{display:block;width:100%;max-width:none;height:auto;min-height:0;object-fit:contain;margin:auto}.public-zoom .zoom-pane img{max-height:none}@media(max-width:600px){#modal.product-gallery{padding:12px}.gallery-stage{grid-template-columns:32px minmax(0,1fr) 32px;gap:3px}.gallery-main img{height:36vh}.gallery-thumbs button{flex-basis:65px}.gallery-thumbs img{height:50px}}

.gallery-main img{height:38vh}.inline-zoom{display:flex;gap:4px}.inline-zoom button{padding:7px 10px}.gallery-tools{flex-wrap:wrap;gap:8px}.inquiry-form{border-top:1px solid #d9e2ed;padding-top:12px}.inquiry-form textarea{min-height:80px}.zoom-pane img{margin:0 auto}.public-zoom .zoom-pane img{max-width:none}
.store-stats{background:white;border:1px solid #d9e2ed;border-radius:10px;padding:16px;margin:16px 0}.stat-line{display:grid;grid-template-columns:130px 1fr;gap:12px;align-items:center;margin:8px 0}.stat-line progress{width:100%;accent-color:#1769aa}.danger{color:#a12626!important}.row .actions{flex-wrap:wrap}.row p{overflow-wrap:anywhere}

.thumb-preview{padding:0!important;background:transparent!important;border:0!important;flex:none;cursor:zoom-in}.thumb-preview img{width:52px;height:52px;object-fit:cover;border-radius:5px;display:block}.share-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.share-actions a{background:#1769aa;color:white;padding:9px 13px;border-radius:5px;text-decoration:none}.share-actions a:nth-child(2){background:#167b46}.listing-preview input{width:100%;box-sizing:border-box}.dashboard .actions{flex-wrap:wrap}

.social-share .share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.social-share .share-actions a,.social-share .share-actions button{text-align:center;white-space:normal;background:#1769aa;color:white}.social-share .share-actions .whatsapp{background:#167b46}.social-share textarea{width:100%;box-sizing:border-box;resize:vertical}.social-share img{max-height:200px}.social-share{box-sizing:border-box}@media(max-width:420px){.social-share .share-actions{grid-template-columns:1fr}}

.market-prep{border-top:1px solid #d9e2ed;padding:14px 0}.market-prep[hidden]{display:none}.market-field{display:flex;align-items:end;gap:8px;margin:10px 0}.market-field label{flex:1;min-width:0}.market-field button{flex:none}.market-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px}.market-photos a{display:grid;gap:5px;text-align:center}.market-photos img{width:100%;height:80px;object-fit:contain}.market-open{display:inline-block;background:#1769aa;color:white;padding:10px;border-radius:5px;text-decoration:none}

/* V22: explicit gallery placement even when navigation is hidden. */
.public-gallery .gallery-stage{grid-template-columns:44px minmax(0,1fr) 44px;min-width:0}
.public-gallery .gallery-prev{grid-column:1;grid-row:1}.public-gallery .gallery-next{grid-column:3;grid-row:1}
.public-gallery .gallery-main{grid-column:2;grid-row:1;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:clamp(220px,46vh,440px);overflow:hidden}
.public-gallery.single-photo .gallery-stage{grid-template-columns:minmax(0,1fr)}.public-gallery.single-photo .gallery-main{grid-column:1}.public-gallery [hidden]{display:none!important}
.public-gallery .gallery-main img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;transform-origin:center}
.public-zoom .zoom-pane{display:flex;align-items:center;justify-content:center;overflow:auto}.public-zoom .zoom-pane img{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;transform-origin:center}
@media(max-width:600px){.public-gallery .gallery-stage{grid-template-columns:32px minmax(0,1fr) 32px}.public-gallery .gallery-main{height:clamp(180px,40vh,340px)}}
.location-contact{padding:14px;border:1px solid #d5dfe8;border-radius:10px;margin:12px 0}.location-contact .actions{display:flex;flex-wrap:wrap;gap:12px}
