:root {
  --ink: var(--zyme-black);
  --muted: var(--zyme-muted);
  --line: var(--zyme-border);
  --paper: var(--zyme-cream);
  --cream: var(--zyme-warm-cream);
  --clay: var(--zyme-bread);
  --clay-dark: var(--zyme-brown);
  --sage: var(--zyme-olive);
  --sage-dark: var(--zyme-olive-dark);
  --amber: var(--zyme-gold);
  --blue: var(--zyme-black);
  --blue-soft: var(--zyme-soft);
  --danger: var(--zyme-burnt-orange);
  --shadow: var(--zyme-shadow-soft);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--zyme-font-body);
}

a {
  color: inherit;
}

.public-shell {
  min-height: 76vh;
  background:
    linear-gradient(
      90deg,
      rgba(var(--public-hero-overlay-rgb, 34, 34, 34), var(--public-hero-overlay-opacity, .72)),
      rgba(var(--public-hero-overlay-rgb, 34, 34, 34), calc(var(--public-hero-overlay-opacity, .72) * .62)),
      rgba(var(--public-hero-overlay-rgb, 34, 34, 34), calc(var(--public-hero-overlay-opacity, .72) * .36))
    ),
    var(--public-hero-image, linear-gradient(var(--cream), var(--cream))) var(--public-hero-position, center 42%) / cover no-repeat,
    var(--public-hero-bg, var(--cream));
}

.public-header,
.public-main,
.public-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.public-footer {
  padding: 22px 0;
  color: var(--zyme-muted);
}

.public-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 0 18px;
  color: var(--zyme-surface-strong);
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: min(var(--public-logo-size-desktop, 360px), 82vw);
  background: rgba(239, 234, 227, .94);
  border: 1px solid rgba(228, 216, 197, .72);
  border-radius: 8px;
  padding: 11px 18px;
  box-shadow: 0 10px 28px rgba(34, 34, 34, .16);
  backdrop-filter: blur(8px);
}

.brand-lockup img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 132px;
  object-fit: contain;
  display: block;
}

.header-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  padding: 10px 13px;
  border: 1px solid rgba(239, 234, 227, .36);
  border-radius: 7px;
  font-weight: 700;
  background: rgba(239, 234, 227, .12);
}

.hero {
  min-height: 340px;
  color: var(--zyme-surface-strong);
  display: grid;
  align-content: end;
  padding: 42px 0 28px;
}

.hero-align-center {
  justify-items: center;
  text-align: center;
}

.hero-align-center h1,
.hero-align-center .hero-copy {
  margin-left: auto;
  margin-right: auto;
}

.hero-align-right {
  justify-items: end;
  text-align: right;
}

.hero-align-right h1,
.hero-align-right .hero-copy {
  margin-left: auto;
}

.hero-mark img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  background: rgba(239, 234, 227, .92);
  border: 1px solid rgba(228, 216, 197, .68);
  border-radius: 8px;
  padding: 9px;
  margin-bottom: 18px;
}

.hero-kicker {
  margin-bottom: 10px !important;
  color: var(--public-hero-kicker-color, var(--zyme-gold)) !important;
  font-size: 13px !important;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  font-family: var(--zyme-font-display);
  font-size: clamp(48px, 8vw, var(--public-hero-title-size-desktop, 82px));
  font-weight: 700;
  line-height: .98;
  margin: 0 0 16px;
  letter-spacing: 0;
  color: var(--public-hero-title-color, var(--zyme-surface-strong));
}

