:root {
  --opsf-brand: #2563eb;
  --opsf-brand-dark: #1d4ed8;
  --opsf-brand-soft: #eff6ff;
  --opsf-bg: #f1f5f9;
  --opsf-surface: #ffffff;
  --opsf-text: #0f172a;
  --opsf-muted: #64748b;
  --opsf-border: #e2e8f0;
  --opsf-danger: #dc2626;
  --opsf-success: #16a34a;
  --opsf-radius: 14px;
  --opsf-radius-sm: 10px;
  --opsf-header-h: 56px;
  --opsf-nav-h: 66px;
  --opsf-safe-b: env(safe-area-inset-bottom, 0px);
  --opsf-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .04);
  --opsf-mini-cols: 2;
  --opsf-mini-img-h: 84px;
  --opsf-grid-cols: 2;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: var(--opsf-text);
  background: var(--opsf-bg);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

.opsf-body { overscroll-behavior: none; }

.opsf-app {
  min-height: 100dvh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: var(--opsf-bg);
  overflow: hidden;
}

@media (min-width: 480px) {
  :root {
    --opsf-mini-cols: 3;
    --opsf-mini-img-h: 88px;
    --opsf-grid-cols: 3;
  }
}

@media (min-width: 768px) {
  html, body { background: #e2e8f0; }
  :root {
    --opsf-mini-cols: 4;
    --opsf-mini-img-h: 92px;
    --opsf-grid-cols: 4;
  }
  .opsf-app {
    max-width: 768px;
    box-shadow: 0 0 40px rgba(15, 23, 42, .08);
  }
  .opsf-main { padding: 16px 20px calc(var(--opsf-nav-h) + var(--opsf-safe-b) + 16px); }
  .opsf-header { padding: 0 16px; }
  .opsf-hero:not(.opsf-hero--compact) { padding: 24px 20px; }
  .opsf-hero:not(.opsf-hero--compact) h2 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  :root {
    --opsf-mini-cols: 5;
    --opsf-mini-img-h: 96px;
    --opsf-grid-cols: 5;
  }
  .opsf-app { max-width: 960px; }
  .opsf-main { padding: 20px 32px calc(var(--opsf-nav-h) + var(--opsf-safe-b) + 20px); }
  .opsf-actions { grid-template-columns: repeat(3, 1fr); }
  .opsf-form:not(.opsf-form--auth):not(.opsf-form--checkout) { max-width: 560px; margin: 0 auto; width: 100%; }
  .opsf-account-stack { max-width: 440px; }
  .opsf-product-detail { max-width: 480px; margin: 0 auto; }
}

@media (min-width: 1280px) {
  .opsf-app { max-width: 1100px; }
}

.opsf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--opsf-header-h);
  padding: 0 10px;
  background: rgba(15, 23, 42, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.opsf-header__title-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.opsf-header__title {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opsf-header__install {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, .55);
  background: rgba(37, 99, 235, .45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
}

.opsf-header__install:active,
.opsf-header__install:focus-visible {
  background: rgba(37, 99, 235, .65);
  outline: none;
}

html.opsf-standalone,
html.opsf-standalone body {
  height: 100%;
  min-height: 100dvh;
  overflow: hidden;
}

html.opsf-standalone .opsf-app {
  min-height: 100dvh;
  height: 100dvh;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

html.opsf-standalone .opsf-nav {
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

html.opsf-standalone .opsf-header__install {
  display: none !important;
}

.opsf-pwa-install__card--gate #opsf-pwa-safari-open {
  text-decoration: none;
  text-align: center;
}

.opsf-header__install[hidden] {
  display: none !important;
}

.opsf-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  max-width: 58%;
  overflow-x: auto;
  scrollbar-width: none;
}
.opsf-header__actions::-webkit-scrollbar { display: none; }

.opsf-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  min-height: 36px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  white-space: nowrap;
}
.opsf-header__action:hover,
.opsf-header__action:focus-visible {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.opsf-header__action--staff {
  background: rgba(37, 99, 235, .35);
  border-color: rgba(147, 197, 253, .35);
}

.opsf-account-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.opsf-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  background: var(--opsf-surface);
  border-radius: var(--opsf-radius);
  border: 1px solid var(--opsf-border);
  box-shadow: var(--opsf-shadow);
}

.opsf-account-bar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.opsf-account-bar__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--opsf-brand-soft);
  color: var(--opsf-brand);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.opsf-account-bar__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.opsf-account-bar__name {
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opsf-account-bar__sub {
  font-size: .75rem;
  color: var(--opsf-muted);
}

.opsf-list-label {
  margin: 0 0 10px 2px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--opsf-muted);
}

.opsf-empty-state,
.opsf-empty-inline {
  text-align: center;
  padding: 28px 16px;
  color: var(--opsf-muted);
  font-size: .9rem;
}

.opsf-order-list {
  display: flex;
  flex-direction: column;
  background: var(--opsf-surface);
  border-radius: var(--opsf-radius);
  border: 1px solid var(--opsf-border);
  overflow: hidden;
  box-shadow: var(--opsf-shadow);
  margin-bottom: 4px;
}

