/* Mobile UI Enhancements */

/* Mobile Sliding Menu & Cart Drawer */
#mobile-sliding-menu,
#cart-drawer {
    transition: transform 0.3s ease-in-out;
    z-index: 100;
}

#mobile-sliding-menu.translate-x-0,
#cart-drawer.translate-x-0 {
    transform: translateX(0);
}

/* Tab Switching */
.tab-content.hidden {
    display: none;
}

/* Mobile Menu Specifics */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.mobile-menu-tabs {
    display: flex;
    border-bottom: 2px solid #f3f4f6;
}

.mobile-menu-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.mobile-menu-tab.active {
    color: #111827;
    border-bottom-color: #1d4ed8;
}

/* Category List */
.mobile-cat-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.mobile-cat-item:hover {
    background-color: #f9fafb;
}

.mobile-cat-icon {
    width: 1.25rem;
    margin-right: 0.75rem;
    color: #9ca3af;
}

/* Cart Drawer Specifics */
#cart-drawer {
    width: 100%;
    max-width: 400px;
    right: 0;
    transform: translateX(100%);
}

.cart-item-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 600;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #374151;
    background: white;
}

/* Filter Drawer / Bottom Sheet */
#filter-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1);
}

#filter-drawer.active {
    transform: translateY(0);
}

.floating-filter-btn {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
    z-index: 90;
    cursor: pointer;
}