.category-menu-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    /* Spacing between items */
    margin-bottom: 30px;
    padding: 20px;

    /* Container Styling - "Card" look (Premium/Bold) */
    background-color: #e1e3e8;
    border: 2px solid #d2d7e4;
    border-radius: 25px;
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);

    max-width: 1200px;
    /* Prevent it from getting too wide on large screens */
    margin-left: auto;
    margin-right: auto;
}

/* Individual Menu Item Styling */
/* ... */

/* FIX FOR STICKY SCROLLING */
/* The main theme sets overflow:hidden on .sq-view which breaks position:sticky. */
/* We must override this for the sticky sidebar to work properly relative to the viewport. */
.sq-view {
    overflow: visible !important;
}

/* ...rest of css... */

/* Individual Menu Item Styling */
.category-menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    /* Comfortable touch area */
    background-color: #ffffff;
    color: #414d5b !important;
    /* Dark grey/blue text */
    border: 2px solid #e6e9eb;
    /* Subtle border */
    border-radius: 50px;
    /* Full pill shape */
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;

    /* Modern shadow and transition */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Ensure span and b inherit correctly */
    line-height: 1.2;
}

/* Remove default styles from inner tags if present */
.category-menu-item span,
.category-menu-item b {
    font-weight: inherit;
    color: inherit;
}

/* Hover State - Premium Feel */
.category-menu-item:hover,
.category-menu-item.active {
    background: linear-gradient(135deg, #4c55a6 0%, #5163de 100%);
    /* Brand gradient */
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(0px);
    /* Lift effect */
    box-shadow: 0 10px 20px rgba(76, 85, 166, 0.3);
    /* Colored shadow matches brand */
}

/* Active/Focus State */
.category-menu-item:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(76, 85, 166, 0.2);
}

/* Mobile Header Styling */
.category-mobile-header {
    display: none;
    /* Hidden on Desktop */
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4c55a6 0%, #5163de 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(76, 85, 166, 0.3);
    transition: all 0.2s;
}

.category-mobile-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 85, 166, 0.4);
}

.category-mobile-header .mobile-toggle-icon {
    font-size: 12px;
    transition: transform 0.3s;
}

.category-mobile-header.active .mobile-toggle-icon {
    transform: rotate(180deg);
}

/* --- Responsive Sidebar Layout --- */

