/* ── OVERLAY ── */
.mlh-oc-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
    pointer-events: none;
}
.mlh-oc-overlay.open {
    display: block;
    z-index: 9996;
    pointer-events: auto;
}

/* ── OFF-CANVAS PANEL ── */
.mlh-offcanvas-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background: #ffffff;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    max-height: 90vh;
    overflow-y: auto;
    pointer-events: none;
}
.mlh-offcanvas-panel.open {
    transform: translateY(0);
    z-index: 9997;
    pointer-events: auto;
}

/* ── INNER LAYOUT ── */
.mlh-oc-inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 40px 36px;
}

/* ── COLUMNS ── */
.mlh-oc-columns {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 36px;
}
.mlh-oc-col {
    min-width: 130px;
}

/* ── COLUMN HEADING ── */
.mlh-oc-col-head {
    margin-bottom: 14px;
}
.mlh-oc-col-head a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #111111;
    text-decoration: none;
}
.mlh-oc-col-head a:hover {
    text-decoration: underline;
}

/* ── SUB LINKS ── */
.mlh-oc-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.mlh-oc-col ul li a {
    font-size: 13px;
    color: #555555;
    text-decoration: none;
    transition: color 0.15s;
}
.mlh-oc-col ul li a:hover {
    color: #111111;
}

/* ── PREVIEW IMAGE ── */
.mlh-oc-preview {
    position: relative;
    flex-shrink: 0;
    width: 180px;
}
.mlh-oc-preview img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: opacity 0.25s ease;
}

/* ── CLOSE BUTTON ── */
.mlh-close-btn {
    position: absolute;
    top: 14px;
    right: 20px;
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.mlh-close-btn:hover {
    color: #111;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .mlh-oc-inner {
        flex-direction: column;
        padding: 24px 20px;
    }
    .mlh-oc-preview {
        display: none;
    }
    .mlh-oc-columns {
        gap: 24px;
    }
}

/* ── Loader spinner ── */
.mlh-img-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2;
}
.mlh-img-loader span {
    width: 36px;
    height: 36px;
    border: 3px solid #e0e0e0;
    border-top-color: #333;
    border-radius: 50%;
    animation: mlh-spin 0.7s linear infinite;
    display: block;
}
@keyframes mlh-spin {
    to { transform: rotate(360deg); }
}

/* ── Smooth image transition ── */
#mlhPreviewImg {
    transition: opacity 0.2s ease;
}

body .whb-general-header {
    background-color: transparent;
    transition: background-color 0.35s ease;
}

body.mlh-menu-open .whb-general-header {
    background-color: #ffffff;
}


.mlh-oc-preview [src="https://test.mylittlehome.com.sa/wp-content/uploads/2026/04/My-Little-Home-logo.png"] {
    object-fit: contain;
}