/*
 * آریاز صنعت — هدر و فوتر اختصاصی
 * v3.1 — فرم جستجو + light mode fix
 */

/* ══════════════════════════════════════════════════════════
   متغیرهای اختصاصی هدر/فوتر
══════════════════════════════════════════════════════════ */
:root {
    --hf-topbar-bg:      var(--az-bg-panel);
    --hf-header-bg:      var(--az-bg-panel);
    --hf-nav-hover-bg:   var(--az-accent-dim);
    --hf-icon-bg:        var(--az-bg-deep);
    --hf-footer-bg:      var(--az-bg-panel);
    --hf-footer-deep:    var(--az-bg-deep);
    --hf-sub-menu-bg:    var(--az-bg-panel);
    --hf-mobile-nav-bg:  var(--az-bg-panel);
    --hf-search-bg:      var(--az-bg-deep);
}

/* ══════════════════════════════════════════════════════════
   TOPBAR
══════════════════════════════════════════════════════════ */
.az-topbar {
    background: var(--hf-topbar-bg);
    border-bottom: 1px solid var(--az-border);
    padding: 8px 0;
    font-size: 12px;
    position: relative;
    z-index: 200;
    overflow: hidden;
}

.az-topbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--az-accent), transparent);
    opacity: 0.3;
}

.az-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.az-topbar__right { display: flex; align-items: center; gap: 10px; }
.az-topbar__left  { display: flex; align-items: center; gap: 6px; }

.az-topbar__pulse {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--az-accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--az-accent-glow);
    animation: hf-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes hf-pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.5; transform:scale(0.8); }
}

.az-topbar__link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--az-text-sec);
    font-weight: 600; letter-spacing: 0.5px;
    transition: color 0.2s; text-decoration: none;
}
.az-topbar__link:hover { color: var(--az-accent); }
.az-topbar__sep   { color: var(--az-text-muted); font-size: 10px; }
.az-topbar__badge { color: var(--az-accent); font-size: 11px; font-weight: 700; }
.az-topbar__tag {
    display: inline-flex; align-items: center;
    padding: 2px 8px;
    border: 1px solid var(--az-border); border-radius: 4px;
    color: var(--az-text-muted); font-size: 11px; transition: all 0.2s;
    text-decoration: none;
}
.az-topbar__tag:hover { border-color: var(--az-border-accent); color: var(--az-text-sec); }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.az-header {
    position: sticky; top: 0;
    background: var(--hf-header-bg);
    border-bottom: 1px solid var(--az-border);
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

[data-theme="dark"] .az-header {
    background: rgba(15,19,26,0.92);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.az-header.is-scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.10); border-bottom-color: var(--az-border-accent); }
[data-theme="dark"] .az-header.is-scrolled { box-shadow: 0 2px 32px rgba(0,0,0,0.5); }

.az-header__inner { height: 68px; display: flex; align-items: center; gap: 20px; }

