:root {
  --primary: #16a34a;
  --primary-soft: #dcfce7;
  --bg: #f5f7f9;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --danger: #c0392b;
  --success: #1f8a4c;
  --border: #e5e7eb;
  --sc-font-sans:
    Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
  --sc-font-display:
    Poppins, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sc-font-sans);
  background: #ffffff;
  color: var(--text);
  overflow-x: hidden;
}

/* Resident typography: headings and key commerce text use a slightly more "display" face. */
h1,
h2,
h3,
h4,
h5,
h6,
.sc-nav-title,
.home-section-title,
.gp-product-name,
.gp-price,
.gp-old-price,
.pd-title,
.pd-price,
.pd-old-price,
.sc-cart-total,
.sc-cart-price,
.sc-checkout-item-price,
.price {
  font-family: var(--sc-font-display);
}

body.sc-no-scroll {
  overflow: hidden;
  height: 100vh;
  /* `touch-action:none` can break taps in some mobile webviews; keep UI interactive. */
  touch-action: manipulation;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.sc-top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, #fff3c8 0%, #fdf6df 100%);
  border-bottom: 1px solid #f3dfaa;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.sc-top-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 12px 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.sc-top-logo {
  text-decoration: none;
  color: #101828;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.sc-top-address {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.sc-top-address-text {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-top-search-wrap {
  position: relative;
}

.sc-top-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.65;
}

.sc-top-search-input {
  width: 100%;
  border: 1px solid #e8e9ed;
  border-radius: 6px;
  padding: 11px 14px 11px 36px;
  font-size: 14px;
  background: #fff;
}

.sc-top-cart {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 10px 12px;
  text-decoration: none;
  color: #0d6e5f;
  background: #e8f7f3;
  border: 1px solid #bfe7dd;
  font-weight: 700;
  font-size: 12px;
}

.sc-top-cart-icon {
  font-size: 15px;
}

.gp-titlebar {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}

@media (min-width: 900px) {
  .sc-top-shell {
    grid-template-columns: auto auto minmax(320px, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
  }

  .sc-top-address {
    min-width: 180px;
  }

  .sc-top-cart {
    font-size: 13px;
    padding: 10px 14px;
  }
}

.sc-nav {
  position: sticky;
  top: 0;
  z-index: 42;
  background: #ffffff;
  border-bottom: 1px solid #eef2f7;
  box-shadow: none;
}

.sc-nav-shell {
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 22px;
  display: grid;
  gap: 8px;
}

.sc-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.sc-nav-row--primary {
  max-height: 120px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height 0.22s ease,
    opacity 0.18s ease,
    margin 0.22s ease;
}

.sc-nav-location {
  min-width: 0;
  position: relative;
}

.sc-nav-location-label {
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

.sc-nav-location-value {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 400;
  color: #4b5563;
}

.sc-nav-address-btn {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  max-width: min(66vw, 640px);
}

.sc-nav-address-btn .sc-nav-location-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(44vw, 420px);
}

.sc-nav-address-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  max-width: 420px;
  width: min(420px, 90vw);
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 50;
}

.sc-nav-address-full {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.45;
  font-weight: 500;
}
.sc-address-card {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}
.sc-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #111827;
  font-size: 15px;
}
.sc-address-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #9ca3af;
}
.sc-address-section-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.sc-address-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}
.sc-address-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2f7;
  color: #111827;
  display: grid;
  place-items: center;
}
.sc-address-icon svg {
  width: 18px;
  height: 18px;
}
.sc-address-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.sc-address-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}
.sc-address-edit svg {
  width: 14px;
  height: 14px;
}
.sc-address-edit-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}
.sc-address-edit-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.sc-address-edit-card {
  background: #ffffff;
  border-radius: 10px;
  width: min(460px, 92%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.sc-address-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}
.sc-address-edit-close {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #6b7280;
}
.sc-address-edit-body {
  padding: 16px;
  display: grid;
  gap: 14px;
}
.sc-address-field span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
  font-weight: 600;
}
.sc-address-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: #111827;
  background: #ffffff;
}
.sc-address-input:disabled {
  background: #f3f4f6;
  color: #6b7280;
}
.sc-address-helper {
  margin: 2px 0 6px;
  font-size: 12px;
  color: #94a3b8;
}
.sc-address-save {
  border: none;
  background: #16a34a;
  color: #ffffff;
  font-weight: 700;
  padding: 14px 16px;
  width: 100%;
  cursor: pointer;
}
@media (max-width: 640px) {
  .sc-address-edit-card {
    align-self: flex-end;
    width: 100%;
    border-radius: 12px 12px 0 0;
  }
  .sc-address-save {
    position: sticky;
    bottom: 0;
  }
}

.sc-nav-location.is-open .sc-nav-address-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.sc-nav-logo {
  display: none;
  margin-bottom: 2px;
  text-decoration: none;
}

.sc-nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.sc-nav-caret {
  font-size: 12px;
  color: #111827;
  font-weight: 800;
  margin-left: 0;
}

.sc-nav-profile {
  border-color: #e2e8f0;
}

.sc-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0d6e5f;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.sc-nav-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sc-nav-desktop-only {
  display: none;
}
.sc-nav-mobile-only {
  display: inline-flex;
}

.sc-nav-cart {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d9e4f1;
  background: #fff;
  color: #0d6e5f;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.sc-nav-cart-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
}

.sc-nav-cart-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.sc-nav-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 6px;
  background: #16a34a;
  color: #fff;
  border: 2px solid #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

.sc-nav-cart-text {
  display: none;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
}
.sc-nav-cart-items {
  font-size: 12px;
}
.sc-nav-cart-total {
  font-size: 13px;
}

.sc-nav-search-wrap {
  position: relative;
  width: 100%;
}

.sc-nav-search-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 14px 16px 14px 44px;
  font-size: 15px;
  background: #fff;
}

.sc-nav-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #111827;
}

.sc-nav-search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sc-nav-placeholder-wrap {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  overflow: hidden;
  pointer-events: none;
}

.sc-nav-search-placeholder {
  display: block;
  font-size: 14px;
  color: #9ca3af;
  font-weight: 600;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.45s ease,
    opacity 0.45s ease;
  white-space: nowrap;
}

.sc-nav-search-placeholder.is-active {
  transform: translateY(0);
  opacity: 1;
}

.sc-nav-search-placeholder.is-exit {
  transform: translateY(-100%);
  opacity: 0;
}

.sc-nav-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.sc-nav-search-suggestions::-webkit-scrollbar {
  display: none;
}

.sc-nav-suggest-item,
.sc-nav-suggest-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  text-decoration: none;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
  min-width: 0;
}

.sc-nav-suggest-item:last-child,
.sc-nav-suggest-empty:last-child {
  border-bottom: 0;
}

.sc-nav-suggest-item:hover {
  background: #f8fafc;
}

.sc-nav-suggest-thumb {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  border: 0;
  background: #f8fafc;
}

.sc-nav-suggest-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.sc-nav-suggest-meta {
  font-size: 11px;
  color: #64748b;
}

.sc-nav-suggest-price {
  font-size: 12px;
  font-weight: 700;
  color: #0d6e5f;
  margin-left: auto;
  flex: 0 0 auto;
}

.sc-search-overlay {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  touch-action: pan-y;
  padding-top: 20px;
}

.sc-search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Search overlay: allow vertical scrolling even when touching product images/sliders. */
.sc-search-overlay .sc-image-slider {
  touch-action: pan-y pinch-zoom;
}

.sc-search-panel {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sc-search-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid #eef2f7;
}

.sc-search-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.sc-search-back,
.sc-search-clear {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
}

.sc-search-sections {
  padding: 10px 16px;
  display: grid;
  gap: 14px;
}

.sc-search-section h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
}

.sc-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-search-chips button {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.sc-search-muted {
  font-size: 12px;
  color: #94a3b8;
}

.sc-search-results {
  padding: 4px 0 90px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.sc-search-results::-webkit-scrollbar {
  display: none;
}

.sc-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: #0f172a;
  border-bottom: 0;
}

.sc-search-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
}

.sc-search-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-search-price {
  font-size: 12px;
  font-weight: 700;
  color: #0d6e5f;
  flex: 0 0 auto;
}

.sc-search-empty {
  padding: 16px;
  color: #64748b;
  font-size: 13px;
}

.sc-search-empty.sc-search-empty--request {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px 16px 28px;
  min-height: 58vh;
}

.sc-search-empty-ill {
  width: 160px;
  max-width: 70vw;
  opacity: 0.95;
}

.sc-search-empty-ill svg {
  width: 100%;
  height: auto;
  display: block;
}

.sc-search-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.sc-search-empty-sub {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.sc-search-request-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 46px;
  width: min(320px, calc(100% - 32px));
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.22);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.sc-search-request-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(22, 163, 74, 0.24);
}

.sc-search-request-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.2);
}

.sc-search-request-btn.is-busy,
.sc-search-request-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.sc-search-cards {
  padding: 8px 12px 0;
}

.sc-search-cards h4 {
  margin: 8px 4px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
}

.sc-search-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sc-search-card.gp-product-card {
  text-decoration: none;
  color: inherit;
}

.sc-search-card .gp-product-name {
  margin: 4px 0 2px;
  font-size: 13px;
}

.sc-search-card .gp-price-wrap {
  margin-top: 2px;
}

.sc-search-mode-sentinel {
  height: 1px;
}

@media (min-width: 900px) {
  .sc-search-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Cart page */
.sc-cart-page {
  background: #ffffff;
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.sc-cart-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 12px 24px;
}

.sc-cart-list {
  display: grid;
  gap: 12px;
}

.sc-cart-group {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.06);
}
/* Safety-net: if a cart group ever ends up empty, don't render a blank bar. */
.sc-cart-group:empty {
  display: none;
}

.sc-cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.sc-cart-row:last-child {
  border-bottom: 0;
}

.sc-cart-media {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f3f4f6;
  overflow: hidden;
}

.sc-cart-media .sc-image-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-cart-info {
  min-width: 0;
}

.sc-cart-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-cart-price {
  font-size: 13px;
  font-weight: 600;
  color: #0d6e5f;
  margin-top: 4px;
}

.sc-cart-subtotal {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.sc-cart-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.sc-cart-stepper {
  display: inline-flex;
  align-items: center;
  background: #16a34a;
  color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
  padding: 0 6px;
  gap: 6px;
}

.sc-step-btn {
  background: transparent;
  border: 0;
  color: #ffffff;
  width: 24px;
  height: 100%;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.sc-step-count {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.sc-cart-remove {
  border: 0;
  background: #f1f5f9;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sc-cart-remove svg {
  width: 16px;
  height: 16px;
}

.sc-cart-summary {
  margin-top: 12px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.06);
}

.sc-summary-title {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
  color: #0f172a;
}

.sc-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}

.sc-checkout-btn {
  margin-top: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: #16a34a;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  text-decoration: none;
}

.sc-section {
  margin-top: 18px;
}

.sc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sc-section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.sc-section-link {
  font-size: 13px;
  color: #0d6e5f;
  text-decoration: none;
  font-weight: 600;
}

.wish-empty {
  min-height: 70vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.wish-empty-card {
  background: transparent;
  border-radius: 16px;
  box-shadow: none;
  padding: 32px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.wish-empty-img {
  width: 112px;
  max-width: 70%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.wish-empty h2 {
  margin: 14px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #111827;
}

.wish-empty p {
  margin: 10px 0 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.wish-empty-btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(22, 163, 74, 0.25);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.wish-empty-btn:hover {
  background: #15803d;
}

.wish-empty-btn:active {
  transform: scale(0.97);
}

.cart-empty {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cart-empty-card {
  background: transparent;
  border-radius: 20px;
  padding: 24px;
  width: min(380px, 100%);
  text-align: center;
  box-shadow: none;
}
.cart-empty-img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}
.cart-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 6px 0;
}
.cart-empty-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}
.cart-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 2px 2px 0 #0f7a36;
}
.cart-empty-btn:hover {
  opacity: 0.95;
}
.cart-empty-btn:active {
  transform: translateY(1px);
}
@media (min-width: 768px) {
  .cart-empty-card {
    padding: 32px;
    width: min(420px, 100%);
  }
  .cart-empty-img {
    width: 150px;
  }
  .cart-empty-title {
    font-size: 20px;
  }
  .cart-empty-desc {
    font-size: 15px;
  }
}
.checkout-empty {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.checkout-empty-card {
  background: transparent;
  border-radius: 20px;
  padding: 24px;
  width: min(380px, 100%);
  text-align: center;
  box-shadow: none;
}
.checkout-empty-img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}
.checkout-empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 6px 0;
}
.checkout-empty-desc {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}
.checkout-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 2px 2px 0 #0f7a36;
}
.checkout-empty-btn:hover {
  opacity: 0.95;
}
.checkout-empty-btn:active {
  transform: translateY(1px);
}
@media (min-width: 768px) {
  .checkout-empty-card {
    padding: 32px;
    width: min(420px, 100%);
  }
  .checkout-empty-img {
    width: 150px;
  }
  .checkout-empty-title {
    font-size: 20px;
  }
  .checkout-empty-desc {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .wish-empty-card {
    padding: 40px 40px;
    max-width: 420px;
  }

  .wish-empty-img {
    width: 144px;
  }

  .wish-empty h2 {
    font-size: 24px;
  }

  .wish-empty p {
    font-size: 16px;
  }
}

.sc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 600px) {
  .sc-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sc-cart-shell {
    max-width: 1200px;
    padding: 20px 16px 40px;
  }
  .sc-cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .sc-cart-right {
    position: sticky;
    top: 96px;
  }
  .cart-group {
    padding: 20px;
    border-radius: 20px;
  }
  .sc-cart-item {
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 10px 0;
  }
  .sc-cart-media {
    width: 80px;
    height: 80px;
  }
  .sc-cart-title {
    font-size: 16px;
  }
  .sc-cart-price {
    font-size: 14px;
  }
  .sc-cart-subtotal {
    font-size: 13px;
  }
  .sc-cart-summary.card {
    padding: 16px;
  }
  .sc-checkout-inline {
    margin-top: 16px;
  }
  .sc-checkout-bar-mobile {
    display: none;
  }
  .sc-card-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }
}

