/*---------------------------------------------
  Mega‑menu wrapper
---------------------------------------------*/
.woodmart-mega-menu {
    padding: 20px 0;
}

/*---------------------------------------------
  Row: flex container, vertical align
---------------------------------------------*/
.woodmart-mega-menu .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* vertical center */
}

/* include padding in the width calculation */
.woodmart-mega-menu .row>div {
    box-sizing: border-box;
}

/*---------------------------------------------
  Left column (menu)
---------------------------------------------*/
.menu-column.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding-right: 20px;
}

.menu-column.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/*---------------------------------------------
  Right column (image)
---------------------------------------------*/
.image-column.col-md-8 {
    flex: 0 0 66.667%;
    max-width: 66.667%;
    display: flex;
    justify-content: center;
    /* horizontal center */
    align-items: center;
    /* vertical center */
}

/*---------------------------------------------
  Image container: shrink‑wraps and centers
---------------------------------------------*/
.category-image-container {
    width: 100%;
    max-width: 600px;
    /* cap width so it doesn’t get huge */
    height: 400px;
    /* fixed height */
    margin: 0 auto;
    /* center within the image‑column */
    overflow: hidden;
    position: relative;
    background-color: #f7f7f7;
    border-radius: 4px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.category-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
}

.category-image-container img:hover {
    transform: scale(1.03);
}

/* Placeholder text when no image */
.default-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 16px;
    text-align: center;
    padding: 0 20px;
}

/*---------------------------------------------
  Menu list styles
---------------------------------------------*/
.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 10px;
}

.mega-menu-list ul {
    list-style: none;
    padding-left: 15px;
    margin-top: 8px;
}

.mega-menu-list ul li {
    margin-bottom: 5px;
}

.mega-menu-title {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.mega-menu-title:hover {
    color: #777;
}

.mega-menu-list ul li a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mega-menu-list ul li a:hover {
    color: #333;
}

/*---------------------------------------------
  Smooth fade when JS swaps the src
---------------------------------------------*/
#category-hover-image {
    transition: opacity 0.3s ease;
}

/*---------------------------------------------
  Responsive tweaks
---------------------------------------------*/
@media (max-width: 768px) {
    .woodmart-mega-menu .row {
        flex-direction: column;
    }

    .menu-column,
    .image-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .menu-column {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .category-image-container {
        width: 100%;
        max-width: 600px;
        /* same max as your right‑hand image */
        height: 400px;
        /* same fixed height */
        overflow: hidden;
        background: #f7f7f7;
        border-radius: 4px;

        display: flex;
        align-items: center;
        justify-content: center;
    }
}