/* لوگو */
.az-logo { flex-shrink: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.az-logo img { height: 38px; width: auto; }

.az-logo__mark-wrap {
    width: 40px; height: 40px;
    background: var(--az-accent-dim);
    border: 1px solid var(--az-border-accent);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.3s;
}
.az-logo:hover .az-logo__mark-wrap {
    background: var(--az-accent-dim);
    border-color: var(--az-accent);
    box-shadow: 0 0 16px var(--az-accent-glow);
}
.az-logo__gear { color: var(--az-accent); animation: hf-spin-slow 12s linear infinite; }
.az-logo:hover .az-logo__gear { animation-duration: 3s; }
@keyframes hf-spin-slow { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.az-logo__text-wrap { display: flex; flex-direction: column; gap: 1px; }
.az-logo__name { font-size: 16px; font-weight: 900; color: var(--az-text); letter-spacing: -0.3px; line-height: 1.1; }
.az-logo__sub  { font-size: 10px; color: var(--az-text-muted); letter-spacing: 0.3px; font-weight: 500; }

/* ناوبری */
.az-nav { flex: 1; }
.az-nav__list { display: flex; align-items: center; gap: 2px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.az-nav__list li a {
    display: block; padding: 7px 15px;
    font-size: 13px; font-weight: 600;
    color: var(--az-text);
    border-radius: 8px; border: 1px solid transparent;
    transition: all 0.22s; text-decoration: none; white-space: nowrap;
}
.az-nav__list li a:hover,
.az-nav__list li.current-menu-item > a,
.az-nav__list li.current-page-ancestor > a {
    color: var(--az-brand);
    background: var(--az-accent-dim);
    border-color: var(--az-border-accent);
}
[data-theme="dark"] .az-nav__list li a:hover,
[data-theme="dark"] .az-nav__list li.current-menu-item > a { color: var(--az-accent); }

/* submenu */
.az-nav__list li { position: relative; }
.az-nav__list .sub-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 190px;
    background: var(--hf-sub-menu-bg);
    border: 1px solid var(--az-border); border-radius: 12px; padding: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: all 0.22s; z-index: 100; list-style: none;
}
[data-theme="dark"] .az-nav__list .sub-menu { box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.az-nav__list li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.az-nav__list .sub-menu li a { padding: 8px 12px; border-radius: 7px; font-size: 13px; }

/* اکشن‌ها */
.az-header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-inline-start: auto; }

.az-icon-btn {
    position: relative; width: 38px; height: 38px;
    background: var(--hf-icon-bg);
    border: 1px solid var(--az-border); border-radius: 9px;
    color: var(--az-text-sec);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.22s; text-decoration: none;
}
.az-icon-btn:hover {
    background: var(--az-accent-dim);
    border-color: var(--az-border-accent);
    color: var(--az-brand);
}
[data-theme="dark"] .az-icon-btn:hover { color: var(--az-accent); }

.az-cart-count {
    position: absolute; top: -5px; left: -5px;
    min-width: 17px; height: 17px;
    background: var(--az-accent); color: #fff;
    font-size: 10px; font-weight: 800; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
    opacity: 0; transform: scale(0.6); transition: all 0.2s;
}
[data-theme="dark"] .az-cart-count { color: #000; }
.az-cart-count.is-visible { opacity: 1; transform: scale(1); }

.az-btn-login {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; font-size: 12px; font-weight: 700;
    color: var(--az-brand);
    background: var(--az-accent-dim);
    border: 1px solid var(--az-border-accent); border-radius: 9px;
    text-decoration: none; transition: all 0.22s; white-space: nowrap;
}
.az-btn-login:hover {
    background: var(--az-accent-dim);
    border-color: var(--az-accent); color: var(--az-brand);
    box-shadow: 0 0 16px var(--az-accent-glow);
}
[data-theme="dark"] .az-btn-login { color: var(--az-accent); }
[data-theme="dark"] .az-btn-login:hover { color: var(--az-accent); }

/* همبرگر */
.az-hamburger {
    display: none; flex-direction: column; gap: 5px;
    width: 38px; height: 38px;
    background: var(--hf-icon-bg);
    border: 1px solid var(--az-border); border-radius: 9px;
    cursor: pointer; align-items: center; justify-content: center; transition: all 0.22s;
}
.az-hamburger:hover { background: var(--az-accent-dim); border-color: var(--az-border-accent); }
.az-hamburger span { display: block; border-radius: 2px; background: var(--az-text-sec); transition: all 0.3s; }
.az-hamburger span:nth-child(1) { width: 18px; height: 2px; }
.az-hamburger span:nth-child(2) { width: 13px; height: 2px; }
.az-hamburger span:nth-child(3) { width: 18px; height: 2px; }
.az-hamburger.is-open span { background: var(--az-accent); }
.az-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); width: 18px; }
.az-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.az-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); width: 18px; }

/* ══════════════════════════════════════════════════════════
   SEARCH BAR + FORM
══════════════════════════════════════════════════════════ */
.az-search-bar {
    height: 0; overflow: hidden;
    background: var(--hf-search-bg);
    border-top: 1px solid transparent;
    transition: height 0.3s, border-color 0.3s;
}
.az-search-bar.is-open { height: 62px; border-top-color: var(--az-border); }
.az-search-bar__inner { display: flex; align-items: center; gap: 10px; height: 62px; }
.az-search-bar__ico { color: var(--az-text-muted); flex-shrink: 0; }

/* فرم جستجو — .az-search-form */
.az-search-form {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: center;
}

