/* Site-wide styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Sidebar styles */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin: 0.125rem 0;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar .nav-link.active,
.sidebar .nav-link:active {
    background-color: #0d6efd;
    color: white;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Product card */
.product-card {
    height: 100%;
}

/* Responsive navbar */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        height: auto;
    }
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading animation */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Featured Shops Container */
.featured-shops-container {
    padding: 0.5rem 0;
}

.featured-shop-item {
    display: inline-block;
}

.shop-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.3s ease;
    padding: 0.25rem;
}

.shop-icon-wrapper:hover {
    transform: scale(1.1);
}

.shop-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0d6efd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.shop-default-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 2px solid #0d6efd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.shop-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-shop-item:hover .shop-name {
    color: #0d6efd;
}