.opsf-order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  min-height: 72px;
  background: var(--opsf-surface);
  border-bottom: 1px solid var(--opsf-border);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}

.opsf-order-list .opsf-order-card:last-child {
  border-bottom: 0;
}

.opsf-order-card:active {
  background: var(--opsf-brand-soft);
}

.opsf-order-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.opsf-order-card__ref {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.opsf-order-card__amount {
  font-size: .88rem;
  color: var(--opsf-muted);
  font-weight: 600;
}

.opsf-order-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.opsf-order-card__chevron {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--opsf-muted);
  line-height: 1;
  opacity: .45;
  margin-top: -1px;
}

.opsf-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
  line-height: 1;
}

.opsf-status--pending { background: #fef3c7; color: #b45309; }
.opsf-status--active { background: #dbeafe; color: #1d4ed8; }
.opsf-status--ready { background: #dcfce7; color: #15803d; }
.opsf-status--done { background: #dcfce7; color: #15803d; }
.opsf-status--cancel { background: #fee2e2; color: #b91c1c; }

.opsf-confirm-sheet {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 4px 0 8px;
}

.opsf-confirm-title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.opsf-confirm-meta {
  background: var(--opsf-surface);
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius);
  padding: 4px 0;
  margin-bottom: 12px;
  box-shadow: var(--opsf-shadow);
}

.opsf-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--opsf-border);
  font-size: .9rem;
}

.opsf-confirm-row:last-child {
  border-bottom: 0;
}

.opsf-confirm-row > span:first-child {
  color: var(--opsf-muted);
  font-size: .85rem;
}

.opsf-confirm-note {
  margin: 0 0 4px;
  text-align: center;
  color: var(--opsf-muted);
  font-size: .85rem;
}

.opsf-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.opsf-btn--ghost {
  background: transparent;
  color: var(--opsf-muted);
  border: 1px solid var(--opsf-border);
  align-self: flex-start;
}
.opsf-btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
.opsf-divider {
  border: 0;
  border-top: 1px solid var(--opsf-border);
  margin: 24px 0;
}

.opsf-muted { color: var(--opsf-muted); font-size: 14px; }

.opsf-checkout-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--opsf-radius-sm);
  background: var(--opsf-brand-soft);
  color: var(--opsf-text);
  font-size: 13px;
  line-height: 1.35;
}
.opsf-checkout-banner a {
  color: var(--opsf-brand);
  font-weight: 600;
}
.opsf-checkout-banner--guest {
  background: #f8fafc;
  border: 1px solid var(--opsf-border);
}

.opsf-delivery-address textarea {
  min-height: 104px;
  resize: vertical;
  margin-bottom: 4px;
}

.opsf-field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: .9rem;
}

.opsf-address-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.opsf-address-mode__btn {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius-sm);
  background: var(--opsf-surface);
  color: var(--opsf-text);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}

.opsf-address-mode__btn--active {
  border-color: var(--opsf-brand);
  background: var(--opsf-brand-soft);
  color: var(--opsf-brand-dark);
}

.opsf-address-panel {
  margin-top: 4px;
}

.opsf-field--nested {
  margin-bottom: 10px;
}

.opsf-address-gps-hint {
  margin: 0 0 10px;
  font-size: .85rem;
  color: var(--opsf-muted);
  line-height: 1.4;
}

.opsf-location-panel {
  margin-top: 4px;
}

.opsf-location-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 12px;
  color: var(--opsf-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.opsf-location-divider::before,
.opsf-location-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--opsf-border);
}

.opsf-btn--location {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--opsf-brand, #2563eb);
  background: var(--opsf-brand-soft, #eff6ff);
  color: var(--opsf-brand, #2563eb);
  font-weight: 600;
  border-radius: var(--opsf-radius-sm, 10px);
}

.opsf-btn--location:disabled {
  opacity: 0.65;
}

.opsf-location-pin {
  font-size: 18px;
  line-height: 1;
}

.opsf-location-hint,
.opsf-location-unavailable {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.opsf-landmark-field {
  margin-top: 10px;
}

.opsf-landmark-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius-sm);
  font-size: .95rem;
}

.opsf-location-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--opsf-brand);
  text-decoration: none;
}

.opsf-location-link:hover {
  text-decoration: underline;
}

.opsf-location-status {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--opsf-brand, #2563eb);
}

.opsf-location-status.opsf-muted {
  color: var(--opsf-muted);
}

.opsf-location-status--error {
  color: #b45309;
}

.opsf-confirm-row--stack strong {
  display: block;
  margin-top: 4px;
  line-height: 1.4;
  font-weight: 600;
}

.opsf-order-lines {
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius-sm);
  background: #fff;
}

.opsf-order-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--opsf-border);
  font-size: 14px;
}

.opsf-order-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.opsf-order-line:first-child {
  padding-top: 0;
}

.opsf-order-line__qty {
  color: var(--opsf-muted);
  font-weight: 600;
}

.opsf-order-line__name {
  line-height: 1.35;
}

.opsf-order-line__price {
  font-weight: 600;
  white-space: nowrap;
}

