/* =====================================================================
 * Soluky Child — GLOBAL CSS (loads on EVERY page via functions.php).
 * Home for site-wide rules that previously lived in Customizer → Additional
 * CSS and got WIPED during a theme reset (2026-05-31), breaking the mega-menu,
 * footer cert/payment logos, and the Why-Us hero. Baked in here so they are
 * version-controlled and can never be lost to a Customizer wipe again.
 *
 * NOTE: this does NOT replace restoring the FULL Additional CSS from backup —
 * it only hard-codes the critical rules we confirmed broken. Restore the
 * backup to recover any other lost rules, then keep these here permanently.
 * ===================================================================== */

/* ---- 1. Products mega-menu panel width ----
   Generic selector (memory-documented) so it survives an item-ID change.
   Live-tested 2026-05-31: min-width alone NO LONGER wins on this site (a competing
   rule from the restored CSS / MMM holds it at 523px) — so !important is required.
   Widens 523px -> 880px when the panel opens. */
body [id^="mega-menu-wrap-"] li.mega-menu-megamenu > ul.mega-sub-menu {
    min-width: 880px !important;
}
@media (max-width: 782px) {
    body [id^="mega-menu-wrap-"] li.mega-menu-megamenu > ul.mega-sub-menu {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* ---- 2. Footer cert / payment logo strip (website-footer-logos.png 1774x887) ----
   Was squished: width capped but height not. Restore correct aspect ratio. */
.footer-wrapper img[src*="website-footer-logos"],
footer img[src*="website-footer-logos"] {
    height: auto !important;
    max-width: 100%;
}

/* ---- 3. Why-Us (and any .banner-img) hero image — stop the overscale/stretch ----
   .banner-img img is object-fit:cover but had no height cap, so it overscaled.
   Constrain it to its container instead of natural size. */
.banner-img {
    overflow: hidden;
}
.banner-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---- 4. Why-Us "about" / founder images — STRETCHED (tall & thin) ----
   These <img> carry inline width/height attrs (from FlyingPress) so their height
   stayed at full natural size (e.g. 1400px) while width scaled to the column,
   squeezing them. Live-tested fix: height:auto so height scales with width.
   .abt-img-box = the about-section image columns; .home-about = founder section. */
.abt-img-box img,
section.about-section img,
section.home-about img,
.home-about .about-bottom-sec img {
    height: auto !important;
    max-width: 100%;
}


/* /products/ grid: 2 columns on phones (601-767px were showing 3 cramped cols). 2026-06-14 */
@media (max-width:767px){ #soluky-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px;} }
