.catalog-banner {
    position: relative;
    width: 100%;
    background: #fffbfa;
}

.catalog-banner > picture {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
}

.catalog-banner > picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center right;
}

.catalog-banner-content {
    max-width: 580px;
    padding: 48px var(--gap20);
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: var(--gap14);
    position: relative;
    z-index: 2;
}

.catalog-banner-desc {
    font-weight: 300;
    font-size: var(--gap18);
}

.catalog-banner-button {
    width: fit-content;
    width: -moz-fit-content;
    padding: var(--gap12) var(--gap20);
    background-color: var(--light);
    border-radius: var(--borderRadius);
}

.catalog-shopby-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: var(--gap24);
}

.catalog-main-wrapper {
    padding-right: 5px;
}

.catalog-wrapper {
    --sidebar: 250px;
    display: grid;
    grid-template-columns: var(--sidebar) calc(100% - var(--sidebar));
    grid-gap: var(--gap24);
    margin-top: var(--gap24);
    /* padding: 0 var(--gap20); */
}

.catalog-component:nth-child(n + 2) {
    margin-top: var(--gap24);
}

.catalog-header {
    font-size: calc(18px + (24 - 18) * ((100vw - 300px) / (1920 - 300)));
    margin-bottom: var(--gap8);
    font-weight: 600;
}

.catalog-description {
    font-weight: 300;
    margin-bottom: var(--gap16);
}

.newest-list:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: var(--gap16);
}

.newest-list:not(.swiper-initialized) .swiper-wrapper .product-item-box:nth-child(n + 5) {
    display: none;
}

.init-slider-wapper {
    position: relative;
}

.newest-list {
    margin-top: var(--gap16);
}

.init-slider-wapper .swiper-button-prev,
.init-slider-wapper .swiper-container-rtl .swiper-button-next,
.init-slider-wapper .swiper-button-next,
.init-slider-wapper .swiper-container-rtl .swiper-button-prev {
    top: 0;
    border: 1px solid var(--flash);
    border-radius: var(--borderRadius);
    background-color: var(--white);
    width: 32px;
    height: 32px;
    background-size: 50%;
    outline: none;
    margin-top: 0;
}

.swiper-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: var(--gap12);
    position: relative;
}

.swiper-pagination .swiper-pagination-bullet {
    width: var(--gap12);
    height: var(--gap12);
    margin: 0 4px;
}

.init-slider-wapper .swiper-button-prev,
.init-slider-wapper .swiper-container-rtl .swiper-button-next {
    left: auto;
    right: 50px;
}

.init-slider-wapper .swiper-button-next,
.init-slider-wapper .swiper-container-rtl .swiper-button-prev {
    right: 0;
    left: auto
}

.more-collection {
    text-decoration: underline;
    color: var(--primary);
}

.more-collection:hover {
    text-decoration: none;
}

.whats-new-item {
    --whatsNewImage: calc(350px + (450 - 350) * ((100vw - 300px) / (1920 - 300)));
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    background-color: var(--light);
}

.whats-new-item:nth-child(even) {
    flex-direction: row-reverse;
}

.whats-new-item-image {
    width: var(--whatsNewImage)
}

.whats-new-item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

.whats-new-item-content {
    width: calc(100% - var(--whatsNewImage));
    padding: var(--gap12) 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.whats-new-item-content > *:nth-child(n + 2) {
    margin-top: var(--gap16);
}

.whats-new-item-title {
    font-size: var(--gap20);
}

.whats-new-item-descripition {
    font-weight: 300;
}

.whats-new-item-link {
    color: var(--primary);
}

.sidebar-level1-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--gap18);
}

.sidebar-level1-list ul {
    list-style: none;
    margin: 0;
    padding-left: 10px;
    font-size: var(--gap16);
}

.sidebar-level2-item {
    position: relative;
}

.sidebar-level2-item.selected::before {
    content: "";
    width: calc(100%);
    height: calc(100% + 10px);
    position: absolute;
    top: -5px;
    left: -20px;
    background-color: var(--shadow);
    pointer-events: none;
    display: block;
    border-radius: 30%;
    border-radius: 7px;
    opacity: 0.4;
}

