﻿:root {
  --yellow: #ffb800;
  --yellow-deep: #e59b00;
  --orange: #f97316;
  --ink: #090e1a;
  --ink-soft: #141d30;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --line: #e2e8f0;
  --green: #10b981;
  --red: #ef4444;
  --white: #fff;
  --radius: 18px;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, .10);
  --shadow-lg: 0 25px 60px rgba(15, 23, 42, .16);
  --container: 1560px;
  --site-width: 1800px;
  --nav-height: 66px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 580px at 50% -8%, #e2e8f0 0, #f8fafc 45%, #f1f5f9 100%);
  font-family: 'Plus Jakarta Sans', Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
button, a, [role="button"], .btn { touch-action: manipulation; -webkit-touch-callout: none; }
input, textarea, select { touch-action: manipulation; -webkit-touch-callout: default; }
button:active:not(:disabled) { opacity: .82; }
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
button, input, select, textarea { font: inherit; }
button { color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
::selection { background: #ffe27a; color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.radar-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: radar-pulse 2s infinite;
}
@keyframes radar-pulse {
  0% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { transform: scale(.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--site-width);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 80px rgba(17, 24, 43, .13);
}
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: relative;
  z-index: 30;
  color: #fff;
  background:
    radial-gradient(620px 240px at 82% -30%, rgba(255, 196, 0, .16), transparent 70%),
    linear-gradient(125deg, #0a0f1c, #161f35 55%, #0c1221);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 12px 34px rgba(9, 14, 27, .16);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 16px 44px rgba(9, 14, 27, .3); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { display: block; width: auto; height: 46px; max-width: 220px; object-fit: contain; }
.footer-brand .brand-logo { height: 52px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  color: #131722;
  background: linear-gradient(145deg, #ffd32a, var(--yellow) 55%, var(--yellow-deep));
  box-shadow: 0 8px 20px rgba(255, 196, 0, .24), inset 0 1px rgba(255, 255, 255, .6);
}
.brand-mark .icon { width: 25px; height: 25px; stroke-width: 2.2; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 20px; font-weight: 900; letter-spacing: -.8px; }
.brand-text strong span { color: var(--yellow); }
.brand-text small {
  margin-top: 4px;
  color: #9ba4c0;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.main-nav { display: none; align-items: center; gap: 25px; margin-left: 16px; }
.main-nav a {
  position: relative;
  padding: 6px 0;
  color: #c9d0e3;
  font-size: 13.5px;
  font-weight: 600;
  transition: color .18s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #e8ebf5;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.icon-btn:active { transform: translateY(0) scale(.97); }
.icon-btn .icon { width: 21px; height: 21px; }
.count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #131a2b;
  border-radius: 99px;
  background: var(--yellow);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.count-badge.is-alert { background: var(--red); color: #fff; }
.account-btn { display: none; }
.site-header .header-publish { display: none; }
.header-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 15px;
}
.location {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  min-height: 30px;
  padding: 2px 3px;
  color: #eef1f8;
  font-size: 13.5px;
  font-weight: 650;
  transition: color .18s ease;
}
.location:hover { color: var(--yellow); }
.location .icon-pin { width: 17px; height: 17px; color: var(--yellow); fill: var(--yellow); stroke: var(--yellow); }
.location .icon-chevron { width: 16px; height: 16px; color: var(--yellow); }
.search-container {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 6px 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(3, 8, 20, .22);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-container:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, .2), 0 12px 30px rgba(3, 8, 20, .26);
}
.search-icon { width: 21px; height: 21px; color: var(--muted-2); }
.search-container input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}
.search-container input::placeholder { color: #9299ad; opacity: 1; }
.search-container input::-webkit-search-cancel-button { display: none; }
.search-clear {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
.search-clear:hover { background: #e8ecf4; color: var(--ink); }
.search-clear .icon { width: 15px; height: 15px; }
.filter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
  transition: background .2s ease, color .2s ease, transform .2s cubic-bezier(.22, .8, .3, 1), box-shadow .2s ease;
}
.filter-btn .icon { width: 18px; height: 18px; transition: transform .28s cubic-bezier(.22, .8, .3, 1); }
.filter-icon .filter-knob { transform-box: fill-box; transform-origin: center; transition: transform .28s cubic-bezier(.22, .8, .3, 1); }
.filter-icon .filter-knob-top { animation: filter-knob-top 3.8s ease-in-out infinite; }
.filter-icon .filter-knob-bottom { animation: filter-knob-bottom 3.8s ease-in-out infinite; }
.filter-btn.has-filters .filter-knob-top,
.filter-btn.has-filters .filter-knob-bottom { animation-duration: 2.6s; }
.filter-btn:hover .filter-knob-top { animation: none; transform: translateX(-4px); }
.filter-btn:hover .filter-knob-bottom { animation: none; transform: translateX(4px); }
@keyframes filter-knob-top {
  0%, 100% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
}
@keyframes filter-knob-bottom {
  0%, 100% { transform: translateX(2px); }
  50% { transform: translateX(-2px); }
}

/* Motion for close "X" icons */
.drawer-close .icon,
.store-modal-close .icon,
.store-detail-close .icon,
.auth-close .icon,
.search-clear .icon {
  transform-origin: center;
  transition: transform .22s cubic-bezier(.22, .8, .3, 1);
  animation: close-x-sway 4.4s ease-in-out infinite;
}
.drawer-close:hover .icon,
.store-modal-close:hover .icon,
.store-detail-close:hover .icon,
.auth-close:hover .icon,
.search-clear:hover .icon {
  animation: none;
  transform: rotate(90deg) scale(1.1);
}
.drawer-close:active .icon,
.store-modal-close:active .icon,
.store-detail-close:active .icon,
.auth-close:active .icon,
.search-clear:active .icon { transform: rotate(90deg) scale(.9); }
@keyframes close-x-sway {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(5deg) scale(1.04); }
}

/* Header icon motion: each icon has its own little gesture, staggered in time */
.brand-mark .icon,
.location .icon-pin,
.location .icon-chevron,
#favoritesBtn .icon,
#notifyBtn .icon,
#cartBtn .icon,
#accountBtn .icon,
#publishBtn .icon,
.search-icon {
  transform-origin: center;
  transition: transform .22s cubic-bezier(.22, .8, .3, 1);
}
.brand-mark .icon { animation: brand-shield-pulse 9s ease-in-out infinite; }
.brand:hover .brand-mark .icon { animation: none; transform: rotate(-6deg) scale(1.06); }

.location .icon-pin { animation: header-pin-hop 6s ease-in-out infinite; }
.location .icon-chevron { animation: header-chevron-nudge 6s ease-in-out infinite; }
.location:hover .icon-pin { animation: none; transform: translateY(-3px); }
.location:hover .icon-chevron { animation: none; transform: translateY(2px); }

#favoritesBtn:not(.is-bumped) .icon { animation: header-heartbeat 3.8s ease-in-out infinite; }
#notifyBtn:not(.is-pinging) .icon { transform-origin: 50% 15%; animation: header-bell-swing 5.6s ease-in-out infinite; }
#cartBtn:not(.is-bumped) .icon { animation: header-cart-roll 6.8s ease-in-out infinite; }
#accountBtn .icon { animation: header-user-nod 7.2s ease-in-out infinite; }
#publishBtn .icon { animation: header-plus-turn 5.4s ease-in-out infinite; }
.search-icon { animation: header-search-scan 8.5s ease-in-out infinite; }

#favoritesBtn:hover:not(.is-bumped) .icon { animation: none; transform: scale(1.2); }
#notifyBtn:hover:not(.is-pinging) .icon { animation: none; transform: rotate(-12deg) scale(1.06); }
#cartBtn:hover:not(.is-bumped) .icon { animation: none; transform: translateY(-2px) rotate(-6deg); }
#accountBtn:hover .icon { animation: none; transform: translateY(-2px); }
#publishBtn:hover .icon { animation: none; transform: rotate(90deg) scale(1.1); }
.search-container:hover .search-icon,
.search-container:focus-within .search-icon { animation: none; transform: rotate(-8deg) scale(1.08); }

#favoritesBtn:active .icon,
#notifyBtn:active .icon,
#cartBtn:active .icon,
#accountBtn:active .icon { transform: scale(.9); }

@keyframes brand-shield-pulse {
  0%, 88%, 100% { transform: scale(1); }
  93% { transform: scale(1.08); }
  98% { transform: scale(1); }
}
@keyframes header-pin-hop {
  0%, 74%, 100% { transform: translateY(0); }
  80% { transform: translateY(-3px); }
  86% { transform: translateY(0); }
  90% { transform: translateY(-1.5px); }
  94% { transform: translateY(0); }
}
@keyframes header-chevron-nudge {
  0%, 74%, 100% { transform: translateY(0); }
  80% { transform: translateY(2px); }
  86% { transform: translateY(0); }
}
@keyframes header-heartbeat {
  0%, 66%, 100% { transform: scale(1); }
  72% { transform: scale(1.18); }
  77% { transform: scale(.96); }
  82% { transform: scale(1.12); }
  88% { transform: scale(1); }
}
@keyframes header-bell-swing {
  0%, 78%, 100% { transform: rotate(0); }
  82% { transform: rotate(-14deg); }
  86% { transform: rotate(11deg); }
  90% { transform: rotate(-7deg); }
  94% { transform: rotate(3deg); }
  97% { transform: rotate(0); }
}
@keyframes header-cart-roll {
  0%, 72%, 100% { transform: translate(0, 0) rotate(0); }
  78% { transform: translateY(-2px) rotate(-8deg); }
  84% { transform: translateY(-1px) rotate(7deg); }
  90% { transform: translate(0, 0) rotate(0); }
}
@keyframes header-user-nod {
  0%, 74%, 100% { transform: translateY(0) rotate(0); }
  81% { transform: translateY(-2px) rotate(-5deg); }
  88% { transform: translateY(0) rotate(4deg); }
  94% { transform: translateY(0) rotate(0); }
}
@keyframes header-plus-turn {
  0%, 74%, 100% { transform: rotate(0) scale(1); }
  82% { transform: rotate(90deg) scale(1.08); }
  92% { transform: rotate(90deg) scale(1); }
}
@keyframes header-search-scan {
  0%, 84%, 100% { transform: rotate(0) scale(1); }
  89% { transform: rotate(-10deg) scale(1.06); }
  94% { transform: rotate(5deg) scale(1.03); }
  98% { transform: rotate(0) scale(1); }
}

/* Publish button: press burst on the + icon */
.publish-icon { position: relative; display: inline-grid; place-items: center; }
.publish-icon::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .9);
  opacity: 0;
  transform: scale(.35);
  pointer-events: none;
}
#publishBtn:active .icon { animation: none; transform: rotate(45deg) scale(.82); }
#publishBtn.is-bursting .icon {
  animation: publish-burst .55s cubic-bezier(.22, .8, .3, 1);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, .85));
}
#publishBtn.is-bursting .publish-icon::after { animation: publish-ring .55s ease-out; }
@keyframes publish-burst {
  0% { transform: rotate(0) scale(1); }
  35% { transform: rotate(90deg) scale(1.5); }
  100% { transform: rotate(180deg) scale(1); }
}
@keyframes publish-ring {
  0% { opacity: .9; transform: scale(.35); }
  100% { opacity: 0; transform: scale(1.85); }
}
.filter-btn:hover { background: #ffe98f; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 196, 0, .22); }
.filter-btn:hover .icon { transform: translateX(2px) rotate(-4deg); }
.filter-btn:active { transform: scale(.97); }
.filter-btn:active .icon { transform: scale(.9); }
.filter-btn.is-open { background: #ffe98f; color: #7a5b00; }
.filter-btn.is-open .icon { animation: filter-wiggle .45s cubic-bezier(.22, .8, .3, 1); }
.filter-btn.has-filters { background: linear-gradient(135deg, #ffd84d, #ffc400); color: #1c1305; animation: filter-glow 2.6s ease-in-out infinite; }
.filter-btn.has-filters:hover { background: linear-gradient(135deg, #ffe066, #ffc400); }
.filter-btn > span:not(.filter-btn-count) { display: none; }
.filter-btn-count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #0b1526;
  color: #ffd84d;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  animation: filter-badge-pop .3s cubic-bezier(.22, .8, .3, 1);
}
.filter-btn-count[hidden] { display: none; }
@keyframes filter-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-10deg) scale(1.04); }
  55% { transform: rotate(8deg) scale(1.04); }
  80% { transform: rotate(-4deg); }
}
@keyframes filter-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 0, .32); }
  50% { box-shadow: 0 0 0 5px rgba(255, 196, 0, 0); }
}
@keyframes filter-badge-pop {
  from { transform: scale(.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Filters panel */
.filters-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1526, #1c2f4d);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 21, 38, .18);
}
.filters-hero-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 184, 0, .18);
  color: var(--yellow);
}
.filters-hero-icon .icon { width: 21px; height: 21px; }
.filters-hero strong { display: block; font-size: 16px; font-weight: 900; letter-spacing: -.3px; }
.filters-hero small { display: block; margin-top: 2px; color: #aebbd1; font-size: 11.5px; line-height: 1.4; }
.filters-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.filters-summary-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff7e0;
  color: #b45309;
}
.filters-summary-icon .icon { width: 20px; height: 20px; }
.filters-summary strong { display: block; color: #0b1526; font-size: 14px; font-weight: 850; letter-spacing: -.2px; }
.filters-summary small { display: block; margin-top: 2px; color: #8492a8; font-size: 11.5px; line-height: 1.4; }
.filters-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.filters-card { min-width: 0; padding: 16px; border: 1px solid #eef2f7; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.filters-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.filters-card-head span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fff7e0; color: #b45309; }
.filters-card-head .icon { width: 14px; height: 14px; }
.filters-card .field { margin-bottom: 0; }
.filters-card .field-row { margin-top: 12px; }
.filters-quick-label {
  display: block;
  margin: 12px 0 7px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  padding: 0;
}
.filters-chip {
  flex: none;
  padding: 8px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 750;
  scroll-snap-align: start;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.filters-chip:hover { background: #fff7e0; border-color: #fde68a; color: #92400e; transform: translateY(-1px); }
.filters-chip.is-active { background: #0b1526; border-color: #0b1526; color: #ffd84d; }
.filters-price-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 0; }
.filters-preset {
  padding: 7px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.filters-preset:hover { background: #fff7e0; border-color: #fde68a; color: #92400e; transform: translateY(-1px); }
.filters-preset.is-active { background: #fff7e0; border-color: #fbbf24; color: #92400e; }
.filters-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.filters-toggle:hover { border-color: #fde68a; box-shadow: 0 8px 20px rgba(245, 158, 11, .08); }
.filters-toggle-copy { flex: 1; min-width: 0; }
.filters-toggle-copy b { display: block; font-size: 12.5px; font-weight: 800; color: #1e293b; }
.filters-toggle-copy small { display: block; margin-top: 2px; color: #8492a8; font-size: 11px; line-height: 1.4; }
.filters-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters-switch {
  flex: none;
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background .2s ease;
}
.filters-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .2);
  transition: transform .22s cubic-bezier(.22, .8, .3, 1);
}
.filters-toggle input:checked ~ .filters-switch { background: var(--yellow); }
.filters-toggle input:checked ~ .filters-switch::after { transform: translateX(20px); }
.filters-toggle input:focus-visible ~ .filters-switch { box-shadow: 0 0 0 3px rgba(255, 196, 0, .3); }
.filters-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: 8px;
  margin-top: 2px;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #eef2f7;
  background: #fff;
}
.filters-actions .btn { min-height: 46px; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .filter-btn, .filter-btn .icon, .filter-btn-count, .filters-chip, .filters-preset,
  .filters-switch, .filters-switch::after, .filters-toggle, .filter-icon .filter-knob,
  .drawer-close .icon, .store-modal-close .icon, .store-detail-close .icon,
  .auth-close .icon, .search-clear .icon,
  .brand-mark .icon, .location .icon-pin, .location .icon-chevron,
  #favoritesBtn .icon, #notifyBtn .icon, #cartBtn .icon, #accountBtn .icon,
  #publishBtn .icon, .search-icon,
  #publishBtn.is-bursting .icon, #publishBtn.is-bursting .publish-icon::after { animation: none !important; transition: none !important; }
}

/* Buttons & shared */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary {
  background: linear-gradient(145deg, #ffd330, var(--yellow) 55%, var(--yellow-deep));
  color: #131722;
  box-shadow: 0 9px 22px rgba(255, 196, 0, .27);
}
.btn-primary:hover { box-shadow: 0 13px 28px rgba(255, 196, 0, .38); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: #d7ddea; }
.btn-glass {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .15); }
.btn-block { width: 100%; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 1.5px;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow .icon { width: 14px; height: 14px; }
.eyebrow-light { color: var(--yellow); }

/* Main */
.main { flex: 1 0 auto; padding-block: 20px 8px; }

.home-orders-rail { margin: 4px 0 18px; }
.home-orders-rail[hidden] { display: none; }
.home-orders-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.home-orders-head strong { color: #0b1526; font-size: 12.5px; font-weight: 850; }
.home-orders-head button { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); font-size: 11px; font-weight: 850; }
.home-orders-head button .icon { width: 13px; height: 13px; }
.home-orders-track {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.home-orders-track::-webkit-scrollbar { display: none; }
.home-orders-track.is-single .home-order-card { flex-basis: 100%; }
.home-order-card {
  display: flex;
  flex: 0 0 min(88%, 380px);
  min-height: 178px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e9edf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  text-align: left;
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-order-card:active { transform: scale(.99); }
@media (hover: hover) {
  .home-order-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .11); }
}
.home-order-inner { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 9px; padding: 14px; }
.home-order-head { display: flex; align-items: center; gap: 10px; }
.home-order-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffc400, #ff5420);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
  box-shadow: 0 5px 12px rgba(255, 84, 32, .18);
}
.home-order-head-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.home-order-store {
  overflow: hidden;
  color: #1e293b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: -.1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-order-meta {
  overflow: hidden;
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-order-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: #fff4ec;
  color: var(--orange);
}
.home-order-icon .icon { width: 17px; height: 17px; }
.home-order-message {
  display: -webkit-box;
  flex: 1;
  overflow: hidden;
  color: #0b1526;
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-order-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 2px; }
.home-order-step-line {
  position: absolute;
  top: 16px;
  right: 12.5%;
  left: 12.5%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}
.home-order-step-line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb800, #ff6a1a 55%, #ff5420);
  animation: homeOrderStepFill .9s cubic-bezier(.22, .8, .3, 1) both;
}
.home-order-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.home-order-step-node {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #94a3b8;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.home-order-step-node .icon { width: 15px; height: 15px; }
.home-order-step.is-done .home-order-step-node { border-color: #0f172a; background: #0f172a; color: #fff; }
.home-order-step.is-current .home-order-step-node {
  border-color: #ffb800;
  background: linear-gradient(145deg, #ffc400, #ff9800);
  color: #0f172a;
  box-shadow: 0 0 0 4px rgba(255, 184, 0, .16), 0 4px 10px rgba(255, 84, 32, .20);
  transform: scale(1.08);
  animation: homeOrderNodeGlow 2s ease-out infinite;
}
.home-order-step-label {
  display: flex;
  min-height: 19px;
  flex-direction: column;
  justify-content: center;
  color: #94a3b8;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .2px;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}
.home-order-step.is-done .home-order-step-label { color: #475569; }
.home-order-step.is-current .home-order-step-label { color: var(--orange); font-weight: 850; }
@keyframes homeOrderStepFill {
  from { width: 0; }
}
@keyframes homeOrderNodeGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 184, 0, .16), 0 4px 10px rgba(255, 84, 32, .20); }
  50% { box-shadow: 0 0 0 8px rgba(255, 184, 0, 0), 0 4px 10px rgba(255, 84, 32, .10); }
}
@media (prefers-reduced-motion: reduce) {
  .home-order-step-line i,
  .home-order-step.is-current .home-order-step-node { animation: none; }
}
.home-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.home-order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 9.5px;
  font-weight: 850;
}
.home-order-status::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.home-order-status.is-warn { background: #fff7e6; color: #b45309; }
.home-order-status.is-active { background: #ecfdf3; color: #15803d; }
.home-order-time { display: inline-flex; align-items: center; gap: 4px; flex: none; color: #94a3b8; font-size: 10px; white-space: nowrap; }
.home-order-time .icon { width: 12px; height: 12px; }
.home-rail { margin: 2px 0 16px; }
.home-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.home-rail-kicker { display: block; color: #b45309; font-size: 9.5px; font-weight: 850; letter-spacing: 1.4px; text-transform: uppercase; }
.home-rail-head h2 { margin: 3px 0 0; color: #0b1526; font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.home-rail-all { display: inline-flex; align-items: center; gap: 5px; flex: none; color: #0b1526; font-size: 12px; font-weight: 800; }
.home-rail-all .icon { width: 14px; height: 14px; }
.home-rail-track { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-rail-track::-webkit-scrollbar { display: none; }
.home-rail-card { flex: 0 0 150px; padding: 0; border: 0; background: none; text-align: left; scroll-snap-align: start; }
.home-rail-thumb { display: block; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: #f1f5f9; }
.home-rail-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.home-rail-card:hover .home-rail-thumb img { transform: scale(1.05); }
.home-rail-card b { display: block; margin-top: 7px; color: #0b1526; font-size: 12.5px; font-weight: 800; }
.home-rail-card small { display: block; margin-top: 1px; color: #8492a8; font-size: 10.5px; }
@media (max-width: 640px) {
  .home-rail-card { flex-basis: 128px; }
  .home-rail-head h2 { font-size: 18px; }
}

.home-doors { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 6px; overflow: hidden; border-radius: 26px; box-shadow: var(--shadow-md); }
.home-door { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 210px; padding: 30px 32px; overflow: hidden; color: #fff; }
.home-door--catalog { background: radial-gradient(460px 220px at 100% 0, rgba(255, 184, 0, .16), transparent 65%), linear-gradient(135deg, #0b1526, #1c2f4d); }
.home-door--market { background: linear-gradient(135deg, #ffc42e, #f5a300); color: #11182b; }
.home-door--market::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 196, 46, .98) 0%, rgba(255, 196, 46, .92) 35%, rgba(255, 196, 46, .35) 68%, rgba(255, 196, 46, 0) 100%);
}
.home-door-photo { position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; display: block; width: 58%; }
.home-door-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 18%);
  mask-image: linear-gradient(to right, transparent 0%, #000 18%);
}
.home-door--catalog::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 15, 28, .98) 0%, rgba(8, 15, 28, .9) 38%, rgba(8, 15, 28, .32) 72%, rgba(8, 15, 28, .05) 100%);
}
.home-door-round {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  backdrop-filter: blur(10px);
}
.home-door-round .icon { width: 20px; height: 20px; }
.home-door-round--market { background: rgba(11, 17, 32, .12); border-color: rgba(11, 17, 32, .18); color: #11182b; }
.home-door-photo--market img { object-position: 64% center; }
.home-door-mark { position: absolute; right: 14px; bottom: -8px; opacity: .09; pointer-events: none; }
.home-door-mark .icon { width: 150px; height: 150px; stroke-width: 1; }
.home-door-kicker { position: relative; z-index: 2; font-size: 9.5px; font-weight: 850; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.home-door h2 { position: relative; z-index: 2; margin: 9px 0 0; font-size: clamp(24px, 2.5vw, 32px); font-weight: 900; letter-spacing: -.9px; line-height: 1.05; }
.home-door p { position: relative; z-index: 2; max-width: 330px; margin: 7px 0 0; color: #b9c6d9; font-size: 13px; line-height: 1.5; }
.home-door--market p { color: #5b3b00; }
.home-door-cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-size: 12.5px; font-weight: 800; }
.home-door--catalog .home-door-cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 15px;
  border-radius: 999px;
  background: #fff;
  color: #0b1526;
}
.home-door--market .home-door-cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 15px;
  border-radius: 999px;
  background: #11182b;
  color: #fff;
}
.home-door--market .home-door-cta .icon { color: #fff; }
.home-door-cta .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.home-door:hover .home-door-cta .icon { transform: translateX(4px); }
@media (max-width: 760px) {
  .home-door-photo img { object-position: 68% center; }
  .home-door-round { top: 12px; right: 12px; width: 38px; height: 38px; }
  .home-door-round .icon { width: 18px; height: 18px; }
}
@media (max-width: 760px) {
  .home-doors { grid-template-columns: 1fr; border-radius: 22px; }
  .home-door { min-height: 170px; padding: 22px; }
  .home-door-mark .icon { width: 105px; height: 105px; }
}
.hero {
  position: relative;
  display: grid;
  gap: 24px;
  overflow: hidden;
  isolation: isolate;
  padding: 27px 21px 23px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(520px 360px at 95% 104%, rgba(255, 139, 0, .22), transparent 68%),
    linear-gradient(130deg, #0a0f1c, #17213a 53%, #0b1120);
  box-shadow: 0 18px 46px rgba(10, 16, 32, .18);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 360px at 72% 24%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 360px at 72% 24%, #000, transparent 78%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -190px;
  right: -140px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, .22), transparent 66%);
}
.hero-copy { position: relative; z-index: 3; }
.hero-copy > * { animation: rise .55s both; }
.hero-copy > :nth-child(2) { animation-delay: .05s; }
.hero-copy > :nth-child(3) { animation-delay: .1s; }
.hero-copy > :nth-child(4) { animation-delay: .15s; }
.hero-copy > :nth-child(5) { animation-delay: .2s; }
.hero h1 {
  max-width: 650px;
  margin: 12px 0 14px;
  font-size: clamp(31px, 5.4vw, 55px);
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1.03;
}
.hero h1 .accent { color: var(--yellow); }
.hero-copy > p {
  max-width: 540px;
  margin-bottom: 0;
  color: #bdc5dc;
  font-size: 14.5px;
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 17px;
  padding: 0;
  margin: 23px 0 0;
  list-style: none;
  color: #b4bdd4;
  font-size: 11.5px;
  font-weight: 550;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 5px; }
.hero-trust .icon { width: 15px; height: 15px; color: var(--yellow); }

.hero-stage {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-glow {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, .28), transparent 64%);
  filter: blur(24px);
  pointer-events: none;
}
.hero-main-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.55;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  background: #090e1a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  animation: float 10s ease-in-out infinite;
}
.hero-main-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.hero-main-card:hover img {
  transform: scale(1.04);
}
.hero-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 18px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 14, 26, .82) 50%, rgba(9, 14, 26, .96) 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, .22);
  border: 1px solid rgba(16, 185, 129, .45);
  color: #34d399;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .4px;
  backdrop-filter: blur(8px);
}
.hero-card-badge .icon { width: 13px; height: 13px; }
.hero-card-title {
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.3px;
}
.hero-card-meta {
  color: #94a3b8;
  font-size: 11.5px;
}
.hero-card-price {
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
}
.floating-badge {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 14px;
  background: rgba(11, 16, 30, .82);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
  backdrop-filter: blur(14px);
}
.badge-warranty {
  left: -8px;
  bottom: 8%;
  animation: float 8s 1s ease-in-out infinite;
}
.badge-delivery {
  right: -8px;
  bottom: 34%;
  animation: float 9s 2s ease-in-out infinite;
}
.floating-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: var(--yellow);
  color: #111;
  box-shadow: 0 4px 12px rgba(255, 184, 0, .35);
}
.floating-icon .icon { width: 18px; height: 18px; }
.icon-truck-flag {
  background: #38bdf8;
  color: #0c4a6e;
  box-shadow: 0 4px 12px rgba(56, 189, 248, .35);
}
.floating-badge span:last-child { display: flex; flex-direction: column; }
.floating-badge b { font-size: 11.5px; font-weight: 800; color: #fff; }
.floating-badge small { margin-top: 1px; color: #94a3b8; font-size: 9.5px; }
.rating-badge {
  position: absolute;
  z-index: 5;
  top: -12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  font-size: 11px;
}
.rating-badge .icon { width: 14px; height: 14px; color: var(--yellow-deep); fill: var(--yellow); stroke: var(--yellow-deep); }
.rating-badge b { font-size: 13px; font-weight: 900; }
.rating-badge span { color: var(--muted); }

/* Section headings */
.categories { margin-top: 36px; }
.agro-banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 195px;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 12px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background:
    radial-gradient(480px 280px at 91% 18%, rgba(255, 184, 0, .26), transparent 66%),
    linear-gradient(120deg, #062018, #0f4024 55%, #08241b);
  box-shadow: 0 16px 38px rgba(6, 32, 24, .25);
  color: #fff;
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease;
}
.agro-banner::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(6, 32, 24, .98) 0%, rgba(6, 32, 24, .88) 42%, rgba(6, 32, 24, .3) 72%, rgba(6, 32, 24, 0) 100%);
}
.agro-banner:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(6, 32, 24, .32); }
.agro-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  max-width: 72%;
}
.agro-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--yellow);
  color: #112014;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 1.2px;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 184, 0, .3);
}
.agro-badge .icon { width: 12px; height: 12px; }
.agro-title {
  display: block;
  font-size: clamp(26px, 5.8vw, 36px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.02;
}
.agro-sub {
  display: block;
  max-width: 400px;
  color: #c3d9ca;
  font-size: 12px;
  line-height: 1.5;
}
.agro-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}
.agro-cta .icon { width: 14px; height: 14px; transition: transform .2s ease; }
.agro-banner:hover .agro-cta .icon { transform: translateX(4px); }
.agro-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  overflow: hidden;
  pointer-events: none;
}
.agro-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to right, transparent 0%, black 45%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 45%);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  letter-spacing: -.7px;
  line-height: 1.15;
}
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.section-heading .btn { flex: none; }
.section-heading-center { justify-content: center; text-align: center; }

/* Categories Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .03);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: #cbd5e1; box-shadow: var(--shadow-md); }
.feature-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.48;
  background: var(--surface-2);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-card:hover .feature-media img { transform: scale(1.06); }
.feature-count {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(9, 14, 26, .82);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  backdrop-filter: blur(8px);
}
.feature-body { position: relative; display: block; padding: 12px 42px 13px 13px; }
.feature-title { display: block; overflow: hidden; font-size: 13.5px; font-weight: 850; letter-spacing: -.2px; text-overflow: ellipsis; white-space: nowrap; }
.feature-sub { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.feature-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff7d6;
  color: #855d00;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
}
.feature-arrow .icon { width: 14px; height: 14px; }
.feature-card:hover .feature-arrow { background: var(--yellow); transform: translateY(-50%) translateX(2px); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-width: 0;
  padding: 9px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mini-card:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: var(--shadow-sm); }
.mini-media { display: block; width: 100%; overflow: hidden; aspect-ratio: 2.2; border-radius: 9px; background: var(--surface-2); margin-bottom: 2px; }
.mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mini-card:hover .mini-media img { transform: scale(1.07); }
.mini-title { font-size: 12px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mini-sub { font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Subcategories Explorer Section (Hazlo Pro) */
.subcategories-panel {
  margin-top: 28px;
  padding: 22px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}
.subcategories-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}
.subcategories-heading-wrap { display: flex; flex-direction: column; gap: 4px; }
.subcategories-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.subcategories-kicker .icon { width: 13px; height: 13px; }
.subcategories-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--ink);
}
.accent-subcat { color: #d97706; }
.subcategories-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.subcategories-actions .btn-sm {
  min-height: 34px;
  padding: 7px 13px;
  font-size: 11.5px;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.subcat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .03);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.subcat-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}
.subcat-card.is-active {
  border-color: var(--yellow-deep);
  background: #fffdf5;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, .25), 0 14px 28px rgba(15, 23, 42, .09);
}
.subcat-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.35;
  background: var(--surface-2);
}
.subcat-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.subcat-card:hover .subcat-media img { transform: scale(1.06); }
.subcat-count {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(9, 14, 26, .84);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}
.subcat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 32px 11px 11px;
}
.subcat-name {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -.2px;
  color: var(--ink);
  line-height: 1.2;
}
.subcat-desc {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.subcat-badge-arrow {
  position: absolute;
  top: auto;
  bottom: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.subcat-badge-arrow .icon { width: 13px; height: 13px; }
.subcat-card:hover .subcat-badge-arrow {
  background: var(--yellow);
  color: #111;
  transform: translateX(2px);
}
.subcat-card.is-active .subcat-badge-arrow {
  background: var(--yellow-deep);
  color: #fff;
}

/* Promo Banner with Rich Overlay */
.promo-section { margin-top: 26px; }
.promo {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0b1120;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease;
}
.promo img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .6s ease;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.promo:hover img { transform: scale(1.025); }
.promo-overlay {
  position: absolute;
  inset: 0;
  padding: 22px 20px;
  background: linear-gradient(90deg, rgba(8, 13, 24, .95) 0%, rgba(8, 13, 24, .82) 48%, rgba(8, 13, 24, .25) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
}
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(245, 158, 11, .25);
  border: 1px solid rgba(245, 158, 11, .5);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .6px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.promo-badge .icon { width: 13px; height: 13px; }
.promo-title {
  font-size: clamp(18px, 3.4vw, 26px);
  font-weight: 900;
  letter-spacing: -.6px;
  line-height: 1.15;
  max-width: 580px;
}
.promo-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  max-width: 500px;
}
.promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--yellow);
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 184, 0, .3);
  transition: transform .2s ease;
}
.promo-cta .icon { width: 14px; height: 14px; transition: transform .2s ease; }
.promo:hover .promo-cta .icon { transform: translateX(3px); }

/* Offers */
.offers { margin-top: 38px; scroll-margin-top: 20px; }
.offers-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 22px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid #e6ecf5;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.offers-hero-copy { min-width: 0; }
.offers-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: #ecfdf5; color: #047857;
  font-size: 10.5px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase;
}
.offers-kicker .icon { width: 13px; height: 13px; }
.offers-hero h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.1;
}
.offers-hero #resultCount { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.offers-heading { align-items: flex-start; }
.offers-heading h2 { display: flex; align-items: center; gap: 7px; }
.flame { font-size: .86em; }
.offers-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.sort-control > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.sort-control select {
  max-width: 138px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 15px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: #4f5770;
  font-size: 11.5px;
  font-weight: 650;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.chip:hover { border-color: #d7ddea; background: #eef2f9; color: var(--ink); }
.chip .icon { width: 13px; height: 13px; }
.chip.is-clear { border-color: transparent; background: var(--ink); color: #fff; }
.chip.is-clear:hover { background: #232e49; color: #fff; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
  animation: card-in .42s both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: #cbd5e1; box-shadow: 0 18px 36px rgba(15, 23, 42, .10); }
.product-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.58;
  background: linear-gradient(145deg, #edf2f7, #e2e8f0);
}
.product-open { display: block; width: 100%; height: 100%; padding: 0; }
.product-open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.product-card:hover .product-open img { transform: scale(1.06); }
.product-cart-control { position: absolute; right: 10px; bottom: 10px; z-index: 4; }
.product-card.is-in-cart .product-visual { box-shadow: inset 0 0 0 2px var(--yellow); }
.product-card.is-in-cart .card-verified-badge { display: none; }
.product-card.is-bump { animation: card-bump .32s ease; }
.product-visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, 0) 30%, rgba(9, 14, 26, .08) 100%);
}
.product-tag {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 4px 9px;
  border-radius: 99px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .2px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, .28);
}
.product-tag.is-new { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 12px rgba(5, 150, 105, .25); }
.product-tag.is-used { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 12px rgba(217, 119, 6, .25); }
.card-verified-badge {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(16, 185, 129, .92);
  color: #fff;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .2px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, .3);
  backdrop-filter: blur(4px);
}
.card-verified-badge .icon { width: 12px; height: 12px; }
.fav-btn {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--orange);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
  backdrop-filter: blur(6px);
  transition: transform .18s ease, background .18s ease;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn:active { transform: scale(.95); }
