/* ============================================================
   SatvikDay – Customer Portal Stylesheet
   ============================================================ */

/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #2e7d32;
  --green-light:  #43a047;
  --green-dark:   #1b5e20;
  --accent:       #ff6f00;
  --accent-light: #ffa000;
  --bg:           #f1f8e9;
  --card-bg:      #ffffff;
  --text:         #212121;
  --muted:        #757575;
  --border:       #e0e0e0;
  --shadow:       0 2px 12px rgba(0,0,0,.10);
  --radius:       14px;
  --transition:   .22s ease;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f8e9; }
::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 4px; }

/* ── Top Banner ─────────────────────────────────────────────── */
.top-banner {
  background: var(--green-dark);
  color: #fff;
  text-align: center;
  padding: 7px 16px;
  font-size: .82rem;
  letter-spacing: .3px;
}
.top-banner strong { color: #ffcc02; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.nav-inner {
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 2rem; }
.logo-text { color: #fff; }
.logo-text h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: .5px; line-height: 1.1; }
.logo-text span { font-size: .72rem; opacity: .85; }

.nav-search {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.nav-search input {
  width: 100%;
  padding: 9px 42px 9px 16px;
  border-radius: 24px;
  border: none;
  font-size: .9rem;
  background: rgba(255,255,255,.92);
}
.nav-search button {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  font-size: 1rem;
  color: var(--green);
}

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-btn {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .84rem;
  font-weight: 600;
  transition: background var(--transition);
}
.nav-btn:hover { background: rgba(255,255,255,.28); }

.cart-btn {
  background: var(--accent);
  color: #fff;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: .88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.cart-btn:hover { background: var(--accent-light); transform: scale(1.04); }
.cart-count {
  background: #fff;
  color: var(--accent);
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: .72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #558b2f 100%);
  color: #fff;
  padding: 60px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; max-width: 700px; margin: auto; }
.hero-emoji { font-size: 4rem; margin-bottom: 12px; display: block; }
.hero h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 12px; }
.hero p { font-size: 1.05rem; opacity: .9; margin-bottom: 24px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-badge {
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 600;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 32px;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255,111,0,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,111,0,.5); }

/* ── Order Cutoff Strip ─────────────────────────────────────── */
.cutoff-strip {
  background: #fff3e0;
  border-left: 5px solid var(--accent);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .9rem;
  max-width: 1280px;
  margin: 20px auto 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cutoff-strip .icon { font-size: 1.6rem; }
.cutoff-strip strong { color: var(--accent); }

/* ── Section Wrapper ────────────────────────────────────────── */
.section { max-width: 1280px; margin: 36px auto; padding: 0 20px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 20px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--green-light), transparent);
}

/* ── Category Tabs ──────────────────────────────────────────── */
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 9px 22px;
  border-radius: 24px;
  border: 2px solid var(--green-light);
  background: #fff;
  color: var(--green);
  font-weight: 700;
  font-size: .88rem;
  transition: all var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ── Product Grid ───────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }

.product-card.disabled {
  opacity: .5;
  pointer-events: none;
}

/* ── Product Image ──────────────────────────────────────────── */
.product-img-wrap {
  width: 100%;
  height: 185px;
  overflow: hidden;
  background: #f1f8e9;
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.07);
}
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: .3px;
  z-index: 2;
}

.discount-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: #c62828;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: .3px;
  z-index: 2;
}

