/* =============================================================================
 * dm-components.css - Base, utilidades y componentes del design system.
 *
 * Generado desde el proyecto "DeliMart - Design System" de claude.ai/design
 * (4851c611-514f-4eed-a80f-43e5e466de41). NO editar a mano.
 *
 * Todos los selectores estan acotados a .dm-root o a clases .dm-*, asi que no
 * pisan nada del tema viejo. El @import de Montserrat del bundle original se
 * quito: la fuente ya la carga _Layout.cshtml.
 * ============================================================================= */

/* ---------- base.css ---------- */
/*
 * Base y utilidades de layout.
 *
 * El tema original se apoya en la grilla de Bootstrap. Acá NO enviamos
 * Bootstrap: en su lugar va un set chico y enumerable de utilidades
 * (dm-stack / dm-cluster / dm-grid) para que el agente de diseño tenga un
 * vocabulario cerrado en vez de inventar clases.
 */

/* Montserrat, igual que _Layout.cshtml del tema. */

.dm-root {
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  font-weight: var(--dm-weight-medium);
  color: var(--dm-text);
  background-color: var(--dm-surface);
  -webkit-font-smoothing: antialiased;
}

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

.dm-root h1,
.dm-root h2,
.dm-root h3,
.dm-root h4,
.dm-root h5,
.dm-root h6,
.dm-root p,
.dm-root figure {
  margin: 0;
}

.dm-root a {
  color: var(--dm-text);
  text-decoration: none;
}

.dm-root a:hover {
  color: var(--dm-text-strong);
}

.dm-root img {
  max-width: 100%;
}

.dm-root button {
  font-family: inherit;
}

/* ---------- Títulos de sección ---------- */

/* .widget-name / .page-header del tema: centrado, liviano, 22px. */
.dm-page-header {
  text-align: center;
  padding: var(--dm-space-5) 0;
  font-weight: var(--dm-weight-light);
  font-size: var(--dm-text-xl);
  color: var(--dm-text);
}

.dm-section-title {
  text-align: center;
  padding: var(--dm-space-5) 0;
  font-weight: var(--dm-weight-light);
  font-size: var(--dm-text-xl);
  color: var(--dm-text);
}

/* ---------- Utilidades de layout ---------- */

/* Apilado vertical. */
.dm-stack {
  display: flex;
  flex-direction: column;
}

/* Fila que envuelve, con alineado al centro. */
.dm-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Grilla responsive de ancho mínimo por celda. */
.dm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.dm-gap-1 { gap: var(--dm-space-1); }
.dm-gap-2 { gap: var(--dm-space-2); }
.dm-gap-3 { gap: var(--dm-space-3); }
.dm-gap-4 { gap: var(--dm-space-4); }
.dm-gap-5 { gap: var(--dm-space-5); }

.dm-between { justify-content: space-between; }
.dm-center { justify-content: center; }
.dm-align-start { align-items: flex-start; }

/* ---------- Texto ---------- */

.dm-muted {
  color: var(--dm-text-muted);
}

.dm-text-sm { font-size: var(--dm-text-sm); }
.dm-text-xs { font-size: var(--dm-text-xs); }

/* ---------- Scrollbars ---------- */

/* El tema estiliza el scrollbar en tablas, popovers y resúmenes de orden. */
.dm-scroll {
  overflow-y: auto;
}

.dm-scroll::-webkit-scrollbar {
  width: 8px;
  height: 0;
}

.dm-scroll::-webkit-scrollbar-thumb {
  background: #ababab;
  border-radius: 4px;
}

.dm-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--dm-text-faint);
  box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
}

.dm-scroll::-webkit-scrollbar-track {
  background: var(--dm-border-track);
  border-radius: 4px;
}

.dm-scroll::-webkit-scrollbar-track:hover {
  background: #d4d4d4;
}


/* ---------- badge.css ---------- */
/*
 * Badge y Flag.
 * Origen: .cart-badge span.badge (contador del carrito) y .flag (cinta de sección).
 */

.dm-badge {
  display: inline-block;
  padding: 0.2em 0.55em;
  font-size: var(--dm-text-sm);
  font-weight: var(--dm-weight-normal);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: var(--dm-text-on-brand);
  background: var(--dm-brand);
}

.dm-badge--pill {
  border-radius: 2rem;
}

.dm-badge--brand { background: var(--dm-brand); color: var(--dm-text-on-brand); }
.dm-badge--danger { background: var(--dm-danger); color: var(--dm-text-on-brand); }
.dm-badge--warning { background: var(--dm-warning); color: var(--dm-text-on-brand); }
.dm-badge--success { background: #18ba9b; color: var(--dm-text-on-brand); }

.dm-badge--neutral {
  background: var(--dm-surface-sunken);
  color: var(--dm-text);
}

/* ---------- Flag ---------- */

/* Cinta naranja con punta a la derecha, para titular secciones. */
.dm-flag {
  background: var(--dm-brand);
  border-radius: 5px;
  color: var(--dm-text-on-brand);
  font-size: 15px;
  font-weight: var(--dm-weight-bold);
  line-height: 30px;
  height: 30px;
  display: inline-block;
  padding: 0 12px;
  position: relative;
}

.dm-flag::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 15px solid var(--dm-brand);
  position: absolute;
  right: -12px;
  top: 0;
  border-radius: 10px;
}


/* ---------- button.css ---------- */
/*
 * Botones.
 *
 * Consolidan los tratamientos que el tema tenía dispersos:
 *   primary  <- .btn-order / .action-button / .btn-cart-popover / .order-summary .btn
 *   secondary<- .action-button-previous
 *   outline  <- .cart-list .coupon-form .btn
 *   elevated <- .ver-todos a
 *   service  <- #login-servicios .form-services .btn
 */

.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--dm-space-2);
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  font-weight: var(--dm-weight-medium);
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--dm-radius-sm);
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
  transition: var(--dm-transition);
}

.dm-btn:focus {
  outline: none;
  box-shadow: none;
}

.dm-btn:focus-visible {
  outline: 2px solid var(--dm-brand);
  outline-offset: 2px;
}

.dm-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Tamaños ---------- */

.dm-btn--sm {
  font-size: var(--dm-text-sm);
  padding: 0.35rem 0.9rem;
}

.dm-btn--md {
  padding: 0.6rem 1.5rem;
}

.dm-btn--lg {
  padding: 0.85rem 2.5rem;
  font-size: var(--dm-text-md);
}

.dm-btn--block {
  display: flex;
  width: 100%;
}

