/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

.card-img-top {
    object-fit: cover;
    height: 200px;
}

/* Category Cards */
.category-card {
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

    .category-card:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
}

    .btn-outline-primary:hover {
        background: #667eea;
        color: white;
    }

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

    .form-control:focus, .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    }

/* Badges */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

    .table thead th {
        border-bottom: 2px solid #dee2e6;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.875rem;
        letter-spacing: 0.5px;
    }

    .table tbody tr:hover {
        background-color: rgba(102, 126, 234, 0.05);
    }

/* Cart Items */
.cart-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

    .cart-item:last-child {
        border-bottom: none;
    }

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Loading Spinner */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Utility Classes */
.cursor-pointer {
    cursor: pointer;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer Styles */
footer {
    margin-top: auto;
}

    footer a {
        text-decoration: none;
        transition: color 0.3s;
    }

        footer a:hover {
            color: #667eea !important;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .btn {
        padding: 6px 15px;
        font-size: 0.875rem;
    }

    .display-4 {
        font-size: 2rem;
    }
}

/* Animation for loading */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Toast notifications */
.toast {
    min-width: 300px;
    z-index: 9999;
}

/* Price tags */
.price-tag {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
}

.discount-price {
    color: #dc3545;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Star ratings */
.star-rating {
    color: #ffc107;
}

    .star-rating .empty {
        color: #e9ecef;
    }

/* Quantity controls */
.quantity-control {
    display: flex;
    align-items: center;
}

    .quantity-control button {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .quantity-control input {
        width: 50px;
        text-align: center;
        margin: 0 5px;
    }

/* Breadcrumb customization */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Card hover effects */
.hover-shadow {
    transition: box-shadow 0.3s;
}

    .hover-shadow:hover {
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-bg-reverse {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Custom shadows */
.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.shadow-medium {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.shadow-strong {
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}
/* Role selection cards */
.role-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

    .role-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .role-card.selected {
        border-color: var(--bs-primary);
        background-color: rgba(var(--bs-primary-rgb), 0.05);
    }

        .role-card.selected.user {
            border-color: var(--bs-primary);
            background-color: rgba(13, 110, 253, 0.1);
        }

        .role-card.selected.vendor {
            border-color: var(--bs-success);
            background-color: rgba(25, 135, 84, 0.1);
        }

        .role-card.selected.admin {
            border-color: var(--bs-danger);
            background-color: rgba(220, 53, 69, 0.1);
        }

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.role-card input[type="radio"] {
    display: none;
}

/* ========================================
   NAVBAR BRAND - ANIMATED BLUE GRADIENT
   ======================================== */

.navbar-brand {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #60a5fa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    position: relative;
    transition: all 0.3s ease;
}

    .navbar-brand:hover {
        transform: scale(1.05);
        filter: brightness(1.2);
    }

/* Gradient Animation */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Optional: Add icon before brand name */
.navbar-brand i {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 8px;
    animation: iconPulse 2s ease infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}


/* ========================================
   SEARCH BAR - MODERN BLUE THEME
   ======================================== */

.search-form {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    outline: none;
}

    .search-input:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
        background: white;
    }

    .search-input::placeholder {
        color: #94a3b8;
    }

/* Search Icon */
.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-input:focus ~ .search-icon {
    color: #3b82f6;
}

/* Search Button */
.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

    .search-btn:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }

    .search-btn i {
        font-size: 0.9rem;
    }