.sc-checkout-total {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.sc-checkout-btn {
  background: #16a34a;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 2px 2px 0 #0f7a33;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-checkout-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.sc-checkout-icon svg {
  width: 100%;
  height: 100%;
}

.sc-search-skeleton {
  height: 56px;
  margin: 8px 16px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f1f5f9 25%, #ffffff 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: sc-skeleton 1.2s infinite;
}

@keyframes sc-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (min-width: 900px) {
  .sc-search-overlay {
    background: #ffffff;
  }
  .sc-search-panel {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 24px;
  }
  .sc-search-top {
    padding: 16px 20px;
  }
  .sc-search-results {
    padding: 8px 0 24px;
  }
  .sc-search-item {
    padding: 12px 20px;
  }
  .sc-search-cards {
    padding: 12px 20px 0;
  }
  .sc-search-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1200px) {
  .sc-search-panel {
    max-width: 1120px;
  }
  .sc-search-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sc-nav-search-suggestions {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
    max-height: 55vh;
  }
}

.sc-nav-title-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sc-nav-back {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.sc-nav-back svg {
  width: 18px;
  height: 18px;
}

.sc-nav-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-simple-backbar {
  position: sticky;
  top: 0;
  z-index: 42;
  background: linear-gradient(180deg, #fff0bf 0%, #ffe6a6 100%);
  border-bottom: 1px solid #f0d48c;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.sc-simple-backbar-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.sc-simple-backbar .sc-nav-back {
  flex: 0 0 auto;
}

.sc-simple-backbar-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.sc-nav--category .sc-nav-shell,
.sc-nav--minimal .sc-nav-shell {
  padding: 10px 12px;
  padding-top: 20px;
}

.sc-nav--category .sc-nav-row--search,
.sc-nav--minimal .sc-nav-row--search {
  gap: 8px;
}

.sc-nav-icon-btn--search-row {
  flex: 0 0 auto;
}

.sc-nav .sc-nav-row--search.sc-nav-row--search-with-back {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sc-nav-row--search-with-back .sc-nav-search-back-slot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.sc-nav-row--search-with-back .sc-nav-search-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.sc-nav-search-back-btn {
  flex: 0 0 auto;
}

@media (max-width: 899.98px) {
  .sc-nav.is-collapsed .sc-nav-row--primary {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
  }
  .sc-nav.is-collapsed .sc-nav-location,
  .sc-nav.is-collapsed .sc-nav-actions {
    display: none !important;
  }
  .sc-nav.is-collapsed .sc-nav-row--search {
    padding-top: 4px;
    padding-bottom: 8px;
  }
  .sc-nav.is-collapsed .sc-nav-search-input {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  }
}

@media (min-width: 900px) {
  .sc-nav-shell {
    padding: 12px 16px;
  }

  .sc-nav--home .sc-nav-shell {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .sc-nav--home .sc-nav-row--primary {
    margin: 0;
    flex: 0 0 auto;
    overflow: visible;
  }

  .sc-nav--home .sc-nav-row--search {
    flex: 1;
  }

  .sc-nav-location-value {
    font-size: clamp(16px, 1.2vw, 22px);
    max-width: min(36vw, 520px);
  }
}
.pd-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  padding: 4px;
}

.pd-qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #d7e2ef;
  background: #fff;
  color: #0d6e5f;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.pd-qty-value {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  color: #0f172a;
}

@media (max-width: 899.98px) {
  .sc-nav--home-desktop .sc-nav-desktop-only {
    display: none !important;
  }
  .sc-nav--home-desktop .sc-nav-mobile-only {
    display: inline-flex !important;
  }
  .sc-nav--home .sc-nav-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "loc actions"
      "search search";
    align-items: center;
    gap: 8px;
    background: linear-gradient(185deg, #0cee3eb0, white);
    /* padding-top: 10px; */
  }

  .sc-nav--home .sc-nav-row--primary,
  .sc-nav--home .sc-nav-row--search {
    display: contents;
  }

  .sc-nav--home .sc-nav-location {
    grid-area: loc;
    min-width: 0;
  }

  .sc-nav--home .sc-nav-search-wrap {
    grid-area: search;
    min-width: 0;
  }

  .sc-nav--home .sc-nav-row--search.sc-nav-row--search-with-back {
    grid-area: search;
  }

  .sc-nav--home .sc-nav-actions {
    grid-area: actions;
    justify-self: end;
  }

  .sc-nav--home .sc-nav-location-label {
    display: none;
  }

  .sc-nav--home .sc-nav-cart--desktop {
    display: none;
  }

  .sc-nav--home .sc-nav-search-input {
    border-radius: 35px;
    background: #f6f7f8;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  }
}

@media (min-width: 900px) {
  .sc-nav--home-desktop .sc-nav-mobile-only {
    display: none !important;
  }
  .sc-nav--home-desktop .sc-nav-desktop-only {
    display: inline-flex !important;
  }
  .sc-nav--home-desktop .sc-nav-shell {
    display: grid;
    grid-template-columns: auto minmax(200px, 1fr) minmax(320px, 2.2fr) auto;
    grid-template-areas: "logo loc search actions";
    align-items: center;
    gap: 20px;
  }
  .sc-nav--home-desktop .sc-nav-row--primary,
  .sc-nav--home-desktop .sc-nav-row--search {
    display: contents;
  }
  .sc-nav--home-desktop .sc-nav-logo {
    grid-area: logo;
    display: inline-flex;
    align-items: center;
  }
  .sc-nav--home-desktop .sc-nav-location {
    grid-area: loc;
  }
  .sc-nav--home-desktop .sc-nav-search-wrap {
    grid-area: search;
  }
  .sc-nav--home-desktop .sc-nav-row--search.sc-nav-row--search-with-back {
    grid-area: search;
  }
  .sc-nav--home-desktop .sc-nav-actions {
    grid-area: actions;
    justify-self: end;
    gap: 18px;
  }
  .sc-nav--home-desktop .sc-nav-search-input {
    border-radius: 10px;
    background: #f6f7f8;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    font-size: 16px;
    padding: 16px 18px 16px 46px;
  }
  .sc-nav--home-desktop .sc-nav-cart--desktop {
    height: 46px;
    min-width: 150px;
    border-radius: 12px;
    background: #0f8a2d;
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-shadow: 0 8px 16px rgba(15, 138, 45, 0.22);
  }
  .sc-nav--home-desktop .sc-nav-cart-icon svg {
    color: #ffffff;
    stroke-width: 2.6;
  }
  .sc-nav--home-desktop .sc-nav-cart-text {
    display: flex;
  }
  .sc-nav--home-desktop .sc-nav-cart-count {
    display: none;
  }

  .sc-nav--home .sc-nav-shell {
    display: grid;
    grid-template-columns: auto minmax(200px, 1fr) minmax(320px, 2.2fr) auto;
    grid-template-areas: "logo loc search actions";
    align-items: center;
    gap: 20px;
  }

  .sc-nav--home .sc-nav-row--primary,
  .sc-nav--home .sc-nav-row--search {
    display: contents;
  }

  .sc-nav--home .sc-nav-logo {
    grid-area: logo;
    display: inline-flex;
    align-items: center;
  }

  .sc-nav--home .sc-nav-location {
    grid-area: loc;
  }

  .sc-nav--home .sc-nav-search-wrap {
    grid-area: search;
  }
  .sc-nav--home .sc-nav-row--search.sc-nav-row--search-with-back {
    grid-area: search;
  }

  .sc-nav--home .sc-nav-actions {
    grid-area: actions;
    justify-self: end;
    gap: 18px;
  }

  .sc-nav--home .sc-nav-search-input {
    border-radius: 10px;
    background: #f6f7f8;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    font-size: 16px;
    padding: 16px 18px 16px 46px;
  }

  .sc-nav--home .sc-nav-cart-icon svg {
    stroke-width: 2.6;
  }

  .sc-nav--home .sc-nav-cart--desktop {
    height: 46px;
    min-width: 150px;
    border-radius: 12px;
    background: #0f8a2d;
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-shadow: 0 8px 16px rgba(15, 138, 45, 0.22);
  }

  .sc-nav--home .sc-nav-cart-icon svg {
    color: #ffffff;
  }

  .sc-nav--home .sc-nav-cart-text {
    display: flex;
  }

  .sc-nav--home .sc-nav-cart-count {
    display: none;
  }
}

@media (min-width: 1200px) {
  .sc-nav--home-desktop .sc-nav-shell,
  .sc-nav--home .sc-nav-shell {
    grid-template-columns: auto minmax(260px, 1.1fr) minmax(520px, 2.6fr) auto;
    gap: 32px;
  }
}
.grid {
  display: grid;
  gap: 12px;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.06);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  border-radius: 6px;
  background: #f3f4f6;
}

@media (max-width: 640px) {
  .card img {
    height: 150px;
  }
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.btn {
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-danger {
  background: #fbe9e7;
  color: var(--danger);
}

.btn-back {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

.badge-open,
.badge-delivered {
  background: #e7f7ed;
  color: var(--success);
}

.badge-closed,
.badge-cancelled {
  background: #fdecea;
  color: var(--danger);
}

.badge-placed,
.badge-accepted,
.badge-picked_up,
.badge-assigned,
.badge-picked {
  background: #ecf2ff;
  color: #2d4a9d;
}

.input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  background: #fff;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field {
  margin-bottom: 12px;
}

.nav {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 6px;
}

.nav a {
  white-space: nowrap;
}

.stat {
  font-size: 22px;
  font-weight: 700;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 20px 10px;
}

.ecom-hero {
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, #0d6e5f 0%, #22a48e 100%);
  color: #fff;
}

.ecom-hero p {
  opacity: 0.92;
  margin: 0;
}

.product-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Product details: responsive grid */
.detail-layout .product-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .detail-layout .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .detail-layout .product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card {
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.12);
}

.product-media {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #f3f4f6 0%, #e5e7eb 100%);
}

.gp-image-slider {
  display: flex;
  width: 100%;
  min-height: 260px;
  max-height: 420px;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  touch-action: pan-y pinch-zoom;
  scroll-snap-stop: always;
  cursor: default;
}

.gp-image-slider::-webkit-scrollbar {
  display: none;
}

.gp-image-slider.is-dragging {
  cursor: grabbing;
}

@media (pointer: fine) {
  .gp-image-slider {
    cursor: grab;
  }
}

.product-media .gp-slide-image {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: clamp(260px, 58vw, 380px);
  object-fit: contain;
  padding: 10px;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  background: transparent;
}

.gp-image-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 0 2px;
}

.gp-image-dot {
  width: 7px;
  height: 7px;
  border-radius: 6px;
  border: 0;
  background: #cbd5e1;
  padding: 0;
}

.gp-image-dot.is-active {
  background: #0d6e5f;
}
.sc-image-slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pinch-zoom;
  scroll-snap-stop: always;
  cursor: default;
}

.pd-shell .sc-image-slider {
  touch-action: pan-y pinch-zoom;
}

.gp-product-grid .sc-image-slider,
.product-grid .sc-image-slider {
  touch-action: pan-y pinch-zoom;
}

.sc-image-slider::-webkit-scrollbar {
  display: none;
}

.sc-image-slider.is-dragging {
  cursor: grabbing;
}

.sc-image-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  background: transparent;
}

.sc-image-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 0 2px;
}

.sc-image-dot {
  width: 7px;
  height: 7px;
  border-radius: 6px;
  border: 0;
  background: #cbd5e1;
  padding: 0;
}

.sc-image-dot.is-active {
  background: #0d6e5f;
}

@media (min-width: 900px) {
  .product-media .gp-slide-image {
    height: clamp(300px, 34vw, 420px);
  }
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.qty-input {
  width: 54px;
  text-align: center;
}

.cart-summary {
  position: sticky;
  bottom: 8px;
}

.toast-wrap {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 9999;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  border-radius: 6px;
  padding: 10px 12px;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  animation: toastIn 0.2s ease;
  font-size: 13px;
}

.toast-success {
  background: #1f8a4c;
}

.toast-error {
  background: #c0392b;
}

.toast-info {
  background: #2d4a9d;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.res-shell {
  padding-bottom: 84px;
}

.res-search {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .res-search {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  background: var(--primary-soft);
  border-color: #8fd9cd;
  color: var(--primary);
}

.detail-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .detail-layout {
    grid-template-columns: 1.1fr 1fr;
  }
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--muted);
}

.timeline li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 6px;
  background: #cbd5e1;
}

.timeline li.done {
  color: var(--text);
  font-weight: 600;
}

.timeline li.done:before {
  background: var(--success);
}

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, #eceff3 25%, #f8fafc 50%, #eceff3 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  padding: 6px 2px calc(8px + env(safe-area-inset-bottom));
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease;
  will-change: transform, opacity;
}

.bottom-nav.is-hidden {
  transform: translate3d(0, 120%, 0);
  opacity: 0;
  pointer-events: none;
}

.bottom-nav.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.bottom-nav.bn-no-anim {
  transition: none !important;
}

@media (max-width: 899.98px) {
  /* Compact bottom nav spacing on mobile/tablet (desktop unchanged). */
  .bottom-nav {
    bottom: calc(6px + env(safe-area-inset-bottom));
    padding: 4px 2px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    padding: 6px 0;
    gap: 2px;
  }
  .bottom-nav .bn-icon {
    width: 34px;
    height: 34px;
  }
  .bottom-nav .bn-icon svg {
    width: 18px;
    height: 18px;
  }
  .bottom-nav .bn-label {
    font-size: 10px;
    line-height: 1.05;
  }
}

/* Floating mobile order + cart bars */
.sc-order-bar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(85px + env(safe-area-inset-bottom));
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 430px;
  min-height: 62px;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #fff4a8 0%, #ffe481 100%);
  color: #2f2200;
  border-radius: 18px;
  box-shadow:
    0 14px 30px rgba(168, 119, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  text-decoration: none;
  border: 1px solid rgba(255, 214, 74, 0.78);
  transform: translate3d(-50%, calc(var(--sc-order-shift-y, 0px) + 16px), 0);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.sc-order-bar.is-visible {
  transform: translate3d(-50%, var(--sc-order-shift-y, 0px), 0);
  opacity: 1;
}

.sc-order-bar.is-hidden {
  transform: translate3d(-50%, calc(var(--sc-order-shift-y, 0px) + 24px), 0);
  opacity: 0;
  pointer-events: none;
}

.sc-order-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sc-order-bar-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: #0f7a3b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.sc-order-bar-icon svg {
  width: 18px;
  height: 18px;
}

.sc-order-bar-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sc-order-bar-status {
  font-size: 13px;
  font-weight: 800;
  color: #332500;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-order-bar-sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(47, 34, 0, 0.72);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-order-bar-progress {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  margin-top: 3px;
}

.sc-order-bar-progress span {
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(47, 34, 0, 0.18);
}

.sc-order-bar-progress span.is-done {
  background: #10b981;
}

.sc-order-bar-progress span.is-active {
  background: #0f766e;
}

.sc-order-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.sc-order-bar-next {
  border: none;
  background: rgba(255, 255, 255, 0.72);
  color: #0f7a3b;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

.sc-order-bar-next.is-hidden {
  display: none;
}

.sc-order-bar-cta {
  background: rgba(255, 255, 255, 0.94);
  color: #138a43;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 999px;
  line-height: 1;
}

.sc-cart-bar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(85px + env(safe-area-inset-bottom));
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: space-between;
  max-width: min(430px, calc(100% - 32px));
  min-height: 56px;
  gap: 10px;
  padding: 5px 10px;
  background: rgba(22, 163, 74, 0.9);
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.05)
  );
  color: #ffffff;
  border: 0;
  border-radius: 35px;
  box-shadow: 0 14px 30px rgba(15, 122, 52, 0.28);
  text-decoration: none;
  transform: translate3d(-50%, calc(var(--sc-cart-shift-y, 0px) + 16px), 0);
  opacity: 0;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.sc-cart-bar.is-visible {
  transform: translate3d(-50%, var(--sc-cart-shift-y, 0px), 0);
  opacity: 1;
}

.sc-cart-bar.is-hidden {
  transform: translate3d(-50%, calc(var(--sc-cart-shift-y, 0px) + 24px), 0);
  opacity: 0;
  pointer-events: none;
}

.sc-cart-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sc-cart-bar-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
}

.sc-cart-bar-icon svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.sc-cart-bar-thumbs {
  display: inline-flex;
  align-items: center;
  height: 34px;
  min-width: 0;
}

