/* --- News Section --- */
.pt_news {
    padding: 30px 0;
}

.pt_news-inner {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 3px 10px;
}

.news-slider .slick-slide {
    margin: 0 10px;
}

.news-slider .slick-list {
    margin: 0 -10px;
}

.news-slider .slick-dots {
    margin-top: 30px;
}

.banner {
    margin-top: 0;
}

.banner-wrap {
    aspect-ratio: 1260 / 504;
}

.banner-slider img {
    border-radius: 5px;
    width: 100%;
}

/* Category  */
.category-home-wrap {
    padding: 20px;
    background-color: var(--color-2);
    border-radius: 5px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 3px 10px;
}

.home-categories {
    padding: 15px 0;
}

.item-category {
    /* background-color: var(--color-2); */
    font-weight: 700;
    position: relative;
    text-align: center;
    display: block;
    margin: 60px 0px 0;
    /* padding: 60px 8px 15px; */
}

.item-category .wrap-img {
    padding-bottom: 70%;
    border-radius: 50%;
    width: 70%;
    margin: 0 auto 10px;
    /* position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%); */
}

.item-category .name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 37px;
    font-size: 13px;
}

.category-slider .slick-slide {
    margin: 0px 8px 0;
}

.category-slider .slick-list {
    margin: 0 -8px;
}


/* Flash sale  */
.flash-sale {
    margin-top: 15px;
}

.flash-sale .inner {
    background-color: var(--color-5);
    padding: 25px 20px 20px;
    border-radius: 5px;
}

.flash-sale .title {
    color: #FFF;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    background: var(--color-3);
    display: inline-block;
    padding: 7px 20px;
    height: 46px;
    margin-left: 27px;
}

.flash-sale .title-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.flash-sale .title::before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    border: 23px solid var(--color-3);
    z-index: 0;
    left: -23px;
    border-right-width: 2px;
    border-left-color: transparent;
}

.flash-sale .title::after {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    border: 23px solid var(--color-3);
    z-index: 0;
    border-color: var(--color-3);
    right: -23px;
    border-left-width: 2px;
    border-right-color: transparent;
}

.flash-sale .time-sale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.flash-sale .time-sale span {
    margin-right: 8px;
    color: var(--color-2);
}

.flash-sale .time-sale .time {
    background-color: var(--color-3);
    color: #FFF;
    border-radius: 5px;
    padding: 4px;
    width: 37px;
}

.flash-sale .time-sale .number {
    font-weight: 700;
}

.flash-sale .time-sale .type {
    font-size: 12px;
}

.flash-sale .see-all {
    text-align: right;
}

.flash-sale .see-all svg {
    width: 25px;
    height: 25px;
}

.flash-sale .see-all a {
    color: var(--color-2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: underline;
}

.flash-sale .item-product {
    border: none !important;
}

.product-category .product-block {
    padding-top: 5px;
    margin-top: 0;
}

.product-block {
    margin-top: 16px;
}

.product-block>.row {
    row-gap: 16px;
}

.flashsale-slider {
    margin-top: 25px;
}

.flashsale-slider .slick-slide {
    margin: 0 8px;
}

.flashsale-slider .slick-list {
    margin: 0 -8px;
}

.flashsale-slider .slick-dots {
    margin-top: 20px;
}

/* Product category  */
.product-category .inner {
    background-color: var(--color-2);
    border-radius: 5px;
    margin-top: 30px;
    padding: 20px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 3px 10px;
}

.category-child-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    padding: 0 30px;
}

.category-child {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-child::-webkit-scrollbar {
    display: none;
}

.category-child li {
    flex-shrink: 0;
    display: block;
}

.category-child li a {
    display: block;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e2e2e2;
    font-weight: 400;
    font-size: 12px;
    background-color: var(--color-2);
    color: var(--color-1);
    transition: all 0.2s ease;
}

.category-child li a:hover {
    color: var(--color-2);
    background-color: var(--color-3);
    border-color: var(--color-3);
}

.category-child-wrapper .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-2);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: var(--color-3);
    transition: all 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
    padding: 0;
}

