/* Category Circles */
.category-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.category-circle:hover {
    border-color: #0d6efd;
    transform: scale(1.05);
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Cards */
.card {
    transition: all 0.3s ease;
}

.card-body {
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 150px;
    object-fit: contain;
    padding-top: 10px;
}

.no-image-placeholder {
    height: 100px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dee2e6;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Carousel Controls */
.categories-carousel, .sale-products-carousel {
    position: relative;
}

.carousel-control-prev, .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-circle {
        width: 60px;
        height: 60px;
    }
    
    .card-img-top, .no-image-placeholder {
        height: 150px;
    }
}

    .wallet-info {
        background: linear-gradient(45deg, #1a1f71, #0066eb);
        color: white;
        padding: 20px;
        border-radius: 10px;
        margin-bottom: 30px;
    }
    
    .wallet-info h3 {
        margin: 0;
        font-size: 1.2rem;
        color: white;
    }
    
    .wallet-info .balance {
        font-size: 2rem;
        font-weight: bold;
        margin-top: 10px;
    }
    
    .transaction-list {
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .transaction-item {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .transaction-item:last-child {
        border-bottom: none;
    }
    
    .transaction-info {
        flex-grow: 1;
    }
    
    .transaction-type {
        font-weight: bold;
        margin-bottom: 5px;
    }
    
    .transaction-date {
        font-size: 0.9rem;
        color: #666;
    }
    
    .transaction-amount {
        font-weight: bold;
        padding: 5px 15px;
        border-radius: 20px;
        min-width: 150px;
        text-align: center;
    }
    
    .transaction-amount.positive {
        background-color: #e8f5e9;
        color: #2e7d32;
    }
    
    .transaction-amount.negative {
        background-color: #fbe9e7;
        color: #c62828;
    }
    
    .empty-transactions {
        text-align: center;
        padding: 50px 20px;
        color: #666;
    }
    
    .empty-transactions i {
        font-size: 3rem;
        margin-bottom: 20px;
        color: #ddd;
    }
    
    .wallet-container {
        overflow-x: auto;
        padding: 20px 0;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
    }
    
    .wallet-container:active {
        cursor: grabbing;
    }
    
    .wallet-wrapper {
        display: flex;
        gap: 20px;
        padding: 10px;
        min-width: min-content;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
    
    .wallet-card {
        position: relative;
        width: 340px;
        height: 200px;
        flex-shrink: 0;
        background: linear-gradient(45deg, #1a1f71, #0066eb);
        border-radius: 15px;
        padding: 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
        color: white;
        transition: transform 0.3s ease;
    }
    
    .wallet-card:hover {
        transform: translateY(-5px);
    }
    
    .wallet-type {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 30px;
    }
    
    .wallet-balance {
        font-size: 1.8rem;
        font-weight: bold;
        margin-bottom: 20px;
    }
    
    .wallet-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        
        opacity: 0.1;
        border-radius: 15px;
        pointer-events: none;
    }
    
    .wallet-actions {
        position: absolute;
        bottom: 25px;
        right: 25px;
    }
    
    .wallet-actions .btn {
        background: rgba(255,255,255,0.2);
        border: none;
        color: white;
        padding: 8px 15px;
        border-radius: 20px;
        font-size: 0.9rem;
        backdrop-filter: blur(5px);
        transition: background 0.3s ease;
    }
    
    .wallet-actions .btn:hover {
        background: rgba(255,255,255,0.3);
    }
    
    .wallet-card:nth-child(2n) {
        background: linear-gradient(45deg, #6b1b9a, #4527a0);
    }
    
    .wallet-card:nth-child(3n) {
        background: linear-gradient(45deg, #00695c, #00897b);
    }
    
    .wallet-card:nth-child(4n) {
        background: linear-gradient(45deg, #c62828, #d32f2f);
    }
    
    .empty-wallet {
        text-align: center;
        padding: 50px 20px;
        color: #666;
    }
    
    .empty-wallet i {
        font-size: 3rem;
        margin-bottom: 20px;
        color: #ddd;
    }
    
    /* Custom scrollbar */
    .wallet-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .wallet-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .wallet-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .wallet-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    .navbar {
        background: linear-gradient(to left, #6f42c1, #007bff) !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .navbar .btn-outline-primary {
        color: white;
        border-color: rgba(255,255,255,0.5);
    }

    .navbar .btn-outline-primary:hover {
        background-color: rgba(255,255,255,0.1);
        border-color: white;
    }

    .navbar .btn-outline-secondary {
        color: white;
        border-color: rgba(255,255,255,0.5);
    }

    .navbar .btn-outline-secondary:hover {
        background-color: rgba(255,255,255,0.1);
        border-color: white;
    }

    .navbar .btn-outline-success {
        color: white;
        border-color: rgba(255,255,255,0.5);
    }

    .navbar .btn-outline-success:hover {
        background-color: rgba(255,255,255,0.1);
        border-color: white;
    }

    .navbar .form-control {
        background-color: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.2);
        color: white;
    }

    .navbar .form-control::placeholder {
        color: rgba(255,255,255,0.7);
    }

    .navbar .form-control:focus {
        background-color: rgba(255,255,255,0.15);
        border-color: rgba(255,255,255,0.3);
        color: white;
        box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.15);
    }

    .navbar .container {
        display: flex;
        align-items: center;
    }
    
    .store-selector {
        min-width: 200px;
        position: relative;
    }
    
    .store-selector .dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }
    
    .search-box {
        margin: 0 1rem;
    }
    
    .search-box form {
        display: flex;
        gap: 10px;
    }
    
    .search-box input {
        flex-grow: 1;
    }
    
    .user-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .user-actions .dropdown-menu {
        right: auto !important;
        left: 0 !important;
    }
    
    @media (max-width: 768px) {
        .navbar .container {
            flex-direction: column;
            gap: 10px;
        }
        
        .store-selector {
            width: 100%;
            min-width: auto;
        }
        
        .search-box {
            width: 100%;
            margin: 10px 0;
        }
        
        .user-actions {
            width: 100%;
            justify-content: space-between;
        }
        
        .dropdown-menu {
            width: 100%;
            right: 0 !important;
            left: 0 !important;
        }
        
        .user-actions .btn {
            display: flex;
            align-items: center;
            gap: 5px;
        }
    }