/* Llamada a la acción: esquinas de 1rem y texto más pesado. */
.dm-btn--cta {
  border-radius: var(--dm-radius-cta);
  font-weight: var(--dm-weight-semibold);
}

/* ---------- Variantes ---------- */

/* Los CTA naranjas del tema llevan la elevación estándar y oscurecen
 * a #d95c00 al pasar el mouse (el único hover-naranja del tema). */
.dm-btn--primary {
  background: var(--dm-brand);
  border-color: var(--dm-brand);
  color: var(--dm-text-on-brand);
  box-shadow: var(--dm-shadow);
}

.dm-btn--primary:hover:not(:disabled) {
  background: #d95c00;
  border-color: #d95c00;
  color: var(--dm-text-on-brand);
}

.dm-btn--secondary {
  background: var(--dm-surface-sunken);
  border-color: var(--dm-surface-sunken);
  color: var(--dm-text);
}

.dm-btn--secondary:hover:not(:disabled) {
  background: #e0e0e0;
  border-color: #e0e0e0;
}

.dm-btn--outline {
  background: transparent;
  border-color: var(--dm-brand);
  color: var(--dm-brand);
}

.dm-btn--outline:hover:not(:disabled) {
  background: var(--dm-brand);
  color: var(--dm-text-on-brand);
}

.dm-btn--elevated {
  background: var(--dm-surface);
  border-color: transparent;
  color: var(--dm-text);
  box-shadow: var(--dm-shadow);
}

.dm-btn--elevated:hover:not(:disabled) {
  box-shadow: 0 10px 30px var(--dm-shadow-color);
  color: var(--dm-text);
}

.dm-btn--service {
  background: var(--dm-surface-alt);
  border-color: transparent;
  color: var(--dm-text);
  box-shadow: 0 0 5px var(--dm-shadow-color);
}

.dm-btn--service:hover:not(:disabled) {
  background: var(--dm-surface-sunken);
}

.dm-btn--danger {
  background: var(--dm-danger);
  border-color: var(--dm-danger);
  color: var(--dm-text-on-brand);
}

.dm-btn--danger:hover:not(:disabled) {
  background: #c81800;
  border-color: #c81800;
}

.dm-btn--link {
  background: transparent;
  border-color: transparent;
  color: var(--dm-text);
  padding-left: 0;
  padding-right: 0;
  text-decoration: none;
}

.dm-btn--link:hover:not(:disabled) {
  color: var(--dm-brand);
}

/* ---------- Iconos y carga ---------- */

.dm-btn__icon {
  display: inline-flex;
  align-items: center;
  font-size: var(--dm-text-lg);
  line-height: 0;
}

.dm-btn__spinner {
  width: 0.9em;
  height: 0.9em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--dm-radius-round);
  animation: dm-spin 0.7s linear infinite;
}

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


/* ---------- card.css ---------- */
/*
 * Card.
 * Origen: el patrón `border-radius:6px; box-shadow:0 5px 10px #aaa9a9e5`
 * que el tema repite en filtros, login, métodos de pago y resumen de orden.
 */

.dm-card {
  background: var(--dm-surface);
  border: none;
  border-radius: var(--dm-radius-card);
  position: relative;
  transition: var(--dm-transition);
}

.dm-card--flat {
  box-shadow: none;
  border: 1px solid var(--dm-border);
}

.dm-card--raised {
  box-shadow: var(--dm-shadow);
}

.dm-card--floating {
  box-shadow: var(--dm-shadow-lg);
}

.dm-card--interactive:hover {
  box-shadow: var(--dm-shadow-md);
}

.dm-card--pad-none { padding: 0; }
.dm-card--pad-sm { padding: var(--dm-space-2); }
.dm-card--pad-md { padding: var(--dm-space-3); }
.dm-card--pad-lg { padding: var(--dm-space-4); }

.dm-card__header {
  padding-bottom: var(--dm-space-2);
  margin-bottom: var(--dm-space-3);
  border-bottom: 1px solid var(--dm-border);
  font-weight: var(--dm-weight-semibold);
}

.dm-card__footer {
  padding-top: var(--dm-space-2);
  margin-top: var(--dm-space-3);
  border-top: 1px solid var(--dm-border);
}


/* ---------- cart.css ---------- */
/*
 * Carrito y resumen de compra.
 * Origen: .cart-badge, .shopping-cart (panel flotante), .cart-list .cart-items
 * y .cart-list .order-summary.
 */

/* ---------- Badge del header ---------- */

.dm-cart-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--dm-space-2);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--dm-text);
  font-family: var(--dm-font);
  font-size: var(--dm-text-sm);
  text-decoration: none;
}

.dm-cart-badge:hover {
  color: var(--dm-brand);
}

.dm-cart-badge__icon {
  position: relative;
  display: inline-flex;
  line-height: 0;
}

/* Contador naranja, pegado arriba a la derecha del icono. */
.dm-cart-badge__count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--dm-brand);
  color: var(--dm-text-on-brand);
  border-radius: 2rem;
  font-weight: var(--dm-weight-normal);
  font-size: var(--dm-text-xs);
  line-height: 18px;
  text-align: center;
}

.dm-cart-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.dm-cart-badge__label {
  font-size: var(--dm-text-sm);
}

.dm-cart-badge__total {
  font-weight: var(--dm-weight-semibold);
  color: var(--dm-brand);
}

/* ---------- Panel flotante ---------- */

.dm-cart-dropdown {
  background: var(--dm-surface);
  width: 320px;
  border-radius: 3px;
  padding: 20px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  position: relative;
  z-index: 99;
}

/* Flechita apuntando al icono del carrito. */
.dm-cart-dropdown::after {
  bottom: 100%;
  left: 89%;
  border: solid transparent;
  content: ' ';
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-bottom-color: var(--dm-surface);
  border-width: 8px;
  margin-left: -8px;
}

.dm-cart-dropdown__header {
  padding-bottom: 15px;
  font-weight: var(--dm-weight-semibold);
  color: var(--dm-text);
}

.dm-cart-dropdown__body {
  max-height: 260px;
  display: flex;
  flex-direction: column;
  gap: var(--dm-space-2);
}

.dm-cart-dropdown__empty {
  text-align: center;
  color: var(--dm-text-muted);
  font-weight: var(--dm-weight-light);
  padding: var(--dm-space-4) 0;
  margin: 0;
}

.dm-cart-dropdown__footer {
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: var(--dm-space-2);
}

.dm-cart-dropdown__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.dm-cart-dropdown__total strong {
  color: var(--dm-brand);
  font-size: var(--dm-text-md);
}

