/* TFSwift storefront styles */
:root {
  --brand: #c84900;
  --brand-dark: #a33a00;
  --accent: #ff5a00;
  --ink: #1d1a18;
  --muted: #70655f;
  --line: #eadfd8;
  --surface: #fff4ec;
  --bs-success-rgb: 200, 73, 0;
  --bs-border-color: #eadfd8;
}

.address-flow { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.address-flow__step { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-right: 8px; border-radius: 50%; background: var(--surface); color: var(--brand-dark); font-size: 12px; font-weight: 800; }
.address-flow__saved { display: inline-flex; align-items: center; gap: 7px; color: #1a7f37; font-size: 13px; font-weight: 700; }
.address-label-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.address-label-choice { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dfae91; border-radius: 999px; background: var(--surface); color: var(--brand-dark); padding: 8px 13px; font-size: 13px; font-weight: 700; }
.address-label-choice:hover, .address-label-choice:focus-visible { background: #ffe3d1; border-color: var(--brand); }
.address-label-choice:disabled { opacity: .6; cursor: wait; }
.delivery-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.delivery-choice { display: flex; align-items: flex-start; gap: 10px; min-height: 78px; width: 100%; padding: 13px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.delivery-choice i { color: var(--brand); font-size: 19px; line-height: 1.2; }
.delivery-choice strong, .delivery-choice small { display: block; line-height: 1.3; }
.delivery-choice strong { font-size: 13px; }
.delivery-choice small { margin-top: 4px; color: #6d6470; font-size: 11px; }
.delivery-choice:hover, .delivery-choice:focus-visible { border-color: var(--brand); }
.delivery-choice.is-selected { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 2px rgba(200, 73, 0, .12); }
@media (max-width: 420px) { .delivery-choice-grid { grid-template-columns: 1fr; } .delivery-choice { min-height: 64px; } }

.address-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.address-list-heading h6 { line-height: 1.3; }
.address-list-empty { display: flex; align-items: center; gap: 10px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
.address-list-empty i { color: var(--brand); font-size: 20px; }
.address-card { border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.address-card.is-selected { border-color: var(--brand); background: #fffaf6; }
.address-card__main { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; cursor: pointer; }
.address-card__main input { flex: none; margin-top: 4px; accent-color: var(--brand); }
.address-card__content { min-width: 0; display: grid; gap: 4px; font-size: 13px; }
.address-card__title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--ink); }
.address-card__badge { border-radius: 999px; padding: 2px 7px; background: var(--surface); color: var(--brand-dark); font-size: 10px; font-weight: 700; }
.address-card__line { color: var(--ink); overflow-wrap: anywhere; line-height: 1.4; }
.address-card__pin { color: var(--muted); font-size: 12px; }
.address-card__unavailable { color: #a33a00; font-size: 12px; }
.address-card__actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 9px 12px; border-top: 1px solid var(--line); }
.address-card__actions button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--brand-dark); padding: 5px 9px; font-size: 12px; font-weight: 700; }
.address-card__actions button:hover { background: var(--surface); border-color: #dfae91; }
.address-card__actions .address-card__delete { color: #a43a2b; }
.address-location-loader { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 14px; border: 1px solid #f0c6ab; border-radius: 12px; background: var(--surface); color: var(--brand-dark); }
.address-location-loader .spinner-border { flex: none; width: 20px; height: 20px; }
.address-location-loader strong, .address-location-loader small { display: block; }
.address-location-loader strong { font-size: 13px; }
.address-location-loader small { margin-top: 2px; color: var(--muted); font-size: 12px; }
@media (max-width: 390px) { .address-list-heading { align-items: flex-start; } .address-list-heading .btn { flex: none; } }

.home-coupon-list { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.home-coupon-card { flex: 0 0 min(185px, 62vw); display: flex; flex-direction: column; justify-content: space-between; gap: 5px; min-height: 86px; padding: 9px 10px; border: 1px solid #f0c6ab; border-radius: 10px; background: linear-gradient(135deg, #fff4ec, #fff); }
.home-coupon-card__code { display: inline-block; color: var(--brand-dark); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.home-coupon-card__description { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.3; }
.home-coupon-card__button { align-self: flex-start; border: 0; border-radius: 6px; background: var(--brand); color: #fff; padding: 5px 8px; font-size: 10px; font-weight: 800; }
.home-coupon-card__button:hover { background: var(--brand-dark); }

.special-request-callout { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 18px; border: 1px solid #f0c6ab; border-radius: 16px; background: linear-gradient(120deg, #fff4ec, #fff); }
.special-request-callout__icon, .special-request-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: #ffe3d1; color: var(--brand-dark); font-size: 21px; }
.special-request-callout h2 { margin: 0 0 3px; font-size: 16px; font-weight: 800; }
.special-request-callout p { margin: 0; color: var(--muted); font-size: 12px; }
.special-request-callout .btn { margin-left: auto; flex: none; }
.special-request-page { max-width: 760px; }
.special-request-intro { display: flex; align-items: center; gap: 14px; }
.special-request-intro h1 { margin: 0 0 4px; font-size: clamp(22px, 4vw, 30px); font-weight: 800; }
.special-request-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.special-request-form { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.special-request-section-title { margin-bottom: 10px; font-size: 15px; font-weight: 800; }
.special-request-types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.special-request-types label { cursor: pointer; }
.special-request-types input { position: absolute; opacity: 0; }
.special-request-types span { display: grid; gap: 2px; min-height: 92px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.special-request-types i { color: var(--brand); font-size: 20px; }
.special-request-types strong { font-size: 13px; }
.special-request-types small { color: var(--muted); font-size: 11px; }
.special-request-types input:checked + span { border-color: var(--brand); background: var(--surface); }
.special-request-types input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.special-request-item { padding: 9px 0; border-bottom: 1px solid var(--line); }
.special-request-item .form-label { margin-bottom: 4px; }
.special-request-remove { width: 100%; min-height: 42px; padding: 0; }
@media (max-width: 600px) { .special-request-callout { flex-wrap: wrap; padding: 14px; } .special-request-callout .btn { width: 100%; margin-left: 0; } .special-request-form { padding: 16px; } }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
}

/* Brand and header */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand-logo {
  width: 70px;
  height: 48px;
  object-fit: contain;
  flex: none;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
}
.logo-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}
.location-line {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 200px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.location-line strong { color: var(--ink); }
@media (max-width: 767.98px) {
  .topbar .brand-logo { width: 58px; height: 40px; }
  .topbar .logo-sub { font-size: 0.62rem; letter-spacing: 0.1em; }
  .location-line { max-width: 38vw; }
}

.search-wrap .form-control,
.search-wrap .btn {
  border-radius: 10px;
}
.search-wrap .form-control {
  border: 1px solid var(--line);
  background: #faf5f1;
}
.search-wrap .form-control:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(200, 73, 0, 0.15);
}
.search-wrap { position: relative; }
.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1031;
  max-height: min(360px, 60vh);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus-visible { background: #fff0e5; }
.search-result img { width: 42px; height: 42px; flex: none; border-radius: 7px; object-fit: cover; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  position: relative;
}
.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.category-layout {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.category-group-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}
.category-group-card:hover, .category-group-card:focus-visible { border-color: var(--brand); color: var(--brand-dark); }
.category-group-card img { width: 70px; height: 70px; object-fit: cover; border-radius: 9px; flex: none; }
.category-group-card strong, .category-group-card small { display: block; }
.category-group-card small { color: var(--muted); margin-top: 3px; }
.category-group-links { display: flex; flex-wrap: wrap; gap: 8px; }
.category-group-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.category-group-links a:hover, .category-group-links a:focus-visible,
.category-group-links a[aria-current="page"] { border-color: var(--brand); background: #fff0e5; color: var(--brand-dark); }
@media (max-width: 575.98px) {
  .category-group-card { align-items: flex-start; flex-direction: column; gap: 8px; }
  .category-group-card img { width: 100%; aspect-ratio: 1 / 1; height: auto; }
}
.category-sidebar {
  position: sticky;
  top: 112px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
}
.category-side-link {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}
.category-side-link img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff2e8;
}
.subcategory-layout { display: block; }
.subcategory-layout .category-sidebar {
  position: static;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
  margin-bottom: 20px;
}
.subcategory-layout .category-side-link {
  min-height: 128px;
  padding: 8px;
  font-size: 0.75rem;
}
.subcategory-layout .category-side-link img { width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 8px; }
.subcategory-layout .category-results { max-width: none; }
@media (max-width: 767.98px) {
  .subcategory-layout #grid > .col { flex: 0 0 auto; width: 33.333333%; }
}
.category-side-link.active { border-color: var(--brand); background: #fff0e5; color: var(--brand-dark); }
.category-results { min-width: 0; max-width: 900px; }
@media (min-width: 768px) {
  .category-layout { grid-template-columns: 168px minmax(0, 1fr); gap: 16px; }
  .category-sidebar { top: 100px; max-height: calc(100vh - 116px); }
  .category-side-link { flex-direction: row; padding: 7px; gap: 8px; font-size: 0.85rem; text-align: left; }
  .category-side-link img { width: 44px; height: 44px; flex: none; }
  .subcategory-layout .category-sidebar { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .subcategory-layout .category-side-link { flex-direction: column; justify-content: center; text-align: center; font-size: 0.85rem; }
  .subcategory-layout .category-side-link img { width: 100%; aspect-ratio: 1 / 1; height: auto; }
}

/* Mobile bottom nav */
.mobile-nav {
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 1030;
}
.mnav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #555;
  background: none;
  border: 0;
  font-size: 1.25rem;
  text-decoration: none;
  padding: 2px 14px;
  position: relative;
}
.mnav-link small { font-size: 0.65rem; font-weight: 600; }
.mnav-link:hover { color: var(--brand); }
@media (max-width: 767.98px) {
  body { padding-bottom: 66px; }
}


/* Product cards */
.product-card {
  background: #fff;
  overflow: hidden;
  height: 100%;
  font-size: 0.94rem;
  text-align: left;
  transition: box-shadow 0.15s ease;
}
.product-card .price-wrap {
  text-align: left;
}
@media (max-width: 575.98px) {
  #catSection h2, #gridTitle { font-size: 1.1rem; }
  .product-card .price { font-size: 0.86rem; }
}
.product-image { position: relative; }
.featured-badge {
  position: absolute; left: 6px; top: 6px; z-index: 2;
  background: #ffc107; color: #3d2e00;
  font-size: 0.68rem; font-weight: 800;
  padding: 0.1rem 0.45rem; border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.image-action { position: absolute; right: 6px; bottom: 6px; }
.image-action .add-btn { padding: 0.2rem 0.7rem; }
.image-action .stepper { gap: 0.25rem; }
/* Price / MRP / offer text is always left-aligned (cards, popup, related) */
.price-wrap,
.price-wrap .price,
.price-wrap .mrp,
.price-wrap .off,
.pmodal-price-row {
  text-align: left;
}
.product-card img,
.product-card .product-name { cursor: pointer; }

/* Product detail popup */
.product-modal { background: #fff; }
@media (min-width: 576px) {
  .product-modal { border-radius: 16px; }
}
.pmodal-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #fff2e8;
}
.pmodal-price { font-size: 1.5rem; font-weight: 800; }
.pmodal-buyrow { display: flex; gap: 8px; align-items: stretch; }
.pmodal-buyrow .pmodal-add {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border-radius: 10px;
}
.pmodal-buyrow .pmodal-stepper { padding: 0.6rem 0.8rem; font-size: 1.05rem; border-radius: 10px; }
.pmodal-buyrow .pmodal-cart-btn { border-radius: 10px; }
.pmodal-section { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
.stars { color: #e8a317; letter-spacing: 1px; }
.review-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  background: #fff;
}
.rel-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  height: 100%;
  text-align: left;
}
/* Product gallery */
.pmodal-gal { position: relative; }
.pmodal-thumbs { display: flex; gap: 6px; margin-top: 6px; }
.pmodal-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #fff2e8;
  cursor: pointer;
}
.pmodal-thumbs img.active { border-color: var(--brand); }
.pmodal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}
.pmodal-arrow.start-0 { left: 8px; }
.pmodal-arrow.end-0 { right: 8px; }

/* Pack-size selector */
.pmodal-packs { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  color: var(--ink);
}
.pack-pill small { color: var(--muted); font-weight: 700; }
.pack-pill.active { border-color: var(--brand); background: #fff0e5; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  background: #fff2e8;
}
.product-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.veg-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid #1a7f37;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.veg-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a7f37;
}
.veg-dot.nonveg { border-color: #a33; }
.veg-dot.nonveg::after { background: #a33; }
.price { font-weight: 800; }
.mrp { color: var(--muted); text-decoration: line-through; font-size: 0.82rem; }
.off { color: var(--brand); font-size: 0.78rem; font-weight: 700; }
.product-card .mrp { font-size: 0.78rem; }
.product-card .off { font-size: 0.75rem; }

.add-btn {
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 8px;
  padding: 0.25rem 1.4rem;
  background: #fff;
}
.add-btn:hover { background: var(--brand); color: #fff; }
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-weight: 800;
}
.stepper button {
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.3rem;
}

/* Cart rows */
#cartPanel .offcanvas-body { min-height: 0; }
.cart-footer {
  flex: none;
  display: flex;
  flex-direction: column;
  max-height: 60vh;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  background: #fff;
}
.cart-summary { min-height: 0; overflow-y: auto; }
#checkoutBtn { flex: none; }
.cart-row img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 9px;
}
.bill-row { font-size: 0.9rem; }

/* Customer profile panel */
.profile-panel { --bs-offcanvas-width: 420px; }
.profile-overview {
  padding: 1rem;
  border-radius: 12px;
  background: #fff0e5;
}
.profile-order { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.profile-order { display: flex; flex-direction: column; gap: 8px; height: auto; }
.profile-order__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.profile-order__head > strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.profile-order__action { min-height: 40px; margin-top: 4px; }
.order-badges { display: inline-flex; flex: none; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; }
.order-badges .badge, .order-unpaid-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 4px 7px; border-radius: 999px; font-size: 10px; line-height: 1; white-space: nowrap; }
.order-unpaid-badge { background: #fff0e5; color: #a33a00; border: 1px solid #f0c6ab; font-weight: 800; }
.profile-payment-reminder { display: flex; gap: 10px; margin-top: 14px; padding: 13px; border: 1px solid #f0c6ab; border-radius: 12px; background: #fff4ec; color: #7d382a; }
.profile-payment-reminder > i { flex: none; font-size: 19px; line-height: 1.2; }
.profile-payment-reminder strong { display: block; font-size: 13px; }
.profile-payment-reminder p { margin: 4px 0 0; font-size: 12px; line-height: 1.4; }
.profile-detail-section { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.profile-address { white-space: pre-line; }
.order-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0.5rem;
}
.order-progress li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.order-progress li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: #eadfd8;
}
.order-progress li.is-complete::after { background: var(--brand); }
.order-progress-dot {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #eadfd8;
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 0.85rem;
}
.order-progress .is-complete .order-progress-dot,
.order-progress .is-current .order-progress-dot {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.order-progress .is-current .order-progress-dot { box-shadow: 0 0 0 4px #ffe3d1; }
.order-progress .is-current .order-progress-label { color: var(--brand-dark); }
@media (max-width: 767.98px) {
  .profile-panel { --bs-offcanvas-width: 100vw; }
}

/* Footer */
.footer { background: #1c1c1c; color: #cfcfcf; }
.footer a { color: #cfcfcf; text-decoration: none; }
.footer a:hover { color: #fff; }



/* Selected location in the picker */
#locationList .list-group-item.active {
  background: var(--brand);
  border-color: var(--brand);
}
#locationList .list-group-item.active small { color: #fff; }

/* Item-added card */
#addedToast {
  min-width: 330px;
  max-width: 92vw;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
#addedImg {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff2e8;
  flex: none;
}

/* Storefront visual language. Bootstrap still provides layout and behavior. */
main h1, main h2, .modal-title, .offcanvas-title {
  color: var(--ink);
  letter-spacing: -0.035em;
}
.topbar {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(200, 73, 0, 0.06);
}
.logo-name { letter-spacing: -0.06em; }
.logo-sub { color: var(--brand-dark); letter-spacing: 0.19em; }
.icon-btn {
  border-color: transparent;
  background: var(--surface);
  border-radius: 7px;
}
.icon-btn:hover { background: #ffe8d7; border-color: transparent; }

.btn {
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn-success {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-bg: var(--brand);
  --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-success {
  --bs-btn-color: var(--brand-dark);
  --bs-btn-border-color: #dfae91;
  --bs-btn-hover-bg: var(--surface);
  --bs-btn-hover-color: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand);
  --bs-btn-active-border-color: var(--brand);
}
.btn-outline-secondary {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: var(--line);
  --bs-btn-hover-color: var(--ink);
  --bs-btn-hover-bg: var(--surface);
  --bs-btn-hover-border-color: #d9bba9;
}
.btn-link { --bs-btn-color: var(--brand-dark); --bs-btn-hover-color: var(--brand); }
.btn-check:checked + .btn-outline-success {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.btn:focus-visible, .add-btn:focus-visible, .stepper button:focus-visible,
.category-side-link:focus-visible, .mnav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

.form-control, .form-select, .input-group-text {
  border-color: var(--line);
  border-radius: 6px;
  color: var(--ink);
}
.form-control::placeholder { color: #8c7b71; }
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(200, 73, 0, 0.12);
}
.search-wrap .input-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.search-wrap .input-group:focus-within { border-color: var(--brand); }
.search-wrap .input-group-text, .search-wrap .form-control {
  border: 0 !important;
  background: transparent;
}
.search-wrap .form-control:focus { background: transparent; box-shadow: none; }
.search-results {
  border-radius: 7px;
  box-shadow: 0 14px 30px rgba(52, 27, 13, 0.12);
}
.search-result:hover, .search-result:focus-visible { background: var(--surface); }

.category-side-link { border-color: transparent; border-radius: 6px; }
.category-side-link:hover { background: var(--surface); }
.category-side-link.active {
  border-color: #f0c6ab;
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--brand);
}
.product-card:hover { box-shadow: none; }
.product-card img { border-radius: 7px; }
.product-name { color: var(--ink); }
.mrp { color: #8b807a; }
.add-btn {
  border-color: #fff;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(81, 33, 8, 0.15);
}
.add-btn:hover { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; }
.stepper { border-radius: 5px; background: var(--brand-dark); }
.home-info > div > div {
  border: 0 !important;
  border-left: 3px solid #ffc39b !important;
  border-radius: 4px !important;
  background: var(--surface) !important;
}

.mobile-nav {
  border-color: var(--line) !important;
  box-shadow: 0 -5px 20px rgba(52, 27, 13, 0.07);
}
.mnav-link { color: var(--muted); }
.mnav-link:hover, .mnav-link[aria-current="page"] { color: var(--brand-dark); }
.footer { background: #1c1815; color: #d6cbc3; }
.footer a { color: #eaded5; }
.footer a:hover { color: #fff; }

.modal-content, .offcanvas, #addedToast {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 20px 55px rgba(52, 27, 13, 0.14);
}
.modal-content { border-radius: 10px; }
.offcanvas-header, .modal-header { border-color: var(--line) !important; }
.profile-overview { border-radius: 6px; background: var(--surface); }
.profile-order, .review-card, .rel-card { border-color: var(--line); border-radius: 6px; }
.pack-pill { border-color: var(--line); border-radius: 6px; }
.pack-pill.active { border-color: var(--brand); background: var(--surface); }
.list-group-item { border-color: var(--line); }
#locationList .list-group-item.active { background: var(--surface); border-color: var(--brand); color: var(--ink); }
#locationList .list-group-item.active small { color: var(--muted); }
.alert { border-radius: 4px; border: 0; border-left: 3px solid; }
.alert-danger { background: #fff2ec; border-left-color: var(--accent); color: #7d382a; }
.alert-info { background: var(--surface); border-left-color: var(--brand); color: var(--brand-dark); }
.badge.text-bg-light { background: var(--surface) !important; color: var(--brand-dark) !important; }

/* App theme */
:root {
  --ink: #25242a;
  --muted: #716f79;
  --line: #e9e7ed;
  --surface: #fff1e7;
  --app-bg: #f6f7fa;
  --app-shadow: 0 7px 24px rgba(38, 32, 47, 0.07);
  --bs-border-color: var(--line);
}

body {
  background: var(--app-bg);
  -webkit-tap-highlight-color: transparent;
}
main.container { max-width: 1180px; }
main h1, main h2 { font-weight: 800; }
main h1 { font-size: clamp(1.4rem, 2vw, 1.8rem) !important; }
main h2 { font-size: clamp(1.12rem, 1.6vw, 1.35rem) !important; }

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(233, 231, 237, 0.9);
  box-shadow: 0 5px 20px rgba(38, 32, 47, 0.05);
  backdrop-filter: blur(16px);
}
.logo-name { font-size: 1.28rem; color: var(--brand-dark); }
.logo-sub { letter-spacing: 0.1em; }
.location-line { color: var(--muted); }
.location-line .bi-geo-alt-fill { color: var(--brand) !important; }
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f5f4f7;
}
.icon-btn:hover { background: var(--surface); }

.search-wrap .input-group {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f5f5f8;
}
.search-wrap .input-group-text { padding-left: 15px; color: var(--muted); }
.search-wrap .form-control { font-size: 0.92rem; }
.search-results { border-radius: 16px; box-shadow: var(--app-shadow); }
.search-result { min-height: 56px; }

.category-group-card {
  border: 1px solid #f0edf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--app-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.category-group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(38, 32, 47, 0.1);
}
.category-group-card img { border-radius: 14px; }
.category-group-card strong { font-size: 1rem; letter-spacing: -0.02em; }
.category-group-card small { font-size: 0.78rem; line-height: 1.35; }
.category-group-links {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 1px 8px;
}
.category-group-links::-webkit-scrollbar { display: none; }
.category-group-links a {
  flex: none;
  border-radius: 999px;
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 2px 8px rgba(38, 32, 47, 0.03);
  font-size: 0.85rem;
}
.category-group-links a[aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.subcategory-layout .category-sidebar { gap: 10px; }
.subcategory-layout .category-side-link {
  min-height: 0;
  border: 1px solid #eeebef;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(38, 32, 47, 0.045);
  line-height: 1.2;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.subcategory-layout .category-side-link:hover { transform: translateY(-2px); }
.subcategory-layout .category-side-link.active {
  border-color: var(--brand);
  background: #fff8f3;
  box-shadow: 0 0 0 2px rgba(200, 73, 0, 0.12);
}
.subcategory-layout .category-side-link img { border-radius: 12px; }
.category-results { max-width: none; }
#productsSection { scroll-margin-top: 150px; }

.product-card {
  border: 1px solid #eeebef;
  border-radius: 17px;
  box-shadow: 0 3px 14px rgba(38, 32, 47, 0.045);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(38, 32, 47, 0.09);
}
.product-card img { border-radius: 16px 16px 0 0; }
.product-card .product-name { font-size: 0.86rem; line-height: 1.3; min-height: 2.2em; }
.product-card .price { color: var(--ink); }
.product-card .off { color: #138247; }
.image-action { right: 6px; bottom: 6px; }
.image-action .add-btn {
  min-height: 32px;
  min-width: 52px;
  padding: 0.22rem 0.58rem;
  border: 1px solid var(--brand);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 3px 10px rgba(38, 32, 47, 0.13);
}
.image-action .add-btn:hover { background: var(--brand); color: #fff; }
.image-action .stepper { gap: 0.1rem; padding: 0.2rem; border-radius: 10px; }
.image-action .stepper button { min-width: 25px; min-height: 25px; padding: 0; }

.btn { border-radius: 12px; }
.btn-sm { border-radius: 10px; }
.btn-success, .add-btn { box-shadow: 0 4px 12px rgba(200, 73, 0, 0.16); }
.form-control, .form-select, .input-group-text { border-radius: 12px; }
.home-info > div > div {
  border: 1px solid #eeebef !important;
  border-left: 1px solid #eeebef !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: var(--app-shadow);
}
.profile-overview, .profile-order, .review-card, .rel-card, .pack-pill { border-radius: 14px; }
.modal-content { border-radius: 22px; }
.offcanvas { border-radius: 22px 0 0 22px; }
.offcanvas-header, .modal-header { padding-top: 1.2rem; padding-bottom: 1rem; }
.list-group-item { min-height: 44px; }
.rating-number { width: 14px; }
.rating-meter { height: 6px; border: 0; border-radius: 999px; appearance: none; background: #ece9e7; }
.rating-meter::-webkit-progress-bar { border-radius: 999px; background: #ece9e7; }
.rating-meter::-webkit-progress-value { border-radius: 999px; background: var(--brand); }
.rating-meter::-moz-progress-bar { border-radius: 999px; background: var(--brand); }
.rating-percent { width: 34px; }

@media (max-width: 767.98px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .topbar { border-radius: 0 0 22px 22px; }
  .topbar .container { padding-top: 10px !important; padding-bottom: 12px !important; }
  .topbar .brand-logo { width: 54px; height: 39px; }
  .topbar .logo-name { font-size: 1.16rem; }
  .topbar .logo-sub { font-size: 0.58rem; }
  .location-line { max-width: 44vw; }
  main.container { padding-left: 14px !important; padding-right: 14px !important; }
  main > section:first-child, main > h1:first-child { margin-top: 22px !important; }
  .home-coupons { margin-bottom: 8px; }
  #catSection { margin-top: 1.75rem !important; }
  .category-group-card { padding: 8px; }
  .subcategory-layout .category-sidebar { margin-bottom: 24px; }
  .subcategory-layout .category-side-link { padding: 6px; font-size: 0.73rem; }
  #productsSection { min-height: calc(100dvh - 150px); }
  .product-card .p-2 { padding: 7px !important; }
  .product-card .product-name { font-size: 0.78rem; }
  .product-card .price { font-size: 0.88rem; }
  .product-card .mrp, .product-card .off { font-size: 0.69rem; }
  .product-card .text-muted { font-size: 0.68rem; }
  .mobile-nav {
    border-top: 1px solid rgba(233, 231, 237, 0.9) !important;
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 -8px 28px rgba(38, 32, 47, 0.11);
    backdrop-filter: blur(16px);
    padding: 6px 4px calc(7px + env(safe-area-inset-bottom));
  }
  .mobile-nav .d-flex { align-items: stretch; }
  .mnav-link { flex: 1; min-width: 0; min-height: 57px; padding: 5px 2px; gap: 1px; }
  .mnav-link i { display: grid; place-items: center; width: 38px; height: 34px; border-radius: 12px; }
  .mnav-cart-icon { position: relative; display: inline-grid; place-items: center; width: 38px; height: 34px; }
  .mnav-cart-icon .cart-count { top: -5px; right: -9px; min-width: 18px; height: 18px; font-size: 0.65rem; }
  .mnav-link[aria-current="page"] i { background: var(--surface); color: var(--brand-dark); }
  .mnav-link small { font-size: 0.7rem; font-weight: 700; }
  /* App-like compact footer: visible on mobile, above the bottom nav. */
  .footer { display: block; border-radius: 22px 22px 0 0; margin-top: 1.25rem; padding-bottom: .5rem !important; }
  .footer .container { padding-top: 1.1rem; }
  .footer .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 0.75rem; }
  .footer .row > div { width: auto; max-width: none; padding-left: 0; padding-right: 0; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about small { font-size: 0.74rem; line-height: 1.45; }
  .footer strong { font-size: 0.78rem; margin-bottom: 0.4rem !important; }
  .footer .small, .footer .row small { font-size: 0.75rem; }
  .footer a.small { padding: 0.3rem 0; display: block; }
  .footer hr { margin: 0.9rem 0 0.6rem; }
  .offcanvas.offcanvas-end { width: min(100vw, 430px); border-radius: 24px 0 0 24px; }
  .toast-container.bottom-0 { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 575.98px) {
  .category-group-card img { border-radius: 14px; }
  .category-group-card strong { font-size: 0.92rem; }
  .category-group-card small { font-size: 0.72rem; }
  #locationModal .modal-dialog, #checkoutModal .modal-dialog {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    max-width: none;
  }
  #locationModal .modal-content, #checkoutModal .modal-content {
    border-radius: 24px 24px 0 0;
    max-height: 90dvh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-group-card, .subcategory-layout .category-side-link, .product-card { transition: none; }
}

/* Compact quick-commerce typography on the requested pages. */
.quick-commerce-font {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.015em;
}
.quick-commerce-font main h1,
.quick-commerce-font main h2,
.quick-commerce-font .modal-title,
.quick-commerce-font .offcanvas-title {
  font-weight: 800;
  letter-spacing: -0.045em;
}
.quick-commerce-font .product-name,
.quick-commerce-font .category-side-link,
.quick-commerce-font .category-group-card strong {
  font-weight: 700;
  letter-spacing: -0.025em;
}
.quick-commerce-font .price,
.quick-commerce-font .logo-name { letter-spacing: -0.045em; }