.opsf-confirm-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 14px 12px;
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius-sm);
  background: #f8fafc;
  font-size: 16px;
}

.opsf-confirm-total strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--opsf-text);
}

.opsf-notify-prompt {
  margin: 12px 0 4px;
  padding: 12px;
  border-radius: var(--opsf-radius-sm);
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.opsf-notify-prompt__text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--opsf-text);
}

.opsf-notify-ios-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--opsf-muted);
}

.opsf-notify-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opsf-guest-orders {
  margin-bottom: 8px;
}

.opsf-account-stack {
  width: 100%;
  max-width: min(100%, 480px);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .opsf-account-stack,
  .opsf-confirm-sheet {
    max-width: 440px;
  }
  .opsf-action-stack {
    gap: 12px;
  }
}

.opsf-account-stack .opsf-section-title {
  margin-bottom: 12px;
}

.opsf-auth-panel {
  width: 100%;
}

.opsf-auth-intro {
  margin: 0 0 4px;
  line-height: 1.45;
}

.opsf-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  width: 100%;
}
.opsf-tab {
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--opsf-border);
  border-radius: 999px;
  background: var(--opsf-surface);
  color: var(--opsf-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}
.opsf-tab--active {
  background: var(--opsf-brand, #2563eb);
  border-color: var(--opsf-brand, #2563eb);
  color: #fff;
}

.opsf-auth-pane {
  width: 100%;
}

.opsf-form--auth,
.opsf-form--checkout {
  width: 100%;
  max-width: none;
  margin: 0;
}

.opsf-auth-hint,
.opsf-field-error {
  margin: 0 0 12px;
  font-size: .85rem;
  color: #b45309;
  line-height: 1.4;
}

.opsf-field-note {
  margin: 4px 0 0;
  font-size: .75rem;
  line-height: 1.35;
}

.opsf-reset-note {
  margin: 0 0 12px;
  font-size: .85rem;
  line-height: 1.35;
}

.opsf-dob-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.05fr;
  gap: 8px;
}

.opsf-dob-select {
  width: 100%;
  min-height: 48px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--opsf-border);
  border-radius: 10px;
  font-size: 1rem;
  background-color: var(--opsf-surface);
  color: var(--opsf-text);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.opsf-dob-input {
  width: 100%;
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid var(--opsf-border);
  border-radius: 10px;
  font-size: 1rem;
  background-color: var(--opsf-surface);
  color: var(--opsf-text);
}

.opsf-field--dob .opsf-field-note {
  margin-top: 6px;
}

.opsf-field--invalid input,
.opsf-field--invalid select {
  border-color: var(--opsf-danger);
}

.opsf-btn--link {
  background: transparent;
  border: 0;
  color: var(--opsf-brand);
  min-height: auto;
  padding: 8px 0 0;
  width: 100%;
  font-size: .85rem;
  font-weight: 600;
}

.opsf-lookup-fallback {
  margin-top: 20px;
  width: 100%;
  padding: 14px 16px;
  background: var(--opsf-surface);
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius);
}

.opsf-lookup-fallback summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  list-style: none;
}

.opsf-lookup-fallback summary::-webkit-details-marker {
  display: none;
}

.opsf-lookup-note {
  margin: 8px 0 12px;
}

.opsf-account-cta {
  margin: 16px 0;
}

.opsf-login-footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: .85rem;
}

.opsf-login-footer a {
  color: var(--opsf-brand);
  font-weight: 600;
}

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

.opsf-header__back,
.opsf-header__cart {
  background: transparent;
  border: 0;
  color: inherit;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--opsf-radius-sm);
  position: relative;
}

.opsf-header__back {
  font-size: 1.35rem;
  line-height: 1;
}

.opsf-header__back:active,
.opsf-header__cart:active { background: rgba(255,255,255,.12); }

@keyframes opsf-cart-pulse {
  0% {
    transform: scale(1);
    background: transparent;
    color: inherit;
  }
  18% {
    transform: scale(1.14);
    background: #facc15;
    color: #1e293b;
    box-shadow: 0 0 0 5px rgba(250, 204, 21, .45);
  }
  45% {
    transform: scale(1.08);
    background: #fde047;
    color: #1e293b;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, .3);
  }
  100% {
    transform: scale(1);
    background: transparent;
    color: inherit;
    box-shadow: none;
  }
}

.opsf-header__cart.opsf-cart-pulse {
  animation: opsf-cart-pulse 0.65s ease-out;
}

.opsf-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--opsf-brand);
  color: #fff;
  border-radius: 999px;
}

.opsf-main {
  flex: 1;
  min-height: 0;
  padding: 10px 10px calc(var(--opsf-nav-h) + var(--opsf-safe-b) + 10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.opsf-view-panel,
.opsf-stack {
  min-height: 0;
}

.opsf-view-panel[hidden],
.opsf-stack[hidden] {
  display: none !important;
}
}

.opsf-toolbar {
  flex-shrink: 0;
  padding: 8px 10px;
  background: var(--opsf-bg);
  border-bottom: 1px solid var(--opsf-border);
  z-index: 45;
}

.opsf-toolbar[hidden] {
  display: none !important;
}

.opsf-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: calc(var(--opsf-nav-h) + var(--opsf-safe-b));
  padding-bottom: var(--opsf-safe-b);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--opsf-border);
  z-index: 40;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, .06);
}