.sc-cart-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  box-shadow: 0 5px 12px rgba(5, 45, 24, 0.18);
  margin-left: -12px;
  position: relative;
  transform: translateZ(0);
}

.sc-cart-thumb:first-child {
  margin-left: 0;
}

.sc-cart-thumb.is-pop {
  animation: sc-cart-thumb-pop 220ms ease;
}

@keyframes sc-cart-thumb-pop {
  0% {
    transform: translateZ(0) scale(0.92);
    opacity: 0.7;
  }
  60% {
    transform: translateZ(0) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translateZ(0) scale(1);
    opacity: 1;
  }
}

.sc-cart-bar-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
}

.sc-cart-bar-count,
.sc-cart-bar-total {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.sc-cart-bar-count {
  font-size: 12px;
  font-weight: 700;
}

.sc-cart-bar-total {
  font-size: 14px;
  font-weight: 800;
}

.sc-cart-bar-cta {
  flex: 0 0 auto;
  border-radius: 9999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f7a34;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sc-cart-bar-count.is-bump,
.sc-cart-bar-total.is-bump {
  animation: sc-cart-bump 260ms ease;
}

@keyframes sc-cart-bump {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  body {
    /* Mobile spacing knobs (safe-area is applied separately via `bottom: calc(... + env())`). */
    --sc-bar-bottom: 6px;
    --sc-gap-cart-to-nav: 6px;
    --sc-gap-order-to-cart: 8px;

    /* When bottom nav is visible, lift the cart bar above it (handoff effect). */
    --sc-cart-shift-y: calc(
      -1 * (var(--sc-bottom-nav-h, 76px) + var(--sc-gap-cart-to-nav))
    );
    --sc-order-shift-y: var(--sc-cart-shift-y);
    --sc-order-stack-offset: calc(56px + var(--sc-gap-order-to-cart));
  }
  body.sc-bottom-nav-hidden {
    --sc-cart-shift-y: 0px;
    --sc-order-shift-y: 0px;
  }
  body.sc-has-cart-bar {
    --sc-order-shift-y: calc(
      var(--sc-cart-shift-y) - var(--sc-order-stack-offset)
    );
  }

  /* Cart bar sits at the absolute bottom; shift is applied via transform. */
  .sc-order-bar,
  .sc-cart-bar {
    bottom: calc(var(--sc-bar-bottom) + env(safe-area-inset-bottom));
    transition:
      transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 260ms ease;
  }

  /* Mobile glass styling for the floating order tracker bar (behavior unchanged). */
  .sc-order-bar {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-radius: 35px;
    border: 0;
  }

  /* Sync bottom-nav timing with cart-bar so it feels like one animation. */
  .bottom-nav {
    transition:
      transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 260ms ease;
  }

  .sc-order-bar,
  .sc-cart-bar {
    display: flex;
  }
  body.sc-has-order-bar {
    padding-bottom: calc(154px + env(safe-area-inset-bottom));
  }
  body.sc-has-cart-bar {
    padding-bottom: calc(154px + env(safe-area-inset-bottom));
  }
  body.sc-has-cart-bar.sc-has-order-bar {
    padding-bottom: calc(226px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 901px) {
  .sc-order-bar,
  .sc-cart-bar {
    display: none !important;
  }
}

body.sc-address-edit-open .sc-order-bar,
body.sc-address-edit-open .sc-cart-bar {
  opacity: 0;
  transform: translate3d(-50%, 24px, 0);
  pointer-events: none;
}

/* Prevent background scroll when modal/sheet is open */
body.sc-modal-open {
  overflow: hidden;
  /* `touch-action:none` can break taps in some mobile webviews; keep UI interactive. */
  touch-action: manipulation;
}

/* Cart page should not show the floating "View Cart" bar. */
body.sc-cart-page .sc-cart-bar {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Order status page already has the detailed timeline; hide floating order tracker there. */
body.sc-order-status-page .sc-order-bar {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .sc-cart-page .sc-cart-shell {
    padding-bottom: 140px;
  }
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-size: 11px;
  text-decoration: none;
  color: var(--muted);
  min-width: 0;
  padding: 4px 2px 6px;
  position: relative;
  transition: color 0.25s ease;
}

.bottom-nav .bn-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 9999px;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}

.bottom-nav .bn-icon svg {
  width: 19px;
  height: 19px;
  display: block;
}

.bottom-nav .bn-icon::before {
  content: none;
}

.bottom-nav .bn-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
}

.bottom-nav a.active {
  color: var(--primary);
}

.bottom-nav a.active .bn-icon {
  color: var(--primary);
  background: var(--primary-soft);
  transform: translate3d(0, -1px, 0) scale(1.08);
}

.bottom-nav a.active .bn-icon::before {
  content: none;
}

/* Mobile-only: floating active icon with circular background (desktop unchanged). */
@media (max-width: 768px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: calc(6px + env(safe-area-inset-bottom));
    width: calc(100% - 32px);
    max-width: 430px;
    min-height: 64px;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
      0 18px 44px rgba(15, 23, 42, 0.16),
      0 2px 8px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    padding: 6px 10px 7px;
    transform: translate3d(-50%, 0, 0);
    overflow: visible;
  }

  .bottom-nav::before {
    content: none !important;
  }

  .bottom-nav.is-visible {
    transform: translate3d(-50%, 0, 0);
  }

  .bottom-nav.is-hidden {
    transform: translate3d(-50%, 125%, 0);
  }

  .bottom-nav a {
    gap: 2px;
    padding: 2px 0;
  }

  .bottom-nav .bn-icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
  }

  .bottom-nav .bn-icon svg {
    position: relative;
    z-index: 1;
  }

  .bottom-nav .bn-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(180deg, #fff8c7 0%, #dcfce7 100%);
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.14);
    opacity: 0;
    transform: translate3d(0, 1px, 0) scale(0.84);
    transition:
      transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 180ms ease;
    z-index: 0;
    pointer-events: none;
  }

  .bottom-nav .bn-label {
    position: relative;
    z-index: 2;
    font-size: 9.5px;
    line-height: 1.05;
  }

  .bottom-nav a.active .bn-icon {
    transform: translate3d(0, -2px, 0) scale(1.02);
    background: transparent;
  }

  .bottom-nav a.active .bn-icon::after {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  .bottom-nav a:active .bn-icon {
    transform: scale(0.98);
  }

  @media (prefers-reduced-motion: reduce) {
    .bottom-nav .bn-icon,
    .bottom-nav a.active .bn-icon,
    .bottom-nav::before,
    .bottom-nav .bn-icon::after {
      transition: none !important;
      animation: none !important;
    }
    .bottom-nav a.active .bn-icon {
      transform: none !important;
    }
    .bottom-nav a:active .bn-icon {
      transform: none !important;
    }
  }
}

.gp-shell {
  padding-top: 8px;
}

.category-section {
  margin-bottom: 20px;
}

.category-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 16px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.gp-category-banner {
  width: 100%;
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
}

.gp-category-banner img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .gp-category-banner img {
    height: 260px;
  }
}

.category-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

@media (max-width: 767.98px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .category-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 4px;
    border-radius: 10px;
    padding: 6px;
  }

  .category-card {
    padding: 0;
  }

  .category-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .category-title {
    margin-top: 6px;
    font-size: 11.5px;
    line-height: 1.2;
    text-align: center;
    font-weight: 600;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* Keep card heights consistent even when some titles wrap. */
    min-height: calc(2 * 1.2em);
  }
}

.category-card {
  background: transparent;
  border-radius: 0;
  padding: 6px 0px 8px;
  text-align: center;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
}

.category-img {
  width: 85px;
  height: 85px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  background: #eef6f2;
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
}

.category-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.category-title {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.35;
}

.gp-searchbar {
  display: grid;
  grid-template-columns: 1fr 110px auto;
  gap: 8px;
  margin-bottom: 12px;
}

.sc-page-back-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.sc-page-back-btn svg {
  width: 21px;
  height: 21px;
}

.sc-page-back-btn:hover {
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.sc-page-back-btn:active {
  transform: scale(0.96);
}

.products-back-row {
  display: flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 2px 0 0;
}

.gp-browse-layout {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px;
}

.gp-subcat-panel {
  position: sticky;
  top: 62px;
  align-self: start;
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding-right: 4px;
  background: #ffffff;
  border: none;
  box-shadow: 6px 0 12px -10px rgba(15, 23, 42, 0.35);
}

.gp-subcat-list {
  display: grid;
  gap: 6px;
}

.gp-subcat-item {
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 50px;
  position: relative;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.gp-subcat-thumb {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: #0d6e5f;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.gp-subcat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  /* down */
  transform: translateY(10px);
  /* animation */
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  /* to minimal hide the image */
  /* margin-top: 8px; */
}

.gp-subcat-label {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  word-break: break-word;
  max-width: 52px;
}

.gp-subcat-item.active {
  /* background: #ecfdf5; */
  color: #0d6e5f;
  position: relative;
  box-shadow: none !important;
  border-left: 0;
  border-right: 0;
}

.gp-subcat-item.active::after {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: #16a34a;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gp-browse-layout {
    grid-template-columns: 230px 1fr;
    gap: 20px;
  }

  .gp-subcat-panel {
    width: 230px;
    padding: 12px 10px;
    box-shadow: none;
    overflow-y: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    border-right: 1px solid #e5e7eb;
    height: 100%;
  }

  .gp-subcat-panel::-webkit-scrollbar {
    display: none;
  }

  .gp-subcat-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    min-height: 56px;
  }

  .gp-subcat-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: transparent;
  }

  .gp-subcat-label {
    font-size: 14px;
    max-width: none;
    font-weight: 500;
    color: #4b5563;
  }

  .gp-subcat-item.active::after {
    display: none;
  }

  .gp-subcat-item.active {
    background: #f7f2ff;
    color: #6d28d9;
    font-weight: 600;
    border-left: 3px solid #6d28d9;
  }

  .gp-subcat-item:hover {
    background: #f9fafb;
  }

  .gp-subcat-list {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  /* Mobile: Blinkit-style flat product list */
  .sc-page-back-btn {
    width: 40px;
    height: 40px;
  }

  .products-back-row {
    margin-bottom: 8px;
    padding-left: 2px;
  }

  .gp-browse-layout {
    grid-template-columns: 62px 1fr;
    gap: 10px;
  }

  .gp-subcat-panel {
    padding-right: 4px;
  }

  .gp-subcat-list {
    gap: 0px;
  }

  .gp-subcat-item {
    border-radius: 10px;
    padding: 8px 4px;
    min-height: 64px;
    gap: 8px;
    align-content: start;
    background: #ffffff;
  }

  .gp-subcat-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eeeeee;

    /* to send image back of circle */
    overflow: hidden;
  }

  .gp-subcat-label {
    font-size: 11px;
    line-height: 1.2;
    max-width: 56px;
    font-weight: 600;
    word-break: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 0px;
    text-align: center;
    color: grey;
  }
  .gp-subcat-item.active .gp-subcat-thumb img {
    transform: translateY(0px);
  }

  .gp-subcat-item.active .gp-subcat-label {
    /* background: #f8fafc; */
    color: #111827;
    box-shadow: none !important;
    border-left: 0;
    border-right: 0;
  }

  .gp-subcat-item.active::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 6px;
    background: #16a34a;
  }

  .gp-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gp-product-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .gp-product-media {
    gap: 4px;
  }

  .gp-product-image-wrap {
    background: #f3f4f6;
    border-radius: 12px;
  }

  .gp-product-grid [data-sc-image-gallery] .sc-image-slide {
    border-radius: 12px;
    object-fit: contain;
    padding: 8px;
  }

  .gp-product-name {
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0 2px;
  }

  .gp-product-qty {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 0;
  }

  .gp-price {
    font-size: 15px;
    font-weight: 800;
    color: #0f766e;
  }

  .sc-float-cart {
    position: static;
    margin-top: 6px;
  }

  .sc-float-cart-add {
    width: auto;
    height: 30px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #16a34a;
    background: #fff;
    color: #16a34a;
    font-size: 0;
    font-weight: 700;
  }

  .sc-float-cart-add::before {
    content: "ADD";
    font-size: 12px;
    letter-spacing: 0.3px;
  }

  .sc-float-cart-qty {
    border: 1px solid #16a34a;
    border-radius: 6px;
    padding: 2px 6px;
    gap: 6px;
  }

  .sc-float-cart-btn {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid #d1fae5;
    background: #fff;
    color: #16a34a;
  }

  .sc-float-cart-count {
    font-size: 12px;
  }
}

@media (min-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Resident products: modern grocery cards */
.gp-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 600px) {
  .wishlist-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .wishlist-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.gp-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.gp-product-card * {
  border: none;
  outline: none;
}

.gp-product-card:hover {
  transform: translateY(-2px);
  background: transparent;
  box-shadow: none;
}

.gp-product-card:active {
  transform: scale(0.99);
}

.gp-product-image-wrap {
  position: relative;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: #f3f4f6;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  padding: 0;
}

.gp-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  display: block;
}
.gp-product-media {
  display: grid;
  gap: 4px;
}

.gp-product-media .sc-image-dots {
  min-height: 8px;
  padding: 0;
  box-shadow: none !important;
  border: none !important;
}

.sc-card-media {
  position: relative;
}

.sc-float-cart {
  position: absolute;
  top: auto;
  bottom: 8px;
  right: 8px;
  z-index: 4;
}

/* Blinkit-style ADD button for product listing */
.gp-product-card .sc-float-cart-add {
  width: auto;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #16a34a;
  background: #fff;
  color: #16a34a;
  font-size: 0;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gp-product-card .sc-float-cart-add::before {
  content: "ADD";
  font-size: 12px;
  letter-spacing: 0.3px;
}

.sc-float-cart-add {
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #16a34a;
  background: #fff;
  color: #16a34a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 2px 2px 0 #16a34a;
  cursor: pointer;
  padding: 0;
  transition: transform 0.14s ease;
  box-shadow: 2px 2px 0 #16a34a;
}

.sc-qty-control {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  border-radius: 6px !important;
  border: 1px solid #16a34a;
  background: #fff;
  overflow: hidden;
}

.sc-qty-btn {
  width: 28px;
  height: 100%;
  border-radius: 0 !important;
  background: transparent;
  border: 0;
  color: #16a34a;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sc-qty-value {
  min-width: 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.sc-qty-control *,
.sc-qty-btn,
.sc-qty-value,
.sc-float-cart-qty,
.sc-float-cart-btn,
.sc-float-cart-count {
  border-radius: 6px !important;
}

.sc-float-cart-btn {
  border-radius: 0 !important;
}

.sc-float-cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #16a34a;
  border: 1px solid #16a34a;
  border-radius: 8px;
  padding: 0 8px;
  min-height: 30px;
  box-shadow: none;
}

.sc-float-cart-btn {
  width: auto;
  min-width: 14px;
  height: 100%;
  border-radius: 0 !important;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
  transition: transform 0.14s ease;
}

.sc-float-cart-add:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #16a34a;
}

.sc-float-cart-add:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 #16a34a;
}

.sc-float-cart-btn:hover,
.sc-float-cart-btn:active {
  transform: none;
  box-shadow: none;
}

.sc-float-cart-count {
  min-width: 18px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.gp-wishlist-heart.gp-wishlist-heart-left {
  right: auto;
  left: 8px;
}

.gp-wishlist-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: none;
  cursor: pointer;
}

