/* Custom Header Styles */
.cmmh-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
}

.cmmh-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    height: 100px;
}

.cmmh-logo img {
    max-height: 80px;
    width: auto;
}

.cmmh-nav .cmmh-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cmmh-nav .cmmh-menu > li {
    position: relative;
}

.cmmh-nav .cmmh-menu > li > a {
    display: block;
    padding: 0 20px;
    line-height: 100px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.cmmh-nav .cmmh-menu > li > a:hover {
    color: #cc0000;
}

.cmmh-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cmmh-icon-item {
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.cmmh-icon-item:hover {
    color: #cc0000;
}

.cmmh-icon-item .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.cmmh-cart-trigger {
    position: relative;
}

.cmmh-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #cc0000;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmmh-mobile-toggle {
    display: none;
}

/* Mega Menu Styles */
.cmmh-mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    border-top: 3px solid #cc0000;
}

.cmmh-mm-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    min-height: 400px;
}

/* Left Section (30%) */
.cmmh-mm-left {
    width: 30%;
    background: #f9f9f9;
    padding: 30px;
    border-right: 1px solid #eee;
}

.cmmh-mm-l1-pills {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cmmh-l1-pill {
    background: #cc0000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    text-align: left;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.cmmh-l1-pill:hover,
.cmmh-l1-pill.active {
    background: #990000;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
}

/* Right Section (70%) */
.cmmh-mm-right {
    width: 70%;
    padding: 30px;
    position: relative;
}

.cmmh-mm-l2-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.cmmh-mm-l2-pill {
    background: #f0f0f1;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.cmmh-mm-l2-pill:hover,
.cmmh-mm-l2-pill.active {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

/* Content Grid (5 Columns) */
.cmmh-mm-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.cmmh-mm-grid-item {
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.cmmh-mm-grid-item:hover {
    transform: translateY(-5px);
}

.cmmh-mm-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    background: #f6f6f6;
}

.cmmh-mm-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmmh-mm-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.cmmh-mm-grid-item:hover .cmmh-mm-title {
    color: #cc0000;
}

/* Loader */
.cmmh-mm-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cmmh-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #cc0000;
    border-radius: 50%;
    display: inline-block;
    animation: cmmh-spin 1s linear infinite;
}

@keyframes cmmh-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .cmmh-header-container {
        height: auto;
        padding: 15px;
        flex-wrap: wrap;
    }

    .cmmh-mobile-toggle {
        display: block;
    }

    .cmmh-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }

    .cmmh-nav .cmmh-menu {
        flex-direction: column;
    }

    .cmmh-nav .cmmh-menu > li > a {
        line-height: 50px;
        padding: 0;
        border-bottom: 1px solid #eee;
    }

    .cmmh-mega-menu-wrapper {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border-top: none;
    }

    .cmmh-mm-container {
        flex-direction: column;
        min-height: auto;
    }

    .cmmh-mm-left, .cmmh-mm-right {
        width: 100%;
        padding: 15px;
    }

    .cmmh-mm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cmmh-mm-grid {
        grid-template-columns: 1fr;
    }

    .cmmh-mm-grid-item {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
    }

    .cmmh-mm-thumb {
        width: 60px;
        margin-bottom: 0;
    }
}
