/* Responsive */
@media (max-width: 1025px) {
  #hamburger {
    display: block;
  }
  .menu-head {
    display: none;
  }
  art-head {
    padding: 5px;
    font-size: 12px;
  }
  .header {
    padding: 10px 0px;
  }
  .flex-product-main {
    display: block;
  }
  .flex-product-main .left-product {
    position: fixed;
    z-index: 999;
    top: 0px;
    left: 0px;
    transform: translateX(-250px);
    bottom: 0px;
    overflow-x: hidden;
    background: #fff;
    box-shadow: 0px 0px 5px #000;
    transition: all 0.5s;
  }
  .flex-product-main .left-product.show {
    transform: translateX(0px);
  }

  .flex-product-main .right-product {
    width: 100%;
  }

  .grid-product {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .filter {
    display: block;
  }
  .menu-mobile-btn {
    display: flex;
    width: 35px;
    height: 35px;
    position: relative;
    flex-wrap: wrap;
    cursor: pointer;
    left: 0px;
    top: 0px;
  }
  .menu-mobile-btn span {
    display: inline-block;
    width: 100%;
    height: 3px;
    background: #000;
    margin: 4px 0px;
    left: 0;
  }
  .wrap-menu {
    width: calc(100% - 60px);
  }
  .menu ul {
    display: none !important;
  }
}
@media (max-width: 850px) {
  .news-left {
    width: 100%;
  }
  .news-right {
    width: 100%;
    margin-top: 30px;
    padding: 10px;
  }
}
@media (max-width: 769px) {
  .gutter-x-20 {
    --bs-gutter-x: 10px;
  }
  .flex-about {
    flex-wrap: wrap;
  }
  .content-about {
    width: 100%;
  }

  .photo-about {
    width: 100%;
    text-align: center;
  }
  .flex-video {
    flex-wrap: wrap;
  }
  .wr-video {
    width: 100%;
  }
  .wr-form {
    width: 100%;
    margin-top: 20px;
  }
  .item-news {
    padding: 5px;
  }
  .ds-news h3 {
    font-size: 14px;
  }
  .text-cart {
    display: none;
  }
  .grid-pro-detail {
    display: block;
  }
  .grid-pro-detail .left-pro-detail {
    width: 100%;
    padding: 0px;
    border-right: none;
  }
  .slick_photo1 {
    text-align: center;
  }
  .grid-pro-detail .right-pro-detail {
    width: 100%;
  }
  .grid-product,
  .grid-news {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .info-footer .flex-footer {
    display: block;
  }
  .box-footer {
    width: 100% !important;
    margin-top: 20px;
  }
}
/* ===== MOBILE - SẢN PHẨM BÁN CHẠY ===== */
@media (max-width: 768px) {
  .wrap-product-home.other-product {
    padding: 36px 0 42px;
    background: #fff;
  }

  .wrap-product-home.other-product .wrap-content {
    padding: 0 14px;
  }

  .title-main-home {
    margin-bottom: 22px;
    text-align: center;
  }

  .title-main-home h2 {
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: 0.5px;
  }

  .title-main-home svg {
    width: 150px;
    height: auto;
  }

  .product-hot-layout {
    display: block;
  }

  /* .product-hot-photo {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
  }

  .product-hot-photo img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
  } */

  .product-hot-list {
    width: 100%;
  }

  .product-hot-list.swiper {
    height: 500px;
    overflow: hidden;
  }

  .product-hot-list .swiper-wrapper {
    align-items: stretch;
  }

  .product-hot-list .swiper-slide {
    height: auto !important;
  }

  .product-hot-item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 148px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(180, 157, 126, 0.22);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.045);
  }

  .product-hot-img {
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .product-hot-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
  }

  .product-hot-info {
    min-width: 0;
  }

  .product-hot-cat {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.3;
    color: #9a8b7a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .product-hot-name {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
  }

  .product-hot-name a {
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-hot-price {
    margin-bottom: 10px;
  }

  .product-hot-price .price-new {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
    color: #222;
  }

  .product-hot-price .price-old {
    margin-left: 6px;
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
  }

  .product-hot-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .product-hot-btns a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    padding: 10px 60px;
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.05;
    font-weight: 600;
    color: #fff;
    text-align: left;
    white-space: nowrap;
  }

  .product-hot-btns a b {
    font-size: 11px;
    font-weight: 800;
  }

  .btn-shopee {
    background: #f04a2a;
  }

  .btn-tiktok {
    background: #181818;
  }

  .product-hot-btns .shop-icon,
  .product-hot-btns .fa-tiktok {
    flex: 0 0 auto;
  }

  .product-hot-btns .icon-shoppe {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  .product-hot-btns .fa-tiktok {
    font-size: 18px;
  }
}

