.logo:has(.brand-logo){min-width:0}.brand-logo{display:block;width:200px;height:auto;max-width:100%;object-fit:contain}.footer-logo .brand-logo{width:225px;margin-bottom:15px}.product-gallery{min-width:0;align-self:start}.gallery-stage{position:relative;background:#edece7;border-radius:8px;overflow:hidden}.gallery-enlarge{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.gallery-main{display:block;width:100%;aspect-ratio:1;object-fit:contain;max-height:640px}.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);border:0;width:38px;height:44px;background:#ffffffe6;color:#344d3b;font-size:30px;border-radius:4px;cursor:pointer}.gallery-arrow.previous{left:10px}.gallery-arrow.next{right:10px}.gallery-caption{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:12px;padding:12px 0}.gallery-thumbs{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:thin}.gallery-thumb{flex:0 0 78px;width:78px;height:78px;padding:3px;border:1px solid var(--line);border-radius:5px;background:white;cursor:pointer}.gallery-thumb.active{border:2px solid #526447;padding:2px}.gallery-thumb img{display:block;width:100%;height:100%;object-fit:cover}.gallery-thumb:focus-visible,.gallery-enlarge:focus-visible{outline:3px solid #bf7d54;outline-offset:2px}.gallery-dialog{position:fixed;width:min(94vw,1100px);height:min(88vh,900px);max-width:94vw;max-height:88vh;padding:0;border:0;background:#f9f9f6;border-radius:8px;overflow:hidden}.gallery-dialog::backdrop{background:#172219d9}.gallery-dialog[open]{display:grid;place-items:center}.gallery-dialog img{width:100%;height:100%;min-height:0;object-fit:contain;padding:40px;box-sizing:border-box}.gallery-close,.gallery-lightbox-prev,.gallery-lightbox-next{position:absolute;background:#ffffffe8;color:#344d3b;border:0;border-radius:5px;cursor:pointer;font-size:28px;z-index:1;min-width:42px;height:42px}.gallery-close{right:12px;top:12px}.gallery-lightbox-prev{left:12px;top:50%;transform:translateY(-50%)}.gallery-lightbox-next{right:12px;top:50%;transform:translateY(-50%)}.gallery-editor{padding:16px;border:1px solid var(--line);min-width:0}.gallery-editor legend{font-weight:600}.gallery-editor p{font-size:13px;color:var(--muted);margin:0 0 15px}.gallery-admin-list,.gallery-upload-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}.gallery-admin-item{border:1px solid var(--line);padding:8px;min-width:0}.gallery-admin-item img,.gallery-upload-preview img{width:100%;height:115px;object-fit:cover}.gallery-admin-item label{font-size:12px;margin-top:8px}.gallery-admin-item input[type=number]{width:100%;min-height:32px}.gallery-upload-preview figure{margin:0}.gallery-upload-preview figcaption{font-size:11px;overflow-wrap:anywhere}.gallery-upload-message{color:#963e28;font-size:13px;grid-column:1/-1}@media(max-width:820px){.brand-logo{width:175px}.product-gallery{max-width:100%}.gallery-main{max-height:none}.gallery-thumbs{gap:8px}.gallery-thumb{flex-basis:68px;width:68px;height:68px}}@media(max-width:520px){.brand-logo{width:148px}.gallery-dialog img{padding:40px 24px}.gallery-admin-list,.gallery-upload-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-main{aspect-ratio:1}.nav-row{gap:10px}}@media(prefers-reduced-motion:reduce){.gallery-thumbs{scroll-behavior:auto}}

.site-footer .brand-logo{filter:brightness(0) invert(1)}
