* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body { background: var(--color-bg-page); color: var(--color-text-primary); font-family: "Lora", Georgia, serif; font-size: 14px; }
:target,
:focus { scroll-margin-top: 88px; scroll-margin-bottom: 88px; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-140%);
  background: var(--color-toast-bg, var(--color-ink));
  color: var(--color-toast-text, #fff);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  box-shadow: var(--shadow-raised);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); outline-color: #fff; }
a,
button,
input,
select,
textarea,
[role="button"],
[tabindex]:not([tabindex="-1"]) {
  min-width: 24px;
  min-height: 24px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(41, 82, 204, .2);
}
#main-content:focus { outline: none; }
.font-display, h1, h2, h3, h4, .btn, .label, .sidebar a, .table th { font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6 { color: var(--color-text-strong, var(--color-text-primary)); }
strong, b { color: inherit; }
.hero-market,
.hero-market h1, .hero-market h2, .hero-market h3, .hero-market h4,
.auth-brand,
.auth-brand h1, .auth-brand h2, .auth-brand h3, .auth-brand h4,
.text-white h1, .text-white h2, .text-white h3, .text-white h4,
.\!text-white h1, .\!text-white h2, .\!text-white h3, .\!text-white h4 {
  color: #ffffff;
}
.shell { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.material-symbols-outlined { font-size: 20px; line-height: 1; vertical-align: middle; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 700; border: 1px solid transparent; transition: .15s ease; white-space: nowrap; box-shadow: var(--shadow-fusion-soft); cursor: pointer; }
.btn:disabled { opacity: .68; cursor: not-allowed; }
.btn-primary { background: var(--color-primary-btn, var(--color-primary)); color: #ffffff !important; }
.btn-primary:hover { filter: brightness(1.06); color: #ffffff !important; }
.btn-secondary { background: var(--color-cream-deep); border-color: var(--color-border); color: var(--color-text-primary); }
.btn-secondary:hover { background: var(--color-surface-muted); color: var(--color-text-strong, var(--color-text-primary)); }
.btn-ghost { background: var(--color-cream-soft); border-color: var(--color-border); color: var(--color-text-primary); }
.btn-ghost:hover { background: var(--color-surface-soft); border-color: var(--color-border-hover, var(--color-border)); color: var(--color-text-strong, var(--color-text-primary)); }
.btn-danger { background: var(--color-danger-btn, var(--color-danger)); color: #ffffff !important; }
.btn-danger:hover { filter: brightness(1.06); color: #ffffff !important; }
/* Fix specificity: Tailwind text-* on .btn-ghost was overridden by app.css.
   These explicit compound selectors restore the intended colors. */
.btn.text-success, .btn-ghost.text-success, .btn.text-success:hover, .btn-ghost.text-success:hover { color: var(--color-success) !important; }
.btn.text-danger,  .btn-ghost.text-danger,  .btn.text-danger:hover,  .btn-ghost.text-danger:hover  { color: var(--color-danger)  !important; }
.btn.text-primary, .btn-ghost.text-primary, .btn.text-primary:hover, .btn-ghost.text-primary:hover { color: var(--color-primary) !important; }

/* Loading/disabled state feedback for data-api-action buttons */
.btn[data-loading],
.wishlist-btn[data-loading] { opacity: .65; cursor: wait; pointer-events: none; }
.btn[data-loading]::after,
.wishlist-btn[data-loading]::after {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

/* SUSPENDED status badge */
.status.SUSPENDED { background: var(--status-warning-bg, #FFF4CE); color: var(--status-warning-text, #8A5A00); }
.field { width: 100%; border: 1px solid var(--color-border); border-radius: 10px; min-height: 42px; padding: 8px 11px; background: var(--color-surface-input, var(--color-cream-soft)); color: var(--color-text-primary); outline: none; box-shadow: var(--shadow-pressed); }
input::placeholder,
textarea::placeholder,
.field::placeholder { color: var(--color-text-muted) !important; opacity: 0.78 !important; }
.field:focus { border-color: var(--color-primary); background: var(--color-surface-input-focus, var(--color-cream-soft)); color: var(--color-text-strong, var(--color-text-primary)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 22%, transparent); }
.field:disabled,
input:disabled,
select:disabled,
textarea:disabled { opacity: 0.65; color: var(--color-text-muted); cursor: not-allowed; }
select option,
select.field option { background: var(--color-surface-elevated, var(--color-cream-soft)); color: var(--color-text-primary); }
[data-qty-stepper],
[data-qty-stepper] button,
[data-qty-stepper] input,
input[type="number"]:not(.field) {
  color: var(--color-text-primary);
  background-color: transparent;
}
.field.has-icon-left { padding-left: 42px !important; }
.field.has-icon-right { padding-right: 42px !important; }
.label { display: block; font-size: 12px; font-weight: 800; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0; margin-bottom: 6px; }
.label.text-\[10px\] { font-size: 10px; }
.panel { background: var(--color-cream-soft); border: 1px solid var(--color-panel-border, var(--color-border)); border-radius: 16px; box-shadow: var(--shadow-fusion-soft); color: var(--color-text-primary); }
.panel-hover { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.panel-hover:hover { border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border)); box-shadow: var(--shadow-raised); transform: translateY(-1px); }
.metric { background: var(--color-cream-soft); color: var(--color-text-primary); border: 1px solid var(--color-border); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; box-shadow: var(--shadow-fusion-soft); }
.metric::after { content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: color-mix(in srgb, var(--color-primary) 10%, transparent); pointer-events: none; }
.metric.\!bg-primary::after { background: rgba(255, 255, 255, 0.12); }
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0; padding: 12px; border-bottom: 1px solid var(--color-border); background: var(--color-surface-soft); position: sticky; top: 0; }
.table td { padding: 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; min-height: 48px; color: var(--color-text-primary); }
.table tbody tr:nth-child(even) { background: var(--color-table-stripe, rgba(239,231,216,.45)); }
.status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--color-surface-muted); color: var(--color-text-primary); }
.status.APPROVED,.status.ACTIVE,.status.VERIFIED,.status.PAYMENT_VERIFIED,.status.DELIVERED,.status.COMPLETED,.status.PAID,.status.QUOTED,.status.ACCEPTED,.status.RESOLVED,.status.R1 { background: var(--status-success-bg, var(--color-success-soft)); color: var(--status-success-text, #137333); }
.status.PENDING,.status.PENDING_APPROVAL,.status.SUBMITTED,.status.REQUESTED,.status.PAYMENT_SUBMITTED,.status.PLACED,.status.PACKED,.status.SHIPPED,.status.CHECKING_PERIOD,.status.OPEN,.status.SUSPENDED,.status.R2 { background: var(--status-warning-bg, #FFF4CE); color: var(--status-warning-text, #8A5A00); }
.status.REJECTED,.status.CANCELLED,.status.FORBIDDEN,.status.R4 { background: var(--status-danger-bg, #FCE8E6); color: var(--status-danger-text, #B3261E); }
.status.DRAFT,.status.HIDDEN,.status.NOT_SUBMITTED,.status.CLOSED,.status.R3 { background: var(--status-neutral-bg, #EEF1F5); color: var(--status-neutral-text, #485465); }
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product-card { overflow: hidden; }
.wishlist-btn { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--color-wishlist-bg, rgba(255,255,255,.92)); color: var(--color-danger); border: 1px solid var(--color-border); box-shadow: var(--shadow-fusion-soft); transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease; }
.wishlist-btn:hover { transform: translateY(-1px) scale(1.03); }
.wishlist-btn.is-saved { background: var(--color-primary-btn, var(--color-primary)); border-color: var(--color-primary-btn, var(--color-primary)); color: #fff; }
.wishlist-btn.is-saved .material-symbols-outlined,
.wishlist-action.is-saved .material-symbols-outlined { font-variation-settings: 'FILL' 1; }
.wishlist-action.is-saved { background: var(--color-primary-btn, var(--color-primary)); border-color: var(--color-primary-btn, var(--color-primary)); color: #fff !important; }
.wishlist-action.is-saved:hover { filter: brightness(.94); }
.product-media { aspect-ratio: 1 / 1; background: var(--color-surface-soft); display: grid; place-items: center; color: var(--color-text-muted); font-weight: 800; }
.toast-container { position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; min-width: 260px; max-width: calc(100vw - 36px); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow-raised); background: var(--color-toast-bg, var(--color-ink)); color: var(--color-toast-text, #ffffff); border: 1px solid var(--color-border); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; animation: toast-in .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.cart-badge { position: absolute; top: -6px; right: -6px; background: var(--color-danger-btn, var(--color-danger)); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.mini-cart-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; z-index: 60; box-shadow: var(--shadow-raised); }
.mini-cart-row { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--color-border); }
.mini-cart-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-top: 1px solid var(--color-border); }
.modal-overlay { position: fixed; inset: 0; z-index: 90; background: var(--color-modal-backdrop, rgba(28,26,23,.46)); display: grid; place-items: center; padding: 18px; }
.modal-card { position: relative; width: min(440px, 100%); max-height: min(720px, calc(100vh - 32px)); overflow-y: auto; background: var(--color-cream-soft); }
.modal-close { position: absolute; right: 14px; top: 10px; font-size: 28px; line-height: 1; color: var(--color-text-muted); }
[x-cloak] { display: none !important; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--color-text-primary); text-decoration: none; transition: background .15s, color .15s; margin-bottom: 2px; }
.sidebar a:hover { background: var(--color-surface-soft); color: var(--color-primary); }
.sidebar a.active { background: color-mix(in srgb, var(--color-primary) 12%, transparent); color: var(--color-primary); font-weight: 700; }
.sidebar a .material-symbols-outlined { font-size: 20px; flex-shrink: 0; }

/* ─── Dashboard Sidebar & Grid ───────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}
#sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  transform: none !important;
}
#sidebar-overlay {
  display: none;
}
#sidebar-close {
  display: none !important;
}
@media (max-width: 768px) {
  #sidebar-close {
    display: inline-flex !important;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  #sidebar {
    position: fixed !important;
    left: 0;
    top: 0;
    height: 100% !important;
    max-height: 100vh !important;
    width: 260px;
    z-index: 50;
    transform: translateX(-100%) !important;
    transition: transform 0.2s ease;
  }
  #sidebar:not(.-translate-x-full) {
    transform: translateX(0) !important;
  }
  #sidebar.-translate-x-full {
    transform: translateX(-100%) !important;
  }
  #sidebar-overlay:not(.hidden) {
    display: block !important;
  }
  #sidebar-overlay.hidden {
    display: none !important;
  }
}
.trust-bar { background: var(--color-surface-high); border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 12px; }
.mobile-bottom-nav { display: none; }
.hero-market { min-height: 380px; background: linear-gradient(135deg, #12151f 0%, #1c2b5e 52%, #2952CC 100%); background-size: cover; background-position: center; border-color: rgba(255, 255, 255, 0.12) !important; box-shadow: 0 16px 36px rgba(9, 13, 24, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important; }
.hero-market .btn-hero-secondary { background: rgba(255, 255, 255, 0.96) !important; color: #1C1A17 !important; border-color: rgba(255, 255, 255, 0.3) !important; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important; }
.hero-market .btn-hero-secondary:hover { background: #ffffff !important; color: #0F172A !important; transform: translateY(-1px); }
.icon-soft-success { background: color-mix(in srgb, var(--color-success) 15%, transparent); color: var(--color-success); }
.icon-soft-blue { background: color-mix(in srgb, var(--color-primary) 15%, transparent); color: var(--color-primary); }
.upload-card { border: 2px dashed var(--color-border); border-radius: 12px; background: var(--color-surface-container-low); padding: 24px; text-align: center; color: var(--color-text-primary); }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper .btn { width: 100%; }
.auth-body { background: radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 32%), radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--color-text-muted) 12%, transparent), transparent 30%), var(--color-bg-page); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(980px, 100%); display: grid; grid-template-columns: .95fr 1.05fr; gap: 18px; padding: 18px; border-radius: 28px; background: var(--color-cream-deep); box-shadow: var(--shadow-fusion); border: 1px solid var(--color-panel-border, var(--color-border)); }
.auth-brand { min-height: 560px; border-radius: 22px; padding: 34px; color: white; background: linear-gradient(145deg, #12151f 0%, #1c2b5e 58%, #2952CC 100%); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); display: flex; flex-direction: column; justify-content: space-between; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-weight: 800; font-size: 20px; color: white; }
.auth-brand h1 { font-size: 48px; line-height: 1; font-weight: 800; max-width: 460px; }
.auth-brand p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 430px; }
.auth-form-panel { border-radius: 22px; padding: 42px; background: var(--color-cream-soft); box-shadow: var(--shadow-pressed); display: grid; align-content: center; }
.auth-flow h2 { font-family: "Space Grotesk", sans-serif; font-size: 34px; line-height: 1.05; font-weight: 800; color: var(--color-ink); margin-top: 8px; }
.auth-kicker { font-family: "Space Grotesk", sans-serif; text-transform: uppercase; letter-spacing: 0; font-weight: 800; color: var(--color-blue); font-size: 12px; }
.auth-copy, .auth-small, .auth-resend { color: var(--color-ink-muted); line-height: 1.6; }
.auth-copy { margin: 12px 0 28px; }
.auth-small { margin-top: 18px; font-size: 12px; }
.auth-input { min-height: 50px; font-family: "Space Grotesk", sans-serif; }
.auth-submit { min-height: 50px; margin-top: 8px; }
.otp-field { min-height: 58px; font-family: "Space Grotesk", sans-serif; font-size: 28px; text-align: center; letter-spacing: .28em; }
.field-error { display: block; min-height: 18px; margin-top: 6px; color: var(--color-danger); font-family: "Space Grotesk", sans-serif; font-size: 12px; font-weight: 700; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
.auth-resend { margin-top: 18px; display: grid; gap: 10px; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Header search ───────────────────────────────────────────── */
.header-search-form {
  display: flex;
  flex: 1;
  max-width: 38rem;
  position: relative;
  align-items: center;
}
@media (max-width: 768px) {
  .header-search-form { display: none !important; }
}
.header-search-form .field {
  width: 100%;
  border-radius: 9999px !important;
  background: var(--color-surface-container-low) !important;
  padding-left: 18px;
  padding-right: 44px;
  min-height: 42px;
  font-size: 14px;
  border: 1px solid var(--color-border);
}
.header-search-form .field:focus {
  border-color: var(--color-primary);
  background: var(--color-surface-input-focus, #ffffff) !important;
}
.header-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: 9999px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, transform .1s ease;
  line-height: 1;
}
.header-search-btn:hover {
  color: var(--color-primary);
  background: rgba(41, 82, 204, .08);
}
.header-search-btn:active {
  transform: translateY(-50%) scale(.92);
}
.header-search-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.header-search-btn .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

/* ─── Mobile search bar ───────────────────────────────────────── */
.mobile-search-bar { display: none; }

/* ─── Mobile filter toggle ────────────────────────────────────── */
.mobile-filter-toggle { display: none; }
.mobile-filter-content { display: block; }  /* visible by default on desktop */

/* ─── Responsive table → card layout ──────────────────────────── */
.table-card-mobile { display: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Medium breakpoint: auth + general grids ─────────────────── */
@media (max-width: 860px) {
  .auth-card { display: block; padding: 14px; border-radius: 24px; }
  .auth-brand { min-height: 280px; padding: 28px; border-radius: 20px; }
  .auth-brand h1 { font-size: 36px; }
  .auth-brand p { font-size: 15px; }
  .auth-form-panel { margin-top: 14px; padding: 28px; border-radius: 20px; }
  .auth-flow h2 { font-size: 30px; }
}

/* ─── Primary mobile breakpoint ───────────────────────────────── */
@media (max-width: 760px) {
  .shell { padding: 0 16px; }
  body { padding-bottom: 78px; }

  /* ── Product grid ── */
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  /* ── Tables: keep horizontal scroll as fallback ── */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 680px; }

  /* ── Auto-converting tables to cards on mobile ── */
  table.table:not(.no-card-mobile),
  table.table:not(.no-card-mobile) thead,
  table.table:not(.no-card-mobile) tbody,
  table.table:not(.no-card-mobile) tr,
  table.table:not(.no-card-mobile) td {
    display: block;
    width: 100%;
  }
  table.table:not(.no-card-mobile) thead {
    display: none;
  }
  table.table:not(.no-card-mobile) tr {
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md, 14px);
    background: var(--color-surface-container-lowest);
    padding: 12px;
  }
  table.table:not(.no-card-mobile) td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-table-mobile-divider, rgba(0,0,0,0.05));
    padding: 8px 0;
    text-align: right;
    font-size: 13px;
    min-height: 38px;
  }
  table.table:not(.no-card-mobile) td:last-child {
    border-bottom: none;
  }
  table.table:not(.no-card-mobile) td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: left;
    margin-right: 12px;
  }

  /* ── Responsive table cards: replaces tables on mobile where enabled ── */
  .table-card-mobile { display: block; }
  .table-card-mobile .mobile-card {
    background: var(--color-cream-soft);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-fusion-soft);
  }
  .table-card-mobile .mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0;
    gap: 8px;
  }
  .table-card-mobile .mobile-card-label {
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-text-muted);
    text-transform: uppercase;
    flex-shrink: 0;
    min-width: 70px;
  }
  .table-card-mobile .mobile-card-value {
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    word-break: break-word;
  }
  .table-card-mobile .mobile-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
  }
  .table-card-mobile .mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
  }
  .table-card-mobile + .table-wrap { display: none; }

  /* ── Mobile bottom nav ── */
  .mobile-bottom-nav { display: block; position: fixed; left: 0; right: 0; bottom: 0; width: 100%; z-index: 60; background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -8px 24px rgba(0,0,0,.16); }
  .mobile-bottom-nav .inner { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 8px; }
  .mobile-bottom-nav .inner.buyer { grid-template-columns: repeat(4, 1fr); }
  .mobile-bottom-nav.public .inner { grid-template-columns: repeat(4, 1fr); }
  .mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--color-text-muted); font-size: 11px; font-weight: 800; padding: 6px 0; border-radius: 12px; }
  .mobile-bottom-nav a.active { background: color-mix(in srgb, var(--color-primary) 14%, transparent); color: var(--color-primary); }

  /* ── Toast above bottom nav ── */
  .toast-container { bottom: 90px; right: 16px; left: 16px; align-items: stretch; }
  .toast { max-width: none; min-width: 0; }

  /* ── Hero ── */
  .hero-market { min-height: 260px; padding: 20px !important; }
  .hero-market h1 { font-size: 26px !important; line-height: 1.15 !important; max-width: 100%; overflow-wrap: break-word; }
  .hero-market p { font-size: 14px !important; line-height: 1.45; }

  /* ── Mini cart: full-width overlay ── */
  .mini-cart-panel { position: fixed; left: 16px; right: 16px; top: auto; bottom: 86px; width: auto; border-radius: 16px; }

  /* ── Mobile search bar ── */
  .mobile-search-bar {
    display: block;
    padding: 8px 16px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }
  .mobile-search-bar form { position: relative; display: flex; align-items: center; }
  .mobile-search-bar input {
    width: 100%;
    min-height: 40px;
    padding: 8px 44px 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    background: var(--color-surface-container-low);
    color: var(--color-text-primary);
    font-size: 14px;
    outline: none;
  }
  .mobile-search-bar input:focus { border-color: var(--color-primary); background: var(--color-surface-input-focus); }
  .mobile-search-bar button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    cursor: pointer;
    line-height: 1;
  }
  .mobile-search-bar button:hover {
    color: var(--color-primary);
  }

  /* ── Mobile filter toggle ── */
  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-cream-soft);
    font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-primary);
    cursor: pointer;
    margin-bottom: 12px;
    box-shadow: var(--shadow-fusion-soft);
  }
  .mobile-filter-content { display: none; }
  .mobile-filter-content.filter-open { display: block; }

  /* ── Category nav: horizontal scroll on mobile ── */
  .mobile-category-nav {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 4px;
    padding: 8px 16px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }
  .mobile-category-nav::-webkit-scrollbar { display: none; }
  .mobile-category-nav a {
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    background: var(--color-surface-container-low);
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    text-decoration: none;
    transition: all .15s ease;
  }
  .mobile-category-nav a:hover,
  .mobile-category-nav a.active {
    background: var(--color-primary-btn, var(--color-primary));
    color: white;
    border-color: var(--color-primary-btn, var(--color-primary));
  }

  /* ── Stepper: compact on mobile ── */
  .stepper { gap: 4px; }
  .stepper .btn { padding: 0 8px; font-size: 12px; min-height: 36px; gap: 4px; }
  .stepper .btn .material-symbols-outlined { font-size: 16px; }

  /* ── Auth (stacked) ── */
  .auth-shell { padding: 14px; place-items: stretch; }
  .auth-card { display: block; padding: 12px; border-radius: 22px; }
  .auth-brand { min-height: 200px; padding: 22px; border-radius: 18px; }
  .auth-brand h1 { font-size: 28px; }
  .auth-brand p { font-size: 13px; }
  .auth-form-panel { margin-top: 12px; padding: 20px; border-radius: 18px; }
  .auth-flow h2 { font-size: 24px; }

  /* ── Product card mobile tweaks ── */
  .product-card .p-3 { padding: 10px; }
  .product-card .p-3 .min-h-\[184px\] { min-height: auto; }

  /* ── Upload card: tighter on mobile ── */
  .upload-card { padding: 16px; }

  /* ── Metric cards: 2-col on mobile ── */
  .metric { padding: 14px; }
  .metric .text-4xl,
  .metric .text-3xl { font-size: 1.5rem; }

  /* ── Hide desktop-only elements ── */
  .hide-mobile { display: none !important; }
}

