/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-image {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.product-price {
    color: #28a745;
    font-size: 1.5rem;
    font-weight: bold;
}

.product-rating {
    color: #ffc107;
}

/* Buttons */
.btn-primary {
    background-color: #0d6efd;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-success {
    background-color: #28a745;
    border: none;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
}

/* Forms */
.form-control {
    border-radius: 5px;
    padding: 10px;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Cart Table */
.cart-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

/* Order Card */
.order-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-pending {
    background-color: #ffc107;
    color: #000;
}

.status-confirmed {
    background-color: #28a745;
    color: white;
}

.status-shipped {
    background-color: #17a2b8;
    color: white;
}

.status-delivered {
    background-color: #6c757d;
    color: white;
}

/* Admin Dashboard */
.dashboard-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
}

.stat-card-success {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card-warning {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card-info {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Alert Messages */
.alert {
    border-radius: 5px;
    border: none;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-image {
        height: 200px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
    text-decoration: none;
    color: inherit;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}