.sidebar-item-box .sub-menu-box {
    margin-top: var(--gap8);
    padding-top: var(--gap8);
    /* border-top: 1px solid var(--flash); */
}

.sidebar-hr {
    border-top: 1px solid var(--flash);
}

.sidebar-level1-link {
    padding: var(--gap8) 0;
    display: block;
    font-weight: 600;
}

.sidebar-level2-link {
    padding: 6px 0;
    display: block;
}

.sidebar-level3-link {
    font-weight: 300;
    padding: 6px 0;
    display: block;
}

.dropdown-item {
    cursor: pointer;
    padding: unset;
    background-color: unset !important;
}

.dropdown-item:hover > a,
.sidebar-level1-item.dropdown-item.active > a {
    color: var(--secondary);
    background-color: unset !important;
}

.dropdown-item > a {
    cursor: pointer;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item.active .dropdown-icon {
    transform: rotate(180deg);
}

.product-color-box,
.product-review-box {
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-gap: 3px;
}

.product-item-box {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 6px;
}

.product-color-item {
    width: 18px;
    min-width: 18px;
    height: 18px;
    display: block;
    margin: 0;
    border-radius: 50%;
    position: relative;
}

.product-color-item::after {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 1px solid var(--gray);
    pointer-events: none;
}

.more-color {
    font-size: 14px;
    color: var(-gray);
    cursor: pointer;
    grid-column-start: span 7;
    line-height: 16px;
}

.sidebar-level2-list {
    display: none;
}

.category-header {
    font-size: calc(21px + (29 - 21) * ((100vw - 300px) / (1920 - 300)));
}

.sortbar-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sortbar-item,
.all-sortbar-item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    user-select: none;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--trans);
}

.sortbar-list li:nth-child(n + 2) {
    margin-left: var(--gap18);
}

.sortbar-background {
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(11 11 11 / 0%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: var(--trans);
}

.open-filter .sortbar-background {
    background-color: var(--backgroundColor);
    opacity: 1;
}

.sortbar-background.selected {
    pointer-events: all;
}

.sortbar-item.selected,
.all-sortbar-item:hover,
.sortbar-item:hover {
    text-decoration: underline;
}

.sortbar-item.selected .dropdown-icon {
    transform: rotate(180deg);
}

.all-sidebar-item > * + *,
.sortbar-item > * + * {
    margin-left: 6px;
}

.dropdown-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
}

.sortbar-content-box {
    position: absolute;
    top: 100%;
    left: -8px;
    width: 240px;
    padding: 0;
    z-index: 8;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--trans);
    opacity: 0;;
}

.sortbar-item.selected .sortbar-content-box {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.sortbar-content {
    background-color: var(--white);
    border-radius: var(--borderRadius);
    box-shadow: 0 6px 36px var(--shadow);

    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden
}

.sortbar-attr {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: var(--gap8) var(--gap12);
    cursor: pointer;
    position: relative;
}

.sortbar-attr input {
    opacity: 0;
    position: absolute;
}

.sortbar-attr input ~ small {
    width: 20px;
    min-width: 18px;
    height: 20px;
    border: 1px solid var(--flash);
    display: block;
    margin-right: var(--gap8);
    position: relative;
    transition: var(--trans);
    border-radius: 3px;
}

.sortbar-attr input ~ small::before {
    content: "";
    opacity: 0;
    width: 10px;
    height: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary);
    display: block;
    transition: var(--trans);
}

.sortbar-attr:hover input ~ small {
    border-color: var(--primary);
}

.sortbar-attr:hover input ~ small::before {
    opacity: 0.6;
}

.sortbar-attr input.selected ~ small {
    border-color: var(--primary);
    background-color: var(--primary);
}

.sortbar-attr input.selected ~ small::before {
    display: none;
}

.sortbar-attr input.selected ~ small::after {
    content: "";
    width: 6px;
    height: 12px;
    display: block;
    transform: rotate(45deg);
    border-bottom: 2px solid var(--white);
    border-right: 2px solid var(--white);
    position: absolute;
    top: 2px;
    left: 6px;
}

