/* ============================================================
   Đá Huy Tiệp - Main Stylesheet
   ============================================================ */

:root {
    --primary: #4285f4;
    --primary-dark: #1a56c4;
    --primary-light: #6ba3f7;
    --gold: #fbbf24;
    --gold-light: #fde68a;
    --dark: #1a1a1a;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --bg-light: #f5f7fa;
    --bg-warm: #eef2ff;
    --white: #fff;
    --shadow: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 28px rgba(0,0,0,0.14);
    --radius: 6px;
    --transition: all 0.25s ease;
}

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

html {
    overflow-x: clip;
    max-width: 100%;
}

body {
    font-family: 'Saira', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    overflow-x: clip;
    max-width: 100%;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* ========== TOPBAR ========== */
.topbar {
    background: #1a1a1a;
    color: rgba(255,255,255,0.75);
    font-size: 0.81rem;
    padding: 7px 0;
    border-bottom: 1px solid #2a2a2a;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.topbar i { color: var(--gold); font-size: 0.8rem; }
.topbar a { color: rgba(255,255,255,0.75); transition: var(--transition); }
.topbar a:hover { color: var(--gold); }
.topbar-nav { display: flex; align-items: center; gap: 0; }
.topbar-nav a { color: rgba(255,255,255,0.7); text-decoration: none; padding: 2px 12px; font-size: 0.81rem; transition: var(--transition); border-right: 1px solid rgba(255,255,255,0.15); }
.topbar-nav a:last-child { border-right: none; }
.topbar-nav a:hover, .topbar-nav a.tb-active { color: var(--gold); }
.topbar-sep { color: rgba(255,255,255,0.2); padding: 0 8px; }
.topbar-phone { color: var(--gold) !important; font-weight: 700; letter-spacing: 0.3px; font-size: 0.87rem; }

/* ========== HEADER ========== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.site-header .navbar { padding: 8px 0; }

.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 42px; height: 42px;
    background: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1.3rem;
}
.logo-name {
    display: block;
    font-family: 'Saira', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.logo-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.93rem;
    color: var(--dark) !important;
    padding: 6px 14px !important;
    position: relative;
    transition: var(--transition);
}
.navbar-nav .nav-link:hover { color: var(--primary) !important; }
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}
.navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -2px; left: 14px; right: 14px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 220px;
}
.dropdown-item {
    font-size: 0.9rem;
    padding: 8px 20px;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--bg-light); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
    display: flex; align-items: center; gap: 6px;
    color: #e53935 !important;
    font-weight: 700;
    font-size: 0.97rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border: 1.5px solid rgba(229,57,53,0.25);
    padding: 6px 14px;
    border-radius: 6px;
    transition: var(--transition);
}
.header-phone:hover { background: rgba(229,57,53,0.06); border-color: #e53935; }
.header-phone i { font-size: 0.85rem; }
.btn-phone {
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 5px;
}
.btn-quote {
    background: var(--primary);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-quote:hover { background: var(--primary-dark); color: var(--white) !important; }

/* ========== HERO SLIDER ========== */
.hero-slider { position: relative; }
.hero-swiper { height: 500px; }
.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hero-slider .swiper-pagination-bullet { background: rgba(255,255,255,0.6); width: 10px; height: 10px; }
.hero-slider .swiper-pagination-bullet-active { background: #fff; }

/* ========== STATS BAR ========== */
.stats-bar {
    background: var(--primary);
    padding: 0;
}
.stat-item {
    text-align: center;
    padding: 28px 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.col-6:last-child .stat-item, .col-md-3:last-child .stat-item { border-right: none; }
.stat-item-text { text-align: left; }
.stat-number {
    font-family: 'Saira', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    display: block;
}
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.82rem; margin-top: 3px; display: block; }
.stat-icon { font-size: 1.5rem; color: var(--gold); flex-shrink: 0; }

/* ========== SECTION STYLES ========== */
section { padding: 70px 0; }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-badge::before,
.section-badge::after {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold));
    vertical-align: middle;
}
.section-badge::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}
.section-title {
    font-family: 'Saira', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    padding-bottom: 18px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 52px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(200,150,44,0.3) 70%, transparent 100%);
}
.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.section-desc { color: var(--text-light); max-width: 600px; font-size: 1rem; margin-top: 10px; }

