/* =============================================
   Shared Overlay (used by mobile nav + cart drawer)
   ============================================= */
.hd3-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 7, 0.42);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hd3-overlay.active {
    display: block;
    opacity: 1;
}

/* =============================================
   Mobile Menu Panel — scoped under .hd3-mobile-menu
   ============================================= */
.hd3-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: #ffffff;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.hd3-mobile-menu.active {
    transform: translateX(0);
}

/* ── Header ── */
.hd3-mobile-menu .hd3-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.hd3-mobile-menu .hd3-mobile-brand {
    font-family: var(--semantic-font-heading, 'Inter', sans-serif);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.hd3-mobile-menu .hd3-mobile-brand-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.hd3-mobile-menu .hd3-mobile-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    opacity: 0.6;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.hd3-mobile-menu .hd3-mobile-close:hover {
    opacity: 1;
    background: #f5f5f5;
}

.hd3-mobile-menu .hd3-mobile-close svg,
.hd3-mobile-menu .hd3-mobile-btn-primary svg,
.hd3-mobile-menu .hd3-mobile-btn-secondary svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.9;
}

/* ── Nav Links ── */
.hd3-mobile-menu .hd3-mobile-nav {
    flex: 1;
    padding: 16px 0;
}

.hd3-mobile-menu .hd3-mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hd3-mobile-menu .hd3-mobile-nav-item {
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.hd3-mobile-menu .hd3-mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.hd3-mobile-menu .hd3-mobile-nav-link:hover {
    background: #f4f8f1;
    opacity: 1;
}

.hd3-mobile-menu .hd3-mobile-nav-label {
    flex: 1;
}

/* ── Submenu Toggle ── */
.hd3-mobile-menu .hd3-mobile-nav-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    transition: transform 0.3s ease;
    z-index: 5;
}

.hd3-mobile-menu .hd3-mobile-nav-toggle svg {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.hd3-mobile-menu .hd3-mobile-nav-toggle:hover svg {
    opacity: 1;
}

.hd3-mobile-menu .hd3-mobile-nav-item.is-open > .hd3-mobile-nav-toggle {
    transform: rotate(180deg);
}

.hd3-mobile-menu .hd3-mobile-nav-item > .hd3-mobile-nav-list {
    display: none;
}

.hd3-mobile-menu .hd3-mobile-nav-item.is-open > .hd3-mobile-nav-list {
    display: block;
    background: #fafafa;
}

.hd3-mobile-menu .hd3-mobile-nav-list .hd3-mobile-nav-list {
    padding-left: 16px;
    border-top: 1px solid #f5f5f5;
}

.hd3-mobile-menu .hd3-mobile-nav-list .hd3-mobile-nav-list .hd3-mobile-nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.6px;
    opacity: 0.7;
    padding: 12px 24px;
}

/* ── Footer ── */
.hd3-mobile-menu .hd3-mobile-footer {
    padding: 20px 24px;
    border-top: 1px solid #f0f0f0;
}

.hd3-mobile-menu .hd3-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.hd3-mobile-menu .hd3-mobile-btn-primary,
.hd3-mobile-menu .hd3-mobile-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: var(--component-button-radius);
}

.hd3-mobile-menu .hd3-mobile-btn-primary {
    background: #1a1a1a;
    color: #ffffff;
}

.hd3-mobile-menu .hd3-mobile-btn-primary:hover {
    background: #333333;
    color: #ffffff;
}

.hd3-mobile-menu .hd3-mobile-btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #d0d0d0;
}

.hd3-mobile-menu .hd3-mobile-btn-secondary:hover {
    background: #f5f5f5;
}

.hd3-mobile-menu .hd3-mobile-copyright {
    font-family: var(--semantic-font-body, 'Inter', sans-serif);
    font-size: 0.7rem;
    color: #1a1a1a;
    opacity: 0.35;
    text-align: center;
    margin: 0;
}