.filter-box {
    width: calc(260px + (360 - 260) * ((100vw - 300px) / (1920 - 300)));
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: 0 6px 36px var(--shadow);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    transform: translateX(110%);
    transition: var(--trans);
}

.open-filter .filter-box {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.filter-box > * {
    width: 100%;
}

.filter-list-wrapper {
    padding: var(--gap14) var(--gap24);
}

.filter-heading {
    background-color: var(--white);
    padding: var(--gap14);
    border-bottom: 1px solid var(--flash);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.close-filter-box {
    cursor: pointer;
    border: none;
    outline: none;
    background-color: transparent;
    width: 36px;
    min-width: 36px;
    height: 36px;
    margin-right: var(--gap10);
    opacity: 0.6;
    transition: var(--trans);
}

.close-filter-box:hover {
    opacity: 1;
    color: var(--primary-dk);
}

.filter-title {
    margin: 0 var(--gap10) 0 0;
    line-height: 24px;
    padding: 0;
}

.apply-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: var(--gap10);
    padding: var(--gap14);
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 1;
    margin-top: auto;
}

.apply-filters button {
    border: none;
    outline: none;
    background-color: var(--primary);
    border: 2px solid var(--primary);
    color: #fff;
    padding: var(--gap14);
    width: 100%;
    display: block;
    cursor: pointer;
    text-align: center;
    text-transform: uppercase;
}

.apply-filters .cancel-filter {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--black);
}

.filter-list-wrapper {
    height: calc(100% - 65px - 72px);
    overflow-y: auto;
}

.filter-level1-list,
.filter-level2-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checkbox-label,
.filter-level1-link,
.filter-level2-item,
.sub-page-heading {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: var(--gap12) 0;
    cursor: pointer;
}


.checkbox-label,
.filter-level1-link:nth-child(n +2),
.filter-level2-item:nth-child(n +2),
.filter-item-box:nth-child(n + 2) .sub-page-heading {
    border-top: 1px solid var(--flash);
    cursor: pointer;
}

.toggle-icon {
    margin-left: auto;
}

.sub-page-heading.selected .toggle-icon {
    transform: rotate(180deg);
}

.filter-content {
    display: none;
}

.product-list-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: var(--gap24);
}

/* Apply new styling to old class for backward compatibility */
.product-list-wrapper:not(.category-product-list-wrapper) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.product-list-wrapper.hidden {
    display: none !important;
}

.sortbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--gap10) 0 var(--gap20);
}

.sortbar-order {
    position: relative;
}

.sortbar-order-list {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1;
    background-color: var(--white);
    border-radius: var(--borderRadius);
    box-shadow: 0 6px 36px var(--shadow);
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--trans);
}

.selected .sortbar-order-list {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.sortbar-order-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sortbar-order-item {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--gap10) var(--gap10) var(--gap10) var(--gap20);
}

.sortbar-order svg {
    opacity: 0.5;
}

.sortbar-order-item:nth-child(n + 2) {
    border-top: 1px solid var(--flash);
}

.sortbar-order-item:hover {
    color: var(--secondary);
}

.sortbar-order-item.selected {
    cursor: default;
    color: var(--primary-dk);
}

