.topic-top {
    margin: 0 0 30px;
    border-radius: 9px;
    background: #D2F3FB;
    padding: 20px;
    display: flex;
    flex-direction: column;
    grid-gap: 18px;
    text-align: center;
}

.topic-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-gap: 6px;
    flex-wrap: wrap;
}

.topic-breadcrumb a {
    color: #137CA6;
}

.topic-breadcrumb  span {
    display: flex;
    color: #A3A3A3;
}

.topic-top-title {
    color: #139CC6;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
}

.topic-top-des {
    font-size: 14px;
    color: #262626;
    max-width: 680px;
    margin: 0 auto;
}

.topic-search-wrapper {
    display: flex;
    justify-content: center;
}

.topic-search-wrapper input {
    background: #fff;
    border: 0;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    padding: 11px;
    color: #737373;
    width: 450px;
    line-height: 1;
}

.topic-search-wrapper button {
    border-radius: 0 8px 8px 0;
    background: var(--Primary-600, #137CA6);
    border: 0;
    color: #fff;
    font-size: 14px;
    padding: 10px;
}

.topic-search-wrapper button:hover {
    opacity: 0.9;
}

.topic-specific-title {
    color: #137CA6;
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
}

.topic-specific-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 16px;
}

.topic-specific-item {
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25);
    padding: 22px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.topic-specific-item-hot {
    background: #d60e0e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px 3px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 6px;
    right: -24px;
    transform: rotate(45deg);
    line-height: 1;
}

.topic-specific-item-title {
    color: #262626;
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.topic-specific-item-link {
    color: #525252;
    font-size: 14px;
    margin: 0 auto;
    display: inline-flex;
    background: #f5f5f5;
    padding: 6px 10px;
    border-radius: 32px;
    line-height: 1;
}

.topic-specific-more {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-align: center;
    font-size: 16px;
    grid-gap: 4px;
}

.topic-list-title {
    margin-top: 50px;
    margin-bottom: 0;
    color: #137CA6;
    font-size: 20px;
    font-weight: 600;
    padding: 2px 0;
}

.topic-list-menu {
    margin: 16px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    grid-gap: 8px;
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 16px;
}

.topic-list-menu-item {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    padding: 7px 10px;
    line-height: 1;
    cursor: pointer;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-list-menu-item.no-product {
    color: #A3A3A3;
}

.topic-list-menu-item.active {
    background: #137CA6;
    color: #fff;
}

.topic-list-item-wrapper {
    display: flex;
    grid-gap: 8px;
    align-items: flex-start;
    padding: 16px 0;
    flex-direction: column;
}

.topic-list-item-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #139CC6;
    font-size: 24px;
    font-weight: 600;
    padding: 0 5px;
    line-height: 1;
    border-bottom: 1px solid #139CC6;
}

.topic-list-item {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    grid-row-gap: 12px;
    grid-column-gap: 24px;
}

.topic-list-item-title {
    padding: 10px 0;
    font-size: 16px;
    position: relative;
}

.topic-list-item-title-text {
    color: #262626;
    font-size: 16px;
}

h3.topic-list-item-title-text {
    display: inline;
    margin: 0;
}

.topic-list-item-count {
    color: #746e6e;
    font-size: 14px;
    font-weight: 400;
}

.topic-list {
    margin-bottom: 16px;
}

.topic-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-gap: 32px;
    margin-bottom: 24px;
}

.topic-content-right .slide-feature-sidebar .list-product-item {
    background-color: #fff;
}

.topic-best-sale-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: 12px;
    margin-bottom: 12px;
}

.topic-best-sale-view-all {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.topic-best-sale-more {
    margin-top: 14px;
    text-align: center;
}

.topic-best-sale-heading .widget-title {
    margin-bottom: 0;
}

body:has(.topic-content) #main {
    background: #f5f5f5;
}

.topic-content-left-title {
    color: #404040;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
}

.topic-content-left-item {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    grid-gap: 15px;
}

.topic-content-left-item + .topic-content-left-item {
    margin-top: 20px;
}

.topic-content-left-item img {
    border-radius: 7px 0 0 7px;
    object-fit: cover;
}

.topic-content-left-item-content {
    display: flex;
    flex-direction: column;
    grid-gap: 12px;
}

.topic-content-left-item-content-category {
    color: #137CA6;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px; 
    padding: 4px 8px;
    border-radius: 24px;
    background: #F5F5F5;
    width: fit-content;
}

.topic-content-left-item-content-title,
.topic-content-left-item-content-title h3 {
    color: #171717;
    font-size: 20px;
    font-weight: 600;
    line-height: 120%;
    margin: 0;
}

.topic-content-left-item-content-des {
    color: #262626;
    font-size: 16px;
    line-height: 20px; 
}

