/* ==========================================================================
   Jonmochakra — shared design system
   Ported from the original static prototype's inline <style> blocks so every
   Blade view can share one source of truth for colours, header, footer,
   buttons and form controls instead of repeating ~300 lines per page.
   ========================================================================== */

:root {
  --saffron: #FF7A1A;
  --saffron-deep: #E85D04;
  --saffron-light: #FFB27A;
  --night: #241B3A;
  --night-2: #332352;
  --gold: #D4AF37;
  --cream: #FFF6EC;
  --cream-2: #FFEEDD;
  --ink: #2B1B2E;
  --ink-soft: #6B5A6E;
  --white: #FFFFFF;
  --green: #2E7D32;
  --green-bg: #E8F5E9;
  --red: #D32F2F;
  --red-bg: #FFEBEE;
  --yellow: #F57F17;
  --yellow-bg: #FFFDE7;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(43, 27, 46, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--cream); color: var(--ink); }
h1, h2, h3, .display { font-family: 'Cinzel', serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; transition: transform .2s ease, box-shadow .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-deep));
  color: #fff; box-shadow: 0 10px 24px rgba(232, 93, 4, 0.30);
}
.btn-ghost { background: transparent; color: var(--night); border: 1.5px solid rgba(43, 27, 46, 0.2); }
.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron-deep); }
.btn-block { width: 100%; justify-content: center; }
button.link-reset { background: none; border: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }

/* ---------- HEADER / NAVBAR ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 246, 236, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 27, 46, 0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1240px; margin: 0 auto; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif; font-weight: 700; font-size: 20px; color: var(--night); }
.logo .mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--saffron), var(--gold), var(--saffron-deep), var(--saffron));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px;
}
.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--saffron-deep); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .btn { padding: 10px 20px; font-size: 13.5px; }
@media (max-width: 900px) { .nav-links { display: none; } }

.cart-icon-btn {
  position: relative; background: var(--white); padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid rgba(43, 27, 46, 0.12); font-size: 13.5px; font-weight: 600;
  color: var(--night); display: flex; align-items: center; gap: 6px; cursor: pointer;
  transition: all .2s ease;
}
.cart-icon-btn:hover, .cart-icon-btn.active { border-color: var(--saffron-deep); color: var(--saffron-deep); }
.cart-badge { background: var(--saffron-deep); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

.user-wallet { display: flex; align-items: center; gap: 10px; background: var(--white); padding: 6px 14px; border-radius: 999px; border: 1.5px solid rgba(43, 27, 46, 0.12); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.wallet-bal { font-size: 13.5px; font-weight: 600; color: var(--night); }
.wallet-bal strong { color: var(--green); }
.btn-recharge { background: var(--saffron-deep); color: #fff; border: none; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-recharge:hover { background: var(--saffron); }

/* ---------- PAGE / HERO BANNERS ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--night), var(--night-2));
  color: #fff; padding: 36px 24px; text-align: center; position: relative;
}
.page-banner h1 { font-family: 'Cinzel', serif; font-size: 30px; margin-bottom: 6px; font-weight: 600; }
.page-banner p { font-size: 14px; color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto 20px; }

/* ---------- SEARCH + FILTER BAR ---------- */
.search-filter-bar { max-width: 800px; margin: 0 auto; display: flex; gap: 12px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 240px; position: relative; }
.search-box input {
  width: 100%; padding: 12px 18px 12px 42px; border-radius: 999px; border: none; outline: none;
  font-size: 14px; background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,0.1); font-family: inherit;
}
.search-box::before { content: '🔍'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.6; }
.sort-select { padding: 12px 18px; border-radius: 999px; border: none; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink); cursor: pointer; outline: none; box-shadow: 0 4px 12px rgba(0,0,0,0.1); font-family: inherit; }

/* ---------- CATEGORY CHIPS ---------- */
.chips-container { max-width: 1240px; margin: 20px auto 0; padding: 0 24px; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chips-container::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; padding: 8px 18px; border-radius: 999px; background: var(--white);
  border: 1.5px solid rgba(43, 27, 46, 0.1); font-size: 13px; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; transition: all .2s ease; user-select: none;
}
.chip.active, .chip:hover { background: var(--saffron-deep); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(232,93,4,0.25); }

/* ---------- FORM CONTROLS ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12.5px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 10px; border: 1.5px solid rgba(43, 27, 46, 0.15);
  font-family: inherit; font-size: 14px; color: var(--night); outline: none; transition: border-color .2s ease; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--saffron-deep); }
.field-error { color: var(--red); font-size: 12px; margin-top: 2px; }

/* ---------- ALERTS / FLASH MESSAGES ---------- */
.flash { max-width: 1240px; margin: 16px auto 0; padding: 0 24px; }
.flash .alert { border-radius: 12px; padding: 14px 18px; font-size: 13.5px; font-weight: 500; margin-bottom: 10px; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(46,125,50,0.25); }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid rgba(211,47,47,0.25); }

/* ---------- PAGINATION ---------- */
.pagination-container { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination-container nav > div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination-container a, .pagination-container span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 999px; background: var(--white); border: 1.5px solid rgba(43,27,46,0.1); font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.pagination-container a:hover { background: var(--saffron-deep); color: #fff; border-color: transparent; }

/* ---------- FOOTER (rich, used on interior pages) ---------- */
footer.site-footer { background: var(--night); color: var(--cream); padding: 60px 24px 24px; border-top: 2px solid var(--gold); font-family: 'Poppins', sans-serif; margin-top: 40px; }
.footer-container { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif; font-weight: 700; font-size: 20px; color: var(--gold); text-decoration: none; margin-bottom: 14px; }
.footer-brand .logo .mark { width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(from 0deg, #FF7A1A, var(--gold), var(--saffron-deep), #FF7A1A); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; max-width: 320px; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 14px; text-decoration: none; transition: all .2s ease; border: 1px solid rgba(212,175,85,0.2); }
.social-icon:hover { background: var(--saffron-deep); color: #fff; border-color: transparent; }
.footer-col h4 { font-family: 'Cinzel', serif; font-size: 16px; color: var(--gold); margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.75); text-decoration: none; transition: color .2s ease; }
.footer-links a:hover { color: var(--saffron-light); }
.footer-bottom { max-width: 1240px; margin: 24px auto 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.5); }
.payment-badge { display: flex; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); padding: 6px 12px; border-radius: 6px; }
@media (max-width: 900px) { .footer-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 550px) { .footer-container { grid-template-columns: 1fr; } }

/* ---------- SIMPLE FOOTER (used on the homepage) ---------- */
footer.site-footer-simple { background: var(--night); color: rgba(255,255,255,0.7); padding: 60px 24px 30px; margin-top: 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h5 { color: #fff; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 13.5px; }
.footer-grid li a:hover { color: var(--saffron-light); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- MODALS (shared skeleton) ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(36,27,58,0.7); backdrop-filter: blur(6px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal-close { position: absolute; top: 16px; right: 18px; border: none; background: transparent; font-size: 22px; color: var(--ink-soft); cursor: pointer; }

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