/* ========== PRODUCT CARD ========== */
.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.09);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}
.product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    transform: translateY(-4px);
    border-color: #ddd;
}
.product-card-img {
    position: relative;
    overflow: hidden;
    height: 210px;
    background: var(--bg-warm);
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-category {
    font-size: 0.72rem;
    color: #f59e0b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}
.product-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 7px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.95rem * 1.45 * 2);
}
.product-name:hover { color: var(--primary); }
.product-material {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 8px;
    display: flex; align-items: center; gap: 4px;
}
.product-material .bi-gem { color: var(--primary); }
.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 12px;
}
.product-price span { color: var(--text-light); font-size: 0.78rem; font-weight: 400; }
.btn-detail {
    display: block;
    text-align: center;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 9px;
    border-radius: 6px;
    border: none;
    transition: background 0.2s ease;
    margin-top: auto;
}
.btn-detail:hover { background: #1a56db; color: #fff; }

/* ========== PROJECT CARD ========== */
.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 280px;
    background: var(--bg-warm);
    box-shadow: var(--shadow);
    cursor: pointer;
}
.project-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}
.project-card:hover img { filter: brightness(1.08); }
.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,4,4,0.82) 38%, rgba(0,0,0,0.15) 70%, transparent);
    opacity: 1;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
/* Shine sweep on hover */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255,255,255,0.18) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0s;
    pointer-events: none;
}
.project-card:hover::after {
    transform: translateX(120%);
    transition: transform 0.55s ease;
}
.project-card-info { color: var(--white); }
.project-card-name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.project-card-meta { font-size: 0.82rem; opacity: 0.85; }

/* ========== POST CARD ========== */
.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.post-card:hover { box-shadow: var(--shadow-hover); }
.post-card-img {
    position: relative;
    height: 200px;
    background: var(--bg-warm);
    overflow: hidden;
}
.post-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: filter 0.4s ease;
}
.post-card:hover .post-card-img img { filter: brightness(1.08); }
/* Shine sweep */
.post-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255,255,255,0.18) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0s;
    pointer-events: none;
}
.post-card:hover .post-card-img::after {
    transform: translateX(120%);
    transition: transform 0.55s ease;
}
.post-card-body { padding: 20px; }
.post-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.post-cat {
    background: var(--bg-warm);
    color: var(--gold);
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 600;
}
.post-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}
.post-excerpt { font-size: 0.88rem; color: var(--text-light); margin-bottom: 14px; }
.btn-read-more {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.88rem;
    display: flex; align-items: center; gap: 5px;
    transition: var(--transition);
}
.btn-read-more:hover { color: var(--primary); }