.topic-content-left-more {
    margin: 20px 0;
    color: #000;
    display: flex;
    align-items: center;
    grid-gap: 4px;
    line-height: 1;
}

/* FAQ Styles */
.topic-faq {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-top: 24px;
    display: none
}

.topic-faq-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 16px;
}

.topic-faq-list {
    display: flex;
    flex-direction: column;
    grid-gap: 8px;
}

.topic-faq-item {
    border: 1px solid #F3F4F6;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.topic-faq-item.active {
    border-color: #139CC6;
    background-color: #F8FDFF;
}

.topic-faq-question {
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.2s;
    grid-gap: 8px;
}

.topic-faq-item.active .topic-faq-question {
    background: #F8FDFF;
}

.topic-faq-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #171717;
}

.topic-faq-arrow {
    transition: transform 0.3s ease;
    color: #171717;
    display: flex;
}

.topic-faq-item.active .topic-faq-arrow {
    transform: rotate(180deg);
}

.topic-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.topic-faq-item.active .topic-faq-answer {
    max-height: 500px;
}

.topic-faq-answer-content {
    padding: 0 30px 12px 38px;
    color: #525252;
    font-size: 15px;
    line-height: 1.4;
}

.topic-related-topic {
    border-radius: 10px;
    background: #fff;
    padding: 18px 16px;
    margin-top: 24px;
}

.topic-content-right-title {
    color: #171717;
    font-size: 19px;
    font-weight: 600;
    line-height: 120%; 
    margin-bottom: 15px;
}

.topic-content-right-item-title {
    color: #171717;
    font-size: 15px;
    font-weight: 600;
}

.topic-content-right-item-count {
    font-size: 14px;
    color: #A3A3A3;
    white-space: nowrap;
}

.topic-content-right-item {
    display: flex;
    align-items: center;
    grid-gap: 4px;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 12px;
    background: #f8f8f8c9;
}

.topic-content-right-item + .topic-content-right-item {
    margin-top: 14px;
}

.topic-content-right .slide-feature-sidebar .slick-prev,
.topic-content-right .slide-feature-sidebar .slick-next {
    top: -28px;
}

.topic-content-right-more {
    margin-top: 15px;
    display: flex;
    align-items: center;
    grid-gap: 4px;
    line-height: 1;
}

.flashsale-product-item {
    position: relative;
    border-radius: 9px;
    background: #fff;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
}

.flashsale-icon {
    position: absolute;
    top: 6px;
    left: 6px;
}

.flashsale-product-item-content {
    padding: 7px;
}

.flashsale-product-item img {
    border-radius: 9px;
}