.gp-wishlist-heart .gp-heart-icon {
  color: #ffffff;
}

.gp-wishlist-heart.saved .gp-heart-icon {
  color: #ef4444;
}

.gp-product-name {
  margin: 4px 0 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  min-height: 38px;
}

.gp-product-qty {
  font-size: 11px;
  color: #72809a;
  margin-bottom: 0;
}

.gp-price {
  font-size: 16px;
  font-weight: 800;
  color: #16a34a;
}

.gp-price-wrap {
  margin-top: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.gp-old-price {
  font-size: 12px;
  color: #98a2b3;
  text-decoration: line-through;
}

.gp-discount-badge {
  font-size: 11px;
  font-weight: 700;
  color: #087443;
  background: #e6f8ef;
  padding: 2px 6px;
  border-radius: 6px;
}

.gp-product-actions {
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.gp-product-actions .qty-input {
  width: 46px;
  min-width: 46px;
  text-align: center;
  padding: 8px 6px;
}

.gp-product-actions .btn-primary {
  flex: 1;
  min-width: 88px;
}

.gp-add-btn {
  width: 100%;
  border-radius: 6px;
  padding: 9px 10px;
}

.gp-qty-wrap {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 6px;
}

.gp-qty-wrap .qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.gp-qty-input {
  text-align: center;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 6px;
}

.is-hidden {
  display: none !important;
}

/* Bottom nav hides via transform animation; never snap-hide via display:none. */
.bottom-nav.is-hidden {
  display: grid !important;
}

/* Cart bar also hides via transform/opacity; keep it animating on mobile. */
@media (max-width: 900px) {
  .sc-order-bar.is-hidden,
  .sc-cart-bar.is-hidden {
    display: flex !important;
  }
}

@media (min-width: 768px) {
  .gp-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .gp-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .gp-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .gp-product-name {
    font-size: 15px;
  }
}

/* Cart wishlist rail */
.wish-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 190px);
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 2px;
  scrollbar-width: thin;
}

.wish-rail-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wish-rail-link {
  text-decoration: none;
  color: inherit;
}

.wish-rail-card .sc-float-cart-add {
  font-size: 0;
}

.wish-rail-card .sc-float-cart-add::before {
  content: "ADD";
  font-size: 12px;
  letter-spacing: 0.3px;
}
.wish-rail-media {
  position: relative;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.product-grid [data-sc-image-gallery] .sc-image-slider {
  height: 100%;
}

.gp-product-grid [data-sc-image-gallery] .sc-image-slider {
  height: 100%;
}

.product-grid [data-sc-image-gallery] .sc-image-slide {
  height: 100%;
  object-fit: contain;
  padding: 0;
  border-radius: 12px;
}

.gp-product-grid [data-sc-image-gallery] .sc-image-slide {
  height: 100%;
  object-fit: contain;
  width: 100%;
  padding: 0;
  border-radius: 12px;
}

#cartItems [data-sc-image-gallery] .sc-image-slider {
  height: 88px;
}

#cartItems [data-sc-image-gallery] .sc-image-slide {
  height: 88px;
  object-fit: contain;
  padding: 0;
  border-radius: 6px;
}

.wish-rail-media .sc-image-slider {
  height: 100%;
}

.wish-rail-media .sc-image-slide {
  height: 100%;
  object-fit: contain;
  padding: 0;
  border: 0;
  background: transparent;
}

.detail-layout [data-sc-image-gallery] .sc-image-slider {
  height: 52px;
}

.detail-layout [data-sc-image-gallery] .sc-image-slide {
  height: 52px;
  object-fit: contain;
  padding: 0;
  border-radius: 8px;
}

#cartItems [data-sc-image-gallery] .sc-image-dots,
.wish-rail-media .sc-image-dots,
.detail-layout [data-sc-image-gallery] .sc-image-dots {
  gap: 4px;
  padding: 3px 0 0;
}

#cartItems [data-sc-image-gallery] .sc-image-dot,
.wish-rail-media .sc-image-dot,
.detail-layout [data-sc-image-gallery] .sc-image-dot {
  width: 5px;
  height: 5px;
}

.wish-rail-title-link {
  display: block;
}

.wish-rail-card h4 {
  margin: 0;
}

.wish-rail-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.wish-rail-price-row .gp-old-price {
  font-size: 12px;
  color: #98a2b3;
  text-decoration: line-through;
}

.wish-rail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Wishlist rail cart controls */
.wish-rail-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.wish-rail-actions .btn {
  width: 100%;
}

.wish-rail-actions .gp-qty-wrap {
  grid-template-columns: 30px 1fr 30px;
}

/* Resident grocery home */
.home-header {
  position: sticky;
  top: 0;
  z-index: 35;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #fff0bf 0%, #ffe6a6 100%);
  border-bottom: 1px solid #f0d48c;
}

.home-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.home-deliver {
  font-size: 11px;
  color: #4b5563;
  font-weight: 600;
}

body {
  overflow-x: hidden;
}

.home-rail-shell {
  position: relative;
}

.home-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 180px);
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 2px;
  /* Allow native horizontal scroll on touch while keeping vertical page scroll. */
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.home-seeall-btn {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
  user-select: none;
}

.home-seeall-thumbs {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.home-seeall-thumbs img {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  margin-left: -8px;
}

.home-seeall-thumbs img:first-child {
  margin-left: 0;
}

.home-seeall-btn:active {
  background: #f1f5f9;
}

.home-seeall-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: transparent;
  color: #111827;
}

.home-seeall-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}

.home-seeall-text {
  color: #111827;
  font-weight: 700;
  flex: 0 0 auto;
  text-align: left;
}

@media (max-width: 899.98px) {
  /* Blinkit-style 3-up grid for home rails on mobile. */
  .home-product-rail {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: unset;
    overflow-x: visible;
    overflow-y: visible;
    overscroll-behavior-x: auto;
    scroll-snap-type: none;
    scroll-behavior: auto;
    touch-action: pan-y;
    padding: 0;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }

  /* Critical: allow grid children to shrink inside columns (prevents right-side overflow). */
  .home-product-rail > .home-product-card,
  .home-product-rail > .card,
  .home-product-rail > article {
    min-width: 0;
    max-width: 100%;
  }

  /* Hide the top Explore link on mobile to avoid conflicting CTAs. */
  .home-section-head .home-explore-link {
    display: none;
  }

  /* Show only first 9 items (3 rows) on mobile; CTA appears below when available. */
  #popularRail > article.home-product-card:nth-of-type(n + 10),
  #buyAgainRail > article.home-product-card:nth-of-type(n + 10) {
    display: none;
  }
}

.home-product-rail .sc-image-slider {
  touch-action: pan-y pinch-zoom;
}

.home-product-rail::-webkit-scrollbar {
  display: none;
}

.home-product-rail.is-dragging {
  cursor: grabbing;
}

.home-product-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.home-product-card .btn {
  width: 100%;
}

.home-card-actions {
  margin-top: auto;
}

.home-add-btn {
  border-radius: 6px;
}

.home-qty-wrap {
  grid-template-columns: 32px 1fr 32px;
}

.home-qty-wrap .qty-btn {
  width: 32px;
  height: 32px;
}

.home-rail-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 0;
  background: #ffffff;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 14px 30px rgba(17, 24, 39, 0.18),
    0 2px 6px rgba(17, 24, 39, 0.1);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.home-rail-nav:hover {
  transform: translateY(-50%) scale(1.03);
}

.home-rail-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.92);
}

.home-rail-nav svg,
.home-rail-nav img {
  width: 18px;
  height: 18px;
  display: block;
}

.home-rail-nav[data-dir="left"] {
  left: 10px;
}

.home-rail-nav[data-dir="right"] {
  right: 10px;
}

@media (min-width: 900px) {
  .home-rail-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .home-product-rail {
    grid-auto-columns: minmax(180px, 200px);
    padding: 0 28px 2px;
  }
}

/* Home categories: consistent grid (no horizontal slider) */
.home-category-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  padding: 2px 2px 6px;
}

.home-category-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  transition: none;
  overflow: visible;
}

.home-category-icon {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f7f5;
  color: #0d6e5f;
  font-weight: 800;
  overflow: hidden;
}

.home-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-category-name {
  font-size: 13px;
  line-height: 1.35;
  min-height: 34px;
  font-weight: 600;
  padding: 0 2px 2px;
  text-align: left;
}

@media (min-width: 900px) {
  .home-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0;
  }
}

@media (min-width: 1200px) {
  .home-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .home-shell .home-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .home-shell .home-category-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    text-align: center;
  }

  .home-shell .home-category-card:hover {
    transform: none;
    box-shadow: none;
  }

  .home-shell .home-category-icon {
    background: transparent;
    border-radius: 0;
    aspect-ratio: 1 / 1;
    margin: 0 0 6px;
  }

  .home-shell .home-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .home-shell .home-category-name {
    text-align: center;
    min-height: 0;
  }
}

@media (min-width: 1200px) {
  .home-shell .home-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-shell .home-category-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    padding: 0 6px 6px !important;
    scroll-snap-type: none !important;
    margin: 0 !important;
  }

  .home-shell .home-category-grid > .home-category-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: initial !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    height: auto;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .home-shell .home-category-icon {
    flex: 1 1 auto;
    aspect-ratio: 1 / 1;
    margin: 0 0 6px;
    border-radius: 6px;
    background: transparent !important;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    box-shadow: none;
    border: 0;
  }

  .home-shell .home-category-icon img {
    width: 90%;
    height: 90%;
    object-fit: contain;
  }

  .home-shell .home-category-name {
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    min-height: 0;
    padding: 0;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 899.98px) {
  .home-shell .home-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
  }

  .home-shell .home-category-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    text-align: center;
  }

  .home-shell .home-category-card:hover {
    transform: none;
    box-shadow: none;
  }

  .home-shell .home-category-icon {
    background: transparent;
    border-radius: 0;
    aspect-ratio: 1 / 1;
    margin: 0 0 6px;
  }

  .home-shell .home-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .home-shell .home-category-name {
    text-align: center;
    min-height: 0;
  }
}

.sc-float-cart.is-busy {
  opacity: 0.72;
}
.sc-float-cart-add:active,
.sc-float-cart-btn:active {
  transform: scale(0.97);
}

/* Resident Profile Redesign */
.rp-shell {
  max-width: 520px;
  padding: 16px 16px 80px;
  background: #ffffff;
}

/* Resident "My Requests" page (scoped) */
.rpr-page .rpr-shell {
  max-width: 640px;
  padding: 10px 14px 90px;
  background: transparent;
}

.rpr-page .rpr-list {
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.rpr-page .rpr-loading {
  padding: 16px 0;
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
}

.rpr-page .rpr-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.rpr-page .rpr-item:last-child {
  border-bottom: 0;
}

.rpr-page .rpr-item:hover {
  background: #fafafa;
}

.rpr-page .rpr-item:active {
  background: #f5f5f5;
}

.rpr-page .rpr-item:focus-visible {
  background: #fafafa;
}

.rpr-page .rpr-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 2px;
}

.rpr-page .rpr-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid #eef2f7;
  flex: 0 0 auto;
  margin-left: 12px;
}

.rpr-page .rpr-info {
  min-width: 0;
  flex: 1 1 auto;
  padding-right: 12px;
}

.rpr-page .rpr-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.rpr-page .rpr-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: #111827;
  min-width: 0;
}

.rpr-page .rpr-time {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.rpr-page .rpr-meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.rpr-page .rpr-status {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 8px; /* not a pill */
  border: 1px solid transparent;
  background: #f3f4f6;
  color: #374151;
}

.rpr-page .rpr-status--in_stock {
  background: #e6f7ee;
  color: #1f8f5f;
  border-color: rgba(31, 143, 95, 0.18);
}

.rpr-page .rpr-status--pending {
  background: #fff4e5;
  color: #c77700;
  border-color: rgba(199, 119, 0, 0.18);
}

.rpr-page .rpr-status--rejected {
  background: #ffeaea;
  color: #d93025;
  border-color: rgba(217, 48, 37, 0.18);
}

.rpr-page .rpr-status--accepted {
  background: #e8f0ff;
  color: #2457c5;
  border-color: rgba(36, 87, 197, 0.18);
}

.rpr-page .rpr-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 0 12px 0 74px; /* align under text (image + gap) */
}
.rpr-page .rpr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 14px 74px; /* align with chat */
}
.rpr-page .rpr-act {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.rpr-page .rpr-act:active {
  background: #f9fafb;
}
.rpr-page .rpr-act--view {
  flex: 1 1 auto;
}
.rpr-page .rpr-act--add {
  flex: 1 1 auto;
}
.rpr-page .rpr-act--add.is-added,
.rpr-page .rpr-act--add:disabled.is-added {
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.25);
  cursor: default;
}
.rpr-page .rpr-act--add:disabled {
  opacity: 0.95;
  cursor: default;
}

.rpr-page .rpr-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}

.rpr-page .rpr-msg--user {
  background: #f3f4f6;
  border-color: #e5e7eb;
  align-self: flex-start;
}

.rpr-page .rpr-shop-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-top: 2px;
}

.rpr-page .rpr-msg--shop {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.18);
  color: #0f5132;
  align-self: flex-end;
}

.rpr-page .rpr-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 10px;
  color: #6b7280;
}

.rpr-page .rpr-empty-ill {
  width: 140px;
  max-width: 70vw;
}

.rpr-page .rpr-empty-ill svg {
  width: 100%;
  height: auto;
  display: block;
}

.rpr-page .rpr-empty-title {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.rpr-page .rpr-empty-sub {
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 900px) {
  .rpr-page .rpr-shell {
    padding: 12px 18px 100px;
  }
  .rpr-page .rpr-name {
    font-size: 16px;
  }
}

.rp-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 18px;
  padding-top: 15px;
}

.rp-header h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
  text-align: center;
}

.rp-back {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #111827;
  box-shadow: none;
}

.rp-back svg {
  width: 18px;
  height: 18px;
}

.rp-header-spacer {
  width: 36px;
  height: 36px;
}

.rp-identity {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.rp-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
  font-weight: 700;
  font-size: 22px;
  background: #ecfdf5;
}

.rp-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.rp-phone {
  font-size: 13px;
  color: #6b7280;
}

.rp-quick-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 16px;
}

.rp-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #111827;
  font-size: 12px;
}

.rp-quick-link + .rp-quick-link {
  padding-left: 22px;
  border-left: 1px solid #e5e7eb;
}

.rp-quick-icon {
  width: 24px;
  height: 24px;
  color: #16a34a;
}

.rp-quick-icon svg {
  width: 100%;
  height: 100%;
}

.rp-section {
  margin-top: 16px;
}

.rp-section-title {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #6b7280;
  font-weight: 700;
}

.rp-list-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rp-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  text-decoration: none;
  color: #111827;
  border-bottom: 1px solid #e5e7eb;
}

.rp-list-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 14px 0;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.rp-list-btn .rp-row-left,
.rp-list-btn .rp-chevron {
  display: inline-flex;
}

.rp-list-row:last-child {
  border-bottom: 0;
}

.rp-req-list {
  display: grid;
  gap: 0;
}