.product-info { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-weight: 800; font-size: 1.08rem; }
.product-name-hi { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.product-desc { font-size: .78rem; color: var(--muted); margin-bottom: 10px; flex: 1; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.product-price { font-size: 1.18rem; font-weight: 900; color: var(--green); line-height: 1.4; }
.product-price span { font-size: .78rem; font-weight: 500; color: var(--muted); }
.original-price {
  display: inline-block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 4px;
}

.add-btn {
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.add-btn:hover { background: var(--green-dark); transform: scale(1.07); }

/* ── Weight Chips ────────────────────────────────────────────── */
.weight-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.weight-chip {
  padding: 4px 11px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.4;
}
.weight-chip:hover {
  border-color: var(--green-light);
  color: var(--green);
  background: #f1f8e9;
}
.weight-chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* ── Cart item weight label ──────────────────────────────────── */
.cart-item-weight {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  background: #e8f5e9;
  color: var(--green-dark);
  border-radius: 8px;
  padding: 1px 7px;
  margin-left: 5px;
  vertical-align: middle;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 26px; height: 26px;
  font-size: 1rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--green-dark); }
.qty-num { font-weight: 800; font-size: .92rem; min-width: 20px; text-align: center; }

/* ── Features Strip ─────────────────────────────────────────── */
.features-strip {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 36px auto;
  max-width: 1280px;
}
.feature-item {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-item .icon { font-size: 2rem; margin-bottom: 8px; }
.feature-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.feature-item p { font-size: .78rem; color: var(--muted); }

/* ── Cart Drawer ────────────────────────────────────────────── */
.cart-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
}
.cart-overlay.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0; right: -420px;
  width: 100%; max-width: 420px;
  height: 100%;
  background: #fff;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.18);
}
.cart-drawer.open { right: 0; }

.cart-header {
  background: var(--green);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-size: 1.1rem; font-weight: 800; }
.cart-close {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cart-close:hover { background: rgba(255,255,255,.35); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty .icon { font-size: 3rem; margin-bottom: 12px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f1f8e9;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; font-size: .9rem; }
.cart-item-price { font-size: .82rem; color: var(--muted); }

.cart-footer {
  padding: 16px 20px;
  border-top: 2px solid var(--border);
  background: #fafafa;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--muted);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.checkout-btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  transition: background var(--transition);
}
.checkout-btn:hover { background: var(--accent-light); }

/* ── Checkout Modal ─────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-header {
  background: var(--green);
  color: #fff;
  padding: 20px 24px;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.15rem; font-weight: 800; }
.modal-close {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 50%;
  width: 32px; height: 32px;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,.35); }

.modal-body { padding: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--green-dark); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--green-light);
  outline: none;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-summary-mini { background: var(--bg); border-radius: 10px; padding: 14px; margin-bottom: 20px; }
.order-summary-mini h4 { font-size: .88rem; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.order-mini-item { display: flex; justify-content: space-between; font-size: .82rem; padding: 3px 0; }
.order-mini-total { display: flex; justify-content: space-between; font-weight: 800; font-size: .9rem; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 6px; }
.place-order-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 800;
  transition: background var(--transition);
}
.place-order-btn:hover { background: var(--green-dark); }

/* ── Success Modal ──────────────────────────────────────────── */
.success-modal { text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-modal h3 { font-size: 1.5rem; font-weight: 900; color: var(--green); margin-bottom: 8px; }
.success-modal p { color: var(--muted); margin-bottom: 20px; }
.order-id-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 20px;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--green-dark);
  color: #fff;
  padding: 40px 20px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 28px;
}
.footer-brand .logo-text h1 { font-size: 1.3rem; }
.footer-brand p { font-size: .82rem; opacity: .75; margin-top: 10px; line-height: 1.7; }
footer h4 { font-size: .95rem; font-weight: 700; margin-bottom: 14px; color: #a5d6a7; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; font-size: .82rem; opacity: .8; }
.footer-bottom {
  max-width: 1280px;
  margin: auto;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  text-align: center;
  font-size: .8rem;
  opacity: .7;
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #323232;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  animation: slideIn .25s ease, fadeOut .4s ease 2.4s forwards;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.success { background: var(--green); }
.toast.error   { background: #c62828; }

@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(20px); } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 10px; }
  .nav-search { order: 3; max-width: 100%; width: 100%; }
  .nav-actions { gap: 8px; }
  .nav-btn { display: none; }
  .hero { padding: 40px 16px 36px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
  .features-strip { grid-template-columns: 1fr 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .cart-drawer { max-width: 100%; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hero h2 { font-size: 1.4rem; }
}

/* ============================================================
   SatvikDay – Checkout, Bill & PDF Styles
   ============================================================ */

/* ── Wide Modal ─────────────────────────────────────────────── */
.modal-wide { max-width: 680px; }

/* ── Cart Saving Strip ──────────────────────────────────────── */
.cart-saving-strip {
  background: linear-gradient(135deg, #fff9c4, #fff3e0);
  border: 1.5px solid #ffa000;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 800;
  color: #e65100;
  margin-bottom: 10px;
  text-align: center;
}
.cart-item-saving {
  font-size: .72rem;
  color: #c62828;
  font-weight: 700;
  margin-top: 2px;
}

/* ── Checkout Rich Summary ──────────────────────────────────── */
.checkout-rich-summary {
  background: #fafafa;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1.5px solid #e8f5e9;
}
.checkout-summary-header {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  padding: 12px 18px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .3px;
}
.checkout-form-title {
  font-size: .92rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.checkout-item-card {
  padding: 14px 18px;
  border-bottom: 1px solid #e8f5e9;
  background: #fff;
}
.checkout-item-card:last-of-type { border-bottom: none; }

.checkout-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.checkout-item-name-row { display: flex; flex-direction: column; gap: 2px; }
.checkout-item-name { font-weight: 800; font-size: .95rem; }
.checkout-item-qty-label { font-size: .75rem; color: var(--muted); }
.checkout-item-price-row { text-align: right; }
.checkout-item-total { font-weight: 800; font-size: .95rem; color: var(--green); display: block; }
.checkout-item-save {
  display: inline-block;
  background: #ffebee;
  color: #c62828;
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  margin-top: 3px;
}

/* Nutrition pills inside checkout */
.checkout-nutrition {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
.nut-pill {
  background: #e8f5e9;
  color: #1b5e20;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  border: 1px solid #c8e6c9;
}

/* Weight label pill inside nutrition row */
.nut-label-pill {
  background: #f5f5f5;
  color: #555;
  border-color: #ddd;
  font-weight: 600;
}

/* Benefits inside checkout */
.checkout-benefits { display: flex; flex-wrap: wrap; gap: 5px; }
.benefit-tag {
  background: #f3e5f5;
  color: #6a1b9a;
  font-size: .67rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid #e1bee7;
}

/* Bill totals inside checkout */
.checkout-bill-totals {
  background: #f9fbe7;
  padding: 14px 18px;
  border-top: 1.5px solid #e8f5e9;
}
.bill-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: 5px 0;
  border-bottom: 1px dashed #e8f5e9;
}
.bill-row:last-of-type { border-bottom: none; }
.bill-row.saving-row { color: #c62828; font-weight: 800; }
.bill-row.grand-total-row {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--green-dark);
  border-top: 2px solid var(--green);
  padding-top: 10px;
  margin-top: 4px;
  border-bottom: none;
}
.free-tag { color: var(--green); font-weight: 800; }
.saving-banner {
  background: linear-gradient(135deg, #fff9c4, #fff3e0);
  border: 2px solid #ffa000;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 800;
  font-size: .88rem;
  color: #e65100;
  margin-top: 12px;
}

/* ── In-Page Bill (success modal) ───────────────────────────── */
.bill-header-section {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  padding: 22px 24px 18px;
}
.bill-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bill-logo-icon { font-size: 2.4rem; }
.bill-brand { font-size: 1.5rem; font-weight: 900; letter-spacing: .5px; }
.bill-tagline { font-size: .75rem; opacity: .85; }
.bill-greeting {
  background: rgba(255,255,255,.15);
  border-left: 4px solid #69f0ae;
  padding: 9px 14px;
  border-radius: 0 8px 8px 0;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.bill-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .78rem;
  opacity: .9;
}

.bill-customer-section,
.bill-items-section,
.bill-nutrition-section,
.bill-benefits-section {
  padding: 16px 20px;
  border-bottom: 1px solid #e8f5e9;
}
.bill-section-title {
  font-size: .85rem;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bill-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c8e6c9;
}

.bill-cust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-size: .82rem;
}
.bill-cust-grid div { padding: 4px 0; border-bottom: 1px dashed #f1f8e9; }

.bill-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.bill-table thead { background: #e8f5e9; }
.bill-table th {
  padding: 8px 10px;
  font-size: .75rem;
  color: var(--green-dark);
  font-weight: 800;
  text-align: left;
}
.bill-table th:nth-child(n+2) { text-align: right; }
.bill-item-col { padding: 9px 10px; border-bottom: 1px solid #f1f8e9; }
.bill-item-hi { display: block; font-size: .7rem; color: var(--muted); }
.bill-qty-col, .bill-price-col, .bill-total-col, .bill-save-col {
  padding: 9px 10px;
  border-bottom: 1px solid #f1f8e9;
  text-align: right;
  vertical-align: top;
}
.bill-save-col { color: #c62828; font-weight: 700; }

.bill-totals-section {
  padding: 14px 20px;
  background: #fafafa;
  border-bottom: 1px solid #e8f5e9;
}
.bill-total-row {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  padding: 5px 0;
  border-bottom: 1px dashed #f0f0f0;
}
.bill-total-row:last-of-type { border-bottom: none; }
.saving-line { color: #c62828; font-weight: 800; }
.grand { font-size: 1.1rem; font-weight: 900; color: var(--green-dark); border-top: 2px solid var(--green) !important; padding-top: 10px; }
.bill-saving-banner {
  background: linear-gradient(135deg, #fff9c4, #fff3e0);
  border: 2px solid #ffa000;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  font-weight: 800;
  font-size: .88rem;
  color: #e65100;
  margin-top: 12px;
}

.bill-nut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.bill-nut-card {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--green-light);
}
.bill-nut-name { font-weight: 800; font-size: .82rem; color: var(--green-dark); margin-bottom: 5px; }
.bill-nut-detail { font-size: .7rem; color: #424242; padding: 1px 0; }

.bill-footer-section {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  padding: 18px 20px;
  text-align: center;
}
.bill-footer-slogan { font-size: .95rem; font-weight: 800; margin-bottom: 6px; }
.bill-footer-note { font-size: .76rem; opacity: .85; }

/* ============================================================
   SatvikDay – Auth Modals & Procurement Print
   ============================================================ */

/* ── Auth Tabs ──────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--green);
  margin-bottom: 18px;
}
.auth-tab-btn {
  flex: 1;
  padding: 10px;
  font-size: .88rem;
  font-weight: 700;
  background: #fff;
  color: var(--green);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.auth-tab-btn.active { background: var(--green); color: #fff; }
.auth-tab-btn:hover:not(.active) { background: var(--bg); }

.auth-error {
  color: #c62828;
  font-size: .82rem;
  font-weight: 600;
  min-height: 20px;
  margin-bottom: 10px;
}

/* ── Auto-fill notice in checkout ───────────────────────────── */
.checkout-autofill-notice {
  background: #e8f5e9;
  border: 1.5px solid #a5d6a7;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .82rem;
  color: #1b5e20;
  font-weight: 600;
  margin-bottom: 14px;
  display: none;
}
.checkout-autofill-notice.show { display: block; }

/* ── Procurement print header (hidden on screen, visible in print) */
.procurement-print-header {
  display: none;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  padding: 20px 24px;
  border-radius: 10px;
  margin-bottom: 20px;
}
@media print {
  .procurement-print-header { display: block; }
}

/* ============================================================
   SatvikDay – My Orders Modal
   ============================================================ */

/* ── Summary Strip ──────────────────────────────────────────── */
.orders-summary-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.order-stat-pill {
  flex: 1;
  min-width: 120px;
  background: #e8f5e9;
  border: 1.5px solid #c8e6c9;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}
.osp-num   { display: block; font-size: 1.3rem; font-weight: 900; color: var(--green-dark); }
.osp-label { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ── Order Card ─────────────────────────────────────────────── */
.my-order-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: box-shadow var(--transition);
}
.my-order-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.12); }

.moc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 18px;
  cursor: pointer;
  gap: 12px;
}
.moc-header:hover { background: #fafafa; }

.moc-left  { flex: 1 1 auto; min-width: 0; }
.moc-id    { font-weight: 800; font-size: .9rem; color: var(--green); overflow-wrap: anywhere; }
.moc-date  { font-size: .75rem; color: var(--muted); margin: 2px 0; }
.moc-items-preview {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.moc-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.moc-status {
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
}
.moc-total  { font-weight: 900; font-size: 1rem; color: var(--green-dark); }
.moc-saving { font-size: .72rem; color: #c62828; font-weight: 700; }
.moc-expand { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ── Order Detail ───────────────────────────────────────────── */
.moc-detail { border-top: 1px solid var(--border); }

/* Timeline */
.order-timeline {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.cancelled-timeline {
  padding: 8px 0 16px;
}
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.ts-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.timeline-step.done .ts-dot  { background: var(--green); }
.timeline-step.active .ts-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(46,125,50,.2); }
.ts-label {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.timeline-step.done .ts-label  { color: var(--green); }
.timeline-step.active .ts-label { color: var(--green-dark); font-weight: 800; }
.ts-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 20px;
  border-radius: 2px;
}
.ts-line.done { background: var(--green); }

/* Item rows inside detail */
.order-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f8e9;
  font-size: .84rem;
}
.order-item-row:last-child { border-bottom: none; }
.oir-name  { flex: 1; font-weight: 600; }
.oir-qty   { color: var(--muted); font-size: .78rem; }
.oir-price { font-weight: 800; color: var(--green); min-width: 60px; text-align: right; }

/* Totals */
.moc-totals {
  padding: 12px 18px;
  background: #fafafa;
  border-top: 1px solid var(--border);
}
.moc-total-row {
  display: flex;
  justify-content: space-between;
  font-size: .84rem;
  padding: 4px 0;
}
.moc-total-row.muted { color: var(--muted); }
.moc-total-row.saved { color: #c62828; font-weight: 700; }
.moc-total-row.grand { font-weight: 900; font-size: .95rem; color: var(--green-dark); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

/* Delivery info bar */
.moc-delivery-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 10px 18px 14px;
  font-size: .76rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
}

@media (max-width: 600px) {
  .moc-items-preview { max-width: 100%; }
  .moc-header { padding: 12px 14px; gap: 8px; }
  .moc-id { font-size: .82rem; }
  .orders-summary-strip { gap: 8px; }
  .order-stat-pill { min-width: 90px; padding: 10px 12px; }
  .ts-label { font-size: .6rem; }
}

/* ── User dropdown (profile / address / logout) ─────────────── */
.user-menu-wrap { position: relative; }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 250px; max-width: 290px;
  background: #fff; color: var(--text);
  border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.22);
  overflow: hidden; z-index: 1100;
}
.user-menu-head { padding: 12px 16px; background: #f1f8e9; border-bottom: 1px solid var(--border); }
.um-name { font-weight: 800; color: var(--green-dark); font-size: .95rem; }
.um-sub  { font-size: .75rem; color: var(--muted); margin-top: 2px; word-break: break-word; }
.um-item {
  display: block; width: 100%; text-align: left;
  background: #fff; padding: 11px 16px; font-size: .86rem; font-weight: 600; color: var(--text);
  border-bottom: 1px solid #f0f0f0;
}
.um-item:hover { background: #f1f8e9; }
.um-logout { color: #c62828; border-bottom: none; }
.um-logout:hover { background: #ffebee; }

/* ============================================================
   Responsive polish (phones, tablets, laptops)
   ============================================================ */
.lbl-short { display: none; }
.product-footer { flex-wrap: wrap; gap: 8px; }
.add-btn { white-space: nowrap; }

@media (max-width: 768px) {
  /* keep Login / profile reachable on phones (was hidden) */
  .nav-btn { display: inline-flex; align-items: center; padding: 8px 12px; font-size: .8rem; white-space: nowrap; }
  .nav-inner { justify-content: space-between; }
  .nav-actions { margin-left: auto; }
  .nav-search input { font-size: 16px; }              /* stops iOS zoom-on-focus */
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
  .modal-overlay { padding: 10px; }
  .modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
  .modal-header { padding: 16px 18px; border-radius: 14px 14px 0 0; }
  .modal-body { padding: 18px; }
  .user-menu { right: -8px; }
}
@media (max-width: 480px) {
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .logo-icon { font-size: 1.6rem; }
  .logo-text h1 { font-size: 1.15rem; }
  .logo-text span { font-size: .6rem; white-space: nowrap; }
  .nav-actions { gap: 6px; }
  .cart-btn { padding: 8px 12px; }
  .product-info { padding: 10px; }
  .product-name { font-size: .98rem; }
  .product-img-wrap { height: 140px; }
  .product-price { font-size: 1.05rem; }
  .section { padding: 0 12px; }
  .top-banner { font-size: .74rem; }
}
/* touch screens: comfortable tap targets */
@media (pointer: coarse) {
  .weight-chip { padding: 7px 13px; font-size: .8rem; min-height: 34px; }
  .qty-btn { width: 34px; height: 34px; font-size: 1.1rem; }
  .cart-item .qty-btn { width: 34px !important; height: 34px !important; }
  .add-btn { padding: 9px 16px; min-height: 38px; }
  .tab-btn { padding: 10px 20px; }
  .modal-close, .cart-close { width: 38px; height: 38px; }
  .um-item { padding: 14px 16px; }
}

/* ── Header: search always gets its own full row on phones ──── */
@media (max-width: 768px) {
  .nav-search { flex: 1 1 100%; }
}
@media (max-width: 360px) {
  .nav-inner { padding: 10px 12px; gap: 8px; }
  .logo-icon { font-size: 1.4rem; }
  .logo-text h1 { font-size: 1.05rem; }
  .logo-text span { font-size: .56rem; }
  .nav-btn { padding: 8px 9px; font-size: .75rem; }
  .cart-btn { padding: 8px 10px; font-size: .78rem; gap: 5px; }
}

/* ── SatvikDay logo + wordmark ──────────────────────────────── */
.logo-mark { width: 42px; height: 42px; flex-shrink: 0; display: block; }
.logo-text h1 .bd { color: #ffcc02; }
@media (max-width: 480px) { .logo-mark { width: 34px; height: 34px; } }
@media (max-width: 360px) { .logo-mark { width: 30px; height: 30px; } }
/* "Day" in the wordmark must match the name's size (override tagline span styles) */
.logo-text h1 .bd { font-size: inherit; font-weight: inherit; opacity: 1; white-space: nowrap; }

/* ── Simplified hero + header banner ───────────────────────── */
.hero { padding: 30px 16px 28px; }
.hero h2 { font-size: clamp(1.35rem, 4.5vw, 2.2rem); margin: 0; line-height: 1.25; }
.cutoff-chip { display: inline-block; background: rgba(255,255,255,.16); padding: 1px 10px; border-radius: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.cutoff-chip.urgent { background: #c62828; }
.cutoff-chip:empty { display: none; }
#shop { margin-top: 24px; scroll-margin-top: 80px; }
.footer-links a { color: inherit; }
.footer-links a:hover { text-decoration: underline; }
.hero-content { max-width: 960px; }
@media (max-width: 480px) {
  .category-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tab-btn { width: 100%; justify-content: center; text-align: center; padding: 10px 8px; }
}

/* phones: My Orders and Cart shrink to icons so the header stays on one row */
@media (max-width: 480px) {
  .nb-label, .cart-label { display: none; }
  #myOrdersBtn { padding: 8px 10px; font-size: 1rem; }
}

/* phones: keep logo + buttons on one row, search on the next */
@media (max-width: 480px) {
  .nav-inner { gap: 6px; padding: 8px 12px; }
  .logo { gap: 7px; min-width: 0; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text h1 { font-size: 1.05rem; }
  .logo-text span { font-size: .56rem; }
  .nav-actions { gap: 5px; }
  .nav-btn { padding: 7px 9px; font-size: .74rem; }
  #myOrdersBtn { padding: 7px 9px; }
  .cart-btn { padding: 7px 10px; font-size: .78rem; gap: 5px; }
}
@media (max-width: 375px) {
  .nav-inner { padding: 8px 10px; gap: 5px; }
  .logo { gap: 5px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-text h1 { font-size: 1rem; }
  .nav-actions { gap: 4px; }
  .nav-btn, #myOrdersBtn { padding: 7px 7px; font-size: .7rem; }
  .cart-btn { padding: 7px 8px; font-size: .74rem; gap: 4px; }
  #authBtn { max-width: 78px; overflow: hidden; text-overflow: ellipsis; }
}

/* ── Google Map address picker ─────────────────────────────── */
.addr-map { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; margin: 4px 0 16px; background: #fff; }
.addr-map-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: #f1f8e9; font-size: .8rem; font-weight: 700; color: var(--green-dark); }
.map-btn { background: var(--green); color: #fff; border-radius: 16px; padding: 6px 12px; font-size: .76rem; font-weight: 700; }
.map-btn:disabled { opacity: .6; cursor: wait; }
.addr-map iframe { width: 100%; height: 210px; border: 0; display: block; background: #e8f5e9; }
.addr-map-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 7px 12px; font-size: .76rem; }
.addr-map-pin[hidden] { display: none; }
.addr-map-pin { color: var(--green-dark); font-weight: 600; }
.addr-map-pin button { background: none; color: #c62828; text-decoration: underline; font-size: .76rem; }
.addr-map-open { color: #1565c0; font-weight: 600; margin-left: auto; }
.area-note { font-size: .76rem; color: var(--muted); margin: -8px 0 12px; }
@media (max-width: 480px) { .addr-map iframe { height: 180px; } }

/* ── Footer social buttons ─────────────────────────────────── */
.footer-contact-list a { color: inherit; }
.footer-contact-list a:hover { text-decoration: underline; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: transform .15s ease, opacity .15s ease;
}
.social-btn:hover { transform: translateY(-2px); opacity: .92; }
.social-btn.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.fb { background: #1877f2; }
.social-btn.wa { background: #25d366; }


/* ============================================================
   Header buttons: My Orders · User · Cart
   Same look as the category buttons (.tab-btn): white pill, green
   border + bold green text, emoji icon; solid green on hover.
   ============================================================ */
.nav-actions { gap: 10px; }
.nav-actions .nav-btn,
.nav-actions .cart-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  position: relative;
  padding: 9px 20px;
  border-radius: 24px;
  border: 2px solid var(--green-light);
  background: #fff;
  color: var(--green);
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.nav-actions .nav-btn:hover,
.nav-actions .cart-btn:hover,
.nav-actions .nav-user[aria-expanded="true"] {
  background: var(--green);
  color: #fff;
  border-color: #fff;
  transform: none;
}
.nav-actions .nav-btn:focus-visible, .nav-actions .cart-btn:focus-visible { outline: 3px solid #ffd54f; outline-offset: 2px; }
.nav-actions .nb-emo { font-size: 1rem; line-height: 1; }
.nu-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.nu-chev { font-size: .8rem; opacity: .8; transition: transform .2s ease; }
.nav-user[aria-expanded="true"] .nu-chev { transform: rotate(180deg); }

/* Cart count: small orange badge on the pill's corner (hidden when empty) */
.nav-actions .cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 21px; height: 21px; width: auto; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  border: 2px solid #fff;
  font-size: .7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-actions .cart-count.is-empty { display: none; }
.nav-actions .cart-count.bump { animation: cartBump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nav-actions .cart-count.bump { animation: none; } }

@media (max-width: 768px) {
  .nav-actions { gap: 8px; }
  .nav-actions .nav-btn, .nav-actions .cart-btn { padding: 8px 14px; font-size: .82rem; }
}
/* Phones: My Orders + Cart become round emoji buttons; the user button keeps a short name */
@media (max-width: 480px) {
  .nav-actions { gap: 7px; }
  .nav-actions .nav-orders, .nav-actions .cart-btn { width: 40px; height: 40px; padding: 0; }
  .nav-actions .nav-orders .nb-label, .nav-actions .cart-label { display: none; }
  .nav-actions .nav-user { height: 40px; padding: 0 12px; font-size: .8rem; }
  .nav-actions .nu-name { max-width: 64px; }
  .nav-actions .nu-chev { display: none; }
  #authBtn { max-width: none; overflow: visible; }
  .nav-actions .cart-count { top: -6px; right: -6px; min-width: 19px; height: 19px; font-size: .66rem; }
}
@media (max-width: 360px) {
  .nav-actions { gap: 5px; }
  .nav-actions .nav-orders, .nav-actions .cart-btn { width: 36px; height: 36px; }
  .nav-actions .nav-user { height: 36px; padding: 0 9px; font-size: .74rem; }
  .nav-actions .nu-name { max-width: 52px; }
  .nav-actions .nav-user .nb-emo { display: none; }
}

/* ============================================================
   Wishlist
   ============================================================ */
/* heart on product image (bottom-right, clear of the badges at the top) */
.wish-btn {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.95);
  border: 2px solid var(--green-light);
  font-size: 1.05rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .15s ease, background var(--transition), border-color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.wish-btn:hover { transform: scale(1.08); }
.wish-btn.on { border-color: #e53935; background: #fff; }
.wish-btn.pop { animation: wishPop .4s cubic-bezier(.3,1.6,.5,1); }
.wish-btn:focus-visible { outline: 3px solid #ffd54f; outline-offset: 2px; }
@keyframes wishPop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .wish-btn.pop { animation: none; } }

/* header Wishlist button uses the same pill + badge as Cart */
.nav-actions .nav-wish { position: relative; }
.nav-actions .wish-count { background: #e53935; }

/* panel */
.wl-note { font-size: .8rem; color: #616161; background: #f1f8e9; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.wl-note a { color: var(--green); font-weight: 700; text-decoration: underline; }
.wl-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.wl-item:last-child { border-bottom: none; }
.wl-img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: #f1f8e9; flex: 0 0 auto; }
.wl-info { flex: 1 1 auto; min-width: 0; }
.wl-name { font-weight: 700; color: var(--text); font-size: .92rem; overflow-wrap: anywhere; }
.wl-hi { color: #9e9e9e; font-weight: 500; font-size: .75rem; }
.wl-price { font-weight: 800; color: var(--green); font-size: .9rem; margin-top: 2px; }
.wl-price span { color: var(--muted); font-weight: 500; font-size: .75rem; }
.wl-out { font-size: .78rem; color: #c62828; font-weight: 700; margin-top: 2px; }
.wl-unavail .wl-img { filter: grayscale(.8); opacity: .7; }
.wl-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.wl-add {
  padding: 7px 14px; border-radius: 24px; border: 2px solid var(--green-light);
  background: #fff; color: var(--green); font-weight: 700; font-size: .8rem; white-space: nowrap;
  transition: all var(--transition);
}
.wl-add:hover { background: var(--green); color: #fff; border-color: var(--green); }
.wl-add.in-cart { background: var(--green); color: #fff; border-color: var(--green); }
.wl-remove {
  width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #9e9e9e;
  border: 1.5px solid var(--border); font-size: .85rem; font-weight: 700;
}
.wl-remove:hover { color: #c62828; border-color: #ef9a9a; }
.wl-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.wl-empty-ico { font-size: 3.4rem; margin-bottom: 10px; }
.wl-empty h3 { font-size: 1.05rem; color: #424242; margin-bottom: 6px; }
.wl-empty p { font-size: .86rem; }
.wl-empty .place-order-btn { margin-left: auto; margin-right: auto; }

@media (max-width: 480px) {
  .wish-btn { width: 34px; height: 34px; right: 8px; bottom: 8px; font-size: .95rem; }
  .nav-actions .nav-wish { width: 40px; height: 40px; padding: 0; }
  .nav-actions .nav-wish .nb-label { display: none; }
  .wl-img { width: 50px; height: 50px; }
}
@media (max-width: 360px) {
  .nav-actions .nav-wish { width: 36px; height: 36px; }
}

/* Narrow phones: 4 header buttons don't fit next to the logo, so My Orders moves into the
   user menu (📦 My Orders item) and the header keeps Wishlist · User · Cart. */
.user-menu .um-orders { display: none; }
@media (max-width: 420px) {
  .nav-actions #myOrdersBtn { display: none !important; }
  .user-menu .um-orders { display: block; }
}

/* ============================================================
   Edit order (add / remove products)
   ============================================================ */
.moc-edit-form { margin: 10px 18px 4px; padding: 14px; border: 1.5px dashed #1565c0; border-radius: 10px; background: #f5f9ff; }
.oe-title { font-weight: 800; color: #1565c0; margin-bottom: 4px; }
.oe-sub { font-size: .76rem; color: #757575; margin-bottom: 10px; }
.oe-list { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 2px 10px; }
.oe-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
.oe-row:last-child { border-bottom: none; }
.oe-name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .86rem; overflow-wrap: anywhere; }
.oe-meta { color: #9e9e9e; font-weight: 500; font-size: .74rem; }
.oe-badge { background: #e8f5e9; color: var(--green); font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 8px; vertical-align: middle; }
.oe-new { background: linear-gradient(90deg, #f1f8e9, transparent); }
.oe-removed .oe-name { color: #9e9e9e; }
.oe-stepper { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.oe-qty { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--green); background: #fff; color: var(--green); font-weight: 800; font-size: 1rem; line-height: 1; }
.oe-qty-plus { background: var(--green); color: #fff; }
.oe-qty-num { min-width: 22px; text-align: center; font-weight: 800; }
.oe-del { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #ffcdd2; background: #fff; font-size: .9rem; flex: 0 0 auto; }
.oe-del:hover { background: #ffebee; }
.oe-undo { border: 1.5px solid var(--green-light); background: #fff; color: var(--green); border-radius: 16px; padding: 4px 10px; font-weight: 700; font-size: .75rem; }
.oe-total { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: .8rem; color: #616161; }
.oe-total strong { color: var(--green-dark); font-size: .95rem; }
.oe-warn { margin-top: 6px; font-size: .76rem; color: #c62828; font-weight: 700; }
.oe-add { margin-top: 12px; }
.oe-add-title { font-weight: 800; color: var(--green-dark); font-size: .86rem; margin-bottom: 6px; }
.oe-search { width: 100%; padding: 9px 14px; border: 2px solid var(--green-light); border-radius: 24px; font-size: 16px; background: #fff; }
.oe-search:focus { outline: none; border-color: var(--green); }
.oe-picker { margin-top: 8px; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 2px 8px; -webkit-overflow-scrolling: touch; }
.oe-pick { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f0f0f0; }
.oe-pick:last-child { border-bottom: none; }
.oe-pick img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: #f1f8e9; flex: 0 0 auto; }
.oe-pick-name { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .82rem; overflow-wrap: anywhere; }
.oe-size { border: 1.5px solid var(--border); border-radius: 8px; padding: 5px 6px; font-size: .76rem; max-width: 130px; background: #fff; }
.oe-add-btn { border: 2px solid var(--green-light); background: #fff; color: var(--green); border-radius: 18px; padding: 5px 12px; font-weight: 700; font-size: .78rem; white-space: nowrap; flex: 0 0 auto; transition: all var(--transition); }
.oe-add-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.oe-empty, .oe-hint { font-size: .76rem; color: #9e9e9e; padding: 8px 2px; text-align: center; }
.oe-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.oe-btn { border: 1.5px solid #9e9e9e; border-radius: 8px; background: #fff; padding: 8px 14px; font-weight: 600; }
.oe-danger { border-color: #c62828; color: #c62828; font-weight: 700; }
@media (max-width: 420px) {
  .moc-edit-form { margin: 10px 8px 4px; padding: 12px 10px; }
  .oe-size { max-width: 104px; font-size: .72rem; }
  .oe-pick img { width: 30px; height: 30px; }
}

/* ============================================================
   Ratings
   ============================================================ */
.rt-line { display: flex; align-items: center; gap: 4px; font-size: .76rem; margin: 2px 0 4px; }
.rt-stars { color: #ffa000; letter-spacing: 1px; font-size: .85rem; }
.rt-avg { font-weight: 800; color: #424242; }
.rt-count { color: #9e9e9e; }
.rt-none { color: #bdbdbd; }
.order-item-row.has-rate { flex-wrap: wrap; }
.rt-rate { flex-basis: 100%; display: flex; align-items: center; gap: 2px; margin-top: 2px; }
.rt-rate.busy { opacity: .5; pointer-events: none; }
.rt-rate-lbl { font-size: .72rem; color: #757575; margin-right: 4px; }
.rt-pick { background: none; border: none; color: #ffa000; font-size: 1.25rem; line-height: 1; padding: 4px 3px; min-width: 30px; min-height: 30px; }
.rt-pick:hover, .rt-pick.on { transform: scale(1.08); }

/* ============================================================
   Feedback
   ============================================================ */
.fb-intro { font-size: .86rem; color: #616161; margin-bottom: 12px; }
.fb-stars { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.fb-star { background: none; border: none; font-size: 1.9rem; color: #ffa000; line-height: 1; padding: 2px 3px; min-width: 40px; min-height: 40px; }
.fb-star.on { transform: scale(1.06); }
.fb-stars-lbl { font-size: .8rem; color: #757575; margin-left: 6px; font-weight: 600; }
.fb-count { text-align: right; font-size: .7rem; color: #9e9e9e; margin-top: 2px; }
.fb-history { margin-top: 18px; }
.fb-hist-title { font-weight: 800; color: var(--green-dark); font-size: .88rem; margin-bottom: 8px; }
.fb-hist-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fafafa; }
.fb-hist-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-topic { font-weight: 800; font-size: .8rem; color: var(--green); }
.fb-hist-stars { color: #ffa000; font-size: .8rem; letter-spacing: 1px; }
.fb-status { margin-left: auto; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 10px; background: #fff3e0; color: #e65100; }
.fb-status.done { background: #e8f5e9; color: #2e7d32; }
.fb-hist-msg { font-size: .84rem; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fb-reply { font-size: .8rem; margin-top: 6px; padding: 6px 10px; background: #e8f5e9; border-left: 3px solid var(--green); border-radius: 6px; }
.fb-hist-date { font-size: .7rem; color: #9e9e9e; margin-top: 4px; }

/* ── Footer reviews (approved general feedback) ─────────────── */
.testimonials { max-width: 1280px; margin: 0 auto 28px; padding: 0 0 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.tm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tm-head h3 { font-size: 1.1rem; font-weight: 800; color: #fff; }
.tm-avg { font-size: .8rem; opacity: .85; margin-top: 4px; }
.tm-avg-stars { color: #ffd54f; letter-spacing: 1px; }
.tm-write { padding: 9px 20px; border-radius: 24px; border: 2px solid #fff; background: #fff; color: var(--green-dark); font-weight: 700; font-size: .86rem; transition: all var(--transition); }
.tm-write:hover { background: transparent; color: #fff; }
.tm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tm-card { margin: 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 14px 16px; }
.tm-stars { color: #ffd54f; letter-spacing: 1px; font-size: .9rem; }
.tm-msg { margin: 6px 0 8px; font-size: .86rem; line-height: 1.55; opacity: .95; white-space: pre-wrap; overflow-wrap: anywhere; }
.tm-who { font-size: .76rem; opacity: .75; font-weight: 600; }
.tm-empty { font-size: .86rem; opacity: .8; }
.testimonials.tm-none .tm-list { display: block; }
@media (max-width: 600px) {
  .testimonials { padding: 0 16px 22px; }
  .tm-list { grid-template-columns: 1fr; }
  .tm-write { width: 100%; }
}
.fb-public-note { font-size: .78rem; color: #2e7d32; background: #e8f5e9; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.fb-order-box { border: 1px solid var(--border); background: #fafafa; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; font-size: .84rem; }
.fb-order-items { color: #616161; font-size: .78rem; margin-top: 4px; overflow-wrap: anywhere; }
.fb-order-meta { color: #9e9e9e; font-size: .72rem; margin-top: 2px; }

/* Dialogs that can open on top of another dialog (order feedback from My Orders, login prompts)
   must stack above it; otherwise they open hidden behind the first one. */
#feedbackModal, #authModal { z-index: 3100; }

/* ============================================================
   Product card (compact) + product detail popup
   ============================================================ */
.product-card { cursor: pointer; }
.product-img-wrap:focus-visible { outline: 3px solid #ffd54f; outline-offset: -3px; }

.pd-modal { max-width: 860px; width: 100%; position: relative; padding: 0; overflow-y: auto; }
.pd-close { position: absolute; top: 12px; right: 12px; z-index: 5; background: rgba(255,255,255,.95) !important; color: #424242 !important; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pd-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; }
.pd-img { position: relative; background: #f1f8e9; min-height: 320px; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; max-height: 440px; }
.pd-main { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.pd-cat { align-self: flex-start; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 12px; background: #e8f5e9; color: var(--green); }
.pd-cat.cat-fruits { background: #fff3e0; color: #e65100; }
.pd-cat.cat-exotics { background: #f3e5f5; color: #8e24aa; }
.pd-cat.cat-kitchen { background: #efebe9; color: #6d4c41; }
.pd-name { font-size: 1.5rem; font-weight: 900; color: var(--text); line-height: 1.2; margin-top: 4px; }
.pd-hi { color: var(--muted); font-size: .92rem; }
.pd-rating { font-size: .82rem; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pd-desc { font-size: .9rem; color: #424242; line-height: 1.6; margin: 6px 0 4px; }
.pd-label { font-size: .74rem; font-weight: 800; color: #757575; text-transform: uppercase; letter-spacing: .4px; margin-top: 6px; }
.pd-chips { margin-bottom: 2px; }
.pd-pack { font-weight: 700; color: var(--green-dark); }
.pd-price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pd-price { font-size: 1.8rem; font-weight: 900; color: var(--green-dark); }
.pd-per { color: var(--muted); font-size: .9rem; }
.pd-mrp { color: #9e9e9e; font-size: .95rem; }
.pd-off { background: #ffebee; color: #c62828; font-weight: 800; font-size: .76rem; padding: 2px 8px; border-radius: 10px; }
.pd-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pd-add { padding: 11px 22px; font-size: .95rem; min-height: 44px; }
.pd-qty .qty-btn { width: 40px; height: 40px; font-size: 1.2rem; }
.pd-go-cart { border: 2px solid var(--green-light); background: #fff; color: var(--green); border-radius: 24px; padding: 9px 16px; font-weight: 700; font-size: .86rem; }
.pd-wish { border: 2px solid var(--green-light); background: #fff; color: var(--green); border-radius: 24px; padding: 9px 16px; font-weight: 700; font-size: .86rem; margin-left: auto; }
.pd-wish.on { border-color: #e53935; color: #c62828; }
.pd-section { padding: 18px 24px; border-top: 1px solid var(--border); }
.pd-section h4 { font-size: .98rem; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; }
.pd-basis { font-size: .76rem; color: var(--muted); font-weight: 600; }
.pd-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.pd-table th { text-align: left; font-size: .74rem; color: #757575; font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.pd-table td { padding: 9px 8px; border-bottom: 1px solid #f3f3f3; }
.pd-table tr { cursor: pointer; }
.pd-table tbody tr:hover { background: #f9fbe7; }
.pd-table tr.on { background: #e8f5e9; }
.pd-table tr.on td:first-child { font-weight: 800; color: var(--green-dark); }
.pd-save { color: #c62828; font-weight: 700; }
.pd-nut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pd-nut { background: #f1f8e9; border-radius: 12px; padding: 12px; text-align: center; }
.pd-nut-ico { font-size: 1.2rem; }
.pd-nut-val { font-weight: 900; color: var(--green-dark); font-size: 1.05rem; margin-top: 2px; }
.pd-nut-lbl { font-size: .72rem; color: #757575; font-weight: 700; text-transform: uppercase; }
.pd-nut-sel { font-size: .7rem; color: #616161; margin-top: 4px; }
.pd-vit { margin-top: 10px; font-size: .86rem; color: #424242; }
.pd-benefits { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.pd-benefits li { font-size: .86rem; padding-left: 22px; position: relative; }
.pd-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.pd-gone { padding: 60px 24px; text-align: center; color: var(--muted); }
@media (max-width: 700px) {
  .pd-top { grid-template-columns: 1fr; }
  .pd-img, .pd-img img { min-height: 220px; max-height: 260px; }
  .pd-main { padding: 18px 16px 16px; }
  .pd-name { font-size: 1.3rem; }
  .pd-section { padding: 16px; }
  .pd-wish { margin-left: 0; }
  .pd-nut { padding: 10px 6px; }
}

/* Mobile: discount label on the LEFT of the photo (cards + product popup);
   the top-right stays clear (popup close button), the heart stays bottom-right. */
@media (max-width: 700px) {
  .product-card .discount-badge,
  .pd-img .discount-badge { left: 10px; right: auto; }
}
