/* components/header_shopping/css/mob_header.css */

:root {
    --sh-mob-primary: #e53935;
    --sh-mob-bg: #ffffff;
    --sh-mob-text: #333333;
    --sh-mob-border: #eeeeee;
}

/* Overlay for background when menu is open */
.sh-mob-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sh-mob-overlay.sh-active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Menu */
.sh-mob-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--sh-mob-bg);
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sh-mob-sidebar.sh-active {
    left: 0;
}

/* Sidebar Header */
.sh-mob-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--sh-mob-border);
}

.sh-mob-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--sh-mob-text);
    margin: 0;
}

.sh-mob-close {
    font-size: 20px;
    color: var(--sh-mob-text);
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    transition: background-color 0.2s, color 0.2s;
}

.sh-mob-close:hover,
.sh-mob-close:active {
    background-color: #e0e0e0;
    color: var(--sh-mob-primary);
}

/* Navigation List Stack */
.sh-mob-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sh-mob-item {
    border-bottom: 1px solid var(--sh-mob-border);
}

.sh-mob-link-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sh-mob-link {
    display: block;
    padding: 15px 25px;
    color: var(--sh-mob-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    transition: color 0.2s, background-color 0.2s;
}

.sh-mob-link:hover,
.sh-mob-link:focus {
    color: var(--sh-mob-primary);
    background-color: #f9f9f9;
}

.sh-mob-toggle {
    padding: 15px 25px;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    border-left: 1px solid var(--sh-mob-border);
    transition: transform 0.3s, color 0.2s;
}

.sh-mob-item.sh-open>.sh-mob-link-wrap>.sh-mob-toggle {
    transform: rotate(180deg);
    color: var(--sh-mob-primary);
}

/* Submenu block */
.sh-mob-submenu {
    display: none;
    background: #fafafa;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-mob-submenu .sh-mob-link {
    padding-left: 40px;
    font-size: 15px;
    font-weight: 400;
    border-top: 1px solid var(--sh-mob-border);
}

.sh-mob-submenu .sh-mob-toggle {
    border-left: 1px solid var(--sh-mob-border);
}

/* Level 3 Submenu */
.sh-mob-sub-submenu {
    display: none;
    background: #f0f0f0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-mob-sub-submenu .sh-mob-link {
    padding-left: 55px;
    font-size: 14px;
    color: #555;
    border-top: 1px solid #e0e0e0;
}

/* Cart Button */
.sh-mob-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    margin: 20px;
    background-color: var(--sh-mob-primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    /* Pill shape for modern look */
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px -1px rgba(229, 57, 53, 0.2), 0 2px 4px -1px rgba(229, 57, 53, 0.1);
    /* Subtle colored elevation */
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: none;
}

.sh-mob-cart-btn:hover,
.sh-mob-cart-btn:active {
    background-color: var(--sh-mob-primary);
    /* Keep color to avoid jarring flash */
    color: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(229, 57, 53, 0.3), 0 4px 6px -2px rgba(229, 57, 53, 0.15);
    /* Increase elevation on interaction */
    transform: translateY(-1px);
}

.sh-mob-cart-badge {
    background: #333;
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 10px;
}