/* Wura Ola Bread & Pastries - Main Stylesheet */
:root {
    --cream: #FFF8F0;
    --cream-dark: #F5E6D3;
    --brown: #5D4037;
    --brown-light: #8D6E63;
    --brown-dark: #3E2723;
    --gold: #D4A853;
    --gold-light: #E8C97A;
    --gold-dark: #B8860B;
    --white: #FFFFFF;
    --off-white: #FFFDF9;
    --text-dark: #2C1810;
    --text-muted: #6D5D4E;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #f44336;
    --info: #2196F3;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--brown-dark); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
a { color: var(--brown); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* Top Bar */
.top-bar {
    background: var(--brown-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar a { color: var(--gold-light); }
.top-bar a:hover { color: var(--gold); }

/* Navigation */
.main-navbar {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--gold) !important;
}
.main-navbar .navbar-brand img { height: 45px; }
.main-navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: var(--gold) !important;
}
.main-navbar .cart-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.main-navbar .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: var(--brown-dark);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white) !important;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212,168,83,0.4);
}
.btn-brown {
    background: var(--brown);
    color: var(--white) !important;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-brown:hover {
    background: var(--brown-dark);
    transform: translateY(-2px);
}
.btn-outline-gold {
    background: transparent;
    color: var(--gold) !important;
    border: 2px solid var(--gold);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--white) !important;
}
.btn-whatsapp {
    background: #25D366;
    color: white !important;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-slide {
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 50%, var(--brown-light) 100%);
    position: relative;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="150" cy="150" r="60" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: 200px 200px;
}
.hero-content { position: relative; z-index: 2; }
.hero-subtitle {
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}
.hero-desc { font-size: 1.2rem; line-height: 1.6; }
.hero-image img {
    max-height: 450px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}
.floating { animation: float 3s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Section Styles */
.section-padding { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 15px;
}
.bg-cream { background: var(--cream); }
.bg-brown { background: var(--brown); }
.bg-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.product-card .product-image {
    height: 250px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-card .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.product-card .product-body {
    padding: 20px;
}
.product-card .product-category {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product-card .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-dark);
}
.product-card .product-price .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 8px;
}
.product-card .product-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}
.product-card .product-actions .btn {
    flex: 1;
    padding: 8px 15px;
    font-size: 0.85rem;
}

/* Cart Styles */
.cart-table img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-table input[type="number"] { width: 70px; text-align: center; }
.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.cart-summary h5 { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--cream); }

/* Checkout */
.checkout-form .form-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.checkout-form .form-section h5 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cream);
}

/* Forms */
.form-control, .form-select {
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
}
.form-label { font-weight: 600; color: var(--brown); margin-bottom: 6px; }

/* Features Section */
.feature-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.feature-box .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}
.feature-box h5 { margin-bottom: 10px; }
.feature-box p { color: var(--text-muted); font-size: 0.9rem; }

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: Georgia, serif;
}
.testimonial-card .stars { color: var(--gold); }
.testimonial-card .testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin: 15px 0;
    line-height: 1.6;
}
.testimonial-card .customer-info { display: flex; align-items: center; gap: 12px; }
.testimonial-card .customer-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--brown);
}

/* Blog */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.blog-card .blog-image {
    height: 220px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.blog-card:hover .blog-image img { transform: scale(1.05); }
.blog-card .blog-body { padding: 25px; }
.blog-card .blog-meta { color: var(--text-muted); font-size: 0.85rem; }
.blog-card .blog-title { font-size: 1.2rem; margin: 10px 0; }
.blog-card .blog-excerpt { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}
.site-footer h5 {
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
}
.site-footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.site-footer a:hover {
    color: var(--gold);
    padding-left: 5px;
}
.site-footer .footer-contact li {
    list-style: none;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.site-footer .footer-contact i { color: var(--gold); margin-top: 4px; }
.site-footer .social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: var(--transition);
}
.site-footer .social-links a:hover {
    background: var(--gold);
    color: var(--brown-dark);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

/* Admin Styles */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--brown-dark);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: var(--transition);
}
.admin-sidebar .sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.admin-sidebar .sidebar-brand h5 { color: var(--gold); margin: 0; }
.admin-sidebar .nav-item { width: 100%; }
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--gold);
}
.admin-sidebar .nav-link i { width: 20px; text-align: center; }
.admin-content {
    margin-left: 260px;
    flex: 1;
    padding: 20px 30px;
    background: #f8f6f3;
    min-height: 100vh;
}
.admin-header {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dashboard Cards */
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brown-dark);
}
.stat-card .stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* Tables */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}
.table { margin: 0; }
.table thead th {
    background: var(--cream);
    color: var(--brown);
    font-weight: 600;
    border: none;
    padding: 12px 15px;
    white-space: nowrap;
}
.table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-color: var(--cream);
}

/* Alerts & Badges */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    padding: 15px 20px;
}
.badge { padding: 6px 12px; font-weight: 500; }

/* Modal */
.modal-content {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    background: var(--cream);
    border-radius: var(--radius) var(--radius) 0 0;
    border: none;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}
.page-header h1 { color: var(--white); font-size: 2.5rem; }
.page-header .breadcrumb {
    background: transparent;
    justify-content: center;
    margin: 0;
}
.page-header .breadcrumb-item a { color: var(--gold-light); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.7); }

/* Product Detail */
.product-detail .gallery img {
    width: 100%;
    border-radius: var(--radius);
    cursor: pointer;
}
.product-detail .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.product-detail .thumbnails img:hover,
.product-detail .thumbnails img.active {
    border-color: var(--gold);
}

/* Auth Pages */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cream), var(--off-white));
}
.auth-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    margin: 0 auto;
}
.auth-box .auth-logo {
    text-align: center;
    margin-bottom: 30px;
}
.auth-box .auth-logo h3 { color: var(--brown-dark); }

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-slide { min-height: 450px; }
    .section-padding { padding: 50px 0; }
    .admin-sidebar { width: 220px; }
    .admin-content { margin-left: 220px; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .hero-slide { min-height: 350px; }
    .hero-desc { font-size: 1rem; }
    .section-padding { padding: 40px 0; }
    .section-title h2 { font-size: 1.8rem; }
    .admin-sidebar { width: 200px; }
    .admin-content { margin-left: 0; padding: 15px; }
    .product-card .product-image { height: 200px; }
    .product-card .product-body { padding: 15px; }
}
@media (max-width: 575px) {
    .admin-sidebar { width: 100%; height: auto; position: relative; }
    .admin-content { margin-left: 0; }
    .hero-title { font-size: 1.6rem; }
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 1.8rem; }
}

/* Utilities */
.text-gold { color: var(--gold); }
.text-brown { color: var(--brown); }
.bg-gold-soft { background: rgba(212,168,83,0.1); }
.shadow-hover { transition: var(--transition); }
.shadow-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cursor-pointer { cursor: pointer; }
.min-vh-60 { min-height: 60vh; }
.min-vh-80 { min-height: 80vh; }

/* Animations */
.fade-in { animation: fadeIn 0.5s ease; }
.slide-up { animation: slideUp 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--brown-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brown); }

/* Loading Spinner */
.spinner { width: 40px; height: 40px; border: 4px solid var(--cream); border-top: 4px solid var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}
@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,0.7); }
    100% { box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
}

/* Print */
@media print {
    .admin-sidebar, .no-print { display: none !important; }
    .admin-content { margin-left: 0 !important; }
}