/* ---------- Fila de producto ---------- */

.dm-cart-item {
  display: flex;
  align-items: center;
  gap: var(--dm-space-2);
  padding: var(--dm-space-2) 0;
  border-top: 1px solid var(--dm-border-strong);
}

.dm-cart-item__media {
  flex: 0 0 auto;
}

/* 52px es el .imagen-mini del popover del carrito. */
.dm-cart-item__image {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.dm-cart-item__image--empty {
  background: var(--dm-surface-sunken);
  border-radius: var(--dm-radius-sm);
}

.dm-cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.dm-cart-item__name {
  font-weight: var(--dm-weight-semibold);
  font-size: var(--dm-text-sm);
  color: var(--dm-text);
  line-height: 1.3;
}

.dm-cart-item__meta {
  font-size: var(--dm-text-xs);
  color: var(--dm-text-muted);
}

.dm-cart-item__price {
  font-size: var(--dm-text-sm);
  color: var(--dm-brand);
  font-weight: var(--dm-weight-semibold);
}

.dm-cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--dm-space-1);
}

.dm-cart-item__remove {
  color: var(--dm-text-strong);
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  background: var(--dm-surface);
  border: none;
  text-align: center;
}

.dm-cart-item__remove:hover {
  color: var(--dm-danger);
}

.dm-cart-item__subtotal {
  font-size: var(--dm-text-sm);
  font-weight: var(--dm-weight-semibold);
  color: var(--dm-text);
}

/* ---------- Resumen de compra ---------- */

.dm-order-summary {
  background: var(--dm-surface);
  border-radius: var(--dm-radius-card);
  box-shadow: var(--dm-shadow);
  padding: var(--dm-space-3);
}

.dm-order-summary__title {
  font-weight: var(--dm-weight-semibold);
  font-size: var(--dm-text-md);
  padding-bottom: var(--dm-space-2);
  margin-bottom: var(--dm-space-2);
  border-bottom: 1px solid var(--dm-border);
}

.dm-order-summary__table {
  width: 100%;
  border-collapse: collapse;
}

/* Las filas van en peso liviano, como en el tema. */
.dm-order-summary__table td {
  border-top: none;
  font-weight: var(--dm-weight-light);
  padding: 6px 0;
  font-size: var(--dm-text-base);
  color: var(--dm-text);
}

.dm-order-summary__value {
  text-align: right;
  white-space: nowrap;
}

.dm-order-summary__table tr.is-discount .dm-order-summary__value {
  color: #18ba9b;
}

.dm-order-summary__table tr.is-total td {
  font-weight: var(--dm-weight-bold);
  font-size: var(--dm-text-md);
  border-top: 1px solid var(--dm-border-strong);
  padding-top: var(--dm-space-2);
  color: var(--dm-text);
}

.dm-order-summary__table tr.is-total .dm-order-summary__value {
  color: var(--dm-brand);
}

.dm-order-summary__extra {
  padding-top: var(--dm-space-3);
}

.dm-order-summary__action {
  padding-top: var(--dm-space-3);
}


/* ---------- checkout.css ---------- */
/*
 * Checkout, pedidos, cuenta, sucursal, chat y carrusel.
 * Origen: #progressbar, .order-history, #sucursalseleccionada,
 * .carousel-content / .carousel-indicators, .metodos-pago.
 */

/* ---------- Progreso del checkout ---------- */

.dm-progress {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #d3d3d3;
}

.dm-progress__step {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: var(--dm-text-sm);
}

/* Línea gris que une los pasos, por detrás de los círculos. */
.dm-progress__step::after {
  content: '';
  width: 100%;
  height: 2px;
  background: #d3d3d3;
  position: absolute;
  left: -50%;
  top: 25px;
  z-index: 0;
}

.dm-progress__step:first-child::after {
  display: none;
}

.dm-progress__step.is-active::after {
  background: var(--dm-brand);
}

.dm-progress__marker {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  line-height: 46px;
  display: block;
  font-size: var(--dm-text-lg);
  color: var(--dm-text-on-brand);
  background: #d3d3d3;
  border-radius: 50%;
  margin: 0 auto 10px auto;
  padding: 2px;
}

.dm-progress__step.is-active .dm-progress__marker {
  background: var(--dm-brand);
}

.dm-progress__label {
  font-weight: var(--dm-weight-semibold);
  color: inherit;
  display: block;
}

.dm-progress__step.is-active .dm-progress__label {
  color: var(--dm-text-strong);
}

/* ---------- Turnos de entrega ---------- */

.dm-slots__date {
  font-weight: var(--dm-weight-semibold);
  margin-bottom: var(--dm-space-2);
  color: var(--dm-text);
}

.dm-slots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--dm-space-2);
}

.dm-slots__slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--dm-space-2);
  background: var(--dm-surface);
  border: 1px solid var(--dm-border-strong);
  border-radius: var(--dm-radius-sm);
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  color: var(--dm-text);
  cursor: pointer;
  transition: var(--dm-transition-fast);
}

.dm-slots__slot:hover:not(:disabled) {
  border-color: var(--dm-brand);
}

.dm-slots__slot.is-selected {
  background: var(--dm-brand);
  border-color: var(--dm-brand);
  color: var(--dm-text-on-brand);
}

.dm-slots__slot:disabled {
  color: var(--dm-text-faint);
  background: var(--dm-surface-alt);
  cursor: not-allowed;
}

.dm-slots__price {
  font-size: var(--dm-text-xs);
  opacity: 0.85;
}

/* ---------- Estado del pedido ---------- */

