/* RESET */
:root {
  --orange-color: #f40;
}
.sidebar-menu-mobile * {
  box-sizing: border-box;
}

.sidebar-menu-mobile {
  display: none;
}

/* MOBILE ONLY */
@media screen and (max-width: 1080px) {
  /* HIDE DESKTOP */
  .main-menu-flexiable {
    display: none !important;
  }

  .hide-pc {
    display: block;
  }

  /* ===== HAMBURGER ===== */
  .hamburger-icon i {
    font-size: 24px;
    cursor: pointer;
    color: #1a1a1a;
    margin-top: 7px;
  }

  /* ===== SIDEBAR ===== */
  .sidebar-menu-mobile {
    display: block;
    position: fixed;
    top: 0;
    left: -350px; /* hide */
    width: 350px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    z-index: 999999;
    padding-bottom: 40px;
    transition: 0.3s ease-in-out;
  }
  /* ===========================
   SCROLLBAR STYLE (Chrome/Safari/Edge)
   =========================== */
  .sidebar-menu-mobile::-webkit-scrollbar {
    width: 5px; /* Độ mảnh của scrollbar */
  }

  .sidebar-menu-mobile::-webkit-scrollbar-track {
    background: #f0f0f0; /* Màu nền track */
  }

  .sidebar-menu-mobile::-webkit-scrollbar-thumb {
    background: var(--orange-color); /* Màu chính thương hiệu */
    border-radius: 10px;
  }

  .sidebar-menu-mobile::-webkit-scrollbar-thumb:hover {
    background: #d93600; /* Đậm hơn khi hover */
  }

  /* ===========================
   FIREFOX SUPPORT
   =========================== */
  .sidebar-menu-mobile {
    scrollbar-width: thin; /* Mảnh */
    scrollbar-color: var(--orange-color) #f0f0f0; /* Thumb màu cam – track xám */
  }

  .sidebar-menu-mobile.open {
    left: 0;
  }

  /* TITLE + CLOSE BUTTON */
  .menu-section-title {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    color: var(--orange-color);
    border-bottom: 1px solid #b3b3b3;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-section-title .close i {
    font-size: 22px;
    cursor: pointer;
  }

  /* MENU LIST */
  .mobile-menu {
    padding: 10px 0;
  }

  .mobile-menu > li {
    border-bottom: 1px solid #b3b3b3;
  }

  .menu-link-level-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: #222;
    position: relative;
  }
  .menu-link-level-1::after {
    content: "";
    position: absolute;
    left: 20px; /* canh theo padding */
    bottom: 6px;
    width: 0%;
    height: 2px;
    background: var(--orange-color);
    transition: width 0.3s ease;
  }
  .menu-link-level-1.active::after {
    width: calc(100% - 40px);
  }
  .menu-link-level-1.active {
    color: var(--orange-color);
  }
  .menu-link-level-1 i {
    font-size: 14px;
    transition: transform 0.25s ease;
  }

  .menu-link-level-1.active i {
    transform: rotate(180deg);
    color: var(--orange-color);
  }

  /* LEVEL 2 */
  .menu-level-2 {
    display: none;

    padding-left: 6px;
    margin: 0;

    list-style: none;
  }
  .menu-level-2 li {
    padding: 0 20px;
  }
  .menu-level-2 li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #b3b3b3;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .menu-level-2 li:last-child a {
    border-bottom: none;
  }
  .menu-level-2 li a.active {
    color: var(--orange-color);
  }
  .menu-level-2 li a i {
    transition: 0.3s all;
  }
  .menu-level-2 li a.active i {
    transform: rotate(180deg);
    color: var(--orange-color);
  }
  /* LEVEL 3 */
  .menu-level-3 {
    display: none;
    margin: 0;
    list-style: none;
  }

  .menu-level-3 li a {
    display: block;
    padding: 8px 20px 0px;
    font-size: 14px;
    color: #555;
    border-bottom: 0;
  }
  /* OVERLAY */
  .overlay-mobile {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999998;
    display: none;
  }

  .overlay-mobile.show {
    display: block;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .banner-gioi-thieu-top {
    flex-direction: column;
  }
  .banner-gioi-thieu-title {
    flex: 0;
  }
  .banner-gioi-thieu-bottom {
    margin-top: 24px;
    gap: 24px;

    flex-direction: column;
  }
  .vision_mission-layout {
    flex-direction: column;
    gap: 24px;
  }
  .vision_mission-left {
    flex: none;
    gap: 40px;
  }
  .vision_mission-right {
    flex-direction: column;
    gap: 24px;
  }
  .vision_mission-right-left {
    gap: 24px;
    flex-direction: row;
  }
  .vision_mission-item {
    flex-direction: column;
    align-items: center;
    display: flex;
    max-width: 600px;
  }
  .vision_mission-item h3,
  .vision_mission-content p {
    text-align: center;
  }
  .contact_form-row {
    flex-direction: column-reverse;
    gap: 24px;
  }
  .contact_form-right h2 {
    margin-top: 0;
    margin-bottom: 24px;
  }
  .contact_form-wrapper {
    flex-direction: column-reverse;
  }
  .contact_form-right .contact_form-wrapper .contact_form-inner {
    flex: none;
    width: 100%;
  }
  .contact_form-description {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 24px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .contact_form-information {
    width: 100%;
  }
  .contact_form-information ul {
    display: flex;
    justify-content: space-around;
  }
  .contact_form-information ul li {
    margin-bottom: 0;
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .contact_form-information ul .contact_form-contact {
    text-align: center;
  }
  .policy_list {
    display: grid;
    gap: 15px 10px;
    grid-template-columns: repeat(2, 1fr);
  }
  .policy-item {
    flex-direction: column;
    padding: 0 !important;
  }
  .policy-inner {
    text-align: center;
  }
  .policy_list li::after {
    display: none;
  }
  .policy-inner h3 {
    font-size: 14px;
    font-weight: 600;
  }
  .footer-row {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
  }
  .footer-right {
    width: 100%;
  }
  .policy_page-layout {
    flex-direction: column;
    gap: 24px;
  }
  .policy_page-left {
    flex: none;
  }
}
@media screen and (max-width: 800px) {
  .product-layout-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .product-layout-left {
    padding: 24px;
    flex: none;
    width: 100%;
  }
  .inner-title {
    margin-bottom: 0;
  }
  .inner-product-description {
    margin-bottom: 16px;
  }
  .product-layout-left .round-btn {
    margin-left: auto;
  }
  .home-banner-section .swiper-slide img {
    height: 250px !important;
  }
  .footer-right {
    flex-direction: column;
  }
}
@media screen and (max-width: 600px) {
  .sidebar-menu-mobile {
    left: -100%; /* hide */
    width: 100%;
  }
  .inner-product-description {
    margin-bottom: 10px;
  }
  .round-btn {
    padding: 10px 40px;
  }
  .header-logo img {
    height: 35px;
  }
  .hamburger-icon i {
    font-size: 16px;
  }
  .header-action li a svg {
    width: 16px;
    height: 16px;
  }
  .cart-count {
    top: -4px;
    right: -8px;
    width: 15px;
    height: 15px;
    font-size: 10px;
  }
  .home-banner-section .swiper-slide img {
    height: 172px !important;
  }
  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 18px !important;
  }
  .swiper-button-prev,
  .swiper-rtl .swiper-button-next {
    left: 10px;
  }
  .swiper-button-next,
  .swiper-rtl .swiper-button-prev {
    right: 10px;
  }

  /* PC vẫn giữ dạng grid nhiều dòng */

  /* MOBILE */
  .brand-grid-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0;
  }

  .brand-grid-mobile img {
    width: 100%;
    height: auto;
  }

  .new-products-swiper,
  .sale-products-swiper {
    margin-top: 20px;
  }
  .product-item {
    min-height: 376px;
  }
  .product-layout-row {
    display: block;
  }
  .midle_banner-inner h1 {
    font-size: 20px;
    line-height: 20px;
    max-width: 200px;
  }
  .midle_banner-inner h2 {
    font-size: 20px;
    line-height: 20px;
  }
  .midle_banner-inner h2 svg {
    width: 20px;
    height: 20px;
  }
  .midle_banner img {
    height: 320px;
  }
  .midle_banner-inner p {
    font-size: 14px;
    line-height: 18px;
    margin: 12px 0;
  }
  #home_product_category .categories {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    margin-top: 10px;
  }
  #home_product_category .categories li a {
    padding-bottom: 0;
    white-space: nowrap;
    border-bottom: 0;
  }
  .product-grid,
  .category_child-right .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category_child-right .product-grid {
    gap: 24px;
  }
  .category_child-card {
    padding-bottom: 16px;
    margin-bottom: 16px !important;
  }
  .filter-radio span {
    white-space: nowrap;
  }
  .category_child-card .filter-list li {
    margin-bottom: 12px;
  }
  .category_child-card ul {
    display: flex;
    gap: 16px;
    overflow-x: auto;
  }
  .category_child-card ul li {
    margin-bottom: 16px;
  }
  .category_child-card ul li a {
    white-space: nowrap;
  }
  #home_product_category .product-grid {
    margin-top: 20px;
  }
  .bottom_banner-row {
    gap: 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .bottom_banner-right {
    flex-direction: column;
    gap: 0;
  }
  .bottom_banner-left {
    flex: none;
  }
  .bottom_banner-right .round-btn {
    flex: none;
  }
  .bottom_banner-left h1,
  .bottom_banner-left h2 {
    font-size: 20px;
    line-height: 20px;
  }
  .bottom_banner img {
    height: 720px;
  }
  .blog-item.blog-slide .blog-title a {
    color: #1a1a1a;
    font-size: 14px;

    display: -webkit-box; /* BẮT BUỘC */
    -webkit-box-orient: vertical; /* BẮT BUỘC */
    overflow: hidden;
    text-overflow: ellipsis;

    -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
    line-clamp: 2; /* (optional) */
  }
  .blog-item.blog-slide img {
    border-radius: 10px;
    height: 200px;
    object-fit: cover;
  }
  .product-thumb img {
    width: 100%;
    height: 235px;
    object-fit: cover;
  }
  .banner-gioi-thieu-title h1,
  .banner-gioi-thieu-title h2 {
    font-size: 40px;
    line-height: 40px;
  }
  .banner-gioi-thieu-top {
    gap: 16px;
  }
  #gioi-thieu-banner {
    padding: 24px 0;
  }
  .banner-gioi-thieu-bottom {
    margin-top: 0;
  }
  .banner-gioi-thieu-bottom .banner-gioi-thieu-img {
    flex: none;
    margin-bottom: 16px;
  }
  .contact_form-information ul {
    flex-direction: column;
  }
  .contact_form-right h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .contact_form-information ul li {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .contact_form-contact {
    text-align: start !important;
  }
  .contact_form-right .contact_form-wrapper {
    gap: 16px;
  }
  .form-group .wpcf7-submit {
    padding: 8px 40px !important;
  }
  .vision_mission-heading h1 {
    font-size: 24px;
    line-height: 30px;
    margin-top: 6px;
  }
  .vision_mission-heading span {
    font-size: 14px;
  }
  .vision_mission-item h3 {
    margin-top: 16px;
  }
  .vision_mission-right-left {
    flex-direction: column;
  }
  .policy_page-left h3,
  .category_child-card h3 {
    font-size: 16px;
    gap: 12px;
    margin-bottom: 11px;
    align-items: center;
  }
  .category_child-left {
    flex: none;
  }
  .policy_page-right {
    padding: 16px;
  }
  .category_banner-text h1 {
    font-size: 24px;
    line-height: 30px;
  }
  .category_banner-text h1 svg {
    width: 24px;
    height: 24px;
  }
  .category_banner-text {
    bottom: 15px;
    left: 15px;
  }
  .child-category-item {
    flex-direction: column;
  }
  .child-category-inner {
    flex: 0;
    padding: 16px;
  }
  .child-category-inner .round-btn {
    margin-left: auto;
  }
  .category_child-row {
    flex-direction: column;
  }
  .category_child-right .category_banner {
    display: none;
  }
  .tab-filter ul {
    overflow-x: auto;
    margin-top: 0;
    padding-bottom: 20px;
    gap: 12px;
    justify-content: flex-start;
  }
  .tab-filter ul li a {
    white-space: nowrap;
  }
  #category_child {
    padding-bottom: 24px !important;
  }
  .category_child-card ul li a::after {
    display: none;
  }
  .tab-filter ul li a::after {
    display: none;
  }
  .cs-product-gallery .swiper-slide img {
    height: 400px;
  }
  .cs-gallery-thumbs .swiper-slide img {
    height: 100px;
  }
  .cs_product_summary-right {
    margin-top: 16px;
  }
  .single-product-title {
    font-size: 20px;
    margin-bottom: 5px;
  }
  .short-description {
    font-size: 12px;
  }
  .price-block span bdi,
  .price-block span {
    font-size: 24px;
  }
  .price-block {
    margin: 5px 0 10px !important;
  }
  .product-meta-table tr th {
    font-size: 14px;
    width: 30%;
  }
  .product-meta-table tr td,
  .product-meta-table tr th {
    padding: 0px 0 8px;
  }
  .product-meta-table tr td {
    font-size: 14px;
  }
  .cs-custom-variations {
    padding: 14px 0;
  }
  .cs-attr-block {
    margin-bottom: 14px;
  }
  .cs-attr-block + .cs-attr-block {
    padding-top: 14px;
  }
  form.cart {
    gap: 10px !important;
  }
  .woocommerce-variation-add-to-cart {
    flex-direction: column;
  }
  .quantity-wrap {
    flex: none !important;
  }
  .button-cart-wrap button {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .product-policy ul {
    padding: 16px !important;
  }
  .product-policy ul li:last-child {
    margin-bottom: 0;
  }
  .cs-upsell-product {
    padding-top: 16px;
    margin-top: 16px;
  }
  .cs-upsell-product h3 {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .cs-upsell-wrapper {
    flex-direction: column-reverse;
    gap: 16px;
  }
  .cs-upsell-add-all {
    flex: none;
    margin: 0 !important;
    margin-left: auto !important;
  }
  .cs-upsell-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }
  .produc-tab-wrapper {
    top: 57px;
  }
  .produc-tab-wrapper ul {
    gap: 12px;
    justify-content: center;
  }
  .produc-tab-wrapper ul li a {
    font-size: 14px;
    padding: 0px;
  }
 
  #mo-ta-san-pham .col-md-3{
    display: none !important;
  }
  #mo-ta-san-pham .col-md-9{
    width: 100%;
  }
  .cs-reviews-header{
    flex-direction: column;
    gap: 16px;
  }

  .cs-reviews-header .left{
    flex: none
    ;
  }
  .cs-reviews-header .left p{
    padding: 0;
  }
  .cs-review-item{
    margin-bottom: 16px;
    padding-bottom: 16px;
    gap: 16px;
  }
  .cs-review-images{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .cs-review-images img{
    margin-right: 0;
  }
  .cs-review-form{
    padding: 16px;
  }
  .comment-wrapper{
    margin: 5px 0 16px !important;
  }
  .comment-wrapper label{
    margin-bottom: 0px;
  }
  .cs-review-header .avatar{
    object-fit: cover;
  }
  .cs-relate-product .product-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  #cs-side-cart{
    width: 100%;
    right: -100%;
  }
  .cs-cart-header{
    padding: 10px 16px;
  }
  .cs-cart-header h4{
    font-size: 16px;
  }
  .cs-cart-close{
    height: 16px;
    margin-top: -5px;
  }
  .cs-cart-close svg{
    width: 16px;
    height: 16px;
  }
  .cs-cart-item img{
    width: 100px;
    height: 75px;
  }
  .cs-cart-summary-inner{
    padding: 16px;
  }
  .cs-cart-summary p{
    font-size: 14px;
    margin-bottom: 5px;
  }
  .cs-voucher-btn{
    padding: 10px 14px;
    font-size: 12px;
  }
  .cs-voucher-btn span{
    font-size: 12px;
  }
  .voucher-input{
    padding: 10px 22px;
  }
  .cs-checkout-btn{
    margin-top: 15px;
  }
  .checkout-left.col-7, .checkout-right.col-5{
    width: 100%;
  }
  .checkout-right.col-5{
    width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
  }
  .woocommerce-checkout .large-12.col{
    padding-bottom: 0 !important;
  }
  #cs-checkout-wrapper{
    padding-top: 24px !important;
  }
  .checkout-title {
    flex-wrap: wrap;
}
}
