:root {
  --jg-brown: #8a4b12;
  --jg-brown-dark: #6b3a0e;
  --jg-amber: #c98a3c;
  --jg-cream: #fbf5ea;
  --jg-sand: #f3e6d3;
  --jg-green: #4f7a28;
  --jg-text: #2d2118;
}
html { scroll-behavior: smooth; }
body { color: var(--jg-text); background: #fff; overflow-x: hidden; }
a { color: var(--jg-brown); }
a:hover { color: var(--jg-brown-dark); }

.btn-jaggery { background: var(--jg-brown); border-color: var(--jg-brown); color: #fff; }
.btn-jaggery:hover, .btn-jaggery:focus { background: var(--jg-brown-dark); border-color: var(--jg-brown-dark); color: #fff; }
.btn-outline-jaggery { border-color: var(--jg-brown); color: var(--jg-brown); }
.btn-outline-jaggery:hover { background: var(--jg-brown); color: #fff; }
.text-jaggery { color: var(--jg-brown) !important; }
.bg-cream { background: var(--jg-cream); }
.bg-sand { background: var(--jg-sand); }

.site-header { background: #fff; border-bottom: 1px solid var(--jg-sand); }
.brand { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .08em; color: var(--jg-brown) !important; }
.navbar .nav-link { color: var(--jg-text); font-weight: 500; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--jg-brown); }
.cart-badge { font-size: .65rem; }

.hero { background: linear-gradient(135deg, var(--jg-cream) 0%, var(--jg-sand) 100%); padding: 4rem 0; }
.hero h1 { font-family: Georgia, serif; font-weight: 700; color: var(--jg-brown); font-size: clamp(1.8rem, 5vw, 3rem); }

.category-card, .product-card { border: 1px solid var(--jg-sand); border-radius: .75rem; overflow: hidden; transition: box-shadow .2s, transform .2s; height: 100%; background: #fff; }
.category-card:hover, .product-card:hover { box-shadow: 0 .5rem 1.25rem rgba(138, 75, 18, .15); transform: translateY(-2px); }
.card-img-box { aspect-ratio: 1 / 1; background: var(--jg-cream); }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; }
.price { font-weight: 700; font-size: 1.15rem; }
.mrp { text-decoration: line-through; color: #8a8a8a; font-size: .9rem; }
.save-badge { color: var(--jg-green); font-weight: 600; font-size: .9rem; }

.qty-control { display: inline-flex; align-items: center; border: 1px solid #ced4da; border-radius: .5rem; overflow: hidden; }
.qty-control button { border: 0; background: var(--jg-cream); width: 2.5rem; height: 2.5rem; font-size: 1.2rem; }
.qty-control input { width: 3.5rem; text-align: center; border: 0; height: 2.5rem; -moz-appearance: textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.25rem 2.25rem; color: #8a8a8a; }
.timeline li::before { content: "○"; position: absolute; left: 0; top: -2px; font-size: 1.3rem; line-height: 1.4; }
.timeline li.done { color: var(--jg-text); font-weight: 600; }
.timeline li.done::before { content: "✓"; color: var(--jg-green); }
.timeline li::after { content: ""; position: absolute; left: .55rem; top: 1.4rem; bottom: .1rem; border-left: 2px solid var(--jg-sand); }
.timeline li:last-child::after { display: none; }

.account-nav .list-group-item.active { background: var(--jg-brown); border-color: var(--jg-brown); }
.site-footer { background: var(--jg-brown-dark); color: #f3e6d3; }
.site-footer a { color: #f3e6d3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.otp-input { letter-spacing: .6em; font-size: 1.5rem; text-align: center; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Dashboard */
.dash-sidebar { background: var(--jg-brown-dark); min-height: 100vh; }
.dash-sidebar .nav-link { color: #f3e6d3; border-radius: .4rem; }
.dash-sidebar .nav-link.active, .dash-sidebar .nav-link:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.stat-card { border-left: 4px solid var(--jg-amber); }
.new-order-alert { border-left: 5px solid #dc3545; animation: pulse 2s ease-in-out 3; }
@keyframes pulse { 50% { background: #fff1f1; } }

@media (max-width: 767.98px) {
  .dash-sidebar { min-height: auto; }
  .hero { padding: 2.5rem 0; }
}