.az-search-form__input {
    flex: 1;
    background: var(--az-bg-panel);
    border: 1.5px solid var(--az-border);
    border-radius: 10px;
    padding: 9px 14px;
    color: var(--az-text);
    font-family: var(--az-font, 'Vazirmatn', sans-serif);
    font-size: 14px;
    direction: rtl;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.az-search-form__input:focus {
    border-color: var(--az-accent);
    box-shadow: 0 0 0 3px var(--az-accent-dim);
}
.az-search-form__input::placeholder { color: var(--az-text-muted); }

.az-search-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--az-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 18px;
    font-family: var(--az-font, 'Vazirmatn', sans-serif);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
[data-theme="dark"] .az-search-form__btn { color: #000; }
.az-search-form__btn:hover {
    box-shadow: 0 0 18px var(--az-accent-glow);
    transform: translateY(-1px);
}

/* fallback: اگر get_search_form استاندارد رندر شد */
.az-search-bar .search-form { flex: 1; display: flex; gap: 8px; }
.az-search-bar input[type="search"] {
    flex: 1;
    background: var(--az-bg-panel);
    border: 1.5px solid var(--az-border); border-radius: 10px;
    padding: 9px 14px; color: var(--az-text);
    font-family: var(--az-font, 'Vazirmatn', sans-serif); font-size: 14px;
    direction: rtl; outline: none; transition: border-color 0.2s;
}
.az-search-bar input[type="search"]:focus { border-color: var(--az-accent); box-shadow: 0 0 0 3px var(--az-accent-dim); }
.az-search-bar input[type="search"]::placeholder { color: var(--az-text-muted); }
.az-search-bar button[type="submit"],
.az-search-bar input[type="submit"] {
    background: var(--az-accent) !important; color: #fff !important;
    border: none !important; border-radius: 10px !important;
    padding: 9px 18px !important;
    font-family: var(--az-font, 'Vazirmatn', sans-serif) !important;
    font-size: 13px !important; font-weight: 700 !important;
    cursor: pointer !important; transition: box-shadow 0.2s !important;
    white-space: nowrap;
}
[data-theme="dark"] .az-search-bar button[type="submit"],
[data-theme="dark"] .az-search-bar input[type="submit"] { color: #000 !important; }
.az-search-bar button[type="submit"]:hover,
.az-search-bar input[type="submit"]:hover { box-shadow: 0 0 18px var(--az-accent-glow) !important; }

.az-search-close {
    width: 34px; height: 34px;
    background: var(--az-bg-panel);
    border: 1px solid var(--az-border); border-radius: 8px;
    color: var(--az-text-muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.az-search-close:hover { color: var(--az-accent); border-color: var(--az-border-accent); }

/* اورلی موبایل */
.az-nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 998;
    backdrop-filter: blur(4px);
    opacity: 0; transition: opacity 0.3s;
}
.az-nav-overlay.is-visible { display: block; opacity: 1; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.az-footer {
    background: var(--hf-footer-bg);
    border-top: 1px solid var(--az-border);
    margin-top: 80px; position: relative; overflow: hidden;
}
.az-footer::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--az-accent), transparent);
    opacity: 0.4;
}

.az-footer__top-bar { background: var(--az-accent-dim); border-bottom: 1px solid var(--az-border-accent); padding: 16px 0; }
.az-footer__top-bar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.az-footer__cta-text { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--az-brand); }
[data-theme="dark"] .az-footer__cta-text { color: var(--az-text-sec); }
.az-footer__cta-dot {
    display: inline-block; width: 7px; height: 7px;
    background: var(--az-accent); border-radius: 50%;
    box-shadow: 0 0 10px var(--az-accent-glow);
    animation: hf-pulse 2s ease-in-out infinite; flex-shrink: 0;
}
.az-footer__cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    background: var(--az-accent); color: #fff;
    font-size: 13px; font-weight: 800; border-radius: 10px;
    text-decoration: none; transition: all 0.25s;
    box-shadow: 0 4px 16px var(--az-accent-glow); white-space: nowrap;
}
[data-theme="dark"] .az-footer__cta-btn { color: #000; }
.az-footer__cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--az-accent-glow); color: #fff; }
[data-theme="dark"] .az-footer__cta-btn:hover { color: #000; }

.az-footer__body { padding: 56px 0 40px; }
.az-footer__grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 48px; align-items: start; }

