/* assets/css/style.css - Stylesheet chuẩn giao diện thương hiệu Promax Electric cho diendongnai.com */

:root {
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --primary: #d32f2f; /* Màu đỏ chủ đạo */
    --primary-hover: #b71c1c;
    --blue: #0f4c81; /* Xanh dương đậm */
    --blue-hover: #0a3b66;
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
}

/* CONTAINER */
.container, .top-bar-container, .nav-container, .footer-container, .footer-bottom-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TOPBAR */
.top-bar {
    background-color: var(--blue);
    color: #ffffff;
    padding: 8px 0;
    font-size: 0.76rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-langs {
    display: flex;
    gap: 12px;
}

.top-langs span {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
}

.top-langs span:hover {
    color: #ffffff;
}

.active-lang {
    color: #ffffff !important;
    font-weight: 700;
}

/* HEADER & NAVBAR */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon-box {
    width: 42px;
    height: 42px;
    background: rgba(211, 47, 47, 0.05);
    border: 1px solid rgba(211, 47, 47, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text-box {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    padding: 6px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links > li.active > a {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #111827;
    cursor: pointer;
}

/* BIG BANNER SLIDER */
.slider-section {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.slider-container {
    width: 100%;
    height: 420px;
    max-height: 450px;
    position: relative;
    background-color: #f3f4f6;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    color: transparent;
}


/* Nút điều hướng Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(15, 76, 129, 0.4);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: var(--blue);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dấu chấm chỉ số Slider */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dot.active, .dot:hover {
    background-color: var(--primary);
    width: 24px;
    border-radius: 10px;
}

/* BRAND LOGO BOXES */
.brand-boxes-section {
    padding: 30px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.brand-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    cursor: pointer;
}

.brand-box:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.brand-box h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-box:hover h4 {
    color: var(--blue);
}

/* CATEGORY ROW GRID */
.home-category-section {
    padding-bottom: 50px;
}

.category-group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-indicator {
    width: 4px;
    height: 20px;
    background-color: var(--primary);
}

.group-title h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.view-more-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.view-more-link:hover {
    color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.catalog-content .products-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

/* LƯỚI SẢN PHẨM & SIDEBAR CATALOG - Bố cục catalog 2 cột */
.catalog-section {
    padding: 60px 0 80px 0;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* SIDEBAR DANH MỤC */
.catalog-sidebar {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.category-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.category-list li {
    margin-bottom: 8px;
    list-style: none !important;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
}

.category-list a:hover {
    background-color: var(--bg-color);
    color: var(--primary);
}

.category-list li.active a {
    color: var(--primary);
    background-color: rgba(211, 47, 47, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
}

/* PRODUCT CARD */
.product-card {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    transition: var(--transition) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01) !important;
}

.product-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.product-img-wrapper {
    width: 100% !important;
    height: 220px !important;
    position: relative !important;
    background-color: #f9fafb !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.product-img-wrapper img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    padding: 10px !important;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-title:hover {
    color: var(--primary);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.product-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-detail {
    display: none; /* Trùng với Promax Electric, ẩn nút xem chi tiết ở thẻ ngoài */
}

/* DYNAMIC PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination-item {
    width: 34px;
    height: 34px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pagination-item:hover, .pagination-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* RED BANNER: NHẬN BÁO GIÁ NGAY */
.red-quote-banner {
    background-color: var(--primary);
    color: #ffffff;
    padding: 30px 0;
    margin: 40px 0;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.15);
}

.quote-banner-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.quote-banner-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.quote-banner-text h3 {
    font-size: 1.15rem;
    font-weight: 700;
    opacity: 0.9;
    margin-top: 4px;
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary);
    border: none;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: 6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-white:hover {
    background-color: var(--bg-color);
}

/* NEWS SECTION HOME */
.news-section-home {
    padding-bottom: 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.news-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.04);
}

.news-img-wrapper {
    width: 100%;
    padding-top: 60%;
    position: relative;
}

.news-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.news-link {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* DETAILS VIEWS */
.detail-section {
    padding: 60px 20px 80px 20px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.detail-img-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    aspect-ratio: 1/1;
    width: 100%;
    max-width: 480px;
    position: sticky;
    top: 100px;
}

.detail-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.detail-info-box {
    display: flex;
    flex-direction: column;
}

.product-cat-pill {
    background-color: rgba(211, 47, 47, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 16px;
    width: fit-content;
}

.detail-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.3;
    margin-bottom: 16px;
}

.price-container {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.price-lbl {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.detail-description-section {
    margin-bottom: 30px;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    line-height: 1;
}

.detail-desc-content {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-main);
}

.btn-quote {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 16px 36px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
    transition: var(--transition);
    width: fit-content;
}

.btn-quote:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(211, 47, 47, 0.3);
}

/* ARTICLES NEWS DETAIL */
.news-detail-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.news-header-meta h1 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--blue);
}

.news-cover-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.news-body-content {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.7;
}

.news-body-content p {
    margin-bottom: 20px;
}

.news-body-content h2, .news-body-content h3 {
    color: var(--blue);
    margin: 30px 0 15px 0;
    font-weight: 800;
}

/* CHÂN TRANG (FOOTER) */
.main-footer {
    background-color: var(--blue);
    color: #ffffff;
    padding: 60px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.contact-details p {
    display: flex;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}

.contact-details i {
    width: 14px;
    height: 14px;
    color: #ffffff;
    flex-shrink: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    background-color: var(--blue-hover);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

/* POPUP MODALS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--blue);
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.82rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: var(--bg-color);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

/* ABOUT PAGE GRID */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}

/* FOOTER CONTAINER DESKTOP STYLES */
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CONTACT GRID DESKTOP STYLES */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    .brand-boxes-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-info {
        display: none !important;
    }
    
    .top-bar-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding: 4px 20px !important;
    }
    
    .top-info-right {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .nav-container {
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        height: 100% !important;
        background-color: #ffffff !important;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15) !important;
        flex-direction: column !important;
        padding: 40px 24px !important;
        gap: 20px !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 999999 !important;
        display: flex !important;
        left: auto !important;
        border: none !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
    }
    
    .nav-menu.show {
        right: 0 !important;
    }
    
    .nav-links {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        width: 100% !important;
    }
    
    .nav-links li {
        width: 100% !important;
    }
    
    .nav-links a {
        display: block !important;
        width: 100% !important;
        font-size: 0.95rem !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
        text-align: left !important;
    }
    
    .nav-links .dropdown-menu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding-left: 15px !important;
        width: 100% !important;
        background-color: transparent !important;
        display: none !important;
        margin-top: 5px !important;
    }
    
    .nav-links .dropdown-menu.show {
        display: block !important;
    }
    
    /* Smooth arrow rotation on mobile */
    .has-dropdown > a svg, .has-dropdown > a i {
        transition: transform 0.25s ease !important;
    }
    
    .nav-links .dropdown-menu li a {
        border-bottom: none !important;
        font-size: 0.88rem !important;
        color: var(--text-muted) !important;
        padding: 6px 0 !important;
    }
    
    .brand-boxes-section, .news-grid, .footer-container {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .product-img-wrapper {
        height: 130px !important;
    }
    
    .product-body {
        padding: 10px !important;
    }
    
    .product-title {
        font-size: 0.76rem !important;
        height: 2.8em !important;
    }
    
    .product-price {
        font-size: 0.78rem !important;
    }
    
    .slider-container {
        height: 200px;
    }
    
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    /* Bring header above dark backdrop when mobile menu is open */
    body.menu-open .main-header {
        z-index: 999999 !important;
        position: relative !important;
    }
    
    /* Stack product details columns on mobile */
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    /* Optimize news details for mobile screen widths */
    .news-detail-wrapper {
        padding: 16px !important;
    }
    
    .news-cover-img {
        height: 200px !important;
    }
    
    .news-header-meta h1 {
        font-size: 1.3rem !important;
    }
    
    /* Make header and logo look compact and neat on mobile */
    .main-header {
        padding: 10px 0 !important;
    }

    .logo {
        gap: 8px !important;
    }
    
    .logo-icon-box {
        width: 36px !important;
        height: 36px !important;
    }
    
    .logo-title {
        font-size: 0.92rem !important;
    }
    
    .logo-sub {
        font-size: 0.6rem !important;
    }
    
    /* Optimize copyright footer text stacking on mobile */
    .footer-bottom-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
    }
    
    /* Hide homepage products on mobile */
    .home-category-section {
        display: none !important;
    }
    
    /* Make contact page responsive on mobile */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    .contact-grid > div:last-child {
        padding: 24px !important;
    }
    
    /* Spacing between banner/slider and news section on mobile */
    .news-section-home {
        margin-top: 40px !important;
    }
    
    /* Align detail pages container padding on mobile screens */
    .detail-section {
        padding: 30px 16px 40px 16px !important;
    }
}

/* DROPDOWN MENU */
.nav-links li {
    position: relative;
}

.nav-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    z-index: 1100;
}

.nav-links .dropdown-menu li {
    width: 100%;
}

.nav-links .dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.76rem;
    color: var(--text-main);
    text-transform: none;
    font-weight: 600;
    letter-spacing: normal;
    border-bottom: none !important;
    transition: var(--transition);
}

.nav-links .dropdown-menu a:hover {
    background-color: var(--bg-color);
    color: var(--primary);
}

/* Hover to show dropdown */
.nav-links li:hover .dropdown-menu {
    display: block;
}

/* Target highlight style */
html {
    scroll-behavior: smooth;
}

#tram-sac, #qr-code, #robot, #dien-yeucau {
    scroll-margin-top: 100px;
}

:target {
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(211, 47, 47, 0.25) !important;
    transform: scale(1.02);
}


/* Subpage banner titles: Never wrap, use responsive fluid typography */
.slider-section + div h1,
.main-header + div h1,
header + div h1,
.slider-section + div .container h1,
div[style*="background-color: #ffffff"] h1,
div[style*="background-color:#ffffff"] h1 {
    font-size: clamp(1.05rem, 3.5vw, 1.85rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}

/* Mobile off-canvas menu backdrop overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999998;
}

body.menu-open {
    overflow: hidden !important;
}

body.menu-open::after {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix standard HTML bullet points cut-off / overflow issue in content areas */
.news-body-content ul, 
.news-body-content ol, 
.detail-desc-content ul, 
.detail-desc-content ol,
.detail-section ul:not([style*="list-style: none"]),
.detail-section ol {
    padding-left: 24px !important;
    margin-bottom: 16px !important;
}

.news-body-content ul, 
.detail-desc-content ul,
.detail-section ul:not([style*="list-style: none"]) {
    list-style-type: disc !important;
}

.news-body-content ol, 
.detail-desc-content ol,
.detail-section ol {
    list-style-type: decimal !important;
}

.news-body-content li, 
.detail-desc-content li,
.detail-section ul:not([style*="list-style: none"]) li,
.detail-section ol li {
    margin-bottom: 8px !important;
    list-style-position: outside !important;
}