.flashsale-product-item-content-title {
    color: #0A0A0A;
    font-size: 15px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.flashsale-product-item-content-price {
    margin: 8px 0;
}

.flashsale-product-item-content-price-old {
    font-weight: 600;
    color: #D92A28;
}

.flashsale-product-item-content-price-new {
    font-size: 14px;
    color: #A3A3A3;
    text-decoration-line: line-through;
}

.flashsale-product-item-content-button {
    padding: 8px 12px;
    border-radius: 9px;
    background: var(--Linear, linear-gradient(90deg, #EC4747 0%, #FF7F0B 100%));
    border: 0;
    color: #fff;
    display: flex;
    align-items: center;
    grid-gap: 4px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    transition: .3s ease;
}

.flashsale-product-item-content-button:hover {
    background: var(--Linear, linear-gradient(90deg, #FF7F0B 0%, #EC4747 100%));
}

.topic-description-box {
    margin: 32px 0;
}

.topic-description-box-title {
    font-size: 20px;
    color: #404040;
    font-weight: 700;
    margin-bottom: 8px;
}

.topic-description-box-content {
    color: #000;
    font-size: 16px;
    line-height: 1.3;
}

.topic-content-right .list-product-title a {
    font-weight: 700;
    color: #0A0A0A;
    font-size: 15px;
}

.topic-content-right .product-price {
    font-weight: 600;
}

.topic-content-right .list-product-item .high-price {
    color: #A3A3A3;
}

.topic-content-right .product-add-to-cart-btn {
    position: static;
    grid-gap: 4px;
    border-radius: 9px;
    background: var(--Linear, linear-gradient(90deg, #EC4747 0%, #FF7F0B 100%));
    color: #fff;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 12px;
}

.topic-content-right .product-add-to-cart-btn svg {
    transform: unset;
}

@media(max-width: 767px) {
    .topic-page {
        padding: 10px;
    }

    .topic-top {
        margin: 0 0 36px;
    }

    .topic-search-wrapper button {
        white-space: nowrap;
    }

    .topic-search-wrapper {
        margin-bottom: 0;
    }

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

    .topic-list-title {
        margin-top: 40px;
    }

    .topic-list-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: calc(100vw - 10px);
    }

    .topic-list-item {
        grid-template-columns: 1fr;
    }

    .topic-list-item-title {
        padding: 4px 0 4px 14px;
    }

    .topic-detail-page {
        padding: 10px;
    }

    .topic-detail-page .topic-top {
        padding: 20px 8px;
        grid-gap: 12px;
        margin-bottom: 24px;
    }

    .topic-top-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .topic-content {
        grid-template-columns: 1fr;
        margin-bottom: 16px;
        grid-gap: 16px;
    }

    .topic-content-left-item {
        padding: 0;
        grid-template-columns: 100px minmax(0, 1fr);
        grid-gap: 16px;
    }

    .topic-content-left-item > a {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topic-content-left-item-content-des {
        display: none;
    }

    .topic-content-left-item-content-category {
        font-size: 14px;
    }

    .topic-content-left-item img {
        border-radius: 7px;
        width: 100%;
        height: auto;
    }

    .topic-content-left-item + .topic-content-left-item {
        margin-top: 24px;
    }

    .topic-content-left-more {
        justify-content: center;
        margin: 32px 0;
    }

    .topic-faq {
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .topic-faq-text {
        font-size: 15px;
    }

    .topic-faq-answer-content {
        padding-top: 0;
    }
    
    .topic-faq-icon {
        width: 20px;
        height: 20px;
    }
    
    .topic-faq-question {
        padding: 8px;
        grid-gap: 10px;
    }

    .topic-related-topic {
        margin-top: 0; 
        padding-left: 0;
        padding-right: 0;
    }

    .topic-content-right-list {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 12px;
    }

    .topic-content-right-item + .topic-content-right-item {
        margin-top: 0;
    }

    .topic-content-right-more {
        justify-content: center;
    }

    .flashsale-product-item {
        display: flex;
        flex-direction: column;
        margin-top: 0;
    }

    .flashsale-product-wrapper {
        max-width: 100vw;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
        margin-top: 32px;
    }

    .flashsale-product-item img {
        max-width: 100%;
    }

    .flashsale-product-item-img {
        background: #f5f5f5;
        border-radius: 9px;
    }

    .flashsale-product-item-img img {
        mix-blend-mode: multiply;
    }

    .flashsale-product-item-content-button {
        font-size: 14px;
        font-weight: 500;
        width: 100%;
        justify-content: center;
    }

    .topic-specific-item-title {
        font-size: 18px;
    }

    .topic-content-left-item-content-title h3 {
        margin-top: 0;
        line-height: 1.3;
        font-size: 16px;
        margin-bottom: 0;
        font-weight: 500;
    }

    .topic-content-left-item-content-title {
        font-weight: 500;
    }

    .topic-content-left-item-content {
        grid-gap: 8px;
    }

    .topic-content-right .slide-feature-sidebar .slick-prev, 
    .topic-content-right .slide-feature-sidebar .slick-next {
        width: 36px;
        height: 36px;
        background: rgba(111, 111, 111, .4);
        border-radius: 50px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #fff;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9;
    }

    .topic-content-right .slide-feature-sidebar .slick-disabled {
        color: #fff !important;
        opacity: 0.5;
    }

    .topic-content-right .slide-feature-sidebar .slick-prev {
        left: 0;
    }

    .topic-content-right .slide-feature-sidebar .slick-next {
        right: 0;
    }

    .topic-content-right .slide-feature-sidebar .slick-track {
        grid-gap: 0;
    }

    .slide-feature-sidebar .news-product-image {
        background-color: #f8f8f8;
    }

    .list-product.slide-feature-sidebar {
        position: relative;
    }

}

/* Pagination Styling */
.topic-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.topic-pagination .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    grid-gap: 8px;
    margin: 0;
}

.topic-pagination .pagination ul {
    margin: 0;
}

.topic-pagination .pagination li {
    display: inline-block;
    margin-right: 8px;;
}

.topic-pagination .pagination li a, 
.topic-pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    color: #262626;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #E5E5E5;
}

.topic-pagination .pagination li.active span {
    background: #137CA6;
    color: #fff;
    border-color: #137CA6;
}

.topic-pagination .pagination li a:hover {
    background: #F0F9FF;
    border-color: #137CA6;
    color: #137CA6;
}

.topic-pagination .pagination li.disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

.topic-featured {
    margin-bottom: 30px;
}

.topic-featured-list {
    margin: 0 -8px;
}

.topic-featured-list:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
}

.topic-featured-list:not(.slick-initialized) .topic-featured-item {
    width: 25%;
    flex-shrink: 0;
}

.topic-featured-item {
    padding: 0 10px;
    outline: none;
}

.topic-featured-item-wrapper {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
}

.topic-featured-item-image {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    aspect-ratio: 280 / 204;
    background: #f5f5f5;
}

.topic-featured-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    mix-blend-mode: multiply;
}

.topic-featured-item:hover .topic-featured-item-image img {
    transform: scale(1.05);
}

.topic-featured-item-content {
    display: flex;
    flex-direction: column;
    grid-gap: 8px;
}

.topic-featured-item-category {
    color: #137CA6;
    font-size: 14px;
    font-weight: 500;
    width: max-content;
    background: #F5F5F5;
    padding: 4px 6px;
    border-radius: 32px;
}

.topic-featured-item-title,
.topic-featured-item-title h3 {
    color: #171717;
    font-size: 16px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    text-align: left;
    margin: 4px 0 0;
}

.topic-featured-item-title:hover {
    color: #137CA6;
}

.topic-featured-item-date {
    display: flex;
    align-items: center;
    grid-gap: 4px;
    color: #737373;
    font-size: 14px;
}

.topic-featured-item-date svg {
    opacity: 0.6;
}

/* Slick Customization */
.slide-topic-featured .slick-prev,
.slide-topic-featured .slick-next {
    width: 36px;
    height: 42px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slide-topic-featured .slick-prev:hover,
.slide-topic-featured .slick-next:hover {
    background: #137CA6;
    width: 36px;
    height: 42px;
    color: #fff;
}

.slide-topic-featured .slick-arrow svg {
    width: 24px;
    height: 24px;
}

.slide-topic-featured .slick-prev::before,
.slide-topic-featured .slick-next::before {
    color: #171717;
    font-size: 20px;
    opacity: 1;
}

.slide-topic-featured .slick-prev:hover::before,
.slide-topic-featured .slick-next:hover::before {
    color: #fff;
}

.topic-content-right .widget-title {
    background: transparent;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    color: #404040;
}

.topic-detail-page .read-more-category span {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.container:has(.content-descrition-wrapper) {
    padding-bottom: 30px;
    padding-top: 30px;
}

.category-description-wrapper.cat-show-fewer::after {
    background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0), #f5f5f5);
}

@media(max-width: 767px) {
    .topic-featured {
        margin-bottom: 24px;
    }
    
    .topic-featured-list {
        margin: 0;
        display: flex;
        overflow-x: auto;
        grid-gap: 16px;
        scroll-snap-type: x mandatory;
        position: relative;
    }

    .topic-featured-list:not(.slick-initialized) .topic-featured-item {
        width: 280px;
    }
    
    .topic-featured-list::-webkit-scrollbar {
        display: none;
    }
    
    .topic-featured-item {
        min-width: 280px;
        padding: 0;
        scroll-snap-align: start;
    }

    .topic-featured-item.slick-slide {
        float: left;
    }
    
    .topic-featured-item-title,
    .topic-featured-item-title h3 {
        font-size: 16px;
        height: 42px;
        margin-top: 0;
        font-weight: 600;
    }

    .slide-topic-featured .slick-prev,
    .slide-topic-featured .slick-next {
        position: absolute;
        top: 32%;
        border-radius: 50px;
        height: 36px;
    }

    .slide-topic-featured .slick-prev {
        left: 4px;
    }

    .slide-topic-featured .slick-next {
        right: 4px;
    }

    .slide-topic-featured .slick-prev:hover, 
    .slide-topic-featured .slick-next:hover {
        height: 36px;
    }

    .slide-feature-sidebar.slick-initialized .slick-slide {
        width: 100vw !important;
        min-width: calc(100vw - 20px);
        grid-gap: 16px;
    }

    .slide-feature-sidebar .slick-list {
        max-width: calc(100vw - 20px);
    }

    .topic-content-left-title {
        margin-top: 0;
    }

    .topic-content-right .slide-feature-sidebar .list-product-item {
        align-items: center;
        padding: 0;
    }

    .list-product-item .news-product-content {
        position: relative;
    }

    .topic-content-right .product-add-to-cart-btn {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .topic-featured-item-wrapper {
        padding: 0;
    }

    .topic-pagination {
        margin-top: 0;
    }

    .topic-pagination .pagination {
        margin-bottom: 0;
    }

    .topic-pagination .pagination ul {
        padding: 0;
    }

    .topic-pagination .pagination ul li {
        margin-left: 12px;
    }

    .topic-detail-page .read-more-category span,
    .topic-detail-page .read-more-category span::after {
        color: var(--primary);
    }

    .category-description-wrapper {
        position: relative;
        padding-left: 0;
        padding-right: 0;
    }

    .category-description-wrapper.cat-show-fewer::after {
        content: "";
        position: absolute;
        bottom: 0;
        height: 60px;
        width: 100%;
        display: block;
        background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0), #fff);
        pointer-events: none;
    }
}

@media (min-width: 1110px) {
    .topic-content-right .news-new-product-list {
        position: sticky;
        top: 100px;
        background: #f5f5f5;
        z-index: 9;
    }

    #main .container:has(.news-new-product-list) {
        overflow: visible;
    }
}