/* Maully CMS V8: preserve complete product covers and support dynamic logo. */
.site-header .wordmark img.maully-custom-logo{max-width:185px;max-height:47px;width:auto;height:auto;object-fit:contain;display:block}
.site-footer .footer-logo img.maully-custom-logo{max-width:175px;max-height:52px;width:auto;height:auto;object-fit:contain;display:block}
/* Never crop seller-uploaded covers: screenshots, books and typography need full frames. */
.maully-card-grid .product-tile img{width:100%;height:255px;aspect-ratio:auto;object-fit:contain;object-position:center;background:#f5f7f8;padding:13px}
.product-section .maully-featured-items img{width:96px;height:74px;aspect-ratio:auto;object-fit:contain;object-position:center;background:#f5f7f8;padding:5px}
.product-visual img{width:100%;height:auto;max-height:600px;object-fit:contain;object-position:center;background:#f5f7f8}
.maully-homepage-editor{display:grid;gap:18px;margin-bottom:30px}
.maully-homepage-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.maully-homepage-media-field{min-width:0;display:flex;flex-direction:column;gap:12px;padding:15px;border:1px solid #e0e6e8;border-radius:12px;background:#fff}
.maully-homepage-media-field>img{display:block;width:100%;height:170px;object-fit:contain;background:#f6f8f9;border-radius:8px;padding:10px}
.maully-homepage-media-field label{font-weight:600;font-size:12px}
.maully-homepage-media-field input[type=file]{display:block;width:100%;margin-top:10px;font:inherit;max-width:100%}
.maully-homepage-media-field small{font-size:11px;line-height:1.6;color:#66717a}
.maully-homepage-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.maully-homepage-field-grid label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:650}
.maully-homepage-field-grid input,.maully-homepage-field-grid textarea{width:100%;border:1px solid #d9e2e5;border-radius:8px;padding:12px 14px;font:400 14px Inter,system-ui,sans-serif;line-height:1.55;background:white;min-width:0}
.maully-homepage-actions{display:flex;align-items:center;gap:17px;flex-wrap:wrap}.maully-homepage-actions small{color:#60717b;font-size:12px}
@media(max-width:900px){.maully-homepage-media-grid{grid-template-columns:1fr}.maully-homepage-field-grid{grid-template-columns:1fr}}
@media(max-width:640px){.maully-card-grid .product-tile img{height:230px}}

/* Refined fallback identity when no custom logo has been uploaded. */
.wordmark .maully-logo-system,.footer-logo .maully-logo-system{display:inline-flex;align-items:center;gap:9px;vertical-align:middle;letter-spacing:0}
.maully-logo-mark{width:34px;height:34px;border-radius:9px;background:#10191c;color:#5cf0d4;display:inline-grid;place-items:center;font:800 20px/1 Inter,system-ui,sans-serif;letter-spacing:-.08em}
.maully-logo-type{display:flex;align-items:baseline;white-space:nowrap;color:#111719;font:800 18px/1.1 Inter,system-ui,sans-serif;letter-spacing:-.06em}
.maully-logo-type small{color:#0c9b88;font:700 10px/1 JetBrains Mono,monospace;letter-spacing:0;margin-left:3px}
@media(max-width:640px){.maully-logo-mark{width:30px;height:30px}.maully-logo-type{font-size:16px}}
