/**
 * Sunshine Wholesale — site logo + header branding (Astra).
 */

body.sunshine-astra-ux .site-branding .ast-site-title-wrap .site-title,
body.sunshine-astra-ux .site-branding .ast-site-title-wrap .site-description,
body.sunshine-astra-ux .site-header .site-title,
body.sunshine-astra-ux .site-header .site-description {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.sunshine-astra-ux .custom-logo-link,
body.sunshine-astra-ux .site-logo-img .custom-logo-link {
    display: inline-flex !important;
    align-items: center;
    line-height: 1;
}

body.sunshine-astra-ux .custom-logo-link img,
body.sunshine-astra-ux .site-logo-img .custom-logo-link img,
body.sunshine-astra-ux .ast-header-break-point .custom-logo-link img,
body.sunshine-astra-ux .ast-header-break-point .site-branding img.custom-logo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 240px !important;
    max-height: 56px !important;
    object-fit: contain !important;
}

@media (max-width: 1024px) {
    body.sunshine-astra-ux .custom-logo-link img,
    body.sunshine-astra-ux .site-logo-img .custom-logo-link img {
        max-width: 200px !important;
        max-height: 50px !important;
    }
}

@media (max-width: 921px) {
    body.sunshine-astra-ux .custom-logo-link img,
    body.sunshine-astra-ux .site-logo-img .custom-logo-link img,
    body.sunshine-astra-ux .ast-header-break-point .custom-logo-link img {
        max-width: 200px !important;
        max-width: min(200px, 52vw) !important;
        max-height: 48px !important;
    }

    body.sunshine-astra-ux .site-branding {
        padding-top: 4px;
        padding-bottom: 4px;
    }
}

@media (max-width: 544px) {
    body.sunshine-astra-ux .custom-logo-link img,
    body.sunshine-astra-ux .site-logo-img .custom-logo-link img,
    body.sunshine-astra-ux .ast-header-break-point .custom-logo-link img {
        max-width: 170px !important;
        max-width: min(170px, 68vw) !important;
        max-height: 42px !important;
    }
}

/* Keep header row compact when logo is wide */
body.sunshine-astra-ux .site-header-primary-section-left .site-branding,
body.sunshine-astra-ux .ast-mobile-header-wrap .site-branding {
    max-width: min(240px, 42vw);
}

body.sunshine-astra-ux .ast-primary-header-bar .site-branding {
    padding-right: 8px;
}