.hero p {
  max-width: 640px;
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--public-hero-body-color, rgba(255, 255, 255, .88));
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
button {
  border: 0;
  border-radius: 7px;
  padding: 12px 15px;
  font-family: var(--zyme-font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.button.primary,
button.primary {
  background: var(--zyme-gold);
  color: var(--zyme-black);
}

.button.primary:hover,
button.primary:hover {
  background: var(--zyme-wheat);
}

.button.secondary,
button.secondary {
  background: var(--zyme-cream);
  color: var(--zyme-black);
}

.button.ghost,
button.ghost {
  background: rgba(239, 234, 227, .16);
  border: 1px solid rgba(239, 234, 227, .42);
  color: var(--zyme-surface-strong);
}

.button.danger,
button.danger {
  background: var(--danger);
  color: var(--zyme-surface-strong);
}

.content-band {
  background: var(--paper);
  border-top: 1px solid var(--zyme-warm-cream);
  padding: 30px 0 52px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 0 0 16px;
}

.section-title h2 {
  margin: 0;
  font-family: var(--zyme-font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}

.catalog-grid-shop {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-nav {
  display: flex;
  gap: 9px;
  margin: 0 0 18px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.category-nav a {
  flex: 0 0 auto;
  border: 1px solid var(--zyme-sand);
  border-radius: 999px;
  background: var(--zyme-surface-strong);
  color: var(--zyme-black);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  background: var(--zyme-gold);
}

.category-stack {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.category-section {
  min-width: 0;
  scroll-margin-top: 18px;
}

.category-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.category-header h3 {
  margin: 0;
  font-family: var(--zyme-font-display);
  font-size: 36px;
  line-height: 1;
}

.category-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.carousel-actions {
  display: flex;
  gap: 7px;
}

.carousel-btn {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--zyme-sand);
  border-radius: 999px;
  background: var(--zyme-surface-strong);
  color: var(--zyme-black);
  font-size: 24px;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--zyme-gold);
}

.category-carousel-shell {
  min-width: 0;
  position: relative;
}

.category-carousel-shell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(239, 234, 227, 0), var(--paper));
}

.category-carousel {
  display: grid;
  grid-auto-columns: minmax(270px, 31%);
  grid-auto-flow: column;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 44px 12px 2px;
  scroll-padding-left: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.category-carousel .shop-card {
  scroll-snap-align: start;
}

.product-card {
  background: var(--zyme-surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--zyme-shadow-flat);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(202, 147, 48, .15), rgba(71, 95, 91, .12)),
    var(--zyme-warm-cream);
}

.product-media img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-media-slide {
  opacity: 1;
}

.product-media-rotator .product-media-slide {
  opacity: 0;
  transition: opacity .7s ease;
}

.product-media-rotator .product-media-slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .product-media-rotator .product-media-slide {
    transition: none;
  }
}

.product-initial {
  display: grid;
  gap: 8px;
  place-items: center;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  color: var(--zyme-black);
  font-family: var(--zyme-font-display);
  font-size: 0;
  font-weight: 700;
  text-align: center;
}

.product-initial::before {
  content: "Zýmē";
  color: var(--zyme-gold);
  /* Fraunces dibuja la "ē" con la macron despegada; usar serif Garamond la compone bien. */
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
}

.product-initial::after {
  content: attr(data-product-name);
  color: var(--zyme-black);
  font-family: var(--zyme-font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  max-width: 72%;
  text-transform: uppercase;
}

.product-body {
  padding: 14px;
  text-align: var(--public-product-text-align, center);
}

.product-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--public-product-title-size-desktop, 28px) * 2.08);
  margin: 0 0 6px;
  color: var(--public-product-title-color, var(--zyme-black));
  font-family: var(--public-product-title-font-family, var(--zyme-font-display));
  font-size: var(--public-product-title-size-desktop, 28px);
  font-weight: var(--public-product-title-weight, 700);
  line-height: 1.03;
  overflow-wrap: anywhere;
}

.product-meta {
  color: var(--public-product-description-color, var(--muted));
  font-size: var(--public-product-description-size, 13px);
  line-height: 1.4;
  min-height: calc(var(--public-product-description-size, 13px) * 2.8);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.price {
  font-weight: 900;
  color: var(--clay-dark);
  font-size: 18px;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.shop-layout > * {
  min-width: 0;
}

.shop-card {
  display: flex;
  flex-direction: column;
}

.shop-card .product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.variant-heading {
  align-self: stretch;
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.variant-list {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--zyme-input-bg);
  padding: 10px;
}

.variant-row strong {
  display: block;
  font-size: 14px;
}

.variant-row span {
  color: var(--muted);
  font-size: 12px;
}

.qty-control {
  display: grid;
  grid-template-columns: 38px 58px 38px;
  gap: 5px;
  align-items: center;
}

.qty-control input {
  min-height: 38px;
  padding: 8px 4px;
  text-align: center;
  font-weight: 900;
}

.qty-btn {
  min-height: 38px;
  width: 38px;
  padding: 0;
  border-radius: 6px;
  background: var(--zyme-cream);
  color: var(--zyme-black);
  font-size: 18px;
}

.qty-btn:hover {
  background: var(--zyme-gold);
}

.customer-panel {
  margin-top: 18px;
}

.order-summary-panel {
  position: static;
}

@media (min-width: 921px) {
  .order-summary-panel {
    position: sticky;
    top: 18px;
  }
}

.summary-mobile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
}

.summary-mobile-head h3,
.summary-mobile-head p {
  margin: 0;
}

.summary-mobile-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.summary-mobile-head strong {
  color: var(--zyme-black);
  font-size: 23px;
  line-height: 1;
  white-space: nowrap;
}

.summary-details {
  margin-top: 14px;
}

.summary-cart {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.summary-cart h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.summary-cart-lines {
  display: grid;
  gap: 8px;
}

.summary-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.summary-cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--zyme-input-bg);
  padding: 10px;
}