.fav-btn .icon { width: 17px; height: 17px; }
.fav-btn.is-selected { background: #fff1d0; }
.fav-btn.is-selected .icon { fill: var(--orange); }
.product-info { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 11px 12px 12px; }
.product-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.product-cat { color: var(--muted-2); font-size: 9.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.product-cat b { color: #d97706; font-weight: 800; }
.product-name { margin: 0; overflow: hidden; font-size: 14.5px; font-weight: 850; letter-spacing: -.25px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.product-title-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .18s ease;
}
.product-title-btn:hover { color: var(--orange); }
.product-meta { margin: 0; overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.product-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; margin-top: 4px; }
.price { color: #b45309; font-size: 17.5px; font-weight: 900; letter-spacing: -.5px; white-space: nowrap; }
.old-price { color: var(--muted-2); font-size: 11px; text-decoration: line-through; white-space: nowrap; }
.product-rating { display: inline-flex; align-items: center; gap: 2px; color: #475569; font-size: 10.5px; font-weight: 750; }
.product-rating .icon { width: 11px; height: 11px; color: var(--yellow-deep); fill: var(--yellow); stroke: var(--yellow-deep); }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9; }
.product-city { display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.product-city .icon { width: 13px; height: 13px; color: var(--orange); }
.add-cart-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: #fff7d6;
  color: #855d00;
  transition: background .18s ease, transform .18s ease;
}
.add-cart-btn:hover { background: var(--yellow); color: #111; transform: translateY(-1px); }
.add-cart-btn:active { transform: scale(.95); }
.add-cart-btn .icon { width: 16px; height: 16px; }

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px;
  border: 1px dashed #dbe1ec;
  border-radius: 20px;
  background: #fafbfe;
  text-align: center;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #fff4cf;
  color: #8d6800;
}
.empty-icon .icon { width: 25px; height: 25px; }
.empty-state h3 { margin: 0 0 5px; font-size: 18px; font-weight: 850; letter-spacing: -.35px; }
.empty-state p { max-width: 360px; margin: 0 0 17px; color: var(--muted); font-size: 13px; }

/* Steps */
.steps { margin-top: 46px; scroll-margin-top: 20px; }
.steps-grid { display: grid; gap: 10px; }
.step-card {
  position: relative;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #f8faff, #f1f4fa);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-number {
  position: absolute;
  top: 10px;
  right: 15px;
  color: rgba(17, 24, 43, .05);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
}
.step-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #fff3c9;
  color: #846200;
}
.step-icon .icon { width: 21px; height: 21px; }
.step-card h3 { position: relative; margin: 0 0 5px; font-size: 16px; font-weight: 850; letter-spacing: -.3px; }
.step-card p { position: relative; max-width: 320px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Sell CTA */
.sell-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  margin: 38px 0 30px;
  padding: 27px 23px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(440px 280px at 88% 120%, rgba(255, 196, 0, .24), transparent 65%),
    linear-gradient(125deg, #0c1221, #1b2742 58%, #10182b);
  box-shadow: var(--shadow-md);
}
.sell-cta h2 { max-width: 600px; margin: 7px 0 7px; font-size: clamp(21px, 3.2vw, 31px); font-weight: 900; letter-spacing: -1px; line-height: 1.12; }
.sell-cta p { margin: 0; color: #b6c0d8; font-size: 13px; }

/* Footer */
.site-footer {
  margin-top: 20px;
  padding: 32px 0 calc(6px + var(--nav-height) + env(safe-area-inset-bottom));
  background: #0b1120;
  color: #fff;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 22px; }
.footer-brand { max-width: 320px; }
.footer-brand > p { margin: 13px 0 0; color: #98a2ba; font-size: 12.5px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-links a, .footer-links button { padding: 4px 0; color: #c9d1e2; font-size: 12.5px; font-weight: 550; transition: color .18s ease; }
.footer-links a:hover, .footer-links button:hover { color: var(--yellow); }
.footer-links[hidden] { display: none !important; }
.footer-copy { width: 100%; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .09); color: #707b96; font-size: 10.5px; }

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: radial-gradient(520px 260px at 50% 38%, rgba(255, 184, 0, .09), transparent 70%), #0b1526;
  color: #fff;
}
html.boot-route .boot-screen { display: flex; }
.boot-screen[hidden] { display: none !important; }
.boot-logo {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(255, 184, 0, .18);
}
.boot-spinner { width: 28px; height: 28px; border: 3px solid rgba(255, 255, 255, .16); border-top-color: var(--yellow); border-radius: 50%; animation: bootSpin .8s linear infinite; }
.boot-screen p { margin: 0; color: #93a4c1; font-size: 11px; font-weight: 600; }
@keyframes bootSpin { to { transform: rotate(360deg); } }

/* Bottom nav */
.bottom-nav {
  position: fixed;
  z-index: 25;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1px;
  width: 100%;
  max-width: 560px;
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(229, 233, 242, .9);
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(17, 24, 43, .1);
  backdrop-filter: blur(18px);
}
.nav-item {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  color: #7e859e;
  font-size: 10px;
  font-weight: 600;
  transition: color .18s ease, transform .18s ease;
}
.nav-item:active { transform: scale(.96); }
.nav-item .icon { width: 23px; height: 23px; stroke-width: 1.9; }
.nav-item.is-active { color: var(--orange); font-weight: 800; }
.nav-item.is-active .icon { fill: none; stroke: var(--orange); }
.nav-item.is-active::before {
  content: "";
  position: absolute;
  top: -5px;
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}
.bottom-nav--delivery { display: none; }
.nav-badge[hidden] { display: none !important; }
#deliveryBottomNav .nav-item.has-assignments { color: var(--orange); font-weight: 800; }
#deliveryBottomNav .nav-item.has-assignments .nav-badge {
  animation: deliveryBadgePulse 1.5s ease-in-out infinite;
}
#deliveryBottomNav .nav-item.has-unread { color: #ff5420; font-weight: 800; }
#deliveryBottomNav .nav-item.has-unread .nav-badge {
  background: #ff5420;
  animation: deliveryBadgePulse 1.5s ease-in-out infinite;
}
.panel-nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 999px;
  background: #ff5420;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(255, 84, 32, 0.35);
}
@keyframes deliveryBadgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); }
  50% { transform: scale(1.16); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}
body.is-repartidor-account #favoritesBtn { display: none !important; }
.panel-shell--delivery .panel-side-foot { display: none; }
@media (max-width: 899px) {
  body.is-repartidor-account .bottom-nav:not(.bottom-nav--delivery) { display: none; }
  body.is-repartidor-account .bottom-nav--delivery { display: flex; }
  .panel-shell--delivery .panel-side { display: none; }
}
.nav-icon { position: relative; display: grid; place-items: center; }
.nav-icon em {
  position: absolute;
  top: -7px;
  right: -10px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

/* Overlay + drawer */
.overlay {
  position: fixed;
  z-index: 5000;
  inset: 0;
  background: rgba(7, 12, 24, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  z-index: 5001;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 89dvh;
  border-radius: 23px 23px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(7, 12, 24, .3);
  transform: translateY(105%);
  transition: transform .3s cubic-bezier(.22, .8, .3, 1);
}
.drawer.is-open { transform: translateY(0); }
.drawer-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 19px 13px;
  border-bottom: 1px solid var(--line);
}
.drawer-kicker { display: block; margin-bottom: 3px; color: var(--orange); font-size: 9px; font-weight: 850; letter-spacing: 1.4px; text-transform: uppercase; }
.drawer-head h2 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.6px; }
.drawer-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  transition: background .18s ease, transform .18s ease;
}
.drawer-close:hover { background: #e9edf5; transform: rotate(4deg); }
.drawer-close .icon { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 19px calc(24px + env(safe-area-inset-bottom)); }
.drawer-body > p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.drawer-section-title { margin: 18px 0 9px; font-size: 11px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); }
.drawer-note { margin-top: 14px; padding: 11px 12px; border-radius: 11px; background: #fff8e0; color: #7d6008; font-size: 11.5px; line-height: 1.5; }
.drawer-actions { display: grid; gap: 8px; margin-top: 18px; }
.drawer-empty { padding: 28px 10px; text-align: center; }
.drawer-empty .empty-icon { margin-inline: auto; }
.drawer-empty h3 { margin: 0 0 4px; font-size: 17px; font-weight: 850; }
.drawer-empty p { margin: 0 0 15px; color: var(--muted); font-size: 12.5px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span, .field > label { color: #4e5670; font-size: 11.5px; font-weight: 750; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #f8fafd;
  color: var(--ink);
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); background: #fff; box-shadow: 0 0 0 3px rgba(255, 196, 0, .17); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.check-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafd;
  color: #434b63;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}
.check-field input { width: 17px; height: 17px; accent-color: var(--orange); }
.check-field + .check-field { margin-top: 7px; }

/* City list */
.city-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.city-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 43px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafd;
  color: #3e465d;
  font-size: 12.5px;
  font-weight: 650;
  text-align: left;
  transition: border-color .18s ease, background .18s ease;
}
.city-choice:hover { border-color: #d7ddea; background: #f0f4fa; }
.city-choice.is-current { border-color: var(--yellow); background: #fff8dd; color: var(--ink); }
.city-choice:disabled { opacity: .55; cursor: not-allowed; }
.city-choice:disabled:hover { border-color: var(--line); background: #fff; }
.city-choice small { color: var(--muted-2); font-size: 10px; font-weight: 700; }
.city-choice .icon { width: 16px; height: 16px; color: var(--orange); }

.location-list { display: grid; gap: 8px; }
.location-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #eef2f7;
  border-radius: 15px;
  background: #fff;
  color: #0b1526;
  text-align: left;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.location-item:hover { border-color: #e2e8f0; background: #f8fafc; }
.location-item.is-current { border-color: #fbbf24; background: #fff7e0; }
.location-item > .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #b45309; }
.location-item > span { flex: 1; min-width: 0; }
.location-item strong { display: block; font-size: 13.5px; font-weight: 800; }
.location-item small { display: block; margin-top: 2px; color: #64748b; font-size: 11.5px; line-height: 1.4; overflow-wrap: anywhere; }
.location-item em { display: inline-block; margin-top: 5px; padding: 2px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 10px; font-style: normal; font-weight: 700; }
.location-item > b { flex: none; padding: 3px 7px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 9.5px; font-weight: 800; }
.location-current {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #f8fafc;
}
.location-current > .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #b45309; }
.location-current > div { min-width: 0; }
.location-current strong { display: block; color: #0b1526; font-size: 14px; font-weight: 800; }
.location-current small { display: block; margin-top: 3px; color: #64748b; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.location-current em {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff7e0;
  color: #92400e;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
}

/* Notifications */
.notification-center-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.notification-center-head .notification-summary { flex: 1; margin-bottom: 0; }
.notification-head-actions { flex: none; display: flex; gap: 6px; }
.notification-icon-action { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #475569; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.notification-icon-action:hover { background: #f8fafc; border-color: #cbd5e1; color: #0b1526; }
.notification-icon-action .icon { width: 16px; height: 16px; }
.notification-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: #0b1526;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.notification-summary-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff7e0;
  color: #b45309;
}
.notification-summary-icon .icon { width: 21px; height: 21px; }
.notification-summary strong { display: block; font-size: 16px; font-weight: 900; letter-spacing: -.3px; }
.notification-summary small { display: block; margin-top: 2px; color: #8492a8; font-size: 11.5px; line-height: 1.4; }
.web-push-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #ffd7c4;
  border-radius: 14px;
  background: #fff8f2;
}
.web-push-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: #fff0e8;
  color: var(--orange);
}
.web-push-card-icon .icon { width: 17px; height: 17px; }
.web-push-card-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.web-push-card-copy strong { color: #0b1526; font-size: 12px; font-weight: 850; }
.web-push-card-copy small { color: #94a3b8; font-size: 10.5px; line-height: 1.35; }
.web-push-card .btn { flex: none; min-height: 32px; padding: 0 10px; border-radius: 9px; font-size: 10.5px; }
.notification-filters { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.notification-filters::-webkit-scrollbar { display: none; }
.notification-filter-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475569; font-size: 11px; font-weight: 800; white-space: nowrap; }
.notification-filter-chip small { font-size: 9px; font-weight: 800; opacity: .65; }
.notification-filter-chip.is-active { border-color: #0b1526; background: #0b1526; color: #ffd84d; }
.notification-group { margin-top: 12px; }
.notification-group-label { margin: 0 0 7px; color: #94a3b8; font-size: 10px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }

.notification-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6ecf5;
  border-radius: 18px;
  background: #fff;
}
.notification-item-wrap { position: relative; }
.notification-item {
  position: relative;
  display: flex;
  width: 100%;
  gap: 12px;
  padding: 14px 46px 14px 14px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  transition: background .18s ease;
}
.notification-item-wrap:last-child .notification-item { border-bottom: 0; }
.notification-item:hover { background: #f8fafc; }
.notification-item:not(.is-read) { box-shadow: inset 3px 0 0 var(--yellow); }
.notification-item.is-read { opacity: .72; }
.notification-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7e0;
  color: #b45309;
}
.notification-icon .icon { width: 18px; height: 18px; }
.notification-icon--orders { background: #e0f2fe; color: #0369a1; }
.notification-icon--messages { background: #dcfce7; color: #15803d; }
.notification-icon--account { background: #fff7e0; color: #b45309; }
.notification-icon--moderation { background: #ede9fe; color: #6d28d9; }
.notification-icon--system { background: #f1f5f9; color: #475569; }
.notification-copy { flex: 1; min-width: 0; }
.notification-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.notification-item b { display: block; min-width: 0; font-size: 13px; font-weight: 800; }
.notification-item time { flex: none; margin: 0; color: #94a3b8; font-size: 9.5px; white-space: nowrap; }
.notification-desc { display: block; margin-top: 3px; color: #64748b; font-size: 11.5px; line-height: 1.5; }
.notification-delete {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #f8fafc;
  color: #94a3b8;
  transform: translateY(-50%);
  transition: background .18s ease, color .18s ease;
}
.notification-delete:hover { background: #fee2e2; color: #dc2626; }
.notification-delete .icon { width: 14px; height: 14px; }
.notification-read-all .icon { width: 15px; height: 15px; }
.notification-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
@keyframes notify-ping {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(4deg); }
}
.icon-btn.is-pinging { color: var(--orange); }
.icon-btn.is-pinging .icon { animation: notify-ping .9s ease; }

/* Cart & favorite rows */
.cart-list, .favorite-list { display: flex; flex-direction: column; gap: 9px; }
.cart-item, .favorite-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.cart-item img, .favorite-item img { width: 72px; height: 55px; border-radius: 9px; object-fit: cover; background: var(--surface-2); }
.cart-item-main, .favorite-item-main { min-width: 0; }
.cart-item-name, .favorite-item-name { overflow: hidden; margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: -.15px; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-meta, .favorite-item-meta { margin: 2px 0 0; color: var(--muted); font-size: 10.5px; }
.cart-item-price, .favorite-item-price { margin-top: 3px; color: var(--orange); font-size: 12px; font-weight: 850; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.qty-control { display: inline-flex; align-items: center; gap: 5px; }
.qty-btn { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--surface); color: var(--ink); transition: background .18s ease; }
.qty-btn:hover { background: #e8edf6; }
.qty-btn .icon { width: 12px; height: 12px; }
.qty-value { min-width: 15px; text-align: center; font-size: 11.5px; font-weight: 850; }
.remove-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-size: 10.5px; font-weight: 700; }
.remove-btn .icon { width: 13px; height: 13px; }
.favorite-item-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.mini-add-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 8px; background: #fff6d8; color: #705300; font-size: 10.5px; font-weight: 750; }
.mini-add-btn .icon { width: 13px; height: 13px; }
.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cart-summary span { color: var(--muted); font-size: 12px; }
.cart-summary strong { color: var(--ink); font-size: 20px; font-weight: 900; letter-spacing: -.6px; }

/* Product detail */
.detail-media { position: relative; overflow: hidden; margin-bottom: 14px; border-radius: 18px; background: var(--surface-2); aspect-ratio: 1.5; }
.detail-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-media .product-tag { top: 10px; left: 10px; }
.detail-verified-pill {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(16, 185, 129, .94);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
  backdrop-filter: blur(6px);
}
.detail-verified-pill .icon { width: 14px; height: 14px; }
.detail-cat-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 3px; }
.detail-cat { color: var(--muted-2); font-size: 10px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.detail-subcat { color: var(--orange); font-size: 10.5px; font-weight: 850; letter-spacing: .4px; text-transform: uppercase; }
.detail-title { margin: 2px 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.6px; line-height: 1.15; }
.detail-meta { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.detail-brand {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.detail-features { margin: 14px 0 0; padding: 14px 16px; border: 1px solid #e8ecf2; border-radius: 14px; background: #f8fafc; }
.detail-features h4 { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 850; }
.detail-features ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 18px; }
.detail-features li { color: #475569; font-size: 12.5px; line-height: 1.5; }
.detail-datasheet {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px; padding: 9px 14px;
  border: 1px solid #fde68a; border-radius: 12px;
  background: #fffbeb; color: #92400e;
  font-size: 12px; font-weight: 800;
}
.detail-datasheet .icon { width: 15px; height: 15px; }
.detail-datasheet:hover { background: #fef3c7; }
.detail-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; }
.detail-price-row .price { font-size: 28px; }
.detail-price-row .old-price { font-size: 13.5px; }
.detail-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.detail-spec { padding: 11px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.detail-spec span { display: block; color: var(--muted-2); font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.detail-spec b { display: block; margin-top: 3px; overflow: hidden; font-size: 12.5px; font-weight: 850; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.detail-seller { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.seller-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0f172a; color: var(--yellow); font-size: 13px; font-weight: 900; }
.detail-seller b { display: block; font-size: 13px; font-weight: 850; }
.detail-seller small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.verified-label { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--green); font-size: 10.5px; font-weight: 850; white-space: nowrap; }
.verified-label .icon { width: 14px; height: 14px; }
.detail-actions { display: grid; gap: 9px; margin-top: 18px; }
.detail-qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.detail-qty-row > span { color: #334155; font-size: 12.5px; font-weight: 800; }
.detail-qty-row .store-fab { width: 44px; height: 44px; background: var(--yellow); color: #11182b; box-shadow: 0 8px 20px rgba(255, 184, 0, .28); }
.detail-qty-row .store-fab .icon { width: 20px; height: 20px; }
.detail-qty-row .store-fab-stepper { background: #f1f5f9; }
.detail-actions-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.detail-fav { display: grid; place-items: center; width: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--orange); }
.detail-fav .icon { width: 20px; height: 20px; }
.detail-fav.is-selected { background: #fff1d0; }
.detail-fav.is-selected .icon { fill: var(--orange); }
.btn-whatsapp {
  background: #25d366;
  color: #fff !important;
  font-weight: 850;
  box-shadow: 0 6px 18px rgba(37, 211, 102, .28);
  text-decoration: none;
}
.btn-whatsapp:hover { background: #1ebd56; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 211, 102, .38); }
.btn-whatsapp .icon { width: 18px; height: 18px; }

/* Account */
.profile-card { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, #fff9e1, #fff); }
.profile-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--yellow); }
.profile-avatar .icon { width: 23px; height: 23px; }
.profile-card b { display: block; font-size: 14px; font-weight: 850; }
.profile-card small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.profile-stat { padding: 10px 6px; border-radius: 11px; background: var(--surface); text-align: center; }
.profile-stat b { display: block; font-size: 17px; font-weight: 900; letter-spacing: -.4px; }
.profile-stat span { display: block; margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.account-menu { display: flex; flex-direction: column; gap: 7px; }
.account-link { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 12.5px; font-weight: 650; text-align: left; transition: background .18s ease, border-color .18s ease; }
.account-link:hover { background: #fafbfe; border-color: #dce2ed; }
.account-link .icon { width: 17px; height: 17px; color: var(--orange); }
.account-link .icon:last-child { width: 14px; height: 14px; margin-left: auto; color: var(--muted-2); }

/* Toast */
.toast {
  position: fixed;
  z-index: 7000;
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: #11182b;
  box-shadow: 0 16px 40px rgba(7, 12, 24, .32);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .22s ease, transform .22s ease;
}
.toast .icon { width: 16px; height: 16px; color: #3ee27f; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body.no-scroll .toast { top: calc(14px + env(safe-area-inset-top)); bottom: auto; }
.noscript { position: fixed; z-index: 99; right: 12px; bottom: 12px; left: 12px; padding: 12px; border-radius: 10px; background: #11182b; color: #fff; font-size: 12px; text-align: center; }

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes bump {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.16); }
}
.icon-btn.is-bumped .icon { animation: bump .36s ease; }
.count-badge.is-bumped { animation: bump .36s ease; }

@media (max-width: 380px) {
  .brand-logo { height: 38px; max-width: 185px; }
 .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand-mark .icon { width: 22px; height: 22px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 7.5px; letter-spacing: 1.5px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 4px; }
  .icon-btn { width: 37px; height: 37px; border-radius: 10px; }
  .icon-btn .icon { width: 19px; height: 19px; }
  .search-container input { font-size: 13.5px; }
  .section-heading > .btn { min-height: 38px; padding: 9px 13px; font-size: 12px; }
}

@media (max-width: 340px) {
  #favoritesBtn { display: none; }
}

/* Tablet */
@media (min-width: 600px) {
  .container { width: min(100% - 48px, var(--container)); }
  .header-tools { flex-direction: row; align-items: center; gap: 12px; }
  .location { flex: none; }
  .search-container { flex: 1; }
  .filter-btn > span:not(.filter-btn-count) { display: inline; }
  .main { padding-block: 26px 8px; }
  .hero { padding: 34px 30px 30px; }
  .hero-stage { min-height: 320px; }
  .agro-banner { min-height: 198px; margin-bottom: 14px; padding: 25px 27px; }
  .agro-copy { max-width: 58%; }
  .agro-title { font-size: clamp(32px, 4.2vw, 38px); }
  .agro-sub { font-size: 12px; }
  .agro-cta { font-size: 11.5px; }
  .agro-art { width: 50%; }
  .feature-grid { gap: 13px; }
  .feature-body { padding: 12px 42px 13px 13px; }
  .feature-title { font-size: 14px; }
  .feature-sub { font-size: 11px; }
  .mini-grid { gap: 9px; margin-top: 12px; }
  .mini-card { padding: 9px; font-size: 11.5px; }
  .subcategories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .product-info { padding: 12px 12px 13px; gap: 4px; }
  .product-name { font-size: 15px; }
  .product-meta { font-size: 12px; }
  .price { font-size: 19px; }
  .old-price { font-size: 11.5px; }
  .product-city { font-size: 11px; }
  .add-cart-btn { width: 34px; height: 34px; }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .step-card { padding: 23px; }
  .sell-cta { padding: 32px; margin-top: 44px; }
  .site-footer { padding-top: 38px; }
  .drawer { right: 0; left: auto; width: min(430px, 100%); max-height: none; height: 100dvh; border-radius: 0; transform: translateX(105%); }
  .drawer.is-open { transform: translateX(0); }
  .drawer-head { padding: 23px 23px 15px; }
  .drawer-body { padding: 20px 23px 26px; }
  .drawer-close { width: 38px; height: 38px; }
}
@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 30px; padding: 44px 40px; }
  .hero-copy > p { font-size: 15px; }
  .hero-trust { font-size: 12px; }
  .hero-stage { min-height: 330px; }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
  .mini-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .promo-section { margin-top: 28px; }
  .offers { margin-top: 44px; }
  .section-heading p { font-size: 13.5px; }
}

/* Desktop */
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .site { min-height: 100vh; }
  .site-header { position: sticky; top: 0; }
  .header-inner { padding-block: 12px; gap: 24px; }
  .main-nav { display: flex; }
  .site-header .header-publish { display: inline-flex; min-height: 40px; padding: 10px 15px; font-size: 12.5px; }
  .main-nav { gap: 19px; }
  .header-tools { padding-bottom: 14px; gap: 14px; }
  .search-container { height: 50px; }
  .filter-btn { height: 38px; }
  .bottom-nav { display: none; }
  .main { padding-block: 22px 8px; }
  .hero { padding: 44px 42px; gap: 30px; min-height: 360px; border-radius: 27px; }
  .hero-stage { min-height: 356px; }
  .hero h1 { letter-spacing: -2.4px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { margin-top: 27px; }
  .hero-trust { margin-top: 28px; gap: 13px 22px; font-size: 12.5px; }
  .categories { margin-top: 42px; }
  .subcategories-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .section-heading { margin-bottom: 21px; }
  .section-heading .btn { min-height: 42px; }
  .agro-banner { min-height: 214px; margin-bottom: 17px; padding: 30px 32px; }
  .agro-copy { max-width: 53%; }
  .agro-title { font-size: 39px; }
  .agro-sub { font-size: 13px; max-width: 430px; }
  .agro-cta { margin-top: 4px; font-size: 12.5px; }
  .agro-art { right: 0; bottom: -12%; width: 45%; height: 122%; }
  .feature-body { padding: 13px 44px 14px 15px; }
  .feature-title { font-size: 15px; }
  .feature-sub { font-size: 11.5px; margin-top: 3px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
  .product-info { padding: 13px 13px 14px; }
  .product-name { font-size: 15.5px; }
  .product-visual { aspect-ratio: 1.78; }
  .offers { margin-top: 50px; scroll-margin-top: 160px; }
  .categories, .steps { scroll-margin-top: 160px; }
  .steps { margin-top: 54px; }
  .step-card { padding: 25px; }
  .sell-cta { margin: 46px 0 34px; padding: 34px 38px; }
  .site-footer { padding: 28px 0 20px; }
  .footer-inner { gap: 22px; }
  .footer-copy { margin-top: 8px; }
  .toast { bottom: 24px; }
  .drawer { width: min(450px, 100%); }
}

@media (min-width: 900px) and (max-width: 1039px) {
  #notifyBtn { display: none; }
  .account-btn { display: grid; }
}

@media (min-width: 1040px) {
  .account-btn { display: grid; }
  .main-nav { gap: 25px; }
}

@media (min-width: 1080px) {
  .hero { padding: 46px 44px; }
  .hero-stage { min-height: 360px; }
  .product-visual { aspect-ratio: 1.85; }
  .section-heading h2 { font-size: 35px; }
}

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


/* ============================================================
   MARKETPLACE EXPANSION: TIENDAS, SPA ROUTING & SEARCH MULTI-DEALER
   ============================================================ */

.stores-section {
  padding: 32px 0 10px;
}

.subcat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}

.subcat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink);
  transition: all .2s ease;
}

.subcat-chip:hover {
  border-color: var(--yellow-deep);
  color: #92400e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.subcat-chip.is-active {
  background: linear-gradient(135deg, #0b101e, #1e293b);
  color: #fff;
  border-color: #0b101e;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .25);
}

/* Category View: Subcategory Tiles Grid */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}

.subcat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.subcat-tile:hover { transform: translateY(-4px); }
.subcat-tile.is-active .subcat-thumb { border-color: var(--yellow-deep); }

.subcat-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border: 2px solid transparent;
}

.subcat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.subcat-tile:hover .subcat-thumb img {
  transform: scale(1.08);
}

.subcat-name {
  max-width: 100%;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Slider de subcategorÃ­as con flechas */
.subcat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}
.subcat-title { margin: 0; font-size: 13px; font-weight: 700; }
.subcat-see-all {
  flex: none;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.subcat-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.subcat-slider {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}
.subcat-slider::-webkit-scrollbar { display: none; }
.subcat-slider .subcat-tile { flex: 0 0 90px; }
.subcat-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.subcat-arrow:hover { background: var(--yellow); border-color: var(--yellow); transform: scale(1.05); }



/* MÃ³vil: "Ver todas" despliega grilla de 2 columnas */
.subcat-grid-all {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.subcat-grid-all.is-open { display: grid; }

/* PC: modal con todas las subcategorÃ­as */
.subcat-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 16, 32, .55);
  backdrop-filter: blur(3px);
}
.subcat-modal[hidden] { display: none; }
.subcat-modal-panel {
  width: min(920px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(10, 16, 32, .3);
}
.subcat-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .subcat-arrow { display: none; }
  .subcat-slider { gap: 10px; }
}

/* Store Cards & List */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.store-card {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.store-avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b101e, #1e293b);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  flex: none;
  box-shadow: 0 4px 14px rgba(11, 16, 30, .25);
  border: 1px solid rgba(255, 196, 0, .2);
}

.store-name {
  font-weight: 850;
  font-size: 15px;
  color: var(--ink);
  display: block;
}

.store-meta {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* Directorio público de tiendas */
.stores-directory { display: flex; flex-direction: column; gap: 20px; padding: 10px 0 40px; }
.stores-directory-head { display: flex; flex-direction: column; gap: 8px; }
.stores-directory-head h1 { margin: 0; color: var(--ink); font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -.8px; line-height: 1.1; }
.stores-directory-head p { margin: 0; color: var(--muted); font-size: 13px; }
.stores-directory-head .ad-page-back { align-self: flex-start; }
.ofertas-rail { margin: 0 0 4px; }
.store-directory-tools { margin: 0; }
.store-search-top { display: flex; gap: 10px; align-items: center; }
.store-search-pill { flex: 1; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 16px; border: 1px solid #e6ecf5; border-radius: 999px; background: #f1f5f9; }
.store-search-pill .icon { flex: none; width: 18px; height: 18px; color: #94a3b8; }
.store-search-pill input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: #0b1526; font-size: 13.5px; font-weight: 600; }
.store-search-pill input::placeholder { color: #94a3b8; }
.store-search-action { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--yellow); color: #0b1526; box-shadow: 0 8px 18px rgba(255, 184, 0, .32); }
.store-search-action .icon { width: 20px; height: 20px; }
.store-filter-row { display: flex; align-items: center; gap: 8px; }
.store-filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #334155; font-size: 12px; font-weight: 800; }
.store-filter-chip .icon { width: 15px; height: 15px; color: #64748b; }
.store-filter-chip:active { background: #f8fafc; }
.store-cat-section { display: flex; flex-direction: column; gap: 10px; }
.store-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.store-cat-head h2 { margin: 0; color: #0b1526; font-size: 19px; font-weight: 900; letter-spacing: -.4px; }
.store-cat-all { display: inline-flex; align-items: center; gap: 4px; color: #0b1526; font-size: 12px; font-weight: 800; white-space: nowrap; }
.store-cat-all .icon { width: 14px; height: 14px; }
.store-cat-track-wrap { position: relative; }
.store-cat-track { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.store-cat-track::-webkit-scrollbar { display: none; }
.store-cat-item { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; text-align: center; scroll-snap-align: start; }
.store-cat-thumb { display: block; width: 68px; height: 68px; overflow: hidden; border: 1px solid #e6ecf5; border-radius: 50%; background: #f1f5f9; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.store-cat-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.store-cat-name { display: block; width: 100%; overflow: hidden; color: #475569; font-size: 10.5px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.store-cat-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #e2e8f0; border-radius: 50%; background: rgba(255, 255, 255, .96); color: #0b1526; box-shadow: 0 4px 12px rgba(15, 23, 42, .14); transform: translateY(-50%); }
.store-cat-arrow.is-prev { left: -6px; }
.store-cat-arrow.is-next { right: -6px; }
.store-cat-arrow .icon { width: 14px; height: 14px; }
.store-cat-arrow.is-prev .icon { transform: rotate(90deg); }
.store-cat-arrow.is-next .icon { transform: rotate(-90deg); }
.store-count-heading { margin: 2px 0 0; color: #0b1526; font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.store-rows { display: flex; flex-direction: column; overflow: hidden; padding: 0 14px; border: 1px solid #eef2f7; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }
.store-row-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #eef2f7; background: none; text-align: left; cursor: pointer; }
.store-row-card:last-child { border-bottom: 0; }
.store-row-logo { flex: none; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 16px; background: #0f172a; color: var(--yellow); font-size: 20px; font-weight: 900; }
.store-row-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.store-row-name { overflow: hidden; color: #0b1526; font-size: 14px; font-weight: 850; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.store-row-meta { display: flex; align-items: center; gap: 5px; overflow: hidden; color: #64748b; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.store-row-meta .icon { flex: none; width: 13px; height: 13px; color: #94a3b8; }
.store-row-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.store-row-rating { display: inline-flex; align-items: center; gap: 3px; color: #0b1526; font-size: 12px; font-weight: 850; }
.store-row-rating .icon { width: 13px; height: 13px; color: #f59e0b; fill: #f59e0b; }
.store-row-products { color: #94a3b8; font-size: 10px; font-weight: 700; }
@media (max-width: 640px) {
  #ofertasView.main { padding-top: 14px; }
  .ofertas-directory { padding-top: 0; gap: 14px; }
  .ofertas-directory .store-filter-row { padding: 0; }
  .ofertas-directory .store-cat-section { gap: 8px; }
  .store-cat-thumb { width: 62px; height: 62px; }
  .store-cat-item { flex-basis: 70px; }
  .store-row-logo { width: 52px; height: 52px; border-radius: 14px; }
}
.ofertas-directory { min-width: 0; width: 100%; max-width: 100%; }
.ofertas-directory > * { min-width: 0; }
.ofertas-directory .store-cat-section,
.ofertas-directory .store-cat-track-wrap { min-width: 0; width: 100%; max-width: 100%; }
.ofertas-directory .store-cat-track { min-width: 0; max-width: 100%; }
.ofertas-directory .store-rows { min-width: 0; width: 100%; max-width: 100%; }
.stores-directory-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px;
  border-radius: 26px;
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(255, 184, 0, .24), transparent 55%),
    linear-gradient(135deg, #0b101e, #1e293b);
  color: #fff;
  box-shadow: 0 18px 42px rgba(9, 14, 26, .24);
}
.stores-directory-copy { max-width: 600px; }
.stores-directory-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 184, 0, .14); color: #ffd66b;
  font-size: 10.5px; font-weight: 850; letter-spacing: .5px; text-transform: uppercase;
}
.stores-directory-hero .eyebrow .icon { width: 13px; height: 13px; }
.stores-directory-hero h1 { margin: 12px 0 6px; font-size: clamp(24px, 4vw, 34px); font-weight: 900; letter-spacing: -.8px; }
.stores-directory-hero p { margin: 0; color: #cbd5e1; font-size: 13.5px; line-height: 1.55; }
.stores-directory-stats { display: flex; gap: 10px; }
.stores-directory-stats span {
  display: flex; flex-direction: column; align-items: center; min-width: 88px;
  padding: 11px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
}
.stores-directory-stats b { color: #ffd66b; font-size: 22px; font-weight: 900; line-height: 1; }
.stores-directory-stats small { margin-top: 5px; color: #cbd5e1; font-size: 9.5px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.stores-directory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.store-tile {
  display: flex; flex-direction: column; overflow: hidden;
  padding: 0; border: 1px solid #e6ecf5; border-radius: 22px;
  background: #fff; text-align: left; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.store-tile:hover { transform: translateY(-4px); border-color: var(--yellow); box-shadow: 0 18px 38px rgba(15, 23, 42, .13); }
.store-tile-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 118px; background: linear-gradient(135deg, #0b101e, #263449);
}
.store-tile-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-tile-initial {
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px;
  background: var(--yellow); color: #11182b; font-size: 26px; font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 184, 0, .35);
}
.store-tile-verified {
  position: absolute; top: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: #15803d;
  font-size: 10px; font-style: normal; font-weight: 850; letter-spacing: .2px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}
.store-tile-verified .icon { width: 12px; height: 12px; }
.store-tile-body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; }
.store-tile-name { color: var(--ink); font-size: 15.5px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-tile-metarow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.store-tile-city, .store-tile-stat {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  font-size: 10.5px; font-weight: 700;
}
.store-tile-city .icon, .store-tile-stat .icon { width: 11px; height: 11px; }
.store-tile-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 34px; color: var(--muted); font-size: 12px; line-height: 1.45;
}
.store-tile-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 2px; padding-top: 10px; border-top: 1px dashed #e2e8f0;
}
.store-tile-price { color: var(--muted); font-size: 10.5px; font-weight: 700; }
.store-tile-price b { color: var(--ink); font-size: 12.5px; font-weight: 900; }
.store-tile-cta { display: inline-flex; align-items: center; gap: 4px; color: #b45309; font-size: 11.5px; font-weight: 850; }
.store-tile-cta .icon { width: 13px; height: 13px; }

@media (max-width: 640px) {
  .stores-directory-hero { padding: 20px 18px; border-radius: 22px; }
  .stores-directory-stats { width: 100%; }
  .stores-directory-stats span { flex: 1; min-width: 0; }
  .stores-directory-grid { grid-template-columns: 1fr; }
}

.store-drawer-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  text-align: left;
  transition: background .2s ease;
}

.store-drawer-item:hover {
  background: #f8fafc;
}

.drawer-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.drawer-count {
  display: grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff2e8;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
.drawer-store-list { display: grid; }
.drawer-store-row .store-avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 16px; }
.drawer-store-copy { flex: 1; min-width: 0; }
.drawer-store-row > .icon { width: 17px; height: 17px; color: #cbd5e1; flex: none; }
.drawer-foot {
  flex: none;
  padding: 11px 19px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 -14px 30px rgba(15, 23, 42, .07);
}
.drawer-foot[hidden] { display: none; }
.drawer-foot .drawer-note { margin: 0 0 8px; }
.drawer-foot .icon { width: 13px; height: 13px; vertical-align: -2px; }

.store-drawer-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-2);
}

/* Multi-Store Search Groups */
.search-group {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.search-group:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.search-group-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.search-group-head img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface-2);
}

.search-group-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  color: var(--ink);
}

.search-stores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-stores li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.search-stores button {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  transition: all .2s ease;
}

.search-stores button:hover {
  border-color: var(--yellow);
  background: #fff;
  color: #92400e;
}

.search-stores b {
  font-weight: 900;
  color: var(--ink);
  font-size: 14px;
}

/* SPA Route bar */
.route-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0 10px;
}

.route-title {
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 900;
  letter-spacing: -.6px;
  margin: 6px 0 4px;
  color: var(--ink);
}

#categoryView .section-heading h2 { font-size: 20px; letter-spacing: -.4px; }
#categoryView .section-heading p { font-size: 12px; }

.store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.store-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease;
}

.store-row:hover {
  transform: translateX(2px);
}

.store-arrow {
  margin-left: auto;
  font-weight: 800;
  font-size: 18px;
  color: #94a3b8;
  transition: transform .2s ease, color .2s ease;
}

.store-row:hover .store-arrow {
  transform: translateX(4px);
  color: var(--yellow-deep);
}

/* Store View Layout */
.store-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  align-items: start;
  margin-top: 14px;
}

.store-menu {
  min-width: 0;
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.store-product-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.store-product-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.store-product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--surface-2);
}

.store-product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.store-product-body h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  color: var(--ink);
}

.store-product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.store-product-foot b {
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
}

.store-card-media { position: relative; overflow: hidden; background: var(--surface-2); }
.store-card-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.store-card-cart { position: absolute; right: 8px; bottom: 8px; }
.store-fab {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #0b1526;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
  animation: fab-pop .18s ease both;
  transition: transform .16s ease, background .16s ease;
}
.store-fab .icon { width: 18px; height: 18px; }
.store-fab:hover { background: var(--yellow); transform: scale(1.08); }
.store-fab:active { transform: scale(.9); }
@keyframes fab-pop {
  from { opacity: 0; transform: scale(.6); }
  to { opacity: 1; transform: scale(1); }
}
.store-fab-stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .18);
  animation: fab-expand .2s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes fab-expand {
  from { opacity: 0; transform: scale(.65); }
  to { opacity: 1; transform: scale(1); }
}
.store-fab-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0b1526;
  transition: background .15s ease, transform .15s ease;
}
.store-fab-btn .icon { width: 14px; height: 14px; }
.store-fab-btn:hover { background: var(--yellow); }
.store-fab-btn:active { transform: scale(.86); }
.store-fab-count {
  min-width: 20px;
  text-align: center;
  color: #0b1526;
  font-size: 13px;
  font-weight: 900;
  animation: qty-pop .24s cubic-bezier(.34, 1.56, .64, 1) both;
}
.store-card-price { display: block; margin-top: 6px; color: var(--ink); font-size: 15px; font-weight: 900; }

.store-hero-band {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 34px 36px;
  background:
    radial-gradient(760px 320px at 90% -20%, rgba(255, 184, 0, .24), transparent 62%),
    linear-gradient(118deg, #0b1526 0%, #132138 55%, #1b2c47 100%);
  color: #fff;
}
.store-hero-watermark {
  position: absolute;
  top: -46px;
  right: 8px;
  color: rgba(255, 255, 255, .045);
  font-size: 250px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.store-hero-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 22px;
}
#storeView .store-hero-band-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "avatar head" "avatar body";
  align-items: start;
  column-gap: 22px;
  row-gap: 0;
}
#storeView .store-hero-avatar { grid-area: avatar; align-self: center; }
#storeView .store-hero-head { grid-area: head; }
#storeView .store-hero-body { grid-area: body; min-width: 0; }
.store-hero-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--yellow);
  color: #11182b;
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}
.store-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-hero-copy { min-width: 0; }
.store-hero-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: #9fb0c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.store-hero-topline > span { display: inline-flex; align-items: center; gap: 5px; }
.store-hero-topline .icon { width: 13px; height: 13px; }
.store-hero-state { padding: 3px 9px; border-radius: 999px; letter-spacing: .3px; }
.store-hero-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.store-hero-state.is-ok { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.store-hero-state.is-pending { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.store-hero-copy h1 {
  margin: 8px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -1.1px;
  line-height: 1.05;
}
.store-hero-desc-wrap { max-width: 720px; margin-top: 9px; }
.store-hero-desc {
  max-width: 720px;
  margin: 0;
  color: #b9c6d9;
  font-size: 13.5px;
  line-height: 1.55;
}
.store-hero-desc.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.store-hero-more {
  display: inline-flex;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: #ffd66b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.store-hero-more:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .store-hero-desc.is-clamped { -webkit-line-clamp: 2; }
}
.store-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
}
.store-hero-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.store-hero-meta > a { display: inline-flex; align-items: center; gap: 5px; color: inherit; font-weight: inherit; }
.store-hero-meta > a:hover { color: #b45309; text-decoration: underline; }
.store-hero-meta .icon { width: 14px; height: 14px; color: var(--yellow); }
.store-hero-band .store-hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 11px 20px;
  max-width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  color: #dbe4f0;
  font-size: 11.5px;
  font-weight: 600;
}
.store-hero-band .store-hero-meta > span,
.store-hero-band .store-hero-meta > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.3;
  transition: color .18s ease;
}
.store-hero-band .store-hero-meta > a:hover { color: #ffd66b; text-decoration: none; }
.store-hero-band .store-hero-meta .icon { flex: none; width: 15px; height: 15px; color: #ffd66b; }
.store-hero-band .store-hero-meta .store-hero-meta-wide { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .store-hero-band .store-hero-meta {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 12px;
  }
}

#storeView .store-product-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#storeView .store-product-card:hover { transform: none; box-shadow: none; border-color: transparent; }
#storeView .store-card-media { overflow: hidden; border-radius: 18px; }
#storeView .store-product-body { padding: 10px 2px 0; }
#storeView .store-product-card.is-in-cart .store-card-media { box-shadow: 0 0 0 2px var(--yellow); }

#storeView .store-search { width: 100%; }
#storeView .store-search input { width: 100%; }

@media (max-width: 640px) {
  .store-hero-band { padding: 22px 18px; }
  .store-hero-band-inner { align-items: flex-start; gap: 14px; }
  #storeView .store-hero-band-inner {
    grid-template-areas: "avatar head" "body body";
    align-items: start;
    column-gap: 14px;
    row-gap: 8px;
  }
  #storeView .store-hero-avatar { align-self: start; }
  .store-hero-avatar { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
  .store-hero-watermark { top: -24px; right: -6px; font-size: 150px; }
  .store-hero-copy h1 { font-size: 24px; letter-spacing: -.7px; }
  .store-hero-desc { font-size: 12.5px; }
  .store-hero-meta { gap: 6px 12px; font-size: 11px; margin-top: 10px; }
}

.store-sections { display: grid; gap: 24px; margin-top: 16px; }
.store-category-section { min-width: 0; }
.store-category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.store-category-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.5px;
}
.store-category-head span { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.store-see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 5px 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.store-see-all:hover { color: #b45309; }
.store-see-all .icon { width: 15px; height: 15px; }
.store-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.store-slider::-webkit-scrollbar { display: none; }
.store-slider > .store-product-card {
  flex: 0 0 clamp(210px, 23vw, 260px);
  scroll-snap-align: start;
}
@media (max-width: 640px) {
  .store-category-head h3 { font-size: 18px; }
  .store-slider > .store-product-card { flex: 0 0 134px; }
  .store-slider .store-product-card { padding: 8px; border-radius: 16px; }
  .store-slider .store-card-media { border-radius: 12px; }
  .store-slider .store-product-body { padding: 8px 2px 2px; gap: 1px; }
  .store-slider .store-product-body h4 { font-size: 12px; }
  .store-slider .store-product-body .store-meta { font-size: 10.5px; }
  .store-slider .store-card-price { margin-top: 4px; font-size: 13px; }
  .store-slider .store-fab { width: 32px; height: 32px; }
  .store-slider .store-fab-btn { width: 26px; height: 26px; }
  .store-slider .store-fab-count { min-width: 17px; font-size: 12px; }
}

#storeCategoryRoot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}
#storeCategoryRoot .store-category-modal { max-width: 900px; }
.store-cat-chips { margin: 14px 0 4px; }
.store-cat-grid { margin-top: 10px; }
@media (min-width: 721px) {
  #storeCategoryRoot { align-items: center; }
}

.store-overlay--top { z-index: 120; }
#storeProductDetailRoot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}
#storeProductDetailRoot .store-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  max-width: 940px;
  padding: 0;
  overflow: hidden;
}
.store-product-detail { background: #fff; }
.store-detail-close-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  display: flex;
  justify-content: flex-end;
  height: 0;
  padding: 10px 10px 0;
  pointer-events: none;
}
.store-detail-close { position: static; pointer-events: auto; background: rgba(255, 255, 255, .94); }
.store-detail-media-col { display: flex; flex-direction: column; min-width: 0; background: #f1f5f9; }
.store-detail-media-shell { position: relative; min-width: 0; }
.store-detail-main {
  display: grid;
  place-items: center;
  height: min(58vh, 560px);
  overflow: hidden;
  background: #eef2f7;
}
.store-detail-main.is-animating > img,
.store-detail-main.is-animating > video,
.store-detail-main.is-animating > iframe { animation: detail-media-in .22s ease both; }
@keyframes detail-media-in {
  from { opacity: .35; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}
.store-detail-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #0b1526;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
  font-size: 0;
  line-height: 0;
  transform: translateY(-50%);
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.store-detail-nav .icon { width: 20px; height: 20px; transform: rotate(-90deg); transition: transform .16s ease; }
.store-detail-nav.is-prev .icon { transform: rotate(90deg); }
.store-detail-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .24);
}
.store-detail-nav:active { transform: translateY(-50%) scale(.88); }
.store-detail-nav:active .icon { transform: rotate(-90deg) scale(.82); }
.store-detail-nav.is-prev:active .icon { transform: rotate(90deg) scale(.82); }
.store-detail-nav.is-prev { left: 10px; }
.store-detail-nav.is-next { right: 10px; }
.store-detail-main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.store-detail-main video { display: block; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.store-detail-main iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
.store-detail-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #fff; scrollbar-width: none; }
.store-detail-thumbs::-webkit-scrollbar { display: none; }
.store-detail-thumb {
  flex: none;
  width: 54px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #e2e8f0;
}
.store-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-detail-thumb.is-active { border-color: var(--yellow); }
.store-thumb-video { display: grid; place-items: center; width: 100%; height: 100%; background: #0b1526; color: #fff; font-size: 14px; }
.store-product-detail-copy { min-width: 0; max-height: 92vh; overflow-y: auto; padding: 26px 26px 96px; }
.store-product-detail-copy h2 { margin: 4px 0 0; color: var(--ink); font-size: 24px; font-weight: 900; letter-spacing: -.6px; }
.store-detail-price { margin-top: 10px; color: var(--ink); font-size: 26px; font-weight: 900; letter-spacing: -.8px; }
.store-detail-meta { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.store-detail-desc { margin: 16px 0 0; white-space: pre-line; color: #475569; font-size: 13.5px; line-height: 1.6; }
.store-detail-features { margin-top: 16px; padding: 14px 16px; border: 1px solid #e8ecf2; border-radius: 14px; background: #f8fafc; }
.store-detail-features h3 { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 850; }
.store-detail-features ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 18px; }
.store-detail-features li { color: #475569; font-size: 12.5px; line-height: 1.5; }
.store-detail-datasheet {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 14px; padding: 10px 14px;
  border: 1px solid #fde68a; border-radius: 12px;
  background: #fffbeb; color: #92400e;
  font-size: 12px; font-weight: 800;
}
.store-detail-datasheet .icon { width: 15px; height: 15px; }
.store-detail-datasheet:hover { background: #fef3c7; }
.store-detail-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}
.store-detail-qty > span { color: #334155; font-size: 13px; font-weight: 800; }
@media (max-width: 760px) {
  #storeProductDetailRoot { align-items: flex-end; }
  #storeProductDetailRoot .store-product-detail {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .store-detail-main { height: min(45vh, 420px); }
  .store-product-detail-copy { max-height: none; padding: 18px 18px 92px; }
  .store-product-detail-copy h2 { font-size: 20px; }
  .store-detail-price { font-size: 22px; }
}
@media (min-width: 761px) {
  #storeProductDetailRoot { align-items: center; }
}

/* Sticky "Mi Pedido" Cart in Store View */
.mi-pedido {
  position: sticky;
  top: 90px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .06);
}

.mi-pedido h3 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.4px;
  color: var(--ink);
}

.mi-pedido-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}

.mi-pedido-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 2px solid #f1f5f9;
}

.store-layout--no-cart { grid-template-columns: minmax(0, 1fr); }

.store-add-btn { padding: 8px 14px; font-size: 12.5px; border-radius: 999px; }
.store-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
}
.store-qty-btn {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #0b1526;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.store-qty-btn::before,
.store-qty-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.store-qty-btn::before { width: 12px; height: 2px; }
.store-qty-btn::after { width: 2px; height: 12px; }
.store-qty-btn[data-store-minus]::after { content: none; }
.store-qty-btn:hover { background: var(--yellow); transform: scale(1.1); }
.store-qty-btn:active { transform: scale(.88); }
.store-qty-num {
  min-width: 22px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 900;
  color: #0b1526;
  animation: qty-pop .24s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes qty-pop {
  0% { transform: scale(.55); opacity: .2; }
  100% { transform: scale(1); opacity: 1; }
}
.store-product-card.is-in-cart {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .18);
}
.store-product-card.is-bump { animation: card-bump .32s ease; }
@keyframes card-bump {
  0% { transform: scale(1); }
  45% { transform: scale(1.018); }
  100% { transform: scale(1); }
}

.store-summary {
  position: fixed;
  z-index: 24;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(100% - 32px, 720px);
  overflow: hidden;
  border-radius: 18px;
  background: rgba(11, 17, 32, .96);
  color: #fff;
  box-shadow: 0 18px 50px rgba(11, 17, 32, .35);
  backdrop-filter: blur(14px);
  animation: summary-in .28s cubic-bezier(.22, .61, .36, 1) both;
}
.store-summary[hidden] { display: none !important; }
@keyframes summary-in {
  from { opacity: 0; transform: translate(-50%, 18px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.store-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 18px;
}
.store-summary-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  padding: 0;
  color: inherit;
  text-align: left;
}
.store-summary-toggle > .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: #93a4c1;
  transition: transform .2s ease, color .2s ease;
}
.store-summary-toggle:hover > .icon { color: var(--yellow); }
.store-summary-toggle[aria-expanded="true"] > .icon { transform: rotate(180deg); color: var(--yellow); }
.store-summary-info { display: block; min-width: 0; }
.store-summary-info > span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #93a4c1;
}
.store-summary-info b { display: block; margin-top: 1px; font-size: 20px; font-weight: 900; letter-spacing: -.5px; }
.store-summary-info small { display: block; margin-top: 1px; font-size: 11px; color: #93a4c1; }
.store-summary .btn { flex: none; }
.store-summary-detail {
  max-height: min(46vh, 320px);
  overflow-y: auto;
  padding: 6px 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  animation: summary-detail-in .22s ease both;
}
.store-summary-detail[hidden] { display: none !important; }
@keyframes summary-detail-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.store-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  font-size: 12.5px;
  color: #dbe4f3;
}
.store-summary-item:last-child { border-bottom: 0; }
.store-summary-item b { flex: none; color: #fff; font-weight: 800; }
.store-summary-item--total {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.store-summary-item--total b { color: var(--yellow); }

.store-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.store-cart-row b { flex: none; font-weight: 800; }
.store-cart-row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 2px solid #f1f5f9;
  border-bottom: 0;
  font-size: 16px;
  font-weight: 900;
}

.store-cart-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}
.store-cart-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(135deg, #0b101e, #1e293b);
  color: var(--yellow);
  font-size: 18px;
  font-weight: 900;
}
.store-cart-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-cart-head-copy { min-width: 0; }
.store-cart-head-copy .store-name { font-size: 15px; }
.store-cart-head-copy .store-meta { margin-top: 2px; }
.store-cart-list { margin-top: 2px; }
.store-cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}
.store-cart-thumb {
  width: 66px;
  height: 66px;
  flex: none;
  border-radius: 14px;
  background: #f1f5f9;
  object-fit: cover;
}
.store-cart-copy { flex: 1; min-width: 0; }
.store-cart-name { margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 800; line-height: 1.35; }
.store-cart-unit { margin: 3px 0 0; color: var(--muted); font-size: 11.5px; }
.store-cart-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.store-cart-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #f6f8fb;
}
.store-cart-stepper button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #334155;
  transition: background .16s ease, color .16s ease;
}
.store-cart-stepper button:hover { background: #fff; color: var(--orange); }
.store-cart-stepper button .icon { width: 13px; height: 13px; }
.store-cart-stepper span { min-width: 22px; text-align: center; color: var(--ink); font-size: 12px; font-weight: 900; }
.store-cart-line { flex: none; color: var(--ink); font-size: 13.5px; font-weight: 900; }
.store-cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid #eef2f7;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.store-cart-subtotal b { font-size: 20px; font-weight: 900; letter-spacing: -.5px; }

/* Resumen de pedido en el drawer */
.store-checkout-drawer { display: flex; flex-direction: column; gap: 0; }
.store-checkout-store { display: flex; align-items: center; gap: 10px; padding: 0 0 14px; border: 0; border-bottom: 1px solid #eef2f7; border-radius: 0; background: transparent; }
.store-checkout-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #0f172a; color: var(--yellow); font-size: 16px; font-weight: 900; }
.store-checkout-store-copy { flex: 1; min-width: 0; }
.store-checkout-store-copy strong { display: block; overflow: hidden; color: #0b1526; font-size: 13px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.store-checkout-store-copy small { display: block; margin-top: 2px; color: #8492a8; font-size: 11px; }
.store-checkout-store-badge { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 9.5px; font-weight: 800; }
.store-checkout-store-badge .icon { width: 12px; height: 12px; }
.store-checkout-list { display: flex; flex-direction: column; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.store-checkout-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #f1f5f9; }
.store-checkout-item:last-child { border-bottom: 0; }
.store-checkout-thumb { flex: none; width: 54px; height: 54px; border-radius: 12px; background: #f1f5f9; object-fit: cover; }
.store-checkout-copy { flex: 1; min-width: 0; }
.store-checkout-name { margin: 0; color: #0b1526; font-size: 12.5px; font-weight: 800; line-height: 1.3; }
.store-checkout-meta { margin: 3px 0 0; color: #8492a8; font-size: 11px; font-weight: 600; }
.store-checkout-line { flex: none; color: #0b1526; font-size: 12.5px; font-weight: 900; }
.store-checkout-summary { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 0; border: 0; border-top: 1px solid #eef2f7; border-radius: 0; background: transparent; }
.store-checkout-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #64748b; font-size: 12px; font-weight: 600; }
.store-checkout-summary b { color: #0b1526; font-weight: 850; }
.store-checkout-summary em { color: #94a3b8; font-style: normal; font-size: 11px; }
.store-checkout-total { margin-top: 2px; padding-top: 10px; border-top: 1px dashed #e2e8f0; color: #0b1526 !important; font-size: 14px !important; font-weight: 900 !important; }
.store-checkout-total b { font-size: 18px; }
.store-checkout-note { display: flex; align-items: center; gap: 6px; margin: 13px 0 0; color: #94a3b8; font-size: 11px; line-height: 1.4; }
.store-checkout-note .icon { flex: none; width: 14px; height: 14px; }
.store-checkout-actions { position: sticky; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; margin-top: 13px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eef2f7; background: #fff; }
.store-cart-suggestions { margin-top: 20px; }
.store-cart-suggestions h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.store-cart-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.store-cart-slider::-webkit-scrollbar { display: none; }
.store-cart-suggest {
  display: flex;
  flex: 0 0 132px;
  flex-direction: column;
  gap: 6px;
  padding: 7px;
  border-radius: 15px;
  background: #f8fafc;
  scroll-snap-align: start;
}
.store-cart-suggest-media {
  height: 86px;
  overflow: hidden;
  border-radius: 11px;
  background: #eef2f7;
}
.store-cart-suggest-media img { width: 100%; height: 100%; object-fit: cover; }
.store-cart-suggest-name {
  display: -webkit-box;
  min-height: 30px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.store-cart-suggest-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.store-cart-suggest-foot b { color: var(--ink); font-size: 12px; font-weight: 900; }
.store-cart-add {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--orange);
  box-shadow: 0 3px 10px rgba(15, 23, 42, .10);
}
.store-cart-add:hover { background: var(--orange); color: #fff; }
.store-cart-add .icon { width: 13px; height: 13px; }
.store-detail-fab {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: 0;
  display: flex;
  justify-content: center;
  width: min(100%, 940px);
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e9eef5;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, .1);
  transform: translateX(-50%);
}
.store-detail-fab[hidden] { display: none !important; }
.store-detail-fab .btn { width: min(100%, 520px); }
body.store-summary-open #storeView { padding-bottom: 110px; }
body.store-summary-open .site-footer { padding-bottom: 132px; }
body.offers-summary-open #offersView { padding-bottom: 110px; }
body.offers-summary-open .site-footer { padding-bottom: 132px; }

@media (max-width: 800px) {
  .store-layout { grid-template-columns: 1fr; }
  .mi-pedido { display: none; }
  .store-summary {
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 10px);
  }
  .store-summary-bar { padding: 10px 12px 10px 15px; gap: 10px; }
  .store-summary-detail { padding: 4px 15px 8px; }
  .store-summary-info b { font-size: 18px; }
  .store-summary .btn-primary { padding-inline: 13px; font-size: 12.5px; }
  body.store-summary-open .site-footer { padding-bottom: calc(22px + var(--nav-height) + env(safe-area-inset-bottom) + 96px); }
  body.offers-summary-open .site-footer { padding-bottom: calc(22px + var(--nav-height) + env(safe-area-inset-bottom) + 96px); }
}


/* Route transitions */
.view-in {
  animation: view-in .4s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* MÃ³vil: en pÃ¡ginas internas (no home) el logo se reemplaza por la ubicaciÃ³n */
.brand-location { display: none; }
@media (max-width: 900px) {
  .site-header.is-subpage .brand { display: none; }
  .site-header.is-subpage .brand-location { display: inline-flex; }
  .site-header.is-subpage .header-tools > .location { display: none; }
}

/* Login, registro y paneles: sin buscador ni selector de ciudad */
body.is-focus .header-tools,
body.is-focus .brand-location { display: none; }
@media (max-width: 900px) {
  body.is-focus .site-header.is-subpage .brand { display: inline-flex; }
  body.is-focus .site-header.is-subpage .brand-location { display: none; }
}

/* Marketplace: avisos + chat */
.publish-choice { display: flex; flex-direction: column; gap: 12px; }
.publish-option { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; text-align: left; cursor: pointer; }
.publish-option:hover { border-color: var(--yellow); }
.publish-option strong { font-size: 15px; }
.publish-option span { font-size: 12px; color: var(--muted); line-height: 1.4; }

.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.ad-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e6e9f0; border-radius: 16px; background: #fff; }
.ad-card[data-open-ad] { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ad-card[data-open-ad]:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: var(--shadow-md); }
.ad-card > img { width: 100%; height: 170px; object-fit: cover; }

.ads-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.ads-filters .store-search { flex: 1; min-width: 220px; }
#adsView .store-search input { width: 100%; }
.ads-category-select {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 1 220px;
  min-width: 190px;
  min-height: 46px;
  padding: 0 40px 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  color: #1e293b;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.ads-category-select:hover { border-color: #fbbf24; background-color: #fffdf5; }
.ads-category-select:focus {
  outline: none;
  border-color: #fbbf24;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, .18);
}
.ads-boost-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ads-boost-toggle .icon { width: 16px; height: 16px; color: #b45309; }
.ads-boost-toggle.is-active { border-color: #fbbf24; background: #fff7e0; color: #92400e; }
.ads-sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 18px; }
.ads-category-section { min-width: 0; }
.ads-slider {
  display: flex;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ads-slider::-webkit-scrollbar { display: none; }
.ads-slider .ad-card { flex: 0 0 clamp(220px, 24vw, 280px); scroll-snap-align: start; }
.ads-slider .ad-card > img { height: 150px; }
@media (max-width: 640px) {
  .ads-slider .ad-card { flex-basis: 150px; }
  .ads-slider .ad-card > img { height: 108px; }
  .ads-slider .ad-body { padding: 10px; gap: 3px; }
  .ads-slider .ad-body h3 { font-size: 13px; }
  .ads-slider .ad-price { font-size: 14px; }
}

#adCategoryRoot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}
#adCategoryRoot .ad-category-modal { max-width: 1000px; }
.ad-category-modal .ads-grid { margin-top: 14px; }
@media (min-width: 721px) {
  #adCategoryRoot { align-items: center; }
}

/* =========================================================
   PRO APPLE HIG AD DETAIL MODAL (MARKETPLACE)
   ========================================================= */
#adDetailOverlay.store-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 20, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
  overflow: hidden;
}

#adDetailRoot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  pointer-events: none;
}

#adDetailRoot > * {
  pointer-events: auto;
}

/* Modal Card Base (Desktop Default) */
#adDetailRoot .ad-detail-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  width: min(980px, 94vw);
  max-width: 980px;
  max-height: 88vh;
  max-height: 88dvh;
  margin: auto;
  padding: 0;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 70px rgba(9, 20, 42, 0.35);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* Close Button Bar */
#adDetailRoot .ad-detail-card > .store-detail-close-bar {
  position: sticky;
  top: 0;
  right: auto;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: start;
  z-index: 12;
  display: flex;
  justify-content: flex-end;
  height: 0;
  padding: 0;
  pointer-events: none;
}

#adDetailRoot .store-detail-close.ad-close-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(242, 242, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1c1c1e;
  cursor: pointer;
  pointer-events: auto;
  margin: 12px 12px 0 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s ease, color 0.15s ease;
}

#adDetailRoot .store-detail-close.ad-close-btn .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

#adDetailRoot .store-detail-close.ad-close-btn:hover {
  background: #1c1c1e;
  color: #ffffff;
  transform: scale(1.08);
}

#adDetailRoot .store-detail-close.ad-close-btn:active {
  transform: scale(0.92);
}

/* Sheet Handle (Hidden on Desktop) */
#adDetailRoot .store-sheet-handle {
  display: none;
}

/* Left Column: Media Gallery */
#adDetailRoot .ad-detail-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 0;
  background: #0a1120;
  position: relative;
  overflow: hidden;
}

#adDetailRoot .ad-detail-media .store-detail-media-shell {
  position: relative;
  flex: none;
  height: min(58vh, 560px);
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#adDetailRoot .ad-detail-media .store-detail-main {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #0a1120;
  overflow: hidden;
}

#adDetailRoot .ad-detail-media .store-detail-main img,
#adDetailRoot .ad-detail-media .store-detail-main video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

#adDetailRoot .store-detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0b1526;
  border: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

#adDetailRoot .store-detail-nav.is-prev { left: 14px; }
#adDetailRoot .store-detail-nav.is-next { right: 14px; }

#adDetailRoot .store-detail-nav:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

#adDetailRoot .store-detail-nav:active {
  transform: translateY(-50%) scale(0.9);
}

/* Thumbs row */
#adDetailRoot .store-detail-thumbs {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(10, 17, 32, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

#adDetailRoot .store-detail-thumbs::-webkit-scrollbar {
  display: none;
}

#adDetailRoot .store-detail-thumb {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 0;
  overflow: hidden;
  background: #1e293b;
  cursor: pointer;
  transition: all 0.18s ease;
}

#adDetailRoot .store-detail-thumb.is-active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
  transform: scale(1.04);
}

#adDetailRoot .store-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Column: Copy & Details */
#adDetailRoot .ad-detail-copy {
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  overflow: visible;
  padding: 32px 34px 28px;
  box-sizing: border-box;
}

#adDetailRoot .ad-detail-copy::-webkit-scrollbar {
  width: 6px;
}
#adDetailRoot .ad-detail-copy::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #d1d5db;
}

#adDetailRoot .ad-detail-header-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

#adDetailRoot .ad-badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

#adDetailRoot .ad-badge-pro .icon {
  width: 12px;
  height: 12px;
}

#adDetailRoot .store-section-kicker {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8e8e93;
}

#adDetailRoot .ad-detail-copy h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.5vw, 27px);
  font-weight: 900;
  letter-spacing: -0.7px;
  line-height: 1.2;
  color: #0b1526;
  padding-right: 40px;
}

#adDetailRoot .ad-price-hero {
  margin-top: 10px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.9px;
  color: #0b1526;
  line-height: 1;
}

#adDetailRoot .store-detail-meta {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #8e8e93;
}

#adDetailRoot .ad-detail-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #f8fafc;
}

#adDetailRoot .ad-detail-info span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #8e8e93;
}

#adDetailRoot .ad-detail-info b {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1c1c1e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#adDetailRoot .store-detail-desc {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  white-space: pre-line;
}

/* Map Section */
#adDetailRoot .ad-detail-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

#adDetailRoot .ad-map-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #334155;
}

#adDetailRoot .ad-map-kicker .icon {
  width: 14px;
  height: 14px;
  color: #f59e0b;
}

#adDetailRoot .ad-detail-map {
  flex: none;
  width: 100%;
  min-width: 0;
  height: clamp(170px, 24vh, 210px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #eef2f7;
  touch-action: pan-y !important;
}

/* Disable map dragging from blocking page scroll */
#adDetailRoot .ad-detail-map .leaflet-pane {
  pointer-events: none;
}

#adDetailRoot .ad-map-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #1c1c1e;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

#adDetailRoot .ad-map-button .icon:first-child {
  width: 16px;
  height: 16px;
  color: #f59e0b;
}
#adDetailRoot .ad-map-button .icon:last-child {
  width: 14px;
  height: 14px;
  color: #8e8e93;
}

#adDetailRoot .ad-map-button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Action Buttons Dock */
#adDetailRoot .ad-detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 24px;
  padding-top: 6px;
}

#adDetailRoot .ad-btn-wa {
  min-width: 0;
  flex: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffc62e, #f2a000);
  color: #1c1305;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

#adDetailRoot .ad-btn-wa .icon {
  width: 18px;
  height: 18px;
}

#adDetailRoot .ad-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

#adDetailRoot .ad-btn-wa:active {
  transform: scale(0.98);
}

#adDetailRoot .ad-btn-chat {
  min-width: 0;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 14px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

#adDetailRoot .ad-btn-chat .icon {
  width: 18px;
  height: 18px;
}

#adDetailRoot .ad-btn-chat:hover {
  background: #e2e8f0;
  color: #0b1526;
  transform: translateY(-1px);
}

#adDetailRoot .ad-btn-chat:active {
  transform: scale(0.98);
}

/* =========================================================
   RESPONSIVE MOBILE MODAL (APPLE iOS BOTTOM SHEET)
   ========================================================= */
@media (max-width: 860px) {
  #adDetailOverlay.store-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  #adDetailRoot {
    align-items: flex-end !important;
    justify-content: center;
    width: 100%;
    height: 100%;
  }

  #adDetailRoot .ad-detail-card {
    display: block;
    min-height: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    margin: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3) !important;
    padding-bottom: 0 !important;
  }

  /* Sheet Handle */
  #adDetailRoot .store-sheet-handle {
    display: block;
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    margin: 10px auto 4px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  /* Sticky Close Button on Mobile */
  #adDetailRoot .ad-detail-card > .store-detail-close-bar {
    position: sticky;
    top: 0;
    right: auto;
    z-index: 20;
  }

  #adDetailRoot .store-detail-close.ad-close-btn {
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
  }

  #adDetailRoot .store-detail-close.ad-close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
  }

  /* Media Gallery on Mobile */
  #adDetailRoot .ad-detail-media {
    flex: none;
    width: 100%;
    height: auto;
    background: #0a1120;
    position: relative;
    border-radius: 28px 28px 0 0;
  }

  #adDetailRoot .ad-detail-media .store-detail-media-shell {
    height: min(38vh, 280px);
    max-height: 280px;
  }

  #adDetailRoot .ad-detail-media .store-detail-main {
    height: 100%;
  }

  #adDetailRoot .store-detail-thumbs {
    padding: 8px 14px;
    gap: 8px;
  }

  #adDetailRoot .store-detail-thumb {
    width: 46px;
    height: 46px;
    border-radius: 10px;
  }

  /* Copy on Mobile */
  #adDetailRoot .ad-detail-copy {
    flex: none;
    min-height: 0;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 20px 18px 0 !important;
  }

  #adDetailRoot .ad-detail-copy h2 {
    font-size: 21px;
    padding-right: 0;
  }

  #adDetailRoot .ad-price-hero {
    font-size: 26px;
    margin-top: 6px;
  }

  #adDetailRoot .ad-detail-info {
    padding: 12px 14px;
    gap: 10px;
    margin-top: 14px;
  }

  #adDetailRoot .ad-detail-info b {
    font-size: 12.5px;
  }

  #adDetailRoot .ad-detail-map {
    height: clamp(160px, 22vh, 190px);
  }

  /* Keep contact actions inside the content width and normal scroll flow. */
  #adDetailRoot .ad-detail-actions {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    margin: 20px 0 0 !important;
    padding: 12px 0 max(16px, env(safe-area-inset-bottom)) !important;
    background: #fff;
    border-top: 1px solid #eef2f7;
    box-shadow: none;
  }

  #adDetailRoot .ad-detail-actions > .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
  }

  #adDetailRoot .ad-detail-actions .icon {
    flex: 0 0 18px;
  }
  #adDetailRoot .ad-btn-wa,
  #adDetailRoot .ad-btn-chat {
    min-height: 46px;
    font-size: 13.5px;
  }
}