.rp-req-item {
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.rp-req-item:last-child {
  border-bottom: 0;
}

.rp-req-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rp-req-name {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
}

.rp-req-meta {
  margin-top: 5px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

.rp-req-response {
  margin-top: 8px;
  font-size: 12px;
  color: #111827;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.rp-req-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.rp-req-chip--pending {
  background: #fef3c7;
  color: #92400e;
  border-color: rgba(146, 64, 14, 0.2);
}

.rp-req-chip--accepted {
  background: #dbeafe;
  color: #1e40af;
  border-color: rgba(30, 64, 175, 0.18);
}

.rp-req-chip--in_stock {
  background: #dcfce7;
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
}

.rp-req-chip--rejected {
  background: #fee2e2;
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.18);
}

.rp-req-empty {
  padding: 12px 0;
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
}

.rp-row-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.rp-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  display: inline-block;
  margin-left: 8px;
  transform: translateY(-1px);
}

.rp-dot[hidden] {
  display: none !important;
}

.rp-row-icon {
  width: 20px;
  height: 20px;
  color: #6b7280;
}

.rp-row-icon svg,
.rp-chevron svg {
  width: 100%;
  height: 100%;
}

.rp-chevron {
  width: 18px;
  height: 18px;
  color: #9ca3af;
  flex: 0 0 18px;
}

.rp-edit {
  margin-top: 20px;
  padding-top: 6px;
}

.rp-edit.is-collapsed .rp-form {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.rp-edit.is-open .rp-form {
  max-height: 800px;
  opacity: 1;
}

.rp-edit-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
}

.rp-edit.is-collapsed .rp-edit-title {
  display: none;
}

.rp-form {
  display: grid;
  gap: 14px;
  transition:
    max-height 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

.rp-edit-row {
  position: relative;
  padding: 10px 0 12px;
  border-bottom: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.rp-edit-row-left {
  display: grid;
  gap: 4px;
}

.rp-edit-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.rp-edit-value {
  font-size: 14px;
  color: #111827;
  margin-top: 2px;
  text-align: left;
}

.rp-edit-action {
  border: none;
  background: transparent;
  color: #9ca3af;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rp-edit-action svg {
  width: 18px;
  height: 18px;
}

.rp-edit-action:hover {
  color: #4b5563;
}

.rp-edit-row.is-locked .rp-edit-action {
  cursor: default;
}

.rp-edit-input {
  border: none;
  border-bottom: 1px solid #16a34a;
  padding: 6px 0 4px;
  font-size: 14px;
  background: transparent;
  color: #111827;
  outline: none;
  display: none;
  grid-column: 1 / -1;
}

.rp-edit-row.is-editing .rp-edit-value {
  display: none;
}

.rp-edit-row.is-editing .rp-edit-input {
  display: block;
}

.rp-edit-input:disabled {
  color: #9ca3af;
  border-bottom-color: #e5e7eb;
}

.rp-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.rp-btn {
  flex: 1;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.rp-btn-primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.rp-logout {
  margin-top: 20px;
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
}

.rp-list-row--danger {
  color: #dc2626;
  font-weight: 600;
}

.rp-list-row--danger .rp-row-left {
  font-weight: 600;
}

@media (max-width: 420px) {
  .rp-shell {
    padding: 12px 14px 72px;
  }
}

@media (min-width: 900px) {
  .rp-shell {
    max-width: 900px;
    padding-top: 24px;
    padding-bottom: 96px;
  }
}

/* Order history */
.order-history-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.oh-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.oh-tab {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.oh-tab:active {
  transform: scale(0.98);
}

.oh-tab.is-active {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.28);
  color: #0f8a2d;
}

.order-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(31, 41, 55, 0.06);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(31, 41, 55, 0.12);
}

.order-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f4f6;
}

.order-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-meta {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.order-status-badge.status_pending,
.order-status-badge.status_processing {
  background: #fef3c7;
  color: #92400e;
}

.order-status-badge.status_confirmed {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status-badge.status_placed {
  background: #dbeafe;
  color: #1d4ed8;
}

.order-status-badge.status_getting_your_order_ready {
  background: #fef3c7;
  color: #92400e;
}

.order-status-badge.status_picked_up {
  background: #e0e7ff;
  color: #3730a3;
}

.order-status-badge.status_delivered {
  background: #dcfce7;
  color: #166534;
}

.order-status-badge.status_cancelled,
.order-status-badge.status_canceled {
  background: #fee2e2;
  color: #b91c1c;
}

@media (min-width: 900px) {
  .oh-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .oh-tab {
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
    text-align: left;
  }

  .order-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .order-card {
    padding: 14px 16px;
    grid-template-columns: 72px 1fr;
  }

  .order-thumb {
    width: 72px;
    height: 72px;
  }
}

/* Order status */
.order-status-shell {
  max-width: 900px;
}

/* Cancel-order modal / bottom sheet */
.sc-cancel-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}
.sc-cancel-overlay.is-open {
  pointer-events: auto;
  opacity: 1;
}
.sc-cancel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
}
.sc-cancel-sheet {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate3d(-50%, 14px, 0);
  width: min(560px, calc(100% - 24px));
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.2);
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sc-cancel-overlay.is-open .sc-cancel-sheet {
  transform: translate3d(-50%, 0, 0);
}
.sc-cancel-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sc-cancel-x:active {
  transform: scale(0.96);
}
.sc-cancel-head {
  padding-right: 44px;
}
.sc-cancel-title {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}
.sc-cancel-sub {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.sc-cancel-body {
  margin-top: 12px;
}
.sc-cancel-list {
  display: grid;
  gap: 8px;
}
.sc-cancel-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sc-cancel-opt input {
  accent-color: #16a34a;
}
.sc-cancel-opt-t {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}
.sc-cancel-other {
  margin-top: 10px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 220ms ease,
    opacity 220ms ease;
}
.sc-cancel-other.is-open {
  max-height: 120px;
  opacity: 1;
}
.sc-cancel-other-ta {
  width: 100%;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  resize: none;
}
.sc-cancel-warn {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid rgba(234, 88, 12, 0.18);
}
.sc-cancel-warn-t {
  font-size: 12px;
  font-weight: 800;
  color: #9a3412;
}
.sc-cancel-warn-d {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #9a3412;
}
.sc-cancel-foot {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}
.sc-cancel-btn {
  flex: 1 1 auto;
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
}
.sc-cancel-btn:active {
  transform: scale(0.99);
}
.sc-cancel-btn--ghost {
  color: #111827;
}
.sc-cancel-btn--danger {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

/* Resident cancellation details card */
.order-cancel-details-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.08);
  margin-top: 12px;
}
.order-cancel-details-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}
.order-cancel-details {
  display: grid;
  gap: 10px;
}
.order-cancel-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-cancel-k {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  flex: 0 0 auto;
}
.order-cancel-v {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  text-align: right;
  min-width: 0;
}

@media (min-width: 900px) {
  .sc-cancel-sheet {
    top: 50%;
    bottom: auto;
    border-radius: 16px;
    transform: translate3d(-50%, calc(-50% + 14px), 0);
    padding: 16px 16px 16px;
  }
  .sc-cancel-overlay.is-open .sc-cancel-sheet {
    transform: translate3d(-50%, -50%, 0);
  }
}

.order-summary-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.08);
}

.order-summary-loading {
  color: #6b7280;
  font-size: 14px;
}

.order-summary {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.order-summary-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f4f6;
}

.order-summary-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.order-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-summary-title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-summary-meta {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-bill-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
}

.order-bill-summary--pending {
  border-color: #fed7aa;
  background: #fff7ed;
}

.order-bill-summary__status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #047857;
}

.order-bill-summary--pending .order-bill-summary__status {
  color: #b45309;
}

.order-bill-summary__icon {
  display: inline-grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.order-bill-summary--pending .order-bill-summary__icon {
  background: #f59e0b;
}

.order-bill-summary__status strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.order-bill-summary__status small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.order-bill-summary__btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: #16a34a;
  color: #fff;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.22);
}

.order-bill-summary__btn:active {
  transform: translateY(1px);
}

.order-summary-actions {
  margin-top: 10px;
}

.order-timeline-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.08);
  margin-top: 14px;
}

.order-timeline {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 16px;
}

.order-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.order-timeline li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: -16px;
  width: 2px;
  background: #e5e7eb;
}

.order-timeline li:last-child::after {
  display: none;
}

.order-timeline li.is-last::after {
  display: none;
}

.order-step-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 12px;
  line-height: 1;
  position: relative;
}

.order-step-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.order-step-meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.order-timeline li.done .order-step-icon {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.order-timeline li.done .order-step-icon::before {
  content: "\2713";
}

.order-timeline li.active .order-step-icon {
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.order-timeline li.done::after {
  background: #16a34a;
}

.order-timeline li.pending .order-step-icon {
  border-color: #d1d5db;
  background: #f9fafb;
}

/* Ensure the checkmark glyph is stable even if file encoding changes. */
.order-timeline li.done .order-step-icon::before {
  content: "\2713";
}

/* Cancelled as a terminal step in the timeline (resident UI). */
#timeline li[data-s="cancelled"].done .order-step-icon,
#timeline li[data-s="cancelled"].is-cancelled .order-step-icon {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

#timeline li[data-s="cancelled"].done .order-step-title,
#timeline li[data-s="cancelled"].is-cancelled .order-step-title {
  color: #b91c1c;
}

/* Red connector into the cancelled step (the connector belongs to the previous item). */
#timeline li.cancel-next::after {
  background: #ef4444;
}

.sc-bill-viewer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.sc-bill-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sc-bill-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}

.sc-bill-viewer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  height: min(82vh, 820px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.sc-bill-viewer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 58px 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
}

.sc-bill-viewer__head strong {
  font-size: 17px;
  font-weight: 900;
}

.sc-bill-viewer__download {
  color: #047857;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.sc-bill-viewer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.sc-bill-viewer__body {
  flex: 1;
  min-height: 0;
  background: #f8fafc;
}