@media (min-width: 768px) {
  .opsf-nav { max-width: 768px; }
}

@media (min-width: 1024px) {
  .opsf-nav { max-width: 960px; }
  .opsf-nav__item { font-size: 13px; }
  .opsf-nav__icon { font-size: 26px; }
}

@media (min-width: 1280px) {
  .opsf-nav { max-width: 1100px; }
}

.opsf-nav__item[hidden] {
  display: none !important;
}

.opsf-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 600;
  color: var(--opsf-muted);
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 10px;
  margin: 4px 2px;
  transition: color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}

.opsf-nav__item:active {
  background: rgba(37, 99, 235, .08);
}

.opsf-nav__item.active {
  color: var(--opsf-brand);
  font-weight: 700;
  background: var(--opsf-brand-soft);
}
.opsf-nav__icon { font-size: 24px; line-height: 1; }

/* —— Home —— */
.opsf-hero {
  background: linear-gradient(135deg, var(--opsf-brand) 0%, var(--opsf-brand-dark) 100%);
  color: #fff;
  border-radius: var(--opsf-radius);
  padding: 16px 14px;
  margin-bottom: 12px;
  box-shadow: var(--opsf-shadow);
}

.opsf-hero--compact { padding: 14px 16px; }

.opsf-hero__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.opsf-hero__brand {
  flex-shrink: 0;
  min-width: 0;
}

.opsf-hero__eyebrow {
  margin: 0 0 2px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .8;
  line-height: 1.2;
}

.opsf-hero__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.opsf-hero__sub {
  margin: 0;
  font-size: .9rem;
  font-weight: 500;
  opacity: .95;
  line-height: 1.35;
  text-align: right;
  flex: 1;
  min-width: 0;
  max-width: 52%;
  align-self: center;
}

.opsf-hero h2 { margin: 0; font-size: 1.35rem; }
.opsf-hero p { margin: 0; }

@media (min-width: 480px) {
  .opsf-hero__title { font-size: 1.5rem; }
  .opsf-hero__sub { font-size: .95rem; max-width: 48%; }
}

@media (max-width: 360px) {
  .opsf-hero__sub {
    font-size: .82rem;
    max-width: 55%;
  }
}

.opsf-section { margin-bottom: 8px; }

.opsf-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.opsf-cat-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 10px;
  border-radius: var(--opsf-radius-sm);
  background: var(--opsf-surface);
  border: 1px solid var(--opsf-border);
  text-decoration: none;
  color: var(--opsf-text);
  box-shadow: var(--opsf-shadow);
  transition: border-color .12s, background .12s;
}

.opsf-cat-tile:active {
  background: var(--opsf-brand-soft);
  border-color: var(--opsf-brand);
}

.opsf-cat-tile__name {
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

@media (min-width: 480px) {
  .opsf-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .opsf-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .opsf-cat-tile__name { font-size: .9rem; }
}

@media (min-width: 1024px) {
  .opsf-cat-grid { grid-template-columns: repeat(5, 1fr); }
}

.opsf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .1s, opacity .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.opsf-btn:active { transform: scale(.98); }
.opsf-btn--primary { background: var(--opsf-brand); color: #fff; }
.opsf-btn--secondary { background: var(--opsf-surface); color: var(--opsf-text); border: 1px solid var(--opsf-border); }
.opsf-btn--whatsapp { background: #25d366; color: #fff; }
.opsf-btn--block { width: 100%; max-width: 100%; }
.opsf-btn:disabled { opacity: .5; cursor: not-allowed; }

.opsf-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.opsf-chip-row::-webkit-scrollbar { display: none; }

.opsf-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--opsf-border);
  background: var(--opsf-surface);
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
}
.opsf-chip.active { background: var(--opsf-brand); color: #fff; border-color: var(--opsf-brand); }

.opsf-shop-toolbar {
  margin: 0;
  padding: 0;
}

.opsf-shop-cats {
  margin-top: 8px;
}

.opsf-shop-cats .opsf-cat-pills {
  margin-bottom: 0;
}

.opsf-search {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  margin: 0;
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius-sm);
  font-size: .95rem;
  background: var(--opsf-surface);
  box-shadow: var(--opsf-shadow);
  display: block;
}

.opsf-home-panel {
  margin-bottom: 14px;
}

.opsf-home-search-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.opsf-home-search-row .opsf-search {
  width: 100%;
}

.opsf-home-search-ac,
.opsf-shop-search-ac {
  position: relative;
  z-index: 12;
  margin-top: 4px;
}

.opsf-shop-search-wrap {
  position: relative;
  width: 100%;
}

.opsf-shop-search-ac {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
}

.opsf-search-ac {
  background: #fff;
  border: 1px solid var(--opsf-border, #e5e7eb);
  border-radius: var(--opsf-radius-sm);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  overflow: hidden;
}

.opsf-search-ac__section {
  margin: 0;
  padding: 8px 12px 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--opsf-muted);
}

.opsf-search-ac__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, .06);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.opsf-search-ac__item:first-of-type {
  border-top: 0;
}

