/* Custom CSS for MPack Website */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Bitter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0066b3;
    --secondary-color: #ed1c24;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
	--warning-color: #e1aa03;
}

body {
    font-family: 'Bitter', serif;
    color: #6c757d;
}
p{
    text-align: justify;
	margin-bottom: 1.5rem;
}
h1, h2, h3, h4, h5, h6,
.section-title,
.service-footer h5,
.product-title,
.news-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
}
.language-switcher {
    display: flex;
    gap: 5px;
}

.language-switcher .lang-link {
    display: inline-block;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher .lang-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/*.language-switcher .lang-link.active {*/
/*    background-color: rgba(0, 0, 0, 0.1);*/
/*}*/

.language-switcher img {
    display: block;
    border: 1px solid #ddd;
    border-radius: 2px;
}
.related-product-quote {
    font-weight: 700 !important;
}
.gtranslate_wrapper a {
	width: 24px !important;
	height: 24px !important;
}
.news-section .news-slider-prev {
    left: 2% !important;
}
.news-section .news-slider-next {
    right: 2% !important;
}
.text-primary, .woocommerce div.product .woocommerce-tabs ul.tabs li.active a{
    color: var(--primary-color) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs{
    padding: 0
}
.woocommerce div.product .woocommerce-tabs ul.tabs li{
    margin: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
    padding: 15px 0;
}
.woocommerce-tabs, .tab-content{
    border: solid 1px  #e5e5e5;
    margin: 20px 0;
}

#san-pham-tab{
    padding: 15px 30px;
    background-color: #e5e5e5;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
}
#tab-description{
    padding: 15px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li.active::before, .woocommerce div.product .woocommerce-tabs ul.tabs li.active::after{
    content: none !important;
}
.wc-tabs{
    border-bottom: solid 1px #e5e5e5 !important;
    background-color: #e5e5e5;
}
.btn-primary{
    background-color: var(--primary-color) !important;
}
.site-main img{
    border-radius: 5px;
}
.woocommerce-page div.product div.images{
    width: 100%;
}
/* ========== MENU & NAVIGATION ========== */
.custom-logo-link img{
    max-width: 200px;
    height: auto;
}
.title-image img{
    object-fit: cover;
    height: 500px;
}
.blur{
    position: relative;
}
.blur:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(70deg, #202f5a 0%, rgba(32, 47, 90, 0) 100%), linear-gradient(0deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2));
    background-size: cover;
}
.blur-right:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg, #202f5a 0%, rgba(32, 47, 90, 0) 80%), linear-gradient(0deg, rgba(0, 0, 0, .4), rgba(0, 0, 0, .2));
    background-size: cover;
}