.summary-cart-line strong,
.summary-cart-line span {
  display: block;
}

.summary-cart-line strong {
  color: var(--zyme-black);
  font-size: 13px;
  line-height: 1.15;
}

.summary-cart-line span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.summary-cart-line b {
  color: var(--zyme-black);
  font-size: 14px;
  white-space: nowrap;
}

.summary-submit {
  width: 100%;
  margin-top: 14px;
}

.summary-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.mobile-order-bar {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(202, 147, 48, .38);
  border-radius: 8px;
  background: var(--zyme-black);
  color: var(--zyme-surface-strong);
  box-shadow: 0 18px 40px rgba(34, 34, 34, .24);
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
}

.mobile-order-bar span {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.mobile-order-bar button {
  min-height: 48px;
  padding-inline: 13px;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--zyme-olive);
  color: var(--zyme-surface-strong);
  font-size: 12px;
  font-weight: 800;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 34px;
  align-items: start;
}

.panel {
  background: var(--zyme-surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--zyme-shadow-flat);
  padding: 18px;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
}

.panel h2 {
  font-family: var(--zyme-font-display);
  font-size: 34px;
  line-height: 1.05;
}

.panel .button.ghost,
.panel button.ghost,
.topline .button.ghost,
.topline button.ghost,
td .button.ghost,
td button.ghost {
  background: var(--zyme-cream);
  border: 1px solid var(--zyme-sand);
  color: var(--zyme-black);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.field.full {
  grid-column: 1 / -1;
}

.settings-group {
  border: 1px solid var(--zyme-warm-cream);
  border-radius: 8px;
  background: color-mix(in srgb, var(--zyme-cream) 58%, white);
  padding: 16px;
  margin-bottom: 16px;
}

.settings-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.settings-group-head h3,
.settings-group-head p {
  margin: 0;
}

.settings-group-head h3 {
  font-family: var(--zyme-font-display);
  font-size: 30px;
  line-height: 1.05;
}

.settings-group-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.settings-hero-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 18px;
  align-items: start;
}

.settings-preview-pane {
  position: sticky;
  top: 18px;
  border: 1px solid var(--zyme-sand);
  border-radius: 8px;
  background: var(--zyme-surface-strong);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(34, 34, 34, .08);
}

.settings-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.settings-preview-head h4,
.settings-preview-head p {
  margin: 0;
}

.settings-preview-head h4 {
  font-family: var(--zyme-font-display);
  font-size: 27px;
  line-height: 1;
}

.settings-preview-head p,
.preview-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-preview-stack {
  display: grid;
  gap: 12px;
}

.preview-label {
  display: inline-flex;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-preview {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: 8px;
  border: 1px solid var(--zyme-warm-cream);
  background: var(--zyme-warm-cream) center 42% / cover no-repeat;
  color: var(--zyme-surface-strong);
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 18px;
}

.hero-preview-mobile {
  width: min(100%, 310px);
  min-height: 390px;
  margin: 0 auto;
}

.hero-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 34, .72);
  z-index: 0;
}

.hero-preview-logo,
.hero-preview-content {
  position: relative;
  z-index: 1;
}

.hero-preview-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 116px;
  border-radius: 8px;
  background: rgba(239, 234, 227, .94);
  border: 1px solid rgba(228, 216, 197, .72);
  padding: 7px 10px;
  box-shadow: 0 8px 22px rgba(34, 34, 34, .16);
}

.hero-preview-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-preview-content {
  display: grid;
  gap: 6px;
  max-width: 82%;
}

.hero-preview-content p,
.hero-preview-content h2,
.hero-preview-content span {
  margin: 0;
}