/* ─── Extra small screens (≤ 380px) ───────────────────────────── */
@media (max-width: 380px) {
  .shell { padding: 0 12px; }
  .hero-market h1 { font-size: 22px !important; }
  .grid-products { gap: 8px; }
  .product-card .p-3 { padding: 8px; }
  .product-card .font-display.text-xl { font-size: 1rem; }
  .btn { padding: 0 10px; font-size: 13px; min-height: 38px; }
  .stepper .btn { font-size: 11px; padding: 0 6px; }
  .auth-brand h1 { font-size: 24px; }
  .auth-brand { min-height: 180px; padding: 18px; }
}

@keyframes skeleton-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--color-surface-soft) 25%, var(--color-surface-muted) 50%, var(--color-surface-soft) 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
  border-radius: 8px;
}
.skeleton-text { height: 14px; border-radius: 4px; }
.skeleton-title { height: 20px; border-radius: 6px; }
.skeleton-avatar { border-radius: 50%; }
.skeleton-card { border-radius: var(--radius-md); overflow: hidden; }
.skeleton-img { width: 100%; aspect-ratio: 4 / 3; }
.product-card-skeleton { border-radius: var(--radius-md); border: 1px solid var(--color-border); overflow: hidden; background: var(--color-surface-soft); }
.product-card-skeleton .sk-img { aspect-ratio: 4 / 3; }
.product-card-skeleton .sk-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-row td { padding: 12px 16px; }
.skeleton-row .skeleton { display: block; }

