/* Mobile Offcanvas Menu Styles */

/* Offcanvas Container */
.offcanvas {
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-title {
    color: white;
}

.btn-close {
    background-color: var(--secondary-color);
    opacity: 1;
}

/* Mobile Search */
.mobile-search .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px 0 0 25px;
    padding: 10px 15px;
}

.mobile-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-search .btn {
    border-radius: 0 25px 25px 0;
    padding: 10px 15px;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 5px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

.mobile-nav-link.dropdown-toggle {
    justify-content: space-between;
}

.mobile-nav-link.dropdown-toggle i.fa-chevron-down {
    transition: transform 0.3s ease;
}

.mobile-nav-link.dropdown-toggle[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile Dropdown Menu */
.mobile-dropdown-menu {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 5px 0;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 0.95rem;
}

.mobile-dropdown-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.mobile-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    transform: translateX(5px);
}

.mobile-dropdown-item:hover i {
    background: var(--secondary-color);
    color: var(--dark-color);
}

/* Mobile Nav Divider */
.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

/* Mobile Cart Button */
.mobile-cart-button .btn {
    border-radius: 30px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-cart-button .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Search Bar */
.mobile-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), #6b071a);
    padding: 15px 0;
    z-index: 1050;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-search-bar.active {
    transform: translateY(0);
}

.mobile-search-bar .input-group {
    position: relative;
}

.mobile-search-bar .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px 0 0 25px;
    padding: 10px 15px;
    height: 46px;
}

.mobile-search-bar .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-search-bar .btn-secondary {
    border-radius: 0;
    height: 46px;
}

.mobile-search-bar .close-search {
    border-radius: 0 25px 25px 0;
    height: 46px;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.mobile-search-bar .close-search:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Adjustments */
@media (min-width: 992px) {
    .offcanvas {
        display: none;
    }

    .mobile-search-bar {
        display: none;
    }
}
