/* Cookyt.com - common stylesheet. Flat colors, no gradients. */

:root {
    --primary: #1b6b34;
    --primary-dark: #0f4b23;
    --primary-light: #e7f3ea;
    --accent: #f5820c;
    --accent-light: #fef1e2;
    --text: #232323;
    --muted: #6d7570;
    --bg: #ffffff;
    --bg-soft: #f8f8f6;
    --border: #e6e6e2;
    --danger: #c0392b;
    --success: #1b6b34;
    --radius: 8px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', 'Nunito Sans', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5 { font-weight: 700; color: var(--primary-dark); }
a { text-decoration: none; color: var(--primary); }
a:hover { color: var(--accent); }

.text-accent { color: var(--accent) !important; }
.text-primary2 { color: var(--primary) !important; }
.bg-soft { background: var(--bg-soft); }

/* ---------------- Buttons ---------------- */
.btn-cookyt {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
    transition: background .15s;
}
.btn-cookyt:hover { background: var(--primary-dark); color: #fff; }
.btn-outline-cookyt {
    background: #fff;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius);
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
}
.btn-outline-cookyt:hover { background: var(--primary-light); }
.btn-accent {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #fff;
    border-radius: var(--radius);
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
}
.btn-accent:hover { background: #d96f0a; color: #fff; }
.btn-sm-cookyt { padding: 4px 10px; font-size: 13px; }

/* ---------------- Navbar ---------------- */
.navbar-cookyt {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.navbar-cookyt .navbar-brand img { height: 42px; }
.navbar-cookyt .nav-link {
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px !important;
}
.navbar-cookyt .nav-link:hover, .navbar-cookyt .nav-link.active { color: var(--primary); }
.cart-badge {
    position: relative;
}
.cart-badge .badge-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    padding: 1px 6px;
}

/* ---------------- Hero / concept sections ---------------- */
.hero-section {
    background: var(--bg);
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.hero-title { font-size: 30px; margin-bottom: 8px; }
.hero-sub { color: var(--muted); font-size: 15px; margin-bottom: 14px; }

.why-item {
    text-align: center;
    padding: 10px 6px;
}
.why-item .why-icon {
    width: 52px; height: 52px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    color: var(--primary);
    font-size: 20px;
}
.why-item h6 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.why-item p { font-size: 12px; color: var(--muted); margin: 0; }

.step-item { text-align: center; padding: 8px; }
.step-item .step-num {
    width: 34px; height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
}
.step-item h6 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.step-item p { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------------- Dish cards ---------------- */
.dish-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    height: 100%;
    transition: box-shadow .15s;
}
.dish-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.dish-card .dish-img {
    width: 100%; height: 150px; object-fit: cover;
    background: var(--bg-soft);
}
.dish-card .dish-body { padding: 10px 12px; }
.dish-card .dish-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.dish-card .dish-short { font-size: 12px; color: var(--muted); min-height: 32px; }
.dish-card .dish-price { font-size: 16px; font-weight: 700; color: var(--primary-dark); }
.dish-card .chef-tag {
    font-size: 11px; color: var(--accent); font-weight: 700;
}
.veg-dot { display:inline-block; width:12px;height:12px;border:1.5px solid var(--success);position:relative; vertical-align:middle;}
.veg-dot::after{content:'';position:absolute;top:2px;left:2px;width:6px;height:6px;border-radius:50%;background:var(--success);}
.nonveg-dot { display:inline-block; width:12px;height:12px;border:1.5px solid var(--danger);position:relative; vertical-align:middle;}
.nonveg-dot::after{content:'';position:absolute;top:2px;left:2px;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:7px solid var(--danger);}

.badge-weekly {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.badge-spice { background: var(--bg-soft); color: var(--muted); font-size: 11px; padding: 2px 7px; border-radius: 4px; }

/* Category pill */
.category-pill {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: #fff;
    margin: 3px;
}
.category-pill.active, .category-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.qty-stepper {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
    height: 31px;
}
.qty-stepper .qty-btn {
    background: transparent; color: #fff; border: none;
    width: 32px; height: 100%; font-size: 16px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
}
.qty-stepper .qty-btn:hover { background: rgba(255,255,255,.15); }
.qty-stepper .qty-val { flex: 1; text-align: center; font-weight: 700; font-size: 13px; color: #fff; }
.qty-stepper.qty-stepper-lg { height: 44px; display: inline-flex; min-width: 140px; }
.qty-stepper.qty-stepper-lg .qty-btn { width: 44px; font-size: 20px; }
.qty-stepper.qty-stepper-lg .qty-val { font-size: 16px; padding: 0 10px; }

.veg-filter-group {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    background: #fff;
}
.veg-filter-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.veg-filter-pill.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.category-pill-img {
    width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
    margin-right: 6px; vertical-align: middle; margin-top: -2px;
}

/* ---------------- Weekly highlight ---------------- */
.weekly-highlight {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    padding: 16px;
}
.weekly-highlight h3, .weekly-highlight .text-muted-light { color: #fff; }
.weekly-highlight .text-muted-light { opacity: .85; font-size: 13px; }

/* ---------------- Forms ---------------- */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 14px;
    padding: 8px 12px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .15rem var(--primary-light);
}
label { font-size: 13px; font-weight: 600; margin-bottom: 4px; }

.otp-input-group input {
    width: 44px; height: 48px; text-align: center;
    font-size: 20px; margin-right: 6px;
    border: 1px solid var(--border); border-radius: var(--radius);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--primary); }
.nav-pills .nav-link { color: var(--primary); }

.auth-card {
    max-width: 420px; margin: 30px auto;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; background: #fff;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 24px 0 14px;
    font-size: 13px;
    color: var(--muted);
    margin-top: 30px;
}
.site-footer h6 { font-size: 14px; color: var(--primary-dark); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--primary); }

/* ---------------- Toast (center screen) ---------------- */
#cookytToastWrap {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    min-width: 280px;
    max-width: 90vw;
}
.cookyt-toast {
    background: #fff;
    border-left: 5px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 4px 22px rgba(0,0,0,.18);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.cookyt-toast.toast-error { border-left-color: var(--danger); color: var(--danger); }
.cookyt-toast.toast-success { border-left-color: var(--primary); color: var(--primary-dark); }

/* ---------------- Admin layout ---------------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 230px;
    background: var(--primary-dark);
    color: #fff;
    flex-shrink: 0;
    min-height: 100vh;
}
.admin-sidebar .brand { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
.admin-sidebar .brand img { height: 34px; background:#fff; border-radius:4px; padding:2px; }
.admin-sidebar a.nav-link {
    color: #d9ead9;
    font-size: 14px;
    padding: 10px 18px;
    border-left: 3px solid transparent;
}
.admin-sidebar a.nav-link i { width: 20px; }
.admin-sidebar a.nav-link:hover, .admin-sidebar a.nav-link.active {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-left-color: var(--accent);
}
.admin-content { flex-grow: 1; background: var(--bg); min-height: 100vh; }
.admin-topbar {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 20px; display: flex; align-items: center; justify-content: space-between;
}
.admin-body { padding: 18px 20px; }
.stat-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; text-align: center;
}
.stat-card .stat-value { font-size: 24px; font-weight: 700; color: var(--primary-dark); }
.stat-card .stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; }

.card-cookyt {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px;
}

table.dataTable thead th { font-size: 13px; background: var(--bg-soft); }
table.dataTable td, table.dataTable th { font-size: 13px; vertical-align: middle; }
.table-filter-input { width: 100%; font-size: 12px; padding: 3px 6px; }

.status-badge { font-size: 11px; padding: 3px 9px; border-radius: 4px; font-weight: 700; text-transform: capitalize; }
.status-pending { background: #fdf1da; color: #a0680e; }
.status-confirmed { background: #dcecff; color: #1b56a3; }
.status-packed { background: #e6e0fb; color: #5b3fb0; }
.status-outfordelivery { background: #fce6cf; color: #b5590c; }
.status-delivered { background: var(--primary-light); color: var(--primary-dark); }
.status-cancelled { background: #fbdedb; color: var(--danger); }
.status-paid { background: var(--primary-light); color: var(--primary-dark); }
.status-failed { background: #fbdedb; color: var(--danger); }

/* ---------------- Hero v2 (redesign) ---------------- */
.hero2-section { background: var(--bg); padding: 26px 0 30px; border-bottom: 1px solid var(--border); }
.hero2-pill-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.hero2-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.04);
    color: var(--primary-dark); font-size: 12px; font-weight: 700;
    padding: 6px 14px; border-radius: 30px;
}
.hero2-eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.hero2-title { font-size: 34px; line-height: 1.15; margin: 6px 0 10px; }
.hero2-title .hl { color: var(--accent); }
.hero2-sub { color: var(--muted); font-size: 15px; max-width: 520px; }
.hero2-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero2-social { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar-circle {
    width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff;
    background: var(--primary-light); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; margin-left: -10px;
}
.avatar-stack .avatar-circle:first-child { margin-left: 0; }
.hero2-stars { color: var(--accent); font-size: 12px; }
.hero2-photo-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.10); }
.hero2-photo-wrap img { width: 100%; height: 360px; object-fit: cover; display: block; }
.hero2-photo-overlay {
    position: absolute; left: 12px; right: 12px; bottom: 12px;
    background: rgba(255,255,255,.96); border-radius: 12px; padding: 12px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.hero2-overlay-title { font-size: 13px; font-weight: 700; color: var(--primary-dark); }
.hero2-overlay-sub { font-size: 11px; color: var(--muted); }
.hero2-float-badge {
    position: absolute; display: none; align-items: center; gap: 8px;
    background: #fff; border-radius: 12px; padding: 8px 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
    z-index: 5;
}
.hero2-float-badge .fb-icon {
    width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.hero2-float-badge .fb-title { font-size: 12px; font-weight: 700; color: var(--text); margin: 0; }
.hero2-float-badge .fb-sub { font-size: 11px; color: var(--muted); margin: 0; }
.hero2-float-badge.badge-topleft { top: -14px; left: -14px; }
.hero2-float-badge.badge-right { right: -14px; top: 30%; }
@media (min-width: 576px) {
    .hero2-float-badge { display: flex; }
}

/* ---------------- Dish of the Week v2 ---------------- */
.weekly2-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.weekly2-photo { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); }
.weekly2-photo img { width: 100%; height: 100%; object-fit: cover; }
.weekly2-ribbon {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .04em; padding: 5px 12px; border-radius: 30px;
}
.weekly2-time-chip {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,.92); color: var(--text); font-size: 11px; font-weight: 700;
    padding: 5px 10px; border-radius: 30px;
}
.weekly2-ingredient-box { background: var(--bg-soft); border-radius: 12px; padding: 14px; margin-top: 12px; }
.weekly2-ingredient-box h6 { font-size: 13px; margin-bottom: 8px; }
.weekly2-ingredient-box ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.weekly2-ingredient-box li { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; break-inside: avoid; }

/* ---------------- Comparison table ---------------- */
.compare-wrap { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 10px 12px; text-align: center; border-bottom: 2px solid var(--border); }
.compare-table th:first-child { text-align: left; }
.compare-table th.col-cookyt { background: var(--primary-light); color: var(--primary-dark); border-radius: 8px 8px 0 0; }
.compare-table td { font-size: 13px; padding: 12px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table td:first-child { text-align: left; font-weight: 700; color: var(--text); }
.compare-table td.col-cookyt { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.cell-bad { color: var(--danger); }

/* ---------------- Testimonials (smaller text) ---------------- */
.testimonial-sm-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; height: 100%; }
.testimonial-sm-card .stars { color: var(--accent); font-size: 11px; margin-bottom: 6px; }
.testimonial-sm-card p.quote { font-size: 12.5px; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.testimonial-sm-card .reviewer { display: flex; align-items: center; gap: 8px; }
.testimonial-sm-card .reviewer .av {
    width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.testimonial-sm-card .reviewer .name { font-size: 12px; font-weight: 700; margin: 0; }
.testimonial-sm-card .reviewer .loc { font-size: 11px; color: var(--muted); margin: 0; }

@media (max-width: 767px) {
    .hero-title { font-size: 22px; }
    .admin-sidebar { position: fixed; left: -230px; top: 0; z-index: 1050; transition: left .2s; }
    .admin-sidebar.open { left: 0; }
    .admin-content { width: 100%; }
}