.opsf-search-ac__item:hover,
.opsf-search-ac__item:focus-visible {
  background: var(--opsf-brand-soft);
  outline: none;
}

.opsf-search-ac__label {
  font-size: .92rem;
  font-weight: 600;
  color: var(--opsf-text, #111827);
}

.opsf-search-ac__sub {
  font-size: .78rem;
  color: var(--opsf-muted);
  white-space: nowrap;
}

.opsf-search-ac__item--recent .opsf-search-ac__label {
  font-weight: 500;
}

.opsf-home-search-results {
  margin-top: 10px;
}

.opsf-home-search-more {
  margin-top: 10px;
}

.opsf-search-hint {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: var(--opsf-brand-soft);
  border: 1px solid rgba(37, 99, 235, .2);
  border-radius: var(--opsf-radius-sm);
  font-size: .85rem;
  color: var(--opsf-brand-dark);
  line-height: 1.4;
}

.opsf-search-suggest {
  margin-top: 12px;
}

.opsf-search-suggest__lead {
  margin: 0 0 8px;
  font-size: .85rem;
  color: var(--opsf-muted);
}

.opsf-search-suggest__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opsf-search-suggest__pill {
  appearance: none;
  border: 1px solid rgba(37, 99, 235, .35);
  background: #fff;
  color: var(--opsf-brand-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.opsf-search-suggest__pill:hover,
.opsf-search-suggest__pill:focus-visible {
  background: var(--opsf-brand-soft);
  border-color: var(--opsf-brand);
  outline: none;
}

.opsf-cat-pills--suggest {
  margin-bottom: 0;
}

.opsf-spinner--sm {
  width: 28px;
  height: 28px;
  margin: 16px auto;
}

.opsf-grid {
  display: grid;
  grid-template-columns: repeat(var(--opsf-grid-cols, 2), minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .opsf-grid { gap: 12px; }
}

@media (min-width: 1024px) {
  .opsf-grid { gap: 14px; }
  .opsf-card__name { font-size: .9rem; }
  .opsf-card__price { font-size: .9rem; }
}

.opsf-card {
  position: relative;
  background: var(--opsf-surface);
  border-radius: var(--opsf-radius-sm);
  overflow: hidden;
  border: 1px solid var(--opsf-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--opsf-shadow);
  transition: transform .12s;
}

.opsf-card:active { transform: scale(.98); }

.opsf-card__add,
.opsf-mini-card__add {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--opsf-brand);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
  touch-action: manipulation;
}

.opsf-card__add:disabled,
.opsf-mini-card__add:disabled {
  opacity: .6;
  cursor: wait;
}

.opsf-card__img {
  height: 112px;
  max-height: 112px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.opsf-card__photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
  object-position: center;
}
.opsf-card__body { padding: 8px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.opsf-card__name { margin: 0; font-size: .78rem; font-weight: 600; line-height: 1.25; }
.opsf-card__price { font-size: .78rem; color: var(--opsf-brand); font-weight: 700; }
.opsf-card__stock { font-size: .68rem; color: var(--opsf-muted); }
.opsf-card__stock--out { color: var(--opsf-danger); }

.opsf-product-detail {
  width: 100%;
}

.opsf-product-detail__media {
  width: 100%;
  margin: 0 auto 16px;
  padding: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: min(70vw, 400px);
  overflow: hidden;
}

.opsf-product-detail__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(68vw, 380px);
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
}

.opsf-product-detail__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.opsf-product-detail__price {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--opsf-brand);
}

.opsf-product-detail__desc {
  margin: 0 0 12px;
  color: var(--opsf-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.opsf-product-detail__actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opsf-product-detail__post {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--opsf-border);
}

.opsf-product-detail__added {
  margin: 0 0 10px;
  font-size: .9rem;
  font-weight: 600;
  color: #059669;
  text-align: center;
}

.opsf-product-detail__post-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.opsf-upsell {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--opsf-border);
}

.opsf-upsell__head { margin-bottom: 12px; }
.opsf-upsell__sub {
  margin: 4px 0 0;
  font-size: .82rem;
  color: var(--opsf-muted);
}

.opsf-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.opsf-cat-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--opsf-border);
  background: var(--opsf-surface);
  font-size: .875rem;
  font-weight: 600;
  color: var(--opsf-text);
  text-decoration: none;
}

.opsf-cat-pill--active {
  border-color: var(--opsf-brand);
  background: rgba(37, 99, 235, .08);
  color: var(--opsf-brand);
}

.opsf-mini-grid {
  display: grid;
  grid-template-columns: repeat(var(--opsf-mini-cols, 2), minmax(0, 1fr));
  gap: 10px;
}

.opsf-mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--opsf-border);
  border-radius: 12px;
  background: var(--opsf-surface);
  overflow: hidden;
  cursor: pointer;
}

.opsf-mini-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--opsf-mini-img-h, 84px);
  max-height: var(--opsf-mini-img-h, 84px);
  padding: 6px 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-size: 1.25rem;
  overflow: hidden;
}

