/* ============================================================================
 * offcanvas-menu.css — Menu mobile (drawer trái .aq-offcanvas-wrap) — UI/UX
 * chuẩn chuyển đổi cao. Tách riêng (CLAUDE.md 6.3). Tái dùng markup + JS theme
 * (menu clone từ desktop, accordion qua .aq-menu-close); chỉ override phần nhìn.
 * ========================================================================== */

:root {
    --oc-accent: var(--aq-common-red, #e11d2a);
    --oc-accent-dark: #c20025;
    --oc-ink: #16181c;
    --oc-muted: #6b7280;
    --oc-line: #eef0f3;
    --oc-soft: #f5f6f8;
}

/* ---- Khung drawer -------------------------------------------------------- */
.aq-offcanvas-wrap {
    width: 340px;
    max-width: 86vw;
    box-shadow: 10px 0 44px rgba(15, 23, 42, .18);
}

/* ---- Header (logo + đóng) ----------------------------------------------- */
.aq-offcanvas-wrap .aq-offcanvas-top {
    padding: 14px 20px;
    border-bottom: 1px solid var(--oc-line);
}

.aq-offcanvas-wrap .aq-text-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--oc-ink);
}

.aq-offcanvas-wrap .aq-offcanvas-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--oc-soft);
}

.aq-offcanvas-wrap .aq-offcanvas-close span { width: auto; height: auto; }

/* ---- Vùng menu cuộn ----------------------------------------------------- */
.aq-offcanvas-wrap .aq-offcanvas-menu {
    padding: 80px 16px 150px;
}

/* ---- Mục cấp 1 ---------------------------------------------------------- */
.aq-offcanvas-wrap nav > ul > li {
    position: relative;
    border-bottom: 1px solid var(--oc-line);
}

.aq-offcanvas-wrap nav > ul > li:last-child { border-bottom: none; }

.aq-offcanvas-wrap nav > ul > li > a {
    display: flex;
    align-items: center;
    padding: 15px 44px 15px 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--oc-ink) !important;
    transition: color .2s ease;
}

.aq-offcanvas-wrap nav > ul > li > a:hover,
.aq-offcanvas-wrap nav > ul > li.active > a {
    color: var(--oc-accent) !important;
}

/* Gạch nhấn bên trái khi mở/đang ở mục đó */
.aq-offcanvas-wrap nav > ul > li::before {
    content: "";
    position: absolute;
    inset-inline-start: -16px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--oc-accent);
    opacity: 0;
    transition: opacity .2s ease;
}

.aq-offcanvas-wrap nav > ul > li.active::before { opacity: 1; }

/* ---- Submenu (accordion) ------------------------------------------------ */
.aq-offcanvas-wrap .submenu {
    margin: 0 0 12px !important;
    padding: 6px !important;
    background: var(--oc-soft);
    border-radius: 12px;
    list-style: none;
}

.aq-offcanvas-wrap .submenu li { border: none !important; }

.aq-offcanvas-wrap .submenu li a {
    display: block;
    padding: 11px 14px !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.4 !important;
    color: var(--oc-muted) !important;
    border-radius: 9px;
    transition: background .15s ease, color .15s ease;
}

.aq-offcanvas-wrap .submenu li a:hover {
    background: #fff !important;
    color: var(--oc-accent) !important;
}

/* "Tất cả sản phẩm" (mục đầu) nổi bật hơn */
.aq-offcanvas-wrap .submenu li:first-child a {
    font-weight: 700;
    color: var(--oc-ink) !important;
}

/* ---- Nút mở/đóng submenu (+ / −) → bọc ô bo tròn, đổi màu khi mở -------- */
.aq-offcanvas-wrap .aq-menu-close {
    top: 8px;
    inset-inline-end: 2px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--oc-soft);
    transition: background .2s ease;
}

.aq-offcanvas-wrap .aq-menu-close::after,
.aq-offcanvas-wrap .aq-menu-close::before {
    width: 11px;
    background-color: var(--oc-ink);
}

.aq-offcanvas-wrap nav ul li.active > .aq-menu-close { background: var(--oc-accent); }

.aq-offcanvas-wrap nav ul li.active > .aq-menu-close::after,
.aq-offcanvas-wrap nav ul li.active > .aq-menu-close::before {
    background-color: #fff;
}

/* ---- Footer: CTA gọi tư vấn + email ------------------------------------- */
.aq-offcanvas-wrap .aq-offcanvas-bottom {
    padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--oc-line);
}

.aq-offcanvas-wrap .oe-oc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    border-radius: 12px;
    background: var(--oc-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(225, 29, 42, .28);
    transition: background .2s ease, transform .12s ease;
}

.aq-offcanvas-wrap .oe-oc-cta:hover { background: var(--oc-accent-dark); color: #fff; }
.aq-offcanvas-wrap .oe-oc-cta:active { transform: translateY(1px); }
.aq-offcanvas-wrap .oe-oc-cta svg { flex: 0 0 auto; }

.aq-offcanvas-wrap .oe-oc-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13.5px;
    color: var(--oc-muted);
    transition: color .2s ease;
}

.aq-offcanvas-wrap .oe-oc-email:hover { color: var(--oc-ink); }
.aq-offcanvas-wrap .oe-oc-email svg { flex: 0 0 auto; color: var(--oc-accent); }