.dm-status {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: 2rem;
  font-size: var(--dm-text-xs);
  font-weight: var(--dm-weight-semibold);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dm-status--pending { background: var(--dm-surface-sunken); color: var(--dm-text-muted); }
.dm-status--confirmed { background: #eef4fb; color: #2f6fad; }
.dm-status--preparing { background: var(--dm-brand-soft); color: var(--dm-brand-strong); }
.dm-status--shipping { background: #fff1e0; color: var(--dm-brand-darker); }
.dm-status--delivered { background: #eaf7f3; color: #0f8a72; }
.dm-status--cancelled { background: #fdeceb; color: var(--dm-danger); }

/* ---------- Fila del historial ---------- */

.dm-order-row {
  display: flex;
  align-items: center;
  gap: var(--dm-space-3);
  padding: var(--dm-space-3);
  background: var(--dm-surface);
  border-radius: var(--dm-radius-card);
  box-shadow: var(--dm-shadow);
  flex-wrap: wrap;
}

.dm-order-row__info {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.dm-order-row__number {
  font-weight: var(--dm-weight-semibold);
  color: var(--dm-text);
}

.dm-order-row__date {
  font-size: var(--dm-text-sm);
  color: var(--dm-text-muted);
  font-weight: var(--dm-weight-light);
}

.dm-order-row__thumbs {
  display: flex;
  align-items: center;
  gap: var(--dm-space-1);
  flex: 1;
}

/* Las miniaturas del historial miden 60px en el tema. */
.dm-order-row__thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-sm);
  background: var(--dm-surface);
}

.dm-order-row__more {
  font-size: var(--dm-text-sm);
  color: var(--dm-text-muted);
}

.dm-order-row__total {
  font-weight: var(--dm-weight-bold);
  color: var(--dm-brand);
  white-space: nowrap;
}

/* ---------- Cupón ---------- */

.dm-coupon__row {
  display: flex;
  gap: var(--dm-space-2);
}

.dm-coupon__input {
  flex: 1;
  min-width: 0;
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  border: 1px solid var(--dm-border-input);
  border-radius: var(--dm-radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--dm-text);
}

.dm-coupon__input:focus {
  outline: none;
  border-color: var(--dm-brand);
}

/* Botón de contorno naranja, como .coupon-form .btn. */
.dm-coupon__button {
  border: 1px solid var(--dm-brand);
  color: var(--dm-brand);
  background: transparent;
  border-radius: var(--dm-radius-sm);
  box-shadow: none;
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--dm-transition-fast);
}

.dm-coupon__button:hover {
  background: var(--dm-brand);
  color: var(--dm-text-on-brand);
}

.dm-coupon__error,
.dm-coupon__success {
  display: block;
  font-size: var(--dm-text-sm);
  margin-top: var(--dm-space-1);
}

.dm-coupon__error { color: var(--dm-danger); }
.dm-coupon__success { color: #0f8a72; }

/* ---------- Medio de pago ---------- */

.dm-payment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--dm-space-1);
  min-height: 100px;
  padding: 17px 5px 5px;
  text-align: center;
  background: var(--dm-surface);
  border: 2px solid transparent;
  border-radius: var(--dm-radius-card);
  box-shadow: var(--dm-shadow);
  cursor: pointer;
  font-family: var(--dm-font);
  color: var(--dm-text);
  transition: var(--dm-transition-fast);
}

.dm-payment:hover {
  box-shadow: var(--dm-shadow-md);
}

.dm-payment.is-selected {
  border-color: var(--dm-brand);
}

.dm-payment__logo {
  display: inline-flex;
  line-height: 0;
  font-size: 28px;
}

.dm-payment__logo img {
  max-width: 100%;
  margin-bottom: 3px;
}

.dm-payment__name {
  font-weight: var(--dm-weight-semibold);
  font-size: var(--dm-text-base);
}

.dm-payment__desc {
  font-size: var(--dm-text-sm);
  font-weight: var(--dm-weight-light);
  color: var(--dm-text-muted);
}

/* ---------- Menú de cuenta ---------- */

.dm-account-menu {
  background: var(--dm-surface);
  border-radius: var(--dm-radius-card);
  box-shadow: var(--dm-shadow);
  overflow: hidden;
}

.dm-account-menu__header {
  display: flex;
  flex-direction: column;
  padding: var(--dm-space-3);
  border-bottom: 1px solid var(--dm-border);
}

.dm-account-menu__name {
  font-weight: var(--dm-weight-semibold);
  color: var(--dm-text);
}

.dm-account-menu__meta {
  font-size: var(--dm-text-sm);
  color: var(--dm-text-muted);
  font-weight: var(--dm-weight-light);
}

.dm-account-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dm-account-menu__link {
  display: flex;
  align-items: center;
  gap: var(--dm-space-2);
  padding: 0.7rem var(--dm-space-3);
  color: var(--dm-text);
  text-decoration: none;
  font-size: var(--dm-text-base);
  border-left: 3px solid transparent;
  transition: var(--dm-transition-fast);
}

.dm-account-menu__link:hover {
  background: var(--dm-surface-alt);
}

.dm-account-menu__link.is-active {
  color: var(--dm-brand);
  border-left-color: var(--dm-brand);
  font-weight: var(--dm-weight-semibold);
}

.dm-account-menu__link.is-danger {
  color: var(--dm-danger);
}

.dm-account-menu__icon {
  display: inline-flex;
  line-height: 0;
  font-size: var(--dm-text-md);
}

/* ---------- Selector de sucursal ---------- */

.dm-branch {
  display: inline-flex;
  align-items: center;
  gap: var(--dm-space-1);
  font-size: var(--dm-text-sm);
  color: var(--dm-text);
}

.dm-branch__icon {
  display: inline-flex;
  line-height: 0;
  color: var(--dm-brand);
}

/* El nombre de la sucursal va subrayado y en naranja. */
.dm-branch__value {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--dm-font);
  font-size: var(--dm-text-sm);
  font-weight: var(--dm-weight-semibold);
  text-decoration: underline;
  color: var(--dm-brand);
  cursor: pointer;
}

/* ---------- Chat ---------- */

.dm-chat-bubble {
  max-width: 80%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: var(--dm-text-sm);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dm-chat-bubble--bot {
  background: var(--dm-surface-sunken);
  color: var(--dm-text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.dm-chat-bubble--user {
  background: var(--dm-brand);
  color: var(--dm-text-on-brand);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  margin-left: auto;
}

.dm-chat-bubble__time {
  font-size: var(--dm-text-xs);
  opacity: 0.7;
  align-self: flex-end;
}

/* ---------- Carrusel ---------- */

.dm-carousel {
  position: relative;
  width: 100%;
  padding: var(--dm-space-5);
  background: var(--dm-surface);
  box-shadow: var(--dm-shadow-lg);
}

.dm-carousel__viewport {
  text-align: center;
  overflow: hidden;
}

.dm-carousel__viewport img {
  max-width: 100%;
  height: auto;
}

/* Línea naranja debajo del carrusel de la home. */
.dm-carousel__rule {
  border: none;
  border-top: 2px solid var(--dm-brand);
  width: 100%;
  margin: var(--dm-space-3) 0 0;
}

.dm-carousel__indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: var(--dm-space-3);
}

/* Puntos de 10px; el activo en naranja. */
.dm-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  background: var(--dm-shadow-color);
  border-radius: var(--dm-radius-round);
  cursor: pointer;
  transition: var(--dm-transition-fast);
}

.dm-carousel__dot.is-active {
  background: var(--dm-brand);
}


/* ---------- feedback.css ---------- */
/*
 * Avisos, carga, estados vacíos, cookies, modal y solapas.
 * Origen: #cookie-alert, #modalSucursal, .nav-pills.
 */

/* ---------- Alert ---------- */

.dm-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--dm-space-2);
  padding: var(--dm-space-3);
  border-radius: var(--dm-radius-card);
  border-left: 4px solid transparent;
  font-size: var(--dm-text-base);
  background: var(--dm-surface-alt);
  color: var(--dm-text);
}