.opsf-mini-card__photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(var(--opsf-mini-img-h, 84px) - 14px);
  object-fit: contain;
  object-position: center;
}

.opsf-mini-card__body { padding: 8px; }
.opsf-mini-card__name {
  margin: 0 0 4px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
}
.opsf-mini-card__price {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  color: var(--opsf-brand);
}

.opsf-section-title {
  margin: 0 0 10px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--opsf-muted);
  text-transform: uppercase;
}

.opsf-options { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.opsf-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid var(--opsf-border);
  border-radius: 10px;
  background: var(--opsf-surface);
  cursor: pointer;
}
.opsf-option.selected { border-color: var(--opsf-brand); background: #eff6ff; }

.opsf-picker {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.opsf-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}

.opsf-picker__sheet {
  position: relative;
  width: min(100%, 480px);
  max-height: min(85vh, 640px);
  overflow: auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: var(--opsf-bg);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, .18);
}

.opsf-picker__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.opsf-picker__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.opsf-picker__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--opsf-surface);
  color: var(--opsf-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.opsf-picker__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.opsf-picker .opsf-option {
  width: 100%;
  text-align: left;
  font: inherit;
}

@media (min-width: 640px) {
  .opsf-picker {
    align-items: center;
    padding: 20px;
  }

  .opsf-picker__sheet {
    border-radius: 16px;
  }
}

.opsf-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}
.opsf-qty button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--opsf-border);
  background: var(--opsf-surface);
  font-size: 1.25rem;
  cursor: pointer;
}
.opsf-qty span { font-size: 1.1rem; font-weight: 700; min-width: 32px; text-align: center; }

.opsf-cart-list { margin-bottom: 8px; }

.opsf-cart-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--opsf-border);
}
.opsf-cart-item__info { min-width: 0; }
.opsf-cart-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.opsf-cart-item__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.opsf-cart-item__name {
  font-weight: 600;
  font-size: .9rem;
  margin: 0;
  line-height: 1.3;
}
.opsf-cart-item__unit {
  font-size: .78rem;
  color: var(--opsf-muted);
  margin: 0;
  white-space: nowrap;
}
.opsf-cart-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.opsf-cart-item__price {
  font-weight: 700;
  color: var(--opsf-brand);
  white-space: nowrap;
  padding-top: 2px;
}

.opsf-qty--sm button {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  border-radius: 12px;
}
.opsf-qty--sm span {
  font-size: 1rem;
  font-weight: 700;
  min-width: 28px;
}

.opsf-cart-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: #dc2626;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 6px;
  min-height: 44px;
  text-decoration: underline;
}

.opsf-checkout-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.opsf-checkout-step {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--opsf-muted);
  background: var(--opsf-surface);
  border: 1px solid var(--opsf-border);
}

.opsf-checkout-step--active {
  color: var(--opsf-brand);
  border-color: var(--opsf-brand);
  background: var(--opsf-brand-soft);
}

.opsf-checkout-review__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.opsf-checkout-review__hint {
  margin: 0 0 14px;
  font-size: .85rem;
  color: var(--opsf-muted);
}

.opsf-checkout-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 12;
  margin: 12px -10px 0;
  padding: 12px 10px calc(8px + var(--opsf-safe-b));
  background: linear-gradient(180deg, rgba(241, 245, 249, 0) 0%, var(--opsf-bg) 24%, var(--opsf-bg) 100%);
  border-top: 1px solid var(--opsf-border);
}

.opsf-checkout-review-extra {
  padding-bottom: 8px;
}

.opsf-checkout-review-extra .opsf-upsell {
  margin-top: 8px;
  padding-top: 12px;
}

.opsf-summary--compact {
  margin-top: 0;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.opsf-shop-more-btn { margin-top: 12px; }

.opsf-checkout-order-summary {
  background: var(--opsf-surface);
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius);
  padding: 14px;
  margin-bottom: 14px;
}

.opsf-checkout-order-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.opsf-link-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--opsf-brand);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.opsf-btn--edit {
  flex-shrink: 0;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #ca8a04;
  border-radius: var(--opsf-radius-sm);
  background: #facc15;
  color: #1e293b;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(202, 138, 4, .25);
}

.opsf-btn--edit:active {
  background: #fde047;
}

.opsf-checkout-order-lines {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.opsf-checkout-order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--opsf-border);
  font-size: .85rem;
}

.opsf-checkout-order-lines li:last-child { border-bottom: 0; }

.opsf-checkout-order-lines__name {
  flex: 1;
  min-width: 0;
}

.opsf-checkout-order-lines__price {
  font-weight: 700;
  color: var(--opsf-brand);
  white-space: nowrap;
}

.opsf-checkout-pay-note {
  margin: 8px 0 0;
  font-size: .8rem;
  color: var(--opsf-muted);
  text-align: right;
}

.opsf-form { display: flex; flex-direction: column; gap: 12px; }
.opsf-field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 4px; color: var(--opsf-muted); }
.opsf-field input,
.opsf-field textarea,
.opsf-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--opsf-border);
  border-radius: 10px;
  font-size: 1rem;
  background: var(--opsf-surface);
}
.opsf-field textarea { min-height: 80px; resize: vertical; }

