/* Custom Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Category Cards */
.category-card {
    transition: all 0.3s;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0099ff 100%);
}

/* Rating Stars */
.rating {
    color: #ffc107;
}

.rating i {
    margin-right: 2px;
}

/* Cart Badge */
#cart-count {
    position: relative;
    top: -10px;
    left: -5px;
}

/* Product Thumbnails */
.thumbnail-container {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

.thumbnail-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--primary-color);
}

/* Order Status Timeline */
.status-timeline {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.status-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.status-item .icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.status-item.completed .icon {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.status-item.active .icon {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Tables */
@media (max-width: 768px) {
    .table-responsive-cards thead {
        display: none;
    }
    
    .table-responsive-cards tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
    }
    
    .table-responsive-cards tbody td {
        display: block;
        text-align: right;
        border: none;
        padding: 0.5rem;
    }
    
    .table-responsive-cards tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 150px;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
        max-width: 80%;
    }
    
    .thumbnail-image {
        width: 60px;
        height: 60px;
    }
}