/* ============================================================
   Inhaiphong WebApp — shared stylesheet
   Header/topbar/navigation: handled by Tailwind (tailwind.min.js)
   This file: base resets, complex animations, footer, sections
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* ── Base reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: clip;
    background: #fff;
}
body {
    margin: 0;
    overflow-x: clip;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #374151;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; }

/* ── Layout ─────────────────────────────────────────────────── */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Dropdown menu ───────────────────────────────────────────── */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0px);
    left: -16px;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 20px 50px -5px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
    z-index: 100;
}
.nav-dropdown-trigger:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Arrow pointer */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 28px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.06);
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}
.nav-dropdown li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    border-radius: 8px;
    transition: background 150ms ease, color 150ms ease;
    white-space: nowrap;
}
.nav-dropdown li > a:hover {
    background: #FEF2F2;
    color: #da2b20;
}
/* Sub-sub dropdown — slides right */
.nav-dropdown .nav-dropdown {
    top: -8px;
    left: calc(100% + 8px);
}
.nav-dropdown .nav-dropdown::before { display: none; }

/* ── Sticky header ───────────────────────────────────────────── */
/* ── Image lazyload skeleton ─────────────────────────────────────── */
img.lazy-img {
    background: linear-gradient(110deg, #eef0f2 8%, #f7f8f9 18%, #eef0f2 33%);
    background-size: 200% 100%;
    animation: imgSkeletonShimmer 1.4s linear infinite;
}
img.lazy-img.is-loaded {
    animation: none;
    background: none;
}
@keyframes imgSkeletonShimmer {
    to { background-position-x: -200%; }
}

.sticky-header--normal.is-sticky {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9;
    background-color: #fff;
    box-shadow: 0 2px 16px rgba(10,34,65,0.09);
    animation: slideDown 300ms ease forwards;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ── Mobile nav ──────────────────────────────────────────────── */
.mobile-nav__wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}
.mobile-nav__wrapper.expanded { pointer-events: auto; }

.mobile-nav__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav__wrapper.expanded .mobile-nav__overlay { opacity: 1; }

/* Panel */
.mobile-nav__panel {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 100%;
    max-width: 400px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.mobile-nav__wrapper.expanded .mobile-nav__panel { transform: translateX(0); }

/* Panel header */
.mobile-nav__panel-header {
    display: flex;
    align-items: center;
    padding: 14px 16px 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    gap: 8px;
}
.mobile-nav__panel-logo { display: flex; align-items: center; flex: 1; min-width: 0; }
.mobile-nav__panel-logo-img { max-height: 48px; width: auto; max-width: 100%; }
.mobile-nav__close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: none;
    border: none; border-radius: 6px;
    color: #6b7280; cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.mobile-nav__close:hover { color: #da2b20; background: #FEF2F2; }

/* Search */
.mobile-nav__search {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.mobile-nav__search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 10px 14px;
}
.mobile-nav__search-inner svg { width: 16px; height: 16px; color: #9ca3af; flex-shrink: 0; }
.mobile-nav__search-inner input {
    flex: 1; background: none; border: none; outline: none;
    font-size: 0.9rem; color: #374151;
    font-family: inherit;
}
.mobile-nav__search-inner input::placeholder { color: #9ca3af; }

/* Nav list */
.mobile-nav__nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__item { border-bottom: 1px solid #f7f7f7; }
.mobile-nav__item--sub { border-bottom: none; }

.mobile-nav__item-row {
    display: flex;
    align-items: center;
}
.mobile-nav__link {
    flex: 1;
    display: block;
    padding: 13px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1f2937;
    transition: color 0.15s;
}
.mobile-nav__link:hover { color: #da2b20; }
.mobile-nav__item--sub .mobile-nav__link {
    padding: 10px 20px 10px 36px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #4b5563;
}
.mobile-nav__item--sub .mobile-nav__link:hover { color: #da2b20; }

/* Accordion button */
.mobile-nav__accordion-btn {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: #9ca3af; flex-shrink: 0;
    transition: color 0.2s;
}
.mobile-nav__accordion-btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.mobile-nav__accordion-btn[aria-expanded="true"] { color: #da2b20; }
.mobile-nav__accordion-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Submenu */
.mobile-nav__submenu {
    list-style: none; margin: 0; padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}
.mobile-nav__submenu.open { max-height: 600px; }

/* Contact block */
.mobile-nav__contact-block {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.mobile-nav__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.15s;
}
a.mobile-nav__contact-item:hover { color: #da2b20; }
.mobile-nav__contact-icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: #FEF2F2; border-radius: 8px; flex-shrink: 0;
    color: #da2b20;
}
.mobile-nav__contact-icon svg { width: 16px; height: 16px; }

/* ── Scroll to top ──────────────────────────────────────────── */
.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.75rem;
    height: 2.75rem;
    background: #da2b20;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s ease;
    z-index: 50;
}
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: #b71c14; color: #fff; }
.scroll-to-top__text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

/* ── Online support widget ──────────────────────────────────── */
.online-support-widget {
    position: fixed;
    right: 1.5rem;
    bottom: 4.875rem;
    z-index: 49;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.625rem;
}
.online-support-widget__item {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #da2b20;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.online-support-widget__item:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.28);
    color: #fff;
}
@keyframes online-support-pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}
@keyframes online-support-pulse-blue {
    0%   { box-shadow: 0 0 0 0 rgba(5, 115, 255, 0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(5, 115, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 115, 255, 0); }
}
.online-support-widget__item--pulse-red  { animation: online-support-pulse-red 2.2s ease-out infinite; }
.online-support-widget__item--pulse-blue { animation: online-support-pulse-blue 2.2s ease-out infinite; }
.online-support-widget__icon-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
}
.online-support-widget__icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}
.online-support-widget__icon-text {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
@media (max-width: 767.98px) {
    .online-support-widget { right: 1rem; bottom: 4.875rem; }
    .online-support-widget__item--desktop-only { display: none; }
}
@media (min-width: 768px) {
    .online-support-widget__item--mobile-only { display: none; }
}

/* ── Sections ───────────────────────────────────────────────── */
.section-space { padding: 4rem 0; }
.section-space-top { padding-top: 4rem; }
@media (min-width: 1024px) {
    .section-space { padding: 6rem 0; }
    .section-space-top { padding-top: 6rem; }
}
.sec-title { margin-bottom: 3rem; }
.sec-title__tagline {
    color: #da2b20;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}
.sec-title__title { font-size: 1.875rem; font-weight: 700; color: #111827; line-height: 1.2; margin: 0; }
@media (min-width: 1024px) { .sec-title__title { font-size: 2.25rem; } }

/* ── Footer ─────────────────────────────────────────────────── */
.main-footer { background: #111827; color: #d1d5db; margin-top: auto; padding: 4rem 0 0; }

.footer-widget__title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.25rem;
}
.footer-widget__logo { margin-bottom: 1.5rem; }
.footer-widget__logo img { max-height: 3rem; width: auto; display: block; }
.footer-widget__about-text { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-widget__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-widget__links li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }
.footer-icon { display: inline-flex; flex-shrink: 0; margin-top: 0.15rem; opacity: 0.7; }
.footer-widget__links a { color: #d1d5db; }
.footer-widget__links a:hover { color: #fff; }

.social-links { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.social-links a {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #d1d5db;
    transition: background 0.2s ease, color 0.2s ease;
}
.social-links a:hover { background: #da2b20; color: #fff; }

.main-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}
.footer-iframe { border-radius: 0.5rem; overflow: hidden; margin-top: 0.5rem; }

/* ── Grid helpers (footer, content grids) ───────────────────── */
.row { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .row { grid-template-columns: repeat(3, 1fr); } }
.row.gutter-y-30 { gap: 1.875rem; }
.row.gutter-y-40 { gap: 2.5rem; }

/* ── Home sections ──────────────────────────────────────────── */
.news-section { background: #f9fafb; }
.news-card__thumb { position: relative; aspect-ratio: 4 / 3; }
.news-card__thumb > div { position: absolute; inset: 0; }

.main-slider { position: relative; overflow: hidden; background: #1a1a1a; min-height: 400px; }
@media (min-width: 1024px) { .main-slider { min-height: 600px; } }
@media (max-width: 767.98px) { .main-slider { min-height: 0; height: auto; } }

/* ── Main slider (vanilla JS) ───────────────────────────────── */
.ms-track { display: flex; transition: transform 0.55s cubic-bezier(0.4,0,0.2,1); will-change: transform; height: 100%; }
.ms-slide { min-width: 100%; flex-shrink: 0; position: relative; }
.ms-slide img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 400px; max-height: 680px; }
@media (min-width: 1024px) { .ms-slide img { min-height: 600px; } }
@media (max-width: 767.98px) {
    .ms-track { height: auto; align-items: flex-start; }
    .ms-slide { width: 100%; flex: 0 0 100%; }
    .ms-slide img { display: block; width: 100%; max-width: 100%; height: auto; min-height: 0; max-height: none; object-fit: fill; }
}

.ms-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.25); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; }
.ms-arrow:hover { background: rgba(255,255,255,0.30); }
.ms-prev { left: 16px; }
.ms-next { right: 16px; }
@media (min-width: 768px) { .ms-prev { left: 28px; } .ms-next { right: 28px; } }

.ms-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); border: none; cursor: pointer; transition: background 0.25s, transform 0.25s; padding: 0; }
.ms-dot.active { background: #fff; transform: scale(1.25); }
.cta-banner { background: #da2b20; color: #fff; }
.cta-banner__inner { text-align: center; padding: 1rem 0; }

/* ── About section (homepage) ────────────────────────────────── */
.about-section { padding: 5rem 0; background: #fff; }
@media (max-width: 768px) { .about-section { padding: 3rem 0; } }

.about-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.09);
}
@media (max-width: 900px) {
    .about-section__inner { grid-template-columns: 1fr; }
}

.about-section__cover {
    position: relative;
    min-height: 420px;
    background: #f3f4f6;
    overflow: hidden;
}
@media (max-width: 900px) { .about-section__cover { min-height: 260px; } }

.about-section__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-section__img-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.about-section__body {
    padding: 3.5rem 3rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
@media (max-width: 1024px) { .about-section__body { padding: 2.5rem 2rem; } }
@media (max-width: 900px)  { .about-section__body { padding: 2rem 1.5rem; } }

.about-section__eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #da2b20;
    margin: 0;
}
.about-section__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
    margin: 0;
}
@media (max-width: 640px) { .about-section__title { font-size: 1.5rem; } }

.about-section__desc {
    font-size: 0.975rem;
    color: #4b5563;
    line-height: 1.8;
    margin: 0;
}
.about-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    align-self: flex-start;
    padding: 0.65rem 1.5rem;
    background: #da2b20;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s, gap 0.2s;
}
.about-section__btn:hover { background: #b91c1c; color: #fff; gap: 0.65rem; }

/* ── Section spacing ─────────────────────────────────────────── */
.section-space { padding: 4rem 0; }
@media (max-width: 768px) { .section-space { padding: 2.5rem 0; } }
.section-heading { font-size: 1.5rem; font-weight: 700; color: #1f2937; margin-bottom: 1.5rem; }

/* ── Prose content (TinyMCE rich text) ──────────────────────── */
.prose-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1rem;
    word-break: break-word;
}
.prose-content h1 { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin: 1.75rem 0 0.875rem; line-height: 1.25; }
.prose-content h2 { font-size: 1.5rem;   font-weight: 700; color: #1f2937; margin: 1.5rem  0 0.75rem;  line-height: 1.3;  }
.prose-content h3 { font-size: 1.25rem;  font-weight: 700; color: #1f2937; margin: 1.25rem 0 0.6rem;   line-height: 1.35; }
.prose-content h4 { font-size: 1.05rem;  font-weight: 600; color: #1f2937; margin: 1rem    0 0.5rem;   line-height: 1.4;  }
@media (max-width: 640px) {
    .prose-content h1 { font-size: 1.5rem; }
    .prose-content h2 { font-size: 1.25rem; }
    .prose-content h3 { font-size: 1.1rem; }
}
.prose-content p  { margin-bottom: 1rem; }
.prose-content ul,.prose-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-content li { margin-bottom: 0.4rem; }
.prose-content img { max-width: 100%; height: auto; border-radius: 8px; display:inline-block}
.prose-content a { color: #da2b20; text-decoration: underline; }
.prose-content strong { font-weight: 700; color: #1f2937; }
.prose-content em { font-style: italic; }
.prose-content blockquote { border-left: 3px solid #da2b20; padding: 0.75rem 1.25rem; margin: 1rem 0; background: #f9fafb; border-radius: 0 8px 8px 0; color: #4b5563; }
.prose-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.9rem; }
.prose-content th { background: #f3f4f6; font-weight: 600; text-align: left; padding: 0.6rem 0.875rem; border: 1px solid #e5e7eb; color: #1f2937; }
.prose-content td { padding: 0.6rem 0.875rem; border: 1px solid #e5e7eb; vertical-align: top; }
.prose-content tr:nth-child(even) td { background: #fafafa; }
.prose-content hr { border: none; border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }

/* ── Page header / breadcrumb ────────────────────────────────── */
.page-header { background: #f9fafb; border-bottom: 1px solid #f0f0f0; padding: 0.875rem 0; }

.page-header__breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
    color: #9ca3af;
}

.page-header__breadcrumb li {
    display: inline-flex;
    align-items: center;
}

/* separator giữa các li */
.page-header__breadcrumb li + li::before {
    content: '/';
    padding: 0 0.45rem;
    color: #d1d5db;
    font-size: 0.75rem;
}

.page-header__breadcrumb a {
    display: inline-flex;
    align-items: center;
    color: #9ca3af;
    transition: color 0.15s;
    line-height: 1;
}
.page-header__breadcrumb a:hover { color: #da2b20; }
.page-header__breadcrumb a svg { display: block; }

/* title item — cùng font-size li nhưng đậm + tối màu hơn */
.page-header__title-crumb {
    font-weight: 600;
    color: #374151;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 420px;
}
@media (max-width: 640px) { .page-header__title-crumb { max-width: 200px; } }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 0.6rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: #374151; border: 1px solid #e5e7eb; background: #fff; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.pagination__btn:hover { border-color: #da2b20; color: #da2b20; }
.pagination__btn--active { background: #da2b20; color: #fff; border-color: #da2b20; }
.pagination__btn--disabled { opacity: 0.4; cursor: default; pointer-events: none; }
.pagination__ellipsis { color: #9ca3af; padding: 0 0.25rem; }

/* ── About detail page (/gioi-thieu) ─────────────────────────── */
.about-detail { display: flex; flex-direction: column; gap: 2rem; }

.about-detail__cover {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    border-radius: 16px;
    background: #f3f4f6;
}
.about-detail__cover img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 520px; }
.about-detail__img-fallback { position: absolute; inset: 0; align-items: center; justify-content: center; background: #f3f4f6; }

.about-detail__intro { display: flex; flex-direction: column; gap: 0.75rem; }
.about-detail__eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #da2b20; margin: 0; }
.about-detail__title { font-size: 2rem; font-weight: 800; color: #1f2937; line-height: 1.25; margin: 0; }
@media (max-width: 640px) { .about-detail__title { font-size: 1.5rem; } }
.about-detail__lead { font-size: 1.05rem; color: #374151; line-height: 1.8; margin: 0; font-weight: 500; padding: 1rem 1.25rem; background: #f9fafb; border-left: 3px solid #da2b20; border-radius: 0 8px 8px 0; }

.about-detail__content { border-top: 1px solid #f0f0f0; padding-top: 1.5rem; }

/* ── Contact page ────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info__heading { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin-bottom: 1.25rem; }
.contact-info__company { font-weight: 600; font-size: 1rem; color: #374151; margin-bottom: 0.5rem; text-transform: uppercase; }
.contact-info__description { font-size: 0.9rem; color: #364153; line-height: 1.6; margin-bottom: 1rem; }
.contact-info__row { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; font-size: 0.9rem; color: #374151; }
.contact-info__row a { color: #da2b20; }
.contact-info__row a:hover { text-decoration: underline; }
.contact-info__icon { width: 20px; height: 20px; flex-shrink: 0; color: #da2b20; margin-top: 1px; }
.contact-info__zalo-label { font-size: 0.7rem; font-weight: 700; background: #0068ff; color: #fff; border-radius: 4px; padding: 2px 5px; margin-top: 1px; }

/* ── Contact info block (article / product detail) ──────────── */
.contact-info-block { margin-top: 2rem; padding: 1.25rem 1.5rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; }
.contact-info-block__heading { font-size: 1.05rem; font-weight: 700; color: #1f2937; margin-bottom: 1rem; }
.contact-info-block__company { font-weight: 600; font-size: 0.95rem; color: #374151; margin-bottom: 0.75rem; }
.contact-info-block__row { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.6rem; font-size: 0.88rem; color: #374151; }
.contact-info-block__row:last-child { margin-bottom: 0; }
.contact-info-block__row a { color: #da2b20; }
.contact-info-block__row a:hover { text-decoration: underline; }
.contact-info-block__icon { width: 18px; height: 18px; flex-shrink: 0; color: #da2b20; margin-top: 1px; }
.contact-form-wrap { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; }
.contact-form__heading { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin-bottom: 1.25rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-form__field label { font-size: 0.875rem; font-weight: 500; color: #374151; }
.contact-form__field input,.contact-form__field textarea { padding: 0.625rem 0.875rem; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 0.9rem; line-height: 1.5; font-family: inherit; color: #374151; background: #fff; outline: none; transition: border-color 0.15s; resize: vertical; -webkit-appearance: none; appearance: none; }
.contact-form__field input { height: 2.75rem; }
.contact-form__field input:focus,.contact-form__field textarea:focus { border-color: #da2b20; }
.contact-form__field input::placeholder,.contact-form__field textarea::placeholder { color: #9ca3af; }
.contact-form__error { font-size: 0.8rem; color: #dc2626; min-height: 1rem; }
.contact-form__submit { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; padding: 0.75rem 1.75rem; background: #da2b20; color: #fff; font-size: 0.9rem; font-weight: 600; font-family: inherit; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s; }
.contact-form__submit:hover { background: #b91c1c; }
.contact-form__success { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px; color: #166534; font-size: 0.95rem; }
.contact-map { border-radius: 16px; overflow: hidden; border: 1px solid #f0f0f0; }
.contact-map iframe { display: block; }

/* ── Product listing ─────────────────────────────────────────── */
.product-list-nav a { display: inline-block; padding: 0.5rem 1rem; font-size: 0.875rem; color: #374151; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 9999px; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.product-list-nav a:hover,.product-list-nav a.active { background: #FEF2F2; color: #da2b20; border-color: #fecaca; font-weight: 600; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1280px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }
.product-list-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 4rem 0; color: #9ca3af; font-size: 0.9rem; }

.category-content { position: relative; overflow: hidden; max-height: 8.5rem; transition: max-height 0.45s ease; }
.product-detail__content-section .category-content { max-height: 10.5rem; }
.category-content.is-expanded { }
.category-content__inner { color: #4b5563; font-size: 0.95rem; line-height: 1.85; }
.category-content__inner p { margin: 0 0 0.85rem; }
.category-content__inner h2,
.category-content__inner h3 { color: #1f2937; font-weight: 700; margin: 1rem 0 0.5rem; }
.category-content__inner img { max-width: 100%; height: auto; border-radius: 0.5rem; }
.category-content__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 3.5rem; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 85%); transition: opacity 0.35s ease; pointer-events: none; }
.category-content.is-expanded .category-content__fade { opacity: 0; }
.category-content__btn { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #da2b20; background: none; border: none; cursor: pointer; transition: color 0.2s ease; }
.category-content__btn:hover { color: #b71c14; }
.category-content__btn svg { transition: transform 0.3s ease; }
.category-content__btn.is-expanded svg { transform: rotate(180deg); }

/* ── Search page ─────────────────────────────────────────────── */
.search-page__form {
    display: flex;
    gap: 0;
    max-width: 640px;
    margin-bottom: 2rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s;
}
.search-page__form:focus-within { border-color: #da2b20; }
.search-page__form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: #374151;
    border: none;
    outline: none;
    background: transparent;
    min-width: 0;
}
.search-page__form input[type="search"]::placeholder { color: #9ca3af; }
.search-page__form button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1.25rem;
    background: #da2b20;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.search-page__form button:hover { background: #b91c1c; }

.search-page__hint { color: #9ca3af; font-size: 0.9rem; }
.search-page__count { color: #4b5563; font-size: 0.9rem; margin-bottom: 1.5rem; }
.search-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 4rem 0;
    color: #9ca3af;
    text-align: center;
    font-size: 0.95rem;
}
.search-page__empty strong { color: #374151; }
.search-page__browse { color: #da2b20; font-weight: 600; font-size: 0.875rem; }
.search-page__browse:hover { text-decoration: underline; }

/* ── Article listing ─────────────────────────────────────────── */
.article-list-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .article-list-layout { grid-template-columns: 1fr; } }
.article-list-sidebar__heading { font-size: 1rem; font-weight: 700; color: #1f2937; margin-bottom: 0.75rem; }
.article-list-sidebar__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.article-list-sidebar__menu a { display: block; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #374151; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.article-list-sidebar__menu a:hover,.article-list-sidebar__menu a.active { background: #FEF2F2; color: #da2b20; font-weight: 600; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 640px) { .article-grid { grid-template-columns: 1fr; } }
.article-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid #f0f0f0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: box-shadow 0.2s, transform 0.2s; }
.article-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.10); transform: translateY(-2px); }
.article-card__img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #f3f4f6; }
.article-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.article-card:hover .article-card__img-wrap img { transform: scale(1.05); }
.article-card__body { padding: 1rem 1.25rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card__date { font-size: 0.75rem; color: #9ca3af; margin-bottom: 0.5rem; }
.article-card__title { font-size: 0.95rem; font-weight: 700; color: #1f2937; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card:hover .article-card__title { color: #da2b20; }
.article-card__desc { font-size: 0.975rem; color: #4b5563; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.article-card__more { font-size: 0.8rem; color: #da2b20; font-weight: 600; margin-top: 0.75rem; }

.article-row-list { display: flex; flex-direction: column; gap: 1.5rem; }
.article-row-item { display: flex; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid #f0f0f0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.05); transition: box-shadow 0.2s, transform 0.2s; }
.article-row-item__img-wrap { width: 280px; flex-shrink: 0; aspect-ratio: 4/3; overflow: hidden; background: #f3f4f6; }
.article-row-item__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-row-item__body { flex: 1; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; min-width: 0; }
.article-row-item__title { font-size: 1.05rem; font-weight: 600; color: #1f2937; margin-bottom: 0.4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-row-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; font-size: 0.75rem; color: #9ca3af; margin-bottom: 0.5rem; }
.article-row-item__meta-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.article-row-item__meta-icon { flex-shrink: 0; color: #da2b20; }
.article-row-item:hover .article-row-item__title { color: #da2b20; }
.article-row-item__desc { font-size: 0.9rem; color: #4b5563; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.article-row-item__more { font-size: 0.8rem; color: #da2b20; font-weight: 600; margin-top: 0.75rem; }
@media (max-width: 640px) {
    .article-row-item { flex-direction: column; }
    .article-row-item__img-wrap { width: 100%; aspect-ratio: 16/9; }
}

/* ── Product detail ──────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; align-items: start; }
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; gap: 1.5rem; } }
.product-detail__main-img { position: relative; width: 100%; aspect-ratio: 1; background: #f9fafb; border-radius: 16px; overflow: hidden; border: 1px solid #f0f0f0; }
.product-detail__main-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-detail__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 9999px; background: rgba(255,255,255,0.85); border: 1px solid #f0f0f0; display: flex; align-items: center; justify-content: center; color: #4b5563; cursor: pointer; transition: background-color 0.15s, color 0.15s; z-index: 2; }
.product-detail__nav:hover { background: #fff; color: #da2b20; }
.product-detail__nav--prev { left: 12px; }
.product-detail__nav--next { right: 12px; }
.product-detail__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; z-index: 2; }
.product-detail__dot { width: 8px; height: 8px; border-radius: 9999px; background: rgba(0,0,0,0.2); cursor: pointer; transition: background-color 0.15s, width 0.15s; }
.product-detail__dot.active { background: #da2b20; width: 20px; border-radius: 9999px; }
.product-detail__thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.product-detail__thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid #e5e7eb; background: #f9fafb; cursor: pointer; transition: border-color 0.15s; padding: 0; }
.product-detail__thumb:hover,.product-detail__thumb.active { border-color: #da2b20; }
.product-detail__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-detail__name { font-size: 1.625rem; font-weight: 800; color: #1f2937; margin-bottom: 0.6rem; line-height: 1.3; text-transform: uppercase; }
@media (max-width: 640px) { .product-detail__name { font-size: 1.25rem; } }
.product-detail__sub-meta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: 0.85rem; color: #6b7280; }
.product-detail__sub-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.product-detail__sub-meta a { color: #6b7280; transition: color 0.15s; }
.product-detail__sub-meta a:hover { color: #da2b20; }
.product-detail__cta-hint { font-size: 0.85rem; color: #6b7280; margin-bottom: 0.75rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.product-detail__cta-row { display: flex; align-items: stretch; gap: 0.75rem; }
.product-detail__cta-row > * { flex: 1 1 0; min-width: 0; }
.product-detail__order-btn.product-detail__order-btn { width: 100%; justify-content: center; }
.product-detail__call-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; border: 1px solid #fecaca; color: #da2b20; background: #fff7f7; transition: background 0.2s, color 0.2s; flex-shrink: 0; }
.product-detail__call-btn:hover { background: #da2b20; color: #fff; }
.product-detail__hotline { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.4rem 0.9rem 0.4rem 0.4rem; border-radius: 10px; border: 1px solid #fecaca; background: #fff7f7; transition: background 0.2s; }
.product-detail__hotline:hover { background: #fde8e8; }
.product-detail__hotline .product-detail__call-btn { border: none; background: #da2b20; color: #fff; width: 40px; height: 40px; }
.product-detail__hotline-text { display: flex; flex-direction: column; line-height: 1.25; }
.product-detail__hotline-text small { font-size: 0.75rem; color: #6b7280; }
.product-detail__hotline-text strong { font-size: 0.95rem; color: #da2b20; font-weight: 700; }
.product-detail__price-wrap { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.product-detail__price { font-size: 1.75rem; font-weight: 800; color: #da2b20; }
.product-detail__price--contact { font-size: 1.25rem; }
.product-detail__old-price { font-size: 1rem; color: #9ca3af; text-decoration: line-through; }
.product-detail__badge { background: #da2b20; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.product-detail__desc { font-size: 0.95rem; color: #4b5563; line-height: 1.7; margin-bottom: 1.5rem; }
.product-detail__order-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.875rem 2rem; background: #da2b20; color: #fff; font-size: 1rem; font-weight: 700; font-family: inherit; border: none; border-radius: 10px; cursor: pointer; transition: background 0.2s; }
.product-detail__order-btn:hover { background: #b91c1c; }
.product-detail__content-section { margin-bottom: 3rem; }
.product-detail__content-section .prose-content h2,
.product-detail__content-section .prose-content h3 { font-size: 1.25rem; }
.product-detail__content-heading { font-size: 1.25rem; font-weight: 700; color: #1f2937; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid #da2b20; display: inline-block; }
.product-detail__related { margin-top: 2rem; }
.product-detail__related-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.product-detail__related-head .section-heading { margin-bottom: 0; }
.product-detail__related-nav { display: flex; align-items: center; gap: 0.5rem; }
.product-detail__nav--static { position: static; transform: none; background: #fff; }
.product-detail__nav--static:disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* Home product slider — drag-to-navigate */
.ps-track { cursor: grab; user-select: none; }
.ps-track.is-dragging { cursor: grabbing; }
.ps-track.is-dragging * { pointer-events: none; }
.product-detail__related .product-card:hover img { transform: none !important; }

/* PC: horizontal slider, 3 cards per row (scroll-snap) */
.product-detail__related .product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
    grid-template-columns: none;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.product-detail__related .product-grid::-webkit-scrollbar { display: none; }
.product-detail__related .product-grid > * { scroll-snap-align: start; }
.product-detail__related .product-grid { cursor: grab; user-select: none; }
.product-detail__related .product-grid.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.product-detail__related .product-grid.is-dragging * { pointer-events: none; }

/* Mobile: 2-column grid, no slider */
@media (max-width: 768px) {
    .product-detail__related .product-grid {
        display: grid;
        grid-auto-flow: row;
        grid-auto-columns: unset;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        scroll-snap-type: none;
    }
}

/* ── Article detail ──────────────────────────────────────────── */
.article-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .article-detail-layout { grid-template-columns: 1fr; } }
.article-detail__title { font-size: 1.6rem; font-weight: 700; color: #1f2937; line-height: 1.35; margin-bottom: 0.75rem; }
.article-detail__meta { margin-bottom: 1.5rem; }
.article-detail-sidebar__heading { font-size: 1rem; font-weight: 700; color: #1f2937; margin-bottom: 1rem; }
.article-detail__related { margin-top: 2rem; }
.article-related-list { display: flex; flex-direction: column; gap: 1rem; }
.article-related-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem; border-radius: 10px; border: 1px solid #f0f0f0; transition: border-color 0.15s, background 0.15s; }
.article-related-item:hover { border-color: #fecaca; background: #fff7f7; }
.article-related-item__img { width: 72px; height: 60px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: #f3f4f6; }
.article-related-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-related-item__title { font-size: 0.82rem; font-weight: 600; color: #1f2937; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.25rem; }
.article-related-item:hover .article-related-item__title { color: #da2b20; }
.article-related-item__date { font-size: 0.72rem; color: #9ca3af; }

.product-related-list { display: flex; flex-direction: column; gap: 1rem; }
.product-related-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem; border-radius: 10px; border: 1px solid #f0f0f0; transition: border-color 0.15s, background 0.15s; }
.product-related-item:hover { border-color: #fecaca; background: #fff7f7; }
.product-related-item__img { width: 72px; height: 60px; flex-shrink: 0; overflow: hidden; border-radius: 8px; background: #f3f4f6; }
.product-related-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-related-item__title { font-size: 0.92rem; font-weight: 700; text-transform: uppercase; color: #1f2937; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.3rem; }
.product-related-item:hover .product-related-item__title { color: #da2b20; }
.product-related-item__price { font-size: 0.8rem; font-weight: 700; color: #da2b20; }
.product-related-item__old-price { font-size: 0.72rem; color: #9ca3af; text-decoration: line-through; margin-left: 0.4rem; }

/* ── Sidebar layout: shared between Product and Article pages ─── */
.detail-sidebar-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .detail-sidebar-layout { grid-template-columns: 1fr; } }
.detail-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.detail-sidebar__block { border: 1px solid #f0f0f0; border-radius: 12px; padding: 1.25rem; }
.detail-sidebar__heading { position: relative; font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: #1f2937; margin-bottom: 1.1rem; padding-bottom: 0.75rem; border-bottom: 2px solid #da2b20; }
.sidebar-category-list { display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-category-tree { display: flex; flex-direction: column; gap: 0.35rem; }
.sidebar-category-node { display: flex; flex-direction: column; }
.sidebar-category-node + .sidebar-category-node { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid #f1f1f1; }
.sidebar-category-children { display: flex; flex-direction: column; gap: 0.1rem; margin-top: 0.35rem; }
.sidebar-category-group { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.95rem; font-weight: 700; color: #da2b20; background: #fef2f2; border-radius: 8px; padding: 0.55rem 0.75rem; transition: background 0.15s, color 0.15s; }
.sidebar-category-group:hover, .sidebar-category-group.active { background: #fee2e2; color: #b91c1c; }
.sidebar-category-group__count { flex-shrink: 0; font-size: 0.75rem; font-weight: 700; color: #da2b20; background: #fff; border-radius: 999px; padding: 0.1rem 0.55rem; line-height: 1.4; }
.sidebar-category-item { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.4rem 0.5rem 0.4rem 0.2rem; border-radius: 6px; font-size: 0.95rem; font-weight: 500; color: #4b5563; transition: background 0.15s, color 0.15s; }
.sidebar-category-item:hover, .sidebar-category-item.active { background: #fff7f7; color: #da2b20; }
.sidebar-category-item__label { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.sidebar-category-item__label svg { flex-shrink: 0; color: #9ca3af; transition: color 0.15s; }
.sidebar-category-item:hover .sidebar-category-item__label svg, .sidebar-category-item.active .sidebar-category-item__label svg { color: #da2b20; }
.sidebar-category-item__count { flex-shrink: 0; font-size: 0.72rem; font-weight: 600; color: #6b7280; background: #f3f4f6; border-radius: 999px; padding: 0.1rem 0.5rem; line-height: 1.4; }
.sidebar-category-item:hover .sidebar-category-item__count, .sidebar-category-item.active .sidebar-category-item__count { color: #da2b20; background: #fff; }