.dm-alert__icon {
  display: inline-flex;
  line-height: 0;
  font-size: var(--dm-text-lg);
  margin-top: 2px;
}

.dm-alert__content {
  flex: 1;
  min-width: 0;
}

.dm-alert__title {
  display: block;
  font-weight: var(--dm-weight-semibold);
  margin-bottom: 2px;
}

.dm-alert__body {
  font-weight: var(--dm-weight-light);
  line-height: 1.45;
}

.dm-alert__actions {
  margin-top: var(--dm-space-2);
  display: flex;
  gap: var(--dm-space-2);
}

.dm-alert__close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--dm-text-muted);
  padding: 0;
}

.dm-alert--info { background: #eef4fb; border-left-color: #4a90d9; }
.dm-alert--success { background: #eaf7f3; border-left-color: #18ba9b; }
.dm-alert--warning { background: #fff6e3; border-left-color: var(--dm-warning); }
.dm-alert--danger { background: #fdeceb; border-left-color: var(--dm-danger); }
.dm-alert--brand { background: var(--dm-brand-soft); border-left-color: var(--dm-brand); }

/* ---------- Spinner ---------- */

.dm-spinner {
  display: inline-block;
  border: 2px solid var(--dm-brand);
  border-right-color: transparent;
  border-radius: var(--dm-radius-round);
  animation: dm-spin 0.7s linear infinite;
}

.dm-spinner--sm { width: 16px; height: 16px; }
.dm-spinner--md { width: 24px; height: 24px; }
.dm-spinner--lg { width: 40px; height: 40px; border-width: 3px; }

/* ---------- Estado vacío ---------- */

.dm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--dm-space-2);
  padding: var(--dm-space-6) var(--dm-space-3);
  color: var(--dm-text);
}

.dm-empty__icon {
  font-size: 48px;
  line-height: 1;
  color: var(--dm-lightGrey, var(--lightGrey));
}

.dm-empty__title {
  font-size: var(--dm-text-md);
  font-weight: var(--dm-weight-semibold);
}

.dm-empty__desc {
  font-weight: var(--dm-weight-light);
  color: var(--dm-text-muted);
  text-align: center;
  margin: 0;
  max-width: 42ch;
}

.dm-empty__action {
  margin-top: var(--dm-space-2);
}

/* ---------- Cookies ---------- */

.dm-cookie {
  background: var(--dm-surface);
  width: 100%;
  max-width: 420px;
  padding: 0.75rem 1.25rem;
  color: var(--dm-text-strong);
  box-shadow: var(--dm-shadow-ambient);
  border-radius: var(--dm-radius-card);
}

.dm-cookie__title {
  display: block;
  font-weight: var(--dm-weight-semibold);
  margin-bottom: var(--dm-space-1);
}

/* El texto legal va justificado y en 12px. */
.dm-cookie__text {
  text-align: justify;
  font-size: var(--dm-text-sm);
  font-weight: var(--dm-weight-light);
  line-height: 1.5;
  margin: 0 0 var(--dm-space-2);
}

.dm-cookie__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--dm-space-3);
}

.dm-cookie__link {
  font-size: var(--dm-text-sm);
  color: var(--dm-text);
  text-decoration: underline;
}

.dm-cookie__accept {
  background-color: var(--dm-brand);
  color: var(--dm-text-on-brand);
  border: none;
  border-radius: var(--dm-radius-sm);
  padding: 0.45rem 1.2rem;
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  cursor: pointer;
}

.dm-cookie__accept:hover {
  background-color: var(--dm-brand-strong);
}

/* ---------- Modal ---------- */

.dm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--dm-space-3);
  z-index: 1050;
}

.dm-modal {
  background: var(--dm-surface);
  border-radius: var(--dm-radius);
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow: hidden;
}

.dm-modal--sm { max-width: 400px; }
.dm-modal--md { max-width: 600px; }
.dm-modal--lg { max-width: 800px; }

/* El tema saca los bordes del header y del footer del modal. */
.dm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dm-space-2);
  padding: var(--dm-space-3);
  border-bottom: none;
}

.dm-modal__title {
  font-size: var(--dm-text-md);
  font-weight: var(--dm-weight-semibold);
  margin: 0;
}

.dm-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--dm-text-muted);
  padding: 0;
}

.dm-modal__body {
  padding: 0 var(--dm-space-3) var(--dm-space-3);
  overflow-y: auto;
}

.dm-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--dm-space-2);
  padding: var(--dm-space-3);
  border-top: none;
}

.dm-modal__footer.is-tinted {
  background-color: var(--dm-surface-sunken);
}

/* ---------- Solapas ---------- */

.dm-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dm-space-2);
}

.dm-tabs__tab {
  border: none;
  background: transparent;
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  color: var(--dm-text);
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--dm-radius-sm);
  transition: var(--dm-transition-fast);
}

.dm-tabs--pills .dm-tabs__tab:hover {
  background: var(--dm-surface-sunken);
}

/* Solapa activa: naranja sólido con texto blanco, como .nav-pills. */
.dm-tabs--pills .dm-tabs__tab.is-active {
  color: var(--dm-text-on-brand);
  background: var(--dm-brand);
}

.dm-tabs--underline .dm-tabs__list {
  gap: 0;
  border-bottom: 1px solid var(--dm-border);
}

