/* Catálogo basado en la maqueta: tarjetas claras, cabecera de marca y acciones ámbar. */
.market-store.catalog-store {
  --market-amber: #f8a719;
  --market-ink: #142c27;
  --market-bg: var(--market-user-bg, #f3f7f5);
  --market-text: var(--market-user-text, #172d29);
  --market-panel: var(--market-user-panel, #fff);
  --market-line: #d9e5e2;
  --market-muted: var(--market-user-muted, #647771);
  background: var(--market-bg);
  color: var(--market-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  max-width: none;
  padding: 0 0 114px;
}
.market-store *,
.market-dialog * {
  box-sizing: border-box;
}
.market-store button,
.market-store input,
.market-store select,
.market-dialog button,
.market-dialog input,
.market-dialog textarea,
.market-dialog select {
  font-family: inherit;
}
.market-store button,
.market-store a {
  -webkit-tap-highlight-color: transparent;
}
.market-store button:focus-visible,
.market-store a:focus-visible,
.market-dialog button:focus-visible,
.market-dialog a:focus-visible {
  outline: 3px solid #1a94dd;
  outline-offset: 3px;
}
.market-shell {
  width: min(100%, 1140px);
  margin: auto;
}
.market-header {
  background: var(--market-primary);
  color: var(--market-on-primary);
  border-radius: 0 0 30px 30px;
  overflow: hidden;
}
.market-header-content {
  padding: 28px;
}
.market-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.market-identity > div {
  flex: 1;
  min-width: 0;
}
.market-identity h1 {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 0;
  overflow-wrap: anywhere;
  color: inherit;
}
.market-identity p {
  margin: 4px 0 0;
  font-size: 14px;
  color: inherit;
  opacity: 0.94;
}
.market-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 16px;
  background: #fff;
  color: var(--market-primary);
  font-size: 21px;
  font-weight: 800;
  overflow: hidden;
}
.market-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.market-theme {
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.9;
  cursor: pointer;
}
.market-theme .icon {
  width: 18px;
  height: 18px;
}
.market-contact {
  display: flex;
  gap: 10px;
  margin: 20px 0 14px;
}
.market-contact > a,
.market-contact > button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 30px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.market-contact > a {
  background: #fff;
  color: var(--market-primary);
  border-color: #fff;
}
.market-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #60746c;
  min-height: 50px;
  padding: 0 15px;
  border-radius: 17px;
}
.market-search input {
  flex: 1;
  min-width: 0;
  width: 100%;
  color: #243932;
  font-size: 14px;
  font-weight: 550;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 12px 0;
  outline: none;
  border-radius: 0;
}
.market-search:focus-within {
  outline: 3px solid #f8a719;
  outline-offset: 3px;
}
.market-cover {
  height: 210px;
  background: color-mix(in srgb, var(--market-primary) 80%, #fff);
}
.market-cover img {
  width: 100%;
  height: 100%;
  display: block;
}
.market-content {
  padding: 16px 20px 0;
}
.market-business-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin: 0 0 14px;
  color: var(--market-muted);
}
.market-business-state .is-open {
  color: var(--market-primary);
  font-weight: 700;
}
.market-business-state select {
  max-width: 180px;
  border-radius: 10px;
  background: var(--market-panel);
  color: var(--market-text);
  padding: 6px 9px;
  border: 1px solid var(--market-line);
}
.market-availability {
  border-radius: 12px;
  background: #fff0cd;
  color: #694a10;
  padding: 13px;
  font-size: 13px;
}
.market-welcome,
.market-campaign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--market-amber);
  color: var(--market-ink);
  border-radius: 25px;
  padding: 23px;
  margin-bottom: 16px;
  overflow: hidden;
}
.market-welcome > div,
.market-campaign > div {
  flex: 1;
}
.market-welcome small,
.market-campaign > div > span {
  display: block;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.market-welcome h2,
.market-campaign h2 {
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin: 6px 0 8px;
  font-weight: 850;
  max-width: 25ch;
  overflow-wrap: anywhere;
  color: inherit;
}
.market-welcome p,
.market-campaign p {
  font-size: 14px;
  line-height: 1.35;
  max-width: 42ch;
  margin: 0 0 12px;
}
.market-welcome button,
.market-campaign button {
  background: var(--market-ink);
  color: #fff;
  border: 0;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 750;
  font-size: 13px;
  padding: 12px 17px;
  min-height: 42px;
  cursor: pointer;
}
.market-welcome > i,
.market-campaign > i {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 50%;
  background: #ffffff6b;
  display: grid;
  place-items: center;
}
.market-welcome > i .icon,
.market-campaign > i .icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.7;
}
.market-categories.category-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 0 15px;
  margin: 0;
  border: 0;
  scrollbar-width: thin;
  scroll-margin-top: 12px;
}
.market-categories button {
  border: 1px solid var(--market-line);
  background: var(--market-panel);
  color: var(--market-text);
  border-radius: 30px;
  padding: 12px 18px;
  min-height: 46px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
}
.market-categories button.active {
  color: var(--market-on-primary);
  background: var(--market-primary);
  border-color: var(--market-primary);
}
.market-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 14px;
}
.market-section-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: inherit;
  overflow-wrap: anywhere;
}
.market-section-heading button {
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--market-primary);
  padding: 8px 0 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.market-product-section + .market-product-section {
  margin-top: 30px;
}
.market-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.market-product {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid #e5ece9;
  padding: 10px;
  background: var(--market-panel);
  box-shadow: 0 4px 12px #16372b08;
  overflow: hidden;
  min-width: 0;
}
.market-product-photo {
  border: 0;
  padding: 0;
  width: 100%;
  height: 155px;
  border-radius: 14px;
  background: #e2f0ed;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.market-product-photo.tone-1 {
  background: #fff1d4;
  color: #92610c;
}
.market-product-photo.tone-0 {
  color: #08877c;
}
.market-product-photo .product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.market-product-symbol {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 45px;
}
.market-product-symbol > svg {
  width: 42px;
  height: 42px;
}
.market-product-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 9px;
  color: #fff;
  background: #b8261c;
  border-radius: 15px;
  font-size: 10px;
  font-weight: 800;
}
.market-product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 1px 1px;
}
.market-product h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: inherit;
}
.market-product h3 button {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  border: 0;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.market-product-content > p {
  font-size: 12px;
  color: var(--market-muted);
  line-height: 1.3;
  margin: 5px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.market-product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: auto;
  padding-top: 4px;
}
.market-store .product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
}
.market-store .product-price strong {
  color: var(--market-primary);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.5px;
}
.market-store .product-price del {
  font-size: 11px;
  color: var(--market-muted);
  order: 1;
}
.market-add {
  display: grid;
  place-items: center;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  background: var(--market-amber);
  color: #172d29;
  border: 0;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 750;
  cursor: pointer;
}
.market-add .icon {
  width: 21px;
  height: 21px;
}
.market-add.has-items {
  background: var(--market-primary);
  color: var(--market-on-primary);
}
.market-add:disabled {
  font-size: 10px;
  background: #e8ecea;
  color: #6c7974;
  cursor: default;
}
.market-load-more {
  text-align: center;
  padding: 24px 0;
}
.market-empty {
  text-align: center;
  border-radius: 20px;
  background: var(--market-panel);
  padding: 45px 20px;
}
.market-empty > .icon {
  width: 32px;
  height: 32px;
  color: var(--market-primary);
}
.market-empty h2 {
  font-size: 20px;
}
.market-empty p {
  font-size: 14px;
  color: var(--market-muted);
}
.market-footer {
  text-align: center;
  padding: 35px 0 8px;
  font-size: 11px;
  color: var(--market-muted);
}
.market-footer p {
  line-height: 1.8;
}
.market-footer > span {
  display: block;
  margin-top: 16px;
}
.market-order-sent {
  border-radius: 16px;
  padding: 16px;
  background: #e1f3eb;
  color: #1a6543;
}
/* La barra del pedido conserva la misma estructura en computadora y teléfono. */
.market-cart-bar.mobile-cart-bar {
  position: fixed;
  display: block;
  z-index: 50;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 14px;
  right: 14px;
  width: auto;
  max-width: 680px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.market-cart-bar[hidden] {
  display: none !important;
}
.market-cart-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 74px;
  padding: 10px;
  border-radius: 22px;
  background: #142c27;
  color: #fff;
  border: 0;
  box-shadow: 0 6px 22px #142c2726;
  cursor: pointer;
}
.market-cart-control > span {
  text-align: left;
  padding-left: 9px;
}
.market-cart-control small {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}
.market-cart-control strong {
  display: block;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 850;
}
.market-cart-control > b {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: #142c27;
  background: #f8a719;
  border-radius: 15px;
  font-size: 15px;
}
/* Los datos adicionales de cliente y pago siguen visibles en el pedido real. */
dialog.market-dialog {
  --market-bg: var(--market-user-bg, #f3f7f5);
  --market-text: var(--market-user-text, #172d29);
  --market-amber: #f8a719;
  --market-panel: var(--market-user-panel, #fff);
  --market-muted: var(--market-user-muted, #647771);
  --market-line: #d9e5e2;
  background: var(--market-bg);
  color: var(--market-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--market-line);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 18px 60px #102e2633;
}
dialog.market-dialog::backdrop {
  background: #102a2670;
  backdrop-filter: blur(3px);
}
.market-dialog .modal-head {
  border-bottom: 0;
  padding: 0 0 16px;
}
.market-dialog .modal-head h2 {
  font-family: inherit;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -0.6px;
}
.market-dialog .modal-head p {
  font-size: 12px;
  color: var(--market-muted);
}
.market-dialog .dialog-body {
  padding: 0 20px 20px;
}
.market-checkout #checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.market-checkout #checkout-items {
  padding: 0;
}
.market-checkout .checkout-items-list {
  background: var(--market-panel);
  border-radius: 22px;
  padding: 4px 12px;
  border: 1px solid var(--market-line);
  box-shadow: 0 4px 12px #16372b06;
}
.market-checkout .market-checkout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--market-line);
}
.market-checkout .market-checkout-item:last-child {
  border-bottom: 0;
}
.market-item-picture {
  width: 48px;
  height: 56px;
  flex: 0 0 48px;
  border-radius: 13px;
  background: #e2f0ed;
  color: #078b7d;
  overflow: hidden;
}
.market-item-picture .product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.market-item-picture .market-product-symbol svg {
  width: 25px;
  height: 25px;
}
.market-checkout .market-checkout-item .grow > strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.22;
}
.market-checkout .market-checkout-item .grow > b {
  display: block;
  font-size: 15px;
  color: var(--market-primary);
}
.market-checkout .checkout-item small {
  display: block;
  font-size: 11px;
  color: var(--market-muted);
}
.market-checkout .qty {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
}
.market-checkout .qty button {
  width: 36px;
  height: 42px;
  min-width: 36px;
  border: 1px solid var(--market-line);
  background: var(--market-panel);
  border-radius: 12px;
  font-size: 21px;
  color: var(--market-text);
}
.market-checkout .qty button:last-child {
  background: var(--market-amber);
  border-color: var(--market-amber);
  color: #142c27;
}
.market-checkout .qty span {
  font-size: 15px;
  min-width: 14px;
}
.market-checkout .checkout-preparation {
  font-size: 12px;
  background: transparent;
  padding: 0 2px;
  margin: 0;
  color: var(--market-muted);
}
.market-checkout fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.market-checkout legend {
  font-size: 14px;
  font-weight: 800;
  padding: 0 0 9px;
}
.market-checkout .fulfillment-switch {
  display: flex;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  gap: 8px;
}
.market-checkout .fulfillment-indicator {
  display: none;
}
.market-checkout .fulfillment-switch label {
  flex: 1;
}
.market-checkout .fulfillment-switch label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid var(--market-line);
  background: var(--market-panel);
  color: var(--market-text);
  font-size: 12px;
  font-weight: 750;
  padding: 8px;
}
.market-checkout .fulfillment-switch input:checked + span {
  background: var(--market-primary);
  color: var(--market-on-primary);
  border-color: var(--market-primary);
}
.market-checkout .fulfillment-switch input:focus-visible + span {
  outline: 3px solid #1a94dd;
  outline-offset: 2px;
}
.market-dialog .field input,
.market-dialog .field textarea,
.market-dialog .field select {
  background: var(--market-panel);
  border: 1px solid var(--market-line);
  color: var(--market-text);
  border-radius: 13px;
  font-size: 13px;
  min-height: 44px;
  padding: 11px;
}
.market-dialog .field label {
  font-size: 12px;
  font-weight: 700;
}
.market-checkout .checkout-customer {
  gap: 12px;
}
.market-checkout .checkout-notes {
  border: 0;
  margin: 0;
  padding: 0;
}
.market-checkout .checkout-notes summary {
  font-size: 13px;
  font-weight: 750;
  color: var(--market-text);
}
.market-checkout .checkout-final {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.market-checkout #checkout-total {
  background: var(--market-panel);
  border: 1px solid var(--market-line);
  border-radius: 20px;
  padding: 18px;
  color: var(--market-muted);
  font-size: 13px;
}
.market-checkout .checkout-grand {
  color: var(--market-text);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 0;
  font-size: 16px;
  font-weight: 800;
}
.market-checkout .checkout-grand strong {
  color: var(--market-primary);
  font-size: 24px;
}
.market-checkout .checkout-submit.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 17px;
  background: var(--market-amber);
  color: #142c27;
  border: 0;
  min-height: 58px;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 850;
  box-shadow: none;
}
.market-checkout .payment-options label {
  border-radius: 13px;
}
.market-checkout .transfer-account-details {
  border-radius: 13px;
}
.market-checkout .order-sync-error:empty {
  display: none;
}
.market-local h3 {
  font-family: inherit;
  font-weight: 750;
  font-size: 19px;
  line-height: 1.3;
  margin: 18px 0 5px;
}
.market-map {
  height: 230px;
  border-radius: 19px;
  overflow: hidden;
  border: 1px solid var(--market-line);
  background: #e2ede7;
}
.market-map iframe {
  display: block;
  height: 100%;
  width: 100%;
  border: 0;
}
.market-map-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--market-muted);
}
.market-local-actions {
  display: flex;
  gap: 8px;
  margin: 18px 0 24px;
}
.market-local-actions > a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--market-line);
  border-radius: 13px;
  background: var(--market-panel);
  color: var(--market-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 15px 5px;
}
.market-local h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--market-muted);
}
.market-hours > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px dashed var(--market-line);
}
.market-hours strong {
  font-weight: 550;
}
.market-hours .today {
  color: var(--market-primary);
  font-weight: 800;
}
.market-hours small {
  display: inline-block;
  font-size: 8px;
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--market-primary);
  color: var(--market-on-primary);
  margin-left: 7px;
}
[data-theme="dark"] .market-store,
[data-theme="dark"] dialog.market-dialog {
  --market-bg: #142329;
  --market-panel: #203239;
  --market-text: #f0f6f3;
  --market-muted: #b6c7c0;
  --market-line: #425a56;
  background: var(--market-bg);
  color: var(--market-text);
}
[data-theme="dark"] .market-product {
  border-color: #314b44;
}
[data-theme="dark"] .market-product .product-price strong,
[data-theme="dark"] .market-section-heading button {
  color: #8ae0c5;
}
@media (min-width: 761px) {
  .market-shell {
    padding-top: 24px;
  }
  .market-header {
    margin: 0 20px;
    border-radius: 28px;
  }
  .market-header-content {
    max-width: 700px;
  }
  .market-header.with-cover {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .market-header.with-cover .market-cover {
    order: 1;
    height: 100%;
    min-height: 250px;
  }
  .market-header.with-cover .market-header-content {
    min-width: 0;
  }
  .market-header:not(.with-cover) .market-header-content {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 35px;
    align-items: center;
  }
  .market-header:not(.with-cover) .market-identity {
    grid-row: 1 / 3;
  }
  .market-header:not(.with-cover) .market-contact {
    margin-top: 0;
  }
}
@media (max-width: 900px) {
  .market-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .market-header-content {
    padding: 21px 18px 20px;
  }
  .market-identity h1 {
    font-size: 25px;
  }
  .market-content {
    padding: 14px 16px 0;
  }
  .market-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .market-product-photo {
    height: 115px;
  }
  .market-product {
    border-radius: 20px;
    padding: 9px;
  }
  .market-product-content {
    padding-top: 10px;
  }
  .market-product h3 {
    font-size: 15px;
  }
  .market-product-content > p {
    font-size: 12px;
  }
  .market-product .product-price strong {
    font-size: 18px;
  }
  .market-welcome,
  .market-campaign {
    padding: 19px 17px;
    gap: 12px;
  }
  .market-welcome h2,
  .market-campaign h2 {
    font-size: 22px;
  }
  .market-welcome > i,
  .market-campaign > i {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }
  .market-welcome p,
  .market-campaign p {
    font-size: 13px;
  }
  .market-section-heading h2 {
    font-size: 19px;
  }
  .market-cover {
    height: 160px;
  }
  dialog.market-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 25px;
    margin: auto;
  }
  .market-dialog .modal-head {
    padding: 0 0 12px;
  }
  .market-dialog .dialog-body {
    padding: 0 16px 18px;
  }
}
@media (max-width: 350px) {
  .market-product-grid {
    gap: 8px;
  }
  .market-product-photo {
    height: 90px;
  }
  .market-product .product-price strong {
    font-size: 15px;
  }
  .market-add {
    min-width: 37px;
    min-height: 40px;
  }
  .market-item-picture {
    display: none;
  }
  .market-contact > a,
  .market-contact > button {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .market-store *,
  .market-dialog * {
    scroll-behavior: auto !important;
  }
}
/* La opción de lista sigue disponible para los negocios que la prefieran. */
.market-layout-list .market-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.market-layout-list .market-product {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 12px;
}
.market-layout-list .market-product-photo {
  height: 100%;
  min-height: 110px;
}
.market-layout-list .market-product-content {
  padding-top: 2px;
}
.market-receipt {
  background: var(--market-panel);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px dashed var(--market-line);
}
.market-receipt > span {
  color: var(--market-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.market-receipt h2 {
  font-family: ui-monospace, monospace;
  font-size: 19px;
  margin: 7px 0;
}
.market-receipt p {
  font-size: 13px;
  color: var(--market-muted);
}
.market-receipt > strong {
  display: block;
  font-size: 23px;
  color: var(--market-primary);
}
.market-receipt a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  padding-top: 12px;
  color: var(--market-primary);
}
.market-preview {
  --market-bg: var(--market-user-bg);
  --market-text: var(--market-user-text);
  --market-panel: var(--market-user-panel);
  --market-muted: var(--market-user-muted);
  background: var(--market-bg);
  color: var(--market-text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  min-height: 100%;
  padding-bottom: 18px;
}
.market-preview > header {
  background: var(--market-primary);
  color: var(--market-on-primary);
  padding: 20px 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.market-preview > header > span {
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--market-primary);
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
}
.market-preview > header img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.market-preview > header strong {
  display: block;
  font-size: 17px;
}
.market-preview > header small {
  display: block;
  font-size: 10px;
}
.market-preview-search {
  margin: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: #718178;
  padding: 9px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.market-preview-search svg {
  width: 14px;
  height: 14px;
}
.market-preview-welcome {
  margin: 12px 14px;
  padding: 15px;
  border-radius: 17px;
  background: #f8a719;
  color: #142c27;
}
.market-preview-welcome b {
  font-size: 18px;
  line-height: 1.2;
  display: block;
}
.market-preview-welcome p {
  font-size: 11px;
  line-height: 1.4;
  margin: 6px 0 0;
}
.market-preview-category {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 20px;
  background: var(--market-primary);
  color: var(--market-on-primary);
  font-size: 11px;
  margin: 0 14px 12px;
}
.market-preview-grid {
  padding: 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.market-preview-grid article {
  border-radius: 15px;
  padding: 8px;
  background: var(--market-panel);
  color: var(--market-text);
  min-width: 0;
}
.market-preview-picture {
  height: 86px;
  border-radius: 10px;
  background: #e2f0ed;
  overflow: hidden;
}
.market-preview-picture .product-photo {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.market-preview-grid article > strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 8px;
}
.market-preview-grid article > small {
  display: block;
  font-size: 9px;
  color: var(--market-muted);
}
.market-preview-grid footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.market-preview-grid footer b {
  color: var(--market-primary);
  font-size: 14px;
}
.market-preview-grid footer i {
  display: grid;
  place-items: center;
  border-radius: 9px;
  width: 30px;
  height: 30px;
  background: #f8a719;
  color: #142c27;
  font-size: 20px;
  font-style: normal;
}
@media (max-width: 600px) {
  .market-layout-list .market-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Las categorías de servicios se leen como una lista, igual que en la maqueta. */
.market-section-services .market-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.market-section-services .market-product {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}
.market-section-services .market-product-photo {
  width: 52px;
  height: 56px;
  min-height: 0;
}
.market-section-services .market-product-symbol > svg {
  width: 25px;
  height: 25px;
}
.market-section-services .market-product-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  padding: 0;
  align-items: center;
}
.market-section-services h3 {
  font-size: 14px;
}
.market-section-services .market-product-content > p {
  grid-column: 1;
  margin: 4px 0 0;
  font-size: 11px;
}
.market-section-services .market-product-bottom {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 0;
  gap: 10px;
}
.market-section-services .product-price strong {
  font-size: 17px;
}
.market-section-services .market-add {
  min-width: 38px;
  min-height: 40px;
  border-radius: 12px;
}
[data-theme="dark"] .market-business-state .is-open,
[data-theme="dark"] .market-checkout-item .grow > b,
[data-theme="dark"] .market-checkout .checkout-grand strong,
[data-theme="dark"] .market-hours .today {
  color: #8ae0c5;
}
@media (max-width: 600px) {
  .market-section-services .market-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Letrero y horarios de la sucursal, visibles antes de recorrer el catálogo. */
.market-store-status {
  --status-ink: #872b3a;
  --status-paper: #fff0f1;
  --status-line: #edc6cc;
  margin-block: 8px 14px;
  padding: 15px clamp(12px, 3vw, 22px);
  border: 1px solid var(--status-line);
  border-radius: 18px;
  background: var(--status-paper);
  color: var(--status-ink);
}
.market-store-status.status-open {
  --status-ink: #16543a;
  --status-paper: #e9f7ef;
  --status-line: #b9ddc7;
}
.market-store-status.status-cutoff {
  --status-ink: #724516;
  --status-paper: #fff3e2;
  --status-line: #e8d2b1;
}
[data-theme="dark"] .market-store-status {
  --status-ink: #ffc4ce;
  --status-paper: #361f29;
  --status-line: #75404c;
}
[data-theme="dark"] .market-store-status.status-open {
  --status-ink: #b9edce;
  --status-paper: #173426;
  --status-line: #3e684f;
}
[data-theme="dark"] .market-store-status.status-cutoff {
  --status-ink: #fbe0b5;
  --status-paper: #382a1c;
  --status-line: #745537;
}
.market-status-overview {
  display: grid;
  grid-template-columns: clamp(70px, 23vw, 106px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 3vw, 18px);
}
.market-store-status .market-status-sign { display: block; width: 100%; height: auto; }
.market-status-sign text { font: 800 13px system-ui, sans-serif; letter-spacing: 1px; }
.market-status-copy > strong { display: block; font-size: clamp(20px, 4.8vw, 26px); line-height: 1.15; }
.market-status-copy p { margin: 5px 0 0; font-size: 13px; line-height: 1.4; }
.market-store .market-store-status .market-business-state {
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0 0;
  padding: 9px 0 0;
  border-top: 1px solid var(--status-line);
  color: inherit;
  font-size: 13px;
  opacity: 1;
}
.market-status-today { font-variant-numeric: tabular-nums; }
.market-status-today b { margin-inline-end: 4px; }
.market-status-next { display: flex; gap: 6px; align-items: center; margin: 9px 0 0; font-size: 13px; }
.market-status-next svg { flex: 0 0 16px; width: 16px; height: 16px; }
.market-status-week { margin-top: 6px; }
.market-status-week > summary {
  width: fit-content;
  min-height: 40px;
  padding-block: 10px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.market-store-status .market-hours > div { border-color: var(--status-line); font-size: 13px; }
.market-store-status .market-hours > div:last-child { border-bottom: 0; }
.market-store-status .market-hours .today { color: var(--status-ink); }
.market-store-status .market-hours small { color: var(--status-paper); background: var(--status-ink); }
.market-store-status .market-hours > div > span { text-align: end; }

.market-share-trigger {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--market-line);
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
  color: var(--market-text);
  cursor: pointer;
}
.market-share-trigger svg { width: 17px; height: 17px; }
@media (max-width: 650px) {
  .market-share-trigger { width: 36px; height: 36px; }
}
@media (max-width: 420px) {
  .market-share-trigger { width: 32px; height: 32px; }
}
.market-share-panel { display: grid; gap: 12px; }
.market-share-link { display: grid; gap: 5px; }
.market-share-link label { font-weight: 700; font-size: 13px; }
.market-share-link input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--market-line);
  background: var(--market-user-bg);
  font-size: 16px;
}
.market-share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.market-share-actions :is(button, a) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--market-line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.market-share-actions [hidden] { display: none; }
.market-share-actions :is([data-share-copy], [data-share-image]) {
  background: var(--market-primary);
  color: var(--market-on-primary);
  border-color: transparent;
}
.market-share-actions svg { width: 16px; height: 16px; flex: 0 0 16px; }
.market-share-qr-actions { justify-content: center; }
.market-share-qr {
  width: min(100%, 184px);
  margin: 4px auto 0;
  border: 1px solid var(--market-line);
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
}
.market-share-qr svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.market-share-panel :is(.market-share-hint, .market-share-feedback) {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: inherit;
}
.market-share-feedback:empty { position: absolute; }