img[data-lazy-src] {
  opacity: 0;
  transition: opacity .3s ease;
}
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* Brand Showcase Grid & Name Spacing */
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  min-height: 112px;
  text-align: center;
  border-radius: var(--radius-md, 12px);
  background: var(--color-cream-soft, #ffffff);
  border: 1px solid var(--color-panel-border, var(--color-border));
  box-shadow: var(--shadow-fusion-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.brand-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-primary) 42%, var(--color-border));
  box-shadow: var(--shadow-raised);
}
.brand-card-logo {
  height: 36px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.brand-card-logo img {
  height: 28px;
  max-height: 28px;
  max-width: 80%;
  object-fit: contain;
  opacity: 1 !important;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.brand-card:hover .brand-card-logo img {
  transform: scale(1.06);
}
.brand-card-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 4px;
  margin: 0;
  transition: color 0.15s ease;
}
.brand-card:hover .brand-card-name {
  color: var(--color-primary, #2952CC);
}
@media (max-width: 640px) {
  .brand-card {
    padding: 12px 8px;
    min-height: 96px;
  }
  .brand-card-logo {
    height: 30px;
    margin-bottom: 6px;
  }
  .brand-card-logo img {
    height: 22px;
    max-height: 22px;
    max-width: 84%;
  }
  .brand-card-name {
    font-size: 12px;
    letter-spacing: -0.01em;
  }
}

/* ─── Official Brand Logo Component ───────────────────────────── */
.brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  vertical-align: middle;
}
.brand-logo-xs { gap: 6px !important; }
.brand-logo-sm { gap: 9px !important; }
.brand-logo-md { gap: 12px !important; }
.brand-logo-lg { gap: 16px !important; }

.brand-logo-icon {
  flex-shrink: 0 !important;
  display: block !important;
  vertical-align: middle;
}

.brand-logo-text {
  font-family: "Space Grotesk", var(--font-display, sans-serif) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  line-height: 1.15 !important;
  display: inline-block !important;
}

/* ─── Button Sizes & Variants ──────────────────────────────────── */
.btn-sm {
  min-height: 32px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  gap: 5px !important;
  border-radius: 8px !important;
}
.btn-xs {
  min-height: 24px !important;
  padding: 0 6px !important;
  font-size: 11px !important;
  gap: 3px !important;
  border-radius: 6px !important;
}

/* ─── Color & Typography Utilities ─────────────────────────────── */
.text-ink,
.text-text-primary { color: var(--color-text-primary) !important; }
.text-text-strong { color: var(--color-text-strong, var(--color-ink)) !important; }
.text-text-muted { color: var(--color-text-muted) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger,
.\!text-danger { color: var(--color-danger) !important; }
.text-amber-800 { color: var(--color-amber-800) !important; }
.text-black { color: var(--color-text-strong, #000000) !important; }
.text-white,
.\!text-white { color: #ffffff !important; }
.text-white\/80 { color: rgba(255, 255, 255, 0.85) !important; }
.text-white\/90 { color: rgba(255, 255, 255, 0.92) !important; }
.text-whatsapp, .text-\[\#25D366\] { color: #25D366 !important; }
.bg-whatsapp-soft, .bg-\[\#25D366\]\/10 { background-color: rgba(37, 211, 102, 0.12) !important; }
.bg-transparent { background-color: transparent !important; }
.border-0 { border-width: 0 !important; }

/* Dynamic Surface & Border Bindings (overrides static tailwind.css hexes) */
.bg-white:not(.qr-surface),
.\!bg-white:not(.qr-surface) {
  background-color: var(--color-surface-card, var(--color-surface)) !important;
}
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.12) !important; }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.22) !important; }
.qr-surface { background-color: #ffffff !important; color: #000000 !important; }
.bg-bg-subtle,
.bg-cream-deep { background-color: var(--color-bg-subtle) !important; }
.bg-cream { background-color: var(--color-cream) !important; }
.bg-cream\/40 { background-color: color-mix(in srgb, var(--color-surface-soft) 65%, transparent) !important; }
.bg-surface-soft { background-color: var(--color-surface-soft) !important; }
.bg-surface-container-low,
.\!bg-surface-container-low { background-color: var(--color-surface-container-low) !important; }
.bg-amber-50 { background-color: var(--color-amber-50) !important; }
.bg-primary,
.\!bg-primary { background-color: var(--color-primary-btn, var(--color-primary)) !important; }
.bg-success { background-color: var(--color-success) !important; }
.bg-border { background-color: var(--color-border) !important; }
.bg-border\/20 { background-color: color-mix(in srgb, var(--color-border) 35%, transparent) !important; }
.bg-primary\/5 { background-color: color-mix(in srgb, var(--color-primary) 8%, transparent) !important; }
.bg-primary\/10 { background-color: color-mix(in srgb, var(--color-primary) 14%, transparent) !important; }
.bg-success\/5 { background-color: color-mix(in srgb, var(--color-success) 8%, transparent) !important; }
.bg-success\/10 { background-color: color-mix(in srgb, var(--color-success) 15%, transparent) !important; }
.bg-warning\/5 { background-color: color-mix(in srgb, var(--color-warning) 8%, transparent) !important; }
.bg-warning\/10 { background-color: color-mix(in srgb, var(--color-warning) 15%, transparent) !important; }
.bg-danger\/5 { background-color: color-mix(in srgb, var(--color-danger) 8%, transparent) !important; }
.bg-danger\/10 { background-color: color-mix(in srgb, var(--color-danger) 15%, transparent) !important; }
.bg-danger\/80 { background-color: color-mix(in srgb, var(--color-danger-btn, var(--color-danger)) 85%, transparent) !important; }

.border-border { border-color: var(--color-border) !important; }
.border-border\/40 { border-color: color-mix(in srgb, var(--color-border) 45%, transparent) !important; }
.border-border\/50 { border-color: color-mix(in srgb, var(--color-border) 55%, transparent) !important; }
.border-border\/60 { border-color: color-mix(in srgb, var(--color-border) 65%, transparent) !important; }
.divide-border > :not(:last-child) { border-color: var(--color-border) !important; }
.divide-border\/50 > :not(:last-child) { border-color: color-mix(in srgb, var(--color-border) 55%, transparent) !important; }
.border-primary,
.\!border-primary { border-color: var(--color-primary) !important; }
.border-warning { border-color: var(--color-warning) !important; }
.border-warning\/30 { border-color: color-mix(in srgb, var(--color-warning) 35%, transparent) !important; }
.border-warning\/40 { border-color: color-mix(in srgb, var(--color-warning) 45%, transparent) !important; }
.border-success\/20 { border-color: color-mix(in srgb, var(--color-success) 25%, transparent) !important; }
.border-success\/30 { border-color: color-mix(in srgb, var(--color-success) 35%, transparent) !important; }
.border-danger\/20 { border-color: color-mix(in srgb, var(--color-danger) 25%, transparent) !important; }
.border-danger\/30 { border-color: color-mix(in srgb, var(--color-danger) 35%, transparent) !important; }
.border-amber-200 { border-color: var(--color-amber-200) !important; }
.border-white { border-color: #ffffff !important; }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.14) !important; }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.32) !important; }

.tracking-tight { letter-spacing: -0.02em !important; }
.leading-snug { line-height: 1.375 !important; }
.leading-normal { line-height: 1.5 !important; }

.hover\:opacity-90:hover { opacity: 0.9 !important; }
.hover\:text-text-strong:hover { color: var(--color-text-strong, var(--color-ink)) !important; }
.hover\:text-primary:hover { color: var(--color-primary) !important; }
.hover\:text-white:hover,
.hover\:\!text-white:hover { color: #ffffff !important; }
.hover\:border-primary:hover { border-color: var(--color-primary) !important; }
.hover\:\!bg-primary:hover { background-color: var(--color-primary-btn, var(--color-primary)) !important; }
.hover\:bg-danger:hover { background-color: var(--color-danger-btn, var(--color-danger)) !important; }
.hover\:bg-danger\/5:hover { background-color: color-mix(in srgb, var(--color-danger) 8%, transparent) !important; }
.hover\:bg-danger\/10:hover { background-color: color-mix(in srgb, var(--color-danger) 15%, transparent) !important; }
.hover\:bg-success\/10:hover { background-color: color-mix(in srgb, var(--color-success) 15%, transparent) !important; }
.hover\:bg-cream:hover { background-color: var(--color-surface-soft) !important; }
.hover\:bg-surface-soft:hover { background-color: var(--color-surface-soft) !important; }
.hover\:bg-surface-container-low:hover { background-color: var(--color-surface-container-low) !important; }
.hover\:bg-cream-soft\/50:hover { background-color: color-mix(in srgb, var(--color-cream-soft) 65%, transparent) !important; }

/* ─── Dark Mode Brand SVG & Logo Adaptations ───────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-card-logo img[src$=".svg"],
  :root:not([data-theme="light"]) img[src*="/assets/images/brands/"][src$=".svg"] {
    filter: invert(1) hue-rotate(180deg) brightness(0.94);
  }
  :root:not([data-theme="light"]) .brand-logo-adaptive .brand-logo-icon {
    filter: invert(1);
  }
}
:root[data-theme="dark"] .brand-card-logo img[src$=".svg"],
:root[data-theme="dark"] img[src*="/assets/images/brands/"][src$=".svg"],
.dark .brand-card-logo img[src$=".svg"],
.dark img[src*="/assets/images/brands/"][src$=".svg"] {
  filter: invert(1) hue-rotate(180deg) brightness(0.94);
}
:root[data-theme="dark"] .brand-logo-adaptive .brand-logo-icon,
.dark .brand-logo-adaptive .brand-logo-icon {
  filter: invert(1);
}

/* ─── Theme Toggle Button ──────────────────────────────────────── */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-cream-soft);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-fusion-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.theme-toggle-btn:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-border-hover, var(--color-border));
  color: var(--color-primary);
}
.theme-toggle-btn .icon-dark { display: none; }
.theme-toggle-btn .icon-light { display: inline-block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-btn .icon-dark { display: inline-block; }
  :root:not([data-theme="light"]) .theme-toggle-btn .icon-light { display: none; }
}
:root[data-theme="dark"] .theme-toggle-btn .icon-dark,
.dark .theme-toggle-btn .icon-dark { display: inline-block; }
:root[data-theme="dark"] .theme-toggle-btn .icon-light,
.dark .theme-toggle-btn .icon-light { display: none; }

/* ─── Fractional / Decimal Spacing Utilities ───────────────────── */
.gap-0\.5 { gap: 0.125rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3\.5 { gap: 0.875rem !important; }

.mt-0\.5 { margin-top: 0.125rem !important; }
.mt-1\.5 { margin-top: 0.375rem !important; }
.mt-2\.5 { margin-top: 0.625rem !important; }
.mt-3\.5 { margin-top: 0.875rem !important; }

.mb-0\.5 { margin-bottom: 0.125rem !important; }
.mb-1\.5 { margin-bottom: 0.375rem !important; }
.mb-2\.5 { margin-bottom: 0.625rem !important; }
.mb-3\.5 { margin-bottom: 0.875rem !important; }

.p-0\.5 { padding: 0.125rem !important; }
.p-1\.5 { padding: 0.375rem !important; }
.p-2\.5 { padding: 0.625rem !important; }
.p-3\.5 { padding: 0.875rem !important; }

.px-0\.5 { padding-left: 0.125rem !important; padding-right: 0.125rem !important; }
.px-1\.5 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3\.5 { padding-left: 0.875rem !important; padding-right: 0.875rem !important; }

.py-0\.5 { padding-top: 0.125rem !important; padding-bottom: 0.125rem !important; }
.py-1\.5 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3\.5 { padding-top: 0.875rem !important; padding-bottom: 0.875rem !important; }

.left-3\.5 { left: 0.875rem !important; }
.top-3\.5 { top: 0.875rem !important; }
.right-3\.5 { right: 0.875rem !important; }
.bottom-3\.5 { bottom: 0.875rem !important; }

.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem !important; }

.\!min-h-8 { min-height: 2rem !important; }
.\!p-1 { padding: 0.25rem !important; }
.\!pl-11 { padding-left: 2.75rem !important; }
.\!pl-7 { padding-left: 1.75rem !important; }
.max-h-6 { max-height: 1.5rem !important; }
.max-w-\[60\%\] { max-width: 60% !important; }

/* ─── Input Spin Buttons ───────────────────────────────────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
.\[\&\:\:-webkit-inner-spin-button\]\:appearance-none::-webkit-inner-spin-button,
.\[\&\:\:-webkit-outer-spin-button\]\:appearance-none::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* ─── Prose & Print Utilities ──────────────────────────────────── */
.prose { max-width: 65ch; line-height: 1.7; }
.prose p { margin-bottom: 1.25em; }
.prose h2, .prose h3 { margin-top: 1.75em; margin-bottom: 0.75em; font-weight: 800; font-family: "Space Grotesk", sans-serif; }
.prose ul, .prose ol { margin-left: 1.5em; margin-bottom: 1.25em; list-style-type: disc; }
.prose li { margin-bottom: 0.35em; }

@media print {
  :root,
  :root[data-theme="dark"],
  .dark {
    --color-ink: #1C1A17 !important;
    --color-ink-muted: #555555 !important;
    --color-text-primary: #1C1A17 !important;
    --color-text-strong: #000000 !important;
    --color-text-muted: #555555 !important;
    --color-surface-card: #FFFFFF !important;
    --color-surface-soft: #F7F2E9 !important;
    --color-border: #D8CDBA !important;
  }
  .no-print { display: none !important; }
  body { background: #ffffff !important; color: #1C1A17 !important; }
}

@media (min-width: 640px) {
  .sm\:gap-4 { gap: 1rem !important; }
  .sm\:col-span-2 { grid-column: span 2 / span 2 !important; }
  .sm\:w-auto { width: auto !important; }
  .sm\:self-center { align-self: center !important; }
  .sm\:hidden { display: none !important; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sm\:flex-initial { flex: 0 1 auto !important; }
  .sm\:justify-between { justify-content: space-between !important; }
  .sm\:p-4 { padding: 1rem !important; }
}
@media (min-width: 768px) {
  .md\:inline { display: inline !important; }
  .md\:text-3xl { font-size: 1.875rem !important; line-height: 2.25rem !important; }
  .md\:max-h-\[calc\(100vh-48px\)\] { max-height: calc(100vh - 48px) !important; }
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
  transition-duration: 150ms !important;
}

.self-end { align-self: flex-end !important; }
.pr-4 { padding-right: 1rem !important; }
.p-12 { padding: 3rem !important; }
.quick-amount { min-height: 36px; padding: 0 12px; }