.dm-tabs--underline .dm-tabs__tab {
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dm-tabs--underline .dm-tabs__tab.is-active {
  color: var(--dm-brand);
  border-bottom-color: var(--dm-brand);
}

.dm-tabs__panel {
  padding: var(--dm-space-3) 0;
  font-size: var(--dm-text-base);
}


/* ---------- form.css ---------- */
/*
 * Campos de formulario.
 * Origen: input/select/textarea globales del tema (14px, borde #ced4da),
 * .form-login .form-control, .input-validation-error y el buscador con
 * border-radius:5rem de #search-categoria.
 */

.dm-field {
  display: flex;
  flex-direction: column;
  gap: var(--dm-space-1);
  width: 100%;
}

.dm-field__label {
  font-size: var(--dm-text-sm);
  font-weight: var(--dm-weight-semibold);
  color: var(--dm-text);
}

.dm-field__required {
  color: var(--dm-danger);
}

.dm-field__hint {
  font-size: var(--dm-text-sm);
  font-weight: var(--dm-weight-light);
  color: var(--dm-text-muted);
}

.dm-field__error {
  font-size: var(--dm-text-sm);
  color: var(--dm-danger);
}

/* ---------- Controles ---------- */

.dm-input {
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  font-weight: var(--dm-weight-normal);
  color: var(--dm-text);
  background: var(--dm-surface);
  border: 1px solid var(--dm-border-input);
  border-radius: var(--dm-radius-sm);
  padding: 10px 12px;
  line-height: 1.3;
  transition: var(--dm-transition-fast);
}

.dm-input--block {
  width: 100%;
}

.dm-input::placeholder {
  color: var(--dm-text-faint);
  font-weight: var(--dm-weight-light);
}

.dm-input:focus {
  outline: none;
  border-color: var(--dm-brand);
  box-shadow: none;
}

.dm-input:disabled {
  background: var(--dm-surface-alt);
  color: var(--dm-text-faint);
  cursor: not-allowed;
}

/* El buscador del header usa la variante píldora. */
.dm-input--pill {
  border-radius: var(--dm-radius-pill);
  padding-left: var(--dm-space-3);
  padding-right: var(--dm-space-3);
}

.dm-input.is-invalid {
  border-color: var(--dm-danger);
}

.dm-textarea {
  min-height: 90px;
  resize: vertical;
}

.dm-select {
  appearance: none;
  padding-right: var(--dm-space-5);
  background-image: linear-gradient(45deg, transparent 50%, var(--dm-text) 50%),
    linear-gradient(135deg, var(--dm-text) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ---------- Campo con etiqueta flotante ---------- */

/*
 * Patrón propio del tema (.float-label / .float-input / .float-span).
 * La etiqueta arranca dentro del campo y sube al enfocar o al escribir.
 * El truco depende de :placeholder-shown, por eso el input siempre lleva
 * placeholder aunque esté oculto.
 */

.dm-float-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--dm-space-1);
  width: 100%;
}

.dm-float-label {
  position: relative;
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--dm-border-input);
}

.dm-float-label.is-invalid {
  border-bottom-color: var(--dm-danger);
}

.dm-float-label:focus-within {
  border-bottom-color: var(--dm-brand);
}

.dm-float-input {
  width: 100%;
  padding: 10px 0;
  margin-top: 10px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  color: var(--dm-text);
}

.dm-float-input::placeholder {
  opacity: 0;
}

.dm-float-span {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(20px);
  transition-duration: 200ms;
  color: var(--dm-text-muted);
  font-size: var(--dm-text-base);
  pointer-events: none;
}

.dm-float-label:focus-within > .dm-float-span,
.dm-float-input:not(:placeholder-shown) + .dm-float-span {
  transform: translateY(0);
  font-size: 0.825em;
  color: var(--dm-brand);
}

.dm-float-label:focus-within > .dm-float-input::placeholder {
  opacity: 1;
}

/* ---------- Checkbox / Radio ---------- */

.dm-choice {
  display: inline-flex;
  align-items: center;
  gap: var(--dm-space-2);
  cursor: pointer;
  font-size: var(--dm-text-base);
  color: var(--dm-text);
}

.dm-choice__control {
  width: 16px;
  height: 16px;
  accent-color: var(--dm-brand);
  cursor: pointer;
  margin: 0;
}

.dm-choice__control:disabled {
  cursor: not-allowed;
}

.dm-choice__control:disabled + .dm-choice__label {
  color: var(--dm-text-faint);
}


/* ---------- layout.css ---------- */
/*
 * Contenedor y secciones de página.
 * Origen: .widget-name (título centrado y liviano de los bloques de la home).
 */

.dm-container {
  width: 100%;
  margin: 0 auto;
  padding-left: var(--dm-space-3);
  padding-right: var(--dm-space-3);
}

.dm-container--sm { max-width: 720px; }
.dm-container--md { max-width: 960px; }
.dm-container--lg { max-width: 1280px; }
.dm-container--full { max-width: none; }

.dm-section {
  padding: var(--dm-space-4) 0;
}

.dm-section--surface { background: var(--dm-surface); }
.dm-section--sunken { background: var(--dm-surface-sunken); }

.dm-section__head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 0 var(--dm-space-3);
}

/* Título de sección: centrado, 22px, peso 300. */
.dm-section__title {
  text-align: center;
  font-weight: var(--dm-weight-light);
  font-size: var(--dm-text-xl);
  color: var(--dm-text);
  margin: 0;
}

.dm-section__action {
  position: absolute;
  right: 0;
}


/* ---------- navigation.css ---------- */
/*
 * Header, buscador, menú de categorías, migas, paginado y pie.
 * Origen: .navbar/.header, #search-categoria, .nav-links/.li-item,
 * ul.pagination, .pre-footer y .footer-content.
 */

/* ---------- Header ---------- */

.dm-header {
  background: var(--dm-surface);
  box-shadow: var(--dm-shadow-header);
  width: 100%;
}

.dm-header--sticky {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid #eee;
  box-shadow: 0 0 20px 10px var(--dm-shadow-color);
}

.dm-header__topbar {
  background: var(--dm-surface-sunken);
  font-size: var(--dm-text-sm);
  padding: var(--dm-space-1) var(--dm-space-4);
  color: var(--dm-text);
}

.dm-header__main {
  display: flex;
  align-items: center;
  gap: var(--dm-space-4);
  padding: var(--dm-space-2) var(--dm-space-4);
}

/* El logo del tema mide 240px en desktop. */
.dm-header__logo img {
  width: 240px;
  max-width: 100%;
}

.dm-header__logo {
  flex: 0 0 auto;
}

.dm-header__search {
  flex: 1;
  min-width: 0;
}

.dm-header__actions {
  display: flex;
  align-items: center;
  gap: var(--dm-space-4);
  flex: 0 0 auto;
}

.dm-header__bottombar {
  border-top: 1px solid var(--dm-border);
}

/* ---------- Acciones del header ---------- */

/* Todas las acciones van en 12px y gris #353536. */
.dm-header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--dm-space-2);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--dm-text);
  font-family: var(--dm-font);
  font-size: var(--dm-text-sm);
  text-decoration: none;
}

