:root {
    --primary-color: #FF6B00;
    --secondary-color: #FF8C00;
    --dark-color: #333333;
    --light-color: #F8F9FA;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    padding-top: 76px; /* For fixed navbar */
}

/* Header Styles */
.navbar-brand {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: white !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFECB3 100%);
    padding: 100px 0;
}

.hero-section h1 {
    font-family: 'Noto Sans Devanagari', sans-serif;
    color: var(--dark-color);
}

/* Category Cards */
.category-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    color: inherit;
}

.category-card .card {
    transition: all 0.3s ease;
}

.category-card:hover .card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.product-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.25rem;
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--warning-color);
    margin-bottom: 1.5rem;
}

.footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--warning-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
}

/* Buttons */
.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.btn-warning:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-outline-warning {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-warning:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Badge */
.badge-warning {
    background-color: var(--primary-color);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 0, 0.25);
}

/* Admin Dashboard */
.admin-sidebar {
    min-height: calc(100vh - 76px);
    background-color: #343a40;
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: #ddd;
    padding: 0.75rem 1rem !important;
    border-radius: 5px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.admin-content {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 76px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .product-card .card-body {
        padding: 1rem;
    }
}

/* Admin Dashboard Styles */
.admin-sidebar {
    min-height: calc(100vh - 76px);
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
}

.admin-sidebar .nav-link {
    color: #bdc3c7;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 107, 0, 0.1);
}

.admin-sidebar .nav-link.active {
    color: white;
    background-color: var(--primary-color);
}

.admin-content {
    background-color: #f8f9fa;
    min-height: calc(100vh - 76px);
}

/* DataTable Customization */
.dataTables_wrapper {
    padding: 0 !important;
}

.dataTables_filter input {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 5px 10px !important;
}

/* Chart Containers */
.chart-area, .chart-pie {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Status Badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Notification System */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Fix for missing placeholder images */
img[src*="placeholder.jpg"] {
    background-color: #f8f9fa;
    padding: 20px;
    border: 1px dashed #dee2e6;
}

/* Product image fallback */
.product-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    background-color: #f8f9fa;
}

.product-card img:before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
}

.product-card img:after {
    content: "Image not available";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 12px;
}