/* Mobile & Tablet (Default) - Collapsible Dropdown Style */
@media (max-width: 1365px) {
    .category-mobile-header {
        display: flex;
        /* Visible on Mobile & Tablet */
    }

    .category-menu-list {
        display: none;
        /* Hidden by default */
        flex-direction: column;
        gap: 10px;
        /* Restore gap for button look */
        padding: 15px;
        /* Add padding around buttons */
        background-color: #f1f3f9;
        /* Subtle background container */
        border: none;
        border-radius: 20px;
        box-shadow: none;
        /* Remove heavy shadow from container */
        margin-top: -15px;
        margin-bottom: 20px;
    }

    .category-menu-list.show {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .category-menu-item {
        display: flex;
        width: 100%;
        margin: 0;
        /* Gap handles spacing */
        padding: 12px 20px;

        /* RESTORE BUTTON LOOK */
        border: 2px solid #e6e9eb;
        border-radius: 50px;
        /* Full Pill Shape */
        justify-content: space-between;

        background-color: #ffffff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        /* Restore Shadow */

        font-weight: 600;
        color: #414d5b;
        transition: all 0.2s;
        margin-bottom: 3px;
    }

    /* Remove the list-style corner logic */
    .category-menu-item:first-child,
    .category-menu-item:last-child {
        border-radius: 50px;
    }

    .category-menu-item:hover,
    .category-menu-item.active {
        /* Desktop Active Style */
        background: linear-gradient(135deg, #4c55a6 0%, #5163de 100%);
        color: #ffffff !important;
        border-color: transparent;
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(76, 85, 166, 0.3);
    }

    /* Invert icon color on mobile active */
    .category-menu-item:hover .category-menu-toggle-icon,
    .category-menu-item.active .category-menu-toggle-icon {
        filter: brightness(0) invert(1);
    }

    /* Submenu Mobile Styling - Floating Card Look */
    .category-submenu {
        position: relative;
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 15px;
        padding: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    }

    .category-submenu-item {
        padding: 10px 15px;
        text-align: left;
        font-size: 14px;
        color: #666;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 8px;
        /* Rounded items */
        position: relative;
    }

    .category-submenu-item:last-child {
        border-bottom: none;
    }

    .category-submenu-item::before {
        display: none;
        /* Clean look */
    }

    .category-submenu-item:hover,
    .category-submenu-item.active {
        color: #4c55a6;
        font-weight: 700;
        background-color: #f8f9fa;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Desktop - Sidebar Layout (Active only on large screens >= 1366px) */
@media (min-width: 1366px) {

    /* Main Grid Container */
    .category-sidebar-layout {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 50px;

        /* OVERRIDE MAIN.CSS CONTAINER LIMITS */
        width: 100% !important;
        max-width: 1450px !important;

        margin: 0 auto;
        padding-top: 20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    /* (Nested media query for 1366px is removed as we are now IN 1366px+) */

    /* Sidebar Column (Menu) */
    .category-sidebar-layout .sq-feature-action2 {
        flex: 0 0 260px;
        align-self: flex-start !important;
        /* Prevent self-alignment to center */
        margin-top: 0 !important;
        /* Remove any top margin pushing it down */
        position: -webkit-sticky;
        position: sticky;
        top: 30px;
        z-index: 100;
        /* Ensure it doesn't overflow its parent if parent is shorter, though unlikely here */
    }

    /* Sidebar Container Styling - Keep the "Card" look if desired, or transparent?
       User said "Yatay menüdeki arkaplan... birebir kullan".
       The horizontal menu had a card container. Let's keep it but vertical.
    */
    .category-sidebar-layout .category-menu-list {
        display: flex;
        flex-direction: column;
        /* Stack items vertically */
        gap: 10px;
        /* Same gap as horizontal */
        padding: 20px;
        /* Same padding */

        /* Keep the Card Look */
        background-color: #e9ebf0;
        border: 2px solid #e4e8f3;
        border-radius: 25px;
        box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);

        margin: 0;
        /* Reset margin */
        width: 100%;
    }

    /* Content Column */
    .category-content-wrapper {
        flex: 1;
        /* Takes remaining space */
        min-width: 0;
        /* Prevents overflow issues */
    }

    /* Menu Items in Sidebar - FORCE STYLE MATCH */
    .category-sidebar-layout .category-menu-item {
        display: flex;
        width: 100%;
        justify-content: center;
        /* keep centered text like horizontal? User said "birebir". */
        text-align: center;
        margin: 0;
        /* The rest of the styles (gradient hover, pill shape, colors) are inherited from global class */
    }

    /* Reset text color for non-active items in sidebar to ensure readability */
    .category-menu-item span,
    .category-menu-item b {
        color: inherit;
    }
}

/* --- Sub-menu Styling --- */
.category-menu-item-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    /* Center align for horizontal view compatibility if needed */
}

.category-submenu {
    display: none;
    /* Hidden by default */
    width: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    margin-top: 5px;
    padding: 12px 0px 6px 5px;
    box-sizing: border-box;
}

.category-submenu-item {
    display: block;
    padding: 0px 10px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    border-radius: 10px;
    transition: background 0.2s;
    text-align: left;
}

.category-submenu-item:hover {
    background-color: #fff;
    color: #4c55a6;
    font-weight: 600;
}

/* Sidebar specific overrides for sub-menu */
@media (min-width: 1366px) {
    .category-sidebar-layout .category-menu-item-wrapper {
        align-items: stretch;
    }

    .category-sidebar-layout .category-submenu-item {
        text-align: left;
        /* INCREASED INDENTATION & PADDING (Manual Restoration) */
        padding-left: 10px;
        padding-top: 2px;
        padding-bottom: 2px;
        font-size: 15px;
        /* Slightly larger for readability */
        margin-bottom: 7px;
        margin-left: 5px;
        margin-right: 12px;
        /* Indent the block slightly */
        border-left: 3px solid transparent;
        /* Prepare for active state border */
    }

    /* Active state for submenu items */
    .category-sidebar-layout .category-submenu-item.active {
        font-weight: 700 !important;
        color: #4c55a6;
        border-left-color: #4c55a6;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .category-sidebar-layout .category-submenu-item:hover {
        border-left-color: #4c55a6;
        background-color: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    }
}

/* Toggle Icon Styling */
.category-menu-item {
    position: relative;
    padding-right: 40px !important;
    /* Make space for chevron */
}

.category-menu-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    z-index: 2;
    /* Content layer */
}

/* White icon on active/hover */
.category-menu-item:hover .category-menu-toggle-icon,
.category-menu-item.active .category-menu-toggle-icon {
    filter: brightness(0) invert(1);
}

/* --- PRODUCT GRID FIXES (Restored) --- */
.sq-card-items {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    margin-right: -30px !important;
}

.sq-card-item {
    display: block;
    /* Removed !important */
    width: calc(25% - 30px) !important;
    margin-right: 30px !important;
    margin-bottom: 30px !important;
}

@media (max-width: 1200px) {
    .sq-card-item {
        width: calc(33.333% - 30px) !important;
    }
}

@media (max-width: 991px) {
    .sq-card-items {
        justify-content: center !important;
        margin-right: 0 !important;
    }

    .sq-card-item {
        width: calc(50% - 20px) !important;
        margin-right: 20px !important;
    }
}

@media (max-width: 480px) {
    .sq-card-item {
        width: 100% !important;
        margin-right: 0 !important;
    }
}

/* Pagination Styling Fix */
.sq-pagination {
    width: 100%;
    clear: both;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    gap: 10px;
}

.sq-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background-color: #e9ebf0;
    color: #555;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 15px;
}

.sq-page-btn:hover {
    background-color: #d4d9e5;
    color: #333;
    text-decoration: none;
}

.sq-page-btn.active {
    background-color: #4c55a6;
    color: #fff;
    cursor: default;
    pointer-events: none;
}

.sq-page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}