/* ========== ABOUT SECTION ========== */
.about-section { background: var(--bg-light); }
.about-features { margin-top: 24px; }
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.about-feature-icon {
    width: 44px; height: 44px;
    background: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.about-feature-text h6 { font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.about-feature-text p { font-size: 0.88rem; color: var(--text-light); margin: 0; }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 12px; width: 100%; height: 450px; object-fit: cover; }
.about-badge-overlay {
    position: absolute;
    bottom: 24px; left: -20px;
    background: var(--primary);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}
.about-badge-overlay .big-num {
    font-family: 'Saira', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}
.about-badge-overlay p { font-size: 0.82rem; margin: 0; color: rgba(255,255,255,0.85); }

/* ========== TESTIMONIALS ========== */
.testimonials-section { background: var(--primary); }
.testimonials-section .section-title { color: var(--white); }
.testimonials-section .section-badge { color: var(--gold-light); }
.testimonial-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
}
.testimonial-stars { color: var(--gold-light); font-size: 0.9rem; margin-bottom: 14px; }
.testimonial-text { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}
.testimonial-name { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.testimonial-loc { font-size: 0.8rem; color: rgba(255,255,255,0.65); }

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px 0;
}
.cta-section h2 {
    font-family: 'Saira', sans-serif;
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}
.cta-section p { color: rgba(255,255,255,0.8); margin-bottom: 0; }
.btn-gold {
    background: var(--gold);
    color: var(--white);
    padding: 13px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--gold);
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-outline-white {
    border: 2px solid rgba(255,255,255,0.6);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-white:hover { border-color: var(--white); color: var(--white); }

/* Brand CTA buttons */
.btn-primary-cta {
    background: var(--primary);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
}
.btn-primary-cta:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-outline-brand {
    background: transparent;
    color: var(--primary);
    padding: 13px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
}
.btn-outline-brand:hover { background: var(--primary); color: var(--white); }
.btn-white-solid {
    background: var(--white);
    color: var(--primary);
    padding: 13px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--white);
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-white-solid:hover { background: transparent; color: var(--white); }

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 50px 0 40px;
    color: var(--white);
}
.page-header h1 {
    font-family: 'Saira', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 8px;
}
.breadcrumb { margin: 0; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.breadcrumb-item.active { color: var(--gold-light); }
.breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ========== PRODUCT DETAIL ========== */
.product-detail-section { padding: 40px 0 48px; }
.related-products-section { padding: 28px 0 48px; }
/* Main product swiper */
.product-main-swiper {
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    background: var(--bg-warm);
}
.product-slide-inner {
    position: relative;
    height: 400px;
    cursor: zoom-in;
}
.product-slide-inner img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}
.product-slide-inner:hover img { filter: brightness(0.92); }
.gallery-zoom-hint {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(0,0,0,0.52);
    color: #fff;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.78rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.product-slide-inner:hover .gallery-zoom-hint { opacity: 1; }

/* Thumbs row */
.product-thumbs-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}
.product-thumbs-swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.product-thumb-slide {
    width: 80px !important;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.product-thumb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb-slide:hover { border-color: rgba(196,160,76,0.5); }
.product-thumb-slide.swiper-slide-thumb-active { border-color: var(--gold); }

/* Thumb nav buttons */
.product-thumb-btn {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    padding: 0;
}
.product-thumb-btn:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.product-thumb-btn.swiper-button-disabled { opacity: 0.3; cursor: default; }

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    cursor: default;
}
.lightbox-close {
    position: fixed;
    top: 20px; right: 24px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
    line-height: 1;
    background: none; border: none;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.product-info-title {
    font-family: 'Saira', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.product-info-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53935;
    margin-bottom: 20px;
}
.product-info-price small { font-size: 0.8rem; color: var(--text-light); font-weight: 400; }
.product-specs { background: var(--bg-light); border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.product-spec { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.product-spec:last-child { border-bottom: none; }
.spec-label { font-weight: 600; min-width: 120px; color: var(--text-light); font-size: 0.9rem; }
.spec-value { color: var(--text); font-size: 0.9rem; }
/* ======================================================================
   FIX: Hiển thị bullet/số trong phần mô tả sản phẩm (frontend)
   Dán đoạn này vào CUỐI file CSS chính (vd: assets/css/style.css)
   ====================================================================== */

.product-detail-desc ul,
.product-detail-desc ol {
    padding-left: 1.6em;
    margin: 0 0 1em;
    list-style-position: outside;
}

.product-detail-desc ul {
    list-style: disc;       /* dấu chấm tròn đặc */
}

.product-detail-desc ol {
    list-style: decimal;    /* 1. 2. 3. */
}

.product-detail-desc li {
    margin-bottom: .35em;
    line-height: 1.7;
    display: list-item;     /* phòng khi reset CSS đặt display:block */
}

/* Tiêu đề bên trong mô tả */
.product-detail-desc h2 { font-size: 1.5rem; font-weight: 700; margin: 1em 0 .5em; }
.product-detail-desc h3 { font-size: 1.25rem; font-weight: 700; margin: 1em 0 .5em; }
.product-detail-desc h4 { font-size: 1.1rem;  font-weight: 700; margin: 1em 0 .5em; }

/* Đoạn văn */
.product-detail-desc p { margin: 0 0 .8em; }

/* Ảnh trong mô tả: căn đẹp, không bị tràn */
.product-detail-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 12px 0;
}

/* Product description images: full content width on mobile only. */
.product-detail-desc .product-desc-zoomable { cursor: zoom-in; }
.product-detail-desc .product-desc-zoomable:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
@media (max-width: 767px) {
    .product-detail-desc img {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        float: none !important;
        box-sizing: border-box;
        margin: 12px 0 !important;
    }
    .product-detail-desc .product-desc-image-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        box-sizing: border-box;
    }
}

/* Scoped viewer overrides; does not change other pages' lightboxes. */
.product-image-viewer { overflow: hidden; cursor: default; }
.product-image-viewer .lightbox-stage {
    position: absolute;
    inset: 60px 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.product-image-viewer .lightbox-img {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 96%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center;
    cursor: zoom-in;
    -webkit-user-drag: none;
}
.product-image-viewer .is-zoomed .lightbox-img { cursor: grab; }
.product-image-viewer .is-zoomed:active .lightbox-img { cursor: grabbing; }
.product-image-viewer .lightbox-close,
.product-image-viewer .lightbox-nav { z-index: 2; }
.product-image-viewer .lightbox-close {
    top: max(10px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
}
.product-image-viewer .lightbox-nav { width: 44px; height: 44px; font-size: 1.2rem; }
.product-image-viewer .lightbox-nav[hidden] { display: none !important; }
.product-image-viewer .lightbox-tools {
    position: absolute;
    bottom: calc(44px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.product-image-viewer .lightbox-tools button {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    touch-action: manipulation;
}
.product-image-viewer .lightbox-tools button:disabled { opacity: .4; cursor: default; }
.product-image-viewer button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.product-image-viewer .lightbox-help {
    position: absolute;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: .75rem;
    line-height: 1.4;
    pointer-events: none;
}
@media (max-width: 767px) {
    .product-image-viewer .lightbox-prev { left: 6px; }
    .product-image-viewer .lightbox-next { right: 6px; }
    .product-image-viewer .lightbox-stage {
        bottom: calc(112px + env(safe-area-inset-bottom));
    }
}

/* Link trong mô tả */
.product-detail-desc a {
    color: #0d6efd;
    text-decoration: underline;
}

/* ========== PRICE TABLE ========== */
.price-table { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.price-table table { margin: 0; }
.price-table thead { background: var(--primary); }
.price-table thead th { color: var(--white); font-weight: 600; padding: 14px 16px; font-size: 0.9rem; }
.price-table tbody tr:hover { background: var(--bg-light); }
.price-table td { padding: 13px 16px; font-size: 0.9rem; vertical-align: middle; }
.price-note {
    background: var(--bg-warm);
    border-left: 4px solid var(--gold);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========== CONTACT ========== */
.contact-info-card {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 30px;
    height: 100%;
}
.contact-info-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-icon {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-light);
    flex-shrink: 0;
}
.contact-info-text strong { display: block; font-size: 0.82rem; opacity: 0.75; margin-bottom: 2px; }
.contact-info-text a, .contact-info-text span { color: var(--white); font-size: 0.95rem; }
.contact-form-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}
.form-label { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,150,44,0.15);
}
.btn-submit {
    background: var(--primary);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}
.btn-submit:hover { background: var(--gold); }

/* ========== FLOATING BUTTONS ========== */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    align-items: flex-end;
}
.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    padding: 0 14px 0 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--white) !important;
    white-space: nowrap;
    transition: width 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.float-btn:hover { width: 162px; transform: none; }
.fb-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    opacity: 0;
    flex: 1;
    padding-left: 14px;
    transition: opacity 0.15s 0.1s;
}
.float-btn:hover .fb-label { opacity: 1; }
.fb-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
/* Zalo */
.zalo-btn {
    background: #0068ff;
    box-shadow: 0 4px 14px rgba(0,104,255,0.45);
}

/* THANH STICKY MOBILE */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    height: 64px;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(20,20,28,0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.mobile-sticky-call,
.mobile-sticky-zalo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff !important;
    letter-spacing: 0.2px;
    border-radius: 10px;
}
.mobile-sticky-call { background: #e53935; }
.mobile-sticky-zalo { background: #0068ff; }
@keyframes pulse-zalo {
    0%   { box-shadow: 0 4px 14px rgba(0,104,255,0.45), 0 0 0 0   rgba(0,104,255,0.4); }
    70%  { box-shadow: 0 4px 14px rgba(0,104,255,0.45), 0 0 0 14px rgba(0,104,255,0);  }
    100% { box-shadow: 0 4px 14px rgba(0,104,255,0.45), 0 0 0 0   rgba(0,104,255,0);  }
}
.zalo-btn { animation: pulse-zalo 2.4s 0.6s infinite; }
/* Phone */
.phone-btn {
    background: #e53935;
    box-shadow: 0 4px 14px rgba(229,57,53,0.45);
}
@keyframes pulse-phone {
    0%   { box-shadow: 0 4px 14px rgba(229,57,53,0.45), 0 0 0 0   rgba(229,57,53,0.4); }
    70%  { box-shadow: 0 4px 14px rgba(229,57,53,0.45), 0 0 0 14px rgba(229,57,53,0);  }
    100% { box-shadow: 0 4px 14px rgba(229,57,53,0.45), 0 0 0 0   rgba(229,57,53,0);  }
}
.phone-btn { animation: pulse-phone 2.4s 1.8s infinite; }

/* ========== FOOTER ========== */
.site-footer { background: #0d2a6e; color: rgba(255,255,255,0.8); }
.footer-top { padding: 55px 0 35px; }
.footer-bottom {
    background: rgba(0,0,0,0.35);
    padding: 16px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }
.footer-title {
    font-weight: 700;
    color: var(--white);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 14px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
}
.footer-contact i { color: var(--gold); font-size: 0.9rem; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: var(--gold); }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.7; }
.social-links { display: flex; gap: 10px; }
.social-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    transition: var(--transition);
    display: flex; align-items: center; gap: 5px;
}
.social-links a:hover { color: var(--gold); }

/* ========== PAGINATION ========== */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--border);
    padding: 9px 15px;
}
.pagination .page-link:hover { background: var(--bg-light); }
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ========== ALERTS ========== */
.alert { border-radius: 8px; border: none; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }

