/* Beautiful Mega Menu Categories Design */

/* Enhanced mega menu container */
.header__mega--menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 169, 157, 0.1);
    padding: 2rem !important;
    gap: 2rem;
}

/* Categories section styling */
.categories-section {
    flex: 2 !important;
    padding: 0 !important;
}

.categories-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.categories-header .header__mega--subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    display: block;
}

.categories-subtitle {
    font-size: 1.4rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

/* Categories grid layout */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Individual category item */
.category-item {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 169, 157, 0.15);
    border-color: #00a99d;
}

/* Category link styling */
.category-link {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.category-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Category icon */
.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00a99d 0%, #008f85 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-icon svg {
    color: #ffffff;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.3);
}

/* Category content */
.category-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.category-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.category-arrow svg {
    color: #00a99d;
}

.category-item:hover .category-name {
    color: #00a99d;
}

.category-item:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Other mega menu columns */
.header__mega--menu__li:not(.categories-section) {
    flex: 1 !important;
    padding: 0 1rem !important;
}

.header__mega--menu__li:not(.categories-section) .header__mega--subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: block;
    position: relative;
}

.header__mega--menu__li:not(.categories-section) .header__mega--subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(135deg, #00a99d 0%, #008f85 100%);
    border-radius: 2px;
}

/* Sub menu items styling */
.header__mega--sub__menu_li {
    margin-bottom: 0.8rem;
}

.header__mega--sub__menu--title {
    font-size: 1.4rem;
    color: #5a6c7d;
    padding: 0.8rem 0;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.5rem;
}

.header__mega--sub__menu--title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #00a99d;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.header__mega--sub__menu--title:hover {
    color: #00a99d;
    padding-left: 2rem;
    text-decoration: none;
}

.header__mega--sub__menu--title:hover::before {
    opacity: 1;
}

/* Responsive design */
@media only screen and (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.8rem;
    }
    
    .category-link {
        padding: 1rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-name {
        font-size: 1.4rem;
    }
}

@media only screen and (max-width: 992px) {
    .header__mega--menu {
        flex-direction: column;
        padding: 1.5rem !important;
    }
    
    .categories-section {
        flex: none !important;
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
    
    .header__mega--menu__li:not(.categories-section) {
        flex: none !important;
        width: 100%;
        padding: 1rem 0 !important;
    }
}

/* Animation for mega menu appearance */
.header__mega--menu {
    animation: megaMenuSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes megaMenuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for mega menu items */
.header__mega--menu__li:not(.categories-section) .header__mega--sub__menu_li:hover {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Mobile Offcanvas Menu Dropdown Styles */
.offcanvas__menu_li.has-dropdown {
    position: relative;
}

.offcanvas__menu_item.dropdown-toggle {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offcanvas__menu_item.dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 12.355px;
    height: 8.394px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12.355' height='8.394' viewBox='0 0 10.355 6.394'%3E%3Cpath d='M15.138,8.59l-3.961,3.952L7.217,8.59,6,9.807l5.178,5.178,5.178-5.178Z' transform='translate(-6 -8.59)' fill='%23777'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s ease;
    border: none;
}

.offcanvas__menu_li.has-dropdown.open .offcanvas__menu_item.dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12.355' height='8.394' viewBox='0 0 10.355 6.394'%3E%3Cpath d='M15.138,8.59l-3.961,3.952L7.217,8.59,6,9.807l5.178,5.178,5.178-5.178Z' transform='translate(-6 -8.59)' fill='%2300a99d'/%3E%3C/svg%3E");
}

.offcanvas__submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: transparent;
    margin: 0;
    padding: 0;
}

.offcanvas__menu_li.has-dropdown.open .offcanvas__submenu {
    max-height: 500px;
}

.offcanvas__submenu_li {
    border-bottom: none;
}

.offcanvas__submenu_li:last-child {
    border-bottom: none;
}

.offcanvas__submenu_item {
    display: flex;
    align-items: center;
    padding: 8px 0 8px 20px;
    color: #777;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    position: relative;
}

.offcanvas__submenu_item:hover {
    background: transparent;
    color: #00a99d;
    text-decoration: none;
    padding-left: 25px;
}

.category-icon-mobile {
    width: 16px;
    height: 16px;
    background: #f5f5f5;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-icon-mobile svg {
    color: #777;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.offcanvas__submenu_item:hover .category-icon-mobile {
    background: #00a99d;
    transform: scale(1.05);
}

.offcanvas__submenu_item:hover .category-icon-mobile svg {
    color: #ffffff;
} 