:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background: var(--light-color);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.product-card .price {
    color: var(--primary-color);
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
}

/* Cart Badge */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: 50px;
}

footer a {
    transition: color 0.3s;
}

footer a:hover {
    color: white !important;
    text-decoration: none;
}

/* Cart Page */
.cart-item {
    padding: 15px;
    border-radius: 10px;
    background: white;
}

.cart-quantity {
    width: 80px;
}

/* Checkout Page */
.payment-methods {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.payment-methods .form-check {
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-bottom: 10px;
    background: white;
}

.payment-methods .form-check:hover {
    border-color: var(--primary-color);
}

/* Order Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline .d-flex {
    position: relative;
}

.timeline .d-flex::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid white;
    z-index: 1;
}

/* Admin Panel */
.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-color), #1a202c);
    color: white;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    padding-left: 25px;
}

.admin-sidebar .nav-link i {
    width: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-card img {
        height: 150px;
    }
    
    .admin-sidebar {
        width: 100%;
        min-height: auto;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    animation: slideIn 0.3s ease;
}

.toast.success { background: var(--success-color); }
.toast.error { background: var(--danger-color); }
.toast.warning { background: var(--warning-color); }
.toast.info { background: var(--primary-color); }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Product Gallery */
.gallery-thumb {
    cursor: pointer;
    transition: opacity 0.3s;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

/* Rating Stars */
.rating {
    color: #ffd700;
}

.rating .fa-star-half-alt {
    color: #ffd700;
}