/* ============================================
   Sweet Crumbs Bakery - Main Stylesheet
   ============================================ */

:root {
    --warm: #c8762a;
    --warm-dark: #7a3f10;
    --warm-light: #f0c07a;
    --cream: #fdf6ee;
    --brown: #5c3317;
    --light-brown: #e8d5b7;
    --text-dark: #2d1b0e;
    --shadow: 0 4px 20px rgba(200, 118, 42, 0.12);
    --shadow-hover: 0 8px 30px rgba(200, 118, 42, 0.25);
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #fff; color: var(--text-dark); }
a { text-decoration: none; transition: all 0.3s; }

/* ---- Colors ---- */
.bg-warm-dark { background: var(--warm-dark) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-warm { background: var(--warm) !important; }
.text-warm { color: var(--warm) !important; }
.text-warm-light { color: var(--warm-light) !important; }

/* ---- Top Bar ---- */
.top-bar { background: var(--warm-dark); font-size: 0.82rem; }

/* ---- Navbar ---- */
.navbar { transition: all 0.3s; }
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important; }
.brand-icon { font-size: 2.2rem; line-height: 1; }
.brand-name { font-size: 1.25rem; font-weight: 800; color: var(--warm-dark); line-height: 1.2; letter-spacing: -0.5px; }
.brand-tagline { font-size: 0.65rem; color: var(--warm); text-transform: uppercase; letter-spacing: 1px; }
.navbar .nav-link { font-weight: 500; color: var(--text-dark) !important; padding: 0.5rem 1rem; position: relative; }
.navbar .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; right: 50%; height: 2px; background: var(--warm); transition: all 0.3s; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { left: 1rem; right: 1rem; }
.navbar .nav-link.active { color: var(--warm) !important; }

/* ---- Buttons ---- */
.btn-warm { background: var(--warm); color: white; border: 2px solid var(--warm); border-radius: 25px; padding: 8px 20px; font-weight: 600; }
.btn-warm:hover { background: var(--warm-dark); border-color: var(--warm-dark); color: white; }
.btn-warm-outline { border: 2px solid var(--warm); color: var(--warm); border-radius: 25px; padding: 8px 20px; font-weight: 600; background: transparent; }
.btn-warm-outline:hover { background: var(--warm); color: white; }
.btn-remove { background: #fee2e2; color: #dc2626; border: 1px solid #fca5a5; border-radius: 20px; padding: 6px 14px; font-size: 0.8rem; }
.btn-remove:hover { background: #dc2626; color: white; }

/* ---- Cart Button ---- */
.cart-btn { color: var(--warm-dark); padding: 8px; display: flex; align-items: center; }
.cart-btn:hover { color: var(--warm); }
.cart-badge { background: var(--warm); color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 0.65rem; display: flex; align-items: center; justify-content: center; top: -2px; right: -6px; font-weight: 700; }

/* ---- User Avatar ---- */
.user-avatar-btn { background: none; border: none; padding: 0; display: flex; align-items: center; }
.user-avatar-circle { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--warm), var(--warm-dark)); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section { position: relative; min-height: 92vh; overflow: hidden; }
.swiper-hero { height: 92vh; }
.swiper-hero .swiper-slide { position: relative; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(90,40,5,0.85) 0%, rgba(90,40,5,0.4) 60%, transparent 100%); }
.hero-content { position: relative; z-index: 2; color: white; max-width: 620px; padding: 2rem; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); border-radius: 30px; padding: 6px 18px; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.2rem; }
.hero-title span { color: var(--warm-light); }
.hero-subtitle { font-size: 1.05rem; opacity: 0.9; margin-bottom: 2rem; line-height: 1.7; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.swiper-pagination-bullet { background: white; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--warm-light); opacity: 1; width: 24px; border-radius: 4px; }

/* ============================================
   SECTION STYLES
   ============================================ */
