/* Homepage layout — hero CTA, mobile chips, merged trust, contact FAB */
.hero-section { position: relative; }
.hero-cta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 1.1rem;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
    border-bottom: 1px solid rgba(0, 90, 156, 0.08);
}
.hero-cta-tagline {
    width: 100%;
    text-align: center;
    font-size: 0.92rem;
    color: #444;
    margin: 0 0 0.25rem;
}
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.hero-cta-btn--primary {
    background: #0068ff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
}
.hero-cta-btn--secondary {
    background: #005a9c;
    color: #fff;
}
.hero-cta-btn--outline {
    background: #fff;
    color: #005a9c;
    border: 2px solid #005a9c;
}
.hero-cta-btn:hover { transform: translateY(-1px); }

.mobile-category-chips {
    display: none;
    padding: 0.75rem 0;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.mobile-category-chips__scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-category-chips__scroll::-webkit-scrollbar { display: none; }
.mobile-category-chip {
    flex: 0 0 auto;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #e8f4fc;
    color: #005a9c;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.home-intro-lead {
    text-align: center;
    padding: 0.5rem 1rem 0;
    font-size: 0.95rem;
    color: #333;
    margin: 0;
}

.home-trust-unified { padding: 2.5rem 0; background: #f8fafc; }
.home-trust-unified h2 { text-align: center; margin-bottom: 1.5rem; }
.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}
.home-trust-item {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 90, 156, 0.06);
}
.home-trust-item .trust-icon { font-size: 1.75rem; display: block; margin-bottom: 0.35rem; }
.home-trust-item h3 { font-size: 0.95rem; margin: 0 0 0.25rem; color: #005a9c; }
.home-trust-item p { font-size: 0.82rem; margin: 0; color: #555; line-height: 1.4; }

.b2b-solutions--compact .b2b-grid { grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
    .b2b-solutions--compact .b2b-grid { grid-template-columns: repeat(3, 1fr); }
}

.cart-zalo-btn {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #0068ff;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.cart-zalo-btn:hover { background: #0056d6; color: #fff; }

.contact-fab-wrap { position: relative; }
.contact-fab-menu {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    min-width: 160px;
}
.contact-fab-wrap.open .contact-fab-menu { display: flex; }
.contact-fab-menu a,
.contact-fab-menu button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #222;
    text-decoration: none;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.contact-fab-main {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #005a9c;
    color: #fff;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 90, 156, 0.35);
}

.floating-btn-column { display: none !important; }
.contact-fab-wrap.floating-contact {
    position: fixed;
    bottom: 88px;
    right: 18px;
    z-index: 999;
}

@media (max-width: 768px) {
    .mobile-category-chips { display: block; }
    .desktop-top-categories { display: none !important; }
    .promo-ticker-item:nth-child(n+4) { display: none; }
    .promo-ticker-track { animation-duration: 22s; }
}

@media (min-width: 769px) {
    .hero-cta-tagline { width: auto; margin: 0 0.5rem 0 0; flex: 1; text-align: left; }
    .hero-cta-bar { justify-content: flex-start; padding: 1rem 2rem; }
}

.intro-heading { font-size: clamp(1.25rem, 3vw, 1.75rem); color: #005a9c; margin-top: 0; }
.social-links--svg { flex-wrap: wrap; gap: 10px; }
.social-links--svg a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.social-links--svg a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #7ec8ff;
    transform: scale(1.08);
}
.social-links--svg .social-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}
.social-links--svg .map-link { color: #ff8a7a; }
.social-links--svg .map-link:hover { color: #ffb4a8; }

.home-buy-channels,
.featured-products,
.ai-quiz-section,
.desktop-top-categories,
.intro,
.home-trust-unified,
.order-guide,
.faq-section,
.b2b-solutions,
.blog-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

@media (prefers-reduced-motion: reduce) {
    .promo-ticker-track { animation: none; }
    .hero-cta-btn:hover { transform: none; }
}
