/* Category Menu Shortcode - Hover Mega Menu */
.ptfc-category-menu { 
    position: relative; 
    margin-bottom: 0;
}
.ptfc-cat-toggle { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    padding: 10px 0; 
    font-weight: bold; 
    font-size: 16px; 
    color: #ffffff;
}
.ptfc-cat-toggle-icon { 
    width: 20px; 
    height: 20px; 
    color: #ffffff;
}

/* Mega menu wrapper position absolute */
.ptfc-mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 99999;
    background: #fff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ptfc-category-menu:hover .ptfc-mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ptfc-cat-list { 
    list-style: none; 
    padding: 8px 0; 
    margin: 0; 
}
.ptfc-cat-list li { 
    position: static; /* Allows absolute positioning of child panel relative to wrapper */
    border-bottom: none;
}
.ptfc-cat-list li a { 
    display: flex; 
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px; 
    color: #334155; 
    text-decoration: none; 
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s; 
}
.ptfc-cat-list li a:hover { 
    background: #f8fafc; 
    color: var(--ptfc-primary); 
}
.ptfc-cat-item-icon {
    width: 16px;
    height: 16px;
    color: #64748b;
    transition: color 0.2s;
    flex-shrink: 0;
}
.ptfc-cat-list li a:hover .ptfc-cat-item-icon {
    color: var(--ptfc-primary);
}
.ptfc-cat-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    transition: transform 0.2s;
}
.ptfc-cat-list li:hover > a .ptfc-cat-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Dropdown Right Panel */
.ptfc-cat-dropdown-panel {
    position: absolute;
    top: 0;
    left: 100%;
    width: 550px;
    height: auto;
    min-height: 100%;
    min-height: 350px;
    background: #fff;
    border-left: 1.5px solid #f1f5f9;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.08);
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s ease;
    z-index: 10;
}
.ptfc-cat-list li:hover .ptfc-cat-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.ptfc-panel-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1.5px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ptfc-cat-dropdown-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 20px;
}
.ptfc-cat-dropdown-panel ul li {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 6px;
}
.ptfc-cat-dropdown-panel ul li {
    margin-bottom: 6px;
}
.ptfc-cat-dropdown-panel ul li a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
}
.ptfc-cat-dropdown-panel ul li a:hover {
    color: var(--ptfc-primary);
    background: transparent;
    padding-left: 5px;
}
.ptfc-child-check {
    width: 12px;
    height: 12px;
    color: var(--ptfc-primary);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}
.ptfc-cat-dropdown-panel ul li a:hover .ptfc-child-check {
    opacity: 1;
    transform: scale(1);
}