.sc-bill-viewer__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (min-width: 900px) {
  .order-status-shell {
    max-width: 840px;
    margin: 0 auto;
  }

  .order-summary-card,
  .order-timeline-card {
    padding: 18px 20px;
  }

  .order-summary {
    grid-template-columns: 72px 1fr;
  }

  .order-summary-thumb {
    width: 72px;
    height: 72px;
  }

  .order-timeline {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .order-bill-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .order-bill-summary__btn {
    width: 100%;
    padding: 11px 14px;
  }

  .sc-bill-viewer {
    padding: 0;
  }

  .sc-bill-viewer__panel {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }

  .sc-bill-viewer__head {
    min-height: calc(58px + env(safe-area-inset-top, 0px));
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-right: 62px;
    padding-left: 16px;
  }

  .sc-bill-viewer__close {
    top: max(10px, env(safe-area-inset-top, 0px));
    right: 12px;
  }
}

.sc-sold-out {
  opacity: 1;
}

.sc-sold-out .sc-float-cart,
.sc-float-cart.is-disabled {
  opacity: 0.65;
}

.sc-sold-out .sc-request-action-slot {
  opacity: 1;
}

.sc-request-action-slot {
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.sc-float-cart.is-disabled .sc-float-cart-add,
.sc-float-cart.is-disabled .sc-float-cart-btn {
  cursor: not-allowed;
}

.sc-sold-out-ribbon {
  position: absolute;
  top: 20px;
  right: -20px;
  z-index: 6;
  width: 110px;
  padding: 4px 0;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  transform: rotate(45deg);
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

@media (max-width: 480px) {
  .sc-sold-out-ribbon {
    top: 22px;
    right: -20px;
    width: 104px;
    font-size: 10px;
    padding: 3px 0;
  }
}

.sc-sold-out-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.sc-request-btn {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #f59e0b;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sc-request-action-slot .sc-request-btn {
  width: 100%;
  margin-top: 0;
  min-width: 0;
  min-height: 32px;
  max-width: none;
  padding: 0 6px;
  border-radius: 6px;
  border-color: #ea580c;
  background: #ffffff;
  color: #ea580c;
  box-shadow: 2px 2px 0 #ea580c;
  opacity: 1;
  cursor: pointer;
  font-size: clamp(10px, 2.7vw, 12px);
  line-height: 1.1;
  white-space: normal;
  text-align: center;
}

.sc-request-action-slot .sc-request-btn:hover {
  background: #fff7ed;
  color: #c2410c;
}

.sc-request-btn:active {
  transform: scale(0.98);
}

@media (max-width: 380px) {
  .sc-request-action-slot {
    left: 4px;
    right: 4px;
    bottom: 5px;
  }

  .sc-request-action-slot .sc-request-btn {
    min-height: 30px;
    padding: 0 4px;
    font-size: 10px;
    box-shadow: 1.5px 1.5px 0 #ea580c;
  }
}

.sc-request-modal {
  position: fixed;
  inset: 0;
  /* Keep above bottom nav/cart bar (z-index: 9999) so it never "opens behind" UI. */
  z-index: 10050;
  display: none;
}

/* Product details */
.pd-shell {
  padding-top: 8px;
  padding-left: 16px;
  padding-right: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

.pd-layout {
  display: grid;
  gap: 16px;
  margin-top: 0;
  min-width: 0;
  max-width: 100%;
}

.pd-media {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.pd-slider-shell {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.pd-slider {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: 0;
  background: #f8fafc;
  align-items: center;
  max-width: 100%;
}

.pd-slider::-webkit-scrollbar {
  display: none;
}

.pd-slide-image {
  flex: 0 0 100%;
  width: 100%;
  height: 320px;
  object-fit: contain;
  padding: 0;
  display: block;
  margin: 0 auto;
  scroll-snap-align: start;
  user-select: none;
  max-width: 100%;
}

.pd-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 5px;
  padding-bottom: 4px;
  max-width: 100%;
}

.pd-thumbs::-webkit-scrollbar {
  display: none;
}

.pd-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f8fafc;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pd-thumb.is-active {
  border-color: #16a34a;
  background: #ffffff;
  transform: scale(1.04);
}

.pd-info {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.pd-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

.pd-meta {
  color: #6b7280;
  font-size: 13px;
}

.pd-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.pd-price {
  font-size: 20px;
  font-weight: 700;
  color: #16a34a;
}

.pd-desc {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pd-qty-control {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.pd-qty-btn {
  width: 36px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pd-qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: #111827;
}

.pd-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #16a34a;
  background: #ffffff;
  color: #16a34a;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 #0f7a33;
}

.pd-add-btn:active {
  transform: scale(0.98);
}

.pd-add-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.pd-add-icon svg {
  width: 100%;
  height: 100%;
}

.pd-recommended {
  margin-top: 16px;
}

.pd-recommended h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.pd-rec-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pd-rec-card {
  text-decoration: none;
  color: inherit;
}

.pd-sections {
  margin-top: 18px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.pd-section-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.pd-row-scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  padding-bottom: 4px;
  min-width: 0;
}

.pd-row-scroll::-webkit-scrollbar {
  display: none;
}

.pd-row-scroll .gp-product-card {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 899.98px) {
  .pd-slider {
    overflow-x: auto;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
}

@media (min-width: 900px) {
  .pd-layout {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: 28px;
  }

  .pd-slide-image {
    height: 420px;
  }

  .pd-title {
    font-size: 28px;
  }

  .pd-price {
    font-size: 24px;
  }
}

@media (min-width: 768px) {
  .pd-rec-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pd-row-scroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pd-rec-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pd-row-scroll {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.sc-request-modal.is-open {
  display: block;
}

.sc-request-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.sc-request-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 10px 16px 14px;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.18);
}

.sc-request-grab {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 2px auto 10px;
}

.sc-request-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.sc-request-header h3 {
  margin: 0;
  font-size: 18px;
}

.sc-request-close {
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.sc-request-form {
  display: grid;
  gap: 8px;
}

.sc-request-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #374151;
}

.sc-request-field input {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  width: 100%;
  background: #f8fafc;
}

.sc-request-field input:focus {
  outline: none;
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
  background: #ffffff;
}

.sc-request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.sc-request-actions .btn-primary {
  background: #16a34a;
  color: #fff;
}

@media (min-width: 900px) {
  .sc-request-sheet {
    left: 50%;
    right: auto;
    width: min(420px, 92vw);
    transform: translateX(-50%);
    bottom: 12px;
    border-radius: 16px;
  }
}

.sc-empty-search {
  display: grid;
  gap: 8px;
  text-align: left;
}

.sc-line-clamp-2,
.gp-product-name,
.home-product-card h4,
.wish-rail-title-link h4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search overlay upgrades */
.sc-search-name strong {
  font-weight: 800;
  color: #0d6e5f;
}
.sc-search-results-header {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding: 4px 6px 10px;
}
.sc-search-dym {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 16px 0;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #ffffff;
}
.sc-search-dym-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.sc-search-dym-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #0d6e5f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sc-search-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 12px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sc-search-loading.is-hidden {
  display: none;
}
.sc-search-results-wrap {
  position: relative;
  min-height: 200px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sc-search-loading-shell {
  width: min(720px, 100%);
}

/* Search overlay: inline Request Product sheet/modal (invoked from JS) */
.sc-rq-overlay {
  position: fixed;
  inset: 0;
  /* Must be above the search overlay (z-index: 2000). */
  z-index: 2100;
  display: none;
}
.sc-rq-overlay.is-open {
  display: block;
}
.sc-rq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  touch-action: none;
}
.sc-rq-overlay,
.sc-rq-panel {
  overscroll-behavior: contain;
}
.sc-rq-overlay {
  touch-action: none;
}
.sc-rq-panel {
  touch-action: pan-y;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: none;
  border-top: 1px solid #eef2f7;
  max-height: 82vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 768px) {
  .sc-rq-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }
}

/* When the request sheet is open from the search overlay, prevent scroll on the underlying results list. */
body.sc-no-scroll .sc-search-overlay.is-open .sc-search-results {
  overflow: hidden;
}

/* ── Idle state: shop category shortcuts ───────────────────────────── */
.sc-search-section--cats {
  padding-top: 4px;
}
.sc-idle-cats {
  display: flex;
  flex-direction: column;
}
.sc-idle-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid #f3f4f6;
  text-decoration: none;
  color: #111827;
  font-size: 15px;
}
.sc-idle-cat:last-child {
  border-bottom: none;
}
.sc-idle-cat-emoji {
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.sc-idle-cat-name {
  flex: 1;
}
.sc-idle-cat-arrow {
  color: #9ca3af;
  font-size: 20px;
  margin-left: auto;
}

/* ── Typeahead intent suggestion rows ──────────────────────────────── */
.sc-search-intent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f9fafb;
}
.sc-search-intent:active {
  background: #f9fafb;
}
.sc-search-intent-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}
.sc-search-intent-label {
  flex: 1;
  font-size: 15px;
  color: #6b7280;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-search-intent-label strong {
  color: #111827;
  font-weight: 600;
}
.sc-intent-muted {
  color: #9ca3af;
}
.sc-search-intent-arrow {
  color: #9ca3af;
  font-size: 20px;
  flex-shrink: 0;
}
.sc-search-divider {
  height: 1px;
  background: #eef2f7;
  margin: 4px 0;
}

/* ── Results page: size filter chips ──────────────────────────────── */
.sc-size-chips {
  display: flex;
  gap: 8px;
  padding: 10px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sc-size-chips::-webkit-scrollbar {
  display: none;
}
.sc-size-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  color: #374151;
  background: #fff;
  flex-shrink: 0;
}
.sc-size-chip.is-active {
  background: #0d6e5f;
  border-color: #0d6e5f;
  color: #fff;
  font-weight: 600;
}
.sc-size-chip--clear {
  color: #ef4444;
  border-color: #fecaca;
}
.sc-size-chip--clear:hover {
  background: #fef2f2;
}

/* ── Results page: "Filter your search" section ───────────────────── */
.sc-filter-search {
  padding: 14px 0 8px;
  border-top: 1px solid #eef2f7;
  margin-top: 4px;
}
.sc-filter-search-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  padding: 0 16px;
  margin: 0 0 10px;
}
.sc-filter-search-chips {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sc-filter-search-chips::-webkit-scrollbar {
  display: none;
}
.sc-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 6px 14px 6px 6px;
  text-decoration: none;
  color: #374151;
  white-space: nowrap;
  font-size: 13px;
  background: #fff;
  flex-shrink: 0;
}
.sc-filter-chip:active {
  background: #f3f4f6;
}
.sc-filter-chip-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f4f6;
  flex-shrink: 0;
}

/* Scheduled delivery: checkout confirmation sheet (resident) */
.sc-sched-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  background: rgba(15, 23, 42, 0.38);
}
.sc-sched-overlay.is-open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sc-sched-sheet {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px 14px 0 0;
  border-top: 1px solid #eef2f7;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  position: relative;
}
@media (min-width: 769px) {
  .sc-sched-overlay.is-open {
    align-items: center;
  }
  .sc-sched-sheet {
    border-radius: 14px;
    border: 1px solid #eef2f7;
  }
}
.sc-sched-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(243, 244, 246, 0.98);
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.sc-sched-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  padding-right: 48px;
}
.sc-sched-desc {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.35;
}
.sc-sched-desc--sub {
  margin-top: 4px;
  color: #334155;
  font-weight: 600;
}
.sc-sched-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #ffffff;
  font-size: 13px;
  color: #0f172a;
}
.sc-sched-check input {
  margin-top: 2px;
}
.sc-sched-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.sc-sched-actions .btn {
  flex: 1 1 0%;
}

/* Scheduled delivery: resident one-time notice */
.sc-sched-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  background: rgba(15, 23, 42, 0.38);
}
.sc-sched-notice-overlay.is-open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sc-sched-notice-sheet {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px 14px 0 0;
  border-top: 1px solid #eef2f7;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  position: relative;
}
@media (min-width: 769px) {
  .sc-sched-notice-overlay.is-open {
    align-items: center;
  }
  .sc-sched-notice-sheet {
    border-radius: 14px;
    border: 1px solid #eef2f7;
  }
}
.sc-sched-notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(243, 244, 246, 0.98);
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.sc-sched-notice-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  padding-right: 48px;
}
.sc-sched-notice-desc {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.35;
}
.sc-sched-notice-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.sc-sched-notice-actions .btn {
  flex: 1 1 0%;
}

/* Delivery app: payment collection modal/sheet */
.sc-pay-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  background: rgba(15, 23, 42, 0.42);
  touch-action: manipulation;
}
.sc-pay-overlay.is-open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sc-pay-sheet {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid #eef2f7;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  position: relative;
  touch-action: manipulation;
}
.sc-pay-backdrop {
  position: absolute;
  inset: 0;
}
@media (min-width: 769px) {
  .sc-pay-overlay.is-open {
    align-items: center;
  }
  .sc-pay-sheet {
    border-radius: 16px;
    border: 1px solid #eef2f7;
  }
}
.sc-pay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(243, 244, 246, 0.98);
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

