/* ==========================================================================
   Mobile & Responsive Stylesheet - Majeed & Sons
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GLOBAL RESPONSIVE FIXES (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

  html,
  body {
    min-width: 100% !important;
    width: 100% !important;
    overflow-x: clip !important;
  }

  .wrap-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}

/* --------------------------------------------------------------------------
   2. HEADER RESPONSIVE (<= 1024px - TABLET & LANDSCAPE)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header {
    min-width: 100% !important;
    padding: 0 !important;
    position: relative;
    z-index: 999;
  }

  .header-top {
    height: 100px !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }

  .header-top.fix_header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
  }

  /* Menu Icon (Left) */
  #hamburger {
    display: block !important;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 10;
    margin: 0;
  }

  #hamburger span,
  #hamburger:before,
  #hamburger:after {
    background: var(--color-main, #32a9ff);
    height: 3px;
    border-radius: 2px;
  }

  #hamburger:before {
    top: 0px;
  }

  #hamburger span {
    top: 8px;
  }

  #hamburger:after {
    top: 16px;
  }

  /* Logo (Centered) */
  .header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .header-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .header-logo img {
    max-height: 85px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  /* Hide redundant desktop items */
  .header-top>.search,
  .header-top>.item-phone {
    display: none !important;
  }

  /* Search & Cart Actions (Right) */
  .header-right-action {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    z-index: 10;
  }

  /* Mobile Search Icon Toggle */
  .search-res {
    position: relative;
  }

  .search-res .icon-search {
    width: 36px;
    height: 36px;
    line-height: 34px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search-res .search-grid {
    position: absolute;
    top: 48px;
    right: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  /* Mobile Cart Button */
  .bt-cart {
    width: auto;
    padding: 6px 12px;
    height: 36px;
    font-size: 13px;
    border-radius: 20px;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(247, 173, 68, 0.3);
  }

  .bt-cart svg {
    width: 18px;
    height: 18px;
  }

  /* Header Bottom Criteria Bar */
  .header-bottom {
    padding: 6px 0;
    background: #eef9ff;
    border-top: 1px solid #e2f2ff;
  }

  .item-tc2 {
    gap: 8px;
    align-items: center;
  }

  .img-tc2 span {
    width: 40px;
    height: 40px;
    min-width: 40px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }

  .img-tc2 span img {
    max-width: 24px;
    max-height: 24px;
  }

  .content-tc2 span {
    font-size: 12px;
    line-height: 15px;
    margin-bottom: 2px;
    display: block;
  }

  .content-tc2 p {
    font-size: 11px;
    line-height: 14px;
    margin: 0;
  }

  /* Hide Desktop Nav Bar on screens <= 1024px */
  nav.menu {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. HEADER RESPONSIVE (<= 768px - MOBILE SMARTPHONES)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .wrap-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-top {
    height: 100px !important;
  }

  .header-logo img {
    max-height: 80px;
    max-width: 140px;
  }

  .header-right-action {
    gap: 6px;
  }

  .bt-cart {
    padding: 5px 10px;
    height: 34px;
    font-size: 12px;
  }

  .search-res .icon-search {
    width: 34px;
    height: 34px;
    line-height: 32px;
  }

  .search-res .search-grid {
    top: 45px;
  }

  .header-bottom {
    padding: 5px 0;
  }

  .img-tc2 span {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .img-tc2 span img {
    max-width: 20px;
    max-height: 20px;
  }
}

/* --------------------------------------------------------------------------
   4. HEADER RESPONSIVE (<= 576px - SMALL MOBILE SCREENS)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .wrap-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-top {
    height: 100px !important;
  }

  .header-logo img {
    max-height: 75px;
    max-width: 120px;
  }

  .bt-cart {
    padding: 4px 8px;
    height: 32px;
    font-size: 11px;
    border-radius: 15px;
  }

  /* Hide text "Đặt hàng ngay" on small mobile screens */
  .bt-cart .bt-cart-text {
    display: none;
  }

  .search-res .icon-search {
    width: 32px;
    height: 32px;
    line-height: 30px;
    font-size: 12px;
  }

  #hamburger {
    width: 25px;
    height: 19px;
  }

  #hamburger span {
    top: 8px;
  }

  #hamburger:after {
    top: 16px;
  }

  .content-tc2 span {
    font-size: 11px;
  }

  .content-tc2 p {
    font-size: 10px;
    line-height: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ==========================================================================
   5. HOMEPAGE RESPONSIVE STYLES (TABLET & LANDSCAPE <= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {

  /* Global section paddings */
  .p-60 {
    padding: 35px 0 !important;
  }

  /* Slideshow Banner */
  .slideshow {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Sub Banners (.wrap-banner) */
  .wrap-banner {
    padding: 10px 0;
  }

  .item-banner img {
    border-radius: 8px;
  }

  /* Category Trend Slider (.wrap-slide-list) */
  .wrap-slide-list {
    padding: 30px 0 !important;
  }

  .title-list1 {
    margin-bottom: 20px;
  }

  .title-list1 span {
    font-size: 20px;
  }

  .prolist-pic img {
    max-width: 72px;
    height: auto;
  }

  .prolist-info h3 a {
    font-size: 14px;
    line-height: 20px;
  }

  /* Main Category Tabs & Product Section (.wrap-prolist) */
  .wrap-prolist {
    margin-bottom: 35px;
  }

  .title-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    margin-bottom: 20px;
  }

  .title-list {
    width: 100%;
    text-align: center;
    padding: 8px 15px;
  }

  .title-list span {
    font-size: 18px;
  }

  .tab-product {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tab-product::-webkit-scrollbar {
    display: none;
  }

  .btn-tab {
    white-space: nowrap;
    font-size: 14px;
    padding: 6px 12px;
    flex-shrink: 0;
  }

  /* Featured Product Category Blocks (.wrap-list2) */
  .wrap-list2 {
    padding: 35px 0 !important;
  }

  .box-flex-list {
    display: block !important;
    width: 100%;
  }

  .left-list {
    width: 100% !important;
  }

  .right-list {
    display: none !important;
  }

  /* Reset Bootstrap column width constraints on Swiper slides so Swiper JS calculates slide width & translate offsets natively */
  .swiper-auto .swiper-slide,
  .swiper-10item .swiper-slide,
  .swiper-product .swiper-slide,
  .swiper-product .col-product {
    flex: 0 0 auto !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  /* Product Card Layout */
  .product {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .product-pic {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
  }

  .product-name a {
    font-size: 14px;
    line-height: 20px;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin: 6px 0;
  }

  .price-new {
    font-size: 15px;
    color: #f7ad44;
    font-weight: 700;
  }

  .price-old {
    font-size: 12px;
    color: #b3b3b3;
  }

  /* Product Card Action Buttons */
  .cart-pro-item {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
  }

  .cart-pro-item a.addcart {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .cart-pro-item a.addnow {
    background: #32a9ff;
    color: #ffffff !important;
  }

  .cart-pro-item a.buynow {
    background: #f7ad44;
    color: #ffffff !important;
  }

  /* Registration Form & Why Choose Us Section (.wrap-form) */
  .wrap-form {
    padding: 40px 0 !important;
    background-size: cover;
  }

  .box-flex-form {
    display: flex !important;
    flex-direction: column;
    gap: 30px;
  }

  .left-form,
  .right-form {
    width: 100% !important;
  }

  .box-form {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .title-form span {
    font-size: 26px;
  }

  .f-fix {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  .f-fix p {
    width: 100% !important;
  }

  .list-tc {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .item-tc {
    width: 100% !important;
  }

  /* Certifications (.wrap-cn) & Partners (.wrap-dt) & Why choose us (.title-tc) */
  .wrap-cn,
  .wrap-dt {
    padding: 35px 0 !important;
  }

  .title-main span,
  .title-tc span,
  .title-form span,
  .left-title span {
    font-size: 26px !important;
  }

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

  /* News / Blogs Section (.wrap-news) */
  .wrap-news {
    padding: 35px 0 !important;
  }

  .title-flex2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
  }

  .title-flex2 a {
    padding: 8px 16px;
    font-size: 13px;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Customer Feedback Section (.wrap-fb) */
  .wrap-fb {
    padding: 35px 0 !important;
  }

  .box-flex-fb {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    align-items: stretch;
  }

  .left-fb {
    width: 100% !important;
    text-align: center;
  }

  .title-fb {
    text-align: center;
  }

  .title-fb span {
    font-size: 26px !important;
    padding-left: 0 !important;
    margin-bottom: 8px !important;
    display: inline-block;
    position: relative;
  }

  .title-fb span:after {
    display: none !important;
  }

  .title-fb p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 0;
  }

  .name-fb {
    font-size: 42px !important;
    letter-spacing: 6px !important;
    margin-top: 10px !important;
    text-align: center;
  }

  .right-fb {
    width: 100% !important;
    margin: 0 auto;
  }

  .border-fb {
    padding-top: 95px !important;
  }

  .item-fb {
    position: relative !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 22px 20px 20px 20px !important;
    min-height: 145px !important;
    box-sizing: border-box !important;
    background-size: 100% 100% !important;
  }

  .item-fb.fix {
    position: relative !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 22px 20px 20px 20px !important;
    min-height: 145px !important;
    box-sizing: border-box !important;
    background-size: 100% 100% !important;
  }

  /* Left cutout notch item (.item-fb) */
  .img-fb {
    position: absolute !important;
    top: -70px !important;
    left: 11.5% !important;
    right: auto !important;
  }

  .inf-fb {
    padding-left: 230px !important;
    padding-right: 15px !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }

  /* Right cutout notch item (.item-fb.fix) */
  .item-fb.fix .img-fb {
    position: absolute !important;
    top: -70px !important;
    right: 11.5% !important;
    left: auto !important;
  }

  .item-fb.fix .inf-fb {
    padding-right: 95px !important;
    padding-left: 15px !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }

  .img-fb span {
    display: inline-flex !important;
    padding: 2px !important;
    border-radius: 50% !important;
  }

  .img-fb span img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }

  .inf-fb span {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    display: block !important;
  }

  .inf-fb p {
    font-size: 13px !important;
    line-height: 18px !important;
    margin: 0 !important;
  }

  .content-fb p {
    font-size: 13.5px !important;
    line-height: 20px !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   6. HOMEPAGE RESPONSIVE STYLES (MOBILE SMARTPHONES <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .p-60 {
    padding: 28px 0 !important;
  }

  .title-list1 span {
    font-size: 20px;
  }

  .prolist-pic img {
    max-width: 64px;
  }

  .prolist-info h3 a {
    font-size: 13px;
  }

  .title-list span {
    font-size: 16px;
  }

  .product-name a {
    font-size: 13px;
    line-height: 18px;
    height: 36px;
  }

  .price-new {
    font-size: 14px;
  }

  .price-old {
    font-size: 11px;
  }

  .title-main span,
  .title-tc span,
  .title-form span,
  .left-title span {
    font-size: 22px !important;
  }

  .title-flex2 a {
    padding: 6px 12px;
    font-size: 12px;
    gap: 5px;
    border-radius: 20px;
  }

  .title-flex2 a svg {
    width: 12px;
    height: 8px;
  }

  .box-form {
    padding: 22px 15px;
  }

  .name-fb {
    font-size: 34px !important;
    letter-spacing: 4px !important;
    margin-top: 6px !important;
  }




}

/* ==========================================================================
   7. HOMEPAGE RESPONSIVE STYLES (SMALL MOBILE SCREENS <= 576px)
   ========================================================================== */
@media (max-width: 576px) {
  .p-60 {
    padding: 22px 0 !important;
  }

  .title-main span,
  .title-tc span,
  .title-form span,
  .left-title span {
    font-size: 20px !important;
  }

  .title-flex2 a {
    padding: 5px 10px;
    font-size: 11px;
    gap: 4px;
    border-radius: 15px;
  }

  .title-flex2 a svg {
    width: 10px;
    height: 7px;
  }

  .product {
    padding: 8px;
  }

  .product-name a {
    font-size: 12px;
    line-height: 16px;
    height: 32px;
  }

  .list-tc {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .name-fb {
    font-size: 26px !important;
    letter-spacing: 2px !important;
  }

  .border-fb {
    padding-top: 50px !important;
  }

  .item-fb,
  .item-fb.fix {
    min-height: 135px !important;
    padding: 18px 15px 15px 15px !important;
  }

  .img-fb span img {
    width: 74px !important;
    height: 74px !important;
  }

  .inf-fb {
    padding-left: 110px !important;
    padding-right: 10px !important;
  }

  .item-fb.fix .inf-fb {
    padding-right: 82px !important;
    padding-left: 10px !important;
  }

  .inf-fb {
    padding-left: 110px !important;
    padding-right: 15px !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }

  .item-fb.fix .img-fb {
    position: absolute !important;
    top: -30px !important;
    right: 9.5% !important;
    left: auto !important;
  }


  .img-fb {
    position: absolute !important;
    top: -30px !important;
    left: 9.5% !important;
    right: auto !important;
  }
}

/* ==========================================================================
   8. FOOTER RESPONSIVE STYLES (TABLET & LANDSCAPE <= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-article {
    padding: 40px 0 30px !important;
    background-size: cover;
  }

  .footer-article .wrap-content {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px 0;
  }

  /* Company info column (logo, address, contact) placed at top on tablet/mobile */
  .footer-news:nth-child(4) {
    width: 100% !important;
    order: -1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
    margin-bottom: 10px;
  }

  .footer-info {
    font-size: 14px;
    line-height: 22px;
  }

  .footer-info img {
    max-width: 100% !important;
    height: auto !important;
  }

  .footer-info iframe {
    max-width: 100% !important;
  }

  /* 3 link columns: Product Category, Policy, Customer Service */
  .footer-news:nth-child(1) {
    width: 33.333% !important;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .footer-news:nth-child(2) {
    width: 33.333% !important;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .footer-news:nth-child(3) {
    width: 33.333% !important;
    box-sizing: border-box;
  }

  .footer-title {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .footer-ul li {
    margin-bottom: 8px;
  }

  .footer-ul li a {
    font-size: 14px;
    line-height: 20px;
    display: inline-block;
    padding: 2px 0;
  }

  .social-footer {
    margin-top: 15px;
    gap: 8px;
  }

  .social-footer a img {
    width: 34px;
    height: 34px;
    object-fit: contain;
  }

  .footer-powered {
    padding: 14px 0 !important;
  }

  .footer-copyright {
    font-size: 13px;
    line-height: 20px;
  }
}

/* ==========================================================================
   9. FOOTER RESPONSIVE STYLES (MOBILE SMARTPHONES <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .footer-article {
    padding: 30px 0 20px !important;
  }

  .footer-article .wrap-content {
    gap: 20px 0;
  }

  .footer-news:nth-child(4) {
    padding-bottom: 15px;
    margin-bottom: 5px;
  }

  /* 2 columns per row on mobile portrait */
  .footer-news:nth-child(1) {
    width: 50% !important;
    padding-right: 10px;
  }

  .footer-news:nth-child(2) {
    width: 50% !important;
    padding-right: 0;
  }

  .footer-news:nth-child(3) {
    width: 100% !important;
    margin-top: 10px;
    padding-right: 0;
  }

  .footer-title {
    font-size: 14px;
    padding-bottom: 6px;
    margin-bottom: 10px;
  }

  .footer-ul li a {
    font-size: 13px;
  }

  .full-nd {
    font-size: 14px;
    margin-top: 6px;
  }

  .footer-powered {
    padding: 12px 0 !important;
  }

  .footer-copyright {
    font-size: 12px;
    line-height: 18px;
  }

  #hotline {
    bottom: 80px !important;
    left: 10px !important;
  }

  #social {
    bottom: 80px !important;
    right: 15px !important;
  }
}

/* ==========================================================================
   10. FOOTER RESPONSIVE STYLES (SMALL MOBILE SCREENS <= 576px)
   ========================================================================== */
@media (max-width: 576px) {
  .footer-article {
    padding: 25px 0 15px !important;
  }

  .footer-news:nth-child(4) {
    padding-bottom: 12px;
  }

  .footer-news:nth-child(1),
  .footer-news:nth-child(2) {
    width: 50% !important;
  }

  .footer-news:nth-child(3) {
    width: 100% !important;
  }

  .social-footer a img {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   11. PRODUCT DETAIL PAGE RESPONSIVE STYLES (productDetailView.php)
   ========================================================================== */

/* Tablet & Landscape (<= 1024px) */
@media (max-width: 1024px) {

  /* Main Layout & Columns */
  .grid-pro-detail {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px;
    margin-bottom: 35px !important;
  }

  .grid-pro-detail .left-pro-detail,
  .grid-pro-detail .right-pro-detail {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Left Gallery */
  .left-pro-detail {
    margin-bottom: 10px;
  }

  .slick_photo1 {
    width: 100%;
    text-align: center;
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
  }

  .slick_photo1 img {
    max-height: 480px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }

  .album-product {
    max-width: 100% !important;
    margin: 12px auto 0 !important;
  }

  /* Right Details Info */
  .right-pro-detail .title-pro-detail {
    font-size: 20px !important;
    line-height: 28px !important;
    margin-bottom: 10px !important;
  }

  /* Rating & Meta info */
  .right-pro-detail .d-flex.align-items-center.flex-wrap {
    gap: 8px 15px;
    margin-bottom: 15px !important;
  }

  .item-detail {
    font-size: 13px;
    color: #666;
  }

  /* Price Block */
  .bg-detail {
    padding: 15px;
    background: #f8fbfe;
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .product-price-detail {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .product-price-detail strong {
    font-size: 15px;
    margin-right: 8px;
  }

  .price-new-pro-detail {
    font-size: 22px !important;
    font-weight: 700;
  }

  .price-old-pro-detail {
    font-size: 15px !important;
  }

  .percent-pro-detail {
    font-size: 13px;
    background: #ffebe9;
    color: #d7271b;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
  }

  /* Color & Size Selectors */
  .color-block-pro-detail,
  .size-block-pro-detail {
    margin-top: 12px;
  }

  .attr-label-pro-detail {
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
  }

  .typeProCart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px;
  }

  .color-pro-detail,
  .size-pro-detail {
    padding: 6px 14px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    cursor: pointer;
  }

  /* Quantity Selector */
  .box-flex-deital3 {
    margin-top: 15px;
  }

  .quantity-pro-detail {
    max-width: 140px !important;
    height: 38px;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    overflow: hidden;
  }

  .quantity-pro-detail span {
    width: 38px !important;
    height: 38px !important;
    line-height: 36px !important;
    font-size: 18px;
    background: #f5f5f5;
  }

  .quantity-pro-detail input {
    height: 38px !important;
    font-size: 15px !important;
  }

  /* Action Cart Buttons */
  .cart-pro-detail {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin: 20px 0 !important;
    width: 100%;
  }

  .cart-pro-detail a.buynow,
  .cart-pro-detail a.addnow {
    flex: 1 !important;
    width: 50% !important;
    min-height: 44px !important;
    padding: 10px 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  }

  /* Product Meta Attributes List */
  .list-inf-detail ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 15px;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .list-inf-detail ul li {
    width: 100% !important;
  }

  .list-inf-detail p {
    font-size: 13px;
    margin: 0;
  }

  /* Tabs Section */
  .pd-size4 {
    padding: 15px !important;
    border-radius: 12px;
    background: #ffffff !important;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  }

  #myTab.nav-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    gap: 6px;
    border-bottom: 2px solid #32a9ff;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #myTab.nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-cutome {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 9px 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px 8px 0 0 !important;
    background: #f0f4f8;
    color: #444;
    border: none !important;
  }

  #myTab .nav-cutome.active {
    background: #32a9ff !important;
    color: #ffffff !important;
  }

  .pd-content {
    padding: 15px 5px 5px !important;
    background: transparent !important;
  }

  .baonoidung img,
  .wrap-show-content img {
    max-width: 100% !important;
    height: auto !important;
  }

  .baonoidung table,
  .wrap-show-content table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
  }

  /* Related Products Section */
  .title-product-detail {
    font-size: 16px !important;
    padding: 10px 14px !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    border-radius: 6px;
  }
}

/* Mobile Smartphones (<= 768px) */
@media (max-width: 768px) {
  .slick_photo1 img {
    max-height: 380px;
  }

  .right-pro-detail .title-pro-detail {
    font-size: 18px !important;
    line-height: 25px !important;
  }

  .price-new-pro-detail {
    font-size: 20px !important;
  }

  .list-inf-detail ul {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .cart-pro-detail a.buynow,
  .cart-pro-detail a.addnow {
    font-size: 13px !important;
    padding: 9px 5px !important;
    min-height: 42px !important;
  }

  .nav-cutome {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  /* Product List (productsView.php) & Related Products (productDetailView.php) 2-column Grid on Mobile */
  .row-product:not(.swiper-wrapper) {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  .row-product:not(.swiper-wrapper) .col-product {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
  }
}

/* Small Mobile Screens (<= 576px) */
@media (max-width: 576px) {
  .slick_photo1 img {
    max-height: 320px;
  }

  .right-pro-detail .title-pro-detail {
    font-size: 16px !important;
    line-height: 23px !important;
  }

  .price-new-pro-detail {
    font-size: 18px !important;
  }

  .price-old-pro-detail {
    font-size: 13px !important;
  }

  .cart-pro-detail {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .cart-pro-detail a.buynow,
  .cart-pro-detail a.addnow {
    width: 100% !important;
    min-height: 40px !important;
    font-size: 13px !important;
  }

  .row-product:not(.swiper-wrapper) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

/* ==========================================================================
   12. NEWS PAGE & NEWS DETAIL RESPONSIVE STYLES (newsView.php & newsDetailView.php)
   ========================================================================== */

/* Tablet & Landscape (<= 1024px) */
@media (max-width: 1024px) {

  /* News Title Header */
  .title-detail h1 {
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 700;
    color: var(--color-main, #32a9ff);
    margin-bottom: 15px;
  }

  /* News List Page (.row-news) - scope to non-swiper containers */
  .row-news:not(.swiper-wrapper) {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin: 0 !important;
  }

  .row-news:not(.swiper-wrapper) .col-news {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
  }

  /* Reset Swiper wrapper & slides for Home page news slider */
  .swiper-wrapper.row-news {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
  }

  .swiper-wrapper.row-news .col-news,
  .wrap-news .swiper-slide {
    flex: 0 0 auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .news-box {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .news-pic {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .news-name a {
    font-size: 14px !important;
    line-height: 20px !important;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-time {
    font-size: 12px !important;
    margin-bottom: 6px;
  }

  .news-desc {
    font-size: 13px !important;
    line-height: 18px !important;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .news-view {
    font-size: 13px;
    font-weight: 600;
    color: #32a9ff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  /* News Detail Page (.flex-news-detail) */
  .flex-news-detail {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px;
  }

  .news-left,
  .news-right {
    width: 100% !important;
    max-width: 100% !important;
  }

  .news-right {
    position: static !important;
    top: auto !important;
    padding: 18px !important;
    border-radius: 12px;
    border: 1px solid #e5eff8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  }

  /* TOC Box */
  .box-readmore {
    background: #f4f8fb;
    border: 1px solid #e1ecf4;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .tt-toc {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .toc-list {
    padding-left: 18px;
    margin-top: 8px;
    font-size: 14px;
    line-height: 22px;
  }

  /* News Detail Content */
  .content-main.baonoidung {
    font-size: 15px;
    line-height: 24px;
    color: #333;
  }

  .content-main.baonoidung img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 12px 0;
  }

  .content-main.baonoidung table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
  }

  .content-main.baonoidung iframe {
    max-width: 100% !important;
  }

  /* Sidebar Related News Items */
  .item-news-one a.img {
    border-radius: 8px;
  }

  .item-news-all a.img {
    display: flex !important;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
  }

  .item-news-all .scale-img {
    width: 90px !important;
    min-width: 90px !important;
    border-radius: 6px;
    overflow: hidden;
  }

  .item-news-all .ds-news h3 {
    font-size: 13px !important;
    line-height: 18px !important;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Mobile Smartphones (<= 768px) */
@media (max-width: 768px) {
  .title-detail h1 {
    font-size: 20px !important;
    line-height: 27px !important;
    margin-bottom: 12px;
  }

  /* News List Page (newsView.php) 1-column layout on mobile */
  .row-news:not(.swiper-wrapper) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    margin: 0 !important;
  }

  .row-news:not(.swiper-wrapper) .col-news {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
  }

  .news-box {
    padding: 12px;
    margin-bottom: 5px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .news-name a {
    font-size: 15px !important;
    line-height: 22px !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 6px;
  }

  .news-desc {
    display: -webkit-box !important;
    font-size: 13px !important;
    line-height: 19px !important;
    height: auto !important;
    max-height: 57px;
    margin-bottom: 8px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .content-main.baonoidung {
    font-size: 14px;
    line-height: 22px;
  }

  .news-right {
    padding: 14px !important;
  }
}

/* Small Mobile Screens (<= 576px) */
@media (max-width: 576px) {
  .title-detail h1 {
    font-size: 18px !important;
    line-height: 24px !important;
  }

  .row-news:not(.swiper-wrapper) {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .news-box {
    padding: 10px;
  }

  .news-name a {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .news-desc {
    display: -webkit-box !important;
    font-size: 12px !important;
    line-height: 18px !important;
    max-height: 54px;
    -webkit-line-clamp: 3;
  }

  .news-time {
    font-size: 12px !important;
  }
}

/* ==========================================================================
   13. CONTACT PAGE RESPONSIVE STYLES (contactView.php)
   ========================================================================== */

/* Tablet & Landscape (<= 1024px) */
@media (max-width: 1024px) {
  .contact-detail {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px;
  }

  .left-contact-detail,
  .right-contact-detail {
    width: 100% !important;
    max-width: 100% !important;
  }

  .right-contact-detail {
    order: -1;
  }

  .contact-title-main h2 {
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 700;
    color: var(--color-main, #32a9ff);
    margin-bottom: 15px;
    text-transform: uppercase;
  }

  .contact-map {
    height: 320px !important;
    border-radius: 10px;
    overflow: hidden;
  }

  .contact-map iframe {
    width: 100% !important;
    height: 100% !important;
  }

  .row-contact {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px 0;
    margin-top: 25px;
  }

  .contact-item {
    width: 33.333% !important;
  }

  .contact-form button {
    max-width: 280px;
    height: 44px;
    font-size: 15px;
  }
}

/* Mobile Smartphones (<= 768px) */
@media (max-width: 768px) {
  .contact-detail {
    gap: 25px;
  }

  .contact-title-main h2 {
    font-size: 20px !important;
    line-height: 27px !important;
    margin-bottom: 12px;
  }

  .contact-map {
    height: 280px !important;
  }

  .contact-item {
    width: 100% !important;
    margin-bottom: 15px;
  }

  .contact-input input,
  .contact-input textarea {
    font-size: 14px;
  }

  .row-contact-input {
    gap: 10px;
  }

  .row-contact-input .contact-input:nth-child(1) {
    width: 80% !important;
  }

  .row-contact-input .contact-input:nth-child(2) {
    width: calc(20% - 10px) !important;
  }

  .custom-file-upload {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Small Mobile Screens (<= 576px) */
@media (max-width: 576px) {
  .contact-title-main h2 {
    font-size: 18px !important;
    line-height: 24px !important;
  }

  .contact-map {
    height: 240px !important;
  }

  .contact-form button {
    max-width: 100%;
    width: 100%;
    height: 44px;
  }
}

/* ==========================================================================
   14. MMENU CUSTOM STYLES
   ========================================================================== */
#search_mobi {
  position: relative;
  padding: 10px 15px;
  background: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#search_mobi input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background: #ffffff;
  color: #333333;
  box-sizing: border-box;
}

#search_mobi i {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: #32a9ff;
  font-size: 15px;
  cursor: pointer;
}

/* Prevent FOUC / flickering of menu_mobi on page load */
nav#menu_mobi:not(.mm-menu) {
  display: none !important;
}

/* Custom smooth slide-in/out transition for mmenu position-front */
.mm-menu_position-front {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  z-index: 100000 !important;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.mm-wrapper_opening .mm-menu_position-front {
  transform: translate3d(0, 0, 0) !important;
}

.mm-wrapper__blocker {
  z-index: 99999 !important;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: opacity;
}

.mm-panel {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform;
}