/* Mobile Drawer */
.mht-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mht-overlay.mht-open {
    display: block;
    opacity: 1;
}

.mht-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    overflow-y: auto;
}

.mht-drawer.mht-open {
    transform: translateX(0);
}

/* Drawer Header */
.mht-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.mht-drawer-logo img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mht-close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #161616;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.mht-close-btn:hover {
    background: #f5f5f5;
}

/* Drawer Body - Nav */
.mht-drawer-body {
    flex: 1;
    padding: 0.5rem 0;
}

.mht-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mht-nav-list li a {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #161616;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s, color 0.2s;
}

.mht-nav-list li a:hover {
    background: #f9f9f9;
    color: #2B5450;
}

.mht-nav-list li.current-menu-item > a {
    color: #E5C683;
    font-weight: 600;
}

/* Sub-menu */
.mht-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
}

.mht-nav-list .sub-menu li a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #555;
}

/* Drawer Footer - Cart */
.mht-drawer-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.mht-cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #161616;
    text-decoration: none;
    padding: 0.75rem 1rem;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.2s;
}

.mht-cart-link:hover {
    background: #efefef;
}

.mht-cart-icon {
    font-size: 1.25rem;
}

.mht-cart-count {
    margin-left: auto;
    background: #E5C683;
    color: #161616;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Only show on mobile */
@media (min-width: 768px) {
    .mht-drawer,
    .mht-overlay {
        display: none !important;
    }
}
