/* Mobile Sticky Footer */
.mobile-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #e9ecef;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    display: none; /* Hidden by default, shown on mobile */
    padding: 15px;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.mobile-sticky-cart {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.mobile-cart-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mobile-price {
    text-align: left;
    margin-bottom: 0;
    flex-shrink: 0;
}

.mobile-price-amount {
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
    line-height: 1.1;
    display: block;
}

.mobile-price-final {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
    line-height: 1.1;
}

.mobile-price-suffix {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.mobile-cart-btn,
.mobile-cart-button {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 4px; /* Daha köşeli */
    padding: 16px 20px; /* Daha büyük padding */
    font-size: 16px; /* Daha büyük font */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
    flex: 1; /* Kalan alanı kapla */
    min-height: 54px; /* Daha yüksek buton */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-cart-btn:hover {
    background: linear-gradient(135deg, #0056b3, #003d82);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.mobile-cart-btn:active {
    transform: translateY(0);
}

.mobile-cart-btn i {
    font-size: 14px;
}

.mobile-nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 10px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    min-height: 60px;
    position: relative;
    overflow: hidden;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.1), transparent);
    transition: left 0.6s;
}

.mobile-nav-item:hover::before {
    left: 100%;
}

.mobile-nav-item:hover {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.mobile-nav-item:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #cce7ff 0%, #b3daff 100%);
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    position: relative;
    z-index: 2;
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

/* Show mobile sticky footer only on mobile devices */
@media (max-width: 768px) {
    .mobile-sticky-footer {
        display: flex;
    }
    
    /* Add bottom padding to body to prevent content overlap */
    body {
        padding-bottom: 120px;
    }
    
    /* Ensure main content doesn't get hidden behind footer */
    .container {
        margin-bottom: 120px;
    }
    
    .product-detail {
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .mobile-cart-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 130px;
    }
    
    .mobile-cart-btn span {
        font-size: 12px;
    }
    
    .mobile-price-final {
        font-size: 18px;
    }
    
    .mobile-nav-item {
        padding: 6px 8px;
        min-height: 55px;
    }
    
    .mobile-nav-item i {
        font-size: 18px;
    }
    
    .mobile-nav-item span {
        font-size: 10px;
    }
    
    /* Adjust body padding for smaller screens */
    body {
        padding-bottom: 110px;
    }
    
    .container {
        margin-bottom: 110px;
    }
}

/* Animation for mobile sticky footer */
@keyframes mobileFooterSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-sticky-footer {
    animation: mobileFooterSlideUp 0.3s ease-out;
}

/* Ensure footer doesn't interfere with desktop layout */
@media (min-width: 769px) {
    .mobile-sticky-footer {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .container {
        margin-bottom: 0;
    }
}