.dm-header-action:hover {
  color: var(--dm-brand);
}

.dm-header-action__icon {
  position: relative;
  display: inline-flex;
  line-height: 0;
}

.dm-header-action__count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--dm-brand);
  color: var(--dm-text-on-brand);
  border-radius: 2rem;
  font-size: var(--dm-text-xs);
  line-height: 18px;
  text-align: center;
  font-weight: var(--dm-weight-normal);
}

.dm-header-action__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.dm-header-action__sublabel {
  font-size: var(--dm-text-xs);
  color: var(--dm-text-muted);
}

/* ---------- Buscador ---------- */

.dm-search {
  display: flex;
  align-items: center;
  width: 100%;
  background: var(--dm-surface);
  border: 1px solid var(--dm-border-input);
  border-radius: var(--dm-radius-pill);
  overflow: hidden;
  padding-left: var(--dm-space-3);
}

.dm-search__category {
  font-size: var(--dm-text-sm);
  color: var(--dm-text-muted);
  white-space: nowrap;
  padding-right: var(--dm-space-2);
  border-right: 1px solid var(--dm-border);
  margin-right: var(--dm-space-2);
}

.dm-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--dm-font);
  font-size: var(--dm-text-base);
  font-weight: var(--dm-weight-normal);
  color: var(--dm-text);
  padding: 0.6rem 0;
  background: transparent;
}

.dm-search__input::placeholder {
  font-weight: var(--dm-weight-light);
  color: var(--dm-text-faint);
}

.dm-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  align-self: stretch;
  border: none;
  background: var(--dm-brand);
  color: var(--dm-text-on-brand);
  cursor: pointer;
  transition: var(--dm-transition-fast);
}

.dm-search__button:hover {
  background: var(--dm-brand-strong);
}

/* ---------- Menú de categorías ---------- */

.dm-catmenu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.dm-catmenu--horizontal .dm-catmenu__list {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.dm-catmenu--vertical .dm-catmenu__list {
  flex-direction: column;
}

.dm-catmenu__item {
  position: relative;
}

.dm-catmenu__link {
  display: flex;
  align-items: center;
  gap: var(--dm-space-2);
  padding: 0.75rem var(--dm-space-3);
  color: var(--dm-text);
  font-size: var(--dm-text-sm);
  font-weight: var(--dm-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--dm-transition-fast);
}

.dm-catmenu__link:hover {
  color: var(--dm-brand);
}

.dm-catmenu__link.is-active {
  color: var(--dm-brand);
  border-bottom-color: var(--dm-brand);
}

.dm-catmenu--vertical .dm-catmenu__link {
  border-bottom: 1px solid var(--dm-border);
}

.dm-catmenu__icon {
  display: inline-flex;
  line-height: 0;
  font-size: var(--dm-text-md);
}

.dm-catmenu__submenu {
  list-style: none;
  margin: 0;
  padding: var(--dm-space-2) 0;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--dm-surface);
  box-shadow: var(--dm-shadow);
  border-radius: var(--dm-radius-sm);
  z-index: 50;
}

.dm-catmenu__item:hover > .dm-catmenu__submenu {
  display: block;
}

.dm-catmenu__submenu a {
  display: block;
  padding: 0.4rem var(--dm-space-3);
  font-size: var(--dm-text-sm);
  color: var(--dm-text);
  text-decoration: none;
}

.dm-catmenu__submenu a:hover {
  background: var(--dm-brand);
  color: var(--dm-text-on-brand);
}

.dm-catmenu--vertical .dm-catmenu__submenu {
  display: block;
  position: static;
  box-shadow: none;
  padding-left: var(--dm-space-3);
}

/* ---------- Migas de pan ---------- */

.dm-breadcrumb {
  background-color: var(--dm-surface);
  padding: 0;
  font-size: var(--dm-text-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.dm-breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.dm-breadcrumb__link {
  color: var(--dm-text);
  text-decoration: none;
}

.dm-breadcrumb__link:hover {
  color: var(--dm-brand);
}

.dm-breadcrumb__sep {
  margin: 0 var(--dm-space-2);
  color: var(--dm-text-faint);
}

.dm-breadcrumb__current {
  color: var(--dm-text-muted);
  font-weight: var(--dm-weight-semibold);
}

/* ---------- Paginado ---------- */

.dm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--dm-space-2);
}

.dm-pagination__page,
.dm-pagination__nav {
  min-width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--dm-text);
  font-family: var(--dm-font);
  font-size: var(--dm-text-md);
  cursor: pointer;
  border-radius: var(--dm-radius-sm);
  transition: var(--dm-transition-fast);
}

.dm-pagination__page:hover:not(.is-active),
.dm-pagination__nav:hover:not(:disabled) {
  background: var(--dm-surface-sunken);
}

.dm-pagination__page.is-active {
  background: var(--dm-brand);
  color: var(--dm-text-on-brand);
}

.dm-pagination__nav:disabled {
  color: var(--dm-text-faint);
  cursor: not-allowed;
}

.dm-pagination__gap {
  color: var(--dm-text-faint);
}

/* ---------- Pre-footer ---------- */

.dm-prefooter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--dm-space-5);
  background-color: transparent;
  padding: var(--dm-space-6) var(--dm-space-5);
  text-align: center;
}

.dm-prefooter__item {
  flex: 1 1 180px;
  max-width: 260px;
}

/* Los iconos del pre-footer miden 2.5rem. */
.dm-prefooter__icon {
  display: inline-flex;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--dm-brand);
  margin-bottom: var(--dm-space-2);
}

.dm-prefooter__icon img {
  width: 2.5rem;
}

.dm-prefooter__title {
  display: block;
  font-weight: var(--dm-weight-semibold);
  color: var(--dm-text);
  margin-bottom: var(--dm-space-1);
}

.dm-prefooter__desc {
  font-weight: var(--dm-weight-light);
  color: var(--dm-text-muted);
  font-size: var(--dm-text-sm);
  text-align: center;
  margin: 0;
}

/* ---------- Pie ---------- */

.dm-footer {
  background-color: var(--dm-surface-footer);
  padding: var(--dm-space-5) var(--dm-space-6);
  color: var(--dm-surface-sunken);
}

.dm-footer__main {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dm-space-5);
  justify-content: space-between;
}

.dm-footer__brand img {
  width: 180px;
  max-width: 100%;
}

.dm-footer__group {
  min-width: 150px;
}