.sortbar-order-selected {
    padding: 6px 0;
    user-select: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sortbar-wrapper + .sortbar-result {
    transform: translateY(-16px);
}

.sortbar-result {
    margin-bottom: 16px;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

.sortbar-value-item {
    border-radius: var(--gap20);
    padding: 6px 12px;
    background-color: var(--light);
    font-size: 13px;
    font-weight: 400;
}

.sortbar-value-item:nth-child(n + 2) {
    margin-left: 6px;
}

.remove-value {
    cursor: pointer;
    padding: 3px;
    min-width: 20px;
    text-align: center;
    display: block;
}

.remove-value:hover {
    color: var(--priceColor);
}

img {
    max-width: 100%;
    object-fit: contain;
    border: none;
}

.opacity-50 {
    opacity: 0.5;
}

.circle {
    border-radius: 50px;
    border: 1px solid;
    padding: 2px;
    font-size: 12px;
}

@media (max-width: 780px) {
    .catalog-wrapper {
        display: block;
    }

    .sidebar-wrapper {
        width: 260px;
        background-color: var(--white);
        box-shadow: 0 6px 36px var(--shadow);
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 911;
        transform: translateX(-110%);
        transition: transform 300ms ease-in-out;
        pointer-events: none;
    }

    .catalog-banner {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-bottom: var(--gap20);
    }

    .catalog-banner::before {
        display: none;
    }

    .catalog-banner > picture {
        position: relative;
        order: 1;
        transform: none;
    }

    .catalog-banner-content {
        position: relative;
        order: 2;
        transform: none;
        top: auto;
        left: auto;
    }

    .catalog-shopby-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .whats-new-item {
        flex-direction: column;
    }

    .whats-new-item > * {
        width: 100%;
    }

    .whats-new-item-content {
        padding: var(--gap14);
    }

    .whats-new-item-descripition {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
    }

    .whats-new-item:nth-child(even) {
        flex-direction: column-reverse;
    }

    .product-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: var(--gap16);
    }

    .sortbar-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: var(--borderRadius);
        border: 1px solid var(--flash);
        margin: var(--gap14) 0;
    }

    .filter-wrapper,
    .sortbar-item {
        display: none;
    }

    .sortbar-order {
        border-left: 1px solid var(--flash);
    }

    .sortbar-list .all-sortbar-item {
        margin: 0 !important;
        width: 100%;
    }

    .product-color-box .product-color-item:nth-child(n + 4) {
        display: none;
    }

    .product-color-box .more-color {
        display: block;
        grid-column-start: span 9;
    }

}

/* ============================================
   Modern Product Catalog Styles
   ============================================ */

/* Product Catalog Category Cards */
.catalog-category-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.catalog-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.catalog-category-card:hover img {
    transform: scale(1.05);
}

.object-fit-cover {
    object-fit: cover;
}

/* Modern Sidebar Navigation */
.catalog-sidebar-modern {
    position: sticky;
    top: 20px;
    width: 100%;
    max-width: 100%;
}

.catalog-sidebar-modern .card {
    overflow: visible;
}

.catalog-category-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.catalog-nav-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: #566a7f;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-nav-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-nav-item:hover {
    background: #f5f5f9;
    color: #696cff;
    border-left-color: #696cff;
    padding-left: 1.5rem;
}

.catalog-nav-item.active {
    background: linear-gradient(90deg, rgba(105, 108, 255, 0.1) 0%, transparent 100%);
    color: #696cff;
    border-left-color: #696cff;
    font-weight: 600;
}

.catalog-nav-item-highlight {
    background: linear-gradient(135deg, rgba(255, 171, 0, 0.1) 0%, rgba(255, 171, 0, 0.05) 100%);
    color: #ffab00;
    border-left-color: #ffab00;
    font-weight: 600;
}

.catalog-nav-item-highlight:hover {
    background: linear-gradient(135deg, rgba(255, 171, 0, 0.15) 0%, rgba(255, 171, 0, 0.08) 100%);
    color: #ff9800;
}

.catalog-nav-item i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.catalog-nav-item .ms-auto {
    flex-shrink: 0;
    margin-left: auto;
}

.catalog-nav-group {
    width: 100%;
}

.catalog-nav-sub {
    background: #fafbfc;
    padding: 0.5rem 0;
    width: 100%;
    overflow: hidden;
}

.catalog-nav-sub-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 1.25rem 0.625rem 3rem;
    color: #697a8d;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-nav-sub-item span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-nav-sub-item:hover {
    background: #f5f5f9;
    color: #696cff;
    padding-left: 3.25rem;
}

.catalog-nav-sub-item.selected {
    background: rgba(105, 108, 255, 0.1);
    color: #696cff;
    font-weight: 600;
}

.catalog-nav-sub-level2 {
    padding-left: 4rem;
    font-size: 0.875rem;
    color: #a1acb8;
}

.catalog-nav-sub-level2:hover {
    padding-left: 4.25rem;
}

.category-toggle-icon {
    transition: transform 0.3s ease;
}

.catalog-nav-item[aria-expanded="true"] .category-toggle-icon {
    transform: rotate(180deg);
}