/*Breadcrumb*/
/* CSS cho breadcrumb đơn giản */
.breadcrumb-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-container a {
    color: var(--primary-color, #0066b3);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-container a:hover {
    color: var(--secondary-color, #ed1c24);
}

.breadcrumb-container .separator {
    color: #adb5bd;
    font-weight: 300;
}

.breadcrumb-container .current {
    color: var(--secondary-color, #ed1c24);
    font-weight: 500;
}

/* CSS cho breadcrumb dạng banner */
.breadcrumb-banner {
    background-color: var(--primary-color, #0066b3);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0;
    position: relative;
    margin-bottom: 30px;
}

.breadcrumb-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.breadcrumb-banner .container {
    position: relative;
    z-index: 1;
}

.breadcrumb-banner .page-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.breadcrumb-banner .breadcrumb-container {
    color: #fff;
}

.breadcrumb-banner .breadcrumb-container a {
    color: #fff;
}

.breadcrumb-banner .breadcrumb-container a:hover {
    color: #f8f9fa;
}

.breadcrumb-banner .breadcrumb-container .separator {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-banner .breadcrumb-container .current {
    color: #fff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb-banner {
        padding: 30px 0;
    }
    
    .breadcrumb-banner .page-title {
        font-size: 24px;
    }
    
    .breadcrumb-container {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .breadcrumb-banner {
        padding: 20px 0;
    }
    
    .breadcrumb-banner .page-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
}
/* Reset cho menu */
.navbar-nav,
.navbar-nav ul,
ul.menu,
ul.sub-menu,
.menu,
.sub-menu {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Top bar styling */
.top-contact-info a, .top-contact-info span  {
    color: var(--primary-color) !important; 
}
.top-bar {
/*     background-color: #f5f5f5; */
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid #e9e9e9;
}

.top-bar a, .top-bar small {
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--secondary-color) !important;
}

.top-contact-info a, .top-contact-info span {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

.top-contact-info i {
    margin-right: 6px;
    font-size: 14px;
}

/* Main navigation */
.navbar {
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar-brand {
    padding: 0;
}

.navbar-brand img {
    max-height: 45px;
    transition: all 0.3s ease;
}

/* Menu chính - Điều chỉnh hiển thị ngang */
.navbar-nav,
.menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

/* Menu Items */
/* Enhanced footer menu styles */
#menu-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#menu-menu-footer a {
    text-decoration: none;
    color: #fff;
    position: relative;
    padding-left: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: -10px;
    font-size: 14px;
}

#menu-menu-footer a:before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-50%);
    color: #ffffff;
    opacity: 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

#menu-menu-footer a:hover {
    color: #f8f9fa;
    padding-left: 20px;
}

#menu-menu-footer a:hover:before {
    opacity: 1;
    left: 5px;
}

/* Footer link underline effect */
.footer-main a.text-white {
    position: relative;
    display: inline-block;
}

.footer-main a.text-white:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.footer-main a.text-white:hover:after {
    width: 100%;
}
.footer-main .input-group>*{
    font-size: 14px;
}
/* Address, phone and email hover in footer */
.list-unstyled.text-white li {
    position: relative;
    padding-left: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.list-unstyled.text-white li i {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.list-unstyled.text-white li:hover {
    padding-left: 8px;
}

.navbar-nav li,
.navbar-nav .nav-item,
.menu-item {
    position: relative;
    margin: 0 5px;
    display: inline-block;
}

.navbar-nav li a,
.navbar-nav .nav-link,.navbar .menu-item a {
    display: block;
    padding: 10px 5px !important;
    color: #000!important;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 18px;
    background: none;
}

.navbar-nav li a:hover,
.navbar-nav .nav-link:hover,
.menu-item a:hover {
    color: #000 !important;
    background-color: rgba(0, 102, 179, 0.05);
}

/* Active state */
/* .navbar-nav li.current-menu-item a,
.navbar-nav .nav-link.active,
.menu-item.current-menu-item a {
    color: var(--secondary-color) !important;
    position: relative;
} */

.navbar-nav li.current-menu-item a:after,
.navbar-nav .nav-link.active:after,
.menu-item.current-menu-item a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px 2px 0 0;
}

/* Sub-menu / Dropdown */
.sub-menu .menu-item a:after{
    background-color: transparent !important;
}
.navbar-nav .sub-menu,
.navbar-nav .dropdown-menu,
.menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 265px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    display: block !important;
    border: none !important;
}

.navbar-nav li:hover > .sub-menu,
.navbar-nav .nav-item:hover > .dropdown-menu,
.menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-nav .sub-menu li,
.navbar-nav .dropdown-item,
.menu .sub-menu li {
    display: block;
    width: 100%;
    margin: 0;
}

.navbar-nav .sub-menu a,
.navbar-nav .dropdown-item,
.menu .sub-menu a {
    padding: 8px 20px !important;
    font-size: 14px;
    color: var(--dark-color) !important;
    border-radius: 0;
    transition: all 0.2s ease;
    display: block;
}

.navbar-nav .sub-menu a:hover,
.navbar-nav .dropdown-item:hover,
.menu .sub-menu a:hover {
    background-color: rgba(0, 102, 179, 0.05);
    color: var(--primary-color) !important;
    padding-left: 25px !important;
}

/* Cờ ngôn ngữ */
.navbar-nav li img,
.navbar-nav .nav-item img,
.menu-item img {
    margin-right: 5px;
    vertical-align: middle;
    border: 1px solid #eee;
    border-radius: 2px;
    max-width: 24px !important;
    height: auto !important;
    display: inline-block !important;
}

/* Menu Mobile - Hamburger */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 10px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Add hover animation effect to menu items */
@media (min-width: 992px) {
    .navbar-nav li a:before,
    .navbar-nav .nav-link:before,
    .menu-item a:before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        right: 50%;
        height: 3px;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
        opacity: 0;
    }
    
    .navbar-nav li a:hover:before,
    .navbar-nav .nav-link:hover:before,
    .menu-item a:hover:before {
        left: 15px;
        right: 15px;
        opacity: 1;
    }
    
    .navbar-nav li.current-menu-item a:before,
    .navbar-nav .nav-link.active:before,
    .menu-item.current-menu-item a:before {
        opacity: 0;
    }
}

/* Sticky header transition */
.navbar.scrolled {
    padding: 8px 0;
}

.navbar.scrolled .navbar-brand img {
    max-height: 40px;
}

/* Search form */
.navbar .form-control {
    border-radius: 6px 0 0 6px;
    border-color: #e9e9e9;
    padding: 10px 15px;
    font-size: 14px;
    height: auto;
    box-shadow: none;
    transition: all 0.3s ease;
}

.navbar .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 179, 0.1);
}

.navbar .btn-outline-primary {
    border-radius: 0 6px 6px 0;
    padding: 10px 16px;
    line-height: 1;
    border-color: #e9e9e9;
    background-color: transparent;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Thêm các lớp WordPress đặc biệt */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > a::after {
    content: '\f107'; /* Font Awesome dropdown icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    vertical-align: middle;
    font-size: 12px;
}

/* ========== PHẦN CÒN LẠI CỦA CSS ========== */

/* Section Titles */
.section-title {
	font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
    position: relative;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: auto;
    overflow: hidden;
}

.hero-image img {
    height: 700px;
    object-fit: cover;
}

/* Title Section */
/* .title-section {
    padding: 60px 0;
} */

.title-image {
    border-radius: 5px;
    overflow: hidden;
}

/* Services Section */
.service-card {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    border-radius: 5px 5px 0 0;
}

.service-footer {
    background-color: var(--secondary-color);
    padding: 15px;
}

.service-footer h5 {
	font-family:'Bitter';
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Products Section */
.product-card, .woocommerce ul.products li.product {
    border-radius: 0px !important;
    box-shadow: 0 !important;
    padding: 15px;
    position: relative;
    transition: transform 0.3s ease;
        text-align: center;
}
.product-card img{
    max-width: 150px;
    height: auto;
}
.product-card:hover {
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    font-size: 18px;
    font-weight: 600;
    border-radius: 3px;
	transform: skewX(-20deg);
}
.product-badge span {
  content: '';
	font-size: 12px;
  display: inline-block;
  transform: skewX(20deg);
}

.product-title {
	color: var(--primary-color);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 5px;
    height: 60px;
    overflow: hidden;
}

.product-code {
    font-size: 12px;
    margin-bottom: 15px;
}

/* Title Section with Background */
.title-section-bg {
    background-image: url('images/banner-2.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
    color: white;
}

.title-section-bg .container {
    position: relative;
    z-index: 1;
}

/* Partners Section */
.partner-logo {
    border-radius: 10px;
    transition: transform 0.3s ease;
    overflow: hidden;
    object-fit: cover;
}
.partner-logo:hover {
    transform: translateY(-5px);
}

/* News Section */
.news-card {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-title {
    font-size: 25px;
	color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.news-excerpt {
    font-size: 14px;
    overflow: hidden;
}

.news-date span {
    font-size: 14px;
	color: var(--primary-color) !important;
}
.text-muted {
	font-size: 18px;
}
.slick-list {
	padding: 10px 0;
}

/* Footer */
.footer-main {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.footer-main > * {
    position: relative;
    z-index: 2;
}
.footer-main h4, .footer-main h5 {
    font-family: 'Oswald', sans-serif;
	padding: 1.5rem 0 0;
}

.footer-bottom {
    background-color: var(--dark-color);
    color: #fff;
}
.text-right{
    text-align: right;
}
.footer-bottom a{
    text-decoration: none;
}
.footer-main .menu-item.current-menu-item a:after{
    content: none;
}
/* Buttons */
.btn {
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    width: fit-content;
}
.btn i{
    font-size: 10px;
}
.btn-danger {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-link{
    text-decoration: none;
    display: flex;
    align-items: center;
}
.btn-link i:before{
    font-size: 10px;
}
.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    color: var(--primary-color);
}

/* Carousel Navigation */
.btn-outline-secondary {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Hamburger to X animation */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    background-image: none;
    position: relative;
    transition: all 0.3s ease;
}

/* Tạo 3 dòng cho icon hamburger */
.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after,
.navbar-toggler .navbar-toggler-icon {
    width: 24px;
    height: 2px;
    background-color: #333;
    display: block;
    transition: all 0.3s ease;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
    content: '';
    position: absolute;
    left: 0;
}

.navbar-toggler .navbar-toggler-icon:before {
    top: -8px;
}

.navbar-toggler .navbar-toggler-icon:after {
    bottom: -8px;
}

/* Hiệu ứng chuyển thành X khi active */
.navbar-toggler.toggler-open .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler.toggler-open .navbar-toggler-icon:before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler.toggler-open .navbar-toggler-icon:after {
    bottom: 0;
    transform: rotate(-45deg);
}

.logo-footer img{
    width: 100%;
    height: auto;
    max-width: 300px !important;
}
.lang .gtranslate_wrapper {
    display: flex;
    gap: 5px;
}
/* CSS hiệu ứng tráng gương (mirror effect) khi hover vào ảnh */

/* Áp dụng cho tất cả hình ảnh trên website */
img {
    transition: all 0.5s ease;
    backface-visibility: hidden;
}

/* Container cho hình ảnh */
.img-container,
.page-thumbnail,
.about-featured-image,
.service-image,
.product-image,
.news-image,
.wp-block-image,
.wp-post-image,
.attachment-thumbnail,
.attachment-medium,
.attachment-large,
.attachment-full,
figure,
.gallery-item {
    overflow: hidden !important;
    position: relative;
}

/* Hiệu ứng tráng gương khi hover */
.img-container:hover img,
.page-thumbnail:hover img,
.about-featured-image:hover img,
.service-image:hover img,
.product-image:hover img,
.news-image:hover img,
.wp-block-image:hover img,
.wp-post-image:hover,
figure:hover img,
.gallery-item:hover img,
a:hover > img {
    transform: scale(1.05);
    filter: brightness(105%);
}

/* Hiệu ứng tráng gương nâng cao với overlay */
.mirror-effect {
    position: relative;
    overflow: hidden;
}

.mirror-effect:before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    transform: skewX(-25deg);
    transition: all 0.75s;
    opacity: 0;
}

.mirror-effect:hover:before {
    animation: shine 0.75s;
    opacity: 1;
    left: 125%;
}

@keyframes shine {
    0% {
        left: -75%;
        opacity: 0;
    }
    100% {
        left: 125%;
        opacity: 1;
    }
}

/* Áp dụng class mirror-effect cho các container ảnh chính */
.page-thumbnail,
.about-featured-image,
.service-card,
.product-card .product-image,
.news-card .news-image {
    position: relative;
    overflow: hidden;
}

.page-thumbnail:before,
.about-featured-image:before,
.service-card:before,
.product-card .product-image:before,
.news-card .news-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    transform: skewX(-25deg);
    transition: all 0.75s;
    opacity: 0;
}

.page-thumbnail:hover:before,
.about-featured-image:hover:before,
.service-card:hover:before,
.product-card .product-image:hover:before,
.news-card .news-image:hover:before {
    animation: shine 0.75s;
    opacity: 1;
    left: 125%;
}

/* Tùy chỉnh dài ngắn thời gian hiệu ứng cho các khối hình ảnh */
.page-thumbnail img,
.about-featured-image img {
    transition: all 0.7s ease; /* Hiệu ứng lâu hơn cho ảnh lớn */
}

.news-image img,
.product-image img,
.service-image img {
    transition: all 0.4s ease; /* Hiệu ứng nhanh hơn cho ảnh nhỏ */
}

/* Fix cho WooCommerce và các plugin khác */
.woocommerce .products .product a img,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery__image a {
    transition: all 0.5s ease;
}

.woocommerce .products .product:hover a img,
.woocommerce-product-gallery__image:hover img {
    transform: scale(1.05);
    filter: brightness(105%);
}

/* Hiệu ứng tráng gương WooCommerce */
.woocommerce .products .product,
.woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
}

.woocommerce .products .product:before,
.woocommerce-product-gallery__image:before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 100%
    );
    transform: skewX(-25deg);
    transition: all 0.75s;
    opacity: 0;
}

.woocommerce .products .product:hover:before,
.woocommerce-product-gallery__image:hover:before {
    animation: shine 0.75s;
    opacity: 1;
    left: 125%;
}
    /* Common Product Display Styling */
    .woocommerce ul.products li.product {
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        margin-bottom: 30px;
        padding: 15px;
        position: relative;
        overflow: hidden;
    }
    
    .woocommerce ul.products li.product:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    
    .woocommerce ul.products li.product img {
        border-radius: 5px;
        transition: transform 0.3s ease;
    }
    
    .woocommerce ul.products li.product:hover img {
        transform: scale(1.05);
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 10px 0 10px 0;
    margin-bottom: 30px;
    font-size: 14px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    }
    
    .woocommerce ul.products li.product .price {
        color: #ed1c24;
        font-weight: 700;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .woocommerce ul.products li.product .button {
        background-color: #0066b3;
        color: #fff;
        font-weight: 500;
        border-radius: 4px;
        transition: all 0.3s ease;
        padding: 10px 15px;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    
    .woocommerce ul.products li.product .button:hover {
        background-color: #005091;
    }
    
    .woocommerce .woocommerce-ordering select {
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ddd;
    }
    
    .woocommerce .woocommerce-result-count {
        line-height: 40px;
        margin-bottom: 20px;
    }
    
    /* Product Categories Grid Styling */
    .category-card {
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        margin-bottom: 20px;
        position: relative;
    }
    
    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
    
    .category-image {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px 5px 0 0;
        overflow: hidden;
        padding: 15px;
        background-color: #fff;
    }
    
    .category-image img {
        max-height: 100%;
        max-width: 100%;
        transition: transform 0.3s ease;
    }
    
    .category-card:hover .category-image img {
        transform: scale(1.05);
    }
    
    .category-footer {
        background-color: #ed1c24 !important;
        padding: 10px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
		min-height: 80px;
    }
    
    .category-footer h5 {
		font-family: 'Bitter' !important;
		line-height: 1.5em;
        font-size: 14px;
        font-weight: 700;
        margin: 0;
        text-transform: uppercase;
        color: #fff;
    }
    
    /* Dropdown styling */
    .category-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 5px 5px;
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .category-card:hover .category-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .category-dropdown ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .category-dropdown li {
        padding: 0;
        margin: 0;
    }
    
    .category-dropdown a {
        display: block;
        padding: 8px 15px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.2s ease;
    }
    
    .category-dropdown a:hover {
        background-color: rgba(0, 102, 179, 0.05);
        color: #0066b3;
        padding-left: 20px;
    }
    
    /* Page title styling */
    .page-title {
        color: #0066b3;
        font-weight: 700;
        margin-bottom: 20px;
        text-transform: uppercase;
    }
    
    .sub-title {
        color: #333;
        margin-bottom: 20px;
    }
    
    .shop-description,
    .category-description {
        margin-bottom: 30px;
    }
    
    /* Pagination styling */
    .woocommerce-pagination {
        margin-top: 20px;
        margin-bottom: 40px;
    }
    
    .woocommerce nav.woocommerce-pagination ul {
        border: none;
        display: flex;
        justify-content: center;
    }
    
    .woocommerce nav.woocommerce-pagination ul li {
        border: none;
        margin: 0 3px;
    }
    
    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        padding: 10px 15px;
        background-color: #fff;
        border-radius: 4px;
        border: 1px solid #ddd;
        color: #333;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .woocommerce nav.woocommerce-pagination ul li a:hover {
        background-color: #f8f9fa;
        color: #0066b3;
    }
    
    .woocommerce nav.woocommerce-pagination ul li span.current {
        background-color: #0066b3;
        color: #fff;
        border-color: #0066b3;
    }
    
    .breadcrumb-container {
        font-size: 14px;
        color: #6c757d;
    }
    
    .breadcrumb-container a {
        color: #0066b3;
        text-decoration: none;
    }
    
    .breadcrumb-container a:hover {
        text-decoration: underline;
    }
    .category-info {
        margin-bottom: 30px;
        display: flex;    
        flex-direction: row-reverse;
    }
    /* Responsive fixes */
    @media (max-width: 768px) {
        .woocommerce ul.products li.product .woocommerce-loop-product__title {
            height: auto;
        }
    }
    
    @media (max-width: 576px) {
        .woocommerce ul.products[class*="columns-"] li.product {
            width: 100%;
        }
    }
/* ========== RESPONSIVE STYLES ========== */
@media(max-width: 1300px){
    .navbar-nav li a,
.navbar-nav .nav-link,.navbar .menu-item a {
    font-size: 16px;
}
}
/* Mobile menu */
@media (max-width: 991px) {
	.p-5 {
	padding: 10px !important;
	}
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 15px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 999;
    }
    .lang .gtranslate_wrapper {
        padding: 10px 0px;
    }
    .navbar-nav,
    .menu {
        flex-direction: column !important;
    }

    .navbar-nav li,
    .navbar-nav .nav-item,
    .menu-item {
        display: block;
        width: 100%;
        margin: 0;
    }

    .navbar-nav li a,
    .navbar-nav .nav-link,
    .menu-item a {
        padding: 10px 15px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .sub-menu,
    .navbar-nav .dropdown-menu,
    .menu .sub-menu {
        position: static;
        width: 100%;
        background-color: #f8f9fa;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        margin: 0;
        display: none;
    }

    .navbar-nav .sub-menu.show,
    .navbar-nav .dropdown-menu.show,
    .menu .sub-menu.show {
        display: block;
    }

    .navbar-nav .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
    
    .navbar-nav li.current-menu-item a:after,
    .navbar-nav .nav-link.active:after,
    .menu-item.current-menu-item a:after {
        left: 0;
        right: 0;
        bottom: -1px;
    }
    
    .product-title {
        height: auto;
        max-height: 80px;
    }
    
    .news-excerpt {
        height: auto;
    }
    
    .navbar .form-control, 
    .navbar .btn-outline-primary {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .top-contact-info a, 
    .top-contact-info span {
        margin-bottom: 5px;
    }
      .navbar-nav .dropdown-menu,
  .menu .sub-menu {
    display: none !important; /* Force hide */
  }
  
  .navbar-nav .dropdown-menu.show,
  .menu .sub-menu.show {
    display: block !important; /* Only show when toggled */
  }
  
  /* Fix for TIN TỨC menu */
  .menu-item-has-children > .sub-menu {
    display: none !important;
  }
  
  .menu-item-has-children.show > .sub-menu {
    display: block !important;
  }
}

@media (max-width: 768px) {
    .service-footer h5 {
        font-size: 12px;
    }
    .top-bar{
        display:none;
    }
    .title-section-bg {
        text-align: center;
    }
    
    .title-section-bg .row {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
	.footer-main h5 {
    font-size: 18px;
    padding: 1rem 0;
	text-align: left;
	}
	.carousel-indicators {
		bottom: -50px !important;
	}
	.carousel-indicators [data-bs-target] {
    background-color: #aaaaaa;
	}
	.carousel-indicators button.active {
    background-color: #666666;
	}
	.custom-logo-link img { 
	max-width: 150px ;
	}
	.lang, .search {
	width: 100%;
    margin-left: 0 !important;
	}
	.hero-section {
	padding-bottom: 2rem;
	}
	.hero-image img, .title-image img, .about-featured-image img {
    height: 250px; 
	object-fit: cover;
	}
    .section-title {
        font-size: 1.5rem;
    }
    .service-card,
    .product-card,
    .news-card {
        margin-bottom: 20px;
    }
}