/* Resident: order feedback prompt (modal/bottom sheet) */
.sc-fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: none;
  background: rgba(15, 23, 42, 0.42);
}
.sc-fb-overlay.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
}
.sc-fb-backdrop {
  position: absolute;
  inset: 0;
}
.sc-fb-modal {
  width: min(440px, 94vw);
  max-height: min(640px, 86vh);
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.sc-fb-overlay.is-open .sc-fb-modal {
  opacity: 1;
  transform: scale(1);
}
.sc-fb-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.sc-fb-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
}
.sc-fb-close:hover {
  background: rgba(243, 244, 246, 0.98);
}
.sc-fb-hmeta {
  min-width: 0;
}
.sc-fb-htitle {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}
.sc-fb-hsub {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.sc-fb-body {
  padding: 10px 12px 0;
  overflow: auto;
}
.sc-fb-sec {
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.sc-fb-sec:last-child {
  border-bottom: 0;
}
.sc-fb-sec-title {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}
.sc-fb-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sc-fb-illus {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  background: #f8fafc;
  display: grid;
  place-items: center;
  flex: 0 0 56px;
}
.sc-fb-illus svg {
  width: 44px;
  height: 44px;
  display: block;
}
.sc-fb-prod-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #eef2f7;
  background: #f8fafc;
  flex: 0 0 56px;
}
.sc-fb-row-main {
  min-width: 0;
  flex: 1 1 auto;
}
.sc-fb-row-line {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-fb-prod-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-fb-foot {
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sc-fb-sheet {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px 16px 0 0;
  border-top: 1px solid #eef2f7;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  position: relative;
  z-index: 1;
}
@media (min-width: 769px) {
  .sc-fb-overlay.is-open {
    align-items: center;
  }
  .sc-fb-sheet {
    border-radius: 16px;
    border: 1px solid #eef2f7;
  }
}
.sc-fb-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: rgba(243, 244, 246, 0.98);
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.sc-fb-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  padding-right: 52px;
}
.sc-fb-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.35;
}
.sc-fb-order {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #ffffff;
}
.sc-fb-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f4f6;
}
.sc-fb-ometa {
  min-width: 0;
}
.sc-fb-oline {
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-fb-oline.sc-fb-prod {
  margin-top: 2px;
  color: #475569;
  font-weight: 600;
}
.sc-fb-shop {
  color: #64748b;
  font-weight: 600;
}
.sc-fb-stars {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 6px;
}
.sc-fb-star {
  border: 0;
  background: transparent;
  padding: 2px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  transform: translateZ(0);
  display: grid;
  place-items: center;
}
.sc-fb-star svg {
  width: 26px;
  height: 26px;
  display: block;
  fill: none;
  stroke: #d1d5db;
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    fill 180ms ease,
    stroke 180ms ease;
}
.sc-fb-star.is-on svg {
  fill: #f59e0b;
  stroke: #f59e0b;
  transform: scale(1.06);
}
.sc-fb-star:active svg {
  transform: scale(0.96);
}

.sc-fb-text-wrap {
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: max-height, opacity, transform;
}
.sc-fb-text-wrap.is-open {
  margin-top: 10px;
  max-height: 140px;
  opacity: 1;
  transform: translateY(0);
}
.sc-fb-ta {
  margin-top: 0;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  resize: none;
  background: #f8fafc;
}
.sc-fb-ta:focus {
  border-color: var(--primary, #16a34a);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
  background: #ffffff;
}
.sc-fb-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.sc-fb-btn {
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}
.sc-fb-btn--primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
  flex: 1 1 auto;
}
.sc-fb-btn--ghost {
  border-color: transparent;
  background: transparent;
  color: #64748b;
  flex: 0 0 auto;
}
.sc-fb-btn--ghost:hover {
  background: rgba(243, 244, 246, 0.98);
}

/* Resident: order-status feedback section */
.order-feedback-card {
  margin-top: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.os-rate-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: #fff1f2;
  color: #f97316;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.os-rate-btn:hover {
  background: #ffe4e6;
}
.os-rate-btn:active {
  background: #fecdd3;
}
.os-rate-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}
.os-fb-h {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.os-fb-stars {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 6px;
}
.os-fb-star-btn {
  border: 0;
  background: transparent;
  padding: 2px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.os-fb-star-btn svg,
.os-fb-star svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: #9ca3af;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.os-fb-star-btn.is-on svg,
.os-fb-star.is-on svg {
  fill: #f59e0b;
  stroke: #f59e0b;
}
.os-fb-stars--ro {
  justify-content: flex-start;
}
.os-fb-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 2px;
}
.os-fb-ta {
  margin-top: 10px;
  width: 100%;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.os-fb-ta:focus {
  border-color: #e5e7eb;
  box-shadow: none;
}
.os-fb-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.os-fb-actions .btn {
  flex: 1 1 0%;
}
.os-fb-text {
  margin-top: 10px;
  font-size: 14px;
  color: #0f172a;
  line-height: 1.4;
}
.os-fb-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* Shop: feedback dashboard */
.sf-shell {
  padding-bottom: 24px;
}
.sf-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.sf-kpi {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}
.sf-kpi-k {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}
.sf-kpi-v {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}
.sf-top-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 700px) {
  .sf-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sf-top-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
.sf-top-order {
  border: 0;
}
.sf-top-sum {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
}
.sf-top-sum::-webkit-details-marker {
  display: none;
}
.sf-top-order[open] .sf-top-sum {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.sf-top-fan {
  position: relative;
  width: 108px;
  height: 56px;
  flex: 0 0 108px;
}
.sf-top-fan-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #f3f4f6;
}
.sf-top-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sf-top-fan-card .sf-top-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(2px);
}
/* Fan-style stacking transforms (playing cards) */
.sf-top-fan-card:nth-child(1) {
  transform: rotate(-8deg) translate(0px, 8px);
}
.sf-top-fan-card:nth-child(2) {
  transform: rotate(-4deg) translate(10px, 4px);
}
.sf-top-fan-card:nth-child(3) {
  transform: rotate(0deg) translate(20px, 0px);
}
.sf-top-fan-card:nth-child(4) {
  transform: rotate(4deg) translate(30px, -4px);
}
.sf-top-fan-card:nth-child(5) {
  transform: rotate(8deg) translate(40px, -8px);
}
/* Hover: spread a bit more + tiny lift */
.sf-top-order:hover .sf-top-fan-card:nth-child(1) {
  transform: rotate(-8deg) translate(0px, 6px);
}
.sf-top-order:hover .sf-top-fan-card:nth-child(2) {
  transform: rotate(-4deg) translate(16px, 2px);
}
.sf-top-order:hover .sf-top-fan-card:nth-child(3) {
  transform: rotate(0deg) translate(32px, -2px);
}
.sf-top-order:hover .sf-top-fan-card:nth-child(4) {
  transform: rotate(4deg) translate(48px, -6px);
}
.sf-top-order:hover .sf-top-fan-card:nth-child(5) {
  transform: rotate(8deg) translate(64px, -10px);
}
.sf-top-expand {
  margin-top: 8px;
  padding: 10px 12px 12px;
  border: 1px solid #eef2f7;
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
}
.sf-top-line {
  font-size: 12px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.35;
  padding: 3px 0;
}
.sf-top-sub {
  margin-top: 2px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sf-top-subtxt {
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
}
.sf-top-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f4f6;
}
.sf-top-name {
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.2;
}
.sf-top-sub {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}
.sf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 980px) {
  .sf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sf-grid.sf-grid--groups {
  grid-template-columns: 1fr;
}
@media (min-width: 980px) {
  .sf-grid.sf-grid--groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.sf-group {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
}
.sf-group-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.sf-group-meta {
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
}
.sf-stack {
  margin-top: 10px;
  position: relative;
}
.sf-stack-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 12px;
  position: relative;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}
.sf-stack-card + .sf-stack-card {
  margin-top: -12px;
}
.sf-stack-card.is-five {
  border-color: rgba(22, 163, 74, 0.3);
}
.sf-stack-card.is-low {
  border-color: rgba(239, 68, 68, 0.3);
}
.sf-stack-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.sf-stack-oid {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}
.sf-stack-date {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
}
.sf-more {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
}
.sf-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
}
.sf-card.is-five {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.04);
}
.sf-card.is-low {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}
.sf-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.sf-user-name {
  font-weight: 900;
  color: #0f172a;
  font-size: 13px;
}
.sf-user-since {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}
.sf-order {
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
}
.sf-prod {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}
.sf-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3f4f6;
}
.sf-prod-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.2;
}
.sf-stars {
  margin-top: 4px;
  display: flex;
  gap: 4px;
}
.sf-ratings {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sf-rlabel {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  min-width: 56px;
}
.sf-star {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sf-star svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: #9ca3af;
  stroke-width: 1.8;
  stroke-linejoin: round;
}
.sf-star.is-on svg {
  fill: #f59e0b;
  stroke: #f59e0b;
}
.sf-text {
  margin-top: 10px;
  font-size: 13px;
  color: #0f172a;
  line-height: 1.4;
}
.sf-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}
.sf-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.sc-pay-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  padding-right: 48px;
}
.sc-pay-desc {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.35;
}
.sc-pay-amount {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.sc-pay-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.sc-pay-actions .btn {
  height: 44px;
  border-radius: 12px;
}
.sc-pay-qr {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.sc-pay-qr-box {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  place-items: center;
}
.sc-pay-qr-box img {
  width: min(260px, 70vw);
  height: auto;
  display: block;
}
.sc-pay-qr-id {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  word-break: break-word;
}
.sc-pay-warn {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #fee2e2;
  background: #fff5f5;
  color: #991b1b;
  font-size: 12.5px;
  font-weight: 700;
}
.sc-pay-confirm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.sc-pay-proof {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.sc-pay-proof-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.sc-pay-proof-preview {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
  padding: 10px;
  display: grid;
  gap: 10px;
}
.sc-pay-proof-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #ffffff;
}
.sc-pay-proof-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Shop scheduled order highlight */
.sc-order-scheduled {
  background: #fff5f5;
  border-color: #ffe4e6;
}
.sc-order-scheduled-label {
  color: #b91c1c;
  font-weight: 700;
}

/* Small chips (used for "Scheduled" tag) */
.sc-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  vertical-align: middle;
  margin-right: 6px;
}
.sc-chip--sched {
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.08);
  color: #b91c1c;
}
.sc-rq-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: -14px -16px 10px;
  padding: 14px 16px 10px;
  padding-right: 56px; /* space for the close button */
  background: #ffffff;
}
.sc-rq-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}
.sc-rq-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 0;
  background: rgba(243, 244, 246, 0.98);
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 140ms ease,
    background-color 140ms ease,
    opacity 140ms ease;
}
.sc-rq-close:focus,
.sc-rq-close:focus-visible {
  outline: none;
  box-shadow: none;
}
.sc-rq-close:active {
  transform: scale(0.96);
  background: rgba(229, 231, 235, 0.98);
}
.sc-rq-fields {
  display: grid;
  gap: 10px;
}
.sc-rq-field {
  display: grid;
  gap: 6px;
}
.sc-rq-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.sc-rq-input,
.sc-rq-select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  background: #f9fafb;
  max-width: 100%;
}
/* Remove number input spinners (clean mobile-first UI) */
.sc-rq-input[type="number"]::-webkit-outer-spin-button,
.sc-rq-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sc-rq-input[type="number"] {
  -moz-appearance: textfield;
}
.sc-rq-input:focus,
.sc-rq-select:focus {
  outline: none;
  border-color: #e5e7eb;
  box-shadow: none;
  background: #ffffff;
}
.sc-rq-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #f9fafb;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
.sc-rq-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}
.sc-rq-submit {
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}
.sc-rq-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
@media (min-width: 769px) {
  .sc-rq-panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(520px, calc(100% - 32px));
    transform: translate(-50%, -50%);
    border-radius: 12px;
    padding: 16px;
    max-height: min(78vh, 680px);
    border: 1px solid #eef2f7;
  }
}
.sc-checkout-page {
  background: #f8fafc;
}
.sc-checkout-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}
.sc-checkout-header-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
}
.sc-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}
.sc-checkout-back svg {
  width: 18px;
  height: 18px;
}
.sc-checkout-shell {
  padding-top: 16px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
.sc-checkout-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sc-checkout-form--plain {
  background: #ffffff;
  border-radius: 16px;
  padding: 2px 6px;
  box-shadow: none;
}
@media (min-width: 768px) {
  .sc-checkout-form--plain {
    padding: 6px 8px;
  }
}
.sc-checkout-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.sc-checkout-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.sc-checkout-info {
  display: grid;
  gap: 12px;
}
.sc-checkout-form--plain .sc-checkout-info {
  gap: 0;
}
.sc-checkout-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}
.sc-checkout-form--plain .sc-checkout-info-row {
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}
.sc-checkout-form--plain .sc-checkout-info-row:last-child {
  border-bottom: 0;
}
.sc-checkout-info-label {
  font-size: 12px;
  color: #6b7280;
}
.sc-checkout-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.sc-checkout-inline-value {
  display: block;
}
.sc-checkout-info-row .sc-checkout-inline-input {
  display: none;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid #d1d5db;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.sc-checkout-info-row .sc-checkout-inline-input:focus {
  outline: none;
  border-bottom-color: #16a34a;
  box-shadow: none;
}
.sc-checkout-info-row .sc-checkout-inline-textarea {
  resize: vertical;
  min-height: 44px;
}
.sc-checkout-info-row.is-open {
  background: #ffffff;
  border-color: rgba(22, 163, 74, 0.5);
  align-items: flex-start;
}
.sc-checkout-form--plain .sc-checkout-info-row.is-open {
  background: rgba(22, 163, 74, 0.04);
}
.sc-checkout-info-row.is-open .sc-checkout-info-value {
  display: none;
}
.sc-checkout-info-row.is-open .sc-checkout-inline-input {
  display: block;
}
.sc-edit-btn {
  border: none;
  background: #e5f7ee;
  color: #16a34a;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sc-checkout-form--plain .sc-edit-btn {
  background: transparent;
  color: #6b7280;
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.sc-checkout-form--plain .sc-edit-btn:hover {
  background: #f3f4f6;
  color: #111827;
}
.sc-checkout-form--plain .sc-checkout-info-row.is-open .sc-edit-btn {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.sc-edit-btn svg {
  width: 16px;
  height: 16px;
}
.sc-checkout-edit-row {
  display: none;
}
.sc-checkout-edit-row.is-open {
  display: block;
}
.sc-checkout-edit-row .sc-checkout-input {
  margin-top: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}
.sc-checkout-edit-row .sc-checkout-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.sc-checkout-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: #ffffff;
}
.sc-checkout-previous {
  margin-top: 12px;
}
.sc-checkout-previous-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.sc-checkout-section-title {
  margin-top: 18px;
}
.sc-payment-options {
  display: grid;
  gap: 10px;
}
.sc-payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  background: #ffffff;
  font-weight: 600;
  position: relative;
  padding-right: 44px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.sc-payment-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #111827;
  flex: 0 0 auto;
}
.sc-payment-icon svg {
  width: 18px;
  height: 18px;
}
.sc-payment-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}
.sc-payment-title {
  font-weight: 700;
}
.sc-payment-sub {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}
.sc-payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sc-payment-option:has(input:checked) {
  border-color: #16a34a;
  background: #ecfdf5;
  color: #065f46;
}
.sc-payment-option:has(input:checked) .sc-payment-icon {
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
}
.sc-payment-option::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #d1d5db;
  transform: translateY(-50%);
}
.sc-payment-option:has(input:checked)::after {
  border-color: #16a34a;
  background: #16a34a;
}
.sc-payment-option:has(input:checked)::before {
  content: "\2713";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-56%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}
.sc-payment-option:focus-within {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.sc-upi-section {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}
.sc-upi-qr {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
}
.sc-upi-qr img {
  max-width: 200px;
  width: 100%;
  height: auto;
}
.sc-upload-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.sc-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #cbd5f5;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
  cursor: pointer;
}
.sc-upload-box span {
  font-size: 13px;
  color: #6b7280;
}
.sc-upload-input {
  display: none;
}
.sc-upload-preview {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
}
.sc-upload-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.sc-checkout-submit {
  margin-top: 18px;
  width: 100%;
  border: none;
  background: #16a34a;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  box-shadow: 2px 2px 0 #0f7a36;
}
.sc-checkout-submit.is-disabled,
.sc-checkout-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.sc-checkout-submit.is-loading {
  opacity: 0.9;
}
.sc-checkout-submit-icon svg {
  width: 18px;
  height: 18px;
}
.sc-checkout-msg {
  margin-top: 10px;
  color: #6b7280;
}
.sc-checkout-items {
  display: grid;
  gap: 10px;
}
.sc-checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sc-checkout-item-media {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 52px;
}
.sc-checkout-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sc-checkout-item-info {
  flex: 1;
}
.sc-checkout-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.sc-checkout-item-meta {
  font-size: 12px;
  color: #6b7280;
}
.sc-checkout-item-price {
  font-weight: 600;
  color: #111827;
}
.sc-checkout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 8px;
}
.sc-checkout-row-total {
  font-weight: 700;
  font-size: 15px;
  color: #111827;
}
.sc-checkout-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 12px 0;
}
.sc-checkout-summary {
  position: relative;
  overflow: hidden;
}
.sc-checkout-summary-content {
  position: relative;
  z-index: 1;
}
.sc-checkout-watermark {
  position: absolute;
  left: 75%;
  transform: translateX(-50%);
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  width: 250px;
  text-align: center;
}
.sc-checkout-watermark img {
  width: 100%;
  height: auto;
  display: block;
}
.sc-checkout-watermark-label {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(244, 114, 182, 0.4);
  letter-spacing: 0.2px;
}

.sc-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: linear-gradient(180deg, #f0fff4 0%, #ffffff 60%, #f7fff9 100%);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.sc-success-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sc-success-stage {
  display: none;
  text-align: center;
  padding: 24px;
  width: min(420px, 90vw);
  color: #0f172a;
}

.sc-success-stage.is-active {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.sc-success-title {
  font-size: 18px;
  font-weight: 700;
}

.sc-success-subtext {
  font-size: 13px;
  color: #64748b;
}

.sc-success-loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #d1fae5;
  border-top-color: #16a34a;
  animation: sc-success-spin 1.2s linear infinite;
}

.sc-success-journey {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(360px, 90vw);
}

.sc-success-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #16a34a;
  display: grid;
  place-items: center;
}

.sc-success-path {
  width: 100%;
  height: 70px;
  fill: none;
  stroke: #86efac;
  stroke-width: 3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sc-success-path 1.25s ease-in-out forwards;
}

.sc-success-dot {
  position: absolute;
  top: 18px;
  left: 58px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16a34a;
  animation: sc-success-dot 1.25s ease-in-out forwards;
}

.sc-success-impact-icon {
  font-size: 38px;
}

.sc-success-metric {
  font-size: 28px;
  font-weight: 800;
  color: #16a34a;
}

.sc-success-unit {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.sc-success-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbf7d0;
  opacity: 0.7;
  animation: sc-success-float 3.2s ease-in-out infinite;
}

.sc-success-particles span:nth-child(1) {
  top: -8px;
  left: 20%;
  animation-delay: 0s;
}
.sc-success-particles span:nth-child(2) {
  top: 10px;
  left: 70%;
  animation-delay: 0.4s;
}
.sc-success-particles span:nth-child(3) {
  top: 40px;
  left: 35%;
  animation-delay: 0.8s;
}
.sc-success-particles span:nth-child(4) {
  top: 55px;
  left: 60%;
  animation-delay: 1.2s;
}

.sc-success-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  display: grid;
  place-items: center;
  animation: sc-success-pop 0.55s ease forwards;
}

.sc-success-check svg {
  width: 42px;
  height: 42px;
}

.sc-success-confetti span {
  position: absolute;
  width: 6px;
  height: 12px;
  background: #bbf7d0;
  opacity: 0.6;
  animation: sc-success-confetti 2.2s ease-out infinite;
}

.sc-success-confetti span:nth-child(1) {
  left: -10px;
  top: 6px;
  animation-delay: 0s;
}
.sc-success-confetti span:nth-child(2) {
  left: 20px;
  top: -8px;
  animation-delay: 0.2s;
}
.sc-success-confetti span:nth-child(3) {
  right: 30px;
  top: 4px;
  animation-delay: 0.4s;
}
.sc-success-confetti span:nth-child(4) {
  right: 6px;
  top: -10px;
  animation-delay: 0.6s;
}
.sc-success-confetti span:nth-child(5) {
  right: -12px;
  top: 8px;
  animation-delay: 0.8s;
}

@keyframes sc-success-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sc-success-path {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sc-success-dot {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(140px);
  }
}

@keyframes sc-success-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes sc-success-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes sc-success-confetti {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(26px) rotate(20deg);
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .sc-success-title {
    font-size: 20px;
  }
  .sc-success-metric {
    font-size: 32px;
  }
  .sc-success-stage {
    width: min(520px, 80vw);
  }
  .sc-success-journey {
    width: min(460px, 80vw);
  }
}

@media (min-width: 1024px) {
  .sc-checkout-watermark {
    width: 250px;
  }
  .sc-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
  .sc-checkout-summary {
    order: 2;
    position: static;
    height: 100%;
  }
  .sc-checkout-form {
    order: 1;
    height: 100%;
  }
  .sc-checkout-card {
    padding: 20px;
  }
  .sc-checkout-item-media {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
  }
  .sc-checkout-item-name {
    font-size: 15px;
  }
}
.sc-search-loading-section {
  margin-bottom: 18px;
}
.sc-search-loading-title {
  height: 14px;
  width: 160px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: sc-skeleton 1.4s ease infinite;
  margin-bottom: 12px;
}
.sc-search-loading-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.sc-search-loading-card {
  height: 160px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: sc-skeleton 1.4s ease infinite;
}
.sc-search-loading-bar {
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: sc-skeleton 1.4s ease infinite;
  margin-bottom: 16px;
}
.sc-search-loading-row {
  height: 54px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: sc-skeleton 1.4s ease infinite;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .sc-search-loading-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sc-search-loading-card {
    height: 190px;
  }
}