/* ========== FILTER BAR ========== */
.filter-bar {
    background: var(--bg-light);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-bar label { font-weight: 600; font-size: 0.88rem; white-space: nowrap; }

/* ========== PRODUCTS LISTING PAGE ========== */
.products-listing-section { background: var(--bg-light); padding: 24px 0 48px; }

/* ========== HOMEPAGE CATEGORY SECTIONS ========== */
/* ========== HOME CATEGORY SECTIONS ========== */
.home-cat-section {
    padding: 28px 0 36px;
    background: #fff;
}
.home-cat-section:nth-of-type(even) {
    background: #fff;
}

/* Tiêu đề section — khung mỹ nghệ */
.hcs-head {
    text-align: center;
    margin-bottom: 28px;
}
.hcs-frame {
    position: relative;
    display: inline-block;
    background: var(--primary);
    border: 1.5px solid rgba(251,191,36,0.55);
    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,0.08),
        0 4px 18px rgba(66,133,244,0.25);
    padding: 12px 52px;
}
.hcs-corner {
    position: absolute;
    font-size: 10px;
    color: var(--gold);
    line-height: 1;
    background: var(--primary);
    padding: 0 2px;
}
.hcs-tl { top: -7px;  left: -5px; }
.hcs-tr { top: -7px;  right: -5px; }
.hcs-bl { bottom: -7px; left: -5px; }
.hcs-br { bottom: -7px; right: -5px; }
.hcs-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}
/* Nút Xem tất cả — dưới lưới sản phẩm */
.hcs-foot {
    text-align: center;
    margin-top: 22px;
}
.hcs-viewall-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 28px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
}
.hcs-viewall-btn:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

