.page-wrapper {
    background-color: #f5f5f5f5;
}

.header-category {
    .section-title {
        text-align: left;
        color: #0081bf;
        font-size: 18px;
        font-weight: 600;
    }
}

.sub-menu-category {
    position: absolute;
    width: 1000px;
    left: calc(100%) !important;
    border: 0;
    margin-top: 0;
    padding-top: 10px;
    top: 0;
    padding: 0;
    padding-top: 10px;
    min-width: 230px;
    border-radius: 0;
    box-shadow: 0 0 15px -5px rgb(0 0 0 / 40%);

    .title {
        a {
            color: #0081bf !important;
            font-size: 15px;
            border-bottom: 1px solid #ebebeb;
            font-weight: 600;
            padding-bottom: 10px;
            display: block;
        }
    }

    .list-submenu {
        a {
            color: black !important;
            font-weight: 200 !important;
        }
    }
}

.nav-item {
    &:hover {
        .sub-menu-category {
            display: block;
        }
    }
}

.bg-none {
    background: rgb(225, 225, 225);
}

.nav-category {
    background-color: #fff;
    border: 1px solid #dadada;

    .nav-item {
        .nav-link {
            position: relative;
            display: block;
            overflow: hidden;
            white-space: nowrap;
            -o-text-overflow: ellipsis;
            text-overflow: ellipsis;
            padding: 10px 0 10px 40px;
            padding-left: 35px;
            margin-right: 30px;
            border: none;
            color: #000;
            text-decoration: none !important;
            transition: color 0s;
        }

        &:hover {
            background-color: rgb(222, 9, 133);

            &>.nav-link {
                color: #fff;
            }
        }
    }

    .nav-item:first-child {
        border-top: 0 solid rgba(0, 0, 0, .15);
    }

    .nav-item {
        float: none;
        border-top: 1px solid rgba(0, 0, 0, .15);
        position: relative;
        height: 47px;
    }
}

.section-slider {
    padding-left: 0px;
    padding-right: 0px;

    .main-carousel {
        max-height: 550px;
    }
}