.opsf-summary {
  background: var(--opsf-surface);
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius);
  padding: 14px;
  margin-top: 16px;
}
.opsf-summary__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: .9rem;
}
.opsf-summary__total {
  font-size: 1.1rem;
  font-weight: 800;
  border-top: 1px solid var(--opsf-border);
  padding-top: 10px;
  margin-top: 4px;
}

.opsf-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--opsf-muted);
}

.opsf-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: opsf-shimmer 1.2s infinite;
  border-radius: 8px;
  min-height: 120px;
}
@keyframes opsf-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.opsf-toast {
  position: fixed;
  bottom: calc(var(--opsf-nav-h) + var(--opsf-safe-b) + 12px);
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 12px 16px;
  background: var(--opsf-text);
  color: #fff;
  border-radius: 10px;
  font-size: .9rem;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  text-align: center;
  line-height: 1.4;
}

.opsf-toast--success {
  background: #15803d;
}

.opsf-toast--info {
  background: #1d4ed8;
}

.opsf-status-banner {
  position: fixed;
  top: calc(var(--opsf-header-h) + 10px);
  left: 50%;
  z-index: 120;
  width: min(340px, calc(100% - 20px));
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-14px) scale(0.97);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}

.opsf-status-banner--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.opsf-status-banner__card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 14px 32px rgba(15, 23, 42, 0.12);
}

.opsf-status-banner__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin-top: 1px;
  border-radius: 999px;
  background: #f1f5f9 center / 18px 18px no-repeat;
}

.opsf-status-banner--ready .opsf-status-banner__icon {
  background-color: #dcfce7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.opsf-status-banner--active .opsf-status-banner__icon {
  background-color: #dbeafe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.opsf-status-banner--pending .opsf-status-banner__icon {
  background-color: #fef3c7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v4l2 2'/%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E");
}

.opsf-status-banner--done .opsf-status-banner__icon {
  background-color: #dcfce7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.opsf-status-banner--cancel .opsf-status-banner__icon {
  background-color: #fee2e2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
}

.opsf-status-banner__body {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.opsf-status-banner__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.opsf-status-banner__chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.35;
  text-transform: none;
}

.opsf-status-banner--ready .opsf-status-banner__chip,
.opsf-status-banner--done .opsf-status-banner__chip {
  background: #dcfce7;
  color: #15803d;
}

.opsf-status-banner--active .opsf-status-banner__chip {
  background: #dbeafe;
  color: #1d4ed8;
}

.opsf-status-banner--pending .opsf-status-banner__chip {
  background: #fef3c7;
  color: #b45309;
}

.opsf-status-banner--cancel .opsf-status-banner__chip {
  background: #fee2e2;
  color: #b91c1c;
}

.opsf-status-banner__ref {
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
}

.opsf-status-banner__change {
  margin: 0;
  font-size: .8rem;
  line-height: 1.35;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opsf-status-banner__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin: -2px -2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.opsf-status-banner__close:hover,
.opsf-status-banner__close:focus-visible {
  background: #f1f5f9;
  color: #475569;
  outline: none;
}

.opsf-status-banner--ready .opsf-status-banner__card {
  border-color: rgba(22, 163, 74, 0.18);
  box-shadow:
    0 4px 6px rgba(22, 163, 74, 0.06),
    0 14px 32px rgba(22, 163, 74, 0.14);
}

.opsf-status-banner--active .opsf-status-banner__card {
  border-color: rgba(37, 99, 235, 0.16);
}

@media (max-width: 380px) {
  .opsf-status-banner__change {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.opsf-offline {
  position: fixed;
  top: var(--opsf-header-h);
  left: 0;
  right: 0;
  padding: 8px;
  text-align: center;
  background: #fef3c7;
  color: #92400e;
  font-size: .8rem;
  z-index: 60;
}

.opsf-table-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 8px 10px;
  border-radius: var(--opsf-radius-sm);
  margin-bottom: 10px;
  font-size: .8rem;
  font-weight: 600;
}

.opsf-table-banner__icon { font-size: 1rem; }

.opsf-room-card {
  background: var(--opsf-surface);
  border: 1px solid var(--opsf-border);
  border-radius: var(--opsf-radius);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}
.opsf-room-card h3 { margin: 0 0 6px; font-size: 1rem; }
.opsf-room-card p { margin: 0; font-size: .85rem; color: var(--opsf-muted); }

.opsf-success-icon {
  width: 56px;
  height: 56px;
  margin: 12px auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--opsf-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.opsf-ref-number {
  font-size: 1.15rem;
  letter-spacing: .04em;
  color: var(--opsf-brand);
  font-weight: 800;
}

.opsf-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--opsf-border);
  border-top-color: var(--opsf-brand);
  border-radius: 50%;
  animation: opsf-spin .7s linear infinite;
  margin: 24px auto;
}

.opsf-home-cats-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 20px 16px;
  text-align: center;
}

.opsf-home-cats-status .opsf-spinner {
  margin: 0 auto;
}