@media (max-width: 430px) {
  .title-main-home h2 {
    font-size: 23px;
  }

  /* .product-hot-photo img {
    height: 220px;
  } */

  .product-hot-item {
    grid-template-columns: 96px 1fr;
    gap: 10px;
    min-height: 142px;
    padding: 10px;
  }

  .product-hot-img {
    width: 96px;
    height: 96px;
  }

  .product-hot-name {
    font-size: 14px;
  }

  .product-hot-price .price-new {
    font-size: 17px;
  }

  .product-hot-btns a {
    min-height: 36px;
    padding: 6px 6px;
    font-size: 9px;
  }

  .product-hot-btns a b {
    font-size: 10px;
  }
}

/*
 * Banner trang chu tren mobile:
 * 1080 / 400 = 2.7, nen anh cao hon ty le desktop 1920 / 640 = 3.
 * object-fit giup anh khong bi keo meo, phan du hai ben se duoc crop nhe.
 */
@media (max-width: 576px) {
  .slideshow.below-nav .item,
  .slideshow.below-nav picture {
    display: block;
    width: 100%;
    height: clamp(240px, 62vw, 300px);
    overflow: hidden;
  }

  .slideshow.below-nav .main-slider-image {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }

  .home-banner-slideshow .item,
  .home-banner-slideshow picture {
    display: block;
    width: 100%;
    aspect-ratio: 1080 / 400;
    overflow: hidden;
  }

  .home-banner-slideshow .home-banner-image {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 360px) {
  .product-hot-item {
    grid-template-columns: 88px 1fr;
  }

  .product-hot-img {
    width: 88px;
    height: 88px;
  }

  .product-hot-btns {
    grid-template-columns: 1fr;
  }

  .product-hot-btns a {
    justify-content: center;
  }
}

/* =========================================================
   HOME MOBILE REDESIGN
   File nay duoc load sau style.css nen day la bo responsive
   cuoi cung cho trang chu, tranh cac rule mobile cu bi chong cheo.
   ========================================================= */
.product-hot-btns a small,
.product-cate-btns a small {
  font: inherit;
  color: inherit;
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
    line-height: 1.55;
    background: #fff;
  }

  .wrap-content,
  .max-width {
    width: 100%;
    max-width: none;
    padding-right: 16px;
    padding-left: 16px;
  }

  /* Header mobile gon, logo va menu can giua */
  .navigation,
  .navigation.is-fixed {
    height: 68px;
    padding: 6px 16px;
  }

  .navigation .wrap-content {
    padding: 0;
  }

  .navigation .wrap-content,
  .navigation__main,
  .wrap-menu {
    height: 56px;
  }
  .menu {
    height: 0px;
  }
  .wrap-menu {
    width: 100%;
  }

  .menu > .logos-menu,
  .menu > .logos-menu img {
    width: 54px;
    height: 54px;
  }

  .menu > .logos-menu {
    flex: 0 0 54px;
  }

  .menu-mobile-btn {
    top: 19px;
    left: 16px;
    width: 30px;
    height: 30px;
  }

  .menu-mobile-btn span {
    height: 2px;
    margin: 3px 0;
  }

  /* Slider chinh: lon hon ban cu nhung khong crop qua manh */
  .slideshow.below-nav .swiper,
  .slideshow.below-nav .swiper-wrapper,
  .slideshow.below-nav .swiper-slide {
    height: auto;
  }

  .slideshow.below-nav .item,
  .slideshow.below-nav picture {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    overflow: hidden;
  }

  .slideshow.below-nav .main-slider-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }

  .slideshow.below-nav .swiper-button-prev,
  .slideshow.below-nav .swiper-button-next {
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    color: #6f6255;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
  }

  .slideshow.below-nav .swiper-button-prev {
    left: 10px;
  }

  .slideshow.below-nav .swiper-button-next {
    right: 10px;
  }

  .slideshow.below-nav .swiper-button-prev::after,
  .slideshow.below-nav .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
  }

  /* Tieu de chung */
  .title-main-home,
  .list-product .box-title,
  .blog-home .title-main {
    gap: 8px;
    margin-bottom: 20px;
  }

  .title-main-home h2,
  .wrap-product-home .title-main-home h2,
  .list-product .title-pro span,
  .blog-home .title-main span {
    font-size: clamp(23px, 6.6vw, 27px);
    line-height: 1.25;
    letter-spacing: 0.02em;
  }

  .title-main-home svg,
  .list-product .box-title svg,
  .blog-home .title-main svg {
    width: 142px;
    height: auto;
  }

  /* San pham ban chay */
  .wrap-product-home.other-product {
    min-height: 0;
    padding: 30px 0 26px;
  }

  .wrap-product-home.other-product .wrap-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .wrap-product-home.other-product .product-hot-layout {
    width: 100%;
    height: auto;
    gap: 16px;
  }

  .wrap-product-home.other-product .product-hot-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 4.7;
    margin: 0;
    border-radius: 18px;
    flex: none;
    background: #f8f5f0;
  }

  .wrap-product-home.other-product .product-hot-photo picture,
  .wrap-product-home.other-product .product-hot-photo img {
    width: 100%;
    height: 100% !important;
    display: block;
  }

  .wrap-product-home.other-product .product-hot-photo img {
    object-fit: cover !important;
    object-position: center;
  }

  .product-hot-list,
  .product-hot-list.swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .product-hot-list .swiper-wrapper {
    height: auto !important;
    display: flex !important;
    align-items: stretch;
  }

  .product-hot-list .swiper-slide {
    height: auto !important;
    overflow: hidden;
  }

  .product-hot-item {
    width: 100%;
    height: 100%;
    min-height: 158px;
    margin: 0;
    padding: 11px;
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    border: 1px solid #eee7df;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(58, 45, 32, 0.06);
  }

  .product-hot-img,
  .product-hot-img picture,
  .product-hot-img img {
    width: 106px;
    height: 106px;
  }

  .product-hot-img {
    border-radius: 11px;
    background: #faf8f5;
  }

  .product-hot-img img {
    padding: 7px;
    object-fit: contain;
  }

  .product-hot-info {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    gap: 4px;
  }

  .product-hot-cat,
  .product-hot-name,
  .product-hot-price,
  .product-hot-btns {
    width: 100%;
    height: auto;
  }

  .product-hot-cat {
    margin: 0;
    font-size: 10px;
    line-height: 1.3;
  }

  .product-hot-name {
    margin: 0;
  }

  .product-hot-name a {
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-hot-price {
    min-height: 23px;
    gap: 6px;
  }

  .product-hot-price .price-new {
    font-size: 17px;
    line-height: 23px;
  }

  .product-hot-price .price-old {
    margin: 0;
    font-size: 11px;
  }

  .product-hot-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .product-hot-btns a {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    padding: 4px;
    gap: 4px;
    border-radius: 8px;
  }

  .product-hot-btns a span {
    font-size: 10px;
    line-height: 1;
  }

  .product-hot-btns a small,
  .product-hot-btns a br {
    display: none;
  }

  .product-hot-btns a b {
    font-size: 10px;
    line-height: 1;
  }

  .product-hot-btns .shop-icon,
  .product-hot-btns .icon-shoppe,
  .product-hot-btns .fa-tiktok {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    font-size: 14px;
  }

  /* Danh muc: card ngang 1 cot de anh, chu va nut khong bi ep */
  .list-product.other-product {
    padding: 27px 0;
    overflow: hidden;
  }

  .list-product.other-product .wrap-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .product-cate-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .product-cate-item {
    width: 100% !important;
    height: auto;
    min-height: 142px;
    margin: 0 !important;
    padding: 10px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    justify-content: stretch;
    border: 1px solid #eee7df;
    border-radius: 15px;
    box-shadow: 0 5px 16px rgba(58, 45, 32, 0.055);
  }

  .product-cate-img,
  .product-cate-img picture,
  .product-cate-img img {
    width: 112px;
    height: 112px;
  }

  .product-cate-img {
    aspect-ratio: 1;
    border-radius: 11px;
    background: #faf8f5;
  }

  .product-cate-img img {
    padding: 8px;
    object-fit: contain;
  }

  .product-cate-info {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    gap: 8px;
    align-items: stretch;
  }

  .product-cate-text {
    width: 100%;
    height: auto;
    padding: 0;
    gap: 5px;
  }

  .product-cate-name,
  .product-cate-name a,
  .product-cate-price {
    width: 100%;
    height: auto;
  }

  .product-cate-name {
    min-height: 38px;
    margin: 0;
  }

  .product-cate-name a {
    min-height: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .product-cate-line {
    display: none;
  }

  .product-cate-price {
    min-height: 23px;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
  }

  .product-cate-price .price-new {
    font-size: 17px;
    line-height: 23px;
  }

  .product-cate-price .price-old {
    font-size: 11px;
    line-height: 1.2;
  }

  .product-cate-btns {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .product-cate-btns a {
    width: 100%;
    min-width: 0;
    height: 35px;
    min-height: 35px;
    padding: 4px;
    gap: 4px;
    border-radius: 8px;
  }

  .product-cate-btns a span {
    font-size: 10px;
    line-height: 1;
  }

  .product-cate-btns a small,
  .product-cate-btns a br {
    display: none;
  }

  .product-cate-btns a b {
    font-size: 10px;
    line-height: 1;
  }

  .product-cate-btns .shop-icon,
  .product-cate-btns .icon-shoppe,
  .product-cate-btns .btn-tiktok i {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    font-size: 14px;
  }

  .view-product-more {
    margin-top: 18px;
  }

  .view-product-more a {
    min-width: 126px;
    height: 40px;
    padding: 0 22px;
    font-size: 14px;
    line-height: 40px;
  }

  /* Banner giua trang */
  .home-banner-slideshow .item,
  .home-banner-slideshow picture {
    width: 100%;
    height: auto;
    aspect-ratio: 2.35 / 1;
    overflow: hidden;
    background: #faf7f2;
  }

  .home-banner-slideshow .home-banner-image {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    object-position: center;
  }

  /* Gioi thieu */
  .about-home {
    padding: 30px 0;
  }

  .about-home .wrap-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .flex-about {
    min-height: 0;
    gap: 20px;
  }

  .content-about {
    width: 100%;
    min-height: 0;
    gap: 7px;
  }

  .about-label {
    height: auto;
  }

  .about-label span {
    font-size: 12px;
  }

  .about-label svg {
    max-width: 95px;
  }

  .title-about h2 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.18;
    letter-spacing: 0.02em;
  }

  .desc-about {
    padding-top: 4px;
  }

  .desc-about h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
  }

  .desc-about p,
  .desc-about ul li {
    font-size: 15px;
    line-height: 1.65;
  }

  .about-buttons {
    padding-top: 12px;
    gap: 10px;
  }

  .view-about {
    width: 100%;
    height: 46px;
    padding: 10px 18px;
    font-size: 14px;
  }

  .photo-about {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 4.65;
    border-radius: 18px;
  }

  .photo-about a,
  .photo-about picture,
  .photo-about img {
    width: 100%;
    height: 100%;
  }

  .photo-about img {
    object-fit: cover;
    object-position: center;
  }

  /* Blog: bo swiper mobile, hien card day du */
  .blog-home {
    padding: 30px 0;
  }

  .blog-home .wrap-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .blog-home-list.no-swiper-mobile,
  .blog-home-list.no-swiper-mobile .swiper-wrapper {
    width: 100%;
    height: auto !important;
    overflow: visible !important;
  }

  .blog-home-list.no-swiper-mobile .swiper-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    transform: none !important;
  }

  .blog-home-list.no-swiper-mobile .swiper-slide {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible;
  }

  .blog-home-item {
    width: 100%;
    height: auto !important;
    min-height: 0;
    border-radius: 16px;
  }

  .blog-home-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .blog-home-content {
    padding: 14px;
  }

  .blog-home-meta {
    min-height: 30px;
    gap: 8px;
  }

  .blog-home-badge {
    height: 25px;
    padding: 3px 9px;
    font-size: 11px;
  }

  .blog-home-date {
    gap: 5px;
    font-size: 12px;
  }

  .blog-home-name {
    height: auto;
    min-height: 48px;
    padding-bottom: 6px;
  }

  .blog-home-name a {
    font-size: 18px;
    line-height: 1.35;
  }

  .blog-home-desc {
    height: auto;
    min-height: 45px;
    padding-bottom: 10px;
  }

  .blog-home-desc span {
    height: auto;
    font-size: 14px;
    -webkit-line-clamp: 3;
  }

  .blog-home-more {
    height: 24px;
    font-size: 14px;
  }

  /* Cam ket va footer */
  .commit-home {
    padding: 24px 0;
  }

  .commit-home .wrap-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .commit-list {
    padding: 16px;
    gap: 15px;
    border-radius: 14px;
  }

  .commit-item {
    min-height: 44px;
  }

  .commit-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .commit-content {
    height: auto;
    padding-left: 12px;
  }

  .commit-content h3 {
    height: auto;
    font-size: 14px;
  }

  .commit-content p {
    height: auto;
    font-size: 13px;
  }

  .info-footer {
    padding: 28px 0;
  }

  .info-footer .wrap-content,
  .footer-powered .wrap-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer-info-layout {
    gap: 24px;
  }

  .footer-logo {
    max-width: 240px;
    height: auto;
  }

  .footer-contact,
  .footer-links {
    gap: 14px;
  }
}

@media (max-width: 374px) {
  .wrap-content,
  .max-width,
  .wrap-product-home.other-product .wrap-content,
  .list-product.other-product .wrap-content,
  .about-home .wrap-content,
  .blog-home .wrap-content,
  .commit-home .wrap-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .product-hot-item {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 9px;
    padding: 9px;
  }

  .product-hot-img,
  .product-hot-img picture,
  .product-hot-img img {
    width: 94px;
    height: 94px;
  }

  .product-cate-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .product-cate-img,
  .product-cate-img picture,
  .product-cate-img img {
    width: 100px;
    height: 100px;
  }

  .product-hot-btns a b,
  .product-cate-btns a b {
    font-size: 9px;
  }
}
