:root {
    --primary: #d98c2b;
    --primary-dark: #b86f1a;
    --primary-light: #f0bc6e;
    --secondary: #8b5a2b;
    --accent: #f5a623;
    --dark: #4a3728;
    --light: #fff8f0;
    --gray: #f5efe7;
    --text: #3e2a27;
    --success: #6c9e4f;
    --danger: #e27c6e;
    --warning: #f0a44c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Georgia', serif;
    background: linear-gradient(135deg, var(--light) 0%, var(--gray) 100%);
    color: var(--text);
    line-height: 1.6;
}

/* Header & Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: all 0.3s;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/images/bakery-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 76px;
    border-radius: 0 0 30px 30px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
}

.product-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .product-image {
    transform: scale(1.05);
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.product-rating {
    color: var(--accent);
    margin: 10px 0;
}

/* Buttons */
.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217,140,43,0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #5a8f3a 100%);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #c55a4a 100%);
}

/* Cart & Order */
.cart-item {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-price {
    font-weight: bold;
    color: var(--primary);
}

.order-summary {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.order-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.status-new { background: var(--warning); color: white; }
.status-confirmed { background: var(--primary); color: white; }
.status-progress { background: var(--accent); color: white; }
.status-delivered { background: var(--success); color: white; }
.status-cancelled { background: var(--danger); color: white; }

/* Forms */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e0d6cc;
    padding: 12px 16px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(217,140,43,0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #2c1f16 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent);
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary);
}

/* Admin Panel */
.admin-sidebar {
    background: var(--dark);
    min-height: 100vh;
    border-radius: 0 20px 20px 0;
    padding: 2rem 1rem;
}

.admin-sidebar a {
    color: white;
    display: block;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: var(--primary);
    transform: translateX(5px);
}

.admin-card {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.admin-stats {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 350px;
        margin-top: 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .admin-sidebar {
        min-height: auto;
        margin-bottom: 2rem;
        border-radius: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Glass effect */
.glass {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}