/**
 * Mobile-Specific Stylesheet
 * Loaded conditionally via media="(max-width: 991.98px)".
 * Contains styling exclusively for mobile and small viewport enhancements.
 */

/* ==========================================================================
   Mobile Navigation Offcanvas Drawer
   ========================================================================== */
.mobile-nav-offcanvas {
    width: 320px;
    /*max-width: 85vw;*/
    max-width: 100vw;
}

/* Touch-friendly navigation items */
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*padding: 0.75rem 0.5rem;*/
    padding: 0.75rem 0rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary, #1A1A1A);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    color: var(--color-accent, #C5A880);
    background-color: rgba(0, 0, 0, 0.02);
}

.mobile-nav-link.active {
    color: var(--color-accent, #C5A880);
    font-weight: 600;
}

/* Submenu collapse styling */
.mobile-submenu {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.015);
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.5rem;
    font-size: 0.875rem;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-submenu-link:hover,
.mobile-submenu-link:active {
    color: var(--color-primary, #1A1A1A);
    background-color: rgba(0, 0, 0, 0.03);
}

/* Chevron rotation for accordion triggers */
.mobile-nav-link[aria-expanded="true"] .submenu-chevron {
    transform: rotate(180deg);
}

.submenu-chevron {
    transition: transform 0.2s ease-in-out;
    font-size: 0.8rem;
}

.offcanvas {
    background-clip: unset;
}

/* ==========================================================================
   Product Listing: Sticky Bottom Bar & Offcanvas Components
   ========================================================================== */
.mobile-listing-bottom-bar {
    z-index: 1030;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-listing-pb {
    padding-bottom: 5rem !important;
}

.mobile-filter-offcanvas {
    width: 100vw !important;
    max-width: 100vw !important;
}

.mobile-sort-offcanvas {
    max-height: 65vh !important;
    height: 65vh !important;
}

.sort-option-btn.active {
    background-color: rgba(var(--bs-primary-rgb, 107, 33, 168), 0.08);
    color: var(--color-primary, #6b21a8);
}

/* ==========================================================================
   Two-Column Mobile Filter Drawer
   ========================================================================== */
.mobile-filter-grid {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    height: 100%;
}

/* Left Categories Column */
.mobile-filter-nav {
    width: 38%;
    min-width: 120px;
    max-width: 160px;
    background-color: #f8fafc;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
}

.mobile-filter-tab-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    text-align: left;
    border: none;
    background: transparent;
    border-bottom: 1px solid #edf2f7;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.mobile-filter-tab-btn.active {
    color: var(--color-primary, #1A1A1A);
    font-weight: 700;
    background-color: #ffffff;
    border-left-color: var(--color-primary, #6b21a8);
}

/* Right Options Column */
.mobile-filter-content {
    width: 62%;
    flex-grow: 1;
    overflow-y: auto;
    background-color: #ffffff;
}

.mobile-filter-pane {
    padding: 1rem;
}

/* Full-Width Footer */
.mobile-filter-footer {
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 0.85rem 1rem;
}