/* Mobile-specific styles */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1001; /* Increased z-index */
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item span {
    font-size: 12px;
}

.bottom-nav-item.active {
    color: #007bff; /* Or your primary color */
}

@media (max-width: 1199.98px) {
    .top-header .navbar {
        justify-content: space-between;
    }

    .top-header .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .top-header .mobile-menu-btn {
        order: -1;
    }
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px; /* prevent overlap */
    }
    .hero-section {
        height: calc(100vh - 60px);
    }
}

@media (max-width: 575.98px) { /* Targeting smaller mobile screens */
    .bottom-nav {
        padding: 8px 0; /* Slightly less vertical padding */
    }
    .bottom-nav-item {
        flex: 0 0 20%; /* Each item takes 20% width for 5 items */
        max-width: 20%; /* Ensure it doesn't exceed 20% */
    }
    .bottom-nav-item i {
        font-size: 18px; /* Slightly smaller icons */
    }
    .bottom-nav-item span {
        font-size: 10px; /* Slightly smaller text */
    }
}

@media (max-width: 767.98px) {
    .hero-section .swiper-slide picture,
    .hero-section .swiper-slide img.hero-img {
        width: 100%;
        height: auto;
        display: block;
    }
    .product-tab-menu {
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar; /* Internet Explorer 10+ */
        scrollbar-width: thin; /* Firefox */
        scrollbar-color: #888 #f1f1f1; /* Firefox */
    }
    .product-tab-menu::-webkit-scrollbar {
        height: 5px;
    }
    .product-tab-menu::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    .product-tab-menu::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 5px;
    }
    .product-tab-menu::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    .product-tab-menu .nav-pills {
        flex-wrap: nowrap;
    }
    .product-tab-menu .nav-pills .nav-link {
        margin: 5px;
    }
    .product-grid .card-img-top {
        height: 231px;
    }
}