.category-child-wrapper .nav-btn .material-symbols-outlined {
    font-size: 18px;
}

.category-child-wrapper .nav-btn.visible {
    opacity: 1;
    visibility: visible;
}

.category-child-wrapper .nav-btn:hover {
    background-color: var(--color-3);
    color: var(--color-2);
    border-color: var(--color-3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.category-child-wrapper .prev-btn {
    left: 0;
}

.category-child-wrapper .next-btn {
    right: 0;
}

.category-child-wrapper .nav-btn.disabled {
    opacity: 0.3 !important;
    pointer-events: none;
}

.product-category .title a {
    color: var(--color-2);
    text-transform: uppercase;
    font-size: 15px;
    padding: 6px 20px;
    background: var(--color-3);
    border-radius: 5px 5px 0 0;
    margin-right: 20px;
    position: relative;
    line-height: 24px;
    display: inline-block;
}

.product-category .title a:after {
    content: '';
    display: block;
    line-height: 36px;
    background: var(--color-3);
    width: 25px;
    height: 36px;
    position: absolute;
    top: 0;
    right: 0;
    margin-right: -10px;
    transform: skewX(21deg);
    border-radius: 0 5px 0 0;
}

.product-category .banner-category {
    margin-top: 25px;
}

.product-category .banner-category .slick-slide {
    margin: 0 8px;
}

.product-category .banner-category .slick-list {
    margin: 0 -8px;
}

.product-category .banner-category img {
    border-radius: 5px;
}

/* service  */
.service {
    padding: 20px 0 10px;
}

.service-box {
    height: 100%;
    padding: 20px;
    overflow: hidden;
    background: linear-gradient(24deg, rgba(239, 239, 239, 1) 68%, rgba(255, 255, 255, 1) 93%);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 3px 10px;
}

.service-icon img {
    object-fit: contain;
    height: 80px;
    width: 80px;
    margin-right: 0;
    animation: 4s ease-in-out 0s normal none infinite running fade-bg2;
}

.service-content h5 {
    font-size: 17px;
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-content .desc {
    padding: 0;
    font-size: 14px;
    color: #555;
}

.service-box {
    width: 100%;
    background: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
}


.service-box1::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 156px solid transparent;
    border-left: 556px solid #fff;
    border-bottom: 0px solid transparent;
    border-right: 0 solid transparent;
    position: absolute;
    top: 0px;
    left: 0;
}

.service-content {
    padding-left: 10px;
}

.home-ads-section {
    padding: 40px 0;
}

/* Related Category Banners */

.category-banners-wrap {
    background-color: var(--color-2);
    border-radius: 5px;
    margin-top: 30px;
    padding: 20px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 3px 10px;
}

.category-banner-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.category-banner-img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.category-banner-link:hover .category-banner-img {
    transform: scale(1.05);
}

/* Responsive aspect ratios for different item counts */
.category-banners[data-count="1"] .category-banner-img {
    aspect-ratio: 21 / 6;
    min-height: 200px;
    max-height: 350px;
}

.category-banners[data-count="2"] .category-banner-img {
    aspect-ratio: 16 / 9;
    max-height: 280px;
}

.category-banners[data-count="3"] .category-banner-img {
    aspect-ratio: 2 / 1.07;
}

.service-slider .slick-slide {
    margin: 0 8px;
}

.service-slider .slick-list {
    margin: 0 -8px;
}

@media (max-width: 992px) {
    .service-slider .slick-dots {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {

    .category-banners[data-count="1"] .category-banner-img,
    .category-banners[data-count="2"] .category-banner-img,
    .category-banners[data-count="3"] .category-banner-img {
        aspect-ratio: 16 / 9;
        max-height: 250px;
    }

    .category-child-wrapper {
        padding: 0;
    }

    .category-child-wrapper .nav-btn {
        display: none !important;
    }
}

@media (max-width: 550px) {
    .flash-sale .inner {
        padding: 15px 10px;
        position: relative;
    }

    .flash-sale .title {
        font-size: 16px;
        line-height: 33px;
        margin-left: 0px;
    }

    .flash-sale .title-wrap {
        display: block;
        text-align: center;
    }

    .flash-sale .time-sale {
        background: var(--color-3);
        justify-content: center;
        border-radius: 5px;
        font-size: 16px;
        gap: 10px 15px;
        margin-top: 10px;
    }

    .flash-sale .time-sale .time {
        width: auto;
    }

    .flashsale-slider .slick-slide {
        margin: 0 4px;
    }

    .flashsale-slider .slick-list {
        margin: 0 -4px;
    }

    .product-category .title a {
        font-size: 13.5px;
    }

    .product-category .inner {
        padding: 15px;
    }

    .home-ads-section {
        padding: 0px 0 40px;
    }
}

@media (max-width: 380px) {
    .flash-sale .title {
        font-size: 13px;
    }
}

.home-category-sidebar {
    background-color: var(--color-2);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    height: 100%;
    position: relative;
    /* anchor for submenus */
}

.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-cat-item {
    border-bottom: 1px solid #f2f2f2;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.sidebar-cat-item:last-child {
    border-bottom: none;
}

.sidebar-cat-link {
    display: flex;
    align-items: center;
    padding: 13px 18px;
    color: #333;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sidebar-cat-link .icon {
    font-size: 20px;
    color: var(--color-3);
    margin-right: 12px;
    transition: color 0.2s ease;
}

.sidebar-cat-link .name {
    flex-grow: 1;
    font-family: var(--font-family);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.sidebar-cat-link .arrow {
    font-size: 18px;
    color: #bbb;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover effects */
.sidebar-cat-link:hover {
    background-color: #fafafa;
    color: var(--color-5);
}

.sidebar-cat-link:hover .icon {
    color: var(--color-5);
}

.sidebar-cat-link:hover .name {
    color: var(--color-5);
}

.sidebar-cat-link:hover .arrow {
    color: var(--color-5);
    transform: translateX(3px);
}

/* Toggle element */
.sidebar-cat-toggle {
    border-top: 1px solid #f2f2f2;
    background-color: var(--color-2);
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 18px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #333;
    transition: background-color 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background-color: #fafafa;
}

.sidebar-toggle-btn .icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-5);
    color: #fff;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.sidebar-toggle-btn .icon-circle .icon {
    font-size: 14px;
    font-weight: bold;
}

.sidebar-toggle-btn .toggle-text {
    flex-grow: 1;
    font-family: var(--font-family);
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.sidebar-toggle-btn .arrow {
    font-size: 14px;
    color: #bbb;
    transition: color 0.2s ease;
}

.sidebar-toggle-btn:hover .toggle-text {
    color: var(--color-5);
}

.sidebar-toggle-btn.expanded .icon-circle {
    transform: rotate(180deg);
}

/* Slide in animation for hidden items */
.sidebar-cat-item.sidebar-cat-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.sidebar-cat-item.sidebar-cat-hidden.show {
    opacity: 1;
    max-height: 100px;
}


/* ==========================================================================
   3-Level Cascading Sidebar Menu
   L1 (sidebar-cat-item) â†’ hover â†’ sidebar-lvl2-panel
   L2 (lvl2-item)        â†’ hover â†’ sidebar-lvl3-panel
   ========================================================================== */

/* Ensure L1 items are positioned correctly to anchor L2 panel */
.sidebar-cat-item {
    position: relative;
}

/* â”€â”€ LEVEL 2 PANEL â”€â”€ */
.sidebar-lvl2-panel {
    position: absolute;
    left: 100%;
    top: -1px;
    width: 220px;
    min-height: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid var(--color-5);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    display: none;
    flex-direction: column;
    /* overflow: hidden; */
}

/* Show L2 panel when hovering L1 */
.sidebar-cat-item:hover>.sidebar-lvl2-panel {
    display: flex;
}

/* Highlight L1 row when hovered */
.sidebar-cat-item:hover>.sidebar-cat-link {
    background-color: var(--color-3);
    color: #fff;
}

.sidebar-cat-item:hover>.sidebar-cat-link .icon,
.sidebar-cat-item:hover>.sidebar-cat-link .name,
.sidebar-cat-item:hover>.sidebar-cat-link .arrow {
    color: #fff;
}

/* L2 panel header */
.lvl2-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 10px;
    background: var(--color-3);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.lvl2-header .material-symbols-outlined {
    font-size: 18px;
    opacity: 0.85;
}

/* L2 list */
.lvl2-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    flex: 1;
}

/* L2 item â€” needs relative for L3 panel */
.lvl2-item {
    position: relative;
}

/* L2 link */
.lvl2-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    gap: 6px;
}

.lvl2-link span:first-child {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lvl2-link .material-symbols-outlined {
    font-size: 17px;
    color: #ccc;
    transition: color 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}

/* L2 link hover */
.lvl2-item:hover>.lvl2-link {
    background-color: #fff8ed;
    color: var(--color-5);
}

.lvl2-item:hover>.lvl2-link .material-symbols-outlined {
    color: var(--color-5);
    transform: translateX(2px);
}

/* â”€â”€ LEVEL 3 PANEL â”€â”€ */
.sidebar-lvl3-panel {
    position: absolute;
    left: 100%;
    top: -1px;
    width: 210px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 3px solid var(--color-5);
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.1);
    z-index: 1200;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

/* Show L3 panel when hovering L2 item */
.lvl2-item:hover>.sidebar-lvl3-panel {
    display: flex;
}

/* L3 header */
.lvl3-header {
    padding: 10px 14px 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--color-3);
    background: #f7f9fc;
    border-bottom: 1px solid #eee;
}

/* L3 list */
.lvl3-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.lvl3-list li a {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 12.5px;
    color: #444;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
    font-weight: 400;
}

.lvl3-list li a::before {
    content: 'â€”';
    font-size: 10px;
    color: var(--color-5);
    margin-right: 8px;
    opacity: 0.6;
    flex-shrink: 0;
}

.lvl3-list li a:hover {
    background-color: #fff8ed;
    color: var(--color-5);
    padding-left: 18px;
}

/* â”€â”€ Ensure clean rounded corners for the menu list â”€â”€ */
.sidebar-cat-list {
    border-radius: 8px;
    overflow: visible;
    /* must be visible so flyouts aren't clipped */
}

/* Responsive */
@media (max-width: 767px) {
    .home-sidebar-clm {
        display: none !important;
    }
}

/* ==========================================================================
   Banner Row â€” Equal Height Layout
   Sidebar (L) controls height; Center & Right stretch to match
   ========================================================================== */

/* Row dÃ¹ng flex Ä‘á»ƒ cÃ¡c cá»™t tá»± Ä‘á»™ng báº±ng nhau */
.banner-row {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch !important;
}

/* Táº¥t cáº£ clm bÃªn trong banner-row Ä‘á»u stretch theo chiá»u cao */
.banner-row>.clm {
    display: flex;
    flex-direction: column;
}

/* Sidebar bÃªn trÃ¡i: chiá»u cao tá»± nhiÃªn tá»« sá»‘ menu */
.banner-row>.home-sidebar-clm {
    flex-shrink: 0;
}

.banner-row>.home-sidebar-clm .home-category-sidebar {
    height: 100%;
}

/* â”€â”€ Cá»™t giá»¯a: Banner slider â”€â”€ */
.banner-row>.banner-center-clm {
    flex: 1;
    min-width: 0;
}

/* Override aspect-ratio cÅ©, Ä‘á»ƒ banner fill chiá»u cao cá»™t */
.banner-main-wrap {
    aspect-ratio: unset !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Slider container fill Ä‘áº§y */
.banner-main-wrap .banner-slider {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.banner-main-wrap .banner-slider .slick-list,
.banner-main-wrap .banner-slider .slick-track,
.banner-main-wrap .banner-slider .slick-slide>div,
.banner-main-wrap .banner-slider .item {
    height: 100%;
    flex: 1;
}

/* áº¢nh banner fill chiá»u cao slider */
.banner-main-wrap .banner-slider picture,
.banner-main-wrap .banner-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* â”€â”€ Cá»™t pháº£i: 2 áº£nh nhá» â”€â”€ */
.banner-right-clm {
    flex-shrink: 0;
}

.banner-side-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
}

/* Má»—i áº£nh nhá» chiáº¿m 50% chiá»u cao wrapper */
.banner-side-wrap .item_images {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 5px;
}

.banner-side-wrap .item_images .category-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

/* Fallback khi mÃ n hÃ¬nh nhá» */
@media (max-width: 991px) {
    .banner-row {
        flex-wrap: wrap !important;
    }

    .banner-row>.banner-center-clm,
    .banner-row>.banner-right-clm {
        flex: unset;
    }

    .banner-main-wrap {
        /* aspect-ratio: 1260 / 504 !important; */
        height: auto;
    }

    .banner-side-wrap {
        flex-direction: row;
        height: auto;
    }

    .banner-side-wrap .item_images {
        aspect-ratio: 1 / 1;
        flex: 1;
    }
}

/* Prevent CLS for service-slider before Slick Carousel initializes */
.service-slider:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
    margin: 0 -8px;
}

.service-slider:not(.slick-initialized)>.item {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    box-sizing: border-box;
    margin: 0 8px;
}

@media (max-width: 992px) {
    .service-slider:not(.slick-initialized)>.item {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .service-slider:not(.slick-initialized)>.item {
        flex: 0 0 calc(100% - 16px);
        max-width: calc(100% - 16px);
    }
}

/* Prevent CLS for category-slider before Slick Carousel initializes */
.category-slider:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
    margin: 0 -8px;
}

.category-slider:not(.slick-initialized)>.item-category {
    flex: 0 0 calc(12.5% - 16px);
    max-width: calc(12.5% - 16px);
    box-sizing: border-box;
    margin: 0 8px;
}

@media (max-width: 1100px) {
    .category-slider:not(.slick-initialized)>.item-category {
        flex: 0 0 calc(14.285% - 16px);
        max-width: calc(14.285% - 16px);
    }
}

@media (max-width: 1000px) {
    .category-slider:not(.slick-initialized)>.item-category {
        flex: 0 0 calc(16.666% - 16px);
        max-width: calc(16.666% - 16px);
    }
}

@media (max-width: 900px) {
    .category-slider:not(.slick-initialized)>.item-category {
        flex: 0 0 calc(20% - 16px);
        max-width: calc(20% - 16px);
    }
}

@media (max-width: 700px) {
    .category-slider:not(.slick-initialized)>.item-category {
        flex: 0 0 calc(25% - 16px);
        max-width: calc(25% - 16px);
    }
}

@media (max-width: 550px) {
    .category-slider:not(.slick-initialized)>.item-category {
        flex: 0 0 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}

@media (max-width: 460px) {
    .category-slider:not(.slick-initialized)>.item-category {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

/* Prevent CLS for news-slider before Slick Carousel initializes */
.news-slider:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
    margin: 0 -10px;
}

.news-slider:not(.slick-initialized)>.news-card {
    flex: 0 0 calc(25% - 20px);
    max-width: calc(25% - 20px);
    box-sizing: border-box;
    margin: 0 10px;
}

@media (max-width: 1200px) {
    .news-slider:not(.slick-initialized)>.news-card {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .news-slider:not(.slick-initialized)>.news-card {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .news-slider:not(.slick-initialized)>.news-card {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}

/* Prevent CLS for flashsale-slider before Slick Carousel initializes */
.flashsale-slider:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
    margin: 0 -8px;
}

.flashsale-slider:not(.slick-initialized)>.item-product {
    flex: 0 0 calc(20% - 16px);
    max-width: calc(20% - 16px);
    box-sizing: border-box;
    margin: 0 8px;
}

@media (max-width: 992px) {
    .flashsale-slider:not(.slick-initialized)>.item-product {
        flex: 0 0 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}

@media (max-width: 550px) {
    .flashsale-slider:not(.slick-initialized)>.item-product {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

@media (max-width: 380px) {
    .flashsale-slider:not(.slick-initialized)>.item-product {
        flex: 0 0 calc(100% - 16px);
        max-width: calc(100% - 16px);
    }
}

/* Prevent CLS for banner-slider before Slick Carousel initializes */
.banner-slider:not(.slick-initialized) {
    display: block;
    overflow: hidden;
}

.banner-slider:not(.slick-initialized)>.item:not(:first-child) {
    display: none;
}

/* Commitments styling */
.service {
    padding: 60px 0 45px !important;
    background-color: #fff !important;
}

.title-commitment {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-3);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-align: center;
}

.divider-diamonds {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    max-width: 320px;
    margin: 0 auto 40px;
}

.divider-diamonds::before,
.divider-diamonds::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #d0d0d0;
}

.divider-diamonds::before {
    margin-right: 12px;
}

.divider-diamonds::after {
    margin-left: 12px;
}

.divider-diamonds .diamond {
    width: 8px;
    height: 8px;
    border: 1px solid #bc7904;
    transform: rotate(45deg);
    display: inline-block;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    justify-content: center;
}

.service-grid .item {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
    box-sizing: border-box;
}

.service-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px !important;
    height: auto !important;
}

.commitment-symbol-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #1c88ce;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #1c88ce;
    margin-bottom: 20px;
    background-color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.commitment-symbol-circle span {
    font-size: 46px;
}

.service-box:hover .commitment-symbol-circle {
    transform: scale(1.08);
    background-color: #1c88ce;
    color: #fff;
}

.service-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 20px;
    animation: none !important;
}

.service-content {
    padding-left: 0 !important;
}


@media (max-width: 991px) {
    .service-grid .item {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 35px;
    }
}

@media (max-width: 575px) {
    .service-grid .item {
        flex: 0 0 50%;
        max-width: 100%;
        margin-bottom: 15px;
        padding: 0;
    }


    .service-content h5 {
        font-size: 14px;
    }

    .title-commitment {
        font-size: 20px;
    }

    .service {
        padding: 30px 0 0 !important;
    }
}

/* Category Banners styling */
.home-category-banner-link {
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 4px 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-category-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 25px;
}

.home-category-banner-link img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-category-banner-link:hover img {
    transform: scale(1.03);
}

.new-products {
    padding: 40px 0;
}

.product-category {
    padding: 40px 0;
}

.header-top__left {
    display: flex;
    align-items: center;
    gap: 3px;
}

.header-top__left .qodef-lang-separator {
    margin: 0 5px;
}

/* Prevent CLS for new-products-slider before Slick Carousel initializes */
.new-products-slider:not(.slick-initialized) {
    display: flex;
    overflow: hidden;
    flex-wrap: nowrap;
    margin: 0 -10px;
}

.new-products-slider:not(.slick-initialized)>.item-product {
    flex: 0 0 calc(20% - 20px);
    max-width: calc(20% - 20px);
    box-sizing: border-box;
    margin: 0 10px;
}

.pt_news {
    padding: 50px 0;
}

@media (max-width: 992px) {
    .new-products-slider:not(.slick-initialized)>.item-product {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@media (max-width: 550px) {
    .new-products-slider:not(.slick-initialized)>.item-product {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .product-category {
        padding: 40px 0 10px;
    }

    .pt_news {
        padding: 30px 0;
    }
}

@media (max-width: 380px) {
    .new-products-slider:not(.slick-initialized)>.item-product {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
}

/* Styling for new-products-slider when initialized to prevent border/shadow clipping */
.new-products-slider .slick-slide {
    margin: 0 10px;
}

.new-products-slider .slick-list {
    margin: 0 -10px;
    padding: 15px 0;
}

@media (max-width: 575px) {
    .new-products-slider .slick-slide {
        margin: 0 6px;
    }

    .new-products-slider .slick-list {
        margin: 0 -6px;
        padding: 0px 0 15px;
    }
}

/* Red View More button styling for homepage category sections */
.btn-view-more-category {
    display: inline-block;
    background-color: #e2050f;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 35px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

.btn-view-more-category:hover {
    background-color: #b5020a;
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 8px 20px;
}

/* Video guide section embeds responsive wrapper */
.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 15px;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Home ads section banners zoom hover effect */
.home-ad-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 25px !important;
}

.home-ad-banner-link:hover img {
    transform: scale(1.03) !important;
}