.product-carousel {
    height: 320px;

    .popular-product {
        height: 300px;
    }

    &:hover {
        .owl-nav {
            opacity: 1;
        }
    }

    .owl-nav {
        opacity: 1;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 100%;
        display: flex;
        justify-content: space-between;

        &>div {
            font-size: 30px;
            color: $title-color;
            width: 50px;
            height: 50px;
            background-color: rgba(#fff, 0.0);
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .owl-prev {
            margin-left: 20px;
        }

        .owl-next {
            margin-right: 20px;
        }

    }
}


.popular-product {
    cursor: pointer;
    background: #fff;
    background-size: 100% 100%;
    text-align: center;
    position: relative;

    .content-popular {
        position: absolute;
        width: 100%;
        height: 100%;
        padding: 0 10px;
    }

    .thumbnail {
        margin: auto;
        padding-top: 20px;
        min-height: 200px;
        width: 200px !important;
    }

    .background {
        opacity: 0;
        position: absolute;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .name-popular {
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 20px;
        text-transform: capitalize;
        color: #0937de;
        font-weight: 700;
    }

    .des-popular {
        font-style: italic;
    }

    &:hover {
        color: white;

        .background {
            opacity: 1;
            visibility: visible;
            transition: .5s;

            &::before {
                opacity: 0.5;
                content: '';
                display: block;
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0;
                left: 0;
                z-index: 1;
                background: black;
            }
        }

        .thumbnail {
            filter: brightness(0) invert(1);
        }
    }
}

.widget_about_style_1 {
    p {
        margin-bottom: 0px;
    }

    .button {
        .btn {
            margin: 20px 0;
            border-radius: 5px;
            border: 1px solid #ffb600;
            color: #fff;
            background-color: #ffb600;
            font-size: 16px;
        }
    }

    .about-image {
        img {
            width: 100%;
            height: 370px;
        }
    }
}

.effect-hover-guong {
    position: relative;
    overflow: hidden;
}

.nav-register {
    .active {
        font-weight: 700;
        color: #44b4a6 !important;
    }
}

.width-100-login {
    width: 100%;
    color: #fff;
    background-color: #44b4a6;
    border-color: #369084;
    margin-bottom: 10px;

    &:hover {
        color: #fff;
        background-color: #369084;
    }
}

.title-col-left {
    font-size: 13px;
    font-weight: 600;
    color: #646464;
}

.panel-register {
    padding: 50px;
}

.input-group-addon {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #555;
    text-align: center;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.container-banner {
    .banner {
        cursor: pointer;

        .banner-qc {
            width: 100%;
            overflow: hidden;

            img {
                width: 100%;
                cursor: pointer;
                transition: 0.3s;

                &:hover {
                    transform: scale(1.01)
                }
            }

        }
    }
}

.category-section {
    .grid-container {
        display: grid;
        grid-template-columns: 10% 10% 10% 10% 10% 10% 10% 10% 10% 10%;
    }
}

.container-categories {
    border-top: 2px solid #0081bf;
    border-left: 1px solid #e7e7e7;

    &.category-md {
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }

    .category {
        padding: 20px;
        border-right: 1px solid #e7e7e7;
        border-bottom: 1px solid #e7e7e7;
        position: relative;
        transition: all 0.3s ease;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 180px;

        &:hover {
            background-color: #f8f9fa;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

            .category-img {
                &::after {
                    opacity: 1;
                    visibility: visible;
                }

                img {
                    transform: scale(1.05);
                }
            }

            .qd-box-danhmuc-title {
                a {
                    color: #0081bf;
                    font-weight: 600;
                }
            }
        }

        .category-img {
            height: 100px;
            margin-bottom: 15px;
            position: relative;
            overflow: hidden;
            border-radius: 8px;
            flex-shrink: 0;

            a {
                position: relative;
                z-index: 1;
                display: block;
                width: 100%;
                height: 100%;
            }

            &::after {
                content: attr(data-category-name);
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                background: linear-gradient(to top, rgba(0, 129, 191, 0.95), rgba(0, 129, 191, 0.7));
                color: #fff;
                padding: 12px 8px 8px;
                font-size: 13px;
                font-weight: 600;
                text-align: center;
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                z-index: 3;
                line-height: 1.3;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                pointer-events: none;
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.3s ease;
            }
        }

        .qd-box-danhmuc-title {
            margin-top: auto;
            font-size: 14px;
            transition: all 0.3s ease;
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;

            a {
                transition: all 0.3s ease;
                text-decoration: none;
                line-height: 1.4;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            @media (max-width: 600px) {
                margin-top: auto;
                min-height: 35px;
            }
        }
    }
}

.container-category {
    img {
        width: 85% !important;
    }

    .section-body {
        height: 290px;
    }

    .section-category-sub-1 {
        float: left;
        width: 20%;
        height: 100%;
        border-left: 1px solid #e7e7e7;
        border-top: 2px solid #0081bf !important;

        .category-img-drop {
            width: 50%;
            height: 50%;
        }
    }

    .section-category-sub-2 {
        float: left;
        width: 30%;
        height: 100%;
        border-top: 2px solid #0081bf !important;

        .category-img-drop {
            width: 33.3333%;
            height: 50%;
        }
    }

    .section-category-sub-3 {
        float: left;
        width: 20%;
        height: 100%;
        border-top: 2px solid #0081bf !important;

        .category-img-drop {
            width: 50%;
            height: 50%;
        }
    }

    .section-category-sub-4 {
        float: left;
        width: 30%;
        height: 100%;
        border-top: 2px solid #0081bf !important;

        .category-img-drop {
            width: 33.3333%;
            height: 50%;
        }
    }
}

.flash-sale-section {
    .header-flash-sale {
        border-top: 2px solid #0081bf;

        span {
            color: #d10606;
            font-weight: 700;
        }
    }
}

.title-hot {
    color: $title-color !important;
    font-weight: 700 !important;
}

.banner-product {
    img {
        width: 100%;
    }
}

.widget_about_style_3 {
    .img {
        width: 60px;
        float: left;

        img {
            width: 100%;
        }
    }

    .title {
        float: left;
        width: calc(100% - 60px);
        text-align: left;
        padding: 2px 10px 10px 10px;

        h3 {
            color: #0081bf;
            font-size: 15px;
            font-weight: 700;
            margin: 0 0 10px 0;
        }

        .description {
            color: #000;
            font-size: 14px;
            line-height: 20px;
        }
    }
}

.widget_about_style_4 {
    .header-title {
        border-top: 2px solid #0081bf;
        margin: unset;
        text-align: center;

        h3 {
            color: #0081bf;
            margin: unset;
            padding: 10px;
            font-size: 18px;
            font-weight: 700;
        }
    }

    .body-news {
        padding: 30px;
        height: 480px;
        overflow: hidden;
        position: relative;

        .item-news {
            display: inline-block;

            .img-thumbnail {
                float: left;
                width: 30%;
            }

            .content-news {
                float: right;
                width: 65%;

                .title-news {
                    text-transform: uppercase;
                    font-weight: 700;
                    color: #005aab;
                }
            }
        }

        .pagination-news {
            position: absolute;
            bottom: 10px;
            right: 10px;
        }
    }

    .the-manh {
        text-align: center;
        display: grid;
        grid-template-columns: 33.33% 33.33% 33.33%;

        .grid {
            margin-top: 10px;
        }

        img {
            width: 70px;
            height: 70px;
        }

        .number {
            .count {
                color: #0081bf;
                margin: unset;
                padding: 10px;
                font-size: 16px;
                font-weight: 700;
            }
        }

        .title {
            font-weight: 700;
            cursor: pointer;

            &:hover {
                color: #0081bf;
            }
        }
    }
}

.owl-carousel {
    .owl-stage {
        display: flex !important;
    }

    .owl-item {
        display: flex !important;
        flex-direction: column !important;
        float: none !important;

        .item {
            display: flex !important;
            flex-direction: column !important;
            height: 100% !important;
            width: 100% !important;
        }
    }
}

.owl-carousel-flash-sale {
    .owl-prev {
        position: absolute;
        top: -54px;
        left: auto;
        float: right;
        right: 41px;
        border: 1px solid #aaa4a45f;
        background-color: #fff !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        box-sizing: border-box;
        margin: 0;
        cursor: pointer;
        line-height: 1 !important;
        outline: none;

        &:hover {
            background-color: #aaa4a45f !important;
        }
    }

    .owl-next {
        position: absolute;
        top: -54px;
        left: auto;
        right: 0px;
        float: right;
        border: 1px solid #aaa4a45f;
        background-color: #fff !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        box-sizing: border-box;
        margin: 0;
        cursor: pointer;
        line-height: 1 !important;
        outline: none;

        &:hover {
            background-color: #aaa4a45f !important;
        }
    }
}

.owl-carousel-category {
    .owl-prev {
        position: absolute;
        top: -54px;
        left: auto;
        float: right;
        right: 41px;
        border: 1px solid #aaa4a45f;
        background-color: #fff !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        box-sizing: border-box;
        margin: 0;
        cursor: pointer;
        line-height: 1 !important;
        outline: none;

        &:hover {
            background-color: #aaa4a45f !important;
        }
    }

    .owl-next {
        position: absolute;
        top: -54px;
        left: auto;
        right: 0px;
        float: right;
        border: 1px solid #aaa4a45f;
        background-color: #fff !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        box-sizing: border-box;
        margin: 0;
        cursor: pointer;
        line-height: 1 !important;
        outline: none;

        &:hover {
            background-color: #aaa4a45f !important;
        }
    }

    .hover-img-category {
        height: 200px;

        .category-img {
            height: 30%;
        }
    }
}

.owl-item {
    opacity: 0;
}

.owl-item.active {
    opacity: 1;
}

.owl-carousel-hot-sale {
    .owl-prev {
        position: absolute;
        top: -52px;
        left: auto;
        float: right;
        right: 41px;
        border: 1px solid #aaa4a45f;
        background-color: #fff !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        box-sizing: border-box;
        margin: 0;
        cursor: pointer;
        line-height: 1 !important;
        outline: none;

        &:hover {
            background-color: #aaa4a45f !important;
        }
    }

    .owl-next {
        position: absolute;
        top: -52px;
        left: auto;
        right: 0px;
        float: right;
        border: 1px solid #aaa4a45f;
        background-color: #fff !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0 !important;
        box-sizing: border-box;
        margin: 0;
        cursor: pointer;
        line-height: 1 !important;
        outline: none;

        &:hover {
            background-color: #aaa4a45f !important;
        }
    }
}

.calculator-form {
    .header-title {
        border-bottom: 1px solid #aaa4a45f;
    }

    .calculator-container {
        height: 480px;
        padding: 30px;

        label {
            padding-left: 0px;
            padding-right: 0px;
        }
    }

    .result-calculator {
        display: none;
        margin-bottom: 20px;
        text-align: center;
        font-size: 22px;
        margin-left: 20px;

        .title {
            color: #0081bf;
            font-weight: 700;
        }

        .price-calc {
            font-weight: 600;
            color: #007bff;
        }
    }

    .error {
        background: #fff url("http://www.wallplayer.tv/images/wallplayer_en/icon_error_white.gif") no-repeat 97% center;
        border-color: red;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 0, 0, 0.2);
    }

    .error-qty-index {
        display: none;
        padding: 0px;
        font-size: 14px;
        color: red;
        margin-left: 33%;
    }

    .animated {
        -webkit-animation-fill-mode: both;
        -moz-animation-fill-mode: both;
        -ms-animation-fill-mode: both;
        -o-animation-fill-mode: both;
        animation-fill-mode: both;
        -webkit-animation-duration: 1s;
        -moz-animation-duration: 1s;
        -ms-animation-duration: 1s;
        -o-animation-duration: 1s;
        animation-duration: 1s;
    }

    .shake {
        -webkit-animation-name: shake;
        -moz-animation-name: shake;
        -o-animation-name: shake;
        animation-name: shake;
    }

}


@-webkit-keyframes shake {

    0%,
    100% {
        -webkit-transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        -webkit-transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        -webkit-transform: translateX(10px);
    }
}

@-moz-keyframes shake {

    0%,
    100% {
        -moz-transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        -moz-transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        -moz-transform: translateX(10px);
    }
}

@-o-keyframes shake {

    0%,
    100% {
        -o-transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        -o-transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        -o-transform: translateX(10px);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}


.btn-calculator {
    border: 1px solid $title-color;
    background-color: transparent;
    color: $title-color;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 1;

    &:hover {
        color: #fff;

        &:before {
            left: 0;
            right: unset;
            width: 100%;
        }
    }

    &:before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 0px;
        height: 100%;
        background-color: $title-color;
        display: block;
        // z-index: 0;
        mix-blend-mode: screen;
        transition: all 0.3s;
    }
}

.header-sale {
    padding-bottom: 0px !important;
}

.title-sale {
    color: #0081bf;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 7px;
}

.list-sale {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0px 40px;
    padding-bottom: 15px;

    .sale-item {
        margin-top: 10px;
        padding: 5px 20px;
        display: flex;
        align-items: center;

        &::after {
            content: '';
            width: 2px;
            background-color: #0081bf;
            height: 110px;
            margin-left: 10px;
        }

        &:last-child {
            &::after {
                display: none;
            }
        }

        .name-sale {
            font-weight: 700;
            color: $title-color;
            text-transform: uppercase;
        }

        i {
            transform: rotate(90deg);
        }

        .avatar {
            text-align: center;

            img {
                border-radius: 50%;
                width: 140px;
                height: 140px;
            }
        }
    }
}

.text-blod {
    font-weight: 700;
}

.link-item {
    position: absolute;
    width: 100%;
    z-index: 2;
    left: 0;
    height: 100%;
}

.title-popular {
    color: $title-color;
}

.new-body {
    ul {
        list-style: disc;
        margin-left: 40px;
    }
}


.slider-container {
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;

    // Cinema frame - thick dark border
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    border-radius: 16px;
    padding: 20px;

    // Outer glow effect
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    // Spotlight effect from top
    &::before {
        content: '';
        position: absolute;
        top: -50%;
        left: 50%;
        transform: translateX(-50%);
        width: 150%;
        height: 100%;
        background: radial-gradient(ellipse at center, rgba(0, 129, 191, 0.15) 0%, transparent 60%);
        pointer-events: none;
        z-index: 0;
    }

    // Inner border accent
    &::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        pointer-events: none;
    }
}

.slider-video {
    width: 100%;
    height: 100%;
    display: none;
    position: relative;
    z-index: 1;

    // Inner video frame
    background: #000;
    border-radius: 8px;
    overflow: hidden;

    // Subtle inner shadow for depth
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 0, 0, 0.3);

    iframe {
        border-radius: 8px;
        display: block;
    }
}

.slider-video.active {
    display: block;
}