/* Card sản phẩm — ảnh trước, thông tin gọn */
.hcs-card {
    display: block;
    background: #fff;
    color: inherit;
    text-decoration: none;
    border: 1px solid #d8d8d8;
    border-bottom: 3px solid var(--primary);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s ease, border-bottom-color 0.2s ease;
}
.hcs-card:hover {
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-bottom-color: var(--gold);
}
/* Shine chỉ trên ảnh khi hover */
.hcs-img::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.28) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-18deg);
    pointer-events: none;
    z-index: 2;
    transition: none;
}
.hcs-card:hover .hcs-img::before {
    animation: hcs-shine 0.7s ease-in-out forwards;
}
@keyframes hcs-shine {
    0%   { left: -75%; }
    100% { left: 125%; }
}
.hcs-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f0f0f0;
}
.hcs-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
    display: block;
}
.hcs-card:hover .hcs-img img { transform: none; }
.hcs-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #bbb; font-size: 2.5rem;
}
.hcs-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #fff;
}
.hcs-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.95rem * 1.45 * 2);
}
.hcs-card:hover .hcs-name { color: var(--primary); }
.hcs-price {
    font-size: 1.13rem;
    font-weight: 700;
    color: #e53935;
}
.hcs-buy {
    display: block;
    margin-top: 4px;
    background: var(--primary);
    color: #fff !important;
    text-align: center;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s ease;
}
.hcs-buy:hover { background: var(--primary-dark); }