/* Hero Banner */
.catalog-hero-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.catalog-banner-title {
    animation: fadeInUp 0.6s ease-out;
}

.catalog-banner-description {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Catalog Page Layout */
.product-catalog-page {
    padding: 0;
    width: 100%;
}

.catalog-content {
    padding: 0;
}

.catalog-main-wrapper {
    padding-top: 0;
}

/* Unified Container System */
.product-catalog-page .library-header {
    width: 100%;
}

.product-catalog-page .library-header .library-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .product-catalog-page .library-header .library-header-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 992px) {
    .product-catalog-page .library-header .library-header-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Banner - Full width with container inside */
.catalog-hero-banner {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.catalog-hero-banner .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .catalog-hero-banner .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Main content container */
.product-catalog-page > .container-fluid {
    padding: 0;
}

/* Sidebar alignment */
.catalog-sidebar-modern .card {
    height: fit-content;
    width: 100%;
}

/* Row alignment - Ensure proper flex layout */
.product-catalog-page > .container-fluid > .row {
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
}

/* Sidebar - Left Side */
.product-catalog-page > .container-fluid > .row > aside {
    float: none !important;
    position: relative !important;
}

/* Main Content - Right Side */
.product-catalog-page > .container-fluid > .row > div.col-md-8,
.product-catalog-page > .container-fluid > .row > div.col-lg-9 {
    float: none !important;
    position: relative !important;
}

/* Ensure proper column widths */
@media (min-width: 768px) {
    .product-catalog-page > .container-fluid > .row > aside.col-md-4 {
        flex: 0 0 auto !important;
        width: 33.33333333% !important;
        max-width: 33.33333333% !important;
    }

    .product-catalog-page > .container-fluid > .row > div.col-md-8 {
        flex: 0 0 auto !important;
        width: 66.66666667% !important;
        max-width: 66.66666667% !important;
    }
}

@media (min-width: 992px) {
    .product-catalog-page > .container-fluid > .row > aside.col-lg-3 {
        flex: 0 0 auto !important;
        width: 25% !important;
        max-width: 25% !important;
    }

    .product-catalog-page > .container-fluid > .row > div.col-lg-9 {
        flex: 0 0 auto !important;
        width: 75% !important;
        max-width: 75% !important;
    }
}

/* Category cards - ensure equal width */
.catalog-category-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.catalog-category-card .card-body {
    flex: 1;
    display: flex;
    width: 100%;
    padding: 0 !important;
    min-height: 0;
    overflow: hidden;
}

.catalog-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Shop by Category Grid - Fix layout */
.product-catalog-page .row.g-4 {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    display: flex;
    flex-wrap: wrap;
}

.product-catalog-page .row.g-4 > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
    width: 100%;
    flex: 0 0 auto;
}

@media (min-width: 576px) {
    .product-catalog-page .row.g-4 > .col-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 768px) {
    .product-catalog-page .row.g-4 > .col-6,
    .product-catalog-page .row.g-4 > .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .product-catalog-page .row.g-4 > [class*="col-"] {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .product-catalog-page .row.g-4 > .col-6,
    .product-catalog-page .row.g-4 > .col-md-4,
    .product-catalog-page .row.g-4 > .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
}

/* Ensure sidebar and main content have consistent width */
.product-catalog-page .row > [class*="col-"] {
    width: 100%;
    box-sizing: border-box;
}

/* Prevent overflow on mobile */
@media (max-width: 767px) {
    .catalog-hero-banner {
        min-height: 300px;
    }

    .catalog-banner-title {
        font-size: 1.75rem !important;
    }

    .catalog-banner-description {
        font-size: 1rem !important;
    }

    .catalog-sidebar-modern {
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
    }

    .catalog-nav-item,
    .catalog-nav-sub-item {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }

    .catalog-nav-sub-item {
        padding-left: 2.5rem;
    }

    .catalog-nav-sub-level2 {
        padding-left: 3.5rem;
    }
}

/* ============================================
   Category Product List Optimization - Premium Design
   ============================================ */

.category-product-list-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Product Item Box Styling - Premium Card */
.category-product-list-wrapper .product-item-box {
    background: #ffffff;
    border: 1.5px solid #e7eaf3;
    border-radius: 16px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.category-product-list-wrapper .product-item-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #696cff 0%, #8b5cf6 50%, #ec4899 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.category-product-list-wrapper .product-item-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(105, 108, 255, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.category-product-list-wrapper .product-item-box:hover {
    border-color: #696cff;
    box-shadow: 0 12px 40px rgba(105, 108, 255, 0.18);
    transform: translateY(-8px);
}

.category-product-list-wrapper .product-item-box:hover::before {
    transform: scaleX(1);
}

.category-product-list-wrapper .product-item-box:hover::after {
    opacity: 1;
}

/* Product Image Container - Premium */
.category-product-list-wrapper .product-image-container {
    width: 100%;
    height: 280px;
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    margin: 0;
}

.category-product-list-wrapper .product-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
}

.category-product-list-wrapper .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

.category-product-list-wrapper .product-item-box:hover .product-image-container img {
    transform: scale(1.08);
}

/* Product Content Wrapper */
.category-product-list-wrapper .product-item-box > *:not(.product-image-container):not(.select-box) {
    padding: 0 1rem;
}

.category-product-list-wrapper .product-item-box > *:last-child {
    padding-bottom: 1rem;
}

@media (min-width: 1200px) {
    .category-product-list-wrapper .product-item-box > *:not(.product-image-container):not(.select-box) {
        padding: 0 0.625rem;
    }
    
    .category-product-list-wrapper .product-item-box > *:last-child {
        padding-bottom: 1.125rem;
    }
}

/* Product Category - Premium Badge */
.category-product-list-wrapper .tab-product-category {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #696cff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.75rem 1rem 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(105, 108, 255, 0.08);
    border-radius: 20px;
    display: inline-block;
    width: fit-content;
}

@media (min-width: 1200px) {
    .category-product-list-wrapper .tab-product-category {
        margin: 0.875rem 1.125rem 0.375rem;
    }
}

/* Product Title - Premium Typography */
.category-product-list-wrapper .tab-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2b3553;
    line-height: 1.4;
    margin: 0.5rem 0;
    min-height: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.tab-product-color-block, .tab-product-color-size, .tab-product-color-price, .tab-product-color-label {
    /* margin: 0 5px; */
}
/* Product Colors - Premium Design */
.category-product-list-wrapper .tab-product-color-block {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    margin: 0.5rem 0 0 0;
}

.category-product-list-wrapper .tab-product-color-item {
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    background: #fff;
}

.category-product-list-wrapper .tab-product-color-item:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(105, 108, 255, 0.25), inset 0 0 0 1px rgba(105, 108, 255, 0.2);
    z-index: 1;
}

