/* ========================================
   Mega Dropdown Menu Styles
   ======================================== */

/* Mega Menu Badge Indicator */
.cmb-mega-menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #0073aa;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.2;
}

.cmb-mega-menu-badge::before {
    content: "⚙";
    font-size: 12px;
    display: inline-block;
}

/* Mega Menu Item Container */
.cmb-menu-item.cmb-mega-menu-item {
    position: relative;
}

/* Mega Dropdown Container */
.cmb-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: 1200px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 30px;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
}

.cmb-mega-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Featured Products Section */
.cmb-featured-products-section {
    margin-bottom: 30px;
}

.cmb-featured-products-title,
.cmb-products-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
}

.cmb-featured-products-grid {
    margin-bottom: 20px;
}

.cmb-featured-product-item {
    border: 2px solid #0073aa;
    border-radius: 8px;
    padding: 10px;
    background: #f8f9fa;
}

.cmb-featured-product-item:hover {
    border-color: #005177;
    background: #f0f4f8;
}

/* Mega Dropdown Grid Layout */
.cmb-mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Mega Dropdown Product Cards */
.cmb-mega-dropdown-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.cmb-mega-dropdown-item:hover {
    transform: translateY(-2px);
}

.cmb-mega-dropdown-item-image {
    width: 100%;
    height: 150px;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmb-mega-dropdown-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cmb-mega-dropdown-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.4;
}

.cmb-mega-dropdown-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #0073aa;
    margin-top: auto;
}

/* Horizontal Menu Layout */
.cmb-menu-container.cmb-horizontal-menu .cmb-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.cmb-menu-container.cmb-horizontal-menu .cmb-menu-item {
    border-bottom: none;
    border-right: 1px solid #e5e5e5;
    position: relative;
}

.cmb-menu-container.cmb-horizontal-menu .cmb-menu-item:last-child {
    border-right: none;
}

.cmb-menu-container.cmb-horizontal-menu .cmb-menu-link {
    padding: 12px 20px;
    white-space: nowrap;
}

/* Dropdown Arrow Indicator - REMOVED: Using single arrow (›) instead */
/* No second arrow needed - already showing › arrow */

/* Responsive Design */
@media (max-width: 768px) {
    .cmb-mega-dropdown {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 0;
        margin-top: 0;
    }
    
    .cmb-mega-dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cmb-mega-dropdown-item-image {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .cmb-mega-dropdown-grid {
        grid-template-columns: 1fr;
    }
    
    .cmb-mega-dropdown {
        padding: 20px;
    }
}

/* Elementor Integration Support */
.cmb-mega-dropdown.elementor-content {
    padding: 0;
}

.cmb-mega-dropdown.elementor-content .elementor-widget {
    margin-bottom: 0;
}

/* Dropdown Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cmb-mega-dropdown.active {
    animation: fadeInDown 0.3s ease-out;
}