.rp-chevron.is-rotated {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

/* ==============================
   Shop Dashboard (scoped: .sd)
   ============================== */
.sd {
  background: #f9fafb; /* bg-gray-50 */
}

.sd .container {
  padding: 14px;
}

.sd .btn.btn-primary {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.sd .btn.btn-primary:hover {
  background: #15803d;
  border-color: #15803d;
}

.sd-header {
  padding: 14px 14px;
  background: rgba(249, 250, 251, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.sd-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sd-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #000000;
}

.sd-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.sd-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sd-notif {
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  position: relative;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.sd-notif:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.sd-notif:active {
  transform: translateY(0);
}

.sd-notif svg {
  width: 20px;
  height: 20px;
}

.sd-notif-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.sd-notif-dot.is-on {
  opacity: 1;
  transform: scale(1);
}

.sd-status {
  display: grid;
  gap: 2px;
  text-align: right;
}

.sd-status-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

.sd-toggle-btn {
  white-space: nowrap;
}

.sd-card {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid #f3f4f6; /* border-gray-100 */
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.sd-glass {
  /* kept for backward compatibility with earlier markup; now behaves like standard SaaS cards */
  background: #ffffff;
  backdrop-filter: none;
}

.sd-switch {
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.sd-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.sd-switch:active {
  transform: translateY(0);
}

.sd-switch-track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  position: relative;
  flex: 0 0 auto;
}

.sd-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.sd-switch[aria-checked="true"] .sd-switch-track {
  background: rgba(13, 110, 95, 0.35);
}

.sd-switch[aria-checked="true"] .sd-switch-thumb {
  transform: translateX(16px);
}

.sd-switch-label {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.sd-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 900px) {
  .sd-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  .sd-title {
    font-size: 18px;
  }
  .sd-subtitle {
    font-size: 13px;
  }
}

.sd-kpi {
  padding: 18px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.sd-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(13, 110, 95, 0.12);
}

.sd-kpi-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 700;
}

.sd-kpi-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #166534;
  background: #dcfce7;
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.sd-kpi-badge.is-hidden {
  display: none;
}

.sd-kpi-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #16a34a; /* text-green-600 */
  background: #dcfce7; /* bg-green-100 */
}

.sd-kpi-icon svg {
  width: 18px;
  height: 18px;
}

.sd-kpi-number {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.sd-kpi-actions {
  margin-top: 10px;
}

.sd-request-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.sd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sd-row.is-new {
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(22, 163, 74, 0.08);
}

.sd-row-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-chip {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 8px;
  text-transform: capitalize;
}

.sd-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .sd-grid-2 {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 14px;
  }
}

.sd-section {
  padding: 18px;
}

.sd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sd-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.2px;
}

.sd-list {
  display: grid;
  gap: 10px;
}

.sd-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.sd-list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.sd-list-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.sd-list-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
}

.sd-muted {
  color: #64748b;
  font-weight: 700;
}

.sd-partners {
  display: grid;
  gap: 10px;
}

.sd-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(229, 231, 235, 0.7);
}

.sd-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #0d6e5f;
  background: rgba(13, 110, 95, 0.12);
  flex: 0 0 auto;
}

.sd-partner-body {
  min-width: 0;
  flex: 1 1 auto;
}

.sd-partner-name {
  font-size: 13px;
  font-weight: 700;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sd-pill {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #475569;
}

.sd-pill--available {
  border-color: rgba(31, 138, 76, 0.25);
  background: rgba(31, 138, 76, 0.1);
  color: #1f8a4c;
}

.sd-pill--busy {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.sd-pill--offline {
  border-color: rgba(148, 163, 184, 0.4);
  background: #f1f5f9;
  color: #64748b;
}

.sd-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.75);
}

.sd-dot--available {
  background: #22c55e;
}
.sd-dot--busy {
  background: #f59e0b;
}
.sd-dot--offline {
  background: rgba(148, 163, 184, 0.95);
}

.sd-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

@media (min-width: 900px) {
  .sd-actions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.sd-action {
  text-decoration: none;
  color: #0f172a;
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 231, 235, 0.7);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.sd-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.sd-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #0d6e5f;
  background: rgba(13, 110, 95, 0.1);
}

.sd-action-icon svg {
  width: 20px;
  height: 20px;
}

.sd-action-label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
}

.sd-action--danger {
  border-color: rgba(192, 57, 43, 0.25);
}

.sd-action--danger .sd-action-icon {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.1);
}

.sd-toast-host {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

@media (max-width: 480px) {
  .sd-toast-host {
    left: 12px;
    right: 12px;
    width: auto;
  }
}

.sd-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

/* Shop Tutorials & Help Center (page-scoped) */
.thc-shell,
.td-shell {
  max-width: 1180px;
}

.sd-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.sd-toast.is-out {
  opacity: 0;
  transform: translateY(-8px);
}

.sd-toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(13, 110, 95, 0.1);
  color: #0d6e5f;
  flex: 0 0 auto;
}

.sd-toast-icon svg {
  width: 18px;
  height: 18px;
}

.sd-toast-title {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.sd-toast-msg {
  margin-top: 2px;
  font-size: 12px;
  color: #475569;
  font-weight: 700;
}

.sd-toast-x {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}

.sd-toast-x:hover {
  color: #475569;
}

.sd-kpi.is-pulse {
  animation: sd-pulse 0.85s ease-in-out 1;
}

@keyframes sd-pulse {
  0% {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transform: translateY(0);
  }
  35% {
    box-shadow: 0 18px 40px rgba(13, 110, 95, 0.24);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transform: translateY(0);
  }
}

.sd-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.sd-badge {
  font-size: 11px;
  font-weight: 900;
  color: #0f172a;
  background: #dcfce7;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  text-transform: capitalize;
  white-space: nowrap;
}

.sd-badge--placed,
.sd-badge--pending {
  background: #fef3c7;
  border-color: rgba(245, 158, 11, 0.22);
  color: #92400e;
}

.sd-badge--accepted,
.sd-badge--ready {
  background: #e0f2fe;
  border-color: rgba(14, 165, 233, 0.22);
  color: #0369a1;
}

.sd-badge--assigned {
  background: #ede9fe;
  border-color: rgba(139, 92, 246, 0.22);
  color: #5b21b6;
}

.sd-badge--picked-up {
  background: #e0e7ff;
  border-color: rgba(99, 102, 241, 0.22);
  color: #3730a3;
}

.sd-badge--delivered {
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.22);
  color: #166534;
}

.sd-badge--cancelled,
.sd-badge--rejected {
  background: #fee2e2;
  border-color: rgba(239, 68, 68, 0.22);
  color: #991b1b;
}

.sd-empty {
  padding: 14px 12px;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.45);
}

.sd-empty-title {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.sd-empty-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.sd-skel {
  border-radius: 14px;
  background: linear-gradient(
    90deg,
    rgba(241, 245, 249, 0.7) 25%,
    rgba(226, 232, 240, 0.9) 37%,
    rgba(241, 245, 249, 0.7) 63%
  );
  background-size: 400% 100%;
  animation: sc-skeleton 1.4s ease infinite;
}

.sd-skel-row {
  height: 54px;
  border-radius: 16px;
}

/* ==============================
   Delivery Auth (Login/Register)
   UI-only styles; keep forms/JS intact
   ============================== */
body.dp-auth {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #eefbf4 42%, #ffffff 100%);
}

.dp-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.dp-auth-side {
  display: none;
  position: relative;
  overflow: hidden;
  background: #111827;
}

.dp-auth-side-media {
  position: absolute;
  inset: 0;
}

.dp-auth-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transform: scale(1.02);
}

.dp-auth-side-overlay {
  position: relative;
  height: 100%;
  padding: 28px;
  display: grid;
  align-content: end;
  gap: 8px;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0.08) 0%,
    rgba(17, 24, 39, 0.56) 55%,
    rgba(17, 24, 39, 0.92) 100%
  );
}

.dp-auth-brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #ffffff;
}

.dp-auth-tagline {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.86);
  max-width: 42ch;
  line-height: 1.35;
}

.dp-auth-main {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 18px 14px 28px;
}

.dp-auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 22px;
  box-shadow:
    0 22px 55px rgba(17, 24, 39, 0.12),
    0 2px 10px rgba(17, 24, 39, 0.06);
  padding: 18px 16px 16px;
  backdrop-filter: blur(8px);
  animation: dp-fade-up 220ms ease-out both;
}

@keyframes dp-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.dp-auth-top {
  text-align: center;
  padding: 6px 2px 12px;
}

.dp-auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: #111827;
  font-size: 15px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(23, 117, 66, 0.1),
    rgba(23, 117, 66, 0.04)
  );
  border: 1px solid rgba(23, 117, 66, 0.18);
}

.dp-auth-title {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.dp-auth-subtitle {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.35;
}

.dp-auth-form {
  margin-top: 8px;
}

.dp-field {
  margin-top: 12px;
}

.dp-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 6px;
}

.dp-input-wrap {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(226, 232, 240, 1);
  background: #ffffff;
  border-radius: 14px;
  padding: 0 12px 0 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.dp-input-wrap:focus-within {
  border-color: rgba(23, 117, 66, 0.42);
  box-shadow: 0 0 0 4px rgba(23, 117, 66, 0.14);
  transform: translate3d(0, -1px, 0);
}

.dp-input-ico {
  width: 40px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #94a3b8;
}

.dp-input-ico svg {
  width: 18px;
  height: 18px;
}

.dp-input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: none;
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
  background: transparent;
  padding: 0;
}

.dp-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 28px;
  cursor: pointer;
}

.dp-btn {
  width: 100%;
  border: 0;
  border-radius: 14px;
  height: 44px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.dp-btn:active {
  transform: translate3d(0, 1px, 0) scale(0.99);
}

.dp-btn-primary {
  margin-top: 14px;
  background: linear-gradient(180deg, #177542 0%, #0f5f36 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 117, 66, 0.26);
}

.dp-btn-primary:hover {
  box-shadow: 0 14px 28px rgba(23, 117, 66, 0.28);
}

.dp-btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.dp-msg {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 750;
  color: #475569;
  min-height: 16px;
}

.dp-auth-footer {
  margin-top: 14px;
  text-align: center;
}

.dp-link {
  text-decoration: none;
  font-weight: 900;
  font-size: 12.5px;
  color: #177542;
}

.dp-link:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  body.dp-auth {
    background: linear-gradient(135deg, #ffffff 0%, #e9fbf1 45%, #ffffff 100%);
  }
  .dp-auth-shell {
    grid-template-columns: 1.2fr 1fr;
  }
  .dp-auth-side {
    display: block;
  }
  .dp-auth-main {
    padding: 24px;
  }
  .dp-auth-card {
    max-width: 460px;
    padding: 22px 20px 18px;
  }
  .dp-auth-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dp-auth-card {
    animation: none;
  }
  .dp-input-wrap,
  .dp-btn {
    transition: none;
  }
}

/* =========================
   Delivery Partner Dashboard
   UI-only styles; scoped
   ========================= */
body.dpd {
  background: var(--bg);
}

.dpd-header {
  padding: 14px 14px;
}

.dpd-header-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dpd-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.dpd-subtitle {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 750;
  color: #64748b;
}

.dpd-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dpd-bell {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.dpd-bell-ico {
  color: #0f172a;
  width: 20px;
  height: 20px;
}

.dpd-bell-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.dpd-bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.dpd-bell-badge.is-hidden {
  display: none;
}

.dpd-bell.is-pulsing {
  animation: dpd-bell-pulse 1.15s ease-in-out infinite;
}

@keyframes dpd-bell-pulse {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  }
  50% {
    transform: translate3d(0, -1px, 0);
    box-shadow: 0 16px 30px rgba(23, 117, 66, 0.22);
  }
}

.dpd-shell {
  padding-top: 14px;
}

.dpd-partner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 18px;
}

.dpd-partner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dpd-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(23, 117, 66, 0.16),
    rgba(23, 117, 66, 0.06)
  );
  border: 1px solid rgba(23, 117, 66, 0.18);
  color: #0f5f36;
  font-weight: 950;
  display: grid;
  place-items: center;
}

.dpd-partner-name {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

.dpd-partner-id {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 750;
  color: #64748b;
}

.dpd-orders {
  margin-top: 14px;
}

.dpd-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.dpd-section-title {
  font-size: 13px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.dpd-section-hint {
  font-size: 12px;
  font-weight: 750;
  color: #64748b;
}

.dpd-orders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dpd-order {
  border-radius: 18px;
  padding: 14px;
}

.dpd-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dpd-order-title {
  font-size: 14px;
  font-weight: 950;
  color: #0f172a;
}

.dpd-order-body {
  display: grid;
  gap: 8px;
}

.dpd-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
}

.dpd-k {
  font-size: 12px;
  font-weight: 850;
  color: #64748b;
}

.dpd-v {
  font-size: 12.5px;
  font-weight: 850;
  color: #0f172a;
  min-width: 0;
  word-break: break-word;
}

.dpd-items {
  margin-top: 2px;
}

.dpd-items-v {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.dpd-link {
  color: var(--primary);
  text-decoration: none;
}

.dpd-link:hover {
  text-decoration: underline;
}

.dpd-order-actions {
  margin-top: 12px;
}

/* Status badge tuning for delivery: picked_up as yellow */
body.dpd .badge-picked_up {
  background: #fef3c7;
  color: #92400e;
}

body.dpd .badge-assigned {
  background: #ecf2ff;
  color: #2d4a9d;
}

body.dpd .badge-delivered {
  background: #e7f7ed;
  color: var(--success);
}

.dpd-order--new {
  position: relative;
  outline: 2px solid rgba(23, 117, 66, 0.24);
  box-shadow: 0 10px 22px rgba(23, 117, 66, 0.08);
}

.dpd-order--new::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(23, 117, 66, 0.26);
  animation: dpd-new-ring 1.25s ease-in-out infinite;
}

@keyframes dpd-new-ring {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(23, 117, 66, 0);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(23, 117, 66, 0.08);
  }
}

.dpd-order--flash {
  outline-color: rgba(23, 117, 66, 0.38);
  transform: translate3d(0, -1px, 0);
}

@media (min-width: 900px) {
  .dpd-title {
    font-size: 18px;
  }
  .dpd-subtitle {
    font-size: 12.5px;
  }
  .dpd-orders-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dpd-row {
    grid-template-columns: 110px 1fr;
  }
}
.sc-checkout-cashback-excluded {
  margin-top: 3px;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.sc-checkout-cashback-banner {
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.sc-checkout-row-saving,
.sc-checkout-row-cashback {
  color: #15803d;
  font-weight: 800;
}

.sc-checkout-row-muted {
  color: #64748b;
  font-size: 12px;
}

.sc-checkout-cashback-unlock {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.sc-order-chat {
  margin-top: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.sc-order-chat__head {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  font-weight: 800;
  color: #172033;
}
.sc-order-chat__list {
  height: min(48vh, 420px);
  min-height: 230px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7faf8;
}
.sc-chat-bubble {
  max-width: 82%;
  padding: 9px 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  overflow-wrap: anywhere;
}
.sc-chat-bubble--shop {
  align-self: flex-end;
  background: #dff7e6;
  border-bottom-right-radius: 4px;
}
.sc-chat-bubble--resident {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.sc-chat-bubble--system {
  align-self: center;
  background: #eef2f7;
  font-size: 12px;
}
.sc-chat-bubble time {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #64748b;
  text-align: right;
}
.sc-order-chat__state {
  padding: 7px 14px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
.sc-order-chat__chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 8px 12px;
  scrollbar-width: none;
}
.sc-chat-chip {
  flex: 0 0 auto;
  border: 1px solid #b9e8c8;
  background: #f1fff5;
  color: #087a35;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 700;
}
.sc-order-chat__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid #eef2f7;
  background: #fff;
  position: sticky;
  bottom: 0;
}
.sc-order-chat__form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  padding: 10px 13px;
}
.sc-order-chat__form button {
  border: 0;
  border-radius: 999px;
  background: #0da548;
  color: #fff;
  padding: 10px 16px;
  font-weight: 800;
}
.sc-order-chat__form button:disabled,
.sc-order-chat__form input:disabled {
  opacity: 0.55;
}
.sc-message-preview {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-message-badge {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
