/* ============================================================
   MIHI – Client Layout CSS
   Brand: Teal #518581 · Gold #FFB23F · Purple logo #3D0070
   Font: Plus Jakarta Sans (body) · Raleway (headings/brand)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }

/* ---------- LOGO ICON (crop từ logo.jpg — chỉ lấy phần biểu tượng M) ---------- */
.logo-icon {
    width: 150px;
    height: 44px;
    flex-shrink: 0;
    background-image: url('/images/logo.png');
    background-repeat: no-repeat;
    background-size: 130px auto;
}
.logo-icon-sm {
    width: 150px;
    height: 36px;
    flex-shrink: 0;
    background-image: url('/images/logo.png');
    background-repeat: no-repeat;
    background-size: 108px auto;
}

/* ---------- LOGO BRAND TEXT ---------- */
.logo-brand-name {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.14em;
    color: #3D0070;
    line-height: 1;
    text-transform: uppercase;
}
.logo-brand-sub {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 9px;
    letter-spacing: 0.32em;
    color: #B8922A;
    text-transform: uppercase;
    line-height: 1;
}

/* ---------- BASE ---------- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #151411;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Raleway', sans-serif; }

/* ---------- NAV ---------- */
.mihi-nav-link {
    position: relative;
    padding-bottom: 2px;
    color: #636260;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.mihi-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #518581;
    border-radius: 2px;
    transition: width 0.25s ease;
}
.mihi-nav-link:hover { color: #151411; }
.mihi-nav-link:hover::after,
.mihi-nav-link.active::after { width: 100%; }
.mihi-nav-link.active { color: #518581; font-weight: 600; }

.mihi-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #3C3B39;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    background: transparent;
    border: none;
}
.mihi-icon-btn:hover { background: #F0F0EE; color: #518581; }

/* Báo giá CTA button */
.btn-baogia {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #518581;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    border-radius: 6rem;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.btn-baogia:hover { background: #3D6968; }
.btn-baogia i { font-size: 0.6875rem; }

/* ---------- LOGO ---------- */
.mihi-logo { text-decoration: none; transition: opacity 0.2s; }
.mihi-logo:hover { opacity: 0.85; }

/* ---------- MOBILE NAV ---------- */
.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #3C3B39;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-item:hover { background: #F0F0EE; color: #518581; }

/* ---------- USER DROPDOWN ---------- */
.user-dropdown { animation: fadeInDrop 0.15s ease; }
@keyframes fadeInDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- SECTION HELPERS ---------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #518581;
    border: 1px solid #A8C8C5;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
}
.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #FFB23F;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}
.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #151411;
    line-height: 1.2;
}
.section-subtitle {
    color: #636260;
    font-size: 15px;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #518581;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 999px;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.btn-primary:hover { background: #3D6968; transform: translateY(-1px); }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #151411;
    color: #151411;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-outline:hover { background: #151411; color: #fff; }

.btn-walnut {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #518581;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 999px;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-walnut:hover { background: #3D6968; }

/* ---------- CARDS ---------- */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(81,133,129,0.14);
}

.benefit-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1.5px solid #E4E4E6;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.benefit-card:hover {
    border-color: #518581;
    box-shadow: 0 8px 32px rgba(81,133,129,0.12);
    transform: translateY(-3px);
}
.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(81,133,129,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: #518581;
}

.testi-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #E4E4E6;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.testi-card:hover {
    border-color: #518581;
    box-shadow: 0 8px 24px rgba(81,133,129,0.10);
}
.testi-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }

/* ---------- BLOG (sidebar) ---------- */
.blog-side-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #F0F0EE;
    text-decoration: none;
}
.blog-side-card:last-child { border-bottom: none; }
.blog-side-card:hover .blog-side-title { color: #518581; }
.blog-side-img { width: 80px; height: 70px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.blog-side-title { font-size: 13px; font-weight: 600; color: #151411; line-height: 1.4; transition: color 0.2s; }

/* ---------- FOOTER ---------- */
.footer-col-title {
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #151411;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.footer-link { color: #636260; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #518581; }

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #E4E4E6;
    color: #636260;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social:hover { background: #518581; border-color: #518581; color: #fff; }

/* ---------- BADGES ---------- */
.badge-new {
    display: inline-block;
    background: #518581;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}
.badge-sale {
    display: inline-block;
    background: #FFB23F;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

/* ---------- FLASH ---------- */
.flash-message { animation: slideIn 0.35s ease; }
@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---------- FLOATING ZALO ---------- */
.float-zalo {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 3.25rem;
    height: 3.25rem;
    background: #0068FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,104,255,.35);
    transition: transform 0.2s;
}
.float-zalo:hover { transform: scale(1.08); }

/* ---------- LINE CLAMP ---------- */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
