/* B2B Food - Component Styles */

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-item a:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: #6c757d;
}

.breadcrumb-item i {
    font-size: 0.85rem;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    width: 100%;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 10px 20px;
    padding-right: 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    outline: none;
}

.search-input:focus {
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-input::placeholder {
    color: #adb5bd;
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    transform: translateY(-50%) scale(1.05);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.98);
}

.search-btn i {
    font-size: 0.9rem;
}

/* Mobile Search */
@media (max-width: 991px) {
    .search-input-group {
        max-width: 100%;
    }
    
    .search-input {
        font-size: 0.9rem;
        padding: 8px 16px;
        padding-right: 45px;
    }
    
    .search-btn {
        width: 36px;
        height: 36px;
    }
}

/* Desktop Search - Navbar Integration */
@media (min-width: 992px) {
    .navbar .search-input-group {
        max-width: 300px;
    }
    
    .navbar .search-input {
        background-color: rgba(248, 249, 250, 0.5);
        border-color: rgba(233, 236, 239, 0.5);
    }
    
    .navbar .search-input:focus {
        background-color: #fff;
        border-color: #007bff;
    }
}

/* ============================================
   NAVIGATION ENHANCEMENTS
   ============================================ */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background-color: #fff;
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #212529;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: #007bff;
}

.nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #007bff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* ============================================
   WISHLIST & CART BUTTONS
   ============================================ */
.nav-link .fa-heart {
    color: #dc3545;
    font-size: 1.1rem;
}

.nav-link .fa-heart:hover {
    color: #c82333;
    transform: scale(1.1);
}

.btn-outline-success {
    border: 2px solid #28a745;
    color: #28a745;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    font-size: 0.7rem;
    padding: 0.35em 0.5em;
    font-weight: 600;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.badge.rounded-pill {
    border-radius: 50rem;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-wrapper {
        padding: 8px 0;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}
