/* Site fixes — survives style.css overwrite when master keeps this link */

/* Horizontal promo banners: show full image on mobile */
.promo-banner,
.app-home .promo-banner {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.promo-banner-img,
.app-home .promo-banner-img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* ORDERZY Page Manager: make policy/navigation footer available on mobile.
   Original style.css hides .site-footer at <=767px; this file loads after it. */
@media screen and (max-width: 767px) {
    body .site-footer,
    body.app-home .site-footer {
        display: block !important;
        width: 100%;
        max-width: 100%;
        visibility: visible;
        overflow: visible;
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
    body .site-footer .footer-grid,
    body.app-home .site-footer .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
        padding: 24px 16px 18px;
    }
    body .site-footer .footer-about,
    body .site-footer .footer-newsletter {
        grid-column: 1 / -1;
    }
    body .site-footer .footer-grid h4 { font-size: 15px; margin-bottom: 10px; }
    body .site-footer .footer-grid ul { padding-left: 0; margin: 0; }
    body .site-footer .footer-grid ul li { margin-bottom: 9px; }
    body .site-footer .footer-grid ul a { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
    body .site-footer .footer-about p { font-size: 13px; }
    body .site-footer .footer-bottom { padding: 12px 16px; }
}
@media screen and (max-width: 360px) {
    body .site-footer .footer-grid,
    body.app-home .site-footer .footer-grid { grid-template-columns: 1fr; }
}


/* ORDERZY Footer Compact v2.  Override old desktop and app-home mobile styling. */
.site-footer .footer-about p,
.site-footer .footer-about-text {
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.55;
    margin: 0 0 12px;
}
.site-footer .footer-grid {
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr);
    gap: 20px 28px;
    padding: 26px 16px 19px;
    align-items: start;
}
.site-footer .footer-grid > div { min-width: 0; }
.site-footer .footer-logo { height: 46px; max-width: 100%; width: auto; margin-bottom: 9px; }
.site-footer .footer-grid h4 { font-size: 16px; line-height: 1.35; margin: 0 0 11px; }
.site-footer .footer-grid ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-grid ul li { margin: 0 0 8px; }
.site-footer .footer-grid ul a { line-height: 1.45; display: inline-block; }
.site-footer .footer-newsletter p { margin: 0 0 10px; line-height: 1.55; }
.site-footer .social-links { gap: 8px; flex-wrap: wrap; }
.site-footer .social-links a { width: 34px; height: 34px; }
.site-footer .footer-bottom { padding: 11px 16px; line-height: 1.5; }
.site-footer .app-download-links { margin-top: 14px; }
.site-footer .app-download-links h4 { font-size: 14px; margin-bottom: 9px; }
.site-footer .app-download-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.site-footer .app-download-badges img { display: block; height: 35px; width: auto; max-width: 145px; border-radius: 4px; }

@media screen and (max-width: 1050px) and (min-width: 768px) {
    body .site-footer .footer-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 20px 26px;
        padding: 24px 18px 18px;
    }
}
@media screen and (max-width: 767px) {
    body .site-footer,
    body.app-home .site-footer {
        display: block !important;
        padding-bottom: 0 !important; /* body already reserves space for fixed bottom nav */
        margin-bottom: 0 !important;
    }
    body .site-footer .footer-grid,
    body.app-home .site-footer .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 18px 16px;
        padding: 19px 16px 15px;
        align-items: start;
    }
    body .site-footer .footer-about,
    body .site-footer .footer-newsletter,
    body.app-home .site-footer .footer-about,
    body.app-home .site-footer .footer-newsletter { grid-column: 1 / -1; }
    body .site-footer .footer-logo,
    body.app-home .site-footer .footer-logo { height: 42px; margin-bottom: 8px; }
    body .site-footer .footer-about-text,
    body.app-home .site-footer .footer-about p,