/* Product Size - Premium */
.category-product-list-wrapper .tab-product-color-size {
    font-size: 0.8125rem;
    color: #8592a3;
    font-weight: 500;
    margin: 0.375rem 0 0 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.category-product-list-wrapper .tab-product-color-size::before {
    content: '📏';
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Product Price - Premium Design */
.category-product-list-wrapper .tab-product-color-price {
    font-size: 0.8125rem;
    color: #8592a3;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.category-product-list-wrapper .tab-product-color-price > span:first-child {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8592a3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-product-list-wrapper .tab-product-color-price span:last-of-type {
    font-size: 1.375rem;
    font-weight: 800;
    color: #696cff;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #696cff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-product-list-wrapper .tab-product-color-price del {
    font-size: 0.9375rem;
    color: #a1acb8;
    font-weight: 500;
    text-decoration-thickness: 2px;
}

/* Product Material - Premium */
.category-product-list-wrapper .tab-product-color-material {
    font-size: 0.8125rem;
    color: #8592a3;
    margin: 0.375rem 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.category-product-list-wrapper .tab-product-color-material::before {
    content: '🧵';
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Production Time - Premium */
.category-product-list-wrapper .tab-product-color-time {
    font-size: 0.8125rem;
    color: #8592a3;
    margin: 0.375rem 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.category-product-list-wrapper .tab-product-color-time::before {
    content: '⏱';
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Product Labels - Premium Badges */
.category-product-list-wrapper .tab-product-color-label {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.category-product-list-wrapper .product-label {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-product-list-wrapper .product-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Select Box (Checkbox) - Premium */
.category-product-list-wrapper .select-box {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    transform: scale(0.8);
}

.category-product-list-wrapper .product-item-box:hover .select-box {
    display: block !important;
    opacity: 1;
    transform: scale(1);
}

.category-product-list-wrapper .select-box .form-check-input {
    width: 1.375rem;
    height: 1.375rem;
    cursor: pointer;
    border: 2.5px solid #d9dee3;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-product-list-wrapper .select-box .form-check-input:hover {
    border-color: #696cff;
    transform: scale(1.1);
}

.category-product-list-wrapper .select-box .form-check-input:checked {
    background-color: #696cff;
    border-color: #696cff;
    box-shadow: 0 2px 8px rgba(105, 108, 255, 0.4);
}

/* Empty State - Premium */
.category-empty-state {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px dashed #e7eaf3;
    margin: 2rem 0;
}

.empty-state-content {
    text-align: center;
    max-width: 450px;
}

.empty-state-content i {
    opacity: 0.4;
    color: #696cff;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state-content h5 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b3553;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.empty-state-content p {
    font-size: 1rem;
    color: #8592a3;
    line-height: 1.6;
}

/* Responsive Design - Premium */
@media (min-width: 1200px) {
    .category-product-list-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 1.25rem 0;
    }
    
    .category-product-list-wrapper .product-image-container {
        height: 300px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .category-product-list-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
        padding: 1rem 0;
    }
    
    .category-product-list-wrapper .product-image-container {
        height: 280px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .category-product-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .category-product-list-wrapper .product-image-container {
        height: 260px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .category-product-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0.875rem 0;
    }
    
    .category-product-list-wrapper .product-image-container {
        height: 220px;
    }
}

@media (max-width: 575px) {
    .category-product-list-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
        padding: 0.75rem 0;
    }
    
    .category-product-list-wrapper .product-item-box {
        border-radius: 12px;
    }
    
    .category-product-list-wrapper .product-item-box > *:not(.product-image-container):not(.select-box) {
        padding: 0 0.75rem;
    }
    
    .category-product-list-wrapper .product-item-box > *:last-child {
        padding-bottom: 0.75rem;
    }
    
    .category-product-list-wrapper .product-image-container {
        height: 180px;
    }
    
    .category-product-list-wrapper .tab-product-category {
        margin: 0.75rem 0.75rem 0.5rem;
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }
    
    .category-product-list-wrapper .tab-product-title {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
        margin: 0.5rem 0;
    }
    
    .category-product-list-wrapper .tab-product-color-price span:last-of-type {
        font-size: 1rem;
    }
    
    .category-product-list-wrapper .tab-product-color-item {
        width: 25px;
        height: 25px;
        min-width: 25px;
    }
    
    .category-product-list-wrapper .tab-product-color-label {
        display: none;
    }
    
    .category-product-list-wrapper .tab-product-color-time,
    .category-product-list-wrapper .tab-product-color-material {
        font-size: 0.75rem;
    }
    
    .category-product-list-wrapper .select-box {
        top: 0.625rem;
        right: 0.625rem;
        padding: 0.375rem;
    }
}

/* Loading State */
.category-product-list-wrapper[wire\:loading] {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for product items - Premium */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.category-product-list-wrapper .product-item-box {
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-product-list-wrapper .product-item-box:nth-child(1) {
    animation-delay: 0.05s;
}

.category-product-list-wrapper .product-item-box:nth-child(2) {
    animation-delay: 0.1s;
}

.category-product-list-wrapper .product-item-box:nth-child(3) {
    animation-delay: 0.15s;
}

.category-product-list-wrapper .product-item-box:nth-child(4) {
    animation-delay: 0.2s;
}

.category-product-list-wrapper .product-item-box:nth-child(5) {
    animation-delay: 0.25s;
}

.category-product-list-wrapper .product-item-box:nth-child(6) {
    animation-delay: 0.3s;
}

.category-product-list-wrapper .product-item-box:nth-child(n+7) {
    animation-delay: 0.35s;
}
