﻿.ny-banner{
    height: 300px;
}

.ny-banner .container {
    height: 100%;
}

.flexlign {
    display: flex;
    align-items: center;
}
.ny-banner .info strong {
    display: block;
    font-size: 3rem;
    color: #fff;
    line-height: 80px;
    font-weight: bold;
}

.ny-banner .info b {
    display: block;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.28);
    text-transform: uppercase;
}

.ny-banner .info i {
    display: block;
    width: 100px;
    height: 3px;
    background: #ffffff;
    border-radius: calc(0.1875rem / 6);
    margin-top: 10px;
}


.page-title {
    padding: 10px 0 10px;
    background-color: #f8f8f8;
}

.page-title .page-title-heading .h1-title {
    color: #2e363a;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: 0.6px;
    font-family: "Tahoma";
}

h1 {
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
}

.page-title .page-title-heading {
    float: left;
}

.page-title .breadcrumbs {
    float: right;
}

.page-title .breadcrumbs li {
    display: inline-block;
    line-height: 38px;
}

.page-title .breadcrumbs li a {
    color: #4ca89d;
    letter-spacing: -0.2px;
}


/* xử lý sản phẩm */

.mb-100 {
    margin-bottom: 100px;
}
.mt-50 {
    margin-top: 50px;
}

.widget_list {
    margin-bottom: 33px;
}
.widget_list h3 {
    font-size: 25px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 20px;
    border-bottom: 1px solid #e5e5e5;
}
h3 {
    font-size: 30px;
    line-height: 30px;
}
.n_left_pro {
    width: 100%;
    float: none;
    margin-top: 0;
    position: relative;
    top: 0;
}

/* sản phẩm đề xuất */
.widget_list.widget_compare {
    margin-bottom: 50px;
    margin-top: 10px;
}
.single_product {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: .3s;
}
.shop_sidebar_product .single_product {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: inherit;
    padding: 15px 10px;
}
figure {
    padding: 0;
    margin: 0;
}
.shop_sidebar_product .product_thumb {
    width: 90px;
    float: left;
}
img {
    max-width: 100%;
    height: auto;
}
.product_thumb {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 250px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.single_product .primary_img {
    max-height: 230px;
}
.product_thumb a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.product_thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.product_thumb:hover img {
     transform: rotateY(-180deg);
}

.product_thumb .primary_img,
.product_thumb .secondary_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product_thumb .secondary_img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product_thumb:hover .secondary_img {
    opacity: 1;
}
a, button {
    color: inherit;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
}
.label_product span.label_new {
    top: 15px;
    left: 13px;
    text-transform: uppercase;
    color: #ffffff;
    background: #46ce91;
    font-size: 12px;
    font-weight: 600;
    height: 24px;
    line-height: 24px;
    width: 56px;
    text-align: center;
    display: block;
    border-radius: 18px;
}
.label_product span {
    position: absolute;
    z-index: 9;
}

 /* CSS cho active danh mục */
 #sidebar_category_list .category-link.inactives {
    color: #e15f25 !important;
    font-weight: bold;
    background-color: rgba(225, 95, 37, 0.1);
    border-left: 3px solid #e15f25;
    padding-left: 15px;
}

#sidebar_category_list .category-link {
    transition: all 0.3s ease;
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

#sidebar_category_list .category-link:hover {
    color: #e15f25;
    background-color: rgba(225, 95, 37, 0.05);
    padding-left: 18px;
}

/* CSS cho grid 3 và 4 sản phẩm */
.grid-3 .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.grid-4 .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (max-width: 991px) {
    .grid-3 .col-lg-4,
    .grid-4 .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .grid-3 .col-lg-4,
    .grid-4 .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* CSS cho button grid */
.shop_toolbar_btn button.active {
    background-color: #e15f25;
    color: #fff;
    border-color: #e15f25;
}

.shop_toolbar_btn button {
    transition: all 0.3s ease;
}

/* cột bên sản phẩm */
.shop_toolbar_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    padding: 8px 10px;
    margin: 0 0 30px;
}

.shop_toolbar_btn > button {
    margin-right: 10px;
    border: 0;
    background: inherit;
}
.row.shop_wrapper {
    flex-direction: row;
}
.shop_wrapper {
    margin-bottom: 18px;
}
.shop_wrapper > div {
    -webkit-transition: all 1s ease;
    transition: all 1s ease;
}
.single_product {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    transition: .3s;
}
.shop_wrapper .single_product {
    position: relative;
    margin-bottom: 30px;
}
.product_content {
    text-align: center;
    padding: 15px;
    position: relative;
}
.product_content h3 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-transform: capitalize;
    margin: 0;
}
.product_content.list_content {
    display: none;
}
.shop_wrapper .product_thumb a img {
    margin: 0 auto;
    width: inherit;
}

/* CSS cho trang chi tiết sản phẩm */
.product-detail-area {
    padding: 20px 0;
}

.product_detail_images {
    position: sticky;
    top: 20px;
}

.product_main_image {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 15px;
    background: #f8f9fa;
    text-align: center;
}

.product_main_image img {
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product_main_image img:hover {
    transform: scale(1.02);
}

#carouselProductImages {
    margin-top: 15px;
}

#carouselProductImages .carousel-item img {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

#carouselProductImages .carousel-item.active img {
    border-color: #e15f25;
}

.product_detail_info {
    padding: 0 20px;
}

.product_detail_info .product_name {
    font-size: 32px;
    font-weight: 700;
    color: #2e363a;
    margin-bottom: 15px;
}

.product_short_desc {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.product_specs_section {
    margin-top: 30px;
}

.product_specs_section h4 {
    font-size: 24px;
    font-weight: 600;
    color: #2e363a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e15f25;
}

.product_specs_section table {
    margin-top: 15px;
}

.product_specs_section table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.product_video {
    margin-top: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 15px;
    background: #f8f9fa;
}

.product_video h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2e363a;
}

.product_video video {
    border-radius: 5px;
}

#related_products_section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e5;
}

#related_products_section .section_title {
    margin-bottom: 30px;
}

#related_products_section .section_title h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2e363a;
}

@media (max-width: 991px) {
    .product_detail_info {
        padding: 20px 0;
        margin-top: 30px;
    }
    
    .product_detail_images {
        position: relative;
        top: 0;
    }
    
    .product_detail_info .product_name {
        font-size: 26px;
    }
}