.opsf-home-cats-status--error .opsf-muted {
  color: var(--opsf-danger, #b91c1c);
}

.opsf-load-msg {
  text-align: center;
  margin: 0 0 16px;
  font-size: .9rem;
}

.opsf-search-cat-go {
  margin: 12px 0 8px;
}

@keyframes opsf-spin { to { transform: rotate(360deg); } }

/* Native-style app update dialog (theme deploy) */
.opsf-app-update {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px calc(var(--opsf-nav-h) + var(--opsf-safe-b) + 12px);
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.opsf-app-update--show {
  opacity: 1;
  pointer-events: auto;
}

.opsf-app-update__card {
  position: relative;
  width: min(100%, 360px);
  padding: 24px 20px 18px;
  background: var(--opsf-surface);
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(15, 23, 42, .32), 0 0 0 1px rgba(15, 23, 42, .06);
  transform: scale(.94) translateY(8px);
  transition: transform .28s cubic-bezier(.2, .9, .3, 1);
  text-align: center;
}

.opsf-app-update--show .opsf-app-update__card {
  transform: scale(1) translateY(0);
}

.opsf-app-update__icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 8px;
}

.opsf-app-update__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.opsf-app-update__body {
  margin: 0 0 16px;
  font-size: .9rem;
  color: var(--opsf-muted);
  line-height: 1.45;
}

.opsf-app-update__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 480px) {
  .opsf-app-update {
    align-items: flex-end;
    padding: 0 0 calc(var(--opsf-nav-h) + var(--opsf-safe-b));
  }

  .opsf-app-update__card {
    width: 100%;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .opsf-app-update--show .opsf-app-update__card {
    transform: translateY(0);
  }
}

.opsf-pwa-install {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px calc(var(--opsf-nav-h) + var(--opsf-safe-b) + 12px);
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

.opsf-pwa-install--show {
  opacity: 1;
  pointer-events: auto;
}

.opsf-pwa-install__card {
  position: relative;
  width: min(100%, 360px);
  padding: 22px 20px 18px;
  background: var(--opsf-surface);
  border-radius: 20px;
  box-shadow: 0 20px 56px rgba(15, 23, 42, .32), 0 0 0 1px rgba(15, 23, 42, .06);
  transform: scale(.94) translateY(8px);
  transition: transform .28s cubic-bezier(.2, .9, .3, 1);
  text-align: center;
}

.opsf-pwa-install--show .opsf-pwa-install__card {
  transform: scale(1) translateY(0);
}

@media (max-width: 480px) {
  .opsf-pwa-install {
    align-items: flex-end;
    padding: 0 0 calc(var(--opsf-nav-h) + var(--opsf-safe-b));
  }

  .opsf-pwa-install__card {
    width: 100%;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .opsf-pwa-install--show .opsf-pwa-install__card {
    transform: translateY(0);
  }
}

.opsf-pwa-native__icon-wrap {
  margin: 0 auto 10px;
  width: 72px;
  height: 72px;
}

.opsf-pwa-native__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(91, 33, 182, .3);
  background: #5B21B6;
}

.opsf-pwa-native__name {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--opsf-text);
}

.opsf-pwa-install__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--opsf-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.opsf-pwa-install__lead {
  margin: 0 0 8px;
  font-size: .84rem;
  color: var(--opsf-muted);
  line-height: 1.4;
  text-align: center;
}

.opsf-pwa-install__guide-steps--compact {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--opsf-muted);
  text-align: left;
}

.opsf-pwa-install__guide-steps--compact li + li {
  margin-top: 4px;
}

.opsf-pwa-install__guide-steps strong {
  color: var(--opsf-text);
}

.opsf-pwa-install__actions {
  display: grid;
  gap: 6px;
}

.opsf-pwa-install__card--ios {
  border-radius: 24px;
  padding: 26px 22px 20px;
}

.opsf-pwa-install__card--ios .opsf-pwa-native__icon-wrap {
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
}

.opsf-pwa-install__card--ios .opsf-pwa-native__icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.opsf-pwa-install__note {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--opsf-muted);
}

.opsf-pwa-install__free {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #166534;
  background: #ecfdf5;
  border-radius: 10px;
  text-align: center;
}

.opsf-pwa-native__caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--opsf-muted);
  text-align: center;
}

.opsf-pwa-install__step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.opsf-pwa-install__step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--opsf-brand, #2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.opsf-pwa-install__arrow {
  position: fixed;
  left: 50%;
  bottom: 8px;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-right: 3px solid var(--opsf-brand, #2563eb);
  border-bottom: 3px solid var(--opsf-brand, #2563eb);
  transform: rotate(45deg);
  animation: opsf-pwa-bounce 1.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1300;
}

@keyframes opsf-pwa-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 0.6; }
}

.opsf-pwa-share-icon {
  display: inline-block;
  font-size: 1.1em;
}

.opsf-ios-install-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.94);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.opsf-ios-install-bar__btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.opsf-ios-install-bar__label {
  display: block;
  font-weight: 700;
  font-size: 15px;
}

.opsf-ios-install-bar__hint {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.opsf-ios-install-bar__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  opacity: 0.8;
}

html.opsf-standalone .opsf-ios-install-bar {
  display: none;
}