.section-badge { display: inline-block; background: #fdf0e0; color: var(--warm); border-radius: 30px; padding: 4px 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--text-dark); }
.section-title span { color: var(--warm); }
.section-divider { width: 60px; height: 4px; background: linear-gradient(90deg, var(--warm), var(--warm-light)); border-radius: 2px; margin: 1rem 0; }

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card { border: none; border-radius: 16px; overflow: hidden; transition: all 0.3s; box-shadow: var(--shadow); background: white; height: 100%; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-img-wrap { position: relative; height: 200px; overflow: hidden; background: var(--cream); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--warm); color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--warm); }
.product-price small { font-size: 0.75rem; font-weight: 400; color: #999; }
.product-rating { color: #f59e0b; font-size: 0.8rem; }
.star-filled { color: #f59e0b; }
.star-empty { color: #d1d5db; }

/* ============================================
   MENU PAGE
   ============================================ */
.menu-sidebar { position: sticky; top: 80px; }
.category-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: none; background: none; color: var(--text-dark); font-weight: 500; border-radius: 10px; transition: all 0.2s; text-align: left; cursor: pointer; font-size: 0.95rem; }
.category-btn:hover { background: var(--cream); color: var(--warm); }
.category-btn.active { background: linear-gradient(135deg, var(--warm), var(--warm-dark)); color: white !important; }
.category-btn .count-badge { margin-left: auto; background: rgba(255,255,255,0.3); color: inherit; font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; }
.category-btn:not(.active) .count-badge { background: #f3f4f6; color: #666; }
.menu-header { background: linear-gradient(135deg, var(--warm-dark), var(--brown)); color: white; border-radius: 16px; padding: 2rem; margin-bottom: 2rem; }

/* ============================================
   CART PAGE
   ============================================ */
.cart-item { border-radius: 12px; border: 1px solid #f0e8d8; background: white; transition: all 0.3s; }
.cart-item:hover { box-shadow: var(--shadow); }
.cart-item-img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.quantity-control { display: flex; align-items: center; gap: 0; border: 2px solid var(--light-brown); border-radius: 25px; overflow: hidden; }
.qty-btn { width: 34px; height: 34px; border: none; background: var(--cream); color: var(--warm-dark); font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--warm); color: white; }
.qty-input { width: 40px; height: 34px; border: none; text-align: center; font-weight: 700; background: white; outline: none; }
.cart-summary { border-radius: 16px; border: none; box-shadow: var(--shadow); background: white; }
.order-total-row { font-size: 1.2rem; font-weight: 800; color: var(--warm-dark); }
.free-delivery-bar { background: linear-gradient(135deg, #d4edda, #c3e6cb); border-radius: 10px; padding: 10px 14px; font-size: 0.85rem; color: #155724; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-card { border: none; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); overflow: hidden; max-width: 450px; margin: auto; }
.auth-header { background: linear-gradient(135deg, var(--warm-dark), var(--brown)); color: white; padding: 2.5rem; text-align: center; }
.auth-body { padding: 2.5rem; }
.form-control { border: 2px solid #e8ddd0; border-radius: 10px; padding: 12px 16px; transition: all 0.3s; }
.form-control:focus { border-color: var(--warm); box-shadow: 0 0 0 3px rgba(200, 118, 42, 0.15); }
.form-label { font-weight: 600; color: var(--text-dark); font-size: 0.9rem; margin-bottom: 6px; }
.input-group-text { background: var(--cream); border: 2px solid #e8ddd0; border-right: none; }
.otp-input { letter-spacing: 8px; font-size: 1.5rem; text-align: center; font-weight: 700; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.team-card { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.team-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--warm-light); object-fit: cover; }
.stat-card { text-align: center; padding: 2rem; border-radius: 16px; background: white; box-shadow: var(--shadow); }
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--warm); }
.milestone-card { padding: 1.5rem; border-left: 4px solid var(--warm); background: white; border-radius: 0 12px 12px 0; box-shadow: var(--shadow); margin-bottom: 1rem; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-info-card { border-radius: 16px; background: linear-gradient(135deg, var(--warm-dark), var(--brown)); color: white; padding: 2.5rem; height: 100%; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-icon { width: 44px; height: 44px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-form-card { border-radius: 16px; box-shadow: var(--shadow); padding: 2.5rem; }

/* ============================================
   REVIEWS SECTION
   ============================================ */
.review-card { border: none; border-radius: 16px; box-shadow: var(--shadow); padding: 1.5rem; background: white; height: 100%; }
.review-avatar { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; color: white; }
.review-quote { font-size: 3rem; line-height: 0.5; color: var(--warm-light); opacity: 0.5; }
.swiper-reviews .swiper-slide { padding: 1rem 0.5rem; }

/* ============================================
   MANUFACTURERS / PARTNERS
   ============================================ */
.partner-logo { height: 60px; object-fit: contain; filter: grayscale(100%); opacity: 0.5; transition: all 0.3s; }
.partner-logo:hover { filter: none; opacity: 1; }

/* ============================================
   FOOTER
   ============================================ */
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--warm-light); padding-left: 5px; }
.footer-contact p { font-size: 0.88rem; opacity: 0.8; margin-bottom: 8px; }
.social-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.9rem; }
.social-icon:hover { background: var(--warm); color: white; }

/* ============================================
   PAYMENT & ORDER
   ============================================ */
.address-card { border: 2px solid #e8ddd0; border-radius: 12px; cursor: pointer; transition: all 0.3s; padding: 1.2rem; }
.address-card.selected { border-color: var(--warm); background: #fdf6ee; }
.address-card:hover { border-color: var(--warm-light); }
.payment-steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 2rem; }
.payment-steps::before { content: ''; position: absolute; top: 20px; left: 0; right: 0; height: 2px; background: #e8ddd0; z-index: 0; }
.step-dot { width: 40px; height: 40px; border-radius: 50%; background: #e8ddd0; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; font-weight: 700; font-size: 0.85rem; }
.step-dot.active { background: var(--warm); color: white; }
.step-dot.done { background: #22c55e; color: white; }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-sidebar { width: 260px; min-height: 100vh; background: var(--warm-dark); position: fixed; top: 0; left: 0; z-index: 1000; transition: all 0.3s; }
.admin-sidebar .brand { padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,0.75); transition: all 0.2s; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: white; padding-left: 28px; }
.admin-main { margin-left: 260px; min-height: 100vh; background: #f8f5f0; }
.admin-header { background: white; padding: 1rem 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.stat-widget { background: white; border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1.2rem; }
.stat-widget-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.data-table { border-collapse: separate; border-spacing: 0; }
.data-table thead th { background: var(--cream); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; border: none; }
.data-table tbody td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid #f0e8d8; }
.data-table tbody tr:hover { background: #fdf9f5; }
.badge-status { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* ============================================
   UTILITIES
   ============================================ */
.section-pad { padding: 80px 0; }
.rounded-xl { border-radius: 16px !important; }
.cursor-pointer { cursor: pointer; }
.fade-up { opacity: 0; transform: translateY(20px); transition: all 0.6s; }
.fade-up.visible { opacity: 1; transform: none; }

/* Toast */
.toast-custom { position: fixed; bottom: 24px; right: 24px; z-index: 9999; min-width: 300px; border-radius: 12px; border: none; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--warm-light); border-radius: 3px; }

/* Loading spinner */
.spinner-warm { color: var(--warm) !important; }

/* Bill/Invoice */
.bill-container { max-width: 800px; margin: auto; padding: 40px; font-family: Arial, sans-serif; }
.bill-header { background: linear-gradient(135deg, var(--warm-dark), var(--brown)); color: white; padding: 30px; border-radius: 12px 12px 0 0; }

@media (max-width: 768px) {
    .admin-sidebar { width: 0; overflow: hidden; }
    .admin-sidebar.open { width: 260px; }
    .admin-main { margin-left: 0; }
    .hero-section, .swiper-hero { min-height: 70vh; height: 70vh; }
    .product-img-wrap { height: 160px; }
    .menu-sidebar { position: static; margin-bottom: 1.5rem; }
}
