:root {
    --primary: #0169b3;
    --primary-dark: #014a80;
    --primary-light: #e8f4fc;
    --primary-footer: #014771;
    --bg-cream: var(--primary-light);
    --text-muted: #6b7a88;
    --font-serif: 'Playfair Display', serif;
    --bs-primary: #0169b3;
    --bs-primary-rgb: 1, 105, 179;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

/* Site header + mega menu */
.site-header {
    z-index: 1030;
}

.site-header:hover .mega-menu,
.site-header.mega-open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.site-header.mega-open .nav-link-mega-trigger {
    background: var(--primary);
    color: #fff !important;
    border-radius: 999px;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
}

/* Cầu nối hover: di chuột từ「Sản phẩm」xuống panel không bị đứt */
.mega-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.site-header.mega-open .mega-menu::before {
    pointer-events: auto;
}

.mega-menu-inner {
    display: flex;
    align-items: stretch;
    min-height: 300px;
}

.mega-menu-sidebar {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid #e5e9ed;
    padding: 1.35rem 0;
}

.mega-sidebar-item {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.mega-sidebar-item:hover,
.mega-sidebar-item.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(1, 105, 179, 0.06);
}

.mega-menu-content {
    flex: 1;
    padding: 1.25rem 1.5rem 1.5rem;
    overflow: hidden;
}

.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
}

.mega-panel-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
}