.hero-preview-content p {
  color: var(--zyme-gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-preview-content h2 {
  font-family: var(--zyme-font-display);
  line-height: .96;
  letter-spacing: 0;
}

.hero-preview-content span {
  font-size: 12px;
  line-height: 1.35;
}

.hero-preview[data-align="center"] {
  justify-items: center;
  text-align: center;
}

.hero-preview[data-align="center"] .hero-preview-content {
  margin-inline: auto;
}

.hero-preview[data-align="right"] {
  justify-items: end;
  text-align: right;
}

.hero-preview[data-align="right"] .hero-preview-content {
  margin-left: auto;
}

.product-card-preview {
  width: min(100%, 330px);
  margin: 0 auto;
}

.product-card-preview .product-title {
  font-size: var(--public-product-title-size-mobile, 24px);
  line-height: 1.04;
}

.product-card-preview .product-meta {
  min-height: auto;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-help {
  display: grid;
  gap: 3px;
  margin: -1px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.field-help strong {
  color: var(--sage-dark);
  font-size: 13px;
}

.field-help.compact {
  margin: 7px 0 0;
}

.privacy-consent-block {
  border: 1px solid var(--zyme-sand);
  border-radius: 8px;
  background: color-mix(in srgb, var(--zyme-cream) 70%, white);
  padding: 14px;
}

.promo-panel {
  border: 1px solid var(--zyme-sand);
  border-radius: 8px;
  background: var(--zyme-surface-strong);
  padding: 14px;
}

.promo-panel h3 {
  margin: 0 0 6px;
  font-family: var(--zyme-font-display);
  font-size: 28px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.promo-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  align-items: center;
}

.promo-input-row button {
  min-height: 43px;
  color: var(--zyme-black);
  border-color: var(--zyme-sand);
  background: var(--zyme-cream);
}

.promo-messages {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.promo-message {
  border: 1px solid var(--zyme-warm-cream);
  border-radius: 7px;
  background: var(--zyme-cream);
  color: var(--zyme-black);
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.privacy-consent-block p,
.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.privacy-consent-block a,
.privacy-note a {
  color: var(--zyme-black);
  font-weight: 800;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  color: var(--zyme-black);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: none;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--zyme-gold);
}

.legal-panel {
  max-width: 860px;
  margin: 0 auto;
}

.legal-section {
  margin-top: 20px;
}

.legal-section h2 {
  font-size: 30px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--zyme-input-bg);
  color: var(--ink);
  padding: 10px 11px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.button:focus-visible,
.nav-link:focus-visible {
  outline: none;
  box-shadow: var(--zyme-focus);
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.quantity-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.quantity-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: var(--zyme-input-bg);
}

.quantity-row strong {
  display: block;
}

.quantity-row span {
  color: var(--muted);
  font-size: 13px;
}

.manual-order-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.manual-order-card {
  min-height: 100%;
}

.manual-order-card .product-title {
  min-height: auto;
}

.manual-order-details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.bulk-delete-tools {
  display: grid;
  grid-template-columns: minmax(160px, .75fr) minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--zyme-sand);
  border-radius: 8px;
  background: var(--zyme-alert-bg);
  padding: 12px;
  margin-bottom: 12px;
}

.bulk-delete-tools[hidden],
.bulk-select-cell {
  display: none !important;
}

.bulk-delete-panel.is-delete-mode .bulk-select-cell {
  display: table-cell !important;
}

.notice {
  background: var(--zyme-alert-bg);
  border: 1px solid var(--zyme-sand);
  color: var(--zyme-brown);
  border-radius: 7px;
  padding: 12px;
  margin-bottom: 14px;
}

.success-notice {
  background: rgba(114, 111, 75, .13);
  border-color: rgba(114, 111, 75, .45);
  color: var(--zyme-olive);
  font-weight: 700;
}

.danger-notice {
  background: rgba(196, 88, 36, .12);
  border-color: rgba(196, 88, 36, .42);
  color: var(--zyme-burnt-orange);
  font-weight: 700;
}

.admin-help-card {
  display: grid;
  gap: 8px;
  background: var(--zyme-alert-bg);
  border: 1px solid rgba(194, 173, 139, .72);
  border-radius: 8px;
  color: var(--zyme-brown);
  margin: 12px 0 18px;
  padding: 14px;
}

.admin-help-card strong {
  color: var(--zyme-black);
  font-family: var(--zyme-font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-help-card p {
  margin: 0;
}

.notification-error {
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.summary-total-row {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 900;
}

.summary-list li[hidden] {
  display: none !important;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  background: var(--zyme-cream);
  transition: grid-template-columns .18s ease;
}

body.admin-menu-collapsed .admin-shell {
  grid-template-columns: 86px minmax(0, 1fr);
}

.admin-sidebar {
  background: var(--zyme-black);
  color: var(--zyme-surface-strong);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-sidebar-head {
  display: grid;
  gap: 10px;
}

.admin-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.admin-brand-icon {
  width: 54px;
  height: 54px;
  background: var(--zyme-cream);
  border-radius: 8px;
  padding: 6px;
  object-fit: contain;
}

.admin-brand span {
  display: grid;
  gap: 2px;
}

.admin-brand-name {
  width: 96px;
  max-height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .12));
}

.admin-brand strong {
  color: var(--zyme-sand);
  font-family: var(--zyme-font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-sidebar-toggle {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(228, 216, 197, .28);
  background: rgba(239, 234, 227, .08);
  color: var(--zyme-cream);
}

.admin-sidebar-toggle:hover {
  background: rgba(202, 147, 48, .18);
}

.admin-sidebar-toggle-icon {
  font-size: 18px;
  line-height: 1;
}

.admin-sidebar-toggle-text {
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 7px;
}

.admin-nav a {
  color: var(--zyme-cream);
  text-decoration: none;
  padding: 10px 11px;
  border-radius: 6px;
  font-weight: 700;
}

.admin-nav a:hover {
  background: rgba(202, 147, 48, .18);
}

.admin-user {
  margin-top: auto;
  color: var(--zyme-sand);
  font-size: 13px;
  line-height: 1.4;
}

.logout-link {
  color: var(--zyme-surface-strong);
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

body.admin-menu-collapsed .admin-sidebar {
  align-items: center;
  padding-inline: 10px;
}

body.admin-menu-collapsed .admin-sidebar-head {
  width: 100%;
}

body.admin-menu-collapsed .admin-brand {
  justify-content: center;
  padding-bottom: 10px;
}

body.admin-menu-collapsed .admin-brand span,
body.admin-menu-collapsed .admin-nav,
body.admin-menu-collapsed .admin-user,
body.admin-menu-collapsed .admin-sidebar-toggle-text {
  display: none;
}

body.admin-menu-collapsed .admin-brand-icon {
  width: 48px;
  height: 48px;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.topline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.topline h1 {
  margin: 0;
  font-family: var(--zyme-font-display);
  font-size: 44px;
  line-height: 1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric {
  background: var(--zyme-surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  box-shadow: var(--zyme-shadow-flat);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  color: var(--zyme-gold);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr);
  gap: 16px;
  align-items: start;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 9px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--zyme-black);
  background: var(--zyme-cream);
  font-size: 12px;
  text-transform: uppercase;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.status {
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 800;
  font-size: 12px;
  background: var(--zyme-cream);
  color: var(--zyme-black);
  white-space: nowrap;
}

.status.pending,
.status.nuevo,
.status.pendiente_confirmacion {
  background: var(--zyme-alert-bg);
  color: var(--zyme-brown);
}

.status.confirmed,
.status.in_production,
.status.ready,
.status.confirmado,
.status.en_produccion,
.status.listo_para_entregar,
.status.entregado {
  background: var(--zyme-success-bg);
  color: var(--zyme-olive-dark);
}

.status.cancelled,
.status.cancelado,
.status.eliminado {
  background: var(--zyme-danger-bg);
  color: var(--danger);
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.inline-form > * {
  min-width: 150px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(120deg, rgba(34, 34, 34, .88), rgba(136, 85, 47, .72)),
    var(--cream);
  padding: 18px;
}

.login-card {
  width: min(430px, 100%);
  background: var(--zyme-surface);
  border-radius: 8px;
  box-shadow: var(--zyme-shadow-soft);
  padding: 26px;
}

.login-logo-icon {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.login-logo-name {
  width: min(210px, 72%);
  max-height: 86px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
}

.empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 22px;
  text-align: center;
  background: var(--zyme-input-bg);
}

.thumb {
  width: 58px;
  height: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  object-fit: cover;
  background: var(--zyme-warm-cream);
  display: grid;
  place-items: center;
  color: var(--zyme-gold);
  font-weight: 800;
}

.thumb-empty {
  font-size: 0;
}

.thumb-empty::before {
  content: "Zýmē";
  font-family: var(--zyme-font-display);
  font-size: 16px;
}

.catalog-preview {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.product-gallery-admin {
  margin-top: 16px;
}

.product-gallery-admin h3 {
  margin: 0 0 10px;
  font-family: var(--zyme-font-display);
  font-size: 28px;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.product-gallery-grid figure {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--zyme-input-bg);
}

.product-gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.product-gallery-grid figcaption {
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.danger-text {
  color: var(--danger);
}

.modal {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--zyme-sand);
  border-radius: 8px;
  background: var(--zyme-surface-strong);
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(34, 34, 34, .28);
  padding: 20px;
}

.modal::backdrop {
  background: rgba(34, 34, 34, .46);
  backdrop-filter: blur(2px);
}

.modal h3 {
  margin: 0 0 8px;
  font-family: var(--zyme-font-display);
  font-size: 30px;
}

.modal p {
  color: var(--muted);
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.permission-grid {
  display: grid;
  gap: 9px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.permission-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--zyme-input-bg);
  color: var(--ink);
  text-transform: none;
}

.permission-item input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.permission-item strong,
.permission-item small {
  display: block;
}

.permission-item small {
  color: var(--muted);
  font-size: 11px;
}

.permission-on {
  border-color: rgba(114, 111, 75, .42);
  background: rgba(228, 216, 197, .42);
}

.production-filter-panel {
  margin-bottom: 16px;
}

.production-sheet {
  display: grid;
  gap: 16px;
}

.production-sheet-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(239, 234, 227, .96), rgba(255, 250, 243, .98));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--zyme-shadow-flat);
}

.production-kicker {
  color: var(--zyme-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.production-sheet-header h2 {
  margin: 4px 0;
  font-family: var(--zyme-font-display);
  font-size: 42px;
  line-height: 1;
}

.production-sheet-header p {
  margin: 0;
  color: var(--muted);
}

.production-metrics {
  margin-bottom: 0;
}

.production-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
}

.production-table small {
  color: var(--muted);
}

.production-qty {
  color: var(--zyme-gold);
  font-size: 24px;
  font-weight: 900;
}

.production-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.production-block {
  background: var(--zyme-surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--zyme-shadow-flat);
}

.production-block header {
  display: grid;
  gap: 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.production-block header h3 {
  margin: 0;
  background: var(--zyme-black);
  color: var(--zyme-surface-strong);
  font-size: 15px;
  letter-spacing: .02em;
  padding: 10px;
  text-transform: uppercase;
}

.production-block header h3 small {
  display: block;
  margin-top: 4px;
  color: var(--zyme-gold);
  font-family: var(--zyme-font-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.production-block header div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--zyme-cream);
  padding: 8px 10px;
}

.production-block header span {
  color: var(--zyme-olive-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.production-block header strong {
  color: var(--zyme-black);
  font-size: 18px;
}

.production-block table {
  margin: 0;
}

.production-batch-panel {
  margin-top: 16px;
}

.production-batch-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.production-batch-head h2,
.production-batch-head p {
  margin: 0;
}

.production-batch-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.production-batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.production-batch-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--zyme-cream) 58%, white);
  padding: 13px;
}

.production-batch-card h3 {
  margin: 0 0 5px;
  font-family: var(--zyme-font-display);
  font-size: 25px;
  line-height: 1;
}

.production-batch-card p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.production-batch-card ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.production-meta-row {
  background: var(--zyme-alert-bg);
  font-weight: 800;
}

.recipe-editor-table input,
.recipe-editor-table select {
  min-width: 120px;
}

.recipe-editor-table td:first-child input {
  min-width: 190px;
}

@media (max-width: 920px) {
  .topline,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .topline-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .bulk-delete-tools {
    grid-template-columns: 1fr;
  }

  .production-batch-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-header {
    align-items: center;
  }

  .order-layout,
  .shop-layout,
  .admin-grid,
  .settings-hero-editor,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .settings-preview-pane {
    position: static;
  }

  .category-carousel {
    grid-auto-columns: minmax(260px, 45%);
  }

  body.has-mobile-order-bar {
    padding-bottom: 86px;
  }

  .mobile-order-bar.is-visible {
    display: grid;
  }

  .order-summary-panel {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    z-index: auto;
    border-radius: 8px;
    box-shadow: none;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    max-height: 100vh;
    overflow: auto;
    border-bottom: 1px solid rgba(34, 34, 34, .18);
  }

  .admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .admin-brand {
    min-width: 0;
    flex: 1 1 auto;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .admin-brand-icon {
    width: 46px;
    height: 46px;
  }

  .admin-brand-name {
    width: 82px;
  }

  .admin-sidebar-toggle {
    width: auto;
    flex: 0 0 auto;
    padding-inline: 12px;
  }

  body.admin-menu-collapsed .admin-sidebar {
    align-items: stretch;
    padding: 12px;
  }

  body.admin-menu-collapsed .admin-shell {
    grid-template-columns: 1fr;
  }

  body.admin-menu-collapsed .admin-brand {
    justify-content: flex-start;
  }

  body.admin-menu-collapsed .admin-brand span {
    display: grid;
  }

  body.admin-menu-collapsed .admin-nav,
  body.admin-menu-collapsed .admin-user {
    display: none;
  }

  body.admin-menu-collapsed .admin-sidebar-toggle-text {
    display: inline;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .production-sheet-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .production-block-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .public-header,
  .public-main,
  .public-footer {
    width: min(100% - 20px, 1180px);
  }

  .brand-lockup {
    width: min(var(--public-logo-size-mobile, 310px), 92vw);
    padding: 9px 14px;
  }

  .brand-lockup img {
    max-width: 100%;
  }

  .header-nav {
    width: 100%;
  }

  .nav-link {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero {
    min-height: 300px;
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(36px, 13vw, var(--public-hero-title-size-mobile, 64px));
  }

  .hero p {
    font-size: 16px;
  }

  .category-nav {
    margin-left: -2px;
    margin-right: -2px;
  }

  .category-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .category-header h3 {
    font-size: 31px;
  }

  .category-header p {
    font-size: 13px;
  }

  .carousel-actions {
    display: none;
  }

  .category-carousel {
    grid-auto-columns: clamp(238px, 76vw, 300px);
    gap: 12px;
    padding-right: 34px;
  }

  .category-carousel-shell::after {
    width: 30px;
  }

  .category-carousel .shop-card {
    height: 100%;
  }

  .product-body {
    padding: 12px;
  }

  .product-title {
    font-size: var(--public-product-title-size-mobile, 24px);
    line-height: 1.04;
    min-height: calc(var(--public-product-title-size-mobile, 24px) * 2.12);
  }

  .product-meta {
    min-height: 36px;
    max-height: 36px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .variant-heading {
    margin: 10px 0 6px;
    font-size: 11px;
  }

  .variant-list {
    gap: 7px;
  }

  .variant-row {
    gap: 8px;
    padding: 8px;
  }

  .variant-row strong {
    font-size: 13px;
  }

  .variant-row span {
    font-size: 11px;
  }

  .form-grid,
  .promo-grid,
  .promo-input-row,
  .metric-grid,
  .admin-nav {
    grid-template-columns: 1fr;
  }

  .quantity-row {
    grid-template-columns: 1fr;
  }

  .variant-row {
    grid-template-columns: 1fr;
  }

  .qty-control {
    grid-template-columns: 44px minmax(70px, 1fr) 44px;
  }

  .qty-btn {
    width: 44px;
    min-height: 44px;
  }

  .panel {
    padding: 14px;
  }

  .order-summary-panel {
    width: calc(100% + 20px);
    margin-left: -10px;
    border-left: 0;
    border-right: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    display: block;
    margin-top: 14px;
    box-shadow: none;
  }

  .summary-mobile-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .summary-mobile-head h3 {
    font-size: 28px;
    line-height: 1;
  }

  .summary-mobile-head p {
    font-size: 11px;
  }

  .summary-mobile-head strong {
    font-size: 22px;
  }

  .summary-list {
    max-height: none;
    overflow: auto;
  }
}

/* ============================================================
   ADMIN POLISH — densidad, jerarquía, consistencia
   Todo va scopeado bajo .admin-shell / .admin-sidebar para NO
   afectar al sitio público (que también carga app.css).
   ============================================================ */

/* --- Wordmark del sidebar: el PNG es tinta negra; lo volvemos
       crema para que sea legible sobre el fondo oscuro --- */
.admin-sidebar .admin-brand-name {
  filter: brightness(0) invert(1);
  opacity: .9;
}

/* --- Escala tipográfica: jerarquía clara y más sobria.
       Antes: h1 44 / section h2 42 / panel h2 34 (casi sin
       diferencia entre niveles). Ahora hay contraste real. --- */
.admin-shell .topline h1 {
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.admin-shell .section-title h2 {
  font-size: 23px;
  line-height: 1.12;
}
.admin-shell .panel h2 {
  font-size: 19px;
  line-height: 1.2;
}
.admin-shell .topline {
  margin-bottom: 20px;
}

/* --- Sidebar: navegación con estado activo y hover coherentes --- */
.admin-shell .admin-nav a {
  position: relative;
  transition: background .15s ease, color .15s ease;
}
.admin-shell .admin-nav a:hover {
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--zyme-gold) 65%, transparent);
}
.admin-shell .admin-nav a.is-active {
  background: color-mix(in srgb, var(--zyme-gold) 24%, transparent);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--zyme-gold);
}

/* --- Tarjetas métricas: acento superior, menos vacío, hover --- */
.admin-shell .metric {
  position: relative;
  padding: 14px 15px 15px;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
}
.admin-shell .metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zyme-gold), color-mix(in srgb, var(--zyme-gold) 40%, transparent));
}
.admin-shell .metric:hover {
  border-color: color-mix(in srgb, var(--zyme-gold) 45%, var(--line));
  box-shadow: 0 8px 22px rgba(34, 34, 34, .08);
  transform: translateY(-1px);
}
.admin-shell .metric span {
  letter-spacing: .08em;
}
.admin-shell .metric strong {
  margin-top: 6px;
  font-size: 25px;
  font-family: var(--zyme-font-display);
  line-height: 1.05;
  color: var(--zyme-gold-text);
}
.admin-shell .metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 600;
}

/* --- Paneles/tarjetas: borde y sombra más finos y modernos --- */
.admin-shell .panel,
.admin-shell .metric {
  border-color: color-mix(in srgb, var(--zyme-sand) 38%, var(--zyme-warm-cream));
}
.admin-shell .panel {
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(34, 34, 34, .04), 0 10px 26px rgba(34, 34, 34, .045);
}

/* --- Tablas: cabecera más definida y filas con hover legible --- */
.admin-shell thead th {
  letter-spacing: .06em;
  border-bottom: 1px solid color-mix(in srgb, var(--zyme-sand) 55%, var(--line));
}
.admin-shell tbody tr {
  transition: background .12s ease;
}
.admin-shell tbody tr:hover > td {
  background: color-mix(in srgb, var(--zyme-cream) 55%, white);
}

/* --- Botones: foco/acabado consistente y radios alineados --- */
.admin-shell .button,
.admin-shell button {
  border-radius: 8px;
}
.admin-shell .button.primary,
.admin-shell button.primary {
  box-shadow: 0 1px 0 rgba(34, 34, 34, .04);
}

/* Acciones destructivas DENTRO de filas: outline sutil en vez de rojo
   sólido (el rojo sólido se reserva para el modal de confirmación y el
   CTA de eliminar del detalle). Menos ruido visual en listados. */
.admin-shell td .button.danger,
.admin-shell td button.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 42%, transparent);
}
.admin-shell td .button.danger:hover,
.admin-shell td button.danger:hover {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-color: var(--danger);
}

/* --- Pedido manual: tarjetas compactas para captura rápida.
       La imagen cuadrada grande no aporta al operador; la reducimos a una
       franja de acento y dejamos nombre + variantes alineados a la izq. --- */
.admin-shell .manual-order-catalog {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.admin-shell .manual-order-card .product-media {
  aspect-ratio: auto;
  height: 8px;
}
.admin-shell .manual-order-card .product-media img,
.admin-shell .manual-order-card .product-initial {
  display: none;
}
.admin-shell .manual-order-card .product-body {
  padding: 11px 13px 13px;
  text-align: left;
}
.admin-shell .manual-order-card .product-title {
  min-height: 0;
  justify-content: flex-start;
  font-family: var(--zyme-font-display);
  font-size: 18px;
  line-height: 1.12;
}
.admin-shell .manual-order-card .product-meta {
  display: none;
}
.admin-shell .manual-order-card .variant-heading {
  margin: 10px 0 6px;
  text-align: left;
}

/* --- Pedido manual: barra de total en vivo --- */
.admin-shell .manual-order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px dashed color-mix(in srgb, var(--zyme-sand) 70%, var(--zyme-warm-cream));
  border-radius: 10px;
  background: color-mix(in srgb, var(--zyme-cream) 55%, white);
  color: var(--muted);
  font-size: 14px;
  transition: border-color .18s ease, background .18s ease;
}
.admin-shell .manual-order-summary.is-active {
  border-style: solid;
  border-color: color-mix(in srgb, var(--zyme-gold) 45%, transparent);
  background: color-mix(in srgb, var(--zyme-gold) 8%, white);
}
.admin-shell .manual-order-summary strong {
  color: var(--zyme-gold-text);
  font-family: var(--zyme-font-display);
  font-size: 19px;
}

/* --- Checkbox/radio: que NUNCA se estiren al 100% (la base input{width:100%}
       los deformaba; varios templates lo parcheaban con estilos inline). --- */
.admin-shell input[type="checkbox"],
.admin-shell input[type="radio"] {
  width: auto;
  min-height: 0;
  margin: 0 6px 0 0;
  vertical-align: -2px;
  accent-color: var(--zyme-gold);
  cursor: pointer;
}
.admin-shell .checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