.az-footer__logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 900; color: var(--az-text);
    text-decoration: none; margin-bottom: 16px; transition: color 0.2s;
}
.az-footer__logo:hover { color: var(--az-accent); }
.az-footer__logo-gear { color: var(--az-accent); flex-shrink: 0; }
.az-footer__desc { font-size: 13px; color: var(--az-text-sec); line-height: 1.8; margin-bottom: 22px; max-width: 320px; }

.az-footer__socials { display: flex; gap: 8px; margin-bottom: 24px; }
.az-social {
    width: 36px; height: 36px; border: 1px solid var(--az-border); border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--az-text-muted); text-decoration: none; transition: all 0.22s;
    background: var(--hf-icon-bg);
}
.az-social:hover { border-color: var(--az-border-accent); color: var(--az-accent); background: var(--az-accent-dim); }
.az-social--instagram:hover { border-color: rgba(225,48,108,0.4); color: #e1306c; background: rgba(225,48,108,0.06); }
.az-social--whatsapp:hover  { border-color: rgba(37,211,102,0.4); color: #25d366; background: rgba(37,211,102,0.06); }
.az-social--telegram:hover  { border-color: rgba(40,167,236,0.4); color: #28a7ec; background: rgba(40,167,236,0.06); }

.az-footer__trust-badges { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.az-enamad-wrap { flex-shrink: 0; }
.az-enamad { display: block; text-decoration: none; transition: transform 0.2s, opacity 0.2s; }
.az-enamad:hover { transform: translateY(-2px); opacity: 0.9; }
.az-enamad img { width: 80px; height: auto; border-radius: 8px; border: 1px solid var(--az-border); display: block; }
.az-enamad--placeholder { cursor: default; }
.az-enamad__placeholder-inner {
    width: 80px; height: 90px;
    border: 1.5px dashed var(--az-border-accent); border-radius: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; background: var(--az-accent-dim); color: var(--az-brand);
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-align: center; padding: 8px;
}
[data-theme="dark"] .az-enamad__placeholder-inner { color: var(--az-accent); }
.az-enamad__placeholder-inner svg { opacity: 0.6; }
.az-enamad__hint { font-size: 9px; font-weight: 400; color: var(--az-text-muted); line-height: 1.3; }

.az-trust-chips { display: flex; flex-direction: column; gap: 6px; }
.az-trust-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; color: var(--az-text-sec);
    padding: 5px 10px; border: 1px solid var(--az-border); border-radius: 6px;
    background: var(--hf-icon-bg); transition: all 0.2s; white-space: nowrap;
}
.az-trust-chip svg { color: var(--az-accent); flex-shrink: 0; }
.az-trust-chip:hover { border-color: var(--az-border-accent); color: var(--az-text); }

.az-footer__col-title {
    font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--az-text-muted); margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 1px solid var(--az-border); position: relative;
}
.az-footer__col-title::after {
    content: ''; position: absolute; bottom: -1px; right: 0;
    width: 32px; height: 2px; background: var(--az-accent); border-radius: 1px;
}

.az-footer__links { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.az-footer__links a {
    display: flex; align-items: center; gap: 6px; padding: 7px 8px;
    font-size: 13px; color: var(--az-text-sec); text-decoration: none;
    border-radius: 7px; transition: all 0.2s; border: 1px solid transparent;
}
.az-footer__links a svg { color: var(--az-accent); opacity: 0.5; transition: opacity 0.2s; flex-shrink: 0; }
.az-footer__links a:hover { color: var(--az-text); background: var(--az-accent-dim); border-color: var(--az-border); padding-right: 12px; }
.az-footer__links a:hover svg { opacity: 1; }

.az-footer__contact { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.az-footer__contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--az-text-sec); line-height: 1.5; }
.az-footer__contact-ico {
    width: 28px; height: 28px;
    background: var(--az-accent-dim); border: 1px solid var(--az-border-accent); border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: var(--az-accent); flex-shrink: 0; margin-top: 1px;
}
.az-footer__contact a { color: var(--az-text-sec); text-decoration: none; transition: color 0.2s; }
.az-footer__contact a:hover { color: var(--az-accent); }

.az-footer__bottom { background: var(--hf-footer-deep); border-top: 1px solid var(--az-border); padding: 16px 0; }
.az-footer__bottom__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.az-footer__copy  { font-size: 12px; color: var(--az-text-sec); margin: 0; }
.az-footer__legal { font-size: 11px; color: var(--az-text-muted); margin: 0; opacity: 0.6; }

/* ══════════════════════════════════════════════════════════
   WOOCOMMERCE B2B — فاکتور رسمی
   جایگزین inline style در PricingManager.php
══════════════════════════════════════════════════════════ */
.ariaz-invoice-wrapper {
    margin: 16px 0;
    padding: 16px;
    background: var(--az-bg-panel);
    border: 1.5px solid var(--az-border);
    border-radius: 12px;
    transition: border-color 0.2s;
}
.ariaz-invoice-wrapper:focus-within {
    border-color: var(--az-border-accent);
}

.ariaz-invoice-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: var(--az-text);
    user-select: none;
}

.ariaz-invoice-label input[type="checkbox"] {
    width: 18px; height: 18px;
    cursor: pointer;
    accent-color: var(--az-accent);
    flex-shrink: 0;
}

.ariaz-b2b-fields {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--az-border);
}
.ariaz-b2b-fields.is-visible { display: block; }