/* Marketplace ad detail inside the drawer (same pattern as /ofertas) */
.ad-drawer-media { position: relative; }
.ad-drawer-media .ad-drawer-main {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ad-drawer-media .ad-drawer-main img,
.ad-drawer-media .ad-drawer-main video,
.ad-drawer-media .ad-drawer-main iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  object-fit: cover;
}
.ad-drawer-media .ad-drawer-main video { background: #000; }
.ad-drawer-media .ad-drawer-main iframe { object-fit: initial; }
.ad-drawer-media .ad-placeholder { width: 100%; height: 100%; }
.ad-drawer-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .68);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ad-drawer-thumbs {
  display: flex;
  gap: 8px;
  margin: -4px 0 14px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ad-drawer-thumbs::-webkit-scrollbar { display: none; }
.ad-drawer-thumbs .store-detail-thumb {
  flex: none;
  width: 54px;
  height: 54px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #eef2f7;
}
.ad-drawer-thumbs .store-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-drawer-thumbs .store-detail-thumb.is-active { border-color: var(--yellow); }
.ad-drawer-badge { margin-left: 2px; }
.ad-drawer-map-wrap { display: grid; gap: 8px; margin-top: 16px; }
.ad-drawer-map-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-drawer-map-title .icon { width: 14px; height: 14px; color: var(--orange); }
.ad-drawer-actions { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }
.ad-drawer-actions .btn { flex: 0 1 170px; min-width: 0; min-height: 48px; padding-inline: 14px; justify-content: center; }
.ad-drawer-actions .btn .icon { width: 18px; height: 18px; }

/* Product detail modal (reuses the ad detail layout) */
#adDetailRoot .ad-old-price {
  margin-left: 8px;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.3px;
  text-decoration: line-through;
}
#adDetailRoot .ad-detail-copy .detail-seller { margin-top: 18px; }
#adDetailRoot .ad-detail-copy .detail-actions { margin-top: 20px; }
#adDetailRoot .ad-detail-copy .detail-actions .btn { min-height: 50px; }
#adDetailRoot .ad-detail-copy .detail-fav { width: 50px; }

