/* Bottom Navigation for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e5e5;
    padding: 8px 0 12px;
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Show on mobile devices */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }
    
    /* Add padding to body to prevent content overlap */
    body {
        padding-bottom: 80px;
    }
    
    /* Adjust sections padding for bottom nav */
    .products-section {
        padding-bottom: 40px;
    }
    
    .features-section {
        padding-bottom: 40px;
    }
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    padding: 6px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
    position: relative;
    flex: 1;
    max-width: 70px;
}

.bottom-nav-item.active {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.bottom-nav-item:hover {
    color: #333;
    background: #f8f9fa;
}

.bottom-nav-item:not(.center).active {
    transform: translateY(-2px);
}

.bottom-nav-icon {
    font-size: 20px;
    margin-bottom: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Center button special styling */
.bottom-nav-item.center {
    transform: translateY(-8px);
}

.bottom-nav-item.center .bottom-nav-icon {
    background: linear-gradient(135deg, #d4af37 0%, #f7dc6f 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    margin-bottom: 6px;
    border: 3px solid white;
}

.bottom-nav-item.center:hover .bottom-nav-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.bottom-nav-item.center.active .bottom-nav-icon {
    background: linear-gradient(135deg, #b8941f 0%, #d4af37 100%);
    transform: scale(1.02);
}

.bottom-nav-text {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

.bottom-nav-item.center .bottom-nav-text {
    font-weight: 600;
    font-size: 9px;
}

/* Badge notification */
.bottom-nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Hide badge by default */
.bottom-nav-badge.d-none {
    display: none !important;
}

/* Ripple effect on tap */
.bottom-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.bottom-nav-item:active::before {
    width: 60px;
    height: 60px;
}

.bottom-nav-item.center:active::before {
    width: 70px;
    height: 70px;
}

/* Safe area for iPhone X and newer */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .bottom-nav-container {
        padding: 0 5px;
    }
    
    .bottom-nav-item {
        min-width: 50px;
        max-width: 60px;
        padding: 4px 6px;
    }
    
    .bottom-nav-icon {
        font-size: 18px;
    }
    
    .bottom-nav-item.center .bottom-nav-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .bottom-nav-text {
        font-size: 9px;
    }
}