.ariaz-b2b-note {
    font-size: 13px;
    color: var(--az-text-sec);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ariaz-b2b-note strong { color: var(--az-accent); }

.ariaz-b2b-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ariaz-b2b-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--az-text-muted);
    display: block;
    margin-bottom: 5px;
}

.ariaz-b2b-field input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    background: var(--az-bg-deep);
    border: 1.5px solid var(--az-border);
    border-radius: 8px;
    color: var(--az-text);
    font-family: var(--az-font, 'Vazirmatn', sans-serif);
    font-size: 13px;
    direction: rtl;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ariaz-b2b-field input[type="text"]:focus {
    border-color: var(--az-accent);
    box-shadow: 0 0 0 3px var(--az-accent-dim);
}
.ariaz-b2b-field input[type="text"]::placeholder { color: var(--az-text-muted); }

.ariaz-vat-preview {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--az-accent-dim);
    border: 1px solid var(--az-border-accent);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--az-brand);
    display: none;
}
[data-theme="dark"] .ariaz-vat-preview { color: var(--az-accent); }
.ariaz-vat-preview.is-visible { display: block; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .az-footer__grid { grid-template-columns: 1fr 1fr; }
    .az-footer__col--brand { grid-column: 1 / -1; }
    .az-footer__desc { max-width: 100%; }
    .az-footer__trust-badges { flex-direction: row; align-items: center; }
}

@media (max-width: 900px) {
    .az-nav { display: none; }
    .az-hamburger { display: flex; }
    .az-nav.is-open {
        display: flex; flex-direction: column;
        position: fixed; top: 0; right: 0;
        width: min(320px, 85vw); height: 100vh;
        background: var(--hf-mobile-nav-bg);
        border-left: 1px solid var(--az-border);
        padding: 72px 16px 24px; z-index: 999; overflow-y: auto;
        box-shadow: -8px 0 32px rgba(0,0,0,0.12);
        animation: hf-slide-in 0.3s ease both;
    }
    [data-theme="dark"] .az-nav.is-open { box-shadow: -16px 0 48px rgba(0,0,0,0.5); }
    @keyframes hf-slide-in { from{transform:translateX(100%)} to{transform:translateX(0)} }
    .az-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .az-nav__list li a { padding: 13px 16px; font-size: 15px; border-radius: 10px; }
    .az-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: none; box-shadow: none; padding: 0 0 0 16px; }
    .ariaz-b2b-field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .az-header__inner { height: 60px; }
    .az-footer__grid { grid-template-columns: 1fr; }
    .az-footer__trust-badges { flex-direction: column; align-items: flex-start; }
    .az-footer__top-bar__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .az-footer__bottom__inner { flex-direction: column; align-items: flex-start; }
    .az-logo__sub { display: none; }
    .az-topbar__left { display: none; }
    .az-topbar__badge { display: none; }
    .az-search-form__btn span { display: none; }
    .az-search-form__btn { padding: 9px 12px; }
}