/* Los títulos de columna van en naranja. */
.dm-footer__title {
  display: block;
  color: var(--dm-brand);
  font-size: var(--dm-text-base);
  font-weight: var(--dm-weight-semibold);
  margin-bottom: var(--dm-space-2);
  padding-bottom: var(--dm-space-1);
  border-top: 2px solid var(--dm-brand);
  padding-top: var(--dm-space-2);
}

.dm-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dm-footer__list li {
  margin-bottom: var(--dm-space-1);
}

.dm-footer__list a {
  color: var(--dm-surface-sunken);
  text-decoration: none;
  background-color: transparent;
  font-size: var(--dm-text-sm);
}

.dm-footer__list a:hover {
  color: var(--dm-brand);
}

.dm-footer__social {
  display: flex;
  gap: var(--dm-space-3);
  justify-content: center;
  padding-top: var(--dm-space-4);
}

.dm-footer__copy {
  text-align: center;
  color: var(--dm-text-inverse-muted);
  font-size: var(--dm-text-sm);
  padding-top: var(--dm-space-3);
  margin-top: var(--dm-space-3);
  border-top: 1px solid #81818180;
}


/* ---------- price.css ---------- */
/*
 * Precio.
 * Origen: .product-list .product-price, su <del>, .product-price-saving
 * y .product-price-regular.
 */

/* En el tema el precio va en 18px y peso 700 (.product-price desktop).
 * flex-wrap evita que la fila se rompa fea cuando la card es angosta. */
.dm-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--dm-space-1) var(--dm-space-2);
  margin: 0;
  color: var(--dm-brand);
  font-weight: var(--dm-weight-bold);
  text-align: center;
}

.dm-price--highlighted {
  background: var(--dm-brand-soft);
  padding: var(--dm-space-1) var(--dm-space-2);
  border-radius: var(--dm-radius-sm);
}

.dm-price--sm { font-size: var(--dm-text-base); }
.dm-price--md { font-size: 18px; }
.dm-price--lg { font-size: 22px; }

.dm-price__value {
  white-space: nowrap;
}

/* El precio viejo va gris y tachado, un escalón más chico. */
.dm-price__old {
  color: var(--dm-shadow-color);
  font-weight: var(--dm-weight-light);
  font-size: 0.85em;
  text-decoration: line-through;
}

/* Badge de ahorro: naranja fuerte, texto blanco, chico. */
.dm-price__saving {
  background-color: var(--dm-warning);
  color: var(--dm-text-on-brand);
  display: inline-block;
  font-size: var(--dm-text-sm);
  font-weight: var(--dm-weight-normal);
  padding: 4px;
  border-radius: 2px;
  vertical-align: middle;
  line-height: 1;
}

.dm-price--call {
  color: var(--dm-text-muted);
  font-weight: var(--dm-weight-normal);
  font-style: italic;
}


/* ---------- product.css ---------- */
/*
 * Card de producto y grilla de catálogo.
 * Origen: .product-list .card / .card-img-top / .card-body / .product-name.
 */

.dm-product-grid {
  display: grid;
  gap: var(--dm-space-3);
}

/* Radio 8px y sombra en reposo; al pasar el mouse la sombra se agranda
 * y se desplaza hacia abajo (.product-list .card). */
.dm-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--dm-surface);
  border: none;
  border-radius: var(--dm-radius-product);
  box-shadow: var(--dm-shadow-card);
  width: 100%;
  height: auto;
  overflow: hidden;
  transition: var(--dm-transition);
}

.dm-product-card:hover {
  box-shadow: var(--dm-shadow-md);
}

.dm-product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.dm-product-card__link:hover {
  text-decoration: none;
}

.dm-product-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--dm-space-3) var(--dm-space-3) 0;
  min-height: 132px;
}

/* La imagen ocupa el 40% del ancho de la card, como en .card-img-top. */
.dm-product-card__image {
  width: 40%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
}

.dm-product-card__image--empty {
  width: 40%;
  max-width: 120px;
  aspect-ratio: 1;
  background: var(--dm-surface-sunken);
  border-radius: var(--dm-radius-sm);
}

.dm-product-card__ribbon {
  position: absolute;
  top: var(--dm-space-2);
  left: var(--dm-space-2);
  background: var(--dm-brand);
  color: var(--dm-text-on-brand);
  font-size: var(--dm-text-xs);
  font-weight: var(--dm-weight-bold);
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.dm-product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--dm-space-2);
  padding: var(--dm-space-3);
  text-align: center;
}

/* Nombre: 14px, peso 600, gris muy oscuro, dos líneas máximo. */
.dm-product-card__name {
  color: var(--dm-text-heading);
  font-weight: var(--dm-weight-semibold);
  font-size: var(--dm-text-base);
  text-align: center;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.dm-product-card__footer {
  padding: 0 var(--dm-space-3) var(--dm-space-3);
}

/* ---------- Sin stock ---------- */

.dm-product-card--out .dm-product-card__image {
  opacity: 0.45;
  filter: grayscale(1);
}

.dm-product-card__out {
  position: absolute;
  bottom: var(--dm-space-2);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dm-text-strong);
  color: var(--dm-text-on-brand);
  font-size: var(--dm-text-xs);
  font-weight: var(--dm-weight-semibold);
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2rem;
  white-space: nowrap;
}

/* ---------- Selector de cantidad ---------- */

.dm-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--dm-border);
  border-radius: var(--dm-radius-sm);
  background: var(--dm-surface);
  overflow: hidden;
}

.dm-qty__button {
  color: var(--dm-text-strong);
  width: 35px;
  height: 30px;
  padding: 3px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  background: var(--dm-surface);
  border: 1px solid transparent;
  text-align: center;
  font-weight: var(--dm-weight-normal);
  transition: var(--dm-transition-fast);
}

.dm-qty__button:hover:not(:disabled) {
  border-color: var(--dm-brand);
  border-radius: var(--dm-radius-sm);
  box-shadow: none;
}

.dm-qty__button:disabled {
  color: var(--dm-text-faint);
  cursor: not-allowed;
}

.dm-qty__field {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  min-width: 35px;
  height: 30px;
  font-size: var(--dm-text-base);
  text-align: center;
  border: none;
  line-height: 30px;
  color: var(--dm-text);
}

.dm-qty__unit {
  font-size: var(--dm-text-xs);
  color: var(--dm-text-muted);
}

/* Variante chica: 25x25, como en mobile. */
.dm-qty--sm .dm-qty__button,
.dm-qty--sm .dm-qty__field {
  width: 25px;
  min-width: 25px;
  height: 25px;
  line-height: 25px;
  padding: 0;
  font-size: var(--dm-text-sm);
}