/* Giữ các class cũ cho san-pham.php / san-pham-chi-tiet.php */
.product-card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.product-card-link:hover { color: inherit; }
.product-price-short {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 10px 0 8px;
    padding: 7px 10px;
    background: #fff5f5;
    border-left: 3px solid #e53935;
    border-radius: 0 6px 6px 0;
}
.price-from-label { font-size: 0.72rem; font-weight: 600; color: #c0392b; text-transform: uppercase; flex-shrink: 0; }
.price-from-num { font-size: 1.35rem; font-weight: 800; color: #e53935; line-height: 1; }
.price-contact { font-size: 0.88rem; font-weight: 600; color: #e53935; display: flex; align-items: center; gap: 5px; }
.product-link-detail {
    display: block; text-align: center;
    background: var(--primary); color: #fff;
    font-weight: 600; font-size: 0.82rem; padding: 9px;
    border-radius: 6px; margin-top: auto; transition: background 0.2s ease;
}
.product-link-detail:hover { background: #1a56db; color: #fff; text-decoration: none; }
.btn-cat-viewall {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--border); border-radius: 30px; padding: 10px 28px;
    color: var(--text); font-size: 0.9rem; font-weight: 500;
    transition: var(--transition); background: var(--white);
}
.btn-cat-viewall:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ========== WHY CHOOSE US ========== */
.why-choose-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.why-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.why-icon {
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    color: var(--gold);
    font-size: 1.4rem;
}
.why-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.why-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ========== PROJECTS SECTION ========== */
.home-projects-section {
    padding: 60px 0;
    background: var(--white);
}

/* ========== PROCESS SECTION ========== */
.process-section {
    padding: 60px 0;
    background: var(--bg-light);
}
.process-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}
.process-num {
    width: 50px; height: 50px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.process-step h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.process-step p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ========== RESPONSIVE ========== */
/* ========== PRODUCT SIDEBAR ========== */
.sidebar-box {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    overflow: hidden;
}
.sidebar-search {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 10px;
}
.sidebar-search-input {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.sidebar-search-input:focus { border-color: var(--gold); }
.sidebar-search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.sidebar-search-btn:hover { background: var(--gold); }
.sidebar-title {
    background: var(--primary);
    color: #fff;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
}
.sidebar-cats { padding: 8px 0; }
.sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.91rem;
    transition: background 0.18s, color 0.18s;
    border-left: 3px solid transparent;
}
.sidebar-cat-link i { font-size: 0.72rem; opacity: 0.4; transition: opacity 0.18s, color 0.18s; }
.sidebar-cat-link:hover {
    background: var(--bg-warm);
    color: var(--primary);
    border-left-color: var(--gold);
}
.sidebar-cat-link:hover i { opacity: 1; color: var(--gold); }
.sidebar-cat-link.active {
    background: var(--bg-warm);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--gold);
}
.sidebar-cat-link.active i { opacity: 1; color: var(--gold); }
.sidebar-contact {
    background: var(--primary);
    border-radius: 12px;
    padding: 28px 20px 22px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(90,20,20,.18);
}
.sidebar-contact-icon {
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}
.sidebar-contact-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
}
.sidebar-contact-sub {
    font-size: 0.82rem;
    opacity: 0.8;
    margin-bottom: 18px;
    line-height: 1.5;
}
.sidebar-contact-phone {
    display: block;
    background: var(--gold);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 11px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.sidebar-contact-phone:hover { background: var(--gold-light); color: var(--dark); }

@media (max-width: 991px) {
    .hero-swiper { height: 380px; }
    .about-badge-overlay { left: 0; }

    /* ── Mobile nav: hide desktop collapse ── */
    .navbar-collapse { display: none !important; }
}
@media (max-width: 767px) {
    section { padding: 50px 0; }
    .page-header { padding: 20px 0; }
    .hero-swiper { height: 280px; }
    .topbar-left { display: none; }
    .topbar-sep { display: none; }
    .topbar-right { width: 100%; justify-content: space-between; }
    .topbar-nav a { padding: 2px 7px; font-size: 0.78rem; }

    /* Stats bar nhỏ lại trên mobile */
    .stat-item { padding: 14px 10px; gap: 8px; }
    .stat-number { font-size: 1.35rem; }
    .stat-label { font-size: 0.74rem; }
    .stat-icon { font-size: 1.1rem; }

    /* Why-choose + Process: thu nhỏ khoảng cách grid trên mobile */
    .why-choose-section { padding: 36px 0; }
    .why-choose-section .row,
    .process-section .row { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
    .why-card { padding: 14px 10px; }
    .why-icon { width: 44px; height: 44px; font-size: 1rem; margin-bottom: 10px; }
    .why-card h5 { font-size: 0.85rem; margin-bottom: 6px; }
    .why-card p { font-size: 0.8rem; line-height: 1.5; }
    .process-step { padding: 14px 10px; }
    .process-num { width: 36px; height: 36px; font-size: 0.85rem; margin-bottom: 8px; }
    .process-step h5 { font-size: 0.85rem; margin-bottom: 4px; }
    .process-step p { font-size: 0.8rem; }

    /* Giảm khoảng cách giữa các card sản phẩm */
    .home-cat-section .row,
    .products-listing-section .row,
    .related-products-section .row { --bs-gutter-x: 0.5rem; --bs-gutter-y: 0.5rem; }
    .product-gallery-main { height: 280px; }

    /* Ẩn float buttons, hiện thanh sticky */
    .floating-buttons { display: none; }
    .mobile-sticky-bar { display: flex; }

    /* Thêm padding bottom để nội dung không bị che */
    body { padding-bottom: 64px; }

    /* Chặn tràn ngang — badge overlay về trong viewport */
    .about-badge-overlay { left: 0; }
    .about-section, .why-choose-section, .process-section,
    .home-cat-section, .products-listing-section, .posts-section,
    .footer, .hero-section { overflow: hidden; }
}

/* ========== MOBILE SIDEBAR DRAWER ========== */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1050;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
#sidebarDrawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 88vw;
    height: 100dvh;
    background: var(--white);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -6px 0 32px rgba(0,0,0,0.18);
    overflow: hidden;
}
body.sidebar-open #sidebarOverlay { display: block; }
body.sidebar-open #sidebarDrawer  { right: 0; }
body.sidebar-open { overflow: hidden; }

/* Sidebar head */
.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: var(--primary);
    flex-shrink: 0;
}
.sidebar-head .logo-name { color: var(--white); font-size: 1.05rem; }
.sidebar-head .logo-sub  { color: rgba(255,255,255,0.65); font-size: 0.68rem; }
.sidebar-head .logo-icon { background: rgba(255,255,255,0.15); }
.sidebar-head .logo-icon i { color: var(--gold-light); }
.sidebar-close {
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.sidebar-close:hover { background: rgba(255,255,255,0.25); }

/* Sidebar body */
.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccdcff transparent;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu > li {
    border-bottom: 1px solid #f4ede6;
    position: relative;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    line-height: 1.3;
}
.sidebar-link i { font-size: 1rem; color: var(--primary); flex-shrink: 0; width: 18px; text-align: center; }
.sidebar-link:hover,
.sidebar-link.active { background: var(--bg-light); color: var(--primary); }
.sidebar-link.active { border-left: 3px solid var(--primary); padding-left: 17px; }

/* Submenu link row */
.sidebar-link-row {
    display: flex;
    align-items: stretch;
}
.sidebar-link-row .sidebar-link {
    flex: 1;
    min-width: 0;
}
.submenu-toggle {
    flex-shrink: 0;
    width: 46px;
    border: none;
    border-left: 1px solid #e8f0ff;
    background: transparent;
    color: #aaa;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}
.submenu-toggle:hover { color: var(--primary); background: #f0f5ff; }

/* Sidebar submenu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.has-submenu.open .sidebar-submenu { max-height: 500px; }
.sidebar-submenu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px 11px 24px;
    color: #555;
    font-size: 0.88rem;
    text-decoration: none;
    border-bottom: 1px solid #d4e4ff;
    transition: color 0.15s, background 0.15s;
}
.sidebar-submenu li:last-child a { border-bottom: none; }
.sidebar-submenu li a:hover { color: var(--primary); background: #eef4ff; }
.sidebar-cat-icon { color: var(--gold); font-size: 0.75rem; flex-shrink: 0; }
.sidebar-cat-arrow { margin-left: auto; color: #bbb; font-size: 0.72rem; flex-shrink: 0; transition: transform 0.15s; }
.sidebar-submenu li a:hover .sidebar-cat-arrow { color: var(--primary); transform: translateX(3px); }

/* Sidebar footer */
.sidebar-foot {
    padding: 14px 16px;
    border-top: 2px solid #e8f0ff;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.sidebar-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar-phone:hover { background: var(--primary); color: var(--white); }
.sidebar-baogia {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.sidebar-baogia:hover { background: var(--primary-dark, #1a56c4); }

/* Only show sidebar on mobile; hide on desktop */
@media (min-width: 992px) {
    #sidebarDrawer,
    #sidebarOverlay { display: none !important; }
}