.site-footer .footer-about-text { font-size: 12.5px; line-height: 1.55; margin-bottom: 12px; }
    body .site-footer .footer-grid h4,
    body.app-home .site-footer .footer-grid h4 { font-size: 14px; margin: 0 0 9px; }
    body .site-footer .footer-grid ul,
    body.app-home .site-footer .footer-grid ul { padding: 0; margin: 0; }
    body .site-footer .footer-grid ul li,
    body.app-home .site-footer .footer-grid ul li { margin: 0 0 7px; }
    body .site-footer .footer-grid ul a,
    body.app-home .site-footer .footer-grid ul a { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
    body .site-footer .social-links a,
    body.app-home .site-footer .social-links a { width: 33px; height: 33px; }
    body .site-footer .footer-newsletter p,
    body.app-home .site-footer .footer-newsletter p { margin-bottom: 9px; font-size: 12px; }
    body .site-footer .footer-bottom,
    body.app-home .site-footer .footer-bottom { padding: 12px 14px !important; font-size: 11px; }
    body .site-footer .app-download-links { margin-top: 12px; }
}
@media screen and (max-width: 360px) {
    body .site-footer .footer-grid,
    body.app-home .site-footer .footer-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
        column-gap: 10px;
    }
}

/* ORDERZY Footer Compact v3 — no developer credit, dynamic copyright logo. */
.site-footer .footer-grid { gap: 15px 23px; padding-top: 20px; padding-bottom: 14px; }
.site-footer .footer-grid h4 { margin-bottom: 8px; }
.site-footer .footer-grid ul li { margin-bottom: 5px; }
.site-footer .footer-grid ul a { line-height: 1.38; }
.site-footer .footer-about-text { line-height: 1.47; margin-bottom: 9px; }
.site-footer .newsletter-form { max-width: 100%; width: 100%; min-width: 0; }
.site-footer .newsletter-form input[type=email] { min-width: 0; width: 100%; flex: 1 1 0; padding: 10px 11px; }
.site-footer .newsletter-form button { white-space: nowrap; flex: 0 0 auto; padding: 0 12px; font-size: 13px; }
.site-footer .footer-newsletter p { line-height: 1.45; margin-bottom: 8px; }
.site-footer .footer-bottom { padding: 9px 12px; }
.site-footer .orderzy-copyright { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; line-height:1.45; text-align:center; }
.site-footer .orderzy-copyright-logo { display:inline-block; max-height:25px; max-width:65px; width:auto; height:auto; object-fit:contain; vertical-align:middle; }
@media (max-width:767px) {
  body .site-footer .footer-grid, body.app-home .site-footer .footer-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 13px !important;
    padding:15px 15px 12px !important;
  }
  body .site-footer .footer-grid h4, body.app-home .site-footer .footer-grid h4 { margin-bottom:6px !important; font-size:13.5px; }
  body .site-footer .footer-grid ul li, body.app-home .site-footer .footer-grid ul li { margin-bottom:4px !important; }
  body .site-footer .footer-grid ul a, body.app-home .site-footer .footer-grid ul a { line-height:1.35 !important; }
  body .site-footer .footer-about-text, body.app-home .site-footer .footer-about-text { line-height:1.47 !important; margin-bottom:8px !important; }
  body .site-footer .footer-newsletter p, body.app-home .site-footer .footer-newsletter p { margin-bottom:7px !important; }
  body .site-footer .social-links { margin-top:7px; }
  body .site-footer .footer-bottom, body.app-home .site-footer .footer-bottom { padding:8px 12px !important; }
  body .site-footer .orderzy-copyright { gap:4px; font-size:11px; }
  body .site-footer .orderzy-copyright-logo { max-height:21px; max-width:52px; }
  body .site-footer .newsletter-form button { padding:0 9px !important; font-size:12px; }
}

/* ORDERZY v4: subtle breathing room around social icons; mobile footer stays compact. */
.site-footer .footer-about .social-links,
body.app-home .site-footer .footer-about .social-links { margin-top: 14px !important; margin-bottom: 15px !important; }
@media (max-width:767px) {
  body .site-footer .footer-about .social-links,
  body.app-home .site-footer .footer-about .social-links { margin-top: 14px !important; margin-bottom: 16px !important; }
}

/* ORDERZY Media V26: keep the full item visible on catalogue tiles. */
.product-card .product-thumb img {
    object-fit: contain;
    object-position: center;
}