.mega-product-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.mega-product-card {
    position: relative;
    display: block;
    background: #f3f6f8;
    border-radius: 12px;
    padding: 0.85rem 0.65rem 0.75rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.mega-product-card:hover {
    box-shadow: 0 8px 20px rgba(1, 105, 179, 0.12);
    transform: translateY(-2px);
    color: inherit;
}

.mega-product-card img {
    width: 100%;
    height: 95px;
    object-fit: contain;
    margin-bottom: 0.45rem;
    background: #f3f6f8;
    border-radius: 6px;
}

.mega-product-name {
    display: block;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

.mega-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-weight: 700;   
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 3px;
    color: #fff;
    z-index: 1;
    line-height: 1.2;
}

.mega-product-badge.badge-new {
    background: var(--primary);
}

.mega-product-badge.badge-hot {
    background: #c0392b;
}

@media (max-width: 1199px) {
    .mega-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .mega-menu {
        display: none !important;
    }

    .site-header.mega-open .site-header-shell {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .site-header.mega-open .nav-link-mega-trigger {
        background: transparent;
        color: var(--primary) !important;
        border-radius: 0;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Custom Navbar */
.custom-navbar {
    background: #fff;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 3px solid var(--primary);
}

.custom-navbar .navbar-toggler {
    border-color: rgba(1, 105, 179, 0.35);
}

.navbar-brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar-brand-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: min(220px, 55vw);
    object-fit: contain;
}

.header-mobile-hotline {
    display: none;
}

.brand-name {
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 1.4rem;
    color: var(--primary);
}

.brand-sub {
    font-family: var(--font-serif);
    font-style: italic;
    display: block;
    margin-top: -5px;
    color: var(--text-muted);
}

.custom-navbar .nav-link {
    color: #333;
    transition: color 0.2s;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link:focus {
    color: var(--primary);
}

.custom-navbar .header-icons a {
    color: var(--primary);
    font-weight: 600;
}

.custom-navbar .header-icons a:hover {
    color: var(--primary-dark);
}

.header-icons i {
    margin: 0 10px;
    font-size: 1.1rem;
    color: var(--primary);
    cursor: pointer;
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -5px;
    background: var(--primary);
    color: #fff;
    padding: 2px 5px;
    border-radius: 50%;
}

/* Sections */
.section-padding {
    padding: 30px 0;
}

.bg-cream-light {
    background-color: var(--bg-cream);
}

.section-title {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--primary);
}

/* Hero — banner chính từ admin (DB) */
.hero-banner {
    margin-top: 85px;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0b1a2e;
    line-height: 0;
}

.hero-banner--single {
    display: block;
}

.hero-banner__link {
    display: block;
    line-height: 0;
}

.hero-banner__link:hover {
    opacity: 0.98;
}

.hero-banner__img {
    display: block;
    width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-banner .carousel-inner,
.hero-banner .carousel-item {
    line-height: 0;
}

.hero-banner .carousel-control-prev,
.hero-banner .carousel-control-next {
    width: 8%;
    opacity: 0.85;
}

.hero-banner .carousel-indicators {
    margin-bottom: 0.75rem;
}

.hero-banner .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Legacy alias (nếu còn tham chiếu cũ) */
.hero-section {
    margin-top: 85px;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0b1a2e;
}

.ion-benefits-img {
    max-width: 640px;
    width: 100%;
    height: auto;
}

.hero-content h1 {
    letter-spacing: 2px;
    font-weight: 300;
}

.text-shadow-hero {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.italic-font {
    font-family: var(--font-serif);
    font-style: italic;
    color: #555;
}

.hero-section .italic-font {
    color: rgba(255, 255, 255, 0.85) !important;
}

.btn-shop {
    background: var(--primary);
    color: white;
    border-radius: 20px;
    padding: 10px 40px;
    letter-spacing: 1px;
    transition: 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-shop:hover {
    background: var(--primary-dark);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Featured categories — tabs */
.featured-subtitle {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.category-tabs {
    gap: 0.5rem 1.5rem;
    border-bottom: 1px solid rgba(1, 105, 179, 0.15);
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

.category-tab-btn {
    background: none;
    border: none;
    padding: 0.35rem 0.25rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.category-tab-btn:hover {
    color: var(--primary);
}

.category-tab.active .category-tab-btn {
    color: var(--primary);
}

.category-tab.active .category-tab-btn::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.55rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.category-panel {
    display: none;
}

.category-panel.active {
    display: block;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(var(--featured-columns, 5), minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.featured-mini-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #f0f4f8;
    border-radius: 12px;
    padding: 1rem 1rem 0.85rem;
    text-align: center;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s;
}

.featured-mini-card:hover {
    box-shadow: 0 10px 24px rgba(1, 105, 179, 0.12);
    transform: translateY(-3px);
}

.featured-mini-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-mini-card-link:hover {
    color: inherit;
}

.featured-mini-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    background: #f3f6f8;
    border-radius: 8px;
}

.featured-mini-name {
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #222;
}

.featured-mini-desc {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.featured-mini-contact-btn {
    display: inline-block;
    padding: 0.25rem 1.25rem;
    background: var(--primary);
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s;
    min-width: 100%;
    margin: 5px auto;
}

.featured-mini-contact-btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.featured-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--primary-blue, #0169b3);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.featured-view-all-link:hover {
    color: #004a80;
    border-bottom-color: currentColor;
}

.category-tab-btn--link {
    display: inline-block;
    position: relative;
    background: none;
    border: none;
    padding: 0.35rem 0.25rem;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.category-tab-btn--link:hover {
    color: var(--primary);
}

.category-tab.active .category-tab-btn--link,
.category-tab-btn--link.active {
    color: var(--primary);
}

.catalog-tab-page .category-tabs {
    margin-bottom: 0;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    z-index: 1;
}

.badge-new {
    background: var(--primary);
}

.badge-hot {
    background: #c0392b;
}

.featured-hero-card {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, #f5f9fc 0%, #e8f4fc 100%);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s;
}

.featured-hero-card:hover {
    box-shadow: 0 12px 32px rgba(1, 105, 179, 0.15);
    color: inherit;
}

.featured-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 1.25rem 1rem 0;
    text-align: center;
}

.featured-hero-label {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.featured-hero-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.featured-hero-tags {
    color: #555;
    text-align: left;
    display: inline-block;
}

.featured-hero-tags li {
    margin-bottom: 0.35rem;
}

.featured-hero-tags i {
    color: var(--primary);
    width: 1.1rem;
    margin-right: 0.25rem;
}

.featured-hero-img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin-top: auto;
}

@media (max-width: 991px) {
    .featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Category Cards (legacy) */
.category-card {
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid var(--primary-dark);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(1, 105, 179, 0.12);
}

.img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card .card-footer-custom {
    padding: 15px;
    background: var(--primary-light);
    text-align: center;
    border-top: 1px solid rgba(1, 105, 179, 0.12);
}

.category-card .card-footer-custom h6 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.category-card .card-footer-custom a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.category-card .card-footer-custom a:hover {
    color: var(--primary-dark);
}

.category-card .card-footer-custom .category-more {
    color: var(--primary);
    font-weight: 600;
}

.category-card:hover .category-more {
    color: var(--primary-dark);
}

/* Products */
.product-item {
    background: transparent;
    transition: 0.3s;
}

.product-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #f3f6f8;
    padding: 0.35rem;
}

.product-info {
    padding: 12px 5px;
    text-align: center;
}

.product-info .name {
    margin-bottom: 5px;
}

.product-info .price {
    font-weight: bold;
    margin-bottom: 8px;
}

.btn-quick-add {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 5px 0;
    border-radius: 15px;
    text-transform: uppercase;
    transition: background 0.2s;
}

.btn-quick-add:hover {
    background: var(--primary-dark);
    color: #fff;
}

a.product-item:hover .btn-quick-add {
    background: var(--primary-dark);
    color: #fff;
}

/* Story Section */
.story-text {
    color: #666;
    line-height: 1.8;
}

.partners-subtitle p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.partners-subtitle p:last-child {
    margin-bottom: 3rem;
}

/* Blog */
.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.blog-card .blog-card-desc {
    color: #333;
}

/* Footer */
.footer-custom {
    background: var(--primary-footer);
    padding: 60px 0 20px;
    color: rgba(255, 255, 255, 0.92);
}

.footer-custom a {
    color: inherit;
    text-decoration: none;
}

.footer-custom .text-secondary {
    color: rgba(255, 255, 255, 0.75) !important;
}

.footer-address-text {
    color: rgba(255, 255, 255, 0.75);
}

.footer-address-map {
    margin-top: 0.75rem;
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-address-map iframe {
    display: block;
    width: 100%;
    height: 160px;
    border: 0;
}

.footer-heading {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-custom a[href^="mailto:"]:hover,
.footer-custom a[href^="tel:"]:hover {
    color: #fff;
}

.footer-custom .copyright a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-custom .copyright a:hover {
    color: #fff;
}

.newsletter-box {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 5px;
}

.newsletter-box input {
    background: transparent;
    border: none;
    width: 100%;
    outline: none;
    color: #fff;
}

.btn-newsletter {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
}

.btn-newsletter:hover {
    background: #0a7ec9;
    color: #fff;
}

.social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.social-icons a:hover {
    opacity: 1;
    color: #b3daf5;
}

.copyright {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.65);
}

.footer-custom .copyright.border-top {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-custom .text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Product detail page */
.page-detail {
    padding-top: 88px;
}

.product-detail-page {
    padding: 2rem 0 3rem;
    background: #fff;
}

.detail-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.detail-breadcrumb a:hover {
    text-decoration: underline;
}

.detail-category-title {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.detail-divider {
    border: none;
    border-top: 2px dotted #b8c5d0;
    margin: 1.25rem 0;
    opacity: 1;
}

.detail-thumb {
    max-height: 220px;
    object-fit: contain;
    background: #f3f6f8;
    border-radius: 8px;
    padding: 0.5rem;
}

.detail-product-name {
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.detail-price-contact {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 0.25rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.detail-price-contact:hover {
    background: var(--primary-dark);
    color: #fff;
}

.detail-price-promo {
    color: #e31937;
    font-weight: 800;
    font-size: 1.05rem;
}

.detail-rich-content img {
    max-width: 100%;
    height: auto;
}

.detail-gallery-img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background: #f3f6f8;
}

.badge-km {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    background: #e31937;
    color: #fff;
    font-weight: 800;
    transform: rotate(-8deg);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.badge-km-sm {
    min-width: 30px;
    height: 30px;
}

.detail-specs li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.35rem;
    color: #444;
    line-height: 1.5;
}

.detail-specs li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #666;
}

.detail-cta {
    color: var(--primary);
    font-weight: 600;
}

.detail-cta-phone {
    color: #e31937;
    font-weight: 800;
    text-decoration: none;
    margin-left: 0.25rem;
    cursor: pointer;
}

.detail-cta-phone:hover {
    color: #c41230;
    text-decoration: underline;
}

.detail-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.detail-share-label {
    color: var(--primary);
    font-weight: 600;
}

.detail-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.detail-share-fb {
    background: #1877f2;
    color: #fff;
}

.detail-share-fb:hover {
    color: #fff;
}

.detail-share-zalo {
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.detail-share-zalo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-tabs-wrap {
    margin-top: 0.5rem;
}

.detail-tabs {
    border-bottom: 1px solid #d5dde3;
    background: #f0f3f6;
    gap: 0;
}

.detail-tab-btn {
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    margin-bottom: -1px;
}

.detail-tab-btn:hover {
    color: var(--primary);
}

.detail-tab-btn.active {
    background: #fff;
    color: var(--primary);
    border-color: #d5dde3;
    border-top: 3px solid var(--primary);
}

.detail-tab-panels {
    border: 1px solid #d5dde3;
    border-top: none;
    background: #fff;
    padding: 1.5rem;
    min-height: 200px;
}

.detail-intro {
    color: #333;
    margin-bottom: 0;
}

.detail-brand-logo {
    max-width: 200px;
    height: auto;
}

.detail-main-image {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.detail-tab-panel ul {
    padding-left: 1.2rem;
    color: #444;
}

.related-products-section {
    margin-top: 2rem;
}

.related-products-title {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.related-product-card {
    border: 1px solid #d8dee4;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.2s;
}

.related-product-card:hover {
    box-shadow: 0 6px 18px rgba(1, 105, 179, 0.1);
}

.related-product-image-wrap {
    display: block;
    padding: 1rem 1rem 0.5rem;
    background: #fafbfc;
}

.related-product-image-wrap img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.related-product-body {
    padding: 0.75rem 0.85rem 1rem;
}

.related-product-name {
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.related-product-name a {
    color: var(--primary);
    text-decoration: none;
}

.related-product-name a:hover {
    text-decoration: underline;
}

.related-product-model {
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.related-product-old-price {
    color: #333;
    margin-bottom: 0.65rem;
}

.related-product-old-price span {
    text-decoration: line-through;
}

.related-product-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-related-contact {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    font-weight: 700;
    padding: 0.35rem 1.1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-related-contact:hover {
    background: var(--primary-dark);
    color: #fff;
}

@media (max-width: 767px) {
    .page-detail {
        padding-top: 72px;
    }

    section#danh-muc-noi-bat, section.section-padding.catalog-tab-page, section.section-padding.post-list-page {
        margin-top: 115px !important;
    }

    .detail-category-title {
        font-size: 1.1rem;
    }

    .detail-tab-btn {
        padding: 0.5rem 0.75rem;
    }

    .section-padding {
        padding: 20px 0;
    }

    .section-title {
        margin-bottom: 10px !important;
    }

    .hero-banner__img {
        max-height: 42vh;
    }
}

/* Floating Zalo (Tawk.to widget góc phải — Zalo đặt cao hơn tránh chồng) */
.site-contact-fabs {
    position: fixed;
    right: 16px;
    bottom: 100px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.site-contact-fab {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: #0068ff;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-contact-fab:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 104, 255, 0.55);
}

.site-contact-fab img {
    display: block;
    flex-shrink: 0;
}

.site-contact-fab-label {
    font-weight: 600;
    letter-spacing: 0.02em;
}

section#danh-muc-noi-bat, section.section-padding.catalog-tab-page, section.section-padding.post-list-page, section.section-padding.about-page {
    margin-top: 80px;
}

.navbar-expand-lg .navbar-nav {
    font-size: 18px;
    gap: 40px;
    text-align: center;
}

@media (max-width: 767px) {
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .navbar-expand-lg .navbar-nav {
        gap: 0;
    }

    .product-detail-page {
        margin-top: 10px;
    }

    .custom-navbar {
        padding: 10px 0;
    }

    .custom-navbar .container {
        position: relative;
        justify-content: center;
    }

    .navbar-brand-block {
        align-items: center;
        width: 100%;
        padding: 0 2.75rem;
    }

    .navbar-brand-block .navbar-brand {
        margin: 0 auto;
    }

    .custom-navbar .navbar-toggler {
        position: absolute;
        right: 0;
        top: 0.65rem;
    }

    .header-mobile-hotline {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-top: 0.2rem;
        color: var(--primary);
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

    .header-mobile-hotline:hover,
    .header-mobile-hotline:focus {
        color: var(--primary-dark);
    }

    .header-mobile-hotline i {
        margin: 0;
    }

    .featured-mini-card {
        padding: 0.65rem 0.5rem 0.6rem;
    }

    .featured-mini-card img {
        height: 110px;
        margin-bottom: 0.5rem;
    }

    .site-contact-fabs {
        right: 12px;
        bottom: 88px;
    }

    .site-contact-fab {
        padding: 6px 12px 6px 8px;
    }
}