.ad-placeholder { display: grid; place-items: center; height: 170px; background: var(--surface-2); color: var(--muted); }
.ad-placeholder .icon { width: 42px; height: 42px; }
.ad-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.ad-body h3 { margin: 0; font-size: 15px; }
.ad-badge { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: #11182b; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ad-price { margin: 0; font-size: 16px; font-weight: 800; }
.ad-actions { display: flex; gap: 8px; margin-top: 8px; }
.ad-actions .btn { flex: 1; }

.chat-box { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: auto; margin-bottom: 12px; }
.chat-msg { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 13px; }
.chat-msg b { font-size: 11px; color: var(--muted); }
#adChatCount { float: right; color: #94a3b8; font-size: 10.5px; font-weight: 600; letter-spacing: 0; }
.chat-rules { margin: -2px 0 10px; color: #94a3b8; font-size: 11px; line-height: 1.45; }
.chat-msg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chat-msg-head time { flex: none; color: #94a3b8; font-size: 9.5px; }

.chat-filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; scrollbar-width: none; }
.chat-filters::-webkit-scrollbar { display: none; }
.chat-filter {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.chat-filter.is-active { background: #0b1526; color: #fff; }
.chat-list { display: grid; gap: 7px; }
.chat-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fff;
  color: #0b1526;
  text-align: left;
  transition: background .15s ease, border-color .15s ease;
}
.chat-list-item:hover { background: #f8fafc; border-color: #e2e8f0; }
.chat-list-item.is-unread { border-color: #fde68a; background: #fffdf5; }
.chat-list-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--yellow);
  color: #11182b;
  font-size: 15px;
  font-weight: 800;
}
.chat-list-main { flex: 1; min-width: 0; }
.chat-list-main strong { display: block; overflow: hidden; font-size: 12.5px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-main small { display: block; overflow: hidden; margin-top: 1px; color: #8492a8; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-main p { overflow: hidden; margin: 3px 0 0; color: #64748b; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.chat-list-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.chat-list-side time { color: #94a3b8; font-size: 9.5px; white-space: nowrap; }
.chat-list-side b {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.chat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 46vh;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 12px 10px;
  border-radius: 18px;
  background: #f6f8fb;
}
.chat-date { align-self: center; margin: 8px 0 6px; padding: 3px 9px; border-radius: 999px; background: rgba(15, 23, 42, .05); color: #8492a8; font-size: 9.5px; font-weight: 700; }
.chat-bubble-row { display: flex; margin: 1px 0; }
.chat-bubble-row.is-own { justify-content: flex-end; }
.chat-bubble {
  max-width: 82%;
  padding: 8px 11px 6px;
  border: 1px solid #e9eef6;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.chat-bubble-row.is-own .chat-bubble {
  border-color: transparent;
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, #ffd54a, #ffb800);
  box-shadow: none;
}
.chat-bubble p { margin: 0; color: #1e293b; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-bubble-row.is-own .chat-bubble p { color: #11182b; }
.chat-bubble time { display: block; margin-top: 3px; color: #94a3b8; font-size: 9px; text-align: right; }
.chat-bubble-row.is-own .chat-bubble time { color: rgba(17, 24, 43, .55); }
.chat-sender { display: block; margin-bottom: 2px; color: #64748b; font-size: 10px; font-weight: 800; }

.chat-form { display: grid; gap: 7px; }
.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.chat-composer:focus-within { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .15); }
.chat-composer textarea {
  flex: 1;
  min-height: 38px;
  max-height: 120px;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  outline: none;
  resize: none;
}
.chat-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: #11182b;
  transition: transform .15s ease, background .15s ease;
}
.chat-send .icon { width: 18px; height: 18px; transform: rotate(-45deg); }
.chat-send:hover { background: #ffc62e; transform: scale(1.06); }
.chat-send:active { transform: scale(.9); }
.chat-send:disabled { opacity: .55; transform: none; cursor: default; }
.chat-compose-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chat-compose-meta > small { flex: none; color: #94a3b8; font-size: 10px; }
.chat-rules-box { color: #94a3b8; font-size: 10.5px; line-height: 1.4; }
.chat-rules-box summary { cursor: pointer; font-weight: 700; list-style: none; }
.chat-rules-box summary::-webkit-details-marker { display: none; }
.chat-rules-box p { margin: 4px 0 0; }

/* Auth: registro y login */
.auth-wrap { display: grid; place-items: center; padding: 34px 0 60px; }
.auth-card { width: min(540px, 100%); padding: 26px; border: 1px solid #e6e9f0; border-radius: 18px; background: #fff; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.auth-type { display: flex; flex-direction: column; gap: 10px; }
.auth-type-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; }
.auth-type-option input { margin-top: 3px; }
.auth-type-option strong { display: block; font-size: 14px; }
.auth-type-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.auth-switch { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.auth-switch a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid #e6ecf5;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.account-card-body { min-width: 0; }
.account-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--yellow);
  color: #11182b;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(255, 184, 0, .28);
}
.account-name { margin: 0; overflow: hidden; color: #0b1526; font-size: 19px; font-weight: 800; letter-spacing: -.4px; text-overflow: ellipsis; white-space: nowrap; }
.account-meta { margin: 2px 0 0; color: #6b7280; font-size: 12.5px; line-height: 1.35; word-break: break-word; }
.account-store {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 700;
}
.account-store .icon { flex: none; width: 16px; height: 16px; }
.account-store > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-store-status { flex: none; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .2px; }
.account-store-status--ok { background: #dcfce7; color: #15803d; }
.account-store-status--warn { background: #fef3c7; color: #b45309; }
.account-store-status--bad { background: #fee2e2; color: #b91c1c; }
.account-store--delivery { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.account-store--delivery .account-store-status {
  max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: #dbeafe; color: #1d4ed8;
}
.account-type-pill {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px;
  background: #eef2f7; color: #475569;
  font-size: 10.5px; font-weight: 800; line-height: 1; letter-spacing: .1px;
  white-space: nowrap;
}
.account-type-pill .icon { width: 13px; height: 13px; }
.account-type-pill--repartidor { background: #e0f2fe; color: #0369a1; }
.account-type-pill--tienda { background: #fef3c7; color: #b45309; }
.account-type-pill--marketplace { background: #ede9fe; color: #6d28d9; }
.account-type-pill--comprador { background: #dcfce7; color: #15803d; }
.account-type-pill--admin { background: #e2e8f0; color: #0f172a; }

.drawer-menu {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 9px 14px;
  border-bottom: 1px solid #f1f3f7;
  color: #0b1526;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  transition: background .15s ease;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: #f8fafc; }
.menu-item:active { background: #f2f2f7; }
.menu-item > .icon:first-child {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 6px;
  border-radius: 8px;
  background: #fff4d6;
  color: #b45309;
}
.menu-item > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item-value { flex: none; color: #8e8e93; font-size: 12.5px; font-weight: 650; }
.menu-item::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-top: 2px solid #c7c7cc;
  border-right: 2px solid #c7c7cc;
  transform: rotate(45deg);
}
.account-logout { margin-top: 14px; }
.account-logout .btn-ghost {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #d92d20;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.account-logout .btn-ghost:hover { background: #fff5f5; }
.icon-btn.is-logged { color: var(--yellow); }

/* Modal de publicaciÃ³n (diseÃ±o con imÃ¡genes) */
.publish-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 18px; }
.publish-modal[hidden] { display: none; }
.publish-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 18, 38, .6); backdrop-filter: blur(5px); }
.publish-modal-card { position: relative; z-index: 1; width: min(100%, 740px); max-height: 92vh; overflow: auto; background: #fff; border-radius: 32px; padding: 38px 38px 32px; box-shadow: 0 26px 80px rgba(0, 0, 0, .27); }
.publish-handle { display: none; }
.publish-close { position: absolute; right: 28px; top: 24px; border: 0; background: #f4f5f8; color: #192441; border-radius: 50%; height: 42px; width: 42px; cursor: pointer; font-size: 26px; line-height: 1; }
.publish-eyebrow { margin: 0 0 10px; color: #ff6400; font-size: 13px; font-weight: 800; letter-spacing: 2px; }
.publish-modal-card h1 { font-size: clamp(29px, 4.3vw, 48px); letter-spacing: -1.8px; line-height: 1.06; margin: 0; }
.publish-subtitle { font-size: 18px; color: #7886a1; margin: 12px 0 27px; }
.publish-options { display: grid; gap: 16px; }
.publish-opt { display: flex; align-items: center; gap: 20px; text-align: left; color: inherit; border: 1.5px solid #d6e4f9; border-radius: 24px; background: linear-gradient(110deg, #f8fbff, #fff); padding: 14px 17px; min-height: 155px; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.publish-opt:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(10, 44, 90, .08); }
.publish-opt-shop { border-color: #ffe1ce; background: linear-gradient(110deg, #fff9f4, #fff); }
.publish-opt img { width: 33%; max-width: 230px; height: 138px; object-fit: cover; object-position: center; border-radius: 19px; mix-blend-mode: multiply; }
.publish-opt-content { flex: 1; }
.publish-opt-title { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.6px; margin: 0 0 6px; line-height: 1.14; }
.publish-opt-desc { display: block; font-size: 15px; color: #71809c; line-height: 1.4; }
.publish-opt-content small { display: block; font-size: 13px; color: #7c88a2; margin-top: 7px; }
.publish-chevron { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e9f2ff; color: #0b337a; font-size: 28px; align-self: center; }
.publish-chevron .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.publish-opt-shop .publish-chevron { background: #fff0e5; color: #f76a14; }
@media (max-width: 600px) {
  .publish-modal { padding: 0; align-items: end; }
  .publish-modal-card { border-radius: 29px 29px 0 0; padding: 47px 20px 28px; max-height: 95vh; overflow: auto; width: 100%; }
  .publish-handle { display: block; position: absolute; top: 12px; left: calc(50% - 23px); height: 5px; width: 46px; border-radius: 10px; background: #cbd2df; }
  .publish-close { right: 18px; top: 36px; width: 38px; height: 38px; }
  .publish-eyebrow { font-size: 11px; }
  .publish-modal-card h1 { font-size: 32px; max-width: 300px; letter-spacing: -1px; }
  .publish-subtitle { font-size: 14px; margin: 9px 0 20px; }
  .publish-opt { display: grid; grid-template-columns: 98px 1fr 22px; gap: 10px; padding: 12px; min-height: 142px; border-radius: 19px; }
  .publish-opt img { width: 98px; height: 110px; border-radius: 13px; }
  .publish-opt-title { font-size: 17px; }
  .publish-opt-desc { font-size: 12px; }
  .publish-opt-content small { font-size: 11px; margin-top: 5px; }
  .publish-chevron { width: 24px; height: 24px; }
  .publish-chevron .icon { width: 13px; height: 13px; }
}

/* Mapas de ubicaciÃ³n */
.map-picker { height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-top: 6px; background: #eef1f7; }
.map-hint { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }

/* Direcciones: flujo en 2 pasos con mapa grande */
.address-flow-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.address-back {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e8ecf2;
  border-radius: 50%;
  background: #f8fafc;
  color: #475569;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.address-back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.address-back:hover { background: #eef2f7; color: #0b1526; }
.address-back:active { transform: scale(.94); }
.address-flow { display: block; }
.address-flow .auth-card { width: 100%; max-width: 900px; margin: 0 auto; padding: 22px; }
.address-map-large { width: 100%; max-width: 100%; height: min(58vh, 560px); min-height: 340px; border-radius: 20px; }
.address-picked {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  background: #f8fafc;
}
.address-picked > .icon { flex: none; width: 18px; height: 18px; color: #b45309; }
.address-picked > div { flex: 1; min-width: 0; }
.address-picked strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0b1526;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.address-picked small { display: block; margin-top: 2px; color: #94a3b8; font-size: 11px; }
.address-change {
  flex: none;
  padding: 6px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #0b1526;
  font-size: 11.5px;
  font-weight: 700;
}
.address-change:hover { background: #f1f5f9; }
.address-label-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.address-label-chip {
  padding: 10px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.address-label-chip:hover { background: #f1f5f9; }
.address-label-chip.is-active { border-color: #fbbf24; background: #fff7e0; color: #92400e; }
@media (max-width: 520px) {
  .address-flow .auth-card { padding: 16px; }
  .address-map-large { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
}
.ad-maplink { align-self: flex-start; margin: 2px 0 0; padding: 0; border: 0; background: none; color: #0b337a; font-weight: 700; font-size: 12px; cursor: pointer; }
.ad-maplink:hover { text-decoration: underline; }
.auth-card .map-picker { margin-top: 8px; }

.address-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #eef0f4; }
.address-actions { display: flex; gap: 6px; flex: none; }
.address-actions .btn { padding: 6px 10px; font-size: 12px; }

/* ===== Auth split layout (login / registro por tipo) ===== */
.auth-shell {
  position: relative;
  width: 100%;
  max-width: 1120px;
  min-height: 648px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(9, 20, 42, .14);
}
.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #eef8ff 0%, #e3f2ff 58%, #d7ebfd 100%);
}
.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}
.auth-hero::before {
  width: 470px;
  height: 470px;
  top: -200px;
  right: -165px;
  background: rgba(255, 255, 255, .58);
}
.auth-hero::after {
  width: 380px;
  height: 380px;
  left: -195px;
  bottom: 190px;
  background: rgba(255, 255, 255, .32);
}
.auth-hero-photo {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  margin-top: auto;
  background-color: #d9ecfd;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.auth-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #e8f4ff 0%, rgba(232, 244, 255, .85) 3%, rgba(232, 244, 255, .35) 9%, rgba(232, 244, 255, 0) 18%);
}
.auth-hero--user .auth-hero-photo {
  aspect-ratio: 1002 / 453;
  background-image: url('assets/auth-usuario-mobile.jpg');
}
.auth-hero--market .auth-hero-photo {
  aspect-ratio: 420 / 261;
  background-image: url('assets/auth-vendedor.jpg');
}
.auth-hero--store .auth-hero-photo {
  aspect-ratio: 469 / 406;
  background-image: url('assets/auth-empresa.jpg');
}
.auth-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: clamp(28px, 3.2vw, 46px) clamp(28px, 3.2vw, 46px) 0;
}
.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(18px, 2.2vw, 30px);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #b57300;
}
.auth-eyebrow-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #fbe6a8;
  color: #8a5a00;
}
.auth-eyebrow-icon .icon { width: 19px; height: 19px; }
.auth-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.1vw, 43px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -1.6px;
  color: #0b1526;
}
.auth-hero-copy > p {
  margin: 13px 0 0;
  max-width: 330px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #3f4c63;
}
.auth-features {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.auth-features li { display: flex; align-items: flex-start; gap: 12px; }
.auth-feature-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #101a2c;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .1);
}
.auth-feature-icon .icon { width: 21px; height: 21px; }
.auth-features strong { display: block; font-size: 13.5px; font-weight: 800; color: #0d1728; }
.auth-features small { display: block; margin-top: 2px; max-width: 245px; font-size: 12.5px; line-height: 1.45; color: #5c6b84; }
.auth-hero-trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px clamp(28px, 3.2vw, 46px) 0;
}
.auth-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .75);
  backdrop-filter: blur(6px);
  font-size: 11.5px;
  font-weight: 700;
  color: #1f2a3d;
}
.auth-hero-trust .icon { width: 15px; height: 15px; color: #b77900; }
.auth-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, .92);
  color: #334155;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .1);
  transition: transform .15s, background .15s;
}
.auth-close:hover { transform: rotate(90deg); background: #fff; }
.auth-close .icon { width: 18px; height: 18px; }

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 2.7vw, 40px);
  background: #fff;
}
.auth-panel-head { margin-bottom: 17px; }
.auth-icon-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #fff3cd;
  color: #a26a00;
  box-shadow: inset 0 0 0 1px #ffe49a, 0 8px 18px rgba(245, 163, 0, .12);
}
.auth-icon-badge .icon { width: 25px; height: 25px; }
.auth-panel-head h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.7px; color: #0c1626; }
.auth-panel-head p { margin: 5px 0 0; font-size: 13px; color: #6b7a92; }

.auth-form2 { display: grid; gap: 11px; }
.auth-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-field { display: grid; gap: 5px; }
.auth-field > label { font-size: 12.5px; font-weight: 800; color: #334155; }
.auth-input { position: relative; }
.auth-input > .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #7c8aa3;
  pointer-events: none;
}
.auth-input input,
.auth-input select {
  width: 100%;
  height: 47px;
  padding: 0 14px 0 42px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0c1626;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-input input::placeholder { color: #9aa7ba; }
.auth-input input:hover,
.auth-input select:hover { border-color: #cdd7e6; }
.auth-input input:focus,
.auth-input select:focus {
  outline: none;
  border-color: #f5b301;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, .18);
}
.auth-input.has-toggle input { padding-right: 46px; }
.auth-input.has-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  color: #0c1626;
}
.auth-input.has-select select:invalid { color: #9aa7ba; }
.auth-select-chevron {
  left: auto !important;
  right: 14px;
  width: 17px !important;
  height: 17px !important;
  color: #64748b;
}
.pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #64748b;
  transition: background .15s, color .15s;
}
.pass-toggle:hover { background: #f1f5f9; color: #0f172a; }
.pass-toggle .icon { width: 19px; height: 19px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 1px; }
.auth-check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #4a5870; cursor: pointer; }
.auth-check input {
  width: 18px; height: 18px; flex: 0 0 auto;
  appearance: none; -webkit-appearance: none;
  border: 2px solid #cbd5e1; border-radius: 50%;
  background: #fff center / 10px 10px no-repeat;
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.auth-check input:checked {
  border-color: #f0a400; background-color: #f0a400;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.2 3L11 1' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.auth-check input:focus-visible { outline: 2px solid #f0a400; outline-offset: 2px; }
.auth-link { font-size: 12.5px; font-weight: 700; color: #2563eb; }
.auth-link:hover { text-decoration: underline; }
.auth-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  margin-top: 3px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffc62e, #f2a000);
  color: #1c1305;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.1px;
  box-shadow: 0 10px 22px rgba(242, 160, 0, .28);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.auth-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.02); box-shadow: 0 13px 26px rgba(242, 160, 0, .34); }
.auth-btn-primary:active { transform: translateY(0); }
.auth-btn-primary .icon { width: 18px; height: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: #94a3b8; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }
.auth-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  transition: background .15s, border-color .15s;
}
.auth-btn-google:hover { background: #f8fafc; border-color: #cbd5e1; }
.google-g { width: 19px; height: 19px; flex: none; }
.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12.5px;
  line-height: 1.5;
}
.auth-note .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #2563eb; }
.auth-note a { color: #1d4ed8; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.auth-switch2 { margin: 18px 0 0; text-align: center; font-size: 13px; color: #64748b; }
.auth-switch2 a { color: #2563eb; font-weight: 800; }
.auth-switch2 a:hover { text-decoration: underline; }
.legal-copy p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: #475569; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-hero { min-height: 0; justify-content: flex-start; gap: 0; }
  .auth-hero::before { width: 310px; height: 310px; top: -130px; right: -110px; }
  .auth-hero::after { width: 250px; height: 250px; left: -150px; bottom: 74px; }
  .auth-hero-photo { min-height: 0; margin-top: 16px; }
  .auth-hero-copy { padding: 24px 22px 0; }
  .auth-eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: 1.8px; }
  .auth-eyebrow-icon { width: 34px; height: 34px; }
  .auth-eyebrow-icon .icon { width: 16px; height: 16px; }
  .auth-hero h1 { font-size: 29px; letter-spacing: -1px; max-width: 300px; }
  .auth-hero-copy > p { margin-top: 8px; max-width: 300px; font-size: 13px; }
  .auth-features, .auth-hero-trust { display: none; }

  .auth-panel { position: relative; z-index: 2; margin-top: 0; padding: 26px 24px 32px; border-radius: 26px 26px 0 0; box-shadow: none; }
  .auth-close { top: 14px; right: 14px; width: 34px; height: 34px; }
}

@media (max-width: 520px) {
  .auth-wrap { padding: 0 0 88px; }
  .auth-shell { border: 0; border-radius: 0; box-shadow: none; }
  .auth-hero-copy { padding: 22px 18px 0; }
  .auth-eyebrow { letter-spacing: 1.4px; }
  .auth-hero h1 { font-size: 27px; max-width: 280px; }
  .auth-panel { margin-top: 0; padding: 24px 18px 30px; border-radius: 24px 24px 0 0; }
  .auth-grid-2 { grid-template-columns: 1fr; gap: 13px; }
  .auth-panel-head h2 { font-size: 20px; }
  .auth-icon-badge { width: 48px; height: 48px; }
}

/* ===== Paneles por rol (vendedor / tienda) ===== */
.panel-loading { padding: 48px 16px; text-align: center; color: var(--muted); }
.panel-shell {
  display: grid;
  min-width: 0;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0 56px;
  align-items: start;
}
.panel-side {
  position: sticky;
  min-width: 0;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0d1728, #14243b);
  color: #dbe4f3;
  box-shadow: var(--shadow-md);
}
.panel-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.panel-brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--yellow);
  color: #11182b;
}
.panel-brand-mark .icon { width: 22px; height: 22px; }
.panel-brand strong { display: block; font-size: 15px; letter-spacing: -.5px; }
.panel-brand strong span { color: var(--yellow); }
.panel-brand small { display: block; margin-top: 2px; font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #93a4c1; }
.panel-nav { display: grid; gap: 4px; }
.panel-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: #b9c6dd;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: background .15s, color .15s;
}
.panel-nav-item .icon { width: 18px; height: 18px; }
.panel-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.panel-nav-item.is-active { background: rgba(255, 184, 0, .14); color: var(--yellow); }
.panel-side-foot { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.panel-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.panel-main > * { min-width: 0; }
.panel-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 20px;
  background:
    radial-gradient(600px 220px at 92% -20%, rgba(255, 184, 0, .24), transparent 65%),
    linear-gradient(120deg, #0d1728, #14243d);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.panel-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--yellow); }
.panel-hero h1 { margin: 6px 0 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; letter-spacing: -.9px; }
.panel-hero p { max-width: 520px; margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: #aebbd1; }
.panel-hero-actions { flex: none; display: flex; gap: 8px; }
.panel-hero-actions .btn-primary { background: linear-gradient(180deg, #ffc62e, #f2a000); color: #1c1305; }
.panel-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.panel-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e6ecf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.panel-stat > div { min-width: 0; }
.panel-stat-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff4d6;
  color: #a26a00;
  font-size: 0;
  line-height: 0;
}
.panel-stat-icon .icon { width: 20px; height: 20px; }
.panel-stat > div > span { display: block; font-size: 11.5px; font-weight: 700; color: #6b7a92; }
.panel-stat strong { display: block; margin-top: 2px; font-size: 22px; line-height: 1.1; letter-spacing: -.6px; }
.panel-stat small { display: block; margin-top: 3px; font-size: 11px; color: #94a3b8; }
.panel-card {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid #e6ecf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 86px;
}
.panel-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel-card-head h2 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -.5px; }
.panel-card-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.panel-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.panel-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.panel-table th {
  padding: 9px 10px;
  border-bottom: 1px solid #e9eef6;
  color: #8492a8;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.panel-table td { padding: 11px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.panel-table tr:last-child td { border-bottom: 0; }
.panel-row-title { font-weight: 800; color: #0d1728; }
.panel-table small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.panel-row-actions { text-align: right; white-space: nowrap; }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.admin-actions .btn { padding: 6px 10px; font-size: 11.5px; white-space: nowrap; }
.admin-reject { color: #b91c1c; }
.admin-docs { display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.admin-docs a { color: #1d4ed8; text-decoration: underline; }
.admin-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}
.admin-category-row:last-child { border-bottom: 0; }
.admin-category-row strong { display: block; color: #0b1526; font-size: 13.5px; }
.admin-category-row small { display: block; margin-top: 1px; color: #8492a8; font-size: 11px; }
.admin-toggle {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 800;
}
.admin-toggle.is-on { background: #dcfce7; color: #15803d; }
.admin-toggle:disabled { opacity: .6; cursor: default; }

.admin-hero-band { margin-top: 0; }
.admin-hero-avatar .icon { width: 38px; height: 38px; stroke-width: 1.8; }
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e6ecf5;
  border-bottom: 1px solid #e6ecf5;
}
.admin-metric { min-width: 0; padding: 18px 20px; border-right: 1px solid #eef2f7; }
.admin-metric:last-child { border-right: 0; }
.admin-metric strong { display: block; color: #0b1526; font-size: 32px; font-weight: 900; letter-spacing: -1.2px; line-height: 1; }
.admin-metric strong small { display: inline; color: #94a3b8; font-size: 15px; letter-spacing: 0; }
.admin-metric > span { display: block; margin-top: 5px; color: #334155; font-size: 10.5px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.admin-metric > small { display: block; margin-top: 2px; color: #8492a8; font-size: 11px; }
.admin-section { min-width: 0; padding: 24px 0 10px; border-top: 1px solid #eef2f7; scroll-margin-top: 24px; }
.admin-section-head { margin-bottom: 12px; }
.admin-kicker { display: block; color: #b45309; font-size: 9.5px; font-weight: 850; letter-spacing: 1.5px; text-transform: uppercase; }
.admin-section-head h2 { display: flex; align-items: center; gap: 9px; margin: 4px 0 0; color: #0b1526; font-size: 22px; font-weight: 900; letter-spacing: -.6px; }
.admin-section-head h2 em { padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: 0; }
.admin-section-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.admin-section .panel-table-wrap { margin-top: 4px; }
.admin-section .panel-table th { background: transparent; }
.admin-section--page { padding-top: 2px; border-top: 0; }
.admin-quick-head { margin-top: 22px; }
.admin-quick-head h2 { margin: 4px 0 0; color: #0b1526; font-size: 22px; font-weight: 900; letter-spacing: -.6px; }
.admin-quick { margin-top: 8px; border-top: 1px solid #eef2f7; }
.admin-quick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid #eef2f7;
  color: #0b1526;
  transition: padding .15s ease, background .15s ease;
}
.admin-quick-row:hover { padding-left: 8px; background: #fafbfe; }
.admin-quick-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff7e0;
  color: #b45309;
}
.admin-quick-icon .icon { width: 18px; height: 18px; }
.admin-quick-copy { flex: 1; min-width: 0; display: grid; gap: 1px; }
.admin-quick-copy small { color: #b45309; font-size: 9.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.admin-quick-copy strong { font-size: 14px; font-weight: 800; }
.admin-quick-copy em { color: #8492a8; font-size: 11.5px; font-style: normal; }
.admin-quick-row > b { flex: none; color: #0b1526; font-size: 24px; font-weight: 900; letter-spacing: -.8px; }
.admin-quick-row > .icon { flex: none; width: 16px; height: 16px; color: #94a3b8; }
.admin-categories-list { padding-top: 4px; }
.admin-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 2px 0 14px; }
.admin-filter-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
}
.admin-filter-search .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: #94a3b8; pointer-events: none; }
.admin-filter-search input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 36px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 13px;
}
.admin-filter-search input:focus { outline: none; border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .16); }
.admin-filter-select {
  height: 42px;
  min-width: 155px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12.5px;
}
.admin-filter-empty { padding: 26px 12px; text-align: center; color: #8492a8; font-size: 12.5px; }
.admin-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .16s ease;
}
.admin-filter-reset:hover { background: #fff7e0; border-color: #fde68a; color: #92400e; }
.admin-filter-reset:active { transform: scale(.98); }
.admin-filter-reset .icon { width: 14px; height: 14px; }

.admin-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.admin-pagination[hidden] { display: none; }
.admin-pagination-info { color: #8492a8; font-size: 11.5px; }
.admin-pagination-info b { color: #334155; font-weight: 800; }
.admin-pagination-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-left: auto; }
.admin-pagination-btn {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.admin-pagination-btn:hover:not(:disabled) { background: #fff7e0; border-color: #fde68a; color: #92400e; transform: translateY(-1px); }
.admin-pagination-btn.is-active { background: #0b1526; border-color: #0b1526; color: #ffd84d; }
.admin-pagination-btn:disabled { opacity: .42; cursor: default; }
.admin-pagination-btn .icon { width: 14px; height: 14px; }
.admin-pagination-btn.is-prev .icon { transform: rotate(90deg); }
.admin-pagination-btn.is-next .icon { transform: rotate(-90deg); }
.admin-pagination-gap { min-width: 20px; text-align: center; color: #94a3b8; font-size: 12px; }
@media (max-width: 600px) {
  .admin-pagination { align-items: stretch; }
  .admin-pagination-info { text-align: center; }
  .admin-pagination-controls { justify-content: center; margin-left: 0; }
  .admin-filter-reset { width: 100%; justify-content: center; }
}

.admin-review { display: grid; gap: 13px; }
.admin-review-media { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; background: #f1f5f9; }
.admin-review-gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.admin-review-gallery::-webkit-scrollbar { display: none; }
.admin-review-gallery img { flex: none; width: 74px; height: 74px; object-fit: cover; border-radius: 12px; background: #f1f5f9; }
.admin-review-head h2 { margin: 6px 0 0; color: #0b1526; font-size: 21px; font-weight: 900; letter-spacing: -.5px; }
.admin-review-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.admin-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
}
.admin-review-grid span { display: block; color: #8492a8; font-size: 9.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; }
.admin-review-grid b { display: block; margin-top: 2px; color: #1e293b; font-size: 12.5px; font-weight: 700; overflow-wrap: anywhere; }
.admin-review-desc { margin: 0; white-space: pre-line; color: #475569; font-size: 13px; line-height: 1.55; }
.admin-review-hours { display: flex; align-items: center; gap: 6px; margin: 0; color: #64748b; font-size: 12px; }
.admin-review-hours .icon { width: 15px; height: 15px; }
.admin-review-section,
.admin-review-videos { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid #eef2f7; }
.admin-review-section > span,
.admin-review-videos > span { color: #8492a8; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.admin-review-section a,
.admin-review-videos a { color: #1d4ed8; font-size: 12px; font-weight: 600; text-decoration: underline; }
.admin-review-map-wrap { display: grid; gap: 6px; }
.admin-review-map-wrap > span { color: #8492a8; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.admin-review-map { height: 190px; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #eef2f7; }
.admin-review-actions { display: grid; gap: 8px; margin-top: 2px; padding-top: 12px; border-top: 1px solid #eef2f7; }
@media (max-width: 560px) {
  .admin-quick-row { padding: 12px 0; gap: 10px; }
  .admin-quick-row > b { font-size: 20px; }
  .admin-quick-head h2 { font-size: 19px; }
}
@media (max-width: 1060px) {
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-metric:nth-child(2) { border-right: 0; }
  .admin-metric:nth-child(n+3) { border-top: 1px solid #eef2f7; }
}
@media (max-width: 560px) {
  .admin-metric { padding: 14px 15px; }
  .admin-metric strong { font-size: 26px; }
  .admin-section-head h2 { font-size: 19px; }
}
.status-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .2px; }
.status-active { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef3c7; color: #a16207; }
.status-rejected { background: #fee2e2; color: #b91c1c; }
.status-expired { background: #e2e8f0; color: #475569; }
.status-inactive { background: #f1f5f9; color: #64748b; }
.panel-row-product { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.panel-row-product img,
.panel-thumb-fallback {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f1f5f9;
  object-fit: cover;
  color: #64748b;
}
.panel-empty { padding: 28px 18px; text-align: center; }
.panel-empty strong { display: block; font-size: 15px; }
.panel-empty p { max-width: 460px; margin: 6px auto 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.panel-notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; }
.panel-notice .icon { flex: none; width: 19px; height: 19px; margin-top: 1px; }
.panel-notice-warn { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; }
.panel-notice-ok { border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; }
.panel-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.panel-profile div { min-width: 0; }
.panel-profile span { display: block; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: #8492a8; }
.panel-profile b { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 700; color: #1e293b; word-break: break-word; }

@media (max-width: 1060px) {
  .panel-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .panel-shell { grid-template-columns: minmax(0, 1fr); }
  .panel-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; }
  .panel-brand { margin-right: auto; }
  .panel-nav {
    order: 3;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .panel-nav-item {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px 6px;
    border-radius: 12px;
    font-size: 11.5px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
  .panel-nav-item .icon { width: 20px; height: 20px; }
  .panel-side-foot { display: flex; gap: 2px; padding-top: 0; border-top: 0; }
  .panel-side-foot .panel-nav-item { flex-direction: row; width: auto; padding: 8px 9px; }
  .panel-side-foot .panel-nav-item span { display: none; }
  .panel-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .panel-hero-actions { width: 100%; }
  .panel-hero-actions .btn { width: 100%; }
}
@media (max-width: 560px) {
  .panel-shell { padding-top: 8px; }
  .panel-nav { gap: 5px; }
  .panel-nav-item { padding: 9px 4px; font-size: 10.5px; }
  .panel-card { padding: 16px; }
  .panel-card-head { flex-direction: column; }
  .panel-card-head .btn { width: 100%; }
  .panel-profile { grid-template-columns: 1fr; }
  .panel-table { min-width: 520px; }
  .panel-hero h1 { font-size: 22px; }
}

/* ===== Dashboard de tienda (estilo Apple HIG / Material You) ===== */
#panelView.view-in { animation: none; }
.panel-shell--store .panel-side {
  background: rgba(255, 255, 255, .94);
  border: 1px solid #e6ecf5;
  color: #475569;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.panel-shell--store .panel-brand { color: #0b1526; }
.panel-shell--store .panel-brand small { color: #94a3b8; }
.panel-shell--store .panel-brand strong span { color: #d18a00; }
.panel-shell--store .panel-nav-item { color: #64748b; }
.panel-shell--store .panel-nav-item:hover { background: #f1f5f9; color: #0b1526; }
.panel-shell--store .panel-nav-item.is-active {
  background: #fff7e0;
  color: #b45309;
  box-shadow: inset 0 0 0 1px #fde68a;
}
.panel-shell--store .panel-side-foot { border-top-color: #eef2f7; }
.panel-shell--store .panel-side-foot .panel-nav-item { color: #64748b; }
.panel-aside-extra { display: grid; gap: 14px; }
.panel-store-summary {
  padding: 14px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #f8fafc;
}
.panel-store-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.panel-store-summary-head span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8492a8;
}
.panel-store-summary-head button {
  border: 0;
  background: none;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.panel-store-summary-rows { display: grid; gap: 8px; }
.panel-store-summary-rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}
.panel-store-summary-rows span { color: #8492a8; }
.panel-store-summary-rows b {
  max-width: 140px;
  overflow: hidden;
  color: #1e293b;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-promo {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #1e2d45;
  border-radius: 18px;
  background:
    radial-gradient(180px 140px at 100% 0%, rgba(255, 184, 0, .28), transparent 60%),
    linear-gradient(145deg, #111d2f, #0b1422);
  color: #fff;
}
.panel-promo::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 184, 0, .18);
  filter: blur(20px);
  pointer-events: none;
}
.panel-promo-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 184, 0, .16);
  color: #ffc62e;
}
.panel-promo-icon .icon { width: 18px; height: 18px; }
.panel-promo h4 { margin: 10px 0 0; font-size: 13px; font-weight: 900; }
.panel-promo p { margin: 4px 0 12px; color: #aebbd1; font-size: 11.5px; line-height: 1.45; }
.panel-promo .btn-primary { background: linear-gradient(180deg, #ffc62e, #f2a000); color: #1c1305; }

.store-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #e6ecf5;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
}
.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 240px at 100% 0%, rgba(255, 196, 46, .13), transparent 70%);
  pointer-events: none;
}
.store-hero-copy { position: relative; z-index: 1; min-width: 0; max-width: 640px; }
.store-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.store-eyebrow {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8492a8;
}
.store-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}
.store-status .icon { width: 13px; height: 13px; }
.store-status--ok { border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; }
.store-status--warn { border: 1px solid #fde68a; background: #fffbeb; color: #b45309; }
.store-status--bad { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.store-hero h1 {
  margin: 8px 0 0;
  color: #0b1526;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: -1.1px;
  line-height: 1.05;
}
.store-hero p { max-width: 560px; margin: 8px 0 0; color: #64748b; font-size: 13.5px; line-height: 1.5; }
.store-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; color: #64748b; font-size: 11.5px; font-weight: 700; }
.store-hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.store-hero-meta .icon { width: 14px; height: 14px; color: #94a3b8; }
.store-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.store-hero-media {
  position: relative;
  z-index: 1;
  flex: none;
  width: 240px;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #eef2f7;
}
.store-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.store-hero-media-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
  backdrop-filter: blur(8px);
}
.store-hero-media-badge .icon { width: 13px; height: 13px; color: #059669; }

.store-metrics-head { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.store-metrics-head h2 { margin: 0; color: #8492a8; font-size: 11px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; }
.store-metrics-head span { color: #2563eb; font-size: 11px; font-weight: 700; }
.store-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.store-quick-links { display: grid; min-width: 0; border-top: 1px solid #eef2f7; }
.store-quick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid #eef2f7;
  color: #0b1526;
  transition: padding .15s ease, background .15s ease;
}
.store-quick-row:hover { padding-left: 8px; background: #fafbfe; }
.store-quick-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #fff7e0;
  color: #b45309;
}
.store-quick-icon .icon { width: 19px; height: 19px; }
.store-quick-row > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 1px; }
.store-quick-row small { color: #b45309; font-size: 9px; font-weight: 850; letter-spacing: 1.2px; text-transform: uppercase; }
.store-quick-row strong { font-size: 14px; font-weight: 800; }
.store-quick-row em { color: #8492a8; font-size: 11.5px; font-style: normal; }
.store-quick-row > .icon { flex: none; width: 16px; height: 16px; color: #94a3b8; }

.store-analytics-section { display: grid; gap: 12px; min-width: 0; }
.store-charts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.store-chart-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #e6ecf5;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  box-shadow: var(--shadow-sm);
  animation: chart-rise .45s cubic-bezier(.22, .61, .36, 1) both;
}
.store-chart-card:nth-child(2) { animation-delay: .06s; }
.store-chart-card:nth-child(3) { animation-delay: .12s; }
.store-chart-card:nth-child(4) { animation-delay: .18s; }
@keyframes chart-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.store-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.store-chart-head h3 { margin: 2px 0 0; color: #0b1526; font-size: 15px; font-weight: 900; letter-spacing: -.3px; }
.store-chart-head > b { flex: none; color: #0b1526; font-size: 18px; font-weight: 900; letter-spacing: -.5px; }
.store-chart-canvas { min-height: 220px; min-width: 0; }
.store-low-stock {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 16px;
  background: #fffbeb;
}
.store-low-stock > div:first-child { flex: none; }
.store-low-stock strong { display: block; margin-top: 2px; color: #92400e; font-size: 13px; font-weight: 900; }
.store-low-stock-list { display: flex; gap: 8px; min-width: 0; overflow-x: auto; padding-bottom: 1px; scrollbar-width: none; }
.store-low-stock-list::-webkit-scrollbar { display: none; }
.store-low-stock-list span {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.store-low-stock-list b { color: #b45309; }
@media (max-width: 980px) {
  .store-charts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .store-chart-card { padding: 14px; border-radius: 17px; }
  .store-chart-canvas { min-height: 200px; }
  .store-low-stock { align-items: flex-start; flex-direction: column; gap: 8px; }
  .store-low-stock-list { width: 100%; }
}
.store-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e6ecf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.store-stat-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.store-stat-icon .icon { width: 21px; height: 21px; }
.store-stat--blue .store-stat-icon { background: #eff6ff; color: #2563eb; }
.store-stat--green .store-stat-icon { background: #ecfdf5; color: #059669; }
.store-stat--amber .store-stat-icon { background: #fffbeb; color: #d97706; }
.store-stat--violet .store-stat-icon { background: #f5f3ff; color: #7c3aed; }
.store-stat > div { min-width: 0; }
.store-stat > div > span { display: block; color: #64748b; font-size: 11.5px; font-weight: 700; }
.store-stat strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #0b1526;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.7px;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-stat small { display: block; margin-top: 3px; color: #94a3b8; font-size: 11px; }

.store-products-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #e6ecf5;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 86px;
}
.store-products-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.store-products-title h2 { margin: 2px 0 0; color: #0b1526; font-size: 21px; font-weight: 900; letter-spacing: -.6px; }
.store-products-title p { margin: 4px 0 0; color: #64748b; font-size: 12.5px; }
.store-section-kicker { color: #b45309; font-size: 10px; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase; }
.store-products-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.store-search { position: relative; display: flex; align-items: center; }
.store-search .icon { position: absolute; left: 12px; width: 16px; height: 16px; color: #94a3b8; pointer-events: none; }
.store-search input {
  width: 220px;
  padding: 10px 12px 10px 36px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 12px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.store-search input:focus { border-color: #fbbf24; background: #fff; }
.store-filter-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 2px; }
.store-filter-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.store-filter-pill span { font-size: 10.5px; opacity: .65; }
.store-filter-pill:hover { background: #e2e8f0; }
.store-filter-pill.is-active { background: #0b1526; color: #fff; box-shadow: 0 6px 14px rgba(11, 21, 38, .15); }
.store-filter-pill.is-active span { opacity: .8; }

.store-table-wrap { margin-top: 8px; overflow-x: auto; }
.store-product-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.store-product-table th {
  padding: 10px 8px;
  border-bottom: 1px solid #e9eef6;
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.store-product-table td { padding: 11px 8px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.store-product-table tr:last-child td { border-bottom: 0; }
.store-product-info { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.store-product-info img { flex: none; width: 48px; height: 48px; border-radius: 12px; background: #f1f5f9; object-fit: cover; }
.store-product-info strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: #0b1526;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-product-info small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10.5px; }
.store-price { color: #b45309; font-weight: 900; white-space: nowrap; }
.store-stock { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; }
.store-stock.is-ok { background: #f0fdf4; color: #15803d; }
.store-stock.is-out { background: #fef2f2; color: #b91c1c; }
.store-row-actions { text-align: right; }
.store-more {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.store-more:hover { background: #e2e8f0; color: #0f172a; }
.store-more .icon { width: 16px; height: 16px; }
.store-switch { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; }
.store-switch input { position: absolute; width: 0; height: 0; opacity: 0; }
.store-switch span { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .2s; }
.store-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
  transition: transform .2s;
}
.store-switch input:checked + span { background: #22c55e; }
.store-switch input:checked + span::after { transform: translateX(16px); }

.store-product-cards { display: none; }
.store-product-cards .store-product-card {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #f8fafc;
}
.store-product-cards .store-product-card > img { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.store-product-card-body { flex: 1; min-width: 0; }
.store-product-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.store-product-card-top strong {
  min-width: 0;
  overflow: hidden;
  color: #0b1526;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-product-card-body small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.store-product-card-bottom { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.store-product-card-bottom b { color: #b45309; font-size: 12.5px; }
.store-product-card-bottom .store-more { margin-left: auto; }

.store-empty { padding: 34px 16px; text-align: center; }
.store-empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: #fff7e0;
  color: #b45309;
}
.store-empty-icon .icon { width: 24px; height: 24px; }
.store-empty strong { display: block; color: #0b1526; font-size: 15px; }
.store-empty p { max-width: 420px; margin: 6px auto 14px; color: #64748b; font-size: 12.5px; line-height: 1.5; }
.store-empty--filter { padding: 22px 16px; }

.store-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(9, 20, 42, .55);
  backdrop-filter: blur(4px);
}
.store-overlay[hidden] { display: none !important; }
.store-overlay-backdrop { position: absolute; inset: 0; }
#storeModalRoot, #storeSheetRoot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}
.store-modal-card, .store-sheet-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow: auto;
  padding: 20px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -20px 60px rgba(9, 20, 42, .25);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.store-modal-card::-webkit-scrollbar,
.store-sheet-card::-webkit-scrollbar { display: none; }
.store-modal-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eef2f7; }
.store-modal-head h2 { margin: 3px 0 0; font-size: 20px; font-weight: 900; letter-spacing: -.6px; }
.store-modal-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.store-modal-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}
.store-modal-close .icon { width: 16px; height: 16px; }
.store-form { display: grid; gap: 12px; padding-top: 14px; }
.store-form .field { display: grid; gap: 5px; }
.store-form .field > span { color: #334155; font-size: 12px; font-weight: 800; }
.store-form .field input, .store-form .field select, .store-form .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  outline: none;
}
.store-form .field input:focus, .store-form .field select:focus, .store-form .field textarea:focus {
  border-color: #fbbf24;
  background: #fff;
}
.store-form .field textarea { min-height: 86px; resize: vertical; }
.store-modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.store-sheet-card { max-width: 420px; }
.store-sheet-handle { width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 999px; background: #e2e8f0; }
.store-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.store-sheet-head h3 { margin: 4px 0 0; font-size: 17px; font-weight: 900; letter-spacing: -.4px; }
.store-sheet-actions { display: grid; gap: 8px; padding-top: 16px; }
.store-sheet-actions button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  border: 0;
  border-radius: 14px;
  background: #f8fafc;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}
.store-sheet-actions button:hover { background: #f1f5f9; }
.store-sheet-actions button .icon { flex: none; width: 20px; height: 20px; color: #2563eb; }
.store-sheet-actions button.is-danger { background: #fef2f2; color: #b91c1c; }
.store-sheet-actions button.is-danger .icon { color: #dc2626; }
.store-sheet-actions span { display: block; }
.store-sheet-actions strong { display: block; font-size: 12.5px; font-weight: 800; }
.store-sheet-actions small { display: block; margin-top: 2px; color: #8492a8; font-size: 11px; }
.store-sheet-cancel {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1060px) {
  .store-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .panel-shell--store .panel-side { border: 1px solid #e6ecf5; }
  .panel-shell--store .panel-nav { border-top-color: #eef2f7; }
  .panel-aside-extra { display: none; }
  .store-hero { flex-direction: column; padding: 20px; }
  .store-hero-media { width: 100%; height: 180px; }
  .store-products-head { flex-direction: column; align-items: stretch; }
  .store-products-tools { width: 100%; }
  .store-search { flex: 1; }
  .store-search input { width: 100%; }
}
@media (max-width: 720px) {
  .store-desktop { display: none; }
  .store-info-actions { width: 100%; flex-direction: column; }
  .store-info-actions .btn { width: 100%; justify-content: center; }
  .store-mobile { display: grid; gap: 10px; margin-top: 10px; }
  .store-products-card { padding: 16px; }
  .store-products-tools { flex-direction: column; align-items: stretch; }
  .store-products-tools .btn { width: 100%; justify-content: center; }
  .store-hero h1 { font-size: 26px; }
  .store-hero-actions .btn { flex: 1; justify-content: center; }
  .store-stat { gap: 10px; padding: 13px; }
  .store-stat-icon { width: 38px; height: 38px; border-radius: 12px; }
  .store-stat strong { font-size: 20px; }
  .store-stat small { display: none; }
  .store-modal-card, .store-sheet-card { padding: 18px; border-radius: 24px 24px 0 0; }
}
@media (min-width: 721px) {
  .store-overlay { align-items: center; padding: 20px; }
  #storeModalRoot, #storeSheetRoot { align-items: center; }
  .store-modal-card, .store-sheet-card { border-radius: 24px; }
  .store-sheet-handle { display: none; }
}

/* ===== Perfil de tienda: foto, horarios y documentos ===== */
.store-profile-modal { max-width: 580px; }
.store-photo-editor { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid #eef2f7; border-radius: 16px; background: #f8fafc; }
.store-photo-preview {
  flex: none;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 18px;
  background: #eef2f7;
  color: #94a3b8;
}
.store-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.store-photo-preview .icon { width: 34px; height: 34px; }
.store-file-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 4px;
  padding: 8px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.store-file-label:hover { border-color: #fbbf24; }
.store-file-label .icon { width: 15px; height: 15px; }
.store-file-hint { margin: 5px 0 0; color: #94a3b8; font-size: 10.5px; line-height: 1.4; }
.store-form > .store-file-hint { display: flex; align-items: center; gap: 6px; color: #b45309; font-size: 11px; }
.store-form > .store-file-hint .icon { flex: none; width: 14px; height: 14px; }

.product-media-field > span em { color: #94a3b8; font-style: normal; font-weight: 600; }
.product-media-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.product-media-drop:hover,
.product-media-drop.is-drag { border-color: #fbbf24; background: #fffdf5; transform: translateY(-1px); }
.product-media-drop[hidden] { display: none; }
.product-media-drop-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff7e0;
  color: #b45309;
}
.product-media-drop-icon .icon { width: 18px; height: 18px; }
.product-media-drop-copy b { display: block; font-size: 12.5px; font-weight: 800; }
.product-media-drop-copy small { display: block; margin-top: 2px; color: #8492a8; font-size: 11px; }
.product-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.product-media-grid:empty { display: none; }
.product-media-thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: #eef2f7;
  animation: product-media-in .22s ease both;
}
.product-media-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-media-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.product-media-remove:hover { background: #dc2626; transform: scale(1.08); }
.product-media-remove .icon { width: 13px; height: 13px; }
.product-media-primary {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 196, 0, .95);
  color: #1c1305;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.product-video-preview { margin-top: 10px; }
.product-video-preview:empty { display: none; }
.product-video-item { position: relative; }
.product-video-item video { display: block; width: 100%; max-height: 220px; border-radius: 14px; background: #0a1120; }
.product-video-item--existing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e6ecf5;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.product-video-item--existing + .product-video-item--existing { margin-top: 6px; }
.product-video-item--existing a { color: #b45309; text-decoration: underline; }
.product-video-name { display: inline-flex; align-items: center; gap: 6px; }
.product-video-name .icon { width: 15px; height: 15px; color: #b45309; }
.product-video-item--existing .product-media-remove { position: static; margin-left: auto; background: #e2e8f0; color: #475569; }
.product-video-item--existing .product-media-remove:hover { background: #dc2626; color: #fff; }
.store-upload-progress { padding: 12px 14px; border: 1px solid #eef2f7; border-radius: 14px; background: #f8fafc; }
.store-upload-progress[hidden] { display: none; }
.store-upload-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.store-upload-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc62e, #f2a000);
  transition: width .25s ease;
}
.store-upload-label { margin: 7px 0 0; color: #64748b; font-size: 11.5px; font-weight: 650; }
.store-upload-progress.is-optimizing .store-upload-track span {
  background: linear-gradient(90deg, #ffc62e, #f2a000, #ffc62e);
  background-size: 200% 100%;
  animation: upload-shine 1.1s linear infinite;
}
@keyframes upload-shine { to { background-position: -200% 0; } }
@keyframes product-media-in {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
.store-docs-section { padding-top: 14px; border-top: 1px solid #eef2f7; }
.store-docs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.store-docs-head > span { color: #334155; font-size: 12px; font-weight: 800; }
.store-docs-head small { color: #94a3b8; font-size: 10.5px; }
.store-doc-list { display: grid; gap: 8px; margin: 10px 0; }
.store-doc-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 11.5px;
}
.store-doc-row > span { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: #eff6ff; color: #2563eb; }
.store-doc-row > span .icon { width: 15px; height: 15px; }
.store-doc-row > div { min-width: 0; flex: 1; }
.store-doc-row strong { display: block; overflow: hidden; color: #1e293b; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.store-doc-row small { display: block; margin-top: 1px; color: #94a3b8; font-size: 10px; }
.store-doc-row a { color: #2563eb; font-size: 11px; font-weight: 800; text-decoration: none; }
.store-doc-row button { display: grid; place-items: center; width: 27px; height: 27px; border: 0; border-radius: 8px; background: transparent; color: #94a3b8; cursor: pointer; }
.store-doc-row button:hover { background: #fee2e2; color: #b91c1c; }
.store-doc-row button .icon { width: 14px; height: 14px; }
.store-info-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.store-info-extra { display: grid; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f7; }
.store-info-extra span { display: block; color: #8492a8; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.store-info-extra p { margin: 4px 0 0; color: #475569; font-size: 12.5px; line-height: 1.5; white-space: pre-line; }
.store-info-extra .icon { width: 14px; height: 14px; }
.store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-hours { display: grid; gap: 4px; margin-top: 6px; }
.store-hours-row {
  display: grid;
  grid-template-columns: 72px 38px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 4px 0;
}
.store-hours-day { color: #334155; font-size: 11.5px; font-weight: 800; }
.store-hours-row .store-switch { margin: 0; }
.store-hours-row input[type="time"] {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 11.5px;
  outline: none;
}
.store-hours-row input[type="time"]:focus { border-color: #fbbf24; background: #fff; }
.store-hours-row input[type="time"]:disabled { opacity: .45; }
.store-hours-sep { color: #94a3b8; font-size: 10.5px; }
@media (max-width: 560px) {
  .store-hours-row { grid-template-columns: 48px 36px minmax(0, 1fr) auto minmax(0, 1fr); gap: 5px; }
  .store-hours-day { font-size: 10.5px; }
  .store-hours-row input[type="time"] { padding: 6px 5px; font-size: 10.5px; }
}
@media (max-width: 560px) {
  .store-form .field-row { grid-template-columns: 1fr; }
}
.store-overlay--nested { z-index: 110; }
.store-hours-modal { max-width: 480px; }
.store-hours-summary { display: grid; gap: 7px; }
.store-hours-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.store-hours-summary-head > span { color: #334155; font-size: 12px; font-weight: 800; }
.store-hours-summary-head button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.store-hours-summary-head button:hover { border-color: #fbbf24; background: #fff; }
.store-hours-summary-head button .icon { width: 14px; height: 14px; }
.store-hours-summary p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.store-hours-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid #eef2f7; }
@media (max-width: 560px) {
  .store-hours-actions .btn { flex: 1; }
}



/* =========================================================
   APPLE HIG / iOS 17-18 DESIGN SYSTEM - ADMIN DASHBOARD
   ========================================================= */
.panel-shell--admin {
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  --apple-bg: #f2f2f7;
  --apple-card: #ffffff;
  --apple-border: rgba(0, 0, 0, 0.06);
  --apple-border-strong: rgba(0, 0, 0, 0.1);
  --apple-text-primary: #1c1c1e;
  --apple-text-secondary: #636366;
  --apple-text-tertiary: #8e8e93;
  --apple-blue: #007aff;
  --apple-orange: #ff9500;
  --apple-purple: #5856d6;
  --apple-green: #34c759;
  --apple-red: #ff3b30;
  --apple-radius-sm: 12px;
  --apple-radius-md: 18px;
  --apple-radius-lg: 22px;
  --apple-radius-pill: 999px;
  font-family: var(--apple-font);
}

/* Sidebar iOS Translucency */
.panel-shell--admin .panel-side {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.panel-shell--admin .panel-brand {
  color: #1c1c1e;
}
.panel-shell--admin .panel-brand-mark {
  background: linear-gradient(135deg, #007aff, #0051ba);
  color: #ffffff;
  border-radius: 12px;
}
.panel-shell--admin .panel-brand strong span {
  color: #007aff;
}
.panel-shell--admin .panel-nav-item {
  color: #636366;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.panel-shell--admin .panel-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1c1c1e;
}
.panel-shell--admin .panel-nav-item.is-active {
  background: #007aff;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.32);
}
.panel-shell--admin .panel-side-foot {
  border-top-color: rgba(0, 0, 0, 0.06);
}
.panel-shell--admin .panel-side-foot .panel-nav-item {
  color: #636366;
}

/* Apple Admin Hero Band */
.panel-shell--admin .admin-apple-hero {
  border-radius: var(--apple-radius-lg);
  background:
    radial-gradient(120% 120% at 92% -15%, rgba(0, 122, 255, 0.24), transparent 60%),
    radial-gradient(100% 100% at 8% 115%, rgba(88, 86, 214, 0.18), transparent 50%),
    linear-gradient(135deg, #0e1726, #152238);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(14, 23, 38, 0.22);
  padding: 26px 28px;
}
.panel-shell--admin .admin-hero-avatar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: #60a5fa;
}
.panel-shell--admin .apple-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}
.panel-shell--admin .apple-hero-tag .icon {
  width: 13px;
  height: 13px;
}
.panel-shell--admin .apple-hero-meta-warn {
  color: #fbbf24 !important;
  font-weight: 800;
}
.panel-shell--admin .apple-hero-meta-ok {
  color: #4ade80 !important;
  font-weight: 800;
}

/* Apple KPI Grid & Squircle Cards */
.panel-shell--admin .apple-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 6px 0 22px;
  border: 0;
}
.panel-shell--admin .apple-kpi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  background: #ffffff;
  border-radius: var(--apple-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  overflow: hidden;
}
.panel-shell--admin .apple-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.1);
}
.panel-shell--admin .apple-kpi-card:active {
  transform: scale(0.985);
}
.panel-shell--admin .apple-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-shell--admin .apple-kpi-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: none;
  transition: transform 0.2s ease;
}
.panel-shell--admin .apple-kpi-card:hover .apple-kpi-icon {
  transform: scale(1.05);
}
.panel-shell--admin .apple-kpi-icon .icon {
  width: 22px;
  height: 22px;
}
.panel-shell--admin .apple-kpi-icon--blue {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}
.panel-shell--admin .apple-kpi-icon--orange {
  background: rgba(255, 149, 0, 0.14);
  color: #ff9500;
}
.panel-shell--admin .apple-kpi-icon--purple {
  background: rgba(88, 86, 214, 0.14);
  color: #5856d6;
}
.panel-shell--admin .apple-kpi-icon--green {
  background: rgba(52, 199, 89, 0.14);
  color: #34c759;
}
.panel-shell--admin .apple-kpi-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.panel-shell--admin .apple-kpi-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1;
  color: #1c1c1e;
}
.panel-shell--admin .apple-kpi-label {
  font-size: 13px;
  font-weight: 600;
  color: #636366;
  margin-top: 4px;
}
.panel-shell--admin .apple-kpi-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 11.5px;
  font-weight: 600;
  color: #8e8e93;
}
.panel-shell--admin .apple-kpi-foot .icon {
  width: 14px;
  height: 14px;
  color: #aeaeb2;
  transition: transform 0.15s ease;
}
.panel-shell--admin .apple-kpi-card:hover .apple-kpi-foot .icon {
  transform: translateX(3px);
  color: #007aff;
}

/* Apple Pill Badges */
.panel-shell--admin .apple-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--apple-radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.panel-shell--admin .apple-pill--warn {
  background: rgba(255, 149, 0, 0.14);
  color: #c25e00;
}
.panel-shell--admin .apple-pill--ok {
  background: rgba(52, 199, 89, 0.14);
  color: #1e873d;
}
.panel-shell--admin .apple-pill--info {
  background: rgba(0, 122, 255, 0.12);
  color: #0051ba;
}

/* Apple Moderation Inbox Card */
.panel-shell--admin .apple-inbox-card {
  background: #ffffff;
  border-radius: var(--apple-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.panel-shell--admin .apple-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.panel-shell--admin .apple-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--apple-radius-pill);
  font-size: 11px;
  font-weight: 700;
}
.panel-shell--admin .apple-status-pill .icon {
  width: 13px;
  height: 13px;
}
.panel-shell--admin .apple-status-pill--warn {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}
.panel-shell--admin .apple-status-pill--ok {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}
.panel-shell--admin .apple-card-title {
  margin: 6px 0 3px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #1c1c1e;
}
.panel-shell--admin .apple-card-sub {
  margin: 0;
  font-size: 13px;
  color: #636366;
}
.panel-shell--admin .apple-inbox-counter {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--apple-radius-pill);
  background: rgba(255, 149, 0, 0.15);
  color: #c25e00;
  font-size: 17px;
  font-weight: 800;
  flex: none;
}
.panel-shell--admin .apple-inbox-list {
  display: flex;
  flex-direction: column;
}
.panel-shell--admin .apple-inbox-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease;
}
.panel-shell--admin .apple-inbox-item:last-child {
  border-bottom: 0;
}
.panel-shell--admin .apple-inbox-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex: none;
}
.panel-shell--admin .apple-inbox-icon .icon {
  width: 20px;
  height: 20px;
}
.panel-shell--admin .apple-inbox-icon--stores {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}
.panel-shell--admin .apple-inbox-icon--listings {
  background: rgba(255, 149, 0, 0.14);
  color: #ff9500;
}
.panel-shell--admin .apple-inbox-icon--products {
  background: rgba(88, 86, 214, 0.14);
  color: #5856d6;
}
.panel-shell--admin .apple-inbox-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.panel-shell--admin .apple-inbox-topline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-shell--admin .apple-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.panel-shell--admin .apple-tag--stores {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}
.panel-shell--admin .apple-tag--listings {
  background: rgba(255, 149, 0, 0.14);
  color: #d97706;
}
.panel-shell--admin .apple-tag--products {
  background: rgba(88, 86, 214, 0.14);
  color: #5856d6;
}
.panel-shell--admin .apple-inbox-topline small {
  color: #8e8e93;
  font-size: 11px;
}
.panel-shell--admin .apple-inbox-name {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-shell--admin .apple-inbox-meta {
  font-size: 12px;
  color: #8e8e93;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.panel-shell--admin .apple-inbox-action {
  flex: none;
}
.panel-shell--admin .apple-btn--review {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: var(--apple-radius-pill);
  background: #007aff;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.panel-shell--admin .apple-btn--review .icon {
  width: 14px;
  height: 14px;
}
.panel-shell--admin .apple-btn--review:hover {
  background: #0063db;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}
.panel-shell--admin .apple-btn--review:active {
  transform: scale(0.97);
}
.panel-shell--admin .apple-inbox-footer {
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}
.panel-shell--admin .apple-inbox-more {
  color: #007aff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.panel-shell--admin .apple-inbox-more:hover {
  text-decoration: underline;
}

/* Apple All Clear Card */
.panel-shell--admin .apple-card--all-clear {
  background: #ffffff;
  border-radius: var(--apple-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.panel-shell--admin .apple-all-clear-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.panel-shell--admin .apple-all-clear-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(52, 199, 89, 0.14);
  color: #34c759;
  flex: none;
}
.panel-shell--admin .apple-all-clear-icon .icon {
  width: 26px;
  height: 26px;
}
.panel-shell--admin .apple-all-clear-copy {
  flex: 1;
}
.panel-shell--admin .apple-all-clear-copy h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #1c1c1e;
}
.panel-shell--admin .apple-all-clear-copy p {
  margin: 3px 0 0;
  font-size: 13px;
  color: #636366;
}

/* Apple Inset Grouped Navigation */
.panel-shell--admin .apple-section-header {
  margin: 24px 0 10px;
}
.panel-shell--admin .apple-kicker {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8e8e93;
}
.panel-shell--admin .apple-section-title {
  margin: 4px 0 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #1c1c1e;
}
.panel-shell--admin .apple-inset-group {
  background: #ffffff;
  border-radius: var(--apple-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-top: 10px;
}
.panel-shell--admin .apple-inset-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: #1c1c1e;
  text-decoration: none;
  position: relative;
  transition: background 0.15s ease;
}
.panel-shell--admin .apple-inset-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 74px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.05);
}
.panel-shell--admin .apple-inset-row:hover {
  background: #fbfbfd;
}
.panel-shell--admin .apple-inset-row:active {
  background: #f2f2f7;
}
.panel-shell--admin .apple-inset-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
}
.panel-shell--admin .apple-inset-icon .icon {
  width: 20px;
  height: 20px;
}
.panel-shell--admin .apple-inset-icon--blue {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}
.panel-shell--admin .apple-inset-icon--orange {
  background: rgba(255, 149, 0, 0.14);
  color: #ff9500;
}
.panel-shell--admin .apple-inset-icon--purple {
  background: rgba(88, 86, 214, 0.14);
  color: #5856d6;
}
.panel-shell--admin .apple-inset-icon--green {
  background: rgba(52, 199, 89, 0.14);
  color: #34c759;
}
.panel-shell--admin .apple-inset-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.panel-shell--admin .apple-inset-copy small {
  font-size: 10px;
  font-weight: 700;
  color: #8e8e93;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.panel-shell--admin .apple-inset-copy strong {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1e;
}
.panel-shell--admin .apple-inset-copy em {
  font-size: 12px;
  font-style: normal;
  color: #8e8e93;
}
.panel-shell--admin .apple-inset-count {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #1c1c1e;
  padding: 0 8px;
}
.panel-shell--admin .apple-inset-arrow {
  color: #c7c7cc;
  display: grid;
  place-items: center;
}
.panel-shell--admin .apple-inset-arrow .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.panel-shell--admin .apple-inset-row:hover .apple-inset-arrow .icon {
  transform: translateX(3px);
  color: #007aff;
}

/* Table Enhancements (Desktop) */
.panel-shell--admin .panel-row-media {
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel-shell--admin .panel-row-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
}
.panel-shell--admin .panel-row-icon .icon {
  width: 18px;
  height: 18px;
}
.panel-shell--admin .panel-row-icon--store {
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
}
.panel-shell--admin .panel-row-icon--listing {
  background: rgba(255, 149, 0, 0.12);
  color: #ff9500;
}
.panel-shell--admin .panel-row-icon--product {
  background: rgba(88, 86, 214, 0.12);
  color: #5856d6;
}
.panel-shell--admin .panel-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #475569;
  font-size: 12.5px;
}
.panel-shell--admin .panel-badge-inline .icon {
  width: 14px;
  height: 14px;
  color: #8e8e93;
}
.panel-shell--admin .apple-price {
  color: #1c1c1e;
  font-weight: 800;
  font-size: 13.5px;
}
.panel-shell--admin .admin-docs a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #007aff;
  font-weight: 600;
  text-decoration: none;
}
.panel-shell--admin .admin-docs a .icon {
  width: 13px;
  height: 13px;
}
.panel-shell--admin .admin-docs a:hover {
  text-decoration: underline;
}

/* Apple iOS Filter Bar */
.panel-shell--admin .admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 16px;
}
.panel-shell--admin .admin-filter-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 240px;
}
.panel-shell--admin .admin-filter-search .icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: #8e8e93;
  pointer-events: none;
}
.panel-shell--admin .admin-filter-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--apple-radius-pill);
  background: #ffffff;
  color: #1c1c1e;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.panel-shell--admin .admin-filter-search input:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
  background: #ffffff;
}
.panel-shell--admin .admin-filter-select {
  height: 42px;
  min-width: 160px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #ffffff;
  color: #334155;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.panel-shell--admin .admin-filter-select:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

/* =========================================================
   RESPONSIVE MOBILE CARDS FOR ADMIN TABLES (< 768px)
   ========================================================= */
@media (max-width: 768px) {
  .panel-shell--admin .panel-table-wrap {
    overflow: visible;
    margin-top: 12px;
  }
  
  .panel-shell--admin table.panel-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    border: 0;
    border-collapse: separate;
  }
  
  .panel-shell--admin table.panel-table thead {
    display: none;
  }
  
  .panel-shell--admin table.panel-table tbody {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }
  
  .panel-shell--admin tr[data-admin-row] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    border-radius: var(--apple-radius-lg);
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  
  .panel-shell--admin tr[data-admin-row][hidden] {
    display: none !important;
  }
  
  .panel-shell--admin tr[data-admin-row] > td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    min-width: 0;
    font-size: 13px;
  }
  
  .panel-shell--admin tr[data-admin-row] > td[data-label]::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    flex: none;
    margin-right: 14px;
  }
  
  /* Primary title header in card */
  .panel-shell--admin tr[data-admin-row] > td.panel-td--title {
    order: -2;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-shell--admin tr[data-admin-row] > td.panel-td--title::before {
    display: none;
  }
  .panel-shell--admin tr[data-admin-row] .panel-row-media {
    width: 100%;
  }
  .panel-shell--admin tr[data-admin-row] .panel-row-title {
    font-size: 16px;
    font-weight: 800;
    color: #1c1c1e;
  }
  .panel-shell--admin tr[data-admin-row] .panel-row-sub {
    font-size: 12px;
    color: #636366;
    margin-top: 2px;
  }

  /* Values right-aligned */
  .panel-shell--admin tr[data-admin-row] .panel-cell-val {
    text-align: right;
  }
  .panel-shell--admin tr[data-admin-row] .panel-cell-val strong {
    display: block;
    font-size: 13px;
    color: #1c1c1e;
  }
  .panel-shell--admin tr[data-admin-row] .panel-cell-val small {
    display: block;
    color: #8e8e93;
    font-size: 11px;
  }
  .panel-shell--admin tr[data-admin-row] .apple-price {
    font-size: 16px;
    font-weight: 800;
    color: #1c1c1e;
  }

  /* Actions docked at bottom of card */
  .panel-shell--admin tr[data-admin-row] > td.panel-td--actions {
    order: 10;
    border-bottom: 0;
    padding-top: 14px;
    margin-top: 4px;
    width: 100%;
  }
  .panel-shell--admin tr[data-admin-row] > td.panel-td--actions::before {
    display: none;
  }
  .panel-shell--admin tr[data-admin-row] .admin-actions {
    display: flex;
    width: 100%;
    gap: 8px;
    justify-content: stretch;
  }
  .panel-shell--admin tr[data-admin-row] .admin-actions .btn {
    flex: 1;
    min-height: 44px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    text-align: center;
    display: inline-flex;
    align-items: center;
  }
  .panel-shell--admin tr[data-admin-row] .admin-actions [data-admin-review] {
    background: #f2f2f7;
    color: #007aff;
    border: none;
  }
  .panel-shell--admin tr[data-admin-row] .admin-actions [data-admin-review]:hover {
    background: #e5e5ea;
  }
  .panel-shell--admin tr[data-admin-row] .admin-actions [data-admin-approve="true"] {
    background: #34c759;
    color: #ffffff;
    border: none;
  }
  .panel-shell--admin tr[data-admin-row] .admin-actions [data-admin-approve="true"]:hover {
    background: #2ebd51;
  }
  .panel-shell--admin tr[data-admin-row] .admin-actions [data-admin-approve="false"] {
    background: #fee2e2;
    color: #ff3b30;
    border: none;
  }
  .panel-shell--admin tr[data-admin-row] .admin-actions [data-admin-approve="false"]:hover {
    background: #fecaca;
  }

  /* KPI Grid on mobile: 2 columns */
  .panel-shell--admin .apple-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .panel-shell--admin .apple-kpi-card {
    padding: 16px;
    gap: 10px;
    border-radius: 18px;
  }
  .panel-shell--admin .apple-kpi-number {
    font-size: 26px;
  }
  .panel-shell--admin .apple-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .panel-shell--admin .apple-kpi-icon .icon {
    width: 19px;
    height: 19px;
  }
  .panel-shell--admin .apple-kpi-foot {
    display: none;
  }

  /* Inbox on mobile */
  .panel-shell--admin .apple-inbox-card {
    padding: 18px;
    border-radius: 20px;
  }
  .panel-shell--admin .apple-inbox-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }
  .panel-shell--admin .apple-inbox-action {
    width: 100%;
  }
  .panel-shell--admin .apple-inbox-action .apple-btn--review {
    width: 100%;
    justify-content: center;
    min-height: 40px;
  }

  /* Inset rows on mobile */
  .panel-shell--admin .apple-inset-row {
    padding: 14px 16px;
    gap: 12px;
  }
  .panel-shell--admin .apple-inset-row:not(:last-child)::after {
    left: 64px;
  }
  .panel-shell--admin .apple-inset-icon {
    width: 36px;
    height: 36px;
  }
  .panel-shell--admin .apple-inset-count {
    font-size: 18px;
    padding: 0 4px;
  }
}

@media (max-width: 480px) {
  .panel-shell--admin .apple-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Panel del comprador: historial de compras ===== */
.buyer-orders-section { margin-top: 18px; }
.buyer-orders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  margin-bottom: 4px;
}
.buyer-orders-head > div { min-width: 0; max-width: 100%; }
.buyer-orders-head h2 { margin: 0; font-size: 18px; font-weight: 900; letter-spacing: -.5px; }
.buyer-orders-head p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.buyer-filters { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.buyer-filter {
  padding: 8px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font: inherit;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.buyer-filter:hover { background: #fff7e0; border-color: #fde68a; color: #92400e; transform: translateY(-1px); }
.buyer-filter.is-active { background: #0b1526; border-color: #0b1526; color: #ffd84d; }
.buyer-orders-list { display: grid; gap: 12px; margin-top: 14px; }
.buyer-order-card {
  padding: 14px;
  border: 1px solid #e6ecf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.buyer-order-card:hover { transform: translateY(-2px); border-color: #dbe4f0; box-shadow: 0 14px 30px rgba(15, 23, 42, .08); }
.buyer-order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.buyer-order-code { display: flex; align-items: center; gap: 10px; min-width: 0; }
.buyer-order-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
}
.buyer-order-icon .icon { width: 20px; height: 20px; }
.buyer-order-code strong { display: block; color: #0b1526; font-size: 13px; font-weight: 850; }
.buyer-order-code small { display: block; margin-top: 1px; color: #8492a8; font-size: 10.5px; }
.buyer-order-body { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.buyer-order-body img {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef2f7;
}
.buyer-order-info { display: grid; gap: 2px; flex: 1; min-width: 0; }
.buyer-order-info strong { color: #1e293b; font-size: 12.5px; font-weight: 800; }
.buyer-order-info small { color: #64748b; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-order-info span { color: #94a3b8; font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-order-total { flex: none; text-align: right; }
.buyer-order-total small { display: block; color: #94a3b8; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.buyer-order-total strong { display: block; margin-top: 2px; color: #0b1526; font-size: 16px; font-weight: 900; letter-spacing: -.3px; }
.buyer-order-actions { display: flex; gap: 8px; margin-top: 12px; }
.buyer-order-actions .btn { flex: 1; min-height: 42px; justify-content: center; }
.buyer-orders-empty .buyer-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: #f1f5f9;
  color: #64748b;
}
.buyer-orders-empty .buyer-empty-icon .icon { width: 26px; height: 26px; }

/* Checkout */
.checkout-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1526, #1c2f4d);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 21, 38, .18);
}
.checkout-hero-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 184, 0, .18);
  color: var(--yellow);
}
.checkout-hero-icon .icon { width: 22px; height: 22px; }
.checkout-hero strong { display: block; font-size: 16px; font-weight: 900; }
.checkout-hero small { display: block; margin-top: 2px; color: #aebbd1; font-size: 11.5px; line-height: 1.4; }
.checkout-items { display: grid; gap: 8px; margin-top: 14px; padding: 12px 14px; border: 1px solid #eef2f7; border-radius: 16px; background: #f8fafc; }
.checkout-product { display: flex; align-items: center; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid #e8edf5; }
.checkout-product-thumb { width: 48px; height: 48px; flex: none; border-radius: 11px; background: #eef2f7; object-fit: cover; }
.checkout-product-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.checkout-product-name { color: #1e293b; font-size: 12.5px; font-weight: 800; line-height: 1.35; }
.checkout-product-meta { color: #94a3b8; font-size: 11px; }
.checkout-product-total { flex: none; color: #0b1526; font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.checkout-item { display: flex; justify-content: space-between; gap: 10px; color: #475569; font-size: 12px; }
.checkout-item b { color: #1e293b; white-space: nowrap; }
.checkout-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 7px; }
.checkout-method {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  color: #475569;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.checkout-method-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  transition: background .18s ease, color .18s ease;
}
.checkout-method-icon .icon { width: 15px; height: 15px; }
.checkout-method-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.checkout-method-copy strong { color: inherit; font-size: 11.5px; font-weight: 850; line-height: 1.2; }
.checkout-method-copy small { color: #94a3b8; font-size: 10px; font-weight: 600; }
.checkout-method.is-active { border-color: var(--orange); background: #fff5ef; color: var(--orange); box-shadow: 0 0 0 2px rgba(255, 84, 32, .08); }
.checkout-method.is-active .checkout-method-icon { background: var(--orange); color: #fff; }
.checkout-method.is-active .checkout-method-copy small { color: #c2410c; }
.checkout-method:disabled { opacity: .45; cursor: not-allowed; }

.pay-total {
  display: grid;
  gap: 2px;
  padding: 2px 0 16px;
  border-bottom: 1px solid #eef2f7;
}
.pay-total > span { color: #94a3b8; font-size: 10.5px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.pay-total > strong { color: var(--ink); font-size: 36px; font-weight: 900; letter-spacing: -1.4px; line-height: 1.1; }
.pay-total > small { color: var(--muted); font-size: 11.5px; }
.payment-options { display: grid; margin-top: 4px; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
  color: #334155;
  text-align: left;
  transition: color .18s ease, background .18s ease;
}
.payment-option:last-child { border-bottom: 0; }
.payment-option-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: #f4f6fa;
  color: #64748b;
  transition: background .18s ease, color .18s ease;
}
.payment-option-icon .icon { width: 19px; height: 19px; }
.payment-option-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 1px; }
.payment-option-copy strong { color: inherit; font-size: 13px; font-weight: 850; }
.payment-option-copy small { overflow: hidden; color: #94a3b8; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.payment-option.is-active { background: transparent; color: var(--orange); }
.payment-option.is-active .payment-option-icon { background: #fff0e8; color: var(--orange); }
.payment-option.is-active .payment-option-copy small { color: #c2410c; }
.payment-radio {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  transition: border-color .18s ease;
}
.payment-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  transform: scale(0);
  transition: transform .18s ease;
}
.payment-option.is-active .payment-radio { border-color: var(--orange); }
.payment-option.is-active .payment-radio::after { transform: scale(1); }
.pay-card-form {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 12px 0 2px;
}
.pay-card-form[hidden] { display: none; }
.pay-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-card-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #172554, #1d4ed8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(29, 78, 216, .18);
}
.pay-card-preview[hidden] { display: none; }
.pay-card-brand { color: #bfdbfe; font-size: 10px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.pay-card-preview strong { margin-left: auto; font-size: 14px; font-weight: 850; letter-spacing: .5px; }
.pay-card-preview small { color: #dbeafe; font-size: 10.5px; }
.pay-data { border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; }
.pay-data-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 2px;
  border-bottom: 1px solid #eef2f7;
  font-size: 12px;
}
.pay-data-row:last-child { border-bottom: 0; }
.pay-data-row span { flex: none; color: #94a3b8; }
.pay-data-row b { color: #1e293b; font-weight: 800; text-align: right; }
.pay-summary-lines { display: grid; gap: 9px; padding: 1px 2px 2px; }
.pay-summary-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12.5px; }
.pay-summary-lines b { color: var(--ink); font-weight: 850; }
.pay-summary-lines .is-total { margin-top: 2px; padding-top: 11px; border-top: 1px solid #eef2f7; color: var(--ink); font-size: 14px; font-weight: 900; }
.pay-summary-lines .is-total b { font-size: 20px; letter-spacing: -.4px; }.checkout-total { display: flex; justify-content: space-between; gap: 10px; margin-top: 2px; padding-top: 10px; border-top: 1px solid #e2e8f0; font-size: 13px; font-weight: 800; }
.checkout-total strong { color: #0b1526; font-size: 17px; font-weight: 900; }
.checkout-form { display: grid; gap: 12px; margin-top: 14px; }

/* Order detail */
.order-detail-hero {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0b1526, #1c2f4d);
  color: #fff;
  box-shadow: 0 12px 28px rgba(11, 21, 38, .18);
}
.order-detail-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-detail-hero-top small { color: #aebbd1; font-size: 10.5px; }
.order-detail-hero > strong { display: block; margin-top: 10px; font-size: 28px; font-weight: 900; letter-spacing: -.8px; }
.order-detail-hero > p { margin: 4px 0 0; color: #aebbd1; font-size: 12px; }
.order-timeline { display: grid; margin-top: 16px; }
.order-timeline-item { position: relative; padding: 0 0 16px 24px; }
.order-timeline-item:last-child { padding-bottom: 0; }
.order-timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: #e6ecf5;
}
.order-timeline-item:last-child::before { display: none; }
.order-timeline-dot {
  position: absolute;
  left: 0;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e6ecf5;
}
.order-timeline-item.is-current .order-timeline-dot { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 196, 0, .24); }
.order-timeline-item strong { display: block; color: #1e293b; font-size: 12.5px; font-weight: 800; }
.order-timeline-item small { display: block; margin-top: 1px; color: #94a3b8; font-size: 10.5px; }
.order-timeline-item p { margin: 4px 0 0; color: #64748b; font-size: 11.5px; line-height: 1.45; }
.order-detail-items { display: grid; gap: 10px; }
.order-detail-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #eef2f7; border-radius: 14px; background: #fff; }
.order-detail-item img { flex: none; width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: #eef2f7; }
.order-detail-item > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.order-detail-item strong { color: #1e293b; font-size: 12.5px; font-weight: 800; }
.order-detail-item small { color: #8492a8; font-size: 10.5px; }
.order-detail-item span { color: #64748b; font-size: 11px; }
.order-detail-item > b { flex: none; color: #0b1526; font-size: 13px; font-weight: 850; }
.order-detail-summary { display: grid; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #f8fafc; }
.order-detail-summary > div { display: flex; justify-content: space-between; gap: 10px; color: #64748b; font-size: 12px; }
.order-detail-summary > div b { color: #1e293b; font-weight: 800; }
.order-detail-summary .is-total { padding-top: 8px; border-top: 1px solid #e2e8f0; color: #0b1526; font-size: 13px; font-weight: 850; }
.order-detail-summary .is-total b { font-size: 17px; font-weight: 900; }
.order-detail-meta { display: grid; gap: 8px; margin-top: 14px; }
.order-detail-meta > div { padding: 11px 13px; border: 1px solid #eef2f7; border-radius: 14px; background: #fff; }
.order-detail-meta span { display: block; color: #8492a8; font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.order-detail-meta b { display: block; margin-top: 2px; color: #1e293b; font-size: 12.5px; font-weight: 800; }
.order-detail-meta small { display: block; margin-top: 2px; color: #64748b; font-size: 11px; line-height: 1.4; }

@media (max-width: 640px) {
  .buyer-orders-head { flex-direction: column; align-items: stretch; }
  .buyer-filters { flex-wrap: wrap; width: 100%; padding-bottom: 2px; }
  .buyer-filter { flex: 0 1 auto; }
  .buyer-order-body { flex-wrap: wrap; }
  .buyer-order-total { width: 100%; text-align: left; margin-top: 2px; }
}

/* ===== CategorÃ­a: Marketplace vs Tiendas ===== */
.category-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 16px; }
.category-tab {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #e6ecf5;
  border-radius: 16px;
  background: #fff;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.category-tab:hover { border-color: #fde68a; background: #fffdf5; transform: translateY(-1px); }
.category-tab.is-active { border-color: #0b1526; background: #0b1526; color: #fff; box-shadow: 0 12px 28px rgba(11, 21, 38, .2); }
.category-tab-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f1f5f9; color: #475569; }
.category-tab-icon .icon { width: 19px; height: 19px; }
.category-tab.is-active .category-tab-icon { background: rgba(255, 196, 0, .18); color: var(--yellow); }
.category-tab strong { display: block; font-size: 13.5px; font-weight: 850; }
.category-tab small { display: block; margin-top: 1px; color: #8492a8; font-size: 11px; }
.category-tab.is-active small { color: #aebbd1; }

.category-panel { margin-top: 20px; }
.category-panel[hidden] { display: none; }
.category-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.category-panel-head h2 { margin: 5px 0 0; color: #0b1526; font-size: 22px; font-weight: 900; letter-spacing: -.5px; }
.category-panel-head p { margin: 3px 0 0; color: #64748b; font-size: 12.5px; }
.category-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.category-section-badge--store { background: #ecfdf5; color: #047857; }
.category-section-badge .icon { width: 12px; height: 12px; }
.category-mode-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.4;
}
.category-mode-note .icon { flex: none; width: 15px; height: 15px; color: #2563eb; }
.category-mode-note--store .icon { color: #047857; }
.category-ad-tools { margin-bottom: 12px; }
.category-ad-loading { padding: 32px 12px; text-align: center; color: #8492a8; font-size: 12.5px; }
.category-pagination { margin-top: 16px; }
.category-ad-empty { padding: 34px 16px; text-align: center; border: 1px dashed #e2e8f0; border-radius: 18px; background: #f8fafc; color: #64748b; font-size: 12.5px; }
.category-ad-empty strong { display: block; color: #0b1526; font-size: 16px; }
.category-ad-empty p { margin: 5px 0 12px; }
.category-ad-empty .buyer-empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px; background: #eef2f7; color: #64748b; }
.category-ad-empty .buyer-empty-icon .icon { width: 26px; height: 26px; }

.mkt-ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mkt-ad-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6ecf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mkt-ad-card:hover { transform: translateY(-3px); border-color: #dbe4f0; box-shadow: 0 16px 34px rgba(15, 23, 42, .1); }
.mkt-ad-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #eef2f7; }
.mkt-ad-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mkt-ad-card:hover .mkt-ad-media img { transform: scale(1.045); }
.mkt-ad-media .ad-placeholder { height: 100%; }
.mkt-ad-flag {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #1e293b;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.mkt-ad-boost {
  position: absolute;
  right: 9px;
  top: 9px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 196, 0, .95);
  color: #1c1305;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.mkt-ad-body { display: grid; gap: 5px; padding: 12px 13px 13px; }
.mkt-ad-meta { overflow: hidden; color: #8492a8; font-size: 9.5px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.mkt-ad-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 35px;
  overflow: hidden;
  color: #0b1526;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
}
.mkt-ad-title:hover { color: #b45309; }
.mkt-ad-price { color: #b45309; font-size: 17px; font-weight: 900; letter-spacing: -.4px; }
.mkt-ad-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.mkt-ad-seller, .mkt-ad-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mkt-ad-seller:hover { color: #b45309; }
.mkt-ad-seller .icon, .mkt-ad-city .icon { flex: none; width: 12px; height: 12px; }
.mkt-ad-cta { margin-top: 6px; min-height: 38px; font-size: 11.5px; }

/* ===== PÃ¡gina de aviso del Marketplace ===== */
.ad-page { display: grid; gap: 18px; }
.ad-page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ad-page-back { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 12px; font-weight: 700; text-decoration: none; }
.ad-page-back:hover { color: #0b1526; }
.ad-page-back .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.ad-page-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.ad-page-flag .icon { width: 13px; height: 13px; }
.ad-page-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start; }
.ad-page-media { overflow: hidden; border-radius: 20px; background: #0a1120; box-shadow: 0 18px 40px rgba(10, 17, 32, .16); }
.ad-page-main { display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #0a1120; }
.ad-page-main img, .ad-page-main video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ad-page-main .ad-placeholder { width: 100%; height: 100%; background: #0a1120; }
.ad-page-main iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.ad-page-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: #0a1120; scrollbar-width: none; }
.ad-page-thumbs::-webkit-scrollbar { display: none; }
.ad-page-thumb { flex: none; width: 56px; height: 56px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #1e293b; cursor: pointer; }
.ad-page-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-page-thumb.is-active { border-color: var(--yellow); }
.ad-page-copy { min-width: 0; }
.ad-page-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ad-page-category { color: #8492a8; font-size: 10px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.ad-page-copy h1 { margin: 8px 0 0; color: #0b1526; font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -.8px; line-height: 1.15; }
.ad-page-price { margin-top: 10px; color: #b45309; font-size: 32px; font-weight: 900; letter-spacing: -1px; }
.ad-page-meta { display: flex; align-items: center; gap: 5px; margin: 7px 0 0; color: #8492a8; font-size: 12px; }
.ad-page-meta .icon { width: 14px; height: 14px; }
.ad-page-desc { margin: 16px 0 0; color: #475569; font-size: 13.5px; line-height: 1.65; white-space: pre-line; }
.ad-page-seller {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 12px 13px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.ad-page-seller:hover { border-color: #fde68a; background: #fffdf5; }
.ad-page-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #0f172a; color: var(--yellow); font-size: 15px; font-weight: 900; }
.ad-page-seller > span:nth-child(2) { flex: 1; min-width: 0; }
.ad-page-seller small { display: block; color: #8492a8; font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.ad-page-seller strong { display: block; color: #1e293b; font-size: 13.5px; font-weight: 850; }
.ad-page-seller em { display: block; color: #8492a8; font-size: 11px; font-style: normal; }
.ad-page-seller > .icon { width: 16px; height: 16px; color: #94a3b8; }
.ad-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ad-page-actions .btn { flex: 1 1 150px; min-height: 48px; justify-content: center; font-weight: 800; }
.ad-page-map-wrap { margin-top: 8px; }
.ad-page-map-wrap h2 { margin: 0 0 8px; color: #334155; font-size: 13px; font-weight: 850; }

.ad-map-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #0b1526;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .05);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ad-map-button .icon:first-child {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 10px;
  background: #fff7e0;
  color: #b45309;
}
.ad-map-button .icon:last-child {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  color: #94a3b8;
  transition: color .18s ease, transform .18s ease;
}
.ad-map-button:hover {
  border-color: #fbbf24;
  background: #fffbeb;
  box-shadow: 0 8px 20px rgba(180, 83, 9, .10);
  transform: translateY(-1px);
}
.ad-map-button:hover .icon:last-child { color: #b45309; transform: translateX(2px); }

/* ===== Perfil pÃºblico del vendedor ===== */
.seller-profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #e6ecf5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  flex-wrap: wrap;
}
.seller-profile-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b1526, #1c2f4d);
  color: var(--yellow);
  font-size: 26px;
  font-weight: 900;
}
.seller-profile-copy { flex: 1; min-width: 200px; }
.seller-profile-copy .route-title { margin: 0; }
.seller-profile-copy .store-meta { display: flex; align-items: center; gap: 5px; }
.seller-profile-copy .icon { width: 14px; height: 14px; }
.seller-profile .category-mode-note { margin-top: 14px; }
.seller-profile .category-panel { margin-top: 18px; }

@media (max-width: 800px) {
  .ad-page-grid { grid-template-columns: 1fr; }
  .ad-page-price { font-size: 27px; }
}
@media (max-width: 640px) {
  .category-tab { min-width: 0; flex: 1; padding: 10px; gap: 8px; }
  .category-tab-icon { width: 32px; height: 32px; border-radius: 10px; }
  .category-tab strong { font-size: 12.5px; }
  .category-tab small { font-size: 10px; }
  .category-panel-head h2 { font-size: 19px; }
  .mkt-ads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mkt-ad-body { padding: 10px; }
  .mkt-ad-title { font-size: 12.5px; min-height: 31px; }
  .mkt-ad-price { font-size: 15px; }
  .mkt-ad-flag, .mkt-ad-boost { font-size: 8.5px; padding: 3px 7px; }
  .mkt-ad-cta { font-size: 10.5px; min-height: 34px; }
}
@media (max-width: 430px) {
  .mkt-ads-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ads-category-select { flex: 1 1 160px; min-width: 0; width: 100%; }
}

/* Secciones por categorÃ­a en Ofertas */
.offers-category-sections { display: grid; gap: 24px; margin-top: 18px; }
.offers-category-section { min-width: 0; }
.offers-product-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.offers-product-slider::-webkit-scrollbar { display: none; }
.offers-product-slider .product-card {
  flex: 0 0 clamp(220px, 24vw, 280px);
  scroll-snap-align: start;
}
@media (max-width: 640px) {
  .offers-product-slider .product-card { flex-basis: 160px; }
}

/* GeolocalizaciÃ³n del paso de direcciÃ³n */
.address-geo { display: grid; gap: 6px; margin-top: 10px; }
.address-geo-btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  border-style: dashed;
}
.address-geo-btn.is-loading { opacity: .72; }
.address-geo-hint {
  margin: 0;
  color: #8492a8;
  font-size: 11px;
  line-height: 1.45;
}
.address-geo.is-ok .address-geo-hint { color: #047857; }
.address-geo.is-error .address-geo-hint { color: #b91c1c; }

.checkout-distance {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
}
.checkout-distance b { color: #1e293b; font-weight: 850; }
.checkout-distance .icon { flex: none; width: 14px; height: 14px; color: #b45309; }
.store-auth-map,
.store-profile-map { margin-top: 8px; }

/* ---------- Delivery: checkout, seguimiento y repartidores ---------- */
.checkout-item--muted { color: #94a3b8; font-size: 11.5px; }
.checkout-item--muted b { color: #475569; }
.checkout-delivery-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 600;
}
.checkout-delivery-hint .icon { flex: none; width: 15px; height: 15px; color: #2563eb; margin-top: 1px; }
.checkout-delivery-hint a,
.checkout-location-link { color: #2563eb; font-weight: 800; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.checkout-delivery-hint.is-warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.checkout-delivery-hint.is-warn .icon { color: #d97706; }

.store-delivery-settings {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #f8fafc;
}
.store-delivery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.store-delivery-head strong { display: block; margin-top: 2px; color: #0b1526; font-size: 14px; font-weight: 900; }
.store-delivery-toggle { display: flex; align-items: center; gap: 8px; color: #475569; font-size: 12px; font-weight: 750; cursor: pointer; }
.store-delivery-toggle input { width: 18px; height: 18px; accent-color: #f59e0b; }
.store-delivery-settings .field-row { gap: 12px; }

.store-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.store-order-summary div {
  padding: 12px 14px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
}
.store-order-summary span { display: block; color: #94a3b8; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.store-order-summary b { display: block; margin-top: 4px; color: #0b1526; font-size: 20px; font-weight: 950; }
.store-order-list { display: grid; gap: 12px; }
.store-order-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.store-order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.store-order-card-top strong { display: block; color: #0b1526; font-size: 14px; font-weight: 900; }
.store-order-card-top small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10.5px; }
.store-order-buyer { margin: 0; color: #475569; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.store-order-buyer .icon { width: 13px; height: 13px; color: #64748b; }
.store-order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #64748b; font-size: 11.5px; }
.store-order-meta span { display: inline-flex; align-items: center; gap: 4px; }
.store-order-meta .icon { width: 13px; height: 13px; color: #94a3b8; }
.store-order-meta b { margin-left: auto; color: #0b1526; font-size: 15px; font-weight: 900; }
.store-order-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 9px; border-top: 1px solid #f1f5f9; }
.store-order-card-foot .btn { margin-left: auto; }
.store-order-card-foot .store-meta { font-size: 11px; }

.store-courier-list { display: grid; gap: 10px; }
.store-courier-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #fff;
}
.store-courier-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff7e6;
  color: #b45309;
  font-size: 13px;
  font-weight: 900;
}
.store-courier-info { display: grid; gap: 2px; min-width: 0; }
.store-courier-info strong { color: #0b1526; font-size: 13px; font-weight: 900; }
.store-courier-info small { color: #94a3b8; font-size: 11px; }
.store-courier-code { color: #475569; font-size: 11px; }
.store-courier-code b { color: #0b1526; letter-spacing: 1px; }
.store-courier-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.store-courier-reset { justify-self: start; padding: 0; border: 0; background: none; color: #2563eb; font-size: 10.5px; font-weight: 800; cursor: pointer; text-decoration: underline; }
.store-courier-stats { display: flex; gap: 10px; margin-left: auto; color: #94a3b8; font-size: 10.5px; }
.store-courier-stats b { display: block; color: #0b1526; font-size: 16px; font-weight: 900; text-align: center; }
.store-courier-toggle { display: flex; align-items: center; gap: 6px; color: #64748b; font-size: 11px; font-weight: 750; cursor: pointer; }
.store-courier-toggle input { width: 17px; height: 17px; accent-color: #f59e0b; }

.store-order-modal, .store-courier-modal { max-width: 720px; }
.store-order-modal-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.store-order-tracking { margin: 0 0 14px; }
.store-order-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.store-order-modal-grid div { padding: 10px 12px; border: 1px solid #eef2f7; border-radius: 12px; background: #f8fafc; }
.store-order-modal-grid span { display: block; color: #94a3b8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.store-order-modal-grid b { display: block; margin-top: 3px; color: #0b1526; font-size: 13px; }
.store-order-modal-grid small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10.5px; }
.store-order-assign { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 12px; border: 1px solid #eef2f7; border-radius: 14px; background: #f8fafc; }
.store-order-assign-note { display: flex; align-items: center; gap: 6px; flex: 1 1 280px; color: #64748b; font-size: 11.5px; line-height: 1.45; }
.store-order-assign-note .icon { flex: none; width: 14px; height: 14px; color: #2563eb; }
.store-order-assign .field { flex: 1 1 220px; margin: 0; }
.store-courier-created { display: grid; gap: 12px; }
.store-courier-created > div { padding: 14px; border: 1px solid #eef2f7; border-radius: 14px; background: #f8fafc; text-align: center; }
.store-courier-created span { display: block; color: #94a3b8; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.store-courier-created strong { display: block; margin-top: 5px; color: #0b1526; font-size: 28px; letter-spacing: 4px; font-weight: 950; }
.store-courier-created p { display: flex; align-items: center; gap: 6px; margin: 0; color: #64748b; font-size: 12px; }

.order-tracking-card {
  margin: 14px 0;
  padding: 13px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.order-tracking-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.order-tracking-head strong { display: block; margin-top: 2px; color: #0b1526; font-size: 14px; font-weight: 900; }
.order-tracking-live { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 10.5px; font-weight: 800; }
.order-tracking-live .icon { width: 12px; height: 12px; }
.order-tracking-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; color: #64748b; font-size: 11.5px; }
.order-tracking-meta span { display: inline-flex; align-items: center; gap: 4px; }
.order-tracking-meta .icon { width: 13px; height: 13px; color: #94a3b8; }
.tracking-map { height: 230px; border-radius: 13px; overflow: hidden; background: #eef2f7; }
.tracking-map .leaflet-container { height: 100%; width: 100%; touch-action: none; }
.delivery-map-wrap { position: relative; }
.delivery-current-map { height: 320px; }
.tracking-map-expand {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  background: rgba(11, 21, 38, .88);
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.tracking-map-expand .icon { width: 14px; height: 14px; }
.map-follow-btn {
  position: absolute;
  right: 8px;
  bottom: 24px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(11, 21, 38, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #0b1526;
  font: inherit;
  font-size: 10.5px;
  font-weight: 850;
  box-shadow: 0 3px 10px rgba(11, 21, 38, .16);
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.map-follow-btn .icon { width: 13px; height: 13px; }
.map-follow-btn.is-active { background: #2563eb; border-color: #2563eb; color: #fff; }
.map-eta-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid rgba(11, 21, 38, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #0b1526;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(11, 21, 38, .14);
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.map-eta-chip[hidden] { display: none; }
.map-eta-chip .icon { width: 13px; height: 13px; color: #2563eb; }
.map-eta-chip b { font-size: 11px; font-weight: 900; }
.map-eta-chip span { color: #64748b; font-size: 10px; font-weight: 700; }
.map-courier-div { background: none !important; border: 0 !important; }
.map-destination-div { background: none !important; border: 0 !important; }
.map-destination-pin {
  display: block;
  width: 30px;
  height: 38px;
  filter: drop-shadow(0 3px 5px rgba(127, 29, 29, .35));
}
.map-destination-pin svg { width: 100%; height: 100%; display: block; }
.map-store-div { background: none !important; border: 0 !important; }
.map-store-pin {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 11px;
  background: #0f172a;
  color: #ffb800;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .32);
}
.map-store-pin .icon { width: 17px; height: 17px; }
.map-store-pin.is-picked { background: #059669; color: #fff; }
.map-store-tag {
  display: block;
  width: max-content;
  margin: 3px auto 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .3px;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .2);
}
.map-store-pin.is-picked + .map-store-tag { background: #059669; }
.map-courier-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 40px;
  background: transparent;
  filter: drop-shadow(0 3px 5px rgba(11, 21, 38, .4));
}
.map-courier-marker img {
  width: 28px;
  height: 34px;
  object-fit: contain;
  transform-origin: 50% 50%;
  transition: transform .4s linear;
  will-change: transform;
  user-select: none;
  pointer-events: none;
}
.map-expand-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  background: #0b1526;
}
.map-expand-overlay[hidden] { display: none; }
.map-expand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(120deg, #0d1728, #14243d);
  color: #fff;
}
.map-expand-head strong { display: block; margin-top: 2px; font-size: 16px; font-weight: 900; }
.map-expand-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}
.map-expand-close .icon { width: 18px; height: 18px; }
.map-expand-canvas { flex: 1 1 auto; min-height: 0; width: 100%; background: #eef2f7; }
.map-expand-canvas.leaflet-container { height: 100%; width: 100%; touch-action: none; }

.location-permission-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11, 21, 38, .74);
  backdrop-filter: blur(7px);
}
.location-permission-overlay[hidden] { display: none; }
.location-permission-card {
  width: min(430px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
  text-align: center;
}
.location-permission-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff4d6;
  color: #b45309;
}
.location-permission-icon .icon { width: 28px; height: 28px; }
.location-permission-card h2 { margin: 14px 0 5px; color: #0b1526; font-size: 22px; font-weight: 950; letter-spacing: -.5px; }
.location-permission-card p { margin: 0; color: #64748b; font-size: 12.5px; line-height: 1.55; }
.location-permission-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #fde68a;
  border-radius: 13px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: left;
}
.location-permission-note .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.location-permission-hint { margin-top: 10px !important; font-size: 10.5px !important; color: #94a3b8 !important; }
.location-permission-card .btn { margin-top: 10px; }
.delivery-online-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #fff;
  margin-bottom: 14px;
}
.delivery-online-banner > .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.delivery-online-banner strong { display: block; color: #0b1526; font-size: 13.5px; font-weight: 900; }
.delivery-online-banner span,
.delivery-online-banner p { display: block; margin: 3px 0 0; color: #64748b; font-size: 11.5px; line-height: 1.45; }
.delivery-online-banner .btn { width: auto; min-height: 34px; margin-top: 9px; padding: 7px 13px; font-size: 11.5px; }
.delivery-online-banner.is-online { border-color: #bbf7d0; background: #f0fdf4; }
.delivery-online-banner.is-online > .icon { color: #16a34a; }
.delivery-online-banner.is-online strong { color: #15803d; }
.delivery-online-banner.is-offline { border-color: #fde68a; background: #fffbeb; }
.delivery-online-banner.is-offline > .icon { color: #d97706; }
.delivery-online-banner.is-offline strong { color: #92400e; }
.delivery-offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 6500;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(11, 21, 38, .74);
  backdrop-filter: blur(7px);
}
.delivery-offer-overlay[hidden] { display: none; }
.delivery-offer-card {
  width: min(430px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  animation: offerPop .3s cubic-bezier(.16, 1, .3, 1);
}
.delivery-offer-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 18px;
  background:
    radial-gradient(220px 160px at 100% 0, rgba(255, 90, 42, .22), transparent 65%),
    #18191e;
  color: #fff;
}
.delivery-offer-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.delivery-offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 90, 42, .45);
  border-radius: 999px;
  background: rgba(255, 90, 42, .18);
  color: #ff8a66;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.delivery-offer-chip i { width: 6px; height: 6px; border-radius: 50%; background: #ff5a2a; animation: offerDot 1.4s ease-in-out infinite; }
.delivery-offer-first {
  padding: 4px 8px;
  border: 1px solid rgba(251, 191, 36, .28);
  border-radius: 999px;
  background: rgba(251, 191, 36, .1);
  color: #fbbf24;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.delivery-offer-hero h2 { margin: 13px 0 8px; color: #fff; font-size: 24px; font-weight: 950; letter-spacing: -.7px; }
.delivery-offer-code-row { display: flex; align-items: center; gap: 7px; }
.delivery-offer-code-row span { color: #94a3b8; font-size: 10px; font-weight: 700; }
.delivery-offer-code-row strong {
  padding: 3px 8px;
  border: 1px solid #3a3d46;
  border-radius: 7px;
  background: #26282f;
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .4px;
}
.delivery-offer-body { padding: 16px 18px 18px; }
.delivery-offer-party { padding: 4px 12px; border: 1px solid #e5e7eb; border-radius: 16px; background: #f8f9fa; }
.delivery-offer-party-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; min-width: 0; }
.delivery-offer-party-divider { height: 1px; background: #e5e7eb; }
.delivery-offer-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.delivery-offer-icon .icon { width: 16px; height: 16px; }
.delivery-offer-icon.is-user { color: #475569; }
.delivery-offer-icon.is-store { color: #f59e0b; }
.delivery-offer-icon.is-distance { color: #64748b; }
.delivery-offer-icon.is-shipping { color: #ff5a2a; }
.delivery-offer-icon.is-address { color: #ef4444; }
.delivery-offer-party-row small,
.delivery-offer-number small,
.delivery-offer-address small {
  display: block;
  color: #94a3b8;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.delivery-offer-party-row b,
.delivery-offer-number b,
.delivery-offer-address b {
  display: block;
  margin-top: 1px;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.delivery-offer-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.delivery-offer-number {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8f9fa;
}
.delivery-offer-number.is-highlight { border-color: #ffdcd2; background: #fff1ed; }
.delivery-offer-number.is-highlight small { color: #e05a2b; }
.delivery-offer-number.is-highlight b { color: #ff4f1f; font-size: 14px; font-weight: 950; }
.delivery-offer-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8f9fa;
}
.delivery-offer-address b { line-height: 1.4; }
.delivery-offer-accept {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 48px;
  margin-top: 15px;
  border: 1px solid #ff7a54;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff6a3a, #f04412);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px -6px rgba(255, 84, 32, .45);
  animation: offerPulse 2.4s infinite;
}
.delivery-offer-accept .icon { width: 18px; height: 18px; }
.delivery-offer-accept:hover { background: linear-gradient(180deg, #ff7a4e, #e84212); }
.delivery-offer-accept:active { transform: scale(.985); }
.delivery-offer-reject {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f3f4f6;
  color: #4b5563;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.delivery-offer-reject .icon { width: 15px; height: 15px; }
.delivery-offer-reject:active { transform: scale(.985); }
@keyframes offerPop {
  from { transform: scale(.94) translateY(18px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes offerPulse {
  0%, 100% { box-shadow: 0 8px 20px -4px rgba(255, 84, 32, .3); }
  50% { box-shadow: 0 12px 28px -2px rgba(255, 84, 32, .52); }
}
@keyframes offerDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}
.delivery-pickup-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 11px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.45;
}
.delivery-pickup-note .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; color: #2563eb; }
.delivery-offline-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 700;
}
.delivery-offline-note .icon { flex: none; width: 14px; height: 14px; color: #d97706; }
.store-courier-presence { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; }
.store-courier-presence.is-online { color: #15803d; }
.store-courier-presence.is-offline { color: #b45309; }
.delivery-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 4px 0;
  border-top: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
}
.delivery-metric {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 14px 18px;
  border-left: 1px solid #eef2f7;
}
.delivery-metric:first-child { padding-left: 0; border-left: 0; }
.delivery-metric:last-child { padding-right: 0; }
.delivery-metric-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; color: #b45309; }
.delivery-metric-icon .icon { width: 20px; height: 20px; }
.delivery-metric > div { min-width: 0; }
.delivery-metric span { display: block; color: #94a3b8; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.delivery-metric strong { display: block; margin-top: 2px; color: #0b1526; font-size: 19px; line-height: 1.1; font-weight: 900; letter-spacing: -.3px; overflow-wrap: anywhere; }
.delivery-metric small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10px; line-height: 1.3; }
.delivery-metric:last-child strong { font-size: 15px; }
.delivery-current {
  padding: 16px;
  border: 1px solid #e8edf5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.delivery-current-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.delivery-current-head h2 { margin: 3px 0 0; color: #0b1526; font-size: 20px; font-weight: 950; letter-spacing: -.4px; }
.delivery-current-head p { margin: 4px 0 0; color: #94a3b8; font-size: 11.5px; }
.delivery-current-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.delivery-live { display: inline-flex; align-items: center; gap: 4px; color: #047857; font-size: 10px; font-weight: 850; }
.delivery-live .icon { width: 12px; height: 12px; }
.delivery-current-map { height: 320px; }
.delivery-current-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin-top: 8px;
  border-top: 1px solid #eef2f7;
}
.delivery-detail {
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}
.delivery-detail:last-child { border-bottom: 0; }
.delivery-detail--wide { grid-column: 1 / -1; }
.delivery-detail span {
  display: block;
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.delivery-detail b {
  display: block;
  margin-top: 3px;
  color: #0b1526;
  font-size: 12.5px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.delivery-detail small {
  display: inline-block;
  margin-top: 2px;
  color: #d97706;
  font-size: 10.5px;
  font-weight: 750;
}
.delivery-detail a {
  display: inline-block;
  margin-top: 3px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}
.delivery-current-items { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.delivery-current-items span { padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 10.5px; font-weight: 700; }
.delivery-current-actions { display: grid; gap: 8px; }
.delivery-tool-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.delivery-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.delivery-tool-btn .icon { width: 15px; height: 15px; flex: none; color: #64748b; }
.delivery-tool-btn:hover { border-color: #ffd3c2; background: #fff8f4; color: var(--orange); }
.delivery-tool-btn:hover .icon { color: var(--orange); }
.delivery-more-options { overflow: hidden; border: 1px solid #eef2f7; border-radius: 14px; background: #fff; }
.delivery-more-options summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 12px;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.delivery-more-options summary::-webkit-details-marker { display: none; }
.delivery-more-options summary > .icon:first-child { width: 15px; height: 15px; }
.delivery-more-options summary > .icon:last-child { width: 14px; height: 14px; margin-left: auto; transition: transform .2s ease; }
.delivery-more-options[open] summary > .icon:last-child { transform: rotate(180deg); }
.delivery-more-list { display: grid; gap: 7px; padding: 0 10px 10px; }
.delivery-more-list .btn { min-height: 40px; justify-content: center; font-size: 11.5px; }
.delivery-reject-btn { color: #dc2626; border-color: #fecaca; }
.delivery-reject-btn:hover { border-color: #fca5a5; background: #fef2f2; }
.slide-deliver {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #dcfce7, #bbf7d0);
  border: 1px solid #86efac;
  user-select: none;
}
.slide-deliver-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 46px;
  color: #15803d;
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
}
.slide-deliver-handle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
  cursor: grab;
  touch-action: none;
  transition: transform .16s ease;
}
.slide-deliver-handle:active { cursor: grabbing; }
.slide-deliver-handle .icon { width: 20px; height: 20px; }
.slide-deliver.is-dragging .slide-deliver-handle { transition: none; }
.slide-deliver.is-done { background: #16a34a; border-color: #16a34a; }
.slide-deliver.is-done .slide-deliver-label { color: #fff; padding-left: 0; }
.delivery-empty { text-align: center; padding: 34px 20px; }
.delivery-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: #fff7e6; color: #b45309; }
.delivery-empty-icon .icon { width: 24px; height: 24px; }
.delivery-empty h2 { margin: 12px 0 4px; color: #0b1526; font-size: 19px; font-weight: 900; }
.delivery-empty p { margin: 0; color: #94a3b8; font-size: 12px; }
.delivery-order-list { display: grid; gap: 10px; margin-top: 10px; }
.delivery-history-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.delivery-history-search {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  align-items: center;
}
.delivery-history-search .icon {
  position: absolute;
  left: 13px;
  width: 15px;
  height: 15px;
  color: #94a3b8;
  pointer-events: none;
}
.delivery-history-search input {
  width: 100%;
  height: 42px;
  padding: 0 13px 0 36px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0b1526;
  font: inherit;
  font-size: 12px;
  outline: none;
}
.delivery-history-search input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}
.delivery-history-status {
  height: 42px;
  min-width: 170px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  outline: none;
}
.delivery-history-status:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}
.delivery-history-clear {
  height: 42px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: #2563eb;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.delivery-history-clear[hidden] { display: none; }
.delivery-history-clear .icon { width: 13px; height: 13px; vertical-align: -2px; }
.delivery-active-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #e8edf5;
  border-left: 4px solid #2563eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.delivery-active-card.is-available { border-left-color: #0ea5e9; }
.delivery-active-card.is-queued { border-left-color: #7c3aed; }
.delivery-active-card.is-on-the-way { border-left-color: #f59e0b; }
.delivery-active-card.is-arrived { border-left-color: #10b981; }
.delivery-active-card .delivery-history-code-icon { background: #eef4ff; color: #2563eb; }
.delivery-active-card.is-available .delivery-history-code-icon { background: #e0f2fe; color: #0284c7; }
.delivery-active-card.is-queued .delivery-history-code-icon { background: #f5f3ff; color: #7c3aed; }
.delivery-active-card.is-on-the-way .delivery-history-code-icon { background: #fff7e6; color: #b45309; }
.delivery-active-card.is-arrived .delivery-history-code-icon { background: #ecfdf5; color: #059669; }
.delivery-active-pills { display: flex; align-items: flex-start; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.delivery-active-card .delivery-history-info-item a { display: inline-block; margin-top: 2px; color: #2563eb; font-size: 10.5px; font-weight: 800; }
.delivery-active-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.delivery-active-actions .btn { flex: none; min-height: 38px; padding: 0 13px; }
/* Delivery Chats UI - Professional Delivery & Messaging Standard (No Horizontal Scroll) */
.delivery-chats-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.delivery-chats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.delivery-chats-kicker {
  display: block;
  color: #ff5420;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.delivery-chats-header h2 {
  margin: 2px 0 0;
  color: #0b1526;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.3px;
}
.delivery-chats-subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chats-meta-sep {
  color: #cbd5e1;
}
.delivery-chats-pending-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ff5420;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}
.delivery-chats-ok-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 11px;
  font-weight: 800;
}

/* Full Width Search Bar */
.delivery-chats-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
  height: 42px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all .16s ease;
}
.delivery-chats-search-bar:focus-within {
  background: #ffffff;
  border-color: #ff5420;
  box-shadow: 0 0 0 3px rgba(255, 84, 32, 0.12);
}
.delivery-chats-search-bar .search-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: #94a3b8;
  flex: none;
}
.delivery-chats-search-bar .search-icon .icon {
  width: 17px;
  height: 17px;
}
.delivery-chats-search-bar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: #0f172a;
}
.delivery-chats-search-bar input::placeholder {
  color: #94a3b8;
}
.delivery-chats-clear {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.delivery-chats-clear .icon {
  width: 12px;
  height: 12px;
}

/* 2-Option Segmented Control: 100% Width (NO HORIZONTAL SCROLL) */
.delivery-chats-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  background: #eef2f6;
  border-radius: 12px;
  gap: 5px;
}
.delivery-segment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all .16s ease;
  user-select: none;
}
.delivery-segment-btn:hover {
  color: #0f172a;
}
.delivery-segment-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 850;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.delivery-segment-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}
.delivery-segment-btn.is-active .delivery-segment-count {
  background: #0f172a;
  color: #ffffff;
}
.delivery-segment-btn.has-unread .delivery-segment-count {
  background: #ff5420;
  color: #ffffff;
  animation: deliveryBadgePulse 1.5s ease-in-out infinite;
}

/* Archived / Delivered Orders Section */
.delivery-chat-archive-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.delivery-chat-archive-card:has(.delivery-chat-archive-toggle.is-open) {
  border-color: #ffd9c7;
  box-shadow: 0 10px 24px rgba(255, 84, 32, .07);
}
.delivery-chat-archive-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 13px 14px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease;
}
.delivery-chat-archive-toggle:hover { background: #fffaf7; }
.delivery-chat-archive-toggle.is-open { background: #fffaf7; }
.delivery-chat-archive-left { display: flex; flex: 1; min-width: 0; align-items: center; gap: 11px; }
.delivery-chat-archive-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: #fff2e8;
  color: var(--orange);
}
.delivery-chat-archive-icon .icon { width: 18px; height: 18px; }
.delivery-chat-archive-texts { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.delivery-chat-archive-texts strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0b1526;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.delivery-chat-archive-texts small {
  display: -webkit-box;
  overflow: hidden;
  color: #94a3b8;
  font-size: 10.5px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.delivery-chat-archive-right { display: flex; flex: none; align-items: center; gap: 7px; }
.delivery-chat-archive-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}
.delivery-chat-archive-count.has-items { background: #fff2e8; color: var(--orange); }
.delivery-chat-archive-chevron {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #94a3b8;
  transition: transform .22s ease, color .22s ease;
}
.delivery-chat-archive-chevron .icon { width: 16px; height: 16px; }
.delivery-chat-archive-toggle.is-open .delivery-chat-archive-chevron { color: var(--orange); transform: rotate(180deg); }
.delivery-chat-archive-content {
  padding: 2px 12px 12px;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}
.delivery-chat-archive-content:not([hidden]) { animation: deliveryArchiveIn .22s ease both; }
@keyframes deliveryArchiveIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.delivery-chat-archive-list { margin-top: 10px; }
.delivery-chat-archive-empty {
  padding: 16px 12px;
  margin: 0;
  color: #94a3b8;
  font-size: 11.5px;
  text-align: center;
}
.delivery-chats-footer-note {
  margin: 14px 2px 0;
  padding: 12px 14px;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}
.delivery-chats-footer-note a {
  margin-left: 4px;
  color: var(--orange);
  font-weight: 850;
  white-space: nowrap;
}
.delivery-chats-footer-note a:hover { text-decoration: underline; }
.delivery-chats-history-note {
  display: flex;
  align-items: center;
  padding: 4px 8px;
  color: #64748b;
  font-size: 11.5px;
}
.delivery-chats-history-note p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.delivery-chats-history-note .icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: #94a3b8;
}
.delivery-chats-history-note a {
  color: var(--orange, #ff5420);
  font-weight: 800;
  text-decoration: underline;
}
.delivery-chat-list {
  display: grid;
  gap: 10px;
}
.delivery-chat-card {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 13px 14px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all .18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}
.delivery-chat-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.delivery-chat-card:active {
  transform: scale(0.99);
}

/* UNREAD / PENDING CARD HIGHLIGHT */
.delivery-chat-card.is-unread {
  background: linear-gradient(135deg, #fffbf8 0%, #fff5ee 100%);
  border: 1.5px solid #ff7a45;
  border-left: 5px solid #ff5420;
  box-shadow: 0 4px 18px rgba(255, 84, 32, 0.12);
}
.delivery-chat-card.is-unread:hover {
  background: linear-gradient(135deg, #fff8f3 0%, #ffede2 100%);
  border-color: #ff5420;
  box-shadow: 0 6px 22px rgba(255, 84, 32, 0.18);
}
.delivery-chat-card.is-unread .delivery-chat-avatar {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff5420;
}
.delivery-chat-card.is-unread .delivery-chat-head strong {
  color: #0b1526;
  font-weight: 900;
  font-size: 13.5px;
}
.delivery-chat-card.is-unread .delivery-chat-preview {
  color: #0f172a;
  font-weight: 700;
}
.delivery-chat-card.is-unread .delivery-chat-bubble {
  background: #ff5420;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 84, 32, 0.35);
}

/* DELIVERED / HISTORY CARD STYLING */
.delivery-chat-card.is-delivered {
  background: #fafbfc;
  border-color: #e2e8f0;
  border-left: 4px solid #10b981;
}
.delivery-chat-card.is-delivered .delivery-chat-avatar {
  background: linear-gradient(145deg, #10b981, #059669);
}

/* AVATAR & UNREAD DOT */
.delivery-chat-avatar-wrap {
  position: relative;
  flex: none;
}
.delivery-chat-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffc400, #ff5420);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;
  transition: all .18s ease;
}
.delivery-chat-unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5420;
  border: 2px solid #ffffff;
  animation: deliveryBadgePulse 1.5s ease-in-out infinite;
}

/* COPY SECTION */
.delivery-chat-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.delivery-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.delivery-chat-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #0b1526;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.delivery-chat-head strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #0b1526;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.delivery-chat-head-end {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.delivery-chat-store-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.delivery-chat-order-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 1.5px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 850;
  font-family: monospace;
  white-space: nowrap;
}
.delivery-chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  color: #64748b;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.delivery-chat-meta .icon {
  width: 12px;
  height: 12px;
  flex: none;
  color: #94a3b8;
}
.delivery-chat-meta .meta-sep {
  color: #cbd5e1;
}
.delivery-chat-preview {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
}
.delivery-chat-preview.is-empty {
  color: #94a3b8;
  font-style: italic;
}

/* SIDE & BADGES */
.delivery-chat-side-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
}
.delivery-chat-time {
  flex: none;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.delivery-chat-badge-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ff5420;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: .2px;
  box-shadow: 0 2px 6px rgba(255, 84, 32, 0.35);
}
.delivery-chat-status-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 1.5px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
}
.delivery-chat-status-tag.is-ready {
  background: #eff6ff;
  color: #2563eb;
}
.delivery-chat-status-tag.is-delivered {
  background: #ecfdf5;
  color: #059669;
}
.delivery-chat-bubble {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  transition: all .15s ease;
}
.delivery-chat-bubble .icon {
  width: 15px;
  height: 15px;
}

/* HISTORY DIRECT LINK BANNER */
.delivery-chats-history-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  margin-top: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}
.delivery-chats-history-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.delivery-chats-history-copy .icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: #64748b;
}
.delivery-chats-history-copy strong {
  display: block;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 800;
}
.delivery-chats-history-copy p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
}
.delivery-history-card {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #e8edf5;
  border-left: 4px solid #10b981;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.delivery-history-card.is-cancelled { border-left-color: #ef4444; }
.delivery-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.delivery-history-code { display: flex; align-items: center; gap: 10px; min-width: 0; }
.delivery-history-code-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #ecfdf5;
  color: #059669;
}
.delivery-history-card.is-cancelled .delivery-history-code-icon { background: #fef2f2; color: #dc2626; }
.delivery-history-code-icon .icon { width: 20px; height: 20px; }
.delivery-history-code strong { display: block; color: #0b1526; font-size: 14px; font-weight: 900; }
.delivery-history-code small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10.5px; }
.delivery-history-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.delivery-history-info-item { display: flex; align-items: center; gap: 9px; min-width: 0; }
.history-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.history-icon .icon { width: 16px; height: 16px; }
.history-icon--user { background: #eef4ff; color: #2563eb; }
.history-icon--store { background: #fff7e6; color: #b45309; }
.history-icon--pin { background: #fef2f2; color: #dc2626; }
.history-icon--card { background: #ecfdf5; color: #059669; }
.history-icon--package { background: #f5f3ff; color: #7c3aed; }
.history-icon--total { background: #f1f5f9; color: #334155; }
.delivery-history-info-item small {
  display: block;
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.delivery-history-info-item b {
  display: block;
  margin-top: 2px;
  color: #0b1526;
  font-size: 12.5px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.delivery-history-address {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.45;
}
.delivery-history-address .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; color: #dc2626; }
.delivery-history-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.delivery-history-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.delivery-history-action-btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.delivery-history-action-btn .icon { width: 14px; height: 14px; }
.delivery-history-action-btn.is-call { border-color: #bbf7d0; background: #f0fdf4; color: #059669; }
.delivery-history-action-btn.is-call:hover { border-color: #86efac; background: #dcfce7; }
.delivery-detail-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}
.delivery-detail-head small { color: #94a3b8; font-size: 10.5px; }
.delivery-detail-head > b { margin-left: auto; color: #0b1526; font-size: 12.5px; font-weight: 900; }
.delivery-detail-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
}
.delivery-detail-row {
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}
.delivery-detail-row.is-wide { grid-column: 1 / -1; }
.delivery-detail-row span {
  display: block;
  color: #94a3b8;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.delivery-detail-row b {
  display: block;
  margin-top: 2px;
  color: #0b1526;
  font-size: 12.5px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.delivery-detail-products { display: grid; }
.delivery-detail-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.delivery-detail-product:last-child { border-bottom: 0; }
.delivery-detail-product img {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f7;
}
.delivery-detail-product > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.delivery-detail-product strong { color: #0b1526; font-size: 12.5px; font-weight: 800; }
.delivery-detail-product small { color: #94a3b8; font-size: 10.5px; }
.delivery-detail-qty {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 800;
}
.delivery-detail-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.45;
}
.delivery-detail-note .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.delivery-detail-security {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #eef2f7;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
}
.delivery-detail-security .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.order-detail-item span b { color: #0b1526; font-weight: 900; }

.delivery-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}
.delivery-history-page-info { color: #94a3b8; font-size: 11.5px; }
.delivery-history-page-info b { color: #475569; }
.delivery-history-pages { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.delivery-history-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
}
.delivery-history-page-btn:hover:not(:disabled) { border-color: #cbd5e1; background: #f8fafc; }
.delivery-history-page-btn.is-active { border-color: #0b1526; background: #0b1526; color: #ffd84d; }
.delivery-history-page-btn:disabled { opacity: .4; cursor: default; }
.delivery-history-page-btn .icon { width: 14px; height: 14px; transform: rotate(90deg); }
.delivery-history-page-btn.is-next .icon { transform: rotate(-90deg); }
.delivery-order-card { display: grid; gap: 8px; padding: 13px 14px; border: 1px solid #e8edf5; border-radius: 15px; background: #fff; }
.delivery-order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.delivery-order-card-top strong { display: block; color: #0b1526; font-size: 13.5px; font-weight: 900; }
.delivery-order-card-top small { color: #94a3b8; font-size: 10.5px; }
.delivery-order-card p { margin: 0; color: #475569; font-size: 11.5px; }
.delivery-order-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: #64748b; font-size: 10.5px; }
.delivery-order-meta span { display: inline-flex; align-items: center; gap: 3px; }
.delivery-order-meta .icon { width: 12px; height: 12px; color: #94a3b8; }
.delivery-order-address { display: flex; align-items: center; gap: 4px; color: #64748b !important; }
.delivery-order-address .icon { width: 12px; height: 12px; color: #94a3b8; }
.delivery-order-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.delivery-order-actions .btn { min-height: 36px; }
.delivery-profile-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(620px 220px at 88% -20%, rgba(255, 184, 0, .24), transparent 62%),
    linear-gradient(120deg, #0d1728, #1c2f4d);
  box-shadow: 0 16px 40px rgba(11, 21, 38, .2);
}
.delivery-profile-watermark {
  position: absolute;
  right: -34px;
  bottom: -54px;
  color: #fff;
  opacity: .055;
  pointer-events: none;
}
.delivery-profile-watermark .icon { width: 230px; height: 230px; }
.delivery-profile-main { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; min-width: 0; }
.delivery-profile-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  border: 3px solid rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, #ffd34d, #f0a000);
  color: #0b1526;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 8px 24px rgba(245, 158, 11, .35);
}
.delivery-profile-copy { min-width: 0; }
.delivery-profile-kicker { color: var(--yellow); font-size: 9.5px; font-weight: 850; letter-spacing: 2px; text-transform: uppercase; }
.delivery-profile-copy h2 { margin: 5px 0 0; color: #fff; font-size: clamp(22px, 3vw, 31px); font-weight: 950; letter-spacing: -1px; }
.delivery-profile-copy p { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 8px 0 0; color: #aebbd1; font-size: 11.5px; }
.delivery-profile-copy p span { display: inline-flex; align-items: center; gap: 4px; }
.delivery-profile-copy p .icon { width: 13px; height: 13px; color: #ffd34d; }
.delivery-profile-badge { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.delivery-profile-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 850;
}
.delivery-profile-online i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.delivery-profile-online.is-online { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.delivery-profile-online.is-offline { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.delivery-profile-code-label { margin-top: 8px; color: #93a4c1; font-size: 8.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.delivery-profile-badge strong { color: #fff; font-size: 20px; font-weight: 950; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.delivery-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0 20px;
  padding: 4px 0;
  border-top: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
}
.delivery-profile-stats > div { padding: 13px 16px; border-left: 1px solid #eef2f7; }
.delivery-profile-stats > div:first-child { padding-left: 0; border-left: 0; }
.delivery-profile-stats > div:last-child { padding-right: 0; }
.delivery-profile-stats span { display: block; color: #94a3b8; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.delivery-profile-stats b { display: block; margin-top: 2px; color: #0b1526; font-size: 21px; font-weight: 950; letter-spacing: -.4px; }
.delivery-profile-details { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.delivery-profile-column { display: grid; align-content: start; }
.delivery-profile-section-kicker {
  padding-bottom: 8px;
  border-bottom: 1px solid #eef2f7;
  color: #8492a8;
  font-size: 9.5px;
  font-weight: 850;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.delivery-profile-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 0; border-bottom: 1px solid #f1f5f9; }
.delivery-profile-row:last-child { border-bottom: 0; }
.delivery-profile-row-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; }
.delivery-profile-row-icon .icon { width: 16px; height: 16px; }
.delivery-profile-row-icon.is-phone { background: #ecfdf5; color: #059669; }
.delivery-profile-row-icon.is-pin { background: #fef2f2; color: #dc2626; }
.delivery-profile-row-icon.is-store { background: #fff7e6; color: #b45309; }
.delivery-profile-row-icon.is-code { background: #eef4ff; color: #2563eb; }
.delivery-profile-row-icon.is-status { background: #f5f3ff; color: #7c3aed; }
.delivery-profile-row-icon.is-online { background: #f0fdf4; color: #16a34a; }
.delivery-profile-row > div { min-width: 0; }
.delivery-profile-row small { display: block; color: #94a3b8; font-size: 9.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.delivery-profile-row b { display: block; margin-top: 2px; color: #0b1526; font-size: 12.5px; font-weight: 800; overflow-wrap: anywhere; }
.delivery-profile-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding-top: 16px; border-top: 1px solid #eef2f7; }
.delivery-profile-actions .btn { flex: 1; min-width: 180px; }
.delivery-profile-note { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; color: #94a3b8; font-size: 10.5px; line-height: 1.4; }
.delivery-profile-note .icon { flex: none; width: 13px; height: 13px; margin-top: 1px; }
.delivery-policy-list { display: grid; gap: 7px; margin: 0 0 14px; padding-left: 18px; color: #475569; font-size: 12px; line-height: 1.45; }
.delivery-policy-list li::marker { color: #f59e0b; }
.delivery-policy-warning {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.45;
}
.delivery-policy-warning .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.delivery-available-empty { padding: 16px; border: 1px dashed #e2e8f0; border-radius: 12px; background: #f8fafc; color: #94a3b8; font-size: 11.5px; text-align: center; }
.delivery-assigned, .delivery-history, .delivery-profile { margin-top: 16px; }
.delivery-login-card { max-width: 460px; margin: 0 auto; }
.panel-shell--delivery .panel-brand strong span { color: var(--yellow); }

.admin-orders-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.admin-chat-audit-intro { margin: 0 0 12px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.admin-chat-audit { display: grid; gap: 8px; }
.admin-chat-audit-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  transition: border-color .18s ease, background .18s ease;
}
.admin-chat-audit-row:hover { border-color: #ffd6c2; background: #fffaf7; }
.admin-chat-audit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: #fff2e8;
  color: var(--orange);
}
.admin-chat-audit-icon .icon { width: 17px; height: 17px; }
.admin-chat-audit-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.admin-chat-audit-copy strong { overflow: hidden; color: #0b1526; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-audit-copy span { overflow: hidden; color: #94a3b8; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-audit-copy small { overflow: hidden; color: #64748b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-audit-side { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 5px; color: #94a3b8; font-size: 9.5px; }
.admin-chat-audit-side time { max-width: 105px; text-align: right; line-height: 1.25; }
.admin-chat-audit-side .icon { width: 14px; height: 14px; }
.admin-notify-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 15px 16px;
  border: 1px solid #e9edf3;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf4, #fff);
}
.admin-notify-cta-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: #fff0e8;
  color: var(--orange);
}
.admin-notify-cta-icon .icon { width: 21px; height: 21px; }
.admin-notify-cta > div { flex: 1; min-width: 0; }
.admin-notify-cta strong { display: block; color: #0b1526; font-size: 14px; font-weight: 850; }
.admin-notify-cta p { margin: 3px 0 0; color: #94a3b8; font-size: 11.5px; line-height: 1.45; }
.admin-notify-cta .btn { flex: none; }
.admin-notify-form { display: grid; gap: 12px; }
@media (max-width: 600px) {
  .admin-notify-cta { flex-wrap: wrap; }
  .admin-notify-cta .btn { width: 100%; }
}
.admin-order-list { display: grid; gap: 12px; }
.admin-order-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}
.admin-order-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.admin-order-card-top strong { display: block; color: #0b1526; font-size: 14px; font-weight: 900; }
.admin-order-card-top small { display: block; margin-top: 2px; color: #94a3b8; font-size: 10.5px; }
.admin-order-buyer { display: flex; align-items: center; gap: 5px; margin: 0; color: #475569; font-size: 12px; }
.admin-order-buyer .icon { width: 13px; height: 13px; color: #64748b; }
.admin-order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #64748b; font-size: 11.5px; }
.admin-order-meta span { display: inline-flex; align-items: center; gap: 4px; }
.admin-order-meta .icon { width: 13px; height: 13px; color: #94a3b8; }
.admin-order-meta b { margin-left: auto; color: #0b1526; font-size: 15px; font-weight: 900; }
.admin-order-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 9px; border-top: 1px solid #f1f5f9; }
.admin-order-card-foot .btn { margin-left: auto; }
.admin-order-assign { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 12px; border: 1px solid #eef2f7; border-radius: 14px; background: #f8fafc; }
.admin-order-assign .field { flex: 1 1 240px; margin: 0; }
.admin-courier-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-courier-head p { margin: 0; }
.admin-courier-list { display: grid; gap: 10px; }
.admin-courier-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #fff;
}
@media (max-width: 760px) {
  .admin-order-card-foot .btn { width: 100%; margin-left: 0; }
  .admin-courier-head { flex-direction: column; align-items: stretch; }
  .admin-courier-card { flex-wrap: wrap; }
  .admin-order-assign { flex-direction: column; align-items: stretch; }
}
body.is-repartidor-account #cartBtn,
body.is-repartidor-account #publishBtn { display: none !important; }
body.is-repartidor-account .main-nav,
body.is-repartidor-account .header-tools { display: none !important; }
body.is-repartidor-account .site-header .brand,
body.is-repartidor-account .site-footer .brand { cursor: default; }

@media (max-width: 760px) {
  .store-order-summary { grid-template-columns: 1fr; }
  .store-order-card-foot .btn { width: 100%; margin-left: 0; }
  .store-courier-card { flex-wrap: wrap; }
  .store-courier-stats { margin-left: 0; width: 100%; justify-content: space-between; }
  .store-courier-toggle { margin-left: auto; }
  .store-order-modal-grid { grid-template-columns: 1fr; }
  .delivery-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-metric { padding: 12px; }
  .delivery-metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .delivery-metric:nth-child(even) { padding-right: 0; }
  .delivery-metric:nth-child(n+3) { border-top: 1px solid #eef2f7; }
  .delivery-current-details { grid-template-columns: 1fr; }
  .delivery-history-filters { flex-direction: column; align-items: stretch; }
  .delivery-history-search { flex: 1 1 auto; }
  .delivery-history-status { width: 100%; }
  .delivery-history-clear { align-self: flex-start; }
  .delivery-history-info { grid-template-columns: 1fr; }
  .delivery-history-pagination { flex-direction: column; align-items: stretch; }
  .delivery-history-pages { justify-content: center; }
  .delivery-history-page-info { text-align: center; }
  .delivery-detail-data { grid-template-columns: 1fr; }
  .delivery-detail-head > b { margin-left: 0; }
  .delivery-history-foot { align-items: stretch; flex-direction: column; }
  .delivery-history-action-btn { width: 100%; }
  .delivery-active-actions { flex-direction: column; }
  .delivery-active-actions .btn { width: 100%; }
  .delivery-profile-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .delivery-profile-badge { align-items: flex-start; }
  .delivery-profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-profile-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .delivery-profile-stats > div:nth-child(even) { padding-right: 0; }
  .delivery-profile-stats > div:nth-child(n+3) { border-top: 1px solid #eef2f7; }
  .delivery-profile-details { grid-template-columns: 1fr; }
  .delivery-profile-actions .btn { width: 100%; }
  .delivery-current-map { height: 300px; }
  .delivery-order-actions { grid-template-columns: 1fr; }
  .order-tracking-meta { flex-direction: column; align-items: flex-start; }
}

/* ===== Repartidor Â· Seamless Light UI ===== */
.panel-shell--delivery { color: #0f172a; }
.panel-shell--delivery .panel-main {
  --delivery-gutter: 20px;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  gap: 0;
  padding: 20px var(--delivery-gutter) 28px;
  border: 1px solid #e9edf4;
  border-radius: 28px;
  background: #fafafc;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08);
}
.delivery-flat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 16px;
  border-bottom: 1px solid #e6eaf1;
}
.delivery-flat-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.delivery-flat-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
}
.delivery-flat-avatar .icon { width: 19px; height: 19px; }
.delivery-flat-copy { min-width: 0; }
.delivery-flat-kicker { display: block; color: #ff5420; font-size: 9px; font-weight: 850; letter-spacing: 1.7px; text-transform: uppercase; }
.delivery-flat-copy h1 { margin: 1px 0 0; color: #0f172a; font-size: 18px; font-weight: 950; letter-spacing: -.5px; line-height: 1.2; }
.delivery-flat-copy p { margin: 2px 0 0; color: #64748b; font-size: 11px; line-height: 1.35; }
.delivery-flat-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.delivery-flat-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 850;
  white-space: nowrap;
}
.delivery-flat-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.delivery-flat-status.is-online { border: 1px solid #d1fae5; background: #ecfdf5; color: #059669; }
.delivery-flat-status.is-online i { animation: deliveryOnlinePing 1.8s ease-out infinite; }
.delivery-flat-status.is-offline { border: 1px solid #fed7aa; background: #fff7ed; color: #c2410c; }
.delivery-flat-status.is-warn { border: 1px solid #fde68a; background: #fffbeb; color: #b45309; }
@keyframes deliveryOnlinePing {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); }
  70% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.delivery-flat-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.delivery-flat-refresh .icon { width: 13px; height: 13px; }
.delivery-flat-refresh:hover { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; }

.panel-shell--delivery .delivery-online-banner.is-online { display: none; }
.panel-shell--delivery .delivery-online-banner {
  margin: 12px 2px;
  padding: 11px 13px;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
}
.panel-shell--delivery .delivery-online-banner > .icon { width: 17px; height: 17px; margin-top: 0; }
.panel-shell--delivery .delivery-online-banner strong { font-size: 12px; }
.panel-shell--delivery .delivery-online-banner span,
.panel-shell--delivery .delivery-online-banner p { margin-top: 1px; font-size: 11px; }
.panel-shell--delivery .delivery-online-banner .btn { min-height: 32px; margin-top: 7px; }

.panel-shell--delivery .delivery-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 2px;
  padding: 0;
  border-top: 1px solid #e6eaf1;
  border-bottom: 1px solid #e6eaf1;
}
.panel-shell--delivery .delivery-metric {
  display: block;
  min-height: 82px;
  padding: 13px 14px;
  border-left: 1px solid #eef2f7;
  border-top: 1px solid #eef2f7;
}
.panel-shell--delivery .delivery-metric:nth-child(1),
.panel-shell--delivery .delivery-metric:nth-child(2) { border-top: 0; }
.panel-shell--delivery .delivery-metric:nth-child(odd) { padding-left: 2px; border-left: 0; }
.panel-shell--delivery .delivery-metric:nth-child(even) { padding-right: 2px; }
.panel-shell--delivery .delivery-metric-icon { display: none; }
.panel-shell--delivery .delivery-metric span { color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; }
.panel-shell--delivery .delivery-metric strong { margin-top: 3px; color: #0f172a; font-size: 23px; line-height: 1; font-weight: 950; letter-spacing: -.6px; }
.panel-shell--delivery .delivery-metric small { margin-top: 4px; color: #94a3b8; font-size: 9px; }
.panel-shell--delivery .delivery-metric:last-child strong { font-size: 15px; letter-spacing: -.2px; }
.panel-shell--delivery .delivery-metric.is-live strong { color: #059669; font-size: 14px; letter-spacing: -.1px; }

.panel-shell--delivery .delivery-current {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.panel-shell--delivery .delivery-current-head { display: block; padding: 18px 8px 16px; margin: 0; }
.delivery-current-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.delivery-current-kicker { color: #ff5420; font-size: 9px; font-weight: 850; letter-spacing: 1.2px; text-transform: uppercase; }
.delivery-current-fee { color: #ff5420; font-size: 12px; font-weight: 950; white-space: nowrap; }
.delivery-current-fee small { margin-left: 3px; color: #94a3b8; font-size: 9px; font-weight: 700; }
.panel-shell--delivery .delivery-current-head .delivery-current-code { margin: 10px 0 0; color: #0f172a; font-size: clamp(24px, 2.6vw, 29px); font-weight: 950; letter-spacing: -.9px; line-height: 1.1; }
.panel-shell--delivery .delivery-current-head .delivery-current-route { margin: 7px 0 0; color: #64748b; font-size: 12px; font-weight: 600; line-height: 1.45; }
.delivery-current-route span { margin: 0 4px; color: #ff5420; font-weight: 900; }
.delivery-current-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 11px; }
.delivery-current-meta .status-pill { white-space: nowrap; font-size: 10px; }
.delivery-current-live { display: inline-flex; align-items: center; gap: 3px; color: #059669; font-size: 9.5px; font-weight: 850; }
.delivery-current-live .icon { width: 11px; height: 11px; }
.delivery-current-progress { margin-top: 16px; }
.delivery-current-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.delivery-current-progress-head span { color: #94a3b8; font-size: 9px; font-weight: 750; }
.delivery-current-progress-head span:first-child { color: #ff5420; font-weight: 850; }
.delivery-current-progress-track { width: 100%; height: 6px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.delivery-current-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff8a4c, #ff5420); transition: width .45s ease; }

.panel-shell--delivery .delivery-map-wrap { margin-inline: calc(var(--delivery-gutter) * -1); }
.panel-shell--delivery .delivery-current-map {
  height: 216px;
  border-block: 1px solid #e6eaf1;
  border-radius: 0;
}
.panel-shell--delivery .delivery-current-map .map-eta-chip {
  left: 12px;
  bottom: 12px;
  border-color: transparent;
  background: rgba(15, 23, 42, .86);
  color: #fff;
  backdrop-filter: blur(8px);
}
.panel-shell--delivery .delivery-current-map .map-eta-chip span { color: #cbd5e1; }
.panel-shell--delivery .delivery-current-map .map-eta-chip .icon { color: #ff8a66; }
.panel-shell--delivery .delivery-current-map .map-follow-btn { right: 12px; bottom: 12px; background: #fff; }
.panel-shell--delivery .delivery-current-map .map-follow-btn.is-active { border-color: #2563eb; background: #2563eb; color: #fff; }
.panel-shell--delivery .delivery-map-wrap .tracking-map-expand {
  top: 12px;
  right: 12px;
  border-color: rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .92);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12);
}

.delivery-current-rows { padding: 0 6px; }
.delivery-current-row { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid #e8ecf2; }
.delivery-current-row--wide,
.delivery-current-row--products { align-items: flex-start; }
.delivery-row-icon { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; color: #ff5420; }
.delivery-row-icon .icon { width: 17px; height: 17px; }
.delivery-row-icon.is-dark { color: #0f172a; }
.delivery-row-copy { flex: 1; min-width: 0; }
.delivery-row-copy > span { display: block; color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.delivery-row-copy > b { display: block; margin-top: 2px; color: #0f172a; font-size: 12px; font-weight: 850; line-height: 1.4; overflow-wrap: anywhere; }
.delivery-call-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #fff1ed;
  color: #ff5420;
  font-size: 10.5px;
  font-weight: 850;
  transition: background .18s, color .18s;
}
.delivery-call-btn .icon { width: 13px; height: 13px; }
.delivery-call-btn:hover { background: #ff5420; color: #fff; }
.delivery-row-total { flex: none; margin-top: 1px; text-align: right; }
.delivery-row-total span { display: block; color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.delivery-row-total b { display: block; margin-top: 3px; color: #0f172a; font-size: 12.5px; font-weight: 950; white-space: nowrap; }
.delivery-products-collapse { display: block; }
.delivery-products-collapse summary { list-style: none; cursor: pointer; }
.delivery-products-collapse summary::-webkit-details-marker { display: none; }
.delivery-products-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.delivery-products-summary { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.delivery-products-summary > span { color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.delivery-products-summary strong { color: #0f172a; font-size: 12px; font-weight: 850; }
.delivery-products-summary small { color: #94a3b8; font-size: 9.5px; }
.delivery-products-summary-right { display: flex; flex: none; align-items: flex-start; gap: 8px; }
.delivery-products-summary-right .delivery-row-total { margin-top: 0; }
.delivery-products-chevron {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #94a3b8;
  transition: transform .2s ease, color .2s ease;
}
.delivery-products-chevron .icon { width: 15px; height: 15px; }
.delivery-products-collapse[open] .delivery-products-summary small { display: none; }
.delivery-products-collapse[open] .delivery-products-chevron { color: var(--orange); transform: rotate(180deg); }
.delivery-row-products { display: grid; gap: 6px; margin-top: 8px; }
.delivery-products-collapse[open] .delivery-row-products { animation: deliveryProductsIn .2s ease both; }
@keyframes deliveryProductsIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
.delivery-product-chip { display: flex; align-items: center; gap: 7px; min-width: 0; color: #0f172a; font-size: 11.5px; font-weight: 750; line-height: 1.35; }
.delivery-product-thumb {
  width: 24px;
  height: 24px;
  flex: none;
  border: 1px solid #eef2f7;
  border-radius: 7px;
  background: #f1f5f9;
  object-fit: cover;
}
.delivery-product-thumb.is-empty { display: grid; place-items: center; color: #94a3b8; }
.delivery-product-thumb.is-empty .icon { width: 13px; height: 13px; }
.delivery-product-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.delivery-current-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px 0;
  border-bottom: 1px solid #e8ecf2;
}
.delivery-current-stats > div { min-width: 0; padding: 0 10px; border-left: 1px solid #e8ecf2; }
.delivery-current-stats > div:first-child { padding-left: 0; border-left: 0; }
.delivery-current-stats > div:last-child { padding-right: 0; }
.delivery-current-stats span { display: block; color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.delivery-current-stats b { display: block; margin-top: 2px; color: #0f172a; font-size: 12.5px; font-weight: 900; }
.delivery-current-stats small { display: block; margin-top: 1px; color: #ff5420; font-size: 9.5px; font-weight: 800; }

.panel-shell--delivery .delivery-current-actions { gap: 8px; padding: 2px 6px 0; }
.panel-shell--delivery .delivery-current-actions .btn {
  min-height: 46px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 850;
  box-shadow: none;
}
.panel-shell--delivery .delivery-current-actions .btn-primary {
  border: 1px solid #ff7a54;
  background: linear-gradient(180deg, #ff6a3a, #f04412);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(255, 84, 32, .45);
}
.panel-shell--delivery .delivery-current-actions .btn-ghost {
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
}
.panel-shell--delivery .delivery-current-actions .delivery-reject-btn {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #dc2626;
}
.panel-shell--delivery .delivery-open-maps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #ff7a54;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff6a3a, #f04412);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px -8px rgba(255, 84, 32, .45);
  transition: background .18s ease, transform .18s ease;
}
.panel-shell--delivery .delivery-open-maps .icon { width: 16px; height: 16px; }
.panel-shell--delivery .delivery-open-maps:hover { background: linear-gradient(180deg, #ff7a4e, #e84212); }
.panel-shell--delivery .delivery-open-maps:active { transform: scale(.99); }
.panel-shell--delivery .delivery-pickup-note {
  padding: 12px 13px;
  border-color: #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 11px;
}
.panel-shell--delivery .delivery-pickup-note .icon { color: #2563eb; }

.panel-shell--delivery .delivery-available,
.panel-shell--delivery .delivery-assigned,
.panel-shell--delivery .delivery-history {
  margin-top: 14px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.panel-shell--delivery .delivery-available .panel-card-head,
.panel-shell--delivery .delivery-assigned .panel-card-head,
.panel-shell--delivery .delivery-history .panel-card-head { padding-top: 4px; }

#deliveryBottomNav { border-radius: 22px 22px 0 0; background: rgba(255, 255, 255, .95); }
#deliveryBottomNav .nav-item.is-active { color: #ff5420; }
#deliveryBottomNav .nav-item.is-active .icon { fill: none; stroke: #ff5420; }

@media (max-width: 640px) {
  .panel-shell--delivery .panel-main {
    --delivery-gutter: 14px;
    padding: 14px var(--delivery-gutter) 24px;
    border-radius: 24px;
  }
  .delivery-flat-head { padding-bottom: 13px; }
  .delivery-flat-copy p { display: none; }
  .delivery-flat-refresh { width: 34px; padding: 0; font-size: 0; }
  .delivery-flat-refresh .icon { width: 15px; height: 15px; }
  .panel-shell--delivery .delivery-current-map { height: 210px; }
  .panel-shell--delivery .delivery-current-head .delivery-current-code { font-size: 25px; }
  .delivery-current-row { padding: 13px 0; }
  .delivery-current-stats > div { padding: 0 8px; }
  .panel-shell--delivery .delivery-current-actions { padding-inline: 2px; }
}

/* ===== Buyer tracking Â· courier card & live ETA chip ===== */
.order-tracking-head { flex-wrap: wrap; }
.order-tracking-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid #ffe0d5;
  border-radius: 999px;
  background: #fff5f1;
  color: #c2410c;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(255, 84, 32, .07);
}
.order-tracking-live .icon { width: 13px; height: 13px; color: #ff5420; }
.order-tracking-live #buyerTrackingEta { display: inline-flex; align-items: baseline; gap: 4px; }
.order-tracking-live b { color: #0f172a; font-size: 11px; font-weight: 900; }
.order-tracking-live #buyerTrackingEta > span:not(.order-tracking-live-sep) { color: #64748b; font-size: 10px; font-weight: 700; }
.order-tracking-live-sep { color: #cbd5e1; font-weight: 900; }

.buyer-courier-card {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #f8fafc;
}
.buyer-courier-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .3px;
}
.buyer-courier-copy { flex: 1; min-width: 0; }
.buyer-courier-copy small { display: block; color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.buyer-courier-copy strong { display: block; margin-top: 1px; color: #0f172a; font-size: 12.5px; font-weight: 900; overflow-wrap: anywhere; }
.buyer-courier-copy span { display: flex; align-items: center; gap: 4px; margin-top: 3px; color: #64748b; font-size: 10.5px; font-weight: 700; }
.buyer-courier-copy span .icon { width: 12px; height: 12px; color: #ff5420; }
.buyer-courier-call {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff1ed;
  color: #ff5420;
  font-size: 10.5px;
  font-weight: 850;
  transition: background .18s, color .18s;
}
.buyer-courier-call .icon { width: 13px; height: 13px; }
.buyer-courier-call:hover { background: #ff5420; color: #fff; }
.buyer-courier-call[hidden] { display: none; }

.store-courier-vehicle { display: inline-flex; align-items: center; gap: 4px; color: #64748b; font-size: 10.5px; font-weight: 700; }
.store-courier-vehicle .icon { width: 13px; height: 13px; color: #f59e0b; }

/* ===== Buyer metrics Â· Seamless (sin cards) ===== */
.panel-shell--buyer .buyer-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid #e6eaf1;
  border-bottom: 1px solid #e6eaf1;
}
.panel-shell--buyer .buyer-metrics .panel-stat {
  display: block;
  min-height: 82px;
  padding: 13px 16px;
  border: 0;
  border-left: 1px solid #eef2f7;
  border-top: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.panel-shell--buyer .buyer-metrics .panel-stat:nth-child(1),
.panel-shell--buyer .buyer-metrics .panel-stat:nth-child(2) { border-top: 0; }
.panel-shell--buyer .buyer-metrics .panel-stat:nth-child(odd) { padding-left: 2px; border-left: 0; }
.panel-shell--buyer .buyer-metrics .panel-stat:nth-child(even) { padding-right: 2px; }
.panel-shell--buyer .buyer-metrics .panel-stat-icon { display: none; }
.panel-shell--buyer .buyer-metrics .panel-stat > div > span { color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.panel-shell--buyer .buyer-metrics .panel-stat strong { margin-top: 3px; color: #0f172a; font-size: 23px; line-height: 1; font-weight: 950; letter-spacing: -.6px; }
.panel-shell--buyer .buyer-metrics .panel-stat small { margin-top: 4px; color: #94a3b8; font-size: 9px; }
.panel-shell--buyer .buyer-metrics .panel-stat:last-child strong { font-size: 18px; letter-spacing: -.3px; }

@media (max-width: 640px) {
  .panel-shell--buyer .buyer-metrics .panel-stat { min-height: 76px; padding: 12px 10px; }
  .panel-shell--buyer .buyer-metrics .panel-stat:nth-child(odd) { padding-left: 2px; }
  .panel-shell--buyer .buyer-metrics .panel-stat:nth-child(even) { padding-right: 2px; }
  .panel-shell--buyer .buyer-metrics .panel-stat strong { font-size: 21px; }
  .panel-shell--buyer .buyer-metrics .panel-stat:last-child strong { font-size: 17px; }
}

/* ===== Account drawer Â· Clean executive light ===== */
.drawer--account { background: #fff; }
.drawer--account .drawer-head {
  align-items: center;
  padding: 22px 22px 18px;
  border-bottom: 0;
  background: #0f172a;
  color: #fff;
}
.drawer--account .drawer-kicker { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 4px; color: #94a3b8; font-size: 9px; letter-spacing: 1.8px; }
.drawer--account .drawer-kicker .icon { width: 11px; height: 11px; color: #ff5420; }
.drawer--account .drawer-head h2 { color: #fff; font-size: 25px; font-weight: 850; letter-spacing: -.8px; }
.drawer--account .drawer-close { width: 34px; height: 34px; background: #1e293b; color: #94a3b8; }
.drawer--account .drawer-close:hover { background: #334155; color: #fff; transform: rotate(0); }
.drawer--account .drawer-body { padding: 20px 22px calc(26px + env(safe-area-inset-bottom)); }
.drawer--account .account-card {
  gap: 13px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.drawer--account .account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .4px;
  box-shadow: none;
}
.drawer--account .account-card-body { flex: 1; }
.drawer--account .account-name { color: #0f172a; font-size: 16px; font-weight: 850; }
.drawer--account .account-meta { margin-top: 3px; color: #64748b; font-size: 11.5px; }
.drawer--account .account-type-pill {
  flex: none;
  max-width: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-align: left;
}
.drawer--account .account-type-pill--repartidor { background: #e0f2fe; color: #0369a1; }
.drawer--account .account-type-pill--tienda { background: #fef3c7; color: #b45309; }
.drawer--account .account-type-pill--marketplace { background: #ede9fe; color: #6d28d9; }
.drawer--account .account-type-pill--comprador { background: #dcfce7; color: #15803d; }
.drawer--account .account-type-pill--admin { background: #e2e8f0; color: #0f172a; }
.drawer--account .account-store { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fffbeb; }
.drawer--account .account-store.account-store--delivery { border-color: #bfdbfe; background: #eff6ff; }
.drawer--account .drawer-section-title { margin: 20px 0 8px; padding-inline: 2px; color: #94a3b8; font-size: 9.5px; letter-spacing: 1.2px; }
.drawer--account .drawer-menu {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.drawer--account .menu-item {
  min-height: 54px;
  padding: 10px 2px;
  border-bottom: 1px solid #f1f5f9;
  border-radius: 12px;
  color: #1e293b;
  font-size: 13px;
  font-weight: 750;
}
.drawer--account .menu-item:last-child { border-bottom: 0; }
.drawer--account .menu-item:hover { background: #f8fafc; }
.drawer--account .menu-item > .icon:first-child {
  box-sizing: content-box;
  width: 18px;
  height: 18px;
  padding: 9px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  transition: background .18s ease, color .18s ease;
}
.drawer--account .menu-item:hover > .icon:first-child { background: #0f172a; color: #fff; }
.drawer--account .menu-item::after { width: 6px; height: 6px; border-width: 1.5px; border-color: #cbd5e1; }
.drawer--account .menu-item-value {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}
.drawer--account .account-logout { margin-top: 18px; }
.drawer--account .account-logout .btn-ghost {
  min-height: 48px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: none;
}
.drawer--account .account-logout .btn-ghost .icon { width: 15px; height: 15px; }
.drawer--account .account-logout .btn-ghost:hover { border-color: #ffe4e6; background: #fff1f2; color: #e11d48; }

/* ===== Buyer orders Â· PedidosYa-like list ===== */
.panel-shell--buyer .buyer-orders-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.panel-shell--buyer .buyer-orders-head { margin-bottom: 14px; }
.panel-shell--buyer .buyer-orders-head h2 { font-size: 22px; font-weight: 950; letter-spacing: -.7px; }
.panel-shell--buyer .buyer-orders-head p { font-size: 11.5px; }
.panel-shell--buyer .buyer-filters { gap: 8px; }
.panel-shell--buyer .buyer-filter {
  padding: 9px 17px;
  border: 1px solid #eef2f7;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  transition: background .18s, border-color .18s, color .18s;
}
.panel-shell--buyer .buyer-filter:hover { background: #f1f5f9; border-color: #e2e8f0; color: #0f172a; transform: none; }
.panel-shell--buyer .buyer-filter.is-active { border-color: #0f172a; background: #0f172a; color: #fff; }
.panel-shell--buyer .buyer-orders-list { display: block; margin-top: 14px; }
.buyer-orders-group { margin-top: 20px; }
.buyer-orders-group:first-child { margin-top: 2px; }
.buyer-orders-group-title { margin: 0 0 6px; color: #0f172a; font-size: 17px; font-weight: 950; letter-spacing: -.45px; }
.buyer-order-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.buyer-order-card:hover { transform: none; border: 0; box-shadow: none; }
.buyer-order-main {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.buyer-order-logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 19px;
  background: linear-gradient(145deg, #0f172a, #334155);
  color: #fff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .3px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}
.buyer-order-copy { display: block; min-width: 0; }
.buyer-order-statusline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; }
.buyer-order-status { color: #ea580c; font-size: 10.5px; font-weight: 850; }
.buyer-order-status.is-delivered { color: #059669; }
.buyer-order-status.is-cancelled { color: #e11d48; }
.buyer-order-date { color: #94a3b8; font-size: 10px; font-weight: 600; }
.buyer-order-store { display: block; margin-top: 2px; color: #0f172a; font-size: 15px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.buyer-order-price { padding-top: 13px; color: #0f172a; font-size: 15px; font-weight: 950; white-space: nowrap; }
.buyer-order-thumbs { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.buyer-order-thumbs img {
  width: 48px;
  height: 48px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f1f5f9;
  object-fit: cover;
}
.buyer-order-thumb-more { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 850; }
.buyer-order-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 0 16px; border-bottom: 1px solid #f1f5f9; }
.buyer-order-card:last-child .buyer-order-actions { border-bottom: 0; }
.buyer-order-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.buyer-order-action .icon { width: 14px; height: 14px; }
.buyer-order-action:hover { border-color: #e2e8f0; background: #f1f5f9; }
.buyer-order-action:only-child { grid-column: 1 / -1; }
.buyer-order-action.is-done { border-color: #d1fae5; background: #ecfdf5; color: #059669; cursor: default; }
.panel-shell--buyer .buyer-orders-empty { padding: 34px 16px; }

/* Review drawer */
.drawer--review .drawer-head { align-items: center; padding: 17px 20px; }
.drawer--review .drawer-head > div { flex: 1; text-align: center; padding-left: 34px; }
.drawer--review .drawer-kicker { display: none; }
.drawer--review .drawer-head h2 { font-size: 18px; font-weight: 850; letter-spacing: -.5px; }
.buyer-review-order { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #eef2f7; }
.buyer-review-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}
.buyer-review-order strong { display: block; color: #0f172a; font-size: 14.5px; font-weight: 900; line-height: 1.3; }
.buyer-review-order > div > span { display: block; margin-top: 2px; color: #64748b; font-size: 11.5px; }
.buyer-review-question { margin: 22px 0 4px; color: #0f172a; font-size: 21px; font-weight: 950; letter-spacing: -.7px; }
.buyer-review-date { margin: 0 0 8px; color: #94a3b8; font-size: 11px; }
.buyer-review-stars { display: flex; align-items: center; gap: 10px; padding: 4px 0 2px; }
.buyer-review-star {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.buyer-review-star .icon { width: 34px; height: 34px; stroke-width: 1.6; }
.buyer-review-star:hover { transform: scale(1.06); }
.buyer-review-star.is-active { color: #0f172a; }
.buyer-review-star.is-active .icon { fill: #ffb800; stroke: #0f172a; }
.buyer-review-delivery { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.buyer-review-delivery img { width: 46px; height: 46px; object-fit: contain; }
.buyer-review-delivery > span { flex: 1; color: #0f172a; font-size: 12.5px; font-weight: 800; }
.buyer-review-thumbs { display: flex; align-items: center; gap: 10px; }
.buyer-review-thumbs button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  transition: color .15s, transform .15s;
}
.buyer-review-thumbs button .icon { width: 26px; height: 26px; }
.buyer-review-thumbs button:hover { transform: scale(1.06); }
.buyer-review-thumbs button.is-active { color: #0f172a; }
.buyer-review-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 28px;
  border: 0;
  border-radius: 16px;
  background: #ffb800;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.buyer-review-submit:disabled { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.buyer-review-submit:not(:disabled):hover { background: #f5ad00; }








/* ===== Rechazo / cambio de repartidor ===== */
.delivery-reject-context {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  padding: 0 2px 14px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.45;
}
.delivery-reject-context.is-handoff { color: #92400e; }
.delivery-reject-context > .icon { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.delivery-reject-context p { margin: 0; }
.delivery-reasons { display: grid; gap: 0; margin-bottom: 14px; border-top: 1px solid #eef2f7; }
.delivery-reason {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: color .18s;
}
.delivery-reason:hover b { color: #ff5420; }
.delivery-reason:has(input:checked) b { color: #ff5420; }
.delivery-reason input { flex: none; margin-top: 3px; accent-color: #ff5420; }
.delivery-reason span { display: block; min-width: 0; }
.delivery-reason b { display: block; color: #0f172a; font-size: 12px; font-weight: 850; transition: color .18s; }
.delivery-reason small { display: block; margin-top: 2px; color: #64748b; font-size: 10.5px; line-height: 1.35; }
.delivery-reason-other { margin-top: 14px; }
.map-handoff-div { background: none !important; border: 0 !important; }
.map-handoff-pin {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 4px 12px rgba(76, 29, 149, .35);
}
.map-handoff-pin .icon { width: 17px; height: 17px; }
.map-handoff-tag {
  display: block;
  width: max-content;
  margin: 3px auto 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .3px;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(76, 29, 149, .25);
}


/* ===== Prueba de entrega ===== */
.delivery-proof-hero {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
  color: #475569;
  font-size: 11.5px;
  line-height: 1.45;
}
.delivery-proof-hero > .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #ff5420; }
.delivery-proof-hero strong { display: block; color: #0f172a; font-size: 13px; font-weight: 900; }
.delivery-proof-hero p { margin: 3px 0 0; }
.order-proof-card,
.admin-proof-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #f8fafc;
}
.order-proof-card.is-verified,
.admin-proof-card.is-verified { border-color: #d1fae5; background: #ecfdf5; }
.order-proof-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff1ed;
  color: #ff5420;
}
.order-proof-icon .icon { width: 20px; height: 20px; }
.is-verified .order-proof-icon { background: #d1fae5; color: #059669; }
.order-proof-copy { flex: 1; min-width: 0; }
.order-proof-copy small { display: block; color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.order-proof-copy strong { display: block; margin-top: 2px; color: #0f172a; font-size: 22px; font-weight: 950; letter-spacing: 4px; }
.order-proof-card.is-verified .order-proof-copy strong,
.admin-proof-card.is-verified .order-proof-copy strong { font-size: 12.5px; letter-spacing: 0; }
.order-proof-copy span { display: block; margin-top: 3px; color: #64748b; font-size: 10.5px; line-height: 1.35; }
.order-proof-photo { flex: none; display: block; }
.order-proof-photo img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; border: 1px solid #e2e8f0; }


/* ===== NavegaciÃ³n con voz ===== */
.map-nav-instruction {
  flex: none;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #111c30;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}
.map-nav-instruction[hidden] { display: none; }


/* ===== Chat protegido del pedido ===== */
.buyer-courier-chat {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 9px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font: inherit;
  font-size: 10.5px;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.buyer-courier-chat .icon { width: 13px; height: 13px; }
.buyer-courier-chat:hover { background: #0f172a; color: #fff; }
.order-chat { display: grid; gap: 10px; }
.order-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 190px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
}
.order-chat-empty { margin: auto; color: #94a3b8; font-size: 11.5px; text-align: center; }
.order-chat-msg {
  align-self: flex-start;
  max-width: 85%;
  padding: 8px 10px;
  border: 1px solid #e8edf5;
  border-radius: 13px;
  background: #fff;
}
.order-chat-msg.is-me { align-self: flex-end; border-color: #0f172a; background: #0f172a; color: #fff; }
.order-chat-msg span { display: block; color: #94a3b8; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.order-chat-msg.is-me span { color: #cbd5e1; }
.order-chat-msg p { margin: 3px 0 0; color: #1e293b; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.order-chat-msg.is-me p { color: #fff; }
.order-chat-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.order-chat-quick button {
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.order-chat-quick button:hover { border-color: #ff8a66; color: #ff5420; }
.order-chat-form { display: flex; align-items: center; gap: 8px; }
.order-chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
}
.order-chat-form button {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #ffb800;
  color: #0f172a;
  cursor: pointer;
}
.order-chat-form button .icon { width: 19px; height: 19px; }
.order-chat-form button:disabled { opacity: .45; cursor: not-allowed; }
.order-chat-note { display: flex; align-items: flex-start; gap: 5px; margin: 0; color: #94a3b8; font-size: 9.5px; line-height: 1.4; }
.order-chat-note .icon { flex: none; width: 12px; height: 12px; margin-top: 1px; }


/* ===== Llegada deslizable ===== */
.slide-arrive { background: linear-gradient(90deg, #e0f2fe, #bae6fd); border-color: #93c5fd; }
.slide-arrive .slide-deliver-label { color: #1d4ed8; }
.slide-arrive .slide-deliver-handle { background: #2563eb; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.slide-arrive.is-done { background: #2563eb; border-color: #2563eb; }
.slide-arrive.is-done .slide-deliver-label { color: #fff; }


/* ===== Acciones dentro del mapa ampliado ===== */
.map-expand-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1200;
  display: grid;
  gap: 8px;
  padding: 42px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(11, 21, 38, .92) 45%);
}
.map-expand-actions[hidden] { display: none; }
.map-expand-actions .slide-deliver,
.map-expand-actions .btn { width: 100%; max-width: 520px; margin-inline: auto; }


/* ===== Disponibilidad del repartidor ===== */
.delivery-flat-actions { flex-wrap: wrap; justify-content: flex-end; }
.delivery-availability {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  font: inherit;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.delivery-availability i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.delivery-availability.is-available { border: 1px solid #bbf7d0; background: #ecfdf5; color: #059669; }
.delivery-availability.is-unavailable { border: 1px solid #fecaca; background: #fef2f2; color: #dc2626; }
.delivery-availability:hover { filter: brightness(.97); }


/* ===== CÃ³digo de recogida en tienda ===== */
.pickup-code-card {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
}
.pickup-code-card.is-verified { border-color: #d1fae5; background: #ecfdf5; }
.pickup-code-copy { display: block; min-width: 0; }
.pickup-code-copy small { display: block; color: #64748b; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.pickup-code-copy strong { display: block; margin-top: 2px; color: #1d4ed8; font-size: 23px; font-weight: 950; letter-spacing: 4px; }
.pickup-code-card.is-verified .pickup-code-copy strong { color: #059669; font-size: 12.5px; letter-spacing: 0; }
.pickup-code-copy span { display: block; margin-top: 3px; color: #64748b; font-size: 10.5px; line-height: 1.35; }


/* ===== Cliente ausente ===== */
.delivery-absent-card {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fef2f2;
}
.delivery-absent-card strong { color: #991b1b; font-size: 12px; font-weight: 900; }
.delivery-absent-card > span { color: #b91c1c; font-size: 10.5px; line-height: 1.4; }
.delivery-absent-card > span b { font-variant-numeric: tabular-nums; font-size: 12px; }
.delivery-absent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 5px; }
.delivery-absent-actions .btn { min-height: 40px; font-size: 10.5px; padding: 7px 8px; }


/* ===== Billetera del repartidor ===== */
.delivery-wallet { display: grid; gap: 14px; }
.delivery-wallet-balance {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}
.delivery-wallet-kicker { display: block; color: #94a3b8; font-size: 9px; font-weight: 850; letter-spacing: 1.2px; text-transform: uppercase; }
.delivery-wallet-balance > strong { display: block; margin-top: 5px; font-size: 34px; font-weight: 950; letter-spacing: -1px; }
.delivery-wallet-balance > p { margin: 3px 0 14px; color: #cbd5e1; font-size: 11px; }
.delivery-wallet-balance .btn-primary { background: #ffb800; color: #0f172a; border: 0; }
.delivery-wallet-balance .btn-primary:disabled { opacity: .45; }
.delivery-wallet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.delivery-wallet-stats > div { padding: 12px; border: 1px solid #e8edf5; border-radius: 14px; background: #fff; }
.delivery-wallet-stats span { display: block; color: #94a3b8; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .7px; }
.delivery-wallet-stats b { display: block; margin-top: 3px; color: #0f172a; font-size: 18px; font-weight: 950; }
.delivery-wallet-title { margin: 4px 0 0; color: #0f172a; font-size: 14px; font-weight: 900; }
.delivery-wallet-list { display: grid; gap: 0; border-top: 1px solid #eef2f7; }
.delivery-wallet-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #eef2f7; }
.delivery-wallet-row-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f1f5f9; color: #475569; }
.delivery-wallet-row-icon .icon { width: 16px; height: 16px; }
.delivery-wallet-row > div { flex: 1; min-width: 0; }
.delivery-wallet-row strong { display: block; color: #0f172a; font-size: 11.5px; font-weight: 850; }
.delivery-wallet-row small { display: block; margin-top: 1px; color: #94a3b8; font-size: 9.5px; }
.delivery-wallet-row > b { color: #0f172a; font-size: 12px; font-weight: 900; }
.delivery-wallet-status { font-size: 9px; font-style: normal; font-weight: 800; color: #b45309; background: #fffbeb; padding: 3px 7px; border-radius: 999px; }
.delivery-wallet-status.is-paid { color: #047857; background: #ecfdf5; }
.store-courier-payout { display: inline-flex; align-items: center; gap: 4px; color: #b45309; font-size: 10px; font-weight: 800; }
.store-courier-payout .icon { width: 13px; height: 13px; }
.admin-payout-pending { display: grid; gap: 8px; padding: 13px; border: 1px solid #fde68a; border-radius: 14px; background: #fffbeb; }
.admin-payout-pending span { color: #92400e; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.admin-payout-pending strong { color: #92400e; font-size: 22px; font-weight: 950; }


/* ===== Ruta optimizada ===== */
.delivery-route-plan { margin: 12px 0; padding: 13px; border: 1px solid #e8edf5; border-radius: 16px; background: #fff; }
.delivery-route-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.delivery-route-plan-head span { display: block; color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.delivery-route-plan-head strong { display: block; margin-top: 2px; color: #0f172a; font-size: 13px; font-weight: 900; }
.delivery-route-plan ol { display: grid; gap: 7px; margin: 11px 0 0; padding: 0; list-style: none; }
.delivery-route-plan li { display: flex; align-items: center; gap: 8px; }
.delivery-route-plan li > span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #0f172a; color: #fff; font-size: 10px; font-weight: 900; }
.delivery-route-plan li b { display: block; color: #0f172a; font-size: 11.5px; font-weight: 850; }
.delivery-route-plan li small { display: block; color: #64748b; font-size: 9.5px; }


@media (max-width: 640px) {
  .delivery-flat-head { flex-wrap: wrap; align-items: flex-start; }
  .delivery-flat-identity { flex: 1 1 100%; }
  .delivery-flat-copy h1,
  .delivery-flat-kicker { white-space: nowrap; }
  .delivery-flat-actions { flex: 1 1 100%; justify-content: flex-start; margin-top: 8px; }
}


/* ===== Switch Activo / Inactivo ===== */
.delivery-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.delivery-switch-track {
  position: relative;
  display: block;
  width: 44px;
  height: 25px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef4444, #dc2626);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .16), 0 2px 5px rgba(15, 23, 42, .12);
  transition: background .2s ease;
}
.delivery-switch.is-on .delivery-switch-track { background: linear-gradient(180deg, #34d399, #16a34a); }
.delivery-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #e5e7eb);
  box-shadow: 0 2px 5px rgba(15, 23, 42, .25);
  transition: left .2s cubic-bezier(.2, .8, .3, 1);
}
.delivery-switch.is-on .delivery-switch-knob { left: 22px; }
.delivery-switch-label { color: #dc2626; font-size: 9px; font-weight: 850; }
.delivery-switch.is-on .delivery-switch-label { color: #059669; }
.delivery-switch.is-locked { opacity: .65; cursor: not-allowed; }
.delivery-switch.is-locked .delivery-switch-label { color: #94a3b8; }


.store-courier-availability { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 800; }
.store-courier-availability.is-on { color: #059669; }
.store-courier-availability.is-off { color: #dc2626; }


/* ===== Admin repartidores pro ===== */
.admin-courier-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-courier-search {
  flex: 1 1 280px;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #94a3b8;
}
.admin-courier-search .icon { width: 16px; height: 16px; flex: none; }
.admin-courier-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 12px; color: #0f172a; outline: none; }
.admin-courier-status {
  min-height: 42px;
  padding: 0 30px 0 11px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 11.5px;
  font-weight: 750;
}
.admin-courier-count { color: #94a3b8; font-size: 10.5px; font-weight: 750; }
.admin-courier-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
.admin-courier-pagination[hidden] { display: none; }
.admin-courier-pagination button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}
.admin-courier-pagination button:hover:not(:disabled) { border-color: #cbd5e1; background: #f8fafc; }
.admin-courier-pagination button:disabled { opacity: .4; cursor: default; }
.admin-courier-pagination span { color: #64748b; font-size: 10.5px; font-weight: 750; }
.admin-courier-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #e6ecf5;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.admin-courier-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #22c55e; }
.admin-courier-card.is-inactive::before { background: #ef4444; }
.admin-courier-card:hover { border-color: #dbe4f0; box-shadow: 0 14px 30px rgba(15, 23, 42, .08); transform: translateY(-1px); }
.admin-courier-card .store-courier-avatar { width: 46px; height: 46px; border-radius: 14px; background: #0f172a; color: #fff; font-size: 14px; }
.admin-courier-card .store-courier-info { gap: 3px; }
.admin-courier-card .store-courier-info strong { font-size: 14px; }
.admin-courier-card .store-courier-stats { padding: 8px 12px; border-radius: 12px; background: #f8fafc; }
.admin-courier-card .store-courier-toggle { justify-self: end; padding: 8px 10px; border: 1px solid #eef2f7; border-radius: 10px; background: #fff; white-space: nowrap; }
.store-courier-availability { width: max-content; padding: 3px 8px; border-radius: 999px; font-size: 9.5px; }
.store-courier-availability.is-on { background: #ecfdf5; }
.store-courier-availability.is-off { background: #fef2f2; }
@media (max-width: 760px) {
  .admin-courier-card { grid-template-columns: auto minmax(0, 1fr); }
  .admin-courier-card .store-courier-stats,
  .admin-courier-card .store-courier-toggle { grid-column: 1 / -1; margin-left: 0; justify-self: stretch; }
  .admin-courier-card .store-courier-stats { justify-content: flex-start; }
  .admin-courier-card .store-courier-toggle { justify-content: center; }
}


/* ===== NavegaciÃ³n inferior del admin ===== */
.bottom-nav--admin { display: none; }
.bottom-nav--admin .nav-item { font-size: 8.5px; gap: 2px; }
.bottom-nav--admin .nav-item .icon { width: 21px; height: 21px; }
.bottom-nav--admin .nav-item.is-active { color: #2563eb; }
.bottom-nav--admin .nav-item.is-active .icon { fill: none; stroke: #2563eb; }
.bottom-nav--admin .nav-item.is-active::before { background: linear-gradient(90deg, #60a5fa, #2563eb); }
@media (max-width: 899px) {
  body.is-admin-account .bottom-nav:not(.bottom-nav--admin) { display: none; }
  body.is-admin-account .bottom-nav--admin { display: flex; max-width: 640px; }
}


body.is-admin-account #favoritesBtn,
body.is-admin-account #cartBtn { display: none !important; }


/* ===== Admin flota / ganancias ===== */
.admin-fleet-kpis,
.admin-earnings-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.admin-fleet-kpis > div,
.admin-earnings-kpis > div { padding: 14px; border: 1px solid #e8edf5; border-radius: 16px; background: #fff; }
.admin-fleet-kpis span,
.admin-earnings-kpis span { display: block; color: #94a3b8; font-size: 9px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.admin-fleet-kpis b,
.admin-earnings-kpis b { display: block; margin-top: 3px; color: #0f172a; font-size: 23px; font-weight: 950; }
.admin-fleet-kpis small,
.admin-earnings-kpis small { display: block; margin-top: 2px; color: #64748b; font-size: 10px; }
.admin-fleet-kpis .is-alert b { color: #dc2626; }
.admin-fleet-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, .8fr); gap: 14px; }
.admin-fleet-map { min-height: 430px; border: 1px solid #e8edf5; border-radius: 18px; overflow: hidden; background: #eef2f7; }
.admin-fleet-alerts { padding: 14px; border: 1px solid #e8edf5; border-radius: 18px; background: #fff; }
.admin-fleet-alerts-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.admin-fleet-alerts-head strong { color: #0f172a; font-size: 13px; font-weight: 900; }
.admin-fleet-alert { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.admin-fleet-alert:last-child { border-bottom: 0; }
.admin-fleet-alert-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fef2f2; color: #dc2626; }
.admin-fleet-alert-icon .icon { width: 15px; height: 15px; }
.admin-fleet-alert div { flex: 1; min-width: 0; }
.admin-fleet-alert strong { display: block; color: #0f172a; font-size: 11.5px; font-weight: 850; }
.admin-fleet-alert small { display: block; color: #64748b; font-size: 9.5px; }
.admin-fleet-alert em { flex: none; color: #94a3b8; font-size: 9.5px; font-style: normal; }
.admin-fleet-div { background: none !important; border: 0 !important; }
.admin-fleet-marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--fleet-color, #2563eb);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .28);
}
.admin-earnings-note { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 14px; padding: 11px 13px; border: 1px solid #dbeafe; border-radius: 13px; background: #eff6ff; color: #1e3a8a; font-size: 10.5px; line-height: 1.45; }
.admin-earnings-note .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.admin-earnings-grid { display: grid; grid-template-columns: 1.3fr .8fr; gap: 14px; }
.admin-earnings-card { padding: 14px; border: 1px solid #e8edf5; border-radius: 18px; background: #fff; }
.admin-earnings-head { margin-bottom: 8px; }
.admin-earnings-head span { display: block; color: #94a3b8; font-size: 8.5px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.admin-earnings-head h3 { margin: 2px 0 0; color: #0f172a; font-size: 14px; font-weight: 900; }
@media (max-width: 900px) {
  .admin-fleet-kpis,
  .admin-earnings-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-fleet-layout,
  .admin-earnings-grid { grid-template-columns: 1fr; }
  .admin-fleet-map { min-height: 320px; }
}


/* ===== ComisiÃ³n por tienda ===== */
.admin-store-commission { margin: 14px 0; padding: 13px; border: 1px solid #e8edf5; border-radius: 14px; background: #f8fafc; }
.admin-store-commission-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-store-commission-head span { color: #64748b; font-size: 9px; font-weight: 850; letter-spacing: .8px; text-transform: uppercase; }
.admin-store-commission-head b { color: #ff5420; font-size: 16px; font-weight: 950; }
.admin-store-commission-row { display: flex; gap: 8px; margin-top: 8px; }
.admin-store-commission-row input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 11px; border: 1px solid #e2e8f0; border-radius: 11px; background: #fff; font: inherit; font-size: 12px; }
.admin-store-commission-row .btn { flex: none; min-height: 42px; }
.admin-store-commission small { display: block; margin-top: 7px; color: #94a3b8; font-size: 9.5px; line-height: 1.4; }


/* ===== Comprador: pedidos con color ===== */
.panel-shell--buyer .buyer-orders-group-title { display: flex; align-items: center; gap: 8px; }
.panel-shell--buyer .buyer-orders-group-title > span { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: #fff1ed; color: #ff5420; font-size: 9px; font-weight: 850; }
.panel-shell--buyer .buyer-order-card {
  position: relative;
  margin-top: 10px;
  padding: 12px 13px 10px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--order-accent) 18%, #e8edf5);
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--order-accent) 6%, #fff), #fff 64%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.panel-shell--buyer .buyer-order-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--order-accent), color-mix(in srgb, var(--order-accent) 45%, #fff)); }
.panel-shell--buyer .buyer-order-card::after { content: ""; position: absolute; top: -48px; right: -44px; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--order-accent) 10%, transparent); pointer-events: none; }
.panel-shell--buyer .buyer-order-card:hover { border-color: color-mix(in srgb, var(--order-accent) 35%, #e8edf5); box-shadow: 0 14px 30px rgba(15, 23, 42, .09); transform: translateY(-1px); }
.panel-shell--buyer .buyer-order-main { position: relative; z-index: 1; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 11px; padding: 2px 0 8px; }
.panel-shell--buyer .buyer-order-logo {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  background: linear-gradient(145deg, #ff6a3a, #f04412);
  box-shadow: 0 8px 18px rgba(255, 84, 32, .24);
  font-size: 15px;
}
.panel-shell--buyer .buyer-order-statusline { align-items: center; }
.panel-shell--buyer .buyer-order-statusline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f59e0b; }
.panel-shell--buyer .buyer-order-statusline:has(.is-delivered)::before { background: #10b981; }
.panel-shell--buyer .buyer-order-statusline:has(.is-cancelled)::before { background: #e11d48; }
.panel-shell--buyer .buyer-order-statusline:has(.is-cancelled)::before { background: #e11d48; }
.panel-shell--buyer .buyer-order-price {
  align-self: start;
  display: grid;
  justify-items: end;
  padding: 5px 9px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--order-accent) 11%, #fff);
  color: var(--order-accent);
  font-size: 13.5px;
  font-weight: 950;
  line-height: 1.1;
}
.panel-shell--buyer .buyer-order-price small { display: block; margin-bottom: 1px; color: #94a3b8; font-size: 7.5px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.panel-shell--buyer .buyer-order-thumbs img { flex: none; width: 42px; height: 42px; border-color: color-mix(in srgb, var(--order-accent) 16%, #eef2f7); border-radius: 12px; }
.panel-shell--buyer .buyer-order-thumb-more { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--order-accent); color: #fff; font-size: 9.5px; }
.panel-shell--buyer .buyer-order-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; border-bottom: 0; }
.panel-shell--buyer .buyer-order-card .buyer-order-action { border: 0; background: #f8fafc; color: #475569; }
.panel-shell--buyer .buyer-order-card .buyer-order-action:first-child { background: #fffbeb; color: #b45309; }
.panel-shell--buyer .buyer-order-card .buyer-order-action:last-child { background: #fff1ed; color: #ff5420; }
.panel-shell--buyer .buyer-order-card .buyer-order-action:hover { filter: brightness(.97); border: 0; background: color-mix(in srgb, currentColor 8%, #fff); }
.panel-shell--buyer .buyer-order-card .buyer-order-action.is-done { background: #ecfdf5; color: #059669; }

/* Aviso de conexión (sin mostrar dominio ni detalles técnicos) */
.app-offline-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #0b1526;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.app-offline-banner::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb800;
}
.app-offline-banner.is-visible { transform: translateY(0); opacity: 1; }

/* Perfil público de tienda */
#storeView .store-profile { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
#storeView .store-profile-cover {
  position: relative;
  overflow: hidden;
  min-height: 160px;
  max-height: 300px;
  aspect-ratio: 16 / 8;
  border-radius: 22px;
  background: #eef2f7;
}
#storeView .store-profile-cover > img { display: block; width: 100%; height: 100%; object-fit: cover; }
#storeView .store-profile-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 45%, rgba(0, 0, 0, .08));
  pointer-events: none;
}
#storeView .store-profile-cover-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#storeView .store-profile-cover-actions-right { display: flex; gap: 8px; }
#storeView .store-profile-icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #0b1526;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
  text-decoration: none;
}
#storeView .store-profile-icon-btn .icon { width: 18px; height: 18px; }
#storeView [data-store-back] .icon { transform: rotate(180deg); }
#storeView .store-profile-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: -130px 10px 0;
  padding: 14px 16px 12px;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
#storeView .store-profile-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  margin-top: -46px;
  padding: 4px;
  border-radius: 24px;
  background: #fff;
  color: #b45309;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .16);
}
#storeView .store-profile-logo img { width: 100%; height: 100%; border-radius: 20px; object-fit: cover; }
#storeView .store-profile-copy { flex: 1; min-width: 0; padding-bottom: 4px; }
#storeView .store-profile-copy h1 { margin: 0; color: #0b1526; font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: -.7px; line-height: 1.1; }
#storeView .store-profile-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: #475569; font-size: 12px; font-weight: 700; }
#storeView .store-profile-rating .icon { width: 13px; height: 13px; color: #f59e0b; fill: #f59e0b; }
#storeView .store-profile-dot { color: #cbd5e1; }
#storeView .store-profile-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#storeView .store-profile-badge { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 9px; border-radius: 999px; background: #fff7e0; color: #92400e; font-size: 10.5px; font-weight: 800; }
#storeView .store-profile-badge.is-verified { background: #ecfdf5; color: #047857; }
#storeView .store-profile-badge .icon { width: 12px; height: 12px; }
#storeView .store-profile-search { width: 100%; margin-top: 4px; }
#storeView .store-profile-search input { width: 100%; padding: 12px 16px 12px 40px; border: 1px solid #eef2f7; border-radius: 999px; background: #f1f5f9; font-size: 13px; }
#storeView .store-profile-search .icon { left: 14px; width: 17px; height: 17px; }
#storeView .store-profile-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
#storeView .store-profile-tabs::-webkit-scrollbar { display: none; }
#storeView .store-profile-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475569; font-size: 12px; font-weight: 800; white-space: nowrap; }
#storeView .store-profile-tab .icon { width: 14px; height: 14px; }
#storeView .store-profile-tab.is-active { border-color: #0b1526; background: #0b1526; color: #ffd84d; }
#storeView .store-profile + .store-search { margin-top: 0; }

@media (max-width: 640px) {
  #storeView .store-profile-cover { min-height: 150px; aspect-ratio: 16 / 9; border-radius: 18px; }
  #storeView .store-profile-head { margin: -110px 8px 0; padding: 12px 14px 10px; gap: 10px; }
  #storeView .store-profile-logo { width: 72px; height: 72px; margin-top: -38px; border-radius: 20px; font-size: 26px; }
  #storeView .store-profile-logo img { border-radius: 16px; }
  #storeView .store-profile-copy h1 { font-size: 22px; }
  #storeView .store-profile-badge { font-size: 10px; }
}

/* Información de la tienda */
.store-info-page { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 40px; }
.store-info-head { display: flex; align-items: center; gap: 12px; }
.store-info-logo { flex: none; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 18px; background: #0f172a; color: #ffb800; font-size: 24px; font-weight: 900; }
.store-info-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-info-head h1 { margin: 0; color: #0b1526; font-size: clamp(22px, 3vw, 28px); font-weight: 900; letter-spacing: -.6px; line-height: 1.1; }
.store-info-head p { margin: 2px 0 0; color: #8492a8; font-size: 12px; }
.store-info-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid #eef2f7; border-radius: 18px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .04); }
.store-info-section { padding: 14px 0; border-bottom: 1px solid #eef2f7; }
.store-info-section:first-child { padding-top: 0; }
.store-info-section:last-child { padding-bottom: 0; border-bottom: 0; }
.store-info-section h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; color: #0b1526; font-size: 13px; font-weight: 850; }
.store-info-section h2 .icon { width: 16px; height: 16px; color: #b45309; }
.store-info-section p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; }
.store-info-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.store-info-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border: 1px solid #e2e8f0; border-radius: 999px; background: #f8fafc; color: #475569; font-size: 11.5px; font-weight: 700; }
.store-info-chip .icon { width: 13px; height: 13px; color: #b45309; }
.store-info-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.store-info-contact a { display: inline-flex; align-items: center; gap: 6px; color: #b45309; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.store-info-contact a .icon { width: 14px; height: 14px; }
.store-info-note { margin-top: 6px; color: #94a3b8; font-size: 11px; }

/* Portada en el panel de tienda */
.store-cover-editor { align-items: stretch; }
.store-cover-preview { width: 168px; height: 94px; border-radius: 14px; }
@media (max-width: 520px) {
  .store-cover-preview { width: 120px; height: 72px; }
}



/* Contexto delivery: sin menú de comprador */
body.is-delivery-context .bottom-nav:not(.bottom-nav--delivery) { display: none !important; }
body.is-delivery-context .main-nav,
body.is-delivery-context .search-container,
body.is-delivery-context .header-publish,
body.is-delivery-context #favoritesBtn,
body.is-delivery-context #cartBtn { display: none !important; }

/* App nativa: sin scrollbars ni rebote horizontal */
html.native-app,
html.native-app body { scrollbar-width: none; -ms-overflow-style: none; }
html.native-app ::-webkit-scrollbar { width: 0; height: 0; display: none; }
html.native-app body { overflow-x: hidden; overscroll-behavior-x: none; }

/* Evita que los carruseles horizontales arrastren el scroll de la app */
.home-rail-track,
.store-cat-track,
.store-slider,
.offers-product-slider,
.store-profile-tabs,
.subcat-slider { overscroll-behavior-x: contain; }

/* Footer compacto en login de delivery */
body.is-delivery-context:not(.is-repartidor-account) .site-footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* Beneficios compactos del login de delivery */
.delivery-login-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; width: min(540px, 100%); margin: 16px auto 0; color: #64748b; font-size: 11.5px; font-weight: 600; }
.delivery-login-benefits span { display: inline-flex; align-items: center; gap: 6px; }
.delivery-login-benefits .icon { width: 14px; height: 14px; color: #b45309; }

/* App con tabs nativos: el footer web no aporta y deja espacio vacío */
html.native-tabs-app .site-footer { display: none !important; }

body.is-admin-account .site-footer { display: none !important; }

/* Aviso flotante de seguimiento para el comprador */
.buyer-live-card {
  position: fixed;
  z-index: 90;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 50%;
  display: grid;
  gap: 7px;
  width: min(calc(100vw - 24px), 420px);
  padding: 13px 15px 12px;
  border: 1px solid #e7ecf5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 15, 35, .24);
  color: #0b1526;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 24px));
  transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.buyer-live-card[hidden] { display: none; }
.buyer-live-card.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.buyer-live-top,
.buyer-live-headline,
.buyer-live-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.buyer-live-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #15803d;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .4px;
}
.buyer-live-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.buyer-live-status.is-delivered,
.buyer-live-status.is-delivered::before { color: #15803d; }
.buyer-live-status.is-arrived,
.buyer-live-status.is-on_the_way { color: #0369a1; }
.buyer-live-status.is-absent,
.buyer-live-status.is-returned,
.buyer-live-status.is-cancelled { color: #b91c1c; }
.buyer-live-status.is-handoff { color: #b45309; }
.buyer-live-bag {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff4e5;
  color: var(--orange);
}
.buyer-live-bag .icon { width: 16px; height: 16px; }
.buyer-live-eta {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.buyer-live-open {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f4f7fb;
  color: #64748b;
  transform: rotate(90deg);
}
.buyer-live-open .icon { width: 14px; height: 14px; }
.buyer-live-progress { display: flex; gap: 3px; width: 100%; height: 6px; margin: 2px 0 1px; }
.buyer-live-progress i {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  background: #e6ebf4;
}
.buyer-live-progress i.is-on { background: #0b1526; }
.buyer-live-progress i.is-mid { background: linear-gradient(90deg, #0b1526 0 52%, #e6ebf4 52% 100%); }
.buyer-live-title {
  font-size: 15.5px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -.2px;
}
.buyer-live-sub {
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.4;
}
.buyer-live-foot { margin-top: 2px; }
.buyer-live-store {
  min-width: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buyer-live-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-size: 10.5px;
  font-weight: 850;
}
.buyer-live-link .icon { width: 12px; height: 12px; }

@media (max-width: 420px) {
  .buyer-live-card { padding: 12px 13px 11px; border-radius: 18px; }
  .buyer-live-eta { font-size: 20px; }
  .buyer-live-title { font-size: 14.5px; }
}

/* Placeholder de carga para im?genes */
img.is-img-loading {
  background-color: #eef2f7;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2236%22%20height%3D%2236%22%20viewBox%3D%220%200%2036%2036%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%2214%22%20fill%3D%22none%22%20stroke%3D%22%23cbd5e1%22%20stroke-width%3D%225%22%2F%3E%3Cpath%20d%3D%22M18%204a14%2014%200%200%201%2014%2014%22%20fill%3D%22none%22%20stroke%3D%22%2364748b%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%3E%3CanimateTransform%20attributeName%3D%22transform%22%20type%3D%22rotate%22%20from%3D%220%2018%2018%22%20to%3D%22360%2018%2018%22%20dur%3D%220.9s%22%20repeatCount%3D%22indefinite%22%2F%3E%3C%2Fpath%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 36px 36px;
}

/* Aviso de actualizaci?n de la PWA */
.pwa-update-banner {
  position: fixed;
  z-index: 9100;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 430px;
  margin-inline: auto;
  padding: 11px 12px 11px 15px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: #0b1526;
  color: #fff;
  box-shadow: 0 16px 40px rgba(7, 15, 35, .3);
}
.pwa-update-banner[hidden] { display: none !important; }
.pwa-update-banner > span { flex: 1; font-size: 12px; font-weight: 750; }
.pwa-update-banner > button[data-pwa-update] {
  flex: none;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--yellow);
  color: #11182b;
  font-size: 11px;
  font-weight: 900;
}
.pwa-update-close {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1;
}
@media (max-width: 760px) {
  .pwa-update-banner { bottom: calc(var(--nav-height, 64px) + env(safe-area-inset-bottom, 0px) + 12px); }
}

/* Delivery general en admin */
.admin-delivery-global-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #f8fafc;
}
.admin-delivery-global-row > div { display: grid; gap: 2px; min-width: 0; }
.admin-delivery-global-row span { color: #8492a8; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.admin-delivery-global-row b { color: #0b1526; font-size: 13px; font-weight: 850; }
.admin-delivery-global-row small { color: #64748b; font-size: 10.5px; }
.admin-delivery-global-row .btn { flex: none; }
@media (max-width: 640px) {
  .admin-delivery-global-row { align-items: stretch; flex-direction: column; }
  .admin-delivery-global-row .btn { width: 100%; }
}
/* ===== Planes y cr?ditos de Marketplace ===== */
.admin-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.admin-plan-head .store-meta { margin: 0; }
.seller-credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff7e0;
  color: #b45309;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.seller-credit-chip .icon { width: 14px; height: 14px; }
.seller-plan-list { display: grid; gap: 10px; margin-bottom: 16px; }
.seller-plan-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #f8fafc;
}
.seller-plan-card > div { min-width: 0; flex: 1; }
.seller-plan-card strong { display: block; color: #0b1526; font-size: 13px; }
.seller-plan-card small { display: block; margin-top: 3px; color: #8492a8; font-size: 11px; }
.seller-plan-card > b { flex: none; color: #b45309; font-size: 14px; }
.seller-plan-card .btn { flex: none; }
.seller-purchase-list { padding-top: 14px; border-top: 1px solid #eef2f7; }
.seller-purchase-list h3 { margin: 0 0 8px; font-size: 12px; font-weight: 800; color: #334155; }
.seller-purchase-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.seller-purchase-row:last-child { border-bottom: 0; }
.seller-purchase-row strong { display: block; color: #0b1526; font-size: 12px; }
.seller-purchase-row small { display: block; margin-top: 2px; color: #8492a8; font-size: 10.5px; }
.seller-purchase-row > span { flex: none; color: #16a34a; font-size: 11px; font-weight: 800; }
.seller-plan-card .btn, .seller-purchase-row { min-width: 0; }
@media (max-width: 560px) {
  .admin-plan-head { align-items: stretch; flex-direction: column; }
  .admin-plan-head .btn { width: 100%; }
  .seller-plan-card { flex-wrap: wrap; }
  .seller-plan-card > div { flex: 1 1 100%; }
  .seller-plan-card .btn { flex: 1; }
}
