:root {
  --font-title: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", Arial, Helvetica, sans-serif;
  --ink: #191425;
  --ink-soft: #392a35;
  --muted: #8d858a;
  --rose: #bd4f78;
  --rose-strong: #a73768;
  --rose-soft: #fff0f5;
  --guinda: #3b1730;
  --guinda-deep: #1b1026;
  --blush: #fff8fa;
  --cream: #fffdfb;
  --leaf: #bd4f78;
  --mint: #fff0f5;
  --gold: #c99a43;
  --line: #eadde2;
  --paper: #ffffff;
  --shadow: 0 18px 48px rgba(74, 42, 55, .12);
  --shadow-soft: 0 10px 30px rgba(74, 42, 55, .08);
  --radius: 8px;
}
/* Ajuste final del panel de pedidos: tabs lineales e historial propio. */
.admin-body .orders-tabs,
.orders-tabs {
  display: inline-flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  gap: 6px;
}

.admin-body .orders-tabs a,
.orders-tabs a {
  flex: 0 0 auto;
  min-width: 150px;
  white-space: nowrap;
}

/* Final responsive shell overrides */
.admin-body .admin-layout,
.admin-layout {
  display: block;
  min-height: 100vh;
}
.admin-body .admin-sidebar,
.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px clamp(12px, 2.5vw, 24px);
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-strong) 50%, var(--guinda-deep) 100%);
  box-shadow: 0 14px 34px rgba(var(--theme-heading-rgb), 0.16);
}
.admin-body .admin-sidebar .brand-logo,
.admin-sidebar .brand-logo {
  width: clamp(118px, 15vw, 172px);
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.admin-body .admin-sidebar nav,
.admin-sidebar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.admin-body .admin-sidebar nav::-webkit-scrollbar,
.admin-sidebar nav::-webkit-scrollbar {
  display: none;
}
.admin-body .admin-sidebar a,
.admin-sidebar a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-body .admin-sidebar a.active,
.admin-body .admin-sidebar a:hover,
.admin-sidebar a.active,
.admin-sidebar a:hover {
  border-color: rgba(255,255,255,.36);
  background: white;
  color: var(--theme-primary-text);
}
.admin-body .admin-main,
.admin-main {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 30px);
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
  }
  .top-strip {
    font-size: 11px;
    line-height: 1.35;
    padding: 8px 10px;
    text-align: center;
  }
  .header-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    width: 100%;
  }
  .search input {
    min-width: 0;
    width: 100%;
  }
  .icon-link,
  .cart-btn,
  .menu-toggle {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .admin-body .admin-sidebar,
  .admin-sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 10px 9px;
  }
  .admin-body .admin-sidebar .brand-logo,
  .admin-sidebar .brand-logo {
    width: 122px;
    max-height: 40px;
  }
  .admin-body .admin-sidebar nav,
  .admin-sidebar nav {
    width: 100%;
    padding-bottom: 2px;
  }
  .admin-body .admin-sidebar a,
  .admin-sidebar a {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .admin-body .admin-main,
  .admin-main {
    padding: 14px 10px 28px;
  }
  .admin-top {
    grid-template-columns: 1fr;
  }
  .admin-top h1 {
    font-size: clamp(23px, 7vw, 30px);
  }
  .admin-panel,
  .filters,
  .checkout-form {
    padding: 16px;
    border-radius: 12px;
  }
  .category-preview-card {
    padding: 16px;
  }
  .category-preview-card img {
    width: 96px;
  }
  .settings-two-cols {
    grid-template-columns: 1fr;
  }
}

/* Home comercial Encantos: diseno original inspirado en tiendas florales modernas. */
.encantos-home {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  padding-bottom: 48px;
  background: #fffafa;
}

.home-shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px) clamp(16px, 5vw, 76px) clamp(18px, 4vw, 42px);
  background:
    linear-gradient(90deg, rgba(255, 250, 250, .98) 0%, rgba(var(--theme-surface-rgb), 0.9) 100%),
    url("https://images.unsplash.com/photo-1525310072745-f49212b5ac6d?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.home-shop-copy {
  display: grid;
  gap: 16px;
  max-width: 780px;
}

.home-kicker,
.home-section-heading span {
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-shop-copy h1 {
  margin: 0;
  color: #17101f;
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, 86px);
  line-height: .92;
}

.home-shop-copy p {
  max-width: 620px;
  margin: 0;
  color: #625663;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.home-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 640px;
  padding: 9px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: white;
  box-shadow: 0 18px 45px rgba(var(--theme-heading-rgb), 0.1);
}

.home-search-panel input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #17101f;
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
  outline: 0;
}

.home-shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero-product {
  position: relative;
  min-height: 480px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(var(--theme-border-rgb), 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(var(--theme-heading-rgb), 0.18);
}

.home-hero-product img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.home-hero-product:hover img {
  transform: scale(1.04);
}

.home-hero-product > span {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
}

.home-hero-product div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  margin: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 32px rgba(var(--theme-heading-rgb), 0.14);
}

.home-hero-product strong {
  color: #17101f;
  font-size: 20px;
  line-height: 1.15;
}

.home-hero-product b {
  color: var(--theme-primary-text);
  font-size: 18px;
}

.home-category-strip,
.home-featured-products,
.home-tiktok-section {
  padding: 0 clamp(16px, 5vw, 76px);
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-section-heading h2 {
  margin: 3px 0 0;
  color: #17101f;
  font-family: var(--font-serif);
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.05;
}

.home-section-heading a {
  flex: 0 0 auto;
  color: var(--theme-primary-text);
  font-weight: 900;
}

.home-category-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-width: none;
}

.home-category-row::-webkit-scrollbar {
  display: none;
}

.home-category-pill {
  flex: 0 0 138px;
  min-height: 150px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 16px 12px;
  border: 1px solid color-mix(in srgb, var(--cat) 35%, var(--theme-tint));
  border-radius: 16px;
  background: color-mix(in srgb, var(--cat) 12%, #fff);
  text-align: center;
  box-shadow: 0 12px 28px rgba(var(--theme-heading-rgb), 0.08);
}

.home-category-pill img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
}

.home-category-pill strong {
  color: #211729;
  font-size: 13px;
  line-height: 1.2;
}

.home-product-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-occasion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(16px, 5vw, 76px);
}

.home-occasion-grid a {
  min-height: 138px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(20, 9, 31, .08), rgba(20, 9, 31, .62)),
    url("https://images.unsplash.com/photo-1519378058457-4c29a0a2efac?auto=format&fit=crop&w=800&q=80") center/cover;
  color: white;
  box-shadow: 0 16px 34px rgba(var(--theme-heading-rgb), 0.13);
}

.home-occasion-grid span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-occasion-grid strong {
  font-size: 19px;
  line-height: 1.12;
}

.home-assurance-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(16px, 5vw, 76px);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: var(--theme-border);
  box-shadow: 0 18px 45px rgba(var(--theme-heading-rgb), 0.08);
}

.home-assurance-band article {
  padding: 22px;
  background: white;
}

.home-assurance-band strong {
  display: block;
  color: #17101f;
  font-size: 18px;
}

.home-assurance-band p {
  margin: 8px 0 0;
  color: #625663;
  line-height: 1.5;
}

.home-campaign-hero {
  overflow: hidden;
  background: var(--brand-primary);
  color: var(--theme-on-primary);
}

.campaign-search-row {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 9px clamp(18px, 5vw, 76px) 2px;
}

.campaign-logo {
  justify-self: center;
  display: grid;
  justify-items: center;
  color: white;
  text-align: center;
}

.campaign-logo img {
  width: clamp(88px, 9vw, 132px);
  height: clamp(38px, 4.8vw, 56px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.campaign-logo strong {
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0;
}

.campaign-menu {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 38px);
  padding: 7px clamp(18px, 5vw, 76px) 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.campaign-menu::-webkit-scrollbar {
  display: none;
}

.campaign-menu a {
  flex: 0 0 auto;
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}

.campaign-menu-featured {
  position: relative;
  padding-left: 16px;
}

.campaign-menu-featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #58e29b;
}

.campaign-stage {
  position: relative;
  min-height: clamp(360px, 31.25vw, 620px);
  display: grid;
  background: #f7d4c5;
}

.campaign-banner-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.campaign-banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.campaign-banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.campaign-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.campaign-banner-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  color: var(--theme-primary-text);
  text-align: center;
  background: linear-gradient(135deg, #f8d5c7, var(--theme-tint));
}

.campaign-banner-empty strong {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 72px);
}

.campaign-banner-empty span {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 800;
}

.campaign-banner-button {
  position: absolute;
  bottom: clamp(22px, 4vw, 54px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: white;
  color: var(--theme-primary-text);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(var(--theme-secondary-rgb), 0.18);
}

.campaign-banner-button.button-left {
  left: clamp(18px, 5vw, 76px);
}

.campaign-banner-button.button-center {
  left: 50%;
  transform: translateX(-50%);
}

.campaign-banner-button.button-right {
  right: clamp(18px, 5vw, 76px);
}

.campaign-banner-arrow {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--theme-primary-text);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(var(--theme-secondary-rgb), 0.18);
}

.campaign-banner-arrow.prev {
  left: clamp(12px, 3vw, 34px);
}

.campaign-banner-arrow.next {
  right: clamp(12px, 3vw, 34px);
}

.arrows-center .campaign-banner-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.arrows-bottom .campaign-banner-arrow {
  bottom: 24px;
}

.arrows-hidden .campaign-banner-arrow {
  display: none;
}

.campaign-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.campaign-banner-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

.campaign-banner-dots span.active {
  background: var(--brand-primary);
}

.campaign-marquee {
  position: relative;
  overflow: hidden;
  background: var(--theme-surface);
  color: var(--theme-muted);
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.08);
}

.campaign-marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  padding: 14px 0;
  animation: campaign-marquee-slide 28s linear infinite;
  will-change: transform;
}

.campaign-marquee span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--theme-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.campaign-marquee i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--theme-primary-text);
  font-style: normal;
  font-size: 17px;
  line-height: 1;
}

@keyframes campaign-marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .home-shop-hero,
  .home-product-showcase,
  .home-occasion-grid,
  .home-assurance-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shop-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .home-shop-hero {
    grid-template-columns: 1fr;
    padding: 24px 14px 18px;
  }

  .home-search-panel {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .home-search-panel input {
    min-height: 44px;
  }

  .home-hero-product {
    min-height: 360px;
  }

  .home-category-strip,
  .home-featured-products,
  .home-tiktok-section,
  .home-occasion-grid {
    padding: 0 14px;
  }

  .home-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .home-category-pill {
    flex-basis: 118px;
    min-height: 130px;
  }

  .home-category-pill img {
    width: 70px;
    height: 70px;
  }

  .home-product-showcase,
  .home-occasion-grid,
  .home-assurance-band {
    grid-template-columns: 1fr;
  }

  .home-assurance-band {
    margin: 0 14px;
  }

  .campaign-search-row {
    justify-content: center;
    padding: 8px 14px 2px;
  }

  .campaign-logo {
    justify-self: center;
  }

  .campaign-logo img {
    width: 96px;
    height: 42px;
  }

  .campaign-menu {
    justify-content: flex-start;
    gap: 18px;
    padding: 7px 14px 10px;
  }

  .campaign-menu a {
    font-size: 12px;
  }

  .campaign-stage {
    min-height: clamp(420px, 110vw, 620px);
  }

  .campaign-banner-slide img {
    object-position: center;
  }

  .campaign-banner-arrow {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .campaign-banner-button {
    left: 50%;
    right: auto;
    bottom: 18px;
    min-height: 42px;
    padding: 10px 18px;
    transform: translateX(-50%);
    font-size: 11px;
  }

  .campaign-marquee span {
    gap: 8px;
    font-size: 12px;
  }

  .campaign-marquee-track {
    gap: 24px;
    padding: 12px 0;
    animation-duration: 22s;
  }
}

.admin-body .delivery-board-head,
.admin-body .delivery-board-row,
.delivery-board-head,
.delivery-board-row {
  grid-template-columns: 112px 150px 130px minmax(160px, .8fr) 150px minmax(260px, 1.25fr);
  min-width: 1020px;
}
.admin-body .delivery-board-group summary,
.delivery-board-group summary {
  min-width: 1020px;
}
.phone-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.phone-order-button::before {
  content: "☎";
  margin-right: 6px;
  font-size: 11px;
}
.phone-order-button:hover {
  transform: translateY(-1px);
  background: var(--rose);
  color: white;
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.18);
}
.order-info-modal {
  position: fixed;
  inset: 0;
  z-index: 128;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(33, 24, 34, .54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.order-info-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.order-info-card {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: var(--theme-surface);
  box-shadow: 0 24px 60px rgba(var(--theme-heading-rgb), 0.24);
}
.order-info-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--theme-tint);
  background: linear-gradient(135deg, var(--theme-surface), #fff);
}
.order-info-card header span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.order-info-card h2 {
  margin: 3px 0 0;
  color: var(--theme-secondary-text);
  font-size: 24px;
}
.order-info-card header button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--theme-tint);
  color: var(--theme-muted);
  font-size: 26px;
  cursor: pointer;
}
.order-info-card pre {
  max-height: min(58vh, 430px);
  overflow: auto;
  margin: 0;
  padding: 20px;
  border: 0;
  background: white;
  color: var(--theme-muted);
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.order-info-card > .button {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
}
.order-info-card > .button.disabled {
  opacity: .55;
  pointer-events: none;
}

@media (max-width: 760px) {
  .admin-body .delivery-board-head,
  .delivery-board-head {
    display: none;
  }
  .admin-body .delivery-board-row,
  .delivery-board-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-body .delivery-board-row > [data-mobile-label],
  .delivery-board-row > [data-mobile-label] {
    display: grid;
  }
  .admin-body .delivery-board-row > [data-mobile-label="Direccion"],
  .delivery-board-row > [data-mobile-label="Direccion"] {
    grid-column: 1 / -1;
  }
}

.tiktok-section {
  padding: 44px clamp(18px, 5vw, 76px) 56px;
  background: linear-gradient(180deg, #fff, var(--theme-surface));
}
.tiktok-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.tiktok-video-card {
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--theme-tint);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(var(--theme-muted-rgb), 0.08);
}
.tiktok-video-card .tiktok-embed,
.tiktok-admin-video .tiktok-embed,
.tiktok-live-preview .tiktok-embed {
  width: 100% !important;
  max-width: 325px !important;
  min-width: 240px !important;
  margin: 0 auto !important;
}
.tiktok-video-card iframe,
.tiktok-admin-video iframe,
.tiktok-live-preview iframe {
  width: 100% !important;
  max-width: 325px !important;
  min-height: 520px !important;
  border-radius: 14px;
}
.tiktok-admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.tiktok-form textarea {
  min-height: 170px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.45;
}
.tiktok-live-preview {
  display: grid;
  place-items: center;
  min-height: 390px;
  padding: 14px;
  border: 1px dashed var(--theme-border);
  border-radius: 16px;
  background: var(--theme-surface);
  color: var(--theme-muted);
  text-align: center;
  overflow: hidden;
}
.tiktok-list-panel {
  min-width: 0;
}
.tiktok-admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tiktok-admin-card {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--theme-tint);
  border-radius: 16px;
  background: var(--theme-surface);
}
.tiktok-admin-video {
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.tiktok-admin-video iframe {
  min-height: 420px !important;
}
.tiktok-admin-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
  align-self: start;
}
.tiktok-admin-info h3 {
  margin: 0;
  color: var(--theme-secondary-text);
  font-size: 20px;
}
.tiktok-admin-info small {
  color: #8c7c84;
}
.tiktok-admin-info a {
  color: var(--theme-primary-text);
  font-weight: 900;
}
.tiktok-admin-info .table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 1180px) {
  .tiktok-video-grid,
  .tiktok-admin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tiktok-admin-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .tiktok-admin-grid,
  .tiktok-video-grid,
  .tiktok-admin-list {
    grid-template-columns: 1fr;
  }
  .tiktok-section {
    padding: 34px 14px 44px;
  }
  .tiktok-video-card {
    min-height: 520px;
    padding: 10px;
  }
  .tiktok-admin-video,
  .tiktok-live-preview {
    min-height: 360px;
  }
}

@media (max-width: 420px) {
  .tiktok-video-card .tiktok-embed,
  .tiktok-admin-video .tiktok-embed,
  .tiktok-live-preview .tiktok-embed {
    min-width: 220px !important;
  }
  .tiktok-video-card iframe,
  .tiktok-admin-video iframe,
  .tiktok-live-preview iframe {
    min-height: 480px !important;
  }
}

@media (max-width: 760px) {
  .settings-two-cols {
    grid-template-columns: 1fr;
  }
}

.delivery-board-row .delivery-products,
.admin-body .delivery-board-row .delivery-products {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.delivery-board-row .delivery-products::-webkit-scrollbar,
.admin-body .delivery-board-row .delivery-products::-webkit-scrollbar {
  display: none;
}
.delivery-board-row .delivery-product-thumb,
.admin-body .delivery-board-row .delivery-product-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
}

@media (max-width: 760px) {
  .delivery-board-row .delivery-products,
  .admin-body .delivery-board-row .delivery-products {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 28px 10px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .delivery-board-row .delivery-products::-webkit-scrollbar,
  .admin-body .delivery-board-row .delivery-products::-webkit-scrollbar {
    display: none;
  }
  .delivery-board-row .delivery-products::before,
  .admin-body .delivery-board-row .delivery-products::before {
    position: absolute;
    top: 9px;
    left: 10px;
    flex: none;
  }
  .delivery-product-thumb,
  .admin-body .delivery-product-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .orders-screen {
    overflow-x: hidden;
  }
  .orders-toolbar {
    display: grid;
    gap: 12px;
  }
  .date-pills,
  .orders-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .date-pills::-webkit-scrollbar,
  .orders-actions::-webkit-scrollbar {
    display: none;
  }
  .orders-tabs {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .orders-tabs a {
    min-width: 0;
  }
  .production-group {
    overflow: visible;
    border-radius: 12px;
  }
  .production-order-row,
  .admin-body .production-order-row {
    width: auto;
    min-width: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 10px;
    padding: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(var(--theme-heading-rgb), 0.08);
  }
  .production-order-id,
  .admin-body .production-order-id {
    width: 58px;
    min-width: 58px;
    grid-row: 1 / span 2;
    padding: 8px 6px;
    text-align: center;
  }
  .production-order-client,
  .admin-body .production-order-client {
    min-width: 0;
    align-self: center;
  }
  .production-order-client strong,
  .production-order-client span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .production-order-products,
  .admin-body .production-order-products,
  .production-card-message,
  .admin-body .production-card-message,
  .production-order-meta,
  .admin-body .production-order-meta {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .production-item-chip,
  .admin-body .production-item-chip {
    max-width: none;
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 8px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
  }
  .production-item-chip .production-thumb,
  .admin-body .production-item-chip .production-thumb {
    width: 44px;
    height: 44px;
  }
  .production-card-message,
  .admin-body .production-card-message {
    padding: 10px 11px;
  }
  .production-card-message p,
  .admin-body .production-card-message p {
    -webkit-line-clamp: 5;
    font-size: 11px;
    line-height: 1.45;
  }
  .production-order-meta,
  .admin-body .production-order-meta {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 8px;
  }
  .production-order-meta .route-status,
  .admin-body .production-order-meta .route-status {
    width: max-content;
    max-width: 100%;
  }
  .production-send-form button,
  .admin-body .production-send-form button {
    width: 100%;
    justify-content: center;
  }
  .product-detail-modal {
    padding: 12px;
  }
  .product-detail-modal-card h2 {
    font-size: 20px;
  }
  .product-detail-modal-body {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .product-detail-modal-body img {
    width: min(190px, 100%);
    justify-self: center;
  }
}

@media (max-width: 390px) {
  .production-order-row,
  .admin-body .production-order-row {
    grid-template-columns: 54px minmax(0, 1fr);
    margin: 8px;
    padding: 10px;
  }
  .production-order-id,
  .admin-body .production-order-id {
    width: 50px;
    min-width: 50px;
  }
  .production-order-id strong,
  .admin-body .production-order-id strong {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .delivery-board {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .delivery-board-head,
  .admin-body .delivery-board-head {
    display: none;
  }
  .delivery-board-group {
    overflow: visible;
    margin-bottom: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 26px rgba(var(--theme-heading-rgb), 0.06);
  }
  .delivery-board-group summary,
  .admin-body .delivery-board-group summary {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px 14px 0 0;
  }
  .delivery-board-row,
  .admin-body .delivery-board-row {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--theme-tint);
    background: #fff;
    font-size: 12px;
  }
  .delivery-board-row > div,
  .admin-body .delivery-board-row > div {
    min-width: 0;
  }
  .delivery-select-cell {
    display: none;
  }
  .delivery-board-row > [data-mobile-label] {
    display: grid;
    gap: 5px;
    align-content: start;
    padding: 9px 10px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
    word-break: break-word;
  }
  .delivery-board-row .delivery-action-cell,
  .admin-body .delivery-board-row .delivery-action-cell {
    grid-column: 1 / -1;
  }
  .delivery-delivered-form button,
  .admin-body .delivery-delivered-form button {
    width: 100%;
    min-height: 42px;
  }
  .delivery-board-row > [data-mobile-label]::before {
    content: attr(data-mobile-label);
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .delivery-board-row .order-number strong {
    font-size: 16px;
  }
  .delivery-board-row .delivery-products,
  .admin-body .delivery-board-row .delivery-products {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 28px 10px 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .delivery-board-row .delivery-products::-webkit-scrollbar,
  .admin-body .delivery-board-row .delivery-products::-webkit-scrollbar {
    display: none;
  }
  .delivery-board-row .delivery-products::before {
    content: "Productos";
    position: absolute;
    top: 9px;
    left: 10px;
    flex: none;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .delivery-product-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    scroll-snap-align: start;
  }
  .delivery-board-row .note-cell,
  .admin-body .delivery-board-row .note-cell {
    display: none;
  }
}

@media (max-width: 390px) {
  .delivery-board-row,
  .admin-body .delivery-board-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .orders-screen {
    overflow-x: hidden;
  }
  .orders-toolbar {
    display: grid;
    gap: 12px;
  }
  .date-pills,
  .orders-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .date-pills::-webkit-scrollbar,
  .orders-actions::-webkit-scrollbar {
    display: none;
  }
  .orders-tabs {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .orders-tabs a {
    min-width: 0;
  }
  .production-group {
    overflow: visible;
    border-radius: 12px;
  }
  .production-group summary {
    position: sticky;
    top: 104px;
    z-index: 3;
    min-height: 40px;
    padding: 10px 12px;
    background: var(--theme-surface);
  }
  .production-order-row,
  .admin-body .production-order-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 10px;
    padding: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(var(--theme-heading-rgb), 0.08);
  }
  .production-order-id,
  .admin-body .production-order-id {
    width: 58px;
    min-width: 58px;
    grid-row: 1 / span 2;
    padding: 8px 6px;
    text-align: center;
  }
  .production-order-client,
  .admin-body .production-order-client {
    min-width: 0;
    align-self: center;
  }
  .production-order-client strong,
  .production-order-client span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .production-order-products,
  .admin-body .production-order-products,
  .production-card-message,
  .admin-body .production-card-message,
  .production-order-meta,
  .admin-body .production-order-meta {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .production-order-products,
  .admin-body .production-order-products {
    gap: 7px;
  }
  .production-item-chip,
  .admin-body .production-item-chip {
    max-width: none;
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 8px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
  }
  .production-item-chip .production-thumb,
  .admin-body .production-item-chip .production-thumb {
    width: 44px;
    height: 44px;
  }
  .production-card-message,
  .admin-body .production-card-message {
    padding: 10px 11px;
    text-align: left;
  }
  .production-card-message p,
  .admin-body .production-card-message p {
    -webkit-line-clamp: 5;
    font-size: 11px;
    line-height: 1.45;
  }
  .production-order-meta,
  .admin-body .production-order-meta {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 8px;
  }
  .production-order-meta .route-status,
  .admin-body .production-order-meta .route-status {
    width: max-content;
    max-width: 100%;
  }
  .production-send-form button,
  .admin-body .production-send-form button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .production-order-row,
  .admin-body .production-order-row {
    grid-template-columns: 54px minmax(0, 1fr);
    margin: 8px;
    padding: 10px;
  }
  .production-order-id,
  .admin-body .production-order-id {
    width: 50px;
    min-width: 50px;
  }
  .production-order-id strong,
  .admin-body .production-order-id strong {
    font-size: 14px;
  }
}

/* Admin navigation refresh */
.admin-body .admin-layout,
.admin-layout {
  display: block;
  min-height: 100vh;
}
.admin-body .admin-sidebar,
.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px clamp(12px, 2.5vw, 24px);
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  background:
    linear-gradient(135deg, var(--rose) 0%, var(--rose-strong) 50%, var(--guinda-deep) 100%);
  box-shadow: 0 14px 34px rgba(var(--theme-heading-rgb), 0.16);
}
.admin-body .admin-sidebar .brand,
.admin-sidebar .brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.admin-body .admin-sidebar .brand-logo,
.admin-sidebar .brand-logo {
  width: clamp(118px, 15vw, 172px);
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.admin-body .admin-sidebar nav,
.admin-sidebar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.admin-body .admin-sidebar nav::-webkit-scrollbar,
.admin-sidebar nav::-webkit-scrollbar {
  display: none;
}
.admin-body .admin-sidebar a,
.admin-sidebar a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-body .admin-sidebar a.active,
.admin-body .admin-sidebar a:hover,
.admin-sidebar a.active,
.admin-sidebar a:hover {
  border-color: rgba(255,255,255,.36);
  background: white;
  color: var(--theme-primary-text);
}
.admin-body .admin-main,
.admin-main {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 30px);
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
  }
  .top-strip {
    font-size: 11px;
    line-height: 1.35;
    padding: 8px 10px;
    text-align: center;
  }
  .header-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    width: 100%;
  }
  .search input {
    min-width: 0;
    width: 100%;
  }
  .icon-link,
  .cart-btn,
  .menu-toggle {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .admin-body .admin-sidebar,
  .admin-sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 10px 9px;
  }
  .admin-body .admin-sidebar .brand-logo,
  .admin-sidebar .brand-logo {
    width: 122px;
    max-height: 40px;
  }
  .admin-body .admin-sidebar nav,
  .admin-sidebar nav {
    width: 100%;
    padding-bottom: 2px;
  }
  .admin-body .admin-sidebar a,
  .admin-sidebar a {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .admin-body .admin-main,
  .admin-main {
    padding: 14px 10px 28px;
  }
  .admin-top {
    grid-template-columns: 1fr;
  }
  .admin-top h1 {
    font-size: clamp(23px, 7vw, 30px);
  }
  .admin-panel,
  .filters,
  .checkout-form {
    padding: 16px;
    border-radius: 12px;
  }
  .category-preview-card {
    padding: 16px;
  }
  .category-preview-card img {
    width: 96px;
  }
}

/* Final override: celebration product browser */
.celebration-showcase {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 30px clamp(16px, 5vw, 76px) 34px;
  background: var(--theme-surface);
}

.celebration-heading {
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
}

.celebration-heading h2 {
  margin: 0;
  color: #17315a;
  font-family: var(--font-body);
  font-size: clamp(25px, 2vw, 36px);
  font-weight: 500;
}

.celebration-heading h2 strong {
  font-weight: 900;
}

.celebration-heading p {
  margin: 0;
  color: var(--theme-muted);
  font-size: clamp(13px, 1vw, 16px);
}

.celebration-group-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

.celebration-group-tabs::-webkit-scrollbar {
  display: none;
}

.celebration-group-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 17px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: white;
  color: var(--theme-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.celebration-group-tabs button.active {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--theme-on-primary);
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.18);
}

.celebration-group-panel,
.celebration-products-panel {
  display: none;
}

.celebration-group-panel.active {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.celebration-products-panel.active {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.celebration-track {
  justify-content: flex-start;
  gap: clamp(18px, 2.4vw, 34px);
  padding: 4px 2px 0;
}

.celebration-item {
  flex: 0 0 clamp(90px, 8vw, 118px);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.celebration-section-label {
  align-self: center;
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: white;
  color: var(--theme-primary-text);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.celebration-item span {
  width: clamp(74px, 6vw, 94px);
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 12px 24px rgba(var(--theme-heading-rgb), 0.1);
}

.celebration-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.celebration-item strong {
  max-width: 118px;
  color: var(--theme-muted);
  font-size: 12px;
  font-weight: 600;
}

.celebration-item.active span,
.celebration-item:hover span {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.celebration-item.active strong,
.celebration-item:hover strong {
  color: var(--theme-primary-text);
  font-weight: 900;
}

.celebration-arrow {
  color: var(--theme-accent-text);
  font-size: 34px;
}

.celebration-products-wrap {
  display: grid;
  width: 100%;
}

.celebration-products-grid {
  width: min(100%, 1200px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.celebration-product-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--theme-tint);
  box-shadow: 0 14px 30px rgba(var(--theme-heading-rgb), 0.12);
}

.celebration-product-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 54%;
  background: linear-gradient(180deg, rgba(27, 16, 38, 0) 0%, rgba(27, 16, 38, .68) 100%);
  pointer-events: none;
}

.celebration-product-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  transition: transform .22s ease;
}

.celebration-product-card:hover img {
  transform: scale(1.04);
}

.celebration-product-card > span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  gap: 3px;
  color: white;
}

.celebration-product-card small {
  display: -webkit-box;
  overflow: hidden;
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.celebration-product-card strong {
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.celebration-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 26px;
  border-radius: 999px;
  background: #2f4778;
  color: white;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(47, 71, 120, .2);
}

@media (max-width: 1100px) {
  .celebration-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .celebration-showcase {
    padding: 24px 10px 28px;
  }

  .celebration-heading h2 {
    font-size: 24px;
  }

  .celebration-heading p {
    max-width: 310px;
    font-size: 12px;
  }

  .celebration-group-tabs {
    justify-content: flex-start;
  }

  .celebration-group-panel.active {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 5px;
  }

  .celebration-track {
    gap: 14px;
  }

  .celebration-item {
    flex-basis: 78px;
  }

  .celebration-item span {
    width: 64px;
    border-width: 2px;
  }

  .celebration-item strong {
    max-width: 78px;
    font-size: 10px;
  }

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

  .celebration-product-card,
  .celebration-product-card img {
    min-height: 186px;
  }

  .celebration-more {
    width: min(100%, 280px);
  }
}

/* Final override: celebraciones circulares y navbars */
.campaign-search-row {
  min-height: 72px;
  padding: 8px clamp(16px, 5vw, 72px) 0;
}

.campaign-logo img {
  width: clamp(118px, 9vw, 154px);
  height: clamp(42px, 4vw, 58px);
}

.campaign-menu {
  min-height: 43px;
  gap: clamp(18px, 2.2vw, 34px);
  padding: 6px clamp(16px, 5vw, 72px) 12px;
  background: var(--brand-primary);
}

.campaign-menu a {
  color: rgba(255, 255, 255, .96);
  font-size: clamp(12px, .82vw, 14px);
  font-weight: 800;
  letter-spacing: 0;
}

.campaign-menu a:hover {
  color: #ffe070;
}

.top-strip {
  background: var(--guinda-deep);
  color: var(--theme-on-secondary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 75;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: var(--brand-primary);
  box-shadow: 0 10px 28px rgba(var(--theme-heading-rgb), 0.12);
}

.site-header .brand-logo {
  filter: brightness(0) invert(1);
}

.site-header .main-nav a {
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header .main-nav a:hover {
  color: #ffe070;
}

.site-header .search input,
.site-header .icon-link,
.site-header .cart-btn,
.site-header .menu-toggle {
  border-color: rgba(255, 255, 255, .4);
  background: white;
  color: var(--theme-secondary-text);
}

.celebration-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 7vw, 150px) 30px;
  background: var(--theme-surface);
}

.celebration-heading {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.celebration-heading h2 {
  margin: 0;
  color: #17315a;
  font-family: var(--font-body);
  font-size: clamp(25px, 2vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}

.celebration-heading h2 strong {
  font-weight: 900;
}

.celebration-heading p {
  margin: 0;
  color: var(--theme-muted);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
}

.celebration-track {
  justify-content: flex-start;
  gap: clamp(18px, 2.6vw, 36px);
  padding: 8px 2px 0;
}

.celebration-item {
  flex: 0 0 clamp(92px, 8.4vw, 124px);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.celebration-item span {
  width: clamp(76px, 6.2vw, 98px);
  border: 3px solid rgba(255, 255, 255, .86);
  box-shadow: 0 12px 24px rgba(var(--theme-heading-rgb), 0.1);
}

.celebration-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.celebration-item strong {
  max-width: 124px;
  color: var(--theme-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.celebration-item:hover strong,
.celebration-item:focus-visible strong {
  color: var(--theme-primary-text);
  font-weight: 800;
}

.celebration-arrow {
  align-self: end;
  margin-bottom: 34px;
  color: var(--theme-accent-text);
  font-size: 38px;
}

.celebration-arrow:hover {
  background: white;
  color: var(--theme-primary-text);
}

.admin-body .admin-sidebar,
.admin-sidebar {
  align-items: start;
  gap: 16px;
  background: var(--brand-primary);
  box-shadow: 0 14px 30px rgba(var(--theme-heading-rgb), 0.14);
}

.admin-body .admin-sidebar nav,
.admin-sidebar nav {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  max-height: 132px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 4px;
  scrollbar-color: rgba(255, 255, 255, .75) transparent;
  scrollbar-width: thin;
}

.admin-body .admin-sidebar nav::-webkit-scrollbar,
.admin-sidebar nav::-webkit-scrollbar {
  display: block;
  width: 6px;
}

.admin-body .admin-sidebar nav::-webkit-scrollbar-thumb,
.admin-sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
}

.admin-body .admin-sidebar a,
.admin-sidebar a {
  min-height: 34px;
  padding: 8px 12px;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .celebration-showcase {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    padding: 24px 12px 26px;
  }

  .celebration-track {
    scroll-padding-inline: 10px;
  }
}

@media (max-width: 760px) {
  .campaign-search-row {
    min-height: 60px;
  }

  .campaign-logo img {
    width: 118px;
    height: 44px;
  }

  .campaign-menu {
    justify-content: flex-start;
    min-height: 40px;
    gap: 16px;
    padding: 5px 12px 10px;
  }

  .campaign-menu a {
    font-size: 11px;
  }

  .site-header {
    align-items: center;
    background: var(--brand-primary);
  }

  .site-header .main-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .celebration-showcase {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    padding: 22px 8px 24px;
  }

  .celebration-heading h2 {
    font-size: 24px;
  }

  .celebration-heading p {
    max-width: 300px;
    font-size: 12px;
  }

  .celebration-track {
    gap: 16px;
  }

  .celebration-item {
    flex-basis: 84px;
  }

  .celebration-item span {
    width: 68px;
    border-width: 2px;
  }

  .celebration-item strong {
    max-width: 84px;
    font-size: 11px;
  }

  .celebration-arrow {
    width: 28px;
    height: 28px;
    margin-bottom: 30px;
    font-size: 30px;
  }

  .admin-body .admin-sidebar,
  .admin-sidebar {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 9px 10px;
  }

  .admin-body .admin-sidebar .brand,
  .admin-sidebar .brand {
    justify-self: center;
  }

  .admin-body .admin-sidebar nav,
  .admin-sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-height: 212px;
    gap: 6px;
    overflow-y: auto;
  }

  .admin-body .admin-sidebar a,
  .admin-sidebar a {
    width: 100%;
    min-height: 34px;
    padding: 8px 6px;
    font-size: 10px;
    text-align: center;
  }
}

/* Final home celebration row and navbar polish */
.home-campaign-hero {
  background: var(--brand-primary);
}

.campaign-search-row {
  min-height: 72px;
  padding: 8px clamp(16px, 5vw, 72px) 0;
}

.campaign-logo img {
  width: clamp(118px, 9vw, 154px);
  height: clamp(42px, 4vw, 58px);
}

.campaign-menu {
  min-height: 43px;
  gap: clamp(18px, 2.2vw, 34px);
  padding: 6px clamp(16px, 5vw, 72px) 12px;
  background: var(--brand-primary);
}

.campaign-menu a {
  color: rgba(255, 255, 255, .96);
  font-size: clamp(12px, .82vw, 14px);
  font-weight: 800;
  letter-spacing: 0;
}

.campaign-menu a:hover {
  color: #ffe070;
}

.top-strip {
  background: var(--guinda-deep);
  color: var(--theme-on-secondary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 75;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: var(--brand-primary);
  box-shadow: 0 10px 28px rgba(var(--theme-heading-rgb), 0.12);
}

.site-header .brand-logo {
  filter: brightness(0) invert(1);
}

.site-header .main-nav a {
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header .main-nav a:hover {
  color: #ffe070;
}

.site-header .search input,
.site-header .icon-link,
.site-header .cart-btn,
.site-header .menu-toggle {
  border-color: rgba(255, 255, 255, .4);
  background: white;
  color: var(--theme-secondary-text);
}

.celebration-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 7vw, 150px) 30px;
  background: var(--theme-surface);
}

.celebration-heading {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.celebration-heading h2 {
  margin: 0;
  color: #17315a;
  font-family: var(--font-body);
  font-size: clamp(25px, 2vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}

.celebration-heading h2 strong {
  font-weight: 900;
}

.celebration-heading p {
  margin: 0;
  color: var(--theme-muted);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
}

.celebration-track {
  justify-content: flex-start;
  gap: clamp(18px, 2.6vw, 36px);
  padding: 8px 2px 0;
}

.celebration-item {
  flex: 0 0 clamp(92px, 8.4vw, 124px);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.celebration-item span {
  width: clamp(76px, 6.2vw, 98px);
  border: 3px solid rgba(255, 255, 255, .86);
  box-shadow: 0 12px 24px rgba(var(--theme-heading-rgb), 0.1);
}

.celebration-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.celebration-item strong {
  max-width: 124px;
  color: var(--theme-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.celebration-item:hover strong,
.celebration-item:focus-visible strong {
  color: var(--theme-primary-text);
  font-weight: 800;
}

.celebration-arrow {
  align-self: end;
  margin-bottom: 34px;
  color: var(--theme-accent-text);
  font-size: 38px;
}

.celebration-arrow:hover {
  background: white;
  color: var(--theme-primary-text);
}

.admin-body .admin-sidebar,
.admin-sidebar {
  align-items: start;
  gap: 16px;
  background: var(--brand-primary);
  box-shadow: 0 14px 30px rgba(var(--theme-heading-rgb), 0.14);
}

.admin-body .admin-sidebar nav,
.admin-sidebar nav {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  max-height: 132px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 4px;
  scrollbar-color: rgba(255, 255, 255, .75) transparent;
  scrollbar-width: thin;
}

.admin-body .admin-sidebar nav::-webkit-scrollbar,
.admin-sidebar nav::-webkit-scrollbar {
  display: block;
  width: 6px;
}

.admin-body .admin-sidebar nav::-webkit-scrollbar-thumb,
.admin-sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
}

.admin-body .admin-sidebar a,
.admin-sidebar a {
  min-height: 34px;
  padding: 8px 12px;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  font-size: 11px;
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .celebration-showcase {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    padding: 24px 12px 26px;
  }

  .celebration-track {
    scroll-padding-inline: 10px;
  }
}

@media (max-width: 760px) {
  .campaign-search-row {
    min-height: 60px;
  }

  .campaign-logo img {
    width: 118px;
    height: 44px;
  }

  .campaign-menu {
    justify-content: flex-start;
    min-height: 40px;
    gap: 16px;
    padding: 5px 12px 10px;
  }

  .campaign-menu a {
    font-size: 11px;
  }

  .site-header {
    align-items: center;
    background: var(--brand-primary);
  }

  .site-header .main-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .celebration-showcase {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    padding: 22px 8px 24px;
  }

  .celebration-heading h2 {
    font-size: 24px;
  }

  .celebration-heading p {
    max-width: 300px;
    font-size: 12px;
  }

  .celebration-track {
    gap: 16px;
  }

  .celebration-item {
    flex-basis: 84px;
  }

  .celebration-item span {
    width: 68px;
    border-width: 2px;
  }

  .celebration-item strong {
    max-width: 84px;
    font-size: 11px;
  }

  .celebration-arrow {
    width: 28px;
    height: 28px;
    margin-bottom: 30px;
    font-size: 30px;
  }

  .admin-body .admin-sidebar,
  .admin-sidebar {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 9px 10px;
  }

  .admin-body .admin-sidebar .brand,
  .admin-sidebar .brand {
    justify-self: center;
  }

  .admin-body .admin-sidebar nav,
  .admin-sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-height: 212px;
    gap: 6px;
    overflow-y: auto;
  }

  .admin-body .admin-sidebar a,
  .admin-sidebar a {
    width: 100%;
    min-height: 34px;
    padding: 8px 6px;
    font-size: 10px;
    text-align: center;
  }
}

.delivery-fee-hint {
  margin: 8px 0 14px;
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .checkout-modal {
    padding: 10px;
    align-items: start;
    overflow-y: auto;
  }

  .checkout-modal-card,
  .checkout-modal-card.payment-open {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
  }

  .checkout-modal-card.payment-open .checkout-payment-layout {
    grid-template-columns: 1fr;
  }

  .checkout-modal-card.payment-open .checkout-payment-panel {
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--theme-border);
    border-left: 0;
  }

  .checkout-payment-method {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 10px;
  }

  .checkout-payment-method img {
    width: 82px;
    height: 82px;
  }

  .checkout-action-row {
    gap: 8px;
  }
}

/* Correccion final de grillas del administrador. */
.admin-body .delivery-board-head,
.admin-body .delivery-board-row,
.delivery-board-head,
.delivery-board-row {
  grid-template-columns: minmax(82px, .55fr) minmax(132px, .8fr) minmax(108px, .65fr) minmax(170px, .95fr) minmax(142px, .8fr) minmax(280px, 1.75fr);
  gap: 14px;
  min-width: 0;
}

.admin-body .delivery-board,
.delivery-board,
.history-orders-table {
  width: 100%;
  overflow-x: visible;
}

.admin-body .delivery-board-group summary,
.delivery-board-group summary {
  min-width: 0;
}

.admin-body .delivery-board-group:not([open]) summary,
.delivery-board-group:not([open]) summary,
.admin-body .delivery-board-group summary,
.delivery-board-group summary {
  min-height: 38px;
}

.admin-body .delivery-board-group .empty-row,
.delivery-board-group .empty-row {
  min-height: 0;
  padding: 14px 22px;
  background: #fff;
}

.admin-body .delivery-board-row,
.delivery-board-row {
  min-height: 64px;
}

.history-orders-head,
.history-orders-row {
  grid-template-columns: minmax(82px, .55fr) minmax(132px, .8fr) minmax(170px, .95fr) minmax(260px, 1.7fr) minmax(108px, .6fr) minmax(160px, .8fr);
  gap: 14px;
  min-width: 0;
}

@media (max-width: 980px) {
  .admin-body .delivery-board,
  .delivery-board,
  .history-orders-table {
    overflow-x: auto;
  }

  .admin-body .delivery-board-head,
  .admin-body .delivery-board-row,
  .delivery-board-head,
  .delivery-board-row,
  .history-orders-head,
  .history-orders-row {
    min-width: 860px;
  }
}

@media (max-width: 760px) {
  .admin-body .delivery-board,
  .delivery-board {
    overflow: visible;
  }

  .admin-body .delivery-board-head,
  .delivery-board-head {
    display: none;
  }

  .admin-body .delivery-board-group,
  .delivery-board-group {
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: white;
  }

  .admin-body .delivery-board-row,
  .delivery-board-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
  }

  .admin-body .delivery-board-row > [data-mobile-label],
  .delivery-board-row > [data-mobile-label] {
    display: grid;
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
  }

  .admin-body .delivery-board-row > [data-mobile-label]::before,
  .delivery-board-row > [data-mobile-label]::before {
    content: attr(data-mobile-label);
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .admin-body .delivery-board-row > [data-mobile-label="Direccion"],
  .delivery-board-row > [data-mobile-label="Direccion"],
  .history-orders-row > [data-mobile-label="Producto"],
  .history-orders-row > [data-mobile-label="Fecha"] {
    grid-column: 1 / -1;
  }

  .history-orders-table {
    overflow: visible;
  }

  .history-orders-row {
    min-width: 0;
  }
}

/* Ajuste final del panel de pedidos: tabs lineales e historial propio. */
.admin-body .orders-tabs,
.orders-tabs {
  display: inline-flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  gap: 6px;
}

.admin-body .orders-tabs a,
.orders-tabs a {
  flex: 0 0 auto;
  min-width: 150px;
  white-space: nowrap;
}

.admin-body .delivery-board-head,
.admin-body .delivery-board-row,
.delivery-board-head,
.delivery-board-row {
  grid-template-columns: 92px minmax(145px, .75fr) 118px minmax(190px, .95fr) 154px minmax(340px, 1.65fr);
  gap: 18px;
  min-width: 1080px;
}

.admin-body .delivery-board-head,
.delivery-board-head {
  padding: 14px 22px;
}

.admin-body .delivery-board-row,
.delivery-board-row {
  padding: 16px 22px;
}

.admin-body .delivery-board-group summary,
.delivery-board-group summary {
  min-width: 1080px;
}

.admin-body .delivery-board-row > div,
.delivery-board-row > div,
.history-orders-row > div {
  min-width: 0;
}

.admin-body .delivery-board-row [data-mobile-label="Direccion"],
.delivery-board-row [data-mobile-label="Direccion"] {
  line-height: 1.45;
}

.admin-body .order-info-card,
.order-info-card {
  width: min(560px, 100%);
  border-radius: 18px;
  background: #fffdfb;
}

.admin-body .order-info-list,
.order-info-list {
  display: block;
  max-height: min(58vh, 430px);
  overflow: auto;
  padding: 20px 22px 12px;
  background: white;
}

.admin-body .order-info-list p,
.order-info-list p {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--theme-tint);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body .order-info-list p:last-child,
.order-info-list p:last-child {
  border-bottom: 0;
}

.admin-body .order-info-list p.order-info-title-line,
.admin-body .order-info-list p.order-info-wide,
.order-info-list p.order-info-title-line,
.order-info-list p.order-info-wide {
  display: block;
  background: transparent;
}

.admin-body .order-info-list span,
.order-info-list span {
  flex: 0 0 132px;
  color: var(--theme-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-body .order-info-list strong,
.order-info-list strong {
  color: #211727;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  word-break: break-word;
}

.admin-body .order-info-list p.order-info-title-line strong,
.order-info-list p.order-info-title-line strong {
  color: var(--theme-primary-text);
  font-family: Cinzel, Georgia, serif;
  font-size: 18px;
}

.history-orders-board {
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(var(--theme-heading-rgb), 0.07);
}

.history-orders-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--theme-tint);
  background: linear-gradient(135deg, #fff, var(--theme-surface));
}

.history-orders-headline span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-orders-headline h2 {
  margin: 4px 0 0;
  color: var(--theme-secondary-text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.history-orders-headline > strong {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font-size: 12px;
}

.history-orders-table {
  overflow-x: auto;
}

.history-orders-head,
.history-orders-row {
  display: grid;
  grid-template-columns: 95px minmax(145px, .75fr) minmax(180px, .9fr) minmax(300px, 1.55fr) 120px minmax(185px, .85fr);
  gap: 16px;
  align-items: center;
  min-width: 1080px;
}

.history-orders-head {
  padding: 15px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #8c7c84;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.history-orders-row {
  padding: 16px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #2b2230;
  font-size: 13px;
}

.history-orders-row:last-child {
  border-bottom: 0;
}

.history-orders-row:hover {
  background: var(--theme-surface);
}

.history-orders-row [data-mobile-label="#Pedido"] strong,
.history-orders-row [data-mobile-label="Precio"] strong {
  color: var(--theme-secondary-text);
  font-weight: 900;
}

.compact-empty {
  margin: 0;
  padding: 18px 22px;
  background: #fff;
}

@media (max-width: 760px) {
  .admin-body .orders-tabs,
  .orders-tabs {
    display: flex;
    width: 100%;
    grid-template-columns: none;
    padding: 5px;
  }

  .admin-body .orders-tabs a,
  .orders-tabs a {
    flex: 1 0 max-content;
    min-width: max-content;
    padding: 10px 12px;
    text-align: center;
  }

  .history-orders-board {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .history-orders-headline {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
  }

  .history-orders-table {
    display: grid;
    gap: 12px;
    overflow: visible;
  }

  .history-orders-head {
    display: none;
  }

  .history-orders-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 28px rgba(var(--theme-heading-rgb), 0.06);
  }

  .history-orders-row > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
    word-break: break-word;
  }

  .history-orders-row > div::before {
    content: attr(data-mobile-label);
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .history-orders-row > [data-mobile-label="Producto"],
  .history-orders-row > [data-mobile-label="Fecha"] {
    grid-column: 1 / -1;
  }

  .admin-body .delivery-board,
  .delivery-board {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-body .delivery-board-head,
  .delivery-board-head {
    display: none;
  }

  .admin-body .delivery-board-group,
  .delivery-board-group {
    overflow: visible;
    margin-bottom: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: white;
    box-shadow: 0 10px 26px rgba(var(--theme-heading-rgb), 0.06);
  }

  .admin-body .delivery-board-group summary,
  .delivery-board-group summary {
    min-width: 0;
  }

  .admin-body .delivery-board-row,
  .delivery-board-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
  }

  .admin-body .delivery-board-row > [data-mobile-label],
  .delivery-board-row > [data-mobile-label] {
    display: grid;
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
    word-break: break-word;
  }

  .admin-body .delivery-board-row > [data-mobile-label]::before,
  .delivery-board-row > [data-mobile-label]::before {
    content: attr(data-mobile-label);
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .admin-body .delivery-board-row > [data-mobile-label="Direccion"],
  .delivery-board-row > [data-mobile-label="Direccion"] {
    grid-column: 1 / -1;
  }

  .admin-body .order-info-list,
  .order-info-list {
    padding: 16px 18px 10px;
  }

  .admin-body .order-info-list p,
  .order-info-list p {
    display: block;
    padding: 10px 0;
  }

  .admin-body .order-info-list span,
  .order-info-list span {
    display: block;
    margin-bottom: 3px;
  }
}

/* Ajuste final del panel de pedidos: tabs lineales e historial propio. */
.admin-body .orders-tabs,
.orders-tabs {
  display: inline-flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  gap: 6px;
}

.admin-body .orders-tabs a,
.orders-tabs a {
  flex: 0 0 auto;
  min-width: 150px;
  white-space: nowrap;
}

.history-orders-board {
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(var(--theme-heading-rgb), 0.07);
}

.history-orders-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--theme-tint);
  background: linear-gradient(135deg, #fff, var(--theme-surface));
}

.history-orders-headline span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-orders-headline h2 {
  margin: 4px 0 0;
  color: var(--theme-secondary-text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.history-orders-headline > strong {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font-size: 12px;
}

.history-orders-table {
  overflow-x: auto;
}

.history-orders-head,
.history-orders-row {
  display: grid;
  grid-template-columns: 110px 160px minmax(180px, .9fr) minmax(280px, 1.25fr) 130px 190px;
  gap: 16px;
  align-items: center;
  min-width: 1050px;
}

.history-orders-head {
  padding: 15px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #8c7c84;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.history-orders-row {
  padding: 16px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #2b2230;
  font-size: 13px;
}

.history-orders-row:last-child {
  border-bottom: 0;
}

.history-orders-row:hover {
  background: var(--theme-surface);
}

.history-orders-row [data-mobile-label="#Pedido"] strong,
.history-orders-row [data-mobile-label="Precio"] strong {
  color: var(--theme-secondary-text);
  font-weight: 900;
}

@media (max-width: 760px) {
  .admin-body .orders-tabs,
  .orders-tabs {
    display: flex;
    width: 100%;
    grid-template-columns: none;
    padding: 5px;
  }

  .admin-body .orders-tabs a,
  .orders-tabs a {
    flex: 1 0 max-content;
    min-width: max-content;
    padding: 10px 12px;
    text-align: center;
  }

  .history-orders-board {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .history-orders-headline {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
  }

  .history-orders-table {
    display: grid;
    gap: 12px;
    overflow: visible;
  }

  .history-orders-head {
    display: none;
  }

  .history-orders-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 28px rgba(var(--theme-heading-rgb), 0.06);
  }

  .history-orders-row > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
    word-break: break-word;
  }

  .history-orders-row > div::before {
    content: attr(data-mobile-label);
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .history-orders-row > [data-mobile-label="Producto"],
  .history-orders-row > [data-mobile-label="Fecha"] {
    grid-column: 1 / -1;
  }
}

/* Ajuste final del panel de pedidos: tabs lineales e historial propio. */
.admin-body .orders-tabs,
.orders-tabs {
  display: inline-flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  gap: 6px;
}

.admin-body .orders-tabs a,
.orders-tabs a {
  flex: 0 0 auto;
  min-width: 150px;
  white-space: nowrap;
}

.history-orders-board {
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(var(--theme-heading-rgb), 0.07);
}

.history-orders-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--theme-tint);
  background: linear-gradient(135deg, #fff, var(--theme-surface));
}

.history-orders-headline span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-orders-headline h2 {
  margin: 4px 0 0;
  color: var(--theme-secondary-text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.history-orders-headline > strong {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font-size: 12px;
}

.history-orders-table {
  overflow-x: auto;
}

.history-orders-head,
.history-orders-row {
  display: grid;
  grid-template-columns: 110px 160px minmax(180px, .9fr) minmax(280px, 1.25fr) 130px 190px;
  gap: 16px;
  align-items: center;
  min-width: 1050px;
}

.history-orders-head {
  padding: 15px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #8c7c84;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.history-orders-row {
  padding: 16px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #2b2230;
  font-size: 13px;
}

.history-orders-row:last-child {
  border-bottom: 0;
}

.history-orders-row:hover {
  background: var(--theme-surface);
}

.history-orders-row [data-mobile-label="#Pedido"] strong,
.history-orders-row [data-mobile-label="Precio"] strong {
  color: var(--theme-secondary-text);
  font-weight: 900;
}

@media (max-width: 760px) {
  .admin-body .orders-tabs,
  .orders-tabs {
    display: flex;
    width: 100%;
    grid-template-columns: none;
    padding: 5px;
  }

  .admin-body .orders-tabs a,
  .orders-tabs a {
    flex: 1 0 max-content;
    min-width: max-content;
    padding: 10px 12px;
    text-align: center;
  }

  .history-orders-board {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .history-orders-headline {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
  }

  .history-orders-table {
    display: grid;
    gap: 12px;
    overflow: visible;
  }

  .history-orders-head {
    display: none;
  }

  .history-orders-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 28px rgba(var(--theme-heading-rgb), 0.06);
  }

  .history-orders-row > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
    word-break: break-word;
  }

  .history-orders-row > div::before {
    content: attr(data-mobile-label);
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .history-orders-row > [data-mobile-label="Producto"],
  .history-orders-row > [data-mobile-label="Fecha"] {
    grid-column: 1 / -1;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-body .admin-main {
  background:
    linear-gradient(180deg, rgba(var(--theme-surface-rgb), 0.72), rgba(255, 255, 255, .94) 220px),
    #fff;
}

.admin-body .orders-screen .section-head {
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--theme-tint);
}

.admin-body .orders-screen .section-head h1 {
  letter-spacing: 0;
}

.admin-body .orders-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: white;
  box-shadow: 0 14px 32px rgba(var(--theme-heading-rgb), 0.06);
}

.admin-body .orders-tabs a {
  flex: 0 0 auto;
  border-radius: 8px;
}

.admin-body .filters,
.admin-body .admin-filters {
  border-color: var(--theme-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 36px rgba(var(--theme-heading-rgb), 0.05);
}

.admin-body .production-card,
.admin-body .delivery-board {
  border-radius: 16px;
  border-color: var(--theme-border);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 44px rgba(var(--theme-heading-rgb), 0.07);
}

.admin-body .production-order-row {
  grid-template-columns: 86px 150px minmax(190px, .82fr) minmax(220px, 1fr) 132px;
}

.admin-body .production-order-products {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 8px 10px 2px;
}

.admin-body .production-item-chip {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 66px;
  height: 66px;
  max-width: none;
  padding: 0;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, var(--theme-surface));
}

.admin-body .production-item-chip .production-thumb {
  width: 56px;
  height: 56px;
}

.admin-body .production-item-chip strong,
.admin-body .production-item-chip > div:not(.production-thumb) {
  display: none;
}

.admin-body .production-thumb-qty {
  display: grid;
}

.order-info-card {
  width: min(620px, 100%);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, var(--theme-surface));
}

.order-info-card header {
  padding: 20px 22px;
}

.order-info-card h2 {
  font-size: clamp(22px, 4vw, 30px);
}

.order-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(58vh, 460px);
  overflow: auto;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(var(--theme-tint-rgb), 0.75), transparent 34%),
    white;
}

.order-info-list p {
  display: grid;
  gap: 5px;
  min-height: 66px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--theme-tint);
  border-radius: 14px;
  background: rgba(var(--theme-surface-rgb), 0.92);
  box-shadow: 0 10px 22px rgba(var(--theme-heading-rgb), 0.04);
}

.order-info-list p.order-info-title-line,
.order-info-list p.order-info-wide {
  grid-column: 1 / -1;
  min-height: 0;
  background: var(--theme-surface);
}

.order-info-list span {
  color: var(--theme-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.order-info-list strong {
  color: #211727;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}

.order-info-list p.order-info-title-line strong {
  color: var(--theme-primary-text);
  font-family: Cinzel, Georgia, serif;
  font-size: 18px;
}

.product-detail-modal-card {
  border-radius: 22px;
}

.product-detail-modal-card h2 {
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0;
}

.product-detail-modal-body > div:last-child {
  min-width: 0;
}

.product-detail-modal-body p {
  padding: 14px 16px;
  border: 1px solid var(--theme-tint);
  border-radius: 14px;
  background: white;
}

.history-orders-board {
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(var(--theme-heading-rgb), 0.07);
}

.history-orders-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--theme-tint);
  background:
    radial-gradient(circle at top right, rgba(var(--theme-tint-rgb), 0.75), transparent 34%),
    linear-gradient(135deg, #fff, var(--theme-surface));
}

.history-orders-headline span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-orders-headline h2 {
  margin: 4px 0 0;
  color: var(--theme-secondary-text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.history-orders-headline > strong {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font-size: 12px;
}

.history-orders-table {
  overflow-x: auto;
}

.history-orders-head,
.history-orders-row {
  display: grid;
  grid-template-columns: 110px 160px minmax(180px, .9fr) minmax(280px, 1.25fr) 130px 190px;
  gap: 16px;
  align-items: center;
  min-width: 1050px;
}

.history-orders-head {
  padding: 15px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #8c7c84;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.history-orders-row {
  padding: 16px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #2b2230;
  font-size: 13px;
}

.history-orders-row:last-child {
  border-bottom: 0;
}

.history-orders-row:hover {
  background: var(--theme-surface);
}

.history-orders-row [data-mobile-label="#Pedido"] strong,
.history-orders-row [data-mobile-label="Precio"] strong {
  color: var(--theme-secondary-text);
  font-weight: 900;
}

@media (max-width: 760px) {
  .admin-body .orders-screen .section-head {
    align-items: start;
    gap: 14px;
  }

  .admin-body .orders-tabs {
    width: 100%;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 5px;
  }

  .admin-body .orders-tabs a {
    flex: 1 0 max-content;
    min-width: max-content;
    padding: 10px 8px;
    text-align: center;
  }

  .admin-body .production-card,
  .admin-body .delivery-board {
    border-radius: 14px;
  }

  .admin-body .production-order-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    margin: 10px;
    padding: 12px;
  }

  .admin-body .production-order-id {
    grid-row: 1 / span 2;
    width: 54px;
    min-width: 54px;
    padding: 8px 6px;
  }

  .admin-body .production-order-client,
  .admin-body .production-order-products,
  .admin-body .production-card-message,
  .admin-body .production-order-meta {
    grid-column: 2;
  }

  .admin-body .production-order-products {
    width: 100%;
    padding: 7px 4px 12px;
  }

  .admin-body .production-item-chip {
    width: 62px;
    height: 62px;
  }

  .admin-body .production-item-chip .production-thumb {
    width: 52px;
    height: 52px;
  }

  .order-info-modal,
  .product-detail-modal {
    padding: 12px;
  }

  .order-info-list {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .product-detail-modal-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .product-detail-stage {
    min-height: 190px;
    padding: 12px;
  }

  .product-detail-modal-body img {
    width: min(158px, 82vw);
  }

  .history-orders-board {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .history-orders-headline {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
  }

  .history-orders-table {
    display: grid;
    gap: 12px;
    overflow: visible;
  }

  .history-orders-head {
    display: none;
  }

  .history-orders-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 28px rgba(var(--theme-heading-rgb), 0.06);
  }

  .history-orders-row > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
    word-break: break-word;
  }

  .history-orders-row > div::before {
    content: attr(data-mobile-label);
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .history-orders-row > [data-mobile-label="Producto"],
  .history-orders-row > [data-mobile-label="Fecha"] {
    grid-column: 1 / -1;
  }
}

/* Entregas e historial: columnas finales y modal de telefono. */
.admin-body .delivery-board-head,
.admin-body .delivery-board-row,
.delivery-board-head,
.delivery-board-row {
  grid-template-columns: 112px 150px 130px minmax(160px, .8fr) 150px minmax(260px, 1.25fr);
  min-width: 1020px;
}
.admin-body .delivery-board-group summary,
.delivery-board-group summary {
  min-width: 1020px;
}
.phone-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.phone-order-button::before {
  content: "☎";
  margin-right: 6px;
  font-size: 11px;
}
.phone-order-button:hover {
  transform: translateY(-1px);
  background: var(--rose);
  color: white;
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.18);
}
.order-info-modal {
  position: fixed;
  inset: 0;
  z-index: 128;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(33, 24, 34, .54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.order-info-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.order-info-card {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: var(--theme-surface);
  box-shadow: 0 24px 60px rgba(var(--theme-heading-rgb), 0.24);
}
.order-info-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--theme-tint);
  background: linear-gradient(135deg, var(--theme-surface), #fff);
}
.order-info-card header span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.order-info-card h2 {
  margin: 3px 0 0;
  color: var(--theme-secondary-text);
  font-size: 24px;
}
.order-info-card header button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--theme-tint);
  color: var(--theme-muted);
  font-size: 26px;
  cursor: pointer;
}
.order-info-card pre {
  max-height: min(58vh, 430px);
  overflow: auto;
  margin: 0;
  padding: 20px;
  border: 0;
  background: white;
  color: var(--theme-muted);
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.order-info-card > .button {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
}
.order-info-card > .button.disabled {
  opacity: .55;
  pointer-events: none;
}

@media (max-width: 760px) {
  .admin-body .delivery-board-head,
  .delivery-board-head {
    display: none;
  }
  .admin-body .delivery-board-row,
  .delivery-board-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-body .delivery-board-row > [data-mobile-label],
  .delivery-board-row > [data-mobile-label] {
    display: grid;
  }
  .admin-body .delivery-board-row > [data-mobile-label="Direccion"],
  .delivery-board-row > [data-mobile-label="Direccion"] {
    grid-column: 1 / -1;
  }
}

/* Entregas e historial: columnas finales y modal de telefono. */
.admin-body .delivery-board-head,
.admin-body .delivery-board-row,
.delivery-board-head,
.delivery-board-row {
  grid-template-columns: 112px 150px 130px minmax(160px, .8fr) 150px minmax(260px, 1.25fr);
  min-width: 1020px;
}
.admin-body .delivery-board-group summary,
.delivery-board-group summary {
  min-width: 1020px;
}
.phone-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.phone-order-button::before {
  content: "☎";
  margin-right: 6px;
  font-size: 11px;
}
.phone-order-button:hover {
  transform: translateY(-1px);
  background: var(--rose);
  color: white;
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.18);
}
.order-info-modal {
  position: fixed;
  inset: 0;
  z-index: 128;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(33, 24, 34, .54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.order-info-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.order-info-card {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: var(--theme-surface);
  box-shadow: 0 24px 60px rgba(var(--theme-heading-rgb), 0.24);
}
.order-info-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--theme-tint);
  background: linear-gradient(135deg, var(--theme-surface), #fff);
}
.order-info-card header span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.order-info-card h2 {
  margin: 3px 0 0;
  color: var(--theme-secondary-text);
  font-size: 24px;
}
.order-info-card header button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--theme-tint);
  color: var(--theme-muted);
  font-size: 26px;
  cursor: pointer;
}
.order-info-card pre {
  max-height: min(58vh, 430px);
  overflow: auto;
  margin: 0;
  padding: 20px;
  border: 0;
  background: white;
  color: var(--theme-muted);
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.order-info-card > .button {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
}
.order-info-card > .button.disabled {
  opacity: .55;
  pointer-events: none;
}

@media (max-width: 760px) {
  .admin-body .delivery-board-head,
  .delivery-board-head {
    display: none;
  }
  .admin-body .delivery-board-row,
  .delivery-board-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-body .delivery-board-row > [data-mobile-label],
  .delivery-board-row > [data-mobile-label] {
    display: grid;
  }
  .admin-body .delivery-board-row > [data-mobile-label="Direccion"],
  .delivery-board-row > [data-mobile-label="Direccion"] {
    grid-column: 1 / -1;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(var(--theme-tint-rgb), 0.9), transparent 34rem),
    linear-gradient(180deg, var(--cream), #fff 42%, var(--theme-surface));
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3,
.hero h1,
.section-head h2,
.admin-top h1,
.orders-header h1,
.login-card h1,
.manual-order-card h2,
.delivery-modal-card h2,
.checkout-modal-card h2,
.drawer-panel header h2,
.purchase-thanks h1 {
  font-family: var(--font-title);
  letter-spacing: 0;
}

.top-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 9px 18px;
  background: linear-gradient(90deg, var(--guinda-deep), var(--guinda), var(--rose-strong));
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 13px clamp(18px, 4vw, 64px);
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.95);
  box-shadow: 0 12px 30px rgba(var(--theme-heading-rgb), 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}
.brand-logo {
  display: block;
  width: clamp(120px, 16vw, 188px);
  max-height: 56px;
  object-fit: contain;
}
.logo-brand {
  padding: 0;
}
.brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
  color: white;
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.25);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.main-nav a { position: relative; padding: 10px 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--rose);
  transition: right .18s ease;
}
.main-nav a:hover::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}
.search input {
  width: 200px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.search input::placeholder {
  color: #8e7b86;
}
.search input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), 0.12);
}
.cart-btn, .icon-link, .menu-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(var(--theme-muted-rgb), 0.05);
}
.cart-btn:hover, .icon-link:hover, .menu-toggle:hover {
  background: var(--rose-soft);
  color: var(--theme-primary-text);
}
.cart-btn strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 7px;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-size: 12px;
}
.cart-btn:hover strong {
  background: var(--rose-strong);
  color: var(--theme-on-primary);
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, .75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  min-height: 590px;
  padding: clamp(44px, 6vw, 76px) clamp(20px, 6vw, 88px);
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 32%, rgba(var(--theme-primary-rgb), 0.18), transparent 18rem),
    radial-gradient(circle at 18% 72%, rgba(var(--theme-surface-rgb), 0.9), transparent 19rem),
    linear-gradient(115deg, #fff 0%, var(--theme-surface) 58%, var(--theme-tint) 100%);
}
.hero::before {
  content: "ENCANTOS";
  position: absolute;
  left: clamp(12px, 4vw, 70px);
  bottom: clamp(2px, 2vw, 16px);
  color: rgba(var(--theme-primary-text-rgb), 0.045);
  font-size: clamp(62px, 12vw, 168px);
  font-weight: 900;
  letter-spacing: .05em;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--theme-primary-text);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .11em;
  font-size: 12px;
}
.hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .96;
  letter-spacing: 0;
}
.hero p {
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-top: 22px;
}
.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(var(--theme-muted-rgb), 0.06);
}
.hero-actions, .detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
  color: white;
  box-shadow: 0 16px 30px rgba(var(--theme-primary-rgb), 0.23);
}
.secondary { background: var(--ink); color: white; }
.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.full { width: 100%; }

.hero-product,
.hero-carousel {
  position: relative;
  align-self: stretch;
  min-height: 455px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--theme-tint), var(--theme-surface));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 24px 60px rgba(var(--theme-primary-rgb), 0.18);
}
.hero-product::before,
.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
}
.hero-product-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(var(--theme-muted-rgb), 0.14);
}
.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.hero-product:hover img {
  transform: scale(1.025);
}
.hero-product div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(var(--theme-muted-rgb), 0.16);
}
.hero-product span { color: var(--theme-primary-text); font-weight: 900; }

.hero-carousel {
  display: block;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide div {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 28px rgba(var(--theme-muted-rgb), 0.16);
}
.hero-slide div strong,
.hero-slide div span {
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
}
.hero-slide div span {
  flex: 0 0 auto;
  color: var(--theme-primary-text);
  font-size: 12px;
}
.hero-carousel-dots {
  position: absolute;
  right: 26px;
  top: 50%;
  z-index: 4;
  display: grid;
  gap: 9px;
  transform: translateY(-50%);
}
.hero-carousel-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 3px rgba(255,255,255,.2);
}
.hero-carousel-dots span.active {
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), 0.18);
}

.home-site-header {
  position: sticky;
  z-index: 40;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(var(--theme-border-rgb), 0.95);
  box-shadow: 0 12px 30px rgba(var(--theme-heading-rgb), 0.08);
}
.home-site-header .brand-logo {
  filter: none;
}
.home-site-header .main-nav {
  color: var(--ink-soft);
}
.home-site-header .main-nav a::after {
  background: var(--rose);
}
.home-site-header .search input {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}
.home-site-header .search input::placeholder {
  color: #8e7b86;
}
.home-site-header .cart-btn,
.home-site-header .icon-link,
.home-site-header .menu-toggle {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}
.home-site-header .cart-btn:hover,
.home-site-header .icon-link:hover,
.home-site-header .menu-toggle:hover {
  background: var(--rose-soft);
  color: var(--theme-primary-text);
}
.magia-hero {
  isolation: isolate;
  min-height: clamp(620px, 88vh, 820px);
  grid-template-columns: minmax(0, 720px) 1fr;
  align-items: end;
  padding-top: 138px;
  padding-bottom: clamp(70px, 10vh, 118px);
  color: white;
  background:
    linear-gradient(90deg, rgba(25,20,37,.78) 0%, rgba(var(--theme-heading-rgb), 0.58) 34%, rgba(25,20,37,.24) 68%, rgba(25,20,37,.48) 100%),
    var(--hero-bg),
    linear-gradient(135deg, var(--rose), var(--guinda-deep));
  background-size: cover;
  background-position: center;
}
.magia-hero::before {
  content: "Encantos";
  left: clamp(18px, 4vw, 80px);
  bottom: clamp(22px, 5vw, 68px);
  z-index: -1;
  color: rgba(255,255,255,.08);
  font-family: var(--font-title);
  font-size: clamp(72px, 13vw, 210px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.magia-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 54%, rgba(var(--theme-primary-rgb), 0.36), transparent 21rem),
    linear-gradient(180deg, rgba(25,20,37,.1), rgba(25,20,37,.28));
}
.magia-hero .hero-copy {
  max-width: 720px;
}
.magia-hero .eyebrow {
  color: rgba(255,255,255,.88);
}
.magia-hero h1 {
  max-width: 680px;
  color: white;
  font-size: clamp(52px, 6.8vw, 104px);
  line-height: .9;
  text-shadow: 0 18px 34px rgba(0,0,0,.28);
}
.magia-hero p {
  max-width: 560px;
  color: rgba(255,255,255,.88);
  text-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.magia-hero .hero-highlights span {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.14);
  color: white;
  box-shadow: none;
}
.magia-hero .button.primary {
  background: #7fd1d4;
  color: var(--theme-secondary-text);
  box-shadow: 0 18px 32px rgba(127, 209, 212, .24);
}
.magia-hero .button.ghost {
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.16);
  color: white;
  box-shadow: none;
}
.hero-feature-pill {
  display: grid;
  gap: 5px;
  width: min(360px, 100%);
  margin-top: 30px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  color: white;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.hero-feature-pill span {
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-feature-pill strong {
  font-size: 15px;
}
.hero-feature-pill b {
  color: var(--theme-surface);
  font-size: 14px;
}
.hero-dots {
  position: absolute;
  right: clamp(16px, 3vw, 38px);
  top: 50%;
  z-index: 2;
  display: grid;
  gap: 13px;
  transform: translateY(-50%);
}
.hero-dots span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #7fd1d4;
  box-shadow: 0 0 0 4px rgba(127, 209, 212, .16);
}

.quick-cats.category-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  padding: 22px clamp(14px, 4vw, 64px) 24px;
  border-top: 1px solid var(--theme-tint);
  border-bottom: 1px solid var(--theme-tint);
  background: var(--theme-surface);
  color: var(--ink);
}
.category-track {
  display: flex;
  gap: clamp(14px, 2.3vw, 28px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-track::-webkit-scrollbar { display: none; }
.category-bubble {
  flex: 0 0 clamp(96px, 10vw, 132px);
  display: grid;
  justify-items: center;
  gap: 10px;
  scroll-snap-align: center;
  color: var(--theme-muted);
  text-align: center;
}
.category-bubble span {
  display: grid;
  place-items: center;
  width: clamp(76px, 8vw, 100px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--theme-surface), var(--theme-surface)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--cat, var(--rose)) 55%, #223257), var(--theme-border)) border-box;
  box-shadow: 0 12px 28px rgba(var(--theme-muted-rgb), 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.category-bubble strong {
  max-width: 118px;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.category-bubble.active span,
.category-bubble:hover span {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(var(--theme-primary-rgb), 0.2);
}
.category-bubble.active strong,
.category-bubble:hover strong {
  color: var(--theme-secondary-text);
  font-weight: 800;
}
.category-arrow {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--theme-primary-text);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.category-arrow:hover {
  background: #fff;
  color: var(--theme-primary-text);
}

.category-preview-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--theme-surface);
}
.category-preview-card img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--theme-border);
  border-radius: 999px;
  background: white;
}
.category-preview-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.category-row-main {
  display: inline-grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.category-row-main > span {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--cat, var(--rose)) 58%, white);
  border-radius: 999px;
  background: var(--theme-surface);
}
.category-row-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-row-main strong {
  min-width: 0;
}
.color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .quick-cats.category-showcase {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 4px;
    padding: 18px 10px 20px;
  }
  .category-track {
    gap: 14px;
    scroll-padding-inline: 12px;
  }
  .category-bubble {
    flex-basis: 86px;
    gap: 8px;
  }
  .category-bubble span {
    width: 70px;
    border-width: 2px;
  }
  .category-bubble strong {
    max-width: 86px;
    font-size: 12px;
  }
  .category-arrow {
    width: 28px;
    height: 28px;
    font-size: 30px;
  }
}

.promo-section {
  padding: 58px clamp(18px, 5vw, 76px);
  background:
    radial-gradient(circle at 8% 18%, rgba(var(--theme-primary-rgb), 0.12), transparent 24rem),
    linear-gradient(180deg, #fff, var(--blush));
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.promo-card {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 260px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--rose-soft);
  border: 1px solid rgba(var(--theme-border-rgb), 0.9);
  box-shadow: var(--shadow-soft);
}
.promo-card img,
.promo-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.promo-card:hover img,
.promo-card:hover video {
  transform: scale(1.035);
}
.promo-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--theme-primary-text);
  font-size: 20px;
  font-weight: 900;
}
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(25, 20, 37, .55);
  backdrop-filter: blur(8px);
}
.promo-modal.open { display: grid; }
.promo-modal-card {
  position: relative;
  display: block;
  width: min(860px, 94vw);
  max-height: 88vh;
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 28px 90px rgba(25, 20, 37, .28);
}
.promo-modal-media {
  display: block;
}
.promo-modal-media img,
.promo-modal-media video {
  display: block;
  width: 100%;
  max-height: 88vh;
  object-fit: cover;
  background: var(--rose-soft);
}
.promo-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  width: 40px;
  height: 40px;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.section {
  padding: 66px clamp(18px, 5vw, 76px);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}
.section-head > a {
  font-weight: 900;
  color: var(--theme-primary-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.compact h2 { font-size: 24px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  position: relative;
  display: grid;
  background: white;
  border: 1px solid rgba(var(--theme-border-rgb), 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(var(--theme-muted-rgb), 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-image {
  position: relative;
  aspect-ratio: 1 / 1.06;
  background: var(--rose-soft);
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.product-card:hover img { transform: scale(1.05); }
.product-image span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(var(--theme-primary-rgb), 0.25);
}
.product-info {
  display: grid;
  gap: 10px;
  padding: 17px;
}
.product-info small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.product-info h3 {
  min-height: 48px;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.price strong {
  color: var(--theme-primary-text);
  font-size: 20px;
}
.price del {
  color: var(--muted);
  font-size: 14px;
}
.big { font-size: 30px; }

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 12px clamp(18px, 5vw, 76px) 28px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.feature-band article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 28px;
  background: white;
}
.feature-band strong {
  font-size: 20px;
}
.feature-band span, .muted { color: var(--muted); }

.web-feature-stack {
  display: grid;
  gap: 42px;
  padding: 70px clamp(18px, 5vw, 76px);
  background: white;
}
.web-feature-row {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(360px, 1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
}
.web-feature-row.reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(280px, .95fr);
}
.web-feature-copy p {
  margin: 0 0 14px;
  color: var(--theme-primary-text);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 900;
}
.web-feature-copy h2 {
  margin: 0 0 16px;
  color: #11152a;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.05;
}
.web-feature-copy span {
  display: block;
  max-width: 560px;
  color: #677085;
  font-size: 19px;
  line-height: 1.65;
}
.web-feature-preview {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: 16px;
  background: #f4f4f6;
}
.web-orders-preview div,
.web-stock-preview div,
.web-client-preview section,
.client-stats article {
  background: white;
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(17, 21, 42, .08);
}
.web-orders-preview div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  align-items: center;
  padding: 17px 18px;
}
.web-orders-preview i {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
}
.web-orders-preview i.ok { background: #42c978; }
.web-orders-preview i.wait { background: #f6a21c; }
.web-orders-preview i.urgent { background: var(--brand-primary); }
.web-orders-preview strong {
  color: #11152a;
}
.web-orders-preview span {
  color: #677085;
  font-size: 13px;
}
.web-stock-preview > strong {
  margin-bottom: 6px;
  color: #586174;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.web-stock-preview div {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}
.web-stock-preview span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #11152a;
  font-weight: 900;
}
.web-stock-preview b {
  color: var(--theme-primary-text);
}
.web-stock-preview em {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #ececef;
}
.web-stock-preview i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
}
.web-stock-preview i.danger {
  background: #ef4b74;
}
.web-client-preview section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  padding: 18px;
}
.web-client-preview .avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
  color: white;
  font-weight: 900;
}
.web-client-preview section span {
  display: block;
  margin-top: 5px;
  color: #677085;
  font-size: 13px;
}
.web-client-preview p {
  margin: 0;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--rose-soft);
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
}
.web-client-preview small {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 8px;
  background: #f4f4f6;
  color: #677085;
}
.client-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.client-stats article {
  padding: 16px 18px;
}
.client-stats span {
  display: block;
  color: #677085;
  font-size: 12px;
}
.client-stats strong {
  display: block;
  margin-top: 5px;
  color: #11152a;
  font-size: 18px;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 58px clamp(18px, 5vw, 76px) 74px;
  background: #fff;
}
.trend-grid a {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  border-radius: var(--radius);
  color: white;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(var(--theme-heading-rgb), 0.04), rgba(var(--theme-heading-rgb), 0.76)),
    url("https://images.unsplash.com/photo-1526047932273-341f2a7631f9?auto=format&fit=crop&w=900&q=80") center/cover;
}
.trend-grid a:nth-child(2) { background-image: linear-gradient(180deg, rgba(var(--theme-heading-rgb), 0.04), rgba(var(--theme-heading-rgb), 0.76)), url("https://images.unsplash.com/photo-1561181286-d3fee7d55364?auto=format&fit=crop&w=900&q=80"); }
.trend-grid a:nth-child(3) { background-image: linear-gradient(180deg, rgba(var(--theme-heading-rgb), 0.04), rgba(var(--theme-heading-rgb), 0.76)), url("https://images.unsplash.com/photo-1487530811176-3780de880c2d?auto=format&fit=crop&w=900&q=80"); }
.trend-grid a:nth-child(4) { background-image: linear-gradient(180deg, rgba(var(--theme-heading-rgb), 0.04), rgba(var(--theme-heading-rgb), 0.76)), url("https://images.unsplash.com/photo-1548094967-e25a127d1f6d?auto=format&fit=crop&w=900&q=80"); }
.trend-grid span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.trend-grid strong {
  margin-top: 8px;
  max-width: 220px;
  font-size: 25px;
  line-height: 1.05;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 30px;
  align-items: start;
  padding: 44px clamp(18px, 5vw, 76px) 76px;
}
.filters, .checkout-form, .admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.filters {
  position: sticky;
  top: 90px;
}
.filters h1 {
  margin: 0 0 16px;
  font-size: 32px;
}
.filters form, .checkout-form, .product-form { display: grid; gap: 14px; }
label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}
input, select, textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  background: white;
  color: var(--ink);
  outline: none;
}
.catalog-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}

.product-detail, .checkout-shell {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(360px, .65fr);
  gap: 42px;
  align-items: start;
  padding: 54px clamp(18px, 5vw, 76px) 78px;
}
.detail-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, rgba(var(--theme-surface-rgb), 0.55) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(var(--theme-surface-rgb), 0.55) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(var(--theme-surface-rgb), 0.55) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(var(--theme-surface-rgb), 0.55) 75%),
    #fffdfd;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery-slide {
  display: none;
}
.gallery-slide.active {
  display: block;
}
.detail-image img,
.detail-image video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  background: #fffdfd;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(var(--theme-primary-rgb), 0.92);
  color: white;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 12px 24px rgba(var(--theme-heading-rgb), 0.18);
}
.gallery-nav.prev {
  left: 14px;
}
.gallery-nav.next {
  right: 14px;
}
.gallery-nav:hover {
  background: var(--guinda-deep);
}
.detail-media {
  display: grid;
  gap: 14px;
}
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.detail-thumbs button {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--rose-soft);
  box-shadow: 0 8px 18px rgba(var(--theme-muted-rgb), 0.08);
  cursor: pointer;
}
.detail-thumbs button.active {
  border-color: var(--rose-strong);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.15);
}
.detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffdfd;
}
.detail-thumbs span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--theme-primary-text);
  font-weight: 900;
}
.detail-copy {
  padding-top: 18px;
}
.detail-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1;
}
.detail-copy p {
  color: var(--muted);
  line-height: 1.75;
}
.product-tax-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.detail-divider {
  height: 1px;
  margin: 22px 0 20px;
  background: #221628;
  opacity: .9;
}
.product-wow h2 {
  margin: 0 0 12px;
  color: #2b3652;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.1;
}
.product-wow p {
  max-width: 560px;
  margin: 0 0 22px;
  color: #34415f;
  font-size: 16px;
  line-height: 1.65;
}
.product-buy-box {
  display: grid;
  gap: 18px;
}
.product-buy-box > label {
  color: #2b3652;
  font-size: 12px;
  font-weight: 900;
}
.qty-control {
  display: inline-grid;
  grid-template-columns: 38px 46px 38px;
  width: max-content;
  overflow: hidden;
  border: 1px solid #d9d4d8;
  border-radius: 4px;
  background: white;
}
.qty-control button,
.qty-control input {
  height: 42px;
  border: 0;
  background: white;
  color: #1c1728;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}
.qty-control button {
  cursor: pointer;
}
.qty-control button:hover {
  background: var(--rose-soft);
  color: var(--theme-primary-text);
}
.delivery-picker {
  overflow: hidden;
  border: 1px solid #7dcdd1;
  border-radius: 8px;
  background: white;
}
.delivery-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  color: #30405f;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.delivery-picker summary::-webkit-details-marker {
  display: none;
}
.delivery-picker summary i {
  color: var(--theme-primary-text);
  font-style: normal;
}
.delivery-picker-body {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 20px;
  padding: 22px;
  border: 1px solid #e1e1e8;
  border-radius: 14px;
  background: #fffdfb;
}
.delivery-picker-body p {
  margin: 0 0 8px;
  color: #34415f;
  font-weight: 700;
}
.delivery-picker-body label {
  display: grid;
  gap: 4px;
  width: min(100%, 310px);
}
.delivery-picker-body label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.delivery-picker-body input,
.delivery-picker-body select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dedde5;
  border-radius: 10px;
  background: white;
  color: #34415f;
  font: inherit;
  font-weight: 700;
  padding: 0 14px;
}
.product-cart-row {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 4px;
}
.cart-icon-button {
  width: 55px;
  height: 55px;
  border: 0;
  border-radius: 999px;
  background: #79c9cd;
  color: #1f3855;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}
.product-add-button {
  min-height: 55px;
  border-radius: 999px;
  background: #79c9cd;
  color: #1f3855;
  box-shadow: none;
}
.product-add-button:hover,
.cart-icon-button:hover {
  background: var(--rose-strong);
  color: var(--theme-on-primary);
}
.product-pickup-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 18px;
  padding: 13px 16px;
  border: 1px solid #2c2530;
  border-radius: 13px;
  color: #34415f;
}
.product-pickup-card strong {
  font-size: 12px;
}
.product-pickup-card span {
  color: var(--muted);
  font-size: 12px;
}
.product-pickup-card a {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: #2c2530;
  font-size: 11px;
  text-decoration: underline;
}
.product-media-manager {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--theme-surface);
}
.product-media-manager > strong {
  color: var(--theme-secondary-text);
  font-size: 13px;
}
.product-media-manager > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.product-media-manager article {
  display: grid;
  gap: 6px;
}
.product-media-manager img,
.product-media-manager article > span {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  background: white;
  border: 1px solid var(--line);
}
.product-media-manager article > span {
  display: grid;
  place-items: center;
  color: var(--theme-primary-text);
  font-weight: 900;
}
.promise-list {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-left: 18px;
  color: var(--muted);
}

.checkout-shell h1,
.thanks h1 {
  margin-top: 0;
  font-size: clamp(34px, 5vw, 58px);
}
.checkout-experience {
  grid-template-columns: minmax(320px, .92fr) minmax(380px, 1.08fr);
  gap: clamp(26px, 4vw, 54px);
  background:
    radial-gradient(circle at 10% 8%, rgba(var(--theme-primary-rgb), 0.1), transparent 24rem),
    radial-gradient(circle at 92% 20%, rgba(72,106,82,.08), transparent 20rem);
}
.checkout-summary-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}
.checkout-lead {
  max-width: 620px;
  margin: -4px 0 4px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.checkout-steps span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.checkout-steps .active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.checkout-card,
.checkout-note,
.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-soft);
}
.checkout-card {
  overflow: hidden;
}
.checkout-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, var(--rose-soft));
}
.checkout-card-head span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-weight: 900;
}
.checkout-card .checkout-items {
  padding: 8px 20px;
}
.checkout-totals {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
}
.checkout-totals div,
.checkout-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.checkout-totals span,
.checkout-note span {
  color: var(--muted);
}
.checkout-totals .grand {
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 20px;
}
.checkout-totals .grand strong {
  color: var(--theme-primary-text);
}
.checkout-note {
  align-items: center;
  padding: 18px;
}
.checkout-form {
  position: sticky;
  top: 92px;
  gap: 18px;
}
.form-section {
  display: grid;
  gap: 14px;
  padding: 18px;
}
.form-section h2 {
  margin: 0;
  font-size: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.alert {
  border: 1px solid #efcf92;
  background: #fff3d8;
  color: #7b4f0b;
  padding: 13px;
  border-radius: var(--radius);
}
.thanks {
  min-height: 64vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 40px;
}
.purchase-thanks {
  min-height: calc(100vh - 180px);
  gap: 14px;
  background:
    radial-gradient(circle at 25% 18%, rgba(var(--theme-primary-rgb), 0.12), transparent 22rem),
    radial-gradient(circle at 78% 72%, rgba(47, 125, 87, .1), transparent 18rem);
}
.purchase-thanks > * {
  justify-self: center;
}
.purchase-thanks h1 {
  margin: 0;
  color: var(--theme-secondary-text);
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1;
}
.purchase-thanks p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}
.thanks-order {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 4px 0 12px;
  padding: 7px 15px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font-size: 14px;
}
.thanks-rose {
  position: relative;
  width: 98px;
  height: 112px;
  margin-bottom: 8px;
  animation: rose-float 1.8s ease-in-out infinite;
}
.thanks-rose::before,
.thanks-rose::after,
.thanks-rose span::before,
.thanks-rose span::after {
  content: "";
  position: absolute;
  border-radius: 999px 999px 8px 999px;
  background: linear-gradient(135deg, var(--theme-border), var(--brand-primary));
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.2);
}
.thanks-rose::before {
  left: 31px;
  top: 8px;
  width: 34px;
  height: 42px;
  transform: rotate(-18deg);
}
.thanks-rose::after {
  left: 47px;
  top: 8px;
  width: 34px;
  height: 42px;
  transform: rotate(18deg) scaleX(-1);
}
.thanks-rose span::before {
  left: 36px;
  top: 28px;
  width: 28px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary));
  transform: rotate(45deg);
}
.thanks-rose span::after {
  left: 48px;
  top: 60px;
  width: 4px;
  height: 46px;
  border-radius: 999px;
  background: #2f7d57;
  box-shadow: none;
  transform: none;
}
@keyframes rose-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(var(--theme-heading-rgb), 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  margin-left: auto;
  width: min(425px, 100%);
  height: 100%;
  display: block;
  padding: 0;
  background: white;
  transform: translateX(100%);
  transition: transform .2s ease;
  box-shadow: -20px 0 44px rgba(var(--theme-heading-rgb), 0.18);
  overflow-y: auto;
  overflow-x: hidden;
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  min-height: 84px;
}
.drawer-panel header h2 {
  margin: 0;
  color: #111;
  font-size: 20px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.drawer-panel header button {
  border: 0;
  width: 38px;
  height: 38px;
  background: #e7e5e4;
  color: #111;
  border-radius: 6px;
  padding: 0;
  font-size: 24px;
  font-weight: 900;
}
.cart-delivery-card {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 26px 12px 18px;
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
  background: var(--theme-tint);
}
.cart-delivery-card .delivery-pin {
  color: var(--theme-primary-text);
  font-size: 15px;
}
.cart-delivery-card div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: white;
}
.cart-delivery-card svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--rose-strong);
  stroke-width: 1.9;
}
.cart-delivery-card strong,
.cart-delivery-card small {
  display: block;
  grid-column: 2;
  min-width: 0;
}
.cart-delivery-card strong {
  color: #181423;
  font-size: 14px;
  line-height: 1.15;
}
.cart-delivery-card small {
  display: grid;
  gap: 3px;
  margin-top: -2px;
  color: #4b4350;
  font-size: 12px;
  line-height: 1.28;
}
.cart-delivery-card small span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.cart-delivery-card button {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  padding-left: 8px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.free-shipping-box {
  padding: 14px 16px;
  border-bottom: 1px solid var(--theme-border);
}
.free-shipping-box p {
  margin: 0 0 10px;
  color: #514951;
  font-size: 13px;
  font-weight: 700;
}
.free-shipping-box div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--theme-border);
}
.free-shipping-box i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--rose-strong);
  transition: width .2s ease;
}
.drawer-panel footer {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 12px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--theme-border);
  background: white;
}
.cart-price-summary {
  display: grid;
  gap: 6px;
  padding: 2px 0 0;
}
.cart-price-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #5f5360;
  font-size: 12px;
  font-weight: 700;
}
.cart-price-summary strong {
  color: #211729;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.cart-price-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--theme-border);
}
.cart-price-summary .cart-price-total span,
.cart-price-summary .cart-price-total strong {
  color: #14091f;
  font-size: 18px;
}
.cart-items, .checkout-items {
  display: grid;
  gap: 12px;
  align-content: start;
}
.cart-line {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.cart-line img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--rose-soft);
}
.cart-line span { color: var(--muted); display: block; margin-top: 4px; }
.cart-line button {
  border: 0;
  background: transparent;
  color: var(--theme-primary-text);
  font-weight: 900;
}
.premium-cart-items {
  padding: 14px 16px;
}
.premium-cart-line {
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  border-bottom: 0;
  padding: 0;
}
.premium-cart-line img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
}
.premium-cart-line > div > strong {
  display: block;
  margin: 20px 0 6px;
  color: #111;
  font-size: 16px;
}
.premium-cart-line small {
  display: block;
  color: #111;
  font-size: 13px;
}
.premium-cart-line > strong {
  align-self: center;
  color: #111;
  white-space: nowrap;
}
.cart-qty-control {
  display: inline-grid;
  grid-template-columns: 32px 34px 32px;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
}
.cart-qty-control button,
.cart-qty-control span {
  display: grid;
  place-items: center;
  min-height: 31px;
  border: 0;
  background: white;
  color: #111;
  font-weight: 800;
}
.cart-addons {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--theme-border);
  min-width: 0;
  min-height: 214px;
  overflow: visible;
}
.cart-addons h3 {
  margin: 0 0 12px;
  color: #111;
  font-size: 15px;
}
.cart-addons h3 span {
  color: var(--muted);
  font-weight: 500;
}
.cart-addons > div {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px) / 3);
  gap: 10px;
  max-width: 100%;
  min-height: 168px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}
.cart-addons > div::-webkit-scrollbar {
  display: none;
}
.cart-addons > div.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.cart-addons article {
  display: grid;
  grid-template-rows: 68px minmax(28px, auto) 16px 31px;
  gap: 4px;
  align-content: start;
  box-sizing: border-box;
  width: 100%;
  min-height: 160px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: white;
  scroll-snap-align: start;
}
.cart-addons img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--theme-tint);
}
.cart-addons strong {
  color: #333;
  font-size: 11px;
  line-height: 1.12;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-addons span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}
.cart-addons button {
  min-height: 31px;
  margin-top: 4px;
  border: 1px solid var(--theme-border);
  border-radius: 7px;
  background: white;
  color: #111;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}
.cart-card-message {
  display: grid;
  gap: 12px;
  padding: 16px 16px 16px;
  border-top: 1px solid var(--theme-border);
  margin-top: 2px;
}
.cart-card-message h3 {
  margin: 0;
  color: #111;
  font-size: 15px;
}
.cart-card-message h3 span,
.cart-card-message label > span {
  color: var(--muted);
  font-weight: 500;
}
.cart-card-message label {
  display: grid;
  gap: 7px;
}
.cart-card-message textarea,
.cart-card-message input,
.cart-card-message select {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: #e8e8e8;
  color: #181423;
  font: inherit;
  font-size: 13px;
  padding: 12px 13px;
}
.cart-card-message textarea {
  resize: vertical;
  min-height: 72px;
}
.cart-card-message label small {
  justify-self: end;
  color: #aaa1a6;
  font-size: 12px;
}
.card-preview-button,
.card-suggestion-toggle {
  justify-self: start;
  min-height: 40px;
  border: 1px solid var(--theme-border);
  border-radius: 9px;
  background: white;
  color: #181423;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}
.card-preview-button::before {
  content: "◉";
  margin-right: 7px;
  color: var(--theme-primary-text);
}
.card-preview-box {
  display: grid;
  gap: 7px;
  padding: 13px;
  border-radius: 10px;
  background: var(--theme-surface);
  color: #4b4350;
  font-size: 13px;
}
.card-preview-box p {
  margin: 0;
  color: #181423;
  line-height: 1.45;
}
.card-preview-box span {
  color: var(--theme-primary-text);
  font-weight: 900;
}
.card-preview-box[hidden],
.card-suggestions[hidden] {
  display: none !important;
}
.card-preview-button::before {
  content: "\25C9";
}
.card-preview-button.open::before {
  content: "\2297";
}
.card-preview-box {
  place-items: center;
  gap: 16px;
  min-height: 160px;
  padding: 28px 26px;
  border: 1px solid var(--theme-border);
  background: white;
  box-shadow: 0 16px 30px rgba(var(--theme-heading-rgb), 0.08);
  font-size: 15px;
  text-align: center;
}
.card-preview-box p {
  max-width: 330px;
  color: #312a31;
  font-size: 15px;
  line-height: 1.62;
}
.card-preview-box span {
  color: #5f5860;
  font-size: 13px;
  font-weight: 700;
}
.card-suggestion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-color: transparent;
  color: #9a9197;
  padding: 0;
  background: transparent;
}
.card-suggestion-toggle span::before {
  content: "✦";
  margin-right: 7px;
  color: #ffc184;
}
.card-suggestion-toggle b {
  transition: transform .18s ease;
}
.card-suggestion-toggle.open b {
  transform: rotate(180deg);
}
.card-suggestions {
  display: grid;
  gap: 8px;
}
.card-suggestions select {
  min-height: 54px;
  padding-right: 36px;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}
.gift {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.gift input { width: auto; }
.hidden { display: none; }

.delivery-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 18, 22, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 18, 22, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.checkout-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.checkout-modal-card {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  background: white;
  box-shadow: 0 24px 60px rgba(var(--theme-heading-rgb), 0.24);
}
.checkout-modal-card.payment-open {
  width: min(900px, 100%);
}
.checkout-modal-card header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--theme-tint);
}
.checkout-modal-card h2 {
  margin: 0;
  color: #181423;
  font-size: 24px;
}
.checkout-modal-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.checkout-modal-card header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: #f2efed;
  color: #7c7378;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}
.checkout-modal-card label {
  display: grid;
  gap: 7px;
  color: #181423;
  font-size: 13px;
  font-weight: 900;
}
.checkout-modal-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: #fffaf8;
  color: #181423;
  font: inherit;
  padding: 11px 13px;
}
.checkout-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.checkout-client-fields {
  display: grid;
  gap: 14px;
}
.checkout-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.pay-now-button {
  border-color: var(--theme-border);
  background: var(--theme-surface);
  color: var(--theme-primary-text);
}
.checkout-payment-panel {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--theme-border);
}
.checkout-payment-heading {
  display: grid;
  gap: 2px;
}
.checkout-payment-heading span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.checkout-payment-heading strong {
  color: #181423;
  font-family: var(--font-serif);
  font-size: 22px;
}
.checkout-payment-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: var(--theme-surface);
}
.checkout-payment-method img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  background: white;
}
.checkout-payment-method strong {
  display: block;
  color: #181423;
  font-weight: 900;
}
.checkout-payment-method p {
  margin: 5px 0 0;
  color: #5f5360;
  font-size: 12px;
  line-height: 1.45;
}
.checkout-payment-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.checkout-modal-card.payment-open .checkout-payment-layout {
  grid-template-columns: minmax(300px, .9fr) minmax(320px, 1fr);
  align-items: start;
}
.checkout-modal-card.payment-open .checkout-payment-panel {
  padding-top: 0;
  padding-left: 18px;
  border-top: 0;
  border-left: 1px solid var(--theme-border);
}
.checkout-modal-card.is-submitting {
  overflow: hidden;
}
.checkout-modal-card.is-submitting::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(var(--theme-surface-rgb), 0.92);
}
.checkout-modal-card.is-submitting::after {
  content: "Registrando tu pedido...";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: min(250px, 76%);
  min-height: 148px;
  display: grid;
  place-items: end center;
  padding: 88px 18px 22px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42px, var(--brand-primary) 0 13px, transparent 14px),
    radial-gradient(circle at 39% 37px, var(--brand-accent) 0 12px, transparent 13px),
    radial-gradient(circle at 61% 37px, var(--brand-accent) 0 12px, transparent 13px),
    radial-gradient(circle at 45% 25px, var(--theme-border) 0 12px, transparent 13px),
    radial-gradient(circle at 55% 25px, var(--theme-border) 0 12px, transparent 13px),
    linear-gradient(180deg, transparent 58px, #2f7d57 58px 78px, transparent 78px),
    white;
  color: var(--theme-secondary-text);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 18px 45px rgba(var(--theme-heading-rgb), 0.14);
  animation: rose-loading 1.1s ease-in-out infinite;
}
.checkout-modal-card.is-submitting button,
.checkout-modal-card.is-submitting input {
  pointer-events: none;
}
@keyframes rose-loading {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -54%) scale(1.03); }
}

@media (max-width: 760px) {
  .checkout-modal {
    padding: 10px;
    align-items: start;
    overflow-y: auto;
  }

  .checkout-modal-card,
  .checkout-modal-card.payment-open {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
  }

  .checkout-modal-card.payment-open .checkout-payment-layout {
    grid-template-columns: 1fr;
  }

  .checkout-modal-card.payment-open .checkout-payment-panel {
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--theme-border);
    border-left: 0;
  }

  .checkout-payment-method {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 10px;
  }

  .checkout-payment-method img {
    width: 82px;
    height: 82px;
  }

  .checkout-action-row {
    gap: 8px;
  }
}
.delivery-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.delivery-modal-card {
  width: min(480px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.delivery-modal-card header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.delivery-modal-card h2 {
  margin: 0;
  color: #252337;
  font-size: 20px;
}
.delivery-modal-card header button {
  border: 0;
  background: transparent;
  color: #8d8a8d;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.delivery-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  border-bottom: 1px solid var(--theme-tint);
}
.delivery-method-tabs button {
  min-height: 46px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: white;
  color: #8d8a8d;
  font-weight: 900;
  cursor: pointer;
}
.delivery-method-tabs button.active {
  border-color: var(--brand-primary);
  color: var(--theme-primary-text);
}
.delivery-tab-panel {
  display: none;
  padding-top: 18px;
}
.delivery-tab-panel.active {
  display: grid;
  gap: 15px;
}
.delivery-step-label {
  color: #909090;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.delivery-date-options,
.delivery-time-options {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.delivery-date-options button,
.delivery-time-options button,
.delivery-address-input,
.delivery-tab-panel select {
  min-height: 50px;
  border: 1px solid #e8e5e6;
  border-radius: 9px;
  background: white;
  color: #514951;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.delivery-address-input {
  width: 100%;
  padding: 0 14px;
  color: #252337;
  cursor: text;
}
.delivery-address-input::placeholder {
  color: #aa9ca4;
}
.delivery-time-options button small {
  display: block;
  margin-top: 2px;
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
}
.delivery-date-options button {
  display: grid;
  gap: 2px;
  padding: 8px 12px;
}
.delivery-date-options b {
  color: #19a05f;
  font-size: 11px;
  text-transform: uppercase;
}
.delivery-date-options span {
  color: #514951;
  font-size: 13px;
}
.delivery-date-options button.active,
.delivery-time-options button.active,
.delivery-address-input:focus,
.delivery-tab-panel select:focus {
  border-color: var(--brand-primary);
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  outline: none;
}
.delivery-address-input:focus::placeholder {
  color: var(--theme-primary-text);
}
.delivery-tab-panel select {
  width: 100%;
  padding: 0 14px;
  color: var(--theme-primary-text);
}
.delivery-save-button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-primary);
  color: var(--theme-on-primary);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.pickup-card {
  display: grid;
  gap: 12px;
}
.pickup-card strong {
  color: #252337;
  font-size: 18px;
}
.pickup-card p,
.pickup-card li {
  color: #514951;
}
.pickup-card iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 12px;
  background: var(--theme-tint);
}
.pickup-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 38px clamp(18px, 5vw, 76px);
  background: var(--ink);
  color: white;
}
.site-footer p { max-width: 520px; color: rgba(255,255,255,.72); }
.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.86);
  font-weight: 800;
}

.admin-body {
  background:
    radial-gradient(circle at top right, rgba(var(--theme-primary-rgb), 0.14), transparent 24rem),
    linear-gradient(135deg, var(--theme-surface), #fffdfb);
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 8%, rgba(var(--theme-primary-rgb), 0.12), transparent 18rem),
    linear-gradient(135deg, var(--theme-surface), #fffdfb);
}
.login-card {
  width: min(380px, 100%);
  display: grid;
  gap: 14px;
  padding: 40px 32px;
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 60px rgba(var(--theme-muted-rgb), 0.1);
}
.login-card h1 {
  margin: 0;
  text-align: center;
  font-family: var(--font-title);
  font-size: 27px;
  line-height: 1.1;
}
.login-card > p {
  margin: -4px auto 16px;
  max-width: 280px;
  color: var(--muted);
  text-align: center;
  line-height: 1.35;
}
.login-card label {
  color: #6f656b;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 13px;
}
.login-card input {
  min-height: 42px;
  border-color: var(--theme-border);
  border-radius: 9px;
  background: #fffaf8;
  color: var(--ink);
}
.login-card .button {
  min-height: 46px;
  margin-top: 14px;
  border-radius: 9px;
}
.login-logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 4px;
  border: 1px solid var(--theme-border);
  border-radius: 50%;
  background: white;
  color: var(--theme-primary-text);
  font-family: var(--font-title);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(var(--theme-primary-rgb), 0.1);
}
.login-logo span {
  display: grid;
  place-items: center;
}
.login-help {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}
.login-help a {
  color: var(--theme-primary-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.centered { justify-content: center; }

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 42%),
    linear-gradient(155deg, var(--rose) 0%, var(--rose-strong) 48%, var(--guinda-deep) 100%);
  color: white;
  box-shadow: 12px 0 34px rgba(var(--theme-heading-rgb), 0.16);
}
.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}
.admin-sidebar .brand-logo {
  width: min(178px, 100%);
  max-height: 64px;
  filter: brightness(0) invert(1);
}
.admin-sidebar a {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
  color: rgba(255,255,255,.86);
}
.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: rgba(255,255,255,.18);
  color: white;
}
.admin-main {
  min-width: 0;
  padding: 30px;
}
.admin-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.admin-top h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric-grid article {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.metric-grid article::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--rose-soft);
}
.metric-grid span { color: var(--muted); font-weight: 800; }
.metric-grid strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
}
.admin-feature-stack {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}
.admin-feature {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(340px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 28px 22px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(var(--theme-border-rgb), 0.72);
  border-radius: var(--radius);
}
.admin-feature.reverse {
  grid-template-columns: minmax(340px, 1.1fr) minmax(280px, .9fr);
}
.admin-feature h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 38px);
}
.admin-feature p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.feature-preview {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 16px;
  background: var(--theme-tint);
}
.order-preview a,
.client-card-mini,
.stock-summary-card,
.client-card {
  border: 1px solid rgba(var(--theme-border-rgb), 0.86);
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 24px rgba(var(--theme-muted-rgb), 0.08);
}
.order-preview a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 16px 18px;
}
.order-preview small {
  grid-column: 2;
  color: var(--muted);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}
.dot.entregado,
.dot.confirmado { background: var(--rose-strong); }
.dot.preparacion { background: #f6b22f; }
.dot.cancelado { background: #ef4b74; }
.stock-preview,
.stock-summary-card {
  display: grid;
  gap: 14px;
}
.stock-preview > strong,
.stock-summary-card > strong {
  text-transform: uppercase;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .05em;
}
.stock-preview div,
.stock-summary-card div {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 20px rgba(var(--theme-muted-rgb), 0.06);
}
.stock-preview span,
.stock-summary-card span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}
.stock-preview b,
.stock-summary-card b {
  color: var(--theme-primary-text);
}
.stock-preview i,
.stock-summary-card i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
}
.stock-summary-card .low i { background: var(--brand-primary); }
.client-card-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  padding: 18px;
}
.client-card-mini span,
.client-card header > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
  color: white;
  font-weight: 900;
}
.client-card-mini small,
.client-card-mini em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
}
.client-card-mini em {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--rose-soft);
  color: var(--theme-primary-text);
  font-weight: 900;
}
.module-screen {
  background: var(--theme-surface);
}
.stock-board {
  display: grid;
  grid-template-columns: minmax(320px, 430px) 1fr;
  gap: 22px;
  align-items: start;
}
.stock-summary-card {
  padding: 24px;
  background: var(--theme-tint);
}
.stock-table-panel {
  min-width: 0;
  overflow-x: auto;
}
.stock-badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.stock-badge.ok { background: var(--rose-soft); color: var(--rose-strong); }
.stock-badge.warn { background: #fff3d8; color: #9a6412; }
.stock-badge.danger { background: var(--rose-soft); color: var(--rose-strong); }
.stock-inline-form {
  display: grid;
  grid-template-columns: 90px auto;
  gap: 8px;
}
.stock-inline-form input {
  min-height: 38px;
  padding: 8px 10px;
}
.stock-inline-form button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
  color: white;
  padding: 8px 10px;
  font-weight: 900;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.client-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  align-content: start;
}
.client-card header,
.client-card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}
.elegant-client-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 20px;
  border-color: var(--theme-border);
  background:
    linear-gradient(135deg, rgba(var(--theme-surface-rgb), 0.72), transparent 38%),
    white;
}
.elegant-client-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--rose-strong), var(--guinda-deep));
}
.client-card-head {
  min-width: 0;
}
.client-card-head > div {
  min-width: 0;
}
.client-card-head strong {
  display: block;
  margin-bottom: 4px;
  color: var(--theme-secondary-text);
  font-size: 15px;
}
.client-card small,
.client-history span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.client-card small {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}
.client-tags em {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--rose-soft);
  color: var(--theme-primary-text);
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
}
.client-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.client-metrics em {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--theme-tint);
  border-radius: 10px;
  background: var(--theme-surface);
}
.client-metrics em span {
  color: var(--theme-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.client-metrics em b {
  overflow: hidden;
  margin-top: 3px;
  color: var(--theme-primary-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-history-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.client-history-bar > span {
  color: var(--theme-muted);
  font-size: 11px;
  font-weight: 800;
}
.client-history-title {
  color: var(--theme-secondary-text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.client-history {
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-border) transparent;
}
.client-history a {
  position: relative;
  padding: 12px 14px 12px 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--theme-tint);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.client-history a::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), 0.12);
}
.client-history a:hover {
  transform: translateY(-1px);
  border-color: var(--theme-border);
  background: var(--theme-surface);
}
.client-history a strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}
.client-history a span {
  font-size: 11px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--rose-soft);
  color: var(--theme-primary-text);
  font-weight: 900;
  font-size: 12px;
}
.admin-filters {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 12px;
  margin-bottom: 20px;
}
.orders-screen {
  background: #fbfbf6;
}
.orders-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #e8e7df;
}
.orders-header h1 {
  margin: 0;
  font-size: 31px;
  font-family: var(--font-title);
}
.orders-header p {
  margin: 5px 0 0;
  color: #8b8b84;
}
.orders-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 6px;
  margin-bottom: 28px;
  border: 1px solid #deded6;
  border-radius: 12px;
  background: white;
  box-shadow: 0 8px 22px rgba(var(--theme-heading-rgb), 0.05);
}
.orders-tabs a {
  min-width: 150px;
  padding: 13px 22px;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
  color: #4d504a;
}
.orders-tabs a.active,
.date-pills .active,
.date-pills form button,
.orders-actions .primary,
.manual-steps .active span,
.manual-steps .done span,
.segmented .active {
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
  color: white;
  box-shadow: inset 0 -12px 24px rgba(0,0,0,.08), 0 12px 24px rgba(var(--theme-primary-rgb), 0.18);
}
.orders-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.date-pills,
.orders-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.date-pills a,
.date-pills form,
.orders-actions .ghost {
  border: 1px solid #deded6;
  border-radius: 999px;
  background: white;
}
.date-pills a,
.date-pills form button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 20px;
  font-weight: 800;
}
.date-pills form {
  display: flex;
  overflow: hidden;
}
.date-pills input {
  width: 142px;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  padding: 8px 10px;
  background: white;
}
.date-pills form button {
  border: 0;
  border-radius: 999px;
}
.orders-actions span {
  color: var(--muted);
  font-weight: 800;
}
.orders-search {
  grid-template-columns: minmax(260px, 1fr) 220px auto;
}
.orders-table-card {
  overflow-x: auto;
  border: 1px solid #deded6;
  border-radius: 10px;
  background: white;
  box-shadow: 0 12px 34px rgba(var(--theme-heading-rgb), 0.06);
}
.orders-table-head,
.delivery-row {
  display: grid;
  grid-template-columns: 42px 150px 190px 140px minmax(260px, 1.4fr) 110px minmax(240px, 1.2fr) minmax(210px, 1fr) 210px;
  gap: 16px;
  align-items: center;
}
.orders-table-head {
  padding: 18px 24px;
  color: #8d9089;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #e8e7df;
}
.delivery-group {
  border-bottom: 1px solid #e8e7df;
}
.delivery-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  background: var(--rose-soft);
  color: var(--theme-primary-text);
  cursor: pointer;
  list-style: none;
}
.delivery-group summary::-webkit-details-marker {
  display: none;
}
.delivery-group summary strong {
  font-size: 17px;
}
.delivery-group summary em {
  color: #8b8b84;
  font-style: normal;
  text-transform: uppercase;
}
.delivery-row {
  min-width: 1280px;
  padding: 18px 24px;
  border-top: 1px solid #eeeeea;
}
.delivery-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.order-number strong {
  font-size: 18px;
}
.route-status {
  color: var(--theme-primary-text);
  font-weight: 900;
}
.delivery-products {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.delivery-products::-webkit-scrollbar {
  display: none;
}
.delivery-products span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--rose);
}
.note-cell {
  display: grid;
  justify-items: start;
  gap: 4px;
  color: var(--theme-primary-text);
}
.note-cell span {
  color: #777;
}
.note-cell p {
  display: -webkit-box;
  max-width: 260px;
  margin: 0;
  overflow: hidden;
  color: var(--theme-muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.dedication-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-secondary-text);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(var(--theme-heading-rgb), 0.06);
}
.dedication-preview-btn::before {
  content: "\25C9";
  color: var(--theme-primary-text);
  font-size: 10px;
}
.dedication-preview-btn:hover {
  background: var(--rose-strong);
  border-color: var(--rose-strong);
  color: var(--theme-on-primary);
}
.dedication-preview-btn:hover::before {
  color: white;
}
.dedication-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 18, 28, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.dedication-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.dedication-modal-card {
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  background: white;
  box-shadow: 0 24px 60px rgba(var(--theme-heading-rgb), 0.24);
}
.dedication-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--theme-border);
}
.dedication-modal-card header span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dedication-modal-card h2 {
  margin: 3px 0 0;
  color: var(--theme-secondary-text);
  font-size: 24px;
}
.dedication-modal-card header button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #f7f3f0;
  color: #8c7c84;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.dedication-paper {
  display: grid;
  place-items: center;
  gap: 20px;
  min-height: 270px;
  margin: 20px;
  padding: 34px 30px 38px;
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(var(--theme-primary-rgb), 0.08), transparent 150px),
    linear-gradient(180deg, #fffdfd, var(--theme-surface));
  color: #312a31;
  text-align: center;
  box-shadow: 0 18px 34px rgba(var(--theme-heading-rgb), 0.08);
}
.dedication-paper img {
  width: min(142px, 44vw);
  max-height: 54px;
  object-fit: contain;
}
.dedication-paper p {
  max-width: 390px;
  margin: 0;
  color: #2e2630;
  font-family: var(--font-title);
  font-size: clamp(16px, 4vw, 19px);
  font-weight: 600;
  line-height: 1.68;
  white-space: pre-line;
}
.dedication-paper strong {
  color: var(--theme-primary-text);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
}
.delivery-status-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.delivery-status-form select {
  min-height: 34px;
  padding: 6px 9px;
}
.delivery-status-form button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
  color: white;
  padding: 8px 10px;
  font-weight: 900;
}
.empty-row {
  margin: 0;
  padding: 22px 24px;
  color: var(--muted);
}
.production-card {
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: white;
  box-shadow: 0 12px 34px rgba(var(--theme-heading-rgb), 0.06);
}
.production-group {
  border-bottom: 1px solid var(--theme-tint);
}
.production-group:last-child {
  border-bottom: 0;
}
.production-group summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--theme-surface), #fffaf8);
  color: var(--theme-primary-text);
  cursor: pointer;
  list-style: none;
}
.production-group summary::-webkit-details-marker {
  display: none;
}
.production-group summary strong {
  font-size: 15px;
}
.production-group summary em {
  color: #8c7c84;
  font-style: normal;
  text-transform: uppercase;
}
.production-product-row {
  display: grid;
  grid-template-columns: 112px 92px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 26px;
  border-top: 1px solid var(--theme-tint);
}
.production-qty {
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
  color: var(--theme-primary-text);
}
.production-qty strong {
  font-size: 42px;
  line-height: .9;
  font-weight: 800;
}
.production-qty span {
  color: #8c7c84;
  font-weight: 800;
}
.production-thumb {
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--rose-soft);
  box-shadow: 0 10px 24px rgba(var(--theme-heading-rgb), 0.09);
}
.production-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.production-thumb span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--theme-primary-text);
  font-weight: 900;
}
.production-info h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.1;
}
.production-order-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.production-order-chip {
  display: grid;
  min-width: 118px;
  gap: 2px;
  padding: 8px 11px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: #fffdfb;
  color: var(--theme-secondary-text);
  box-shadow: 0 7px 16px rgba(var(--theme-heading-rgb), 0.05);
}
.production-order-chip strong {
  color: #6f656b;
  font-size: 15px;
  line-height: 1;
}
.production-order-chip span {
  color: var(--theme-primary-text);
  font-weight: 900;
}
.production-order-chip small {
  margin-top: 3px;
  color: #146778;
  font-weight: 800;
}
.production-order-row {
  display: grid;
  grid-template-columns: 110px 190px minmax(300px, 1fr) minmax(240px, .8fr) 150px;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--theme-tint);
  background: #fff;
}
.production-order-id {
  display: grid;
  gap: 4px;
  width: fit-content;
  min-width: 72px;
  padding: 10px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: var(--theme-surface);
  color: var(--theme-secondary-text);
}
.production-order-id strong {
  font-size: 20px;
  line-height: 1;
}
.production-order-id span {
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
}
.production-order-client {
  display: grid;
  gap: 3px;
}
.production-order-client strong {
  font-size: 15px;
  line-height: 1.2;
}
.production-order-client span,
.production-order-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.production-order-products {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-border) transparent;
}
.production-card-message {
  appearance: none;
  display: grid;
  justify-items: start;
  max-width: 560px;
  width: 100%;
  padding: 10px 12px;
  border: 1px dashed var(--theme-border);
  border-radius: 10px;
  background: var(--theme-surface);
  color: var(--theme-muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.production-card-message strong {
  color: var(--theme-primary-text);
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.production-card-message p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.production-card-message:hover {
  border-style: solid;
  box-shadow: 0 10px 22px rgba(var(--theme-heading-rgb), 0.07);
}
.production-card-message.selected-for-print {
  border-style: solid;
  border-color: var(--rose-strong);
  background: var(--theme-surface);
}
.production-card-message.empty {
  opacity: .62;
  cursor: default;
}
.production-item-chip {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--theme-tint);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, var(--theme-surface));
  color: inherit;
  font: inherit;
  box-shadow: 0 12px 24px rgba(var(--theme-heading-rgb), 0.08);
  cursor: pointer;
  isolation: isolate;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.production-item-chip:hover {
  transform: translateY(-3px) rotateX(4deg);
  border-color: var(--theme-border);
  box-shadow: 0 18px 34px rgba(var(--theme-primary-rgb), 0.18);
}
.production-item-chip .production-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: white;
  box-shadow: inset 0 0 0 1px var(--theme-tint);
}
.production-thumb-qty {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--rose-strong);
  color: var(--theme-on-primary);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(var(--theme-primary-rgb), 0.22);
}
.production-item-chip strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}
.production-item-chip span {
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
}
.production-order-meta {
  display: grid;
  justify-items: start;
  gap: 7px;
}
.product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 20, 37, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.product-detail-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.product-detail-modal-card {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, var(--theme-surface));
  box-shadow: 0 24px 60px rgba(var(--theme-heading-rgb), 0.24);
}
.product-detail-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--theme-border);
  background: var(--theme-surface);
}
.product-detail-modal-card header span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-detail-modal-card h2 {
  margin: 3px 0 0;
  color: var(--theme-secondary-text);
  font-size: 24px;
}
.product-detail-modal-card header button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: white;
  color: #8c7c84;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  font-weight: 700;
}
.product-detail-modal-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}
.product-detail-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 224px;
  padding: 18px;
  perspective: 900px;
}
.product-detail-stage::before {
  content: "";
  position: absolute;
  inset: 22px 18px 34px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .95), rgba(var(--theme-tint-rgb), 0.86) 52%, rgba(var(--theme-primary-rgb), 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 24px 42px rgba(var(--theme-heading-rgb), 0.12);
}
.product-detail-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 132px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(var(--theme-heading-rgb), 0.16);
  filter: blur(10px);
}
.product-detail-modal-body img {
  position: relative;
  z-index: 1;
  width: min(176px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid rgba(var(--theme-tint-rgb), 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 16px 22px 34px rgba(var(--theme-heading-rgb), 0.18);
  transform: rotateY(-10deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-detail-modal-card:hover .product-detail-modal-body img {
  transform: rotateY(-4deg) rotateX(2deg) translateY(-2px);
  box-shadow: 20px 26px 40px rgba(var(--theme-heading-rgb), 0.2);
}
.product-detail-modal-body strong {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
}
.product-detail-modal-body p {
  margin: 0;
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-line;
}
.status-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(33, 24, 34, .52);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.status-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.status-modal-card {
  width: min(430px, 100%);
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: var(--theme-surface);
  box-shadow: 0 24px 60px rgba(var(--theme-heading-rgb), 0.22);
}
.status-modal-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--theme-tint);
  background: linear-gradient(135deg, var(--theme-surface), #fff);
}
.status-modal-card header span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.status-modal-card h2 {
  margin: 4px 0 0;
  color: var(--theme-secondary-text);
  font-size: 23px;
}
.status-modal-card header button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--theme-tint);
  color: var(--theme-muted);
  font-size: 26px;
  cursor: pointer;
}
.status-modal-body {
  display: grid;
  gap: 18px;
  padding: 20px;
}
.status-modal-body p {
  margin: 0;
  color: var(--theme-muted);
  line-height: 1.55;
}
.status-delivered-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  border: 1px solid #bfe9cf;
  border-radius: 999px;
  background: #edf8f0;
  color: #167444;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.status-delivered-button i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: white;
  font-style: normal;
  font-size: 11px;
}
.status-delivered-button:hover {
  transform: translateY(-1px);
  background: #167444;
  color: white;
  box-shadow: 0 14px 26px rgba(22, 116, 68, .18);
}
.print-card-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
}
.print-card-select input,
.delivery-board input[data-print-card],
.delivery-board input[data-select-print-cards] {
  width: 15px;
  height: 15px;
  accent-color: var(--rose-strong);
}
.production-send-form {
  margin: 2px 0 0;
}
.production-send-form button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-secondary-text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(var(--theme-heading-rgb), 0.08);
}
.production-send-form button span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--theme-tint);
  font-size: 13px;
}
.production-send-form button b {
  line-height: 1;
}
.production-send-form button:hover {
  background: var(--rose-strong);
  border-color: var(--rose-strong);
  color: var(--theme-on-primary);
}
.production-send-form button:hover span {
  background: white;
}
.delivery-board {
  overflow-x: auto;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: white;
  box-shadow: 0 12px 34px rgba(var(--theme-heading-rgb), 0.06);
}
.delivery-board-head,
.delivery-board-row {
  display: grid;
  grid-template-columns: 36px 120px 150px 130px minmax(250px, 1.25fr) minmax(190px, .9fr) minmax(240px, 1fr) minmax(180px, .9fr) 140px;
  gap: 14px;
  align-items: center;
  min-width: 1260px;
}
.delivery-board-head {
  padding: 14px 20px;
  color: #8c7c84;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--theme-border);
  background: #fffdfb;
}
.delivery-board-group {
  border-bottom: 1px solid var(--theme-tint);
}
.delivery-board-group:last-child {
  border-bottom: 0;
}
.delivery-board-group summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 1260px;
  min-height: 42px;
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--theme-surface), var(--theme-surface));
  color: var(--theme-primary-text);
  cursor: pointer;
  list-style: none;
}
.delivery-board-group summary::-webkit-details-marker {
  display: none;
}
.delivery-board-group summary strong {
  font-size: 14px;
}
.delivery-board-group summary em {
  color: #8c7c84;
  font-style: normal;
  text-transform: uppercase;
}
.delivery-board-row {
  padding: 15px 20px;
  border-top: 1px solid var(--theme-tint);
  color: #2b2230;
}
.delivery-board-row:hover {
  background: var(--theme-surface);
}
.delivery-board-row .order-number strong {
  font-size: 16px;
}
.delivery-board-row .order-number small,
.delivery-board-row small {
  color: #8c7c84;
  font-size: 11px;
}
.delivery-board-row .delivery-products span {
  line-height: 1.35;
}
.delivery-product-thumb {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: visible;
  padding: 0;
  border: 1px solid var(--theme-tint);
  border-radius: 12px;
  background: var(--theme-surface);
  box-shadow: 0 8px 18px rgba(var(--theme-heading-rgb), 0.06);
  cursor: pointer;
}
.delivery-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.delivery-product-thumb span {
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
}
.delivery-product-thumb b {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose-strong);
  color: var(--theme-on-primary);
  font-size: 11px;
  font-weight: 900;
}
.delivery-board-row .note-cell span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8c7c84;
  background: var(--theme-tint);
}
.shipping-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4d504a;
  line-height: 1.25;
}
.route-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf7f4;
  color: #20705d;
  font-size: 12px;
  font-weight: 900;
}
.route-status i {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: white;
  color: currentColor;
  font-style: normal;
  font-size: 10px;
  line-height: 1;
}
.route-status.new { background: #fff0f5; color: var(--rose-strong); }
.route-status.confirmed { background: #f0f7ed; color: #2f7d4c; }
.route-status.preparing { background: #fff7e7; color: #9b681c; }
.route-status.route { background: #eaf7fb; color: #146778; }
.route-status.store { background: #fff3df; color: #9a5b13; }
.route-status.delivered { background: #edf8f0; color: #167444; }
.route-status.cancelled { background: #fff0f0; color: #b3261e; }
.status-update-trigger {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.status-update-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(20, 103, 120, .14);
  background: #dff3f8;
}
.status-update-trigger.store:hover {
  box-shadow: 0 10px 20px rgba(154, 91, 19, .14);
  background: #ffe9c5;
}
.status-update-trigger:focus-visible {
  outline: 3px solid rgba(var(--theme-primary-rgb), 0.24);
  outline-offset: 3px;
}
.delivery-action-cell {
  display: grid;
  align-items: center;
}
.delivery-delivered-form {
  margin: 0;
}
.delivery-delivered-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #bfe9cf;
  border-radius: 999px;
  background: #edf8f0;
  color: #167444;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.delivery-delivered-form button span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: white;
  color: currentColor;
  font-size: 10px;
}
.delivery-delivered-form button:hover {
  background: #167444;
  color: white;
}
.manual-order-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(33, 36, 32, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.manual-order-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.manual-order-card {
  width: min(720px, 96vw);
  max-height: min(94vh, 860px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
}
.manual-order-card > header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding: 28px 30px 20px;
  border-bottom: 1px solid #e8e7df;
}
.manual-order-card h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 27px;
}
.manual-order-card header p {
  margin: 6px 0 0;
  color: var(--muted);
}
.manual-order-card header button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #f4f4ef;
  color: #8b8b84;
  font-size: 34px;
  line-height: 1;
}
.manual-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 20px 30px 14px;
  border-bottom: 1px solid #e8e7df;
}
.manual-steps button {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--theme-primary-text);
}
.manual-steps button::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 44px;
  right: 0;
  height: 3px;
  background: var(--theme-tint);
}
.manual-steps button:last-child::before {
  display: none;
}
.manual-steps span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--theme-tint);
  background: var(--rose-soft);
  color: #8b8b84;
  font-weight: 900;
}
.manual-step {
  display: none;
  overflow: auto;
  padding: 22px 30px;
}
.manual-step.active {
  display: grid;
  gap: 14px;
}
.manual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.manual-add-grid {
  display: grid;
  grid-template-columns: minmax(110px, .95fr) minmax(130px, .95fr) auto;
  gap: 12px;
  align-items: end;
}
.manual-add-grid .button {
  min-height: 50px;
  border-radius: 10px;
  white-space: nowrap;
}
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.segmented button {
  min-height: 44px;
  border: 1px solid #deded6;
  border-radius: 8px;
  background: #fbfbf6;
  font-weight: 900;
}
.manual-product-box {
  display: grid;
  gap: 12px;
}
.manual-product-box.hidden {
  display: none !important;
}
.manual-product-results {
  display: block;
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid #e8e7df;
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: inset 0 -16px 22px rgba(var(--theme-heading-rgb), 0.03);
}
.manual-product-results.hidden {
  display: none !important;
}
.manual-product-box.picker-open .manual-product-results,
.product-search-wrap:focus-within + .manual-product-results {
  display: block !important;
}
.manual-product-results button {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--theme-tint);
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.manual-product-results button:last-child {
  border-bottom: 0;
}
.manual-product-results button:hover {
  background: var(--theme-surface);
}
.manual-product-results img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--rose-soft);
}
.manual-product-results span {
  font-weight: 800;
}
.manual-product-results strong {
  color: #8c7c84;
  font-weight: 700;
  white-space: nowrap;
}
.manual-product-results p {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  text-align: center;
}
.manual-step[data-manual-step="2"] {
  gap: 12px;
}
.manual-step[data-manual-step="2"] > label {
  margin-top: 2px;
}
.manual-items-list {
  display: grid;
  gap: 8px;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px dashed #deded6;
  border-radius: 8px;
  background: #fbfbf6;
  color: var(--muted);
  text-align: center;
  align-items: center;
}
.manual-items-list article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: #fffdfb;
  color: var(--ink);
  text-align: left;
}
.manual-items-list article strong span {
  color: var(--muted);
  font-weight: 700;
}
.manual-items-list article em {
  color: var(--muted);
  font-style: normal;
}
.manual-items-list button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--theme-border);
  border-radius: 50%;
  background: white;
  color: var(--theme-primary-text);
  font-weight: 900;
}
.manual-materials {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e8e7df;
  border-radius: 8px;
  background: #fbfbf6;
}
.manual-materials > strong {
  color: #8c7c84;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 12px;
}
.manual-materials > strong span {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.manual-materials > div {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  gap: 10px;
}
.manual-materials input {
  min-height: 42px;
}
.manual-materials button {
  min-height: 42px;
  border: 1px solid #deded6;
  border-radius: 8px;
  background: white;
  color: var(--ink-soft);
  font-weight: 900;
}
.manual-order-card > footer {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding: 20px 30px;
  border-top: 1px solid #e8e7df;
  background: rgba(255,255,255,.92);
}
.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 16px;
  align-items: start;
}
.kanban-col {
  min-height: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--theme-tint);
}
.kanban-col h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.order-card {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 6px 18px rgba(var(--theme-muted-rgb), 0.05);
}
.order-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.order-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.status-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.status-form button {
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  padding: 9px 12px;
  font-weight: 900;
}
.product-admin-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: start;
}
.thumb {
  display: inline-block;
  width: 46px;
  height: 46px;
  margin-right: 8px;
  object-fit: cover;
  border-radius: var(--radius);
  vertical-align: middle;
}
.thumb.wide {
  width: 74px;
  object-fit: cover;
}
.promo-admin-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--rose-soft);
}
.promotions-list-panel {
  overflow: hidden;
}
.promotions-list-panel .section-head.compact {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.promotions-list-panel .section-head.compact h2 {
  margin-bottom: 4px;
}
.promotions-list-panel .section-head.compact p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.promotions-list-panel .section-head.compact > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--theme-primary-text);
  font-size: 12px;
  font-weight: 900;
}
.promotions-table {
  border-collapse: separate;
  border-spacing: 0 10px;
}
.promotions-table thead th {
  padding: 8px 12px;
  border-bottom: 0;
  color: var(--theme-muted);
  font-size: 11px;
}
.promotions-table tbody tr {
  background: var(--theme-surface);
  box-shadow: 0 8px 22px rgba(var(--theme-muted-rgb), 0.05);
}
.promotions-table tbody td {
  padding: 12px;
  border-top: 1px solid var(--theme-tint);
  border-bottom: 1px solid var(--theme-tint);
  vertical-align: middle;
}
.promotions-table tbody td:first-child {
  border-left: 1px solid var(--theme-tint);
  border-radius: 10px 0 0 10px;
}
.promotions-table tbody td:last-child {
  border-right: 1px solid var(--theme-tint);
  border-radius: 0 10px 10px 0;
}
.promo-row-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.promo-row-main .thumb.wide {
  width: 92px;
  height: 54px;
  margin: 0;
  border: 1px solid var(--theme-tint);
  border-radius: 8px;
  background: var(--rose-soft);
  box-shadow: 0 8px 18px rgba(var(--theme-primary-rgb), 0.08);
}
.promo-empty-thumb {
  display: grid;
  place-items: center;
  color: var(--theme-primary-text);
  font-weight: 900;
}
.promo-row-main strong,
.promo-row-main small,
.promo-row-main em {
  display: block;
  min-width: 0;
}
.promo-row-main strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}
.promo-row-main small {
  max-width: 560px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.promo-row-main em {
  margin-top: 5px;
  color: var(--theme-primary-text);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.settings-admin-grid {
  grid-template-columns: minmax(320px, 430px) minmax(280px, 1fr);
}
.settings-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.settings-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.settings-preview article {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--theme-surface);
}
.settings-preview article strong {
  color: var(--theme-primary-text);
  font-size: 24px;
}
.settings-preview article p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blush);
}
.check-row input {
  width: auto;
}
.table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
td.table-actions,
td[data-label="Acciones"].table-actions {
  display: table-cell;
  min-width: 116px;
  border-bottom-color: var(--line);
  background: transparent;
  text-align: center;
  white-space: nowrap;
}
.table-actions form {
  margin: 0;
}
td.table-actions form,
td[data-label="Acciones"].table-actions form {
  display: inline-flex;
  margin-left: 6px;
  vertical-align: middle;
}
td.table-actions .action-icon,
td[data-label="Acciones"].table-actions .action-icon {
  margin-left: 6px;
  vertical-align: middle;
}
td.table-actions .action-icon:first-child,
td[data-label="Acciones"].table-actions .action-icon:first-child {
  margin-left: 0;
}
td.table-actions form .action-icon,
td[data-label="Acciones"].table-actions form .action-icon {
  margin-left: 0;
}
.table-actions button:not(.action-icon) {
  border: 0;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--theme-primary-text);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}
.danger { color: #b3261e; margin-left: 8px; font-weight: 900; }
.action-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--theme-tint);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  box-shadow: 0 8px 18px rgba(var(--theme-primary-rgb), 0.08);
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.action-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.action-icon:hover {
  transform: translateY(-1px);
  background: var(--rose);
  color: white;
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.18);
}
.action-icon.danger,
button.action-icon.danger {
  margin-left: 0;
  border-color: #ffd3dc;
  background: #fff1f4;
  color: #b3261e;
}
.action-icon.danger:hover,
button.action-icon.danger:hover {
  background: #b3261e;
  color: white;
}

.admin-body {
  font-size: 13px;
  background:
    radial-gradient(circle at top right, rgba(var(--theme-primary-rgb), 0.12), transparent 24rem),
    linear-gradient(135deg, #fffaf8, #fff);
}
.admin-body .admin-layout {
  grid-template-columns: 250px 1fr;
}
.admin-body .admin-sidebar {
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 42%),
    linear-gradient(155deg, var(--rose) 0%, var(--rose-strong) 48%, var(--guinda-deep) 100%);
}
.admin-body .admin-sidebar .brand {
  font-size: 13px;
}
.admin-body .admin-sidebar .brand span {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
}
.admin-body .admin-sidebar nav {
  gap: 6px;
  margin-top: 28px;
}
.admin-body .admin-sidebar a {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  color: rgba(255,255,255,.88);
}
.admin-body .admin-sidebar a.active,
.admin-body .admin-sidebar a:hover {
  background: rgba(255,255,255,.2);
  color: white;
}
.admin-body .admin-main {
  padding: 24px 28px;
}
.admin-body .admin-top {
  margin-bottom: 20px;
}
.admin-body .admin-top h1 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
}
.admin-body .eyebrow {
  font-size: 11px;
  color: var(--theme-primary-text);
  letter-spacing: .13em;
}
.admin-body .button {
  min-height: 40px;
  padding: 10px 17px;
  font-size: 13px;
  border-radius: 999px;
}
.admin-body .primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
}
.admin-body .secondary {
  background: var(--guinda-deep);
}
.admin-body .ghost {
  color: var(--theme-secondary-text);
}
.admin-body .admin-panel,
.admin-body .filters,
.admin-body .checkout-form {
  padding: 18px;
  border-color: var(--theme-border);
  box-shadow: 0 12px 34px rgba(var(--theme-heading-rgb), 0.07);
}
.admin-body .admin-panel h2,
.admin-body .section-head h2,
.admin-body .product-form h2 {
  font-size: 20px;
  line-height: 1.12;
}
.admin-body label {
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}
.admin-body input,
.admin-body select,
.admin-body textarea {
  min-height: 40px;
  padding: 10px 13px;
  border-color: var(--theme-border);
  border-radius: 8px;
  background: #fffaf8;
  font-size: 13px;
}
.admin-body textarea {
  min-height: 96px;
}
.admin-body table {
  font-size: 12px;
}
.admin-body th,
.admin-body td {
  padding: 10px 11px;
}
.admin-body th {
  color: #8c7c84;
  font-size: 11px;
  letter-spacing: .06em;
}
.admin-body .metric-grid article {
  min-height: 104px;
  padding: 18px;
}
.admin-body .metric-grid strong {
  font-size: 28px;
}
.admin-body .status,
.admin-body .stock-badge,
.admin-body .table-actions button {
  font-size: 11px;
  padding: 6px 10px;
}
.admin-body .table-actions {
  gap: 8px;
}
.admin-body .thumb {
  width: 42px;
  height: 42px;
}
.admin-body .thumb.wide {
  width: 66px;
}
.admin-body .notice,
.admin-body .alert {
  font-size: 13px;
}
.admin-body .orders-screen {
  font-size: 12px;
  background:
    radial-gradient(circle at top right, rgba(var(--theme-primary-rgb), 0.08), transparent 22rem),
    #fffdfb;
}
.admin-body .orders-header h1 {
  font-size: 28px;
}
.admin-body .orders-header p {
  font-size: 12px;
}
.admin-body .orders-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 5px;
}
.admin-body .orders-tabs a {
  min-width: 118px;
  padding: 10px 16px;
  font-size: 12px;
}
.admin-body .date-pills a,
.admin-body .date-pills form button {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12px;
}
.admin-body .date-pills input {
  min-height: 36px;
  font-size: 12px;
}
.admin-body .orders-actions span {
  font-size: 12px;
}
.admin-body .orders-table-card {
  border-color: var(--theme-border);
  box-shadow: 0 12px 34px rgba(var(--theme-heading-rgb), 0.06);
}
.admin-body .orders-table-head,
.admin-body .delivery-row {
  grid-template-columns: 34px 120px 130px 120px minmax(220px, 1.4fr) 82px minmax(210px, 1.1fr) minmax(170px, 1fr) 170px;
  gap: 12px;
}
.admin-body .orders-table-head {
  padding: 13px 18px;
  font-size: 11px;
  color: #8c7c84;
}
.admin-body .delivery-group summary {
  min-height: 42px;
  padding: 10px 18px;
  background: var(--theme-surface);
}
.admin-body .delivery-group summary strong {
  font-size: 13px;
  color: var(--theme-primary-text);
}
.admin-body .delivery-group summary em,
.admin-body .empty-row,
.admin-body .delivery-row small {
  font-size: 11px;
}
.admin-body .delivery-row {
  min-width: 1120px;
  padding: 13px 18px;
  font-size: 12px;
}
.admin-body .order-number strong {
  font-size: 14px;
}
.admin-body .delivery-products {
  gap: 10px;
}
.admin-body .delivery-products span::before {
  width: 6px;
  height: 6px;
}
.admin-body .order-actions-cell {
  display: grid;
  gap: 7px;
}
.admin-body .delivery-status-form {
  gap: 5px;
}
.admin-body .delivery-status-form strong {
  font-size: 12px;
  color: var(--theme-secondary-text);
}
.admin-body .delivery-status-form select {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}
.admin-body .delivery-status-form button {
  min-height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-strong));
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(var(--theme-primary-rgb), 0.16);
}
.admin-body .delete-order-form button {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--theme-tint);
  border-radius: 999px;
  background: var(--theme-surface);
  color: #b3261e;
  font-size: 11px;
  font-weight: 900;
}
.admin-body .production-group summary {
  min-height: 42px;
  padding: 10px 18px;
}
.admin-body .production-group summary strong {
  font-size: 13px;
}
.admin-body .production-product-row {
  grid-template-columns: 86px 74px 1fr;
  gap: 16px;
  padding: 16px 20px;
}
.admin-body .production-qty strong {
  font-size: 34px;
}
.admin-body .production-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}
.admin-body .production-info h3 {
  margin-bottom: 8px;
  font-size: 18px;
}
.admin-body .production-order-chip {
  min-width: 104px;
  padding: 7px 9px;
}
.admin-body .production-order-chip strong {
  font-size: 13px;
}
.admin-body .production-order-chip span,
.admin-body .production-order-chip small {
  font-size: 11px;
}
.admin-body .production-order-row {
  grid-template-columns: 86px 150px minmax(260px, 1fr) minmax(220px, .75fr) 132px;
  gap: 14px;
  padding: 14px 18px;
}
.admin-body .production-order-id {
  min-width: 62px;
  padding: 8px 10px;
}
.admin-body .production-order-id strong {
  font-size: 17px;
}
.admin-body .production-order-client strong,
.admin-body .production-item-chip strong {
  font-size: 13px;
}
.admin-body .production-item-chip {
  grid-template-columns: 40px 1fr;
  max-width: 520px;
  padding: 7px 9px;
}
.admin-body .production-item-chip .production-thumb {
  width: 40px;
  height: 40px;
}
.admin-body .production-order-client span,
.admin-body .production-order-id span,
.admin-body .production-item-chip span,
.admin-body .production-order-meta small,
.admin-body .production-card-message p {
  font-size: 11px;
}
.admin-body .delivery-board-head,
.admin-body .delivery-board-row {
  grid-template-columns: 96px 122px 108px minmax(145px, .82fr) 126px minmax(220px, 1.18fr);
  gap: 11px;
  min-width: 920px;
}
.admin-body .delivery-board-head {
  padding: 12px 18px;
  font-size: 11px;
}
.admin-body .delivery-board-group summary {
  min-width: 920px;
  min-height: 40px;
  padding: 9px 18px;
}
.admin-body .delivery-board-group summary strong {
  font-size: 13px;
}
.admin-body .delivery-board-row {
  padding: 12px 18px;
  font-size: 12px;
}
.admin-body .delivery-board-row .order-number strong {
  font-size: 14px;
}
.admin-body .route-status {
  min-height: 23px;
  padding: 4px 8px;
  font-size: 11px;
}
.admin-body .route-status i {
  width: 15px;
  height: 15px;
  font-size: 9px;
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .brand-logo {
    width: clamp(112px, 28vw, 165px);
    max-height: 48px;
  }
  .menu-toggle { display: inline-flex; justify-content: center; align-items: center; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
    padding: 10px 0 2px;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .home-site-header .main-nav.open {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(25,20,37,.72);
    backdrop-filter: blur(14px);
  }
  .header-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
  .hero,
  .product-detail,
  .checkout-shell,
  .catalog-shell,
  .product-admin-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .magia-hero {
    min-height: 760px;
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 150px;
    background-position: center right 30%;
  }
  .hero-copy {
    max-width: 720px;
  }
  .hero-product {
    min-height: 420px;
    max-width: 680px;
    width: 100%;
  }
  .hero-carousel {
    min-height: 420px;
    max-width: 680px;
    width: 100%;
  }
  .filters,
  .checkout-form,
  .admin-sidebar { position: static; height: auto; }
  .checkout-experience,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-band,
  .promo-grid,
  .trend-grid,
  .metric-grid,
  .kanban {
    grid-template-columns: 1fr;
  }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-feature,
  .admin-feature.reverse,
  .web-feature-row,
  .web-feature-row.reverse,
  .stock-board,
  .client-grid {
    grid-template-columns: 1fr;
  }
  .orders-toolbar,
  .orders-header {
    display: grid;
  }
  .orders-search {
    grid-template-columns: 1fr;
  }
  .manual-grid,
  .manual-steps,
  .manual-add-grid,
  .manual-materials > div {
    grid-template-columns: 1fr;
  }
  .promo-modal-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }
  .promo-modal-card > img {
    min-height: 240px;
    max-height: 320px;
  }
  .manual-steps button::before {
    display: none;
  }
}

@media (max-width: 640px) {
  body.admin-body {
    min-width: 0;
    overflow-x: hidden;
  }
  .admin-body .admin-layout {
    display: block;
    width: 100%;
  }
  .admin-body .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px;
    border-radius: 0 0 14px 14px;
  }
  .admin-body .admin-sidebar .brand {
    margin-bottom: 10px;
  }
  .admin-body .admin-sidebar .brand-logo {
    width: 136px;
    max-height: 46px;
  }
  .admin-body .admin-sidebar nav {
    display: flex;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .admin-body .admin-sidebar nav::-webkit-scrollbar {
    display: none;
  }
  .admin-body .admin-sidebar a {
    flex: 0 0 auto;
    padding: 9px 11px;
    font-size: 12px;
    white-space: nowrap;
  }
  .admin-body .admin-main {
    width: 100%;
    min-width: 0;
    padding: 16px 12px 28px;
  }
  .admin-body .admin-top,
  .admin-body .orders-header {
    gap: 12px;
  }
  .admin-body .admin-top h1,
  .admin-body .orders-header h1 {
    font-size: 25px;
    line-height: 1.1;
  }
  .admin-body .admin-top .button,
  .admin-body .orders-header .button {
    width: 100%;
    justify-self: stretch;
  }
  .admin-body .product-admin-grid,
  .admin-body .stock-board,
  .admin-body .client-grid,
  .admin-body .metric-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .admin-body .admin-panel,
  .admin-body .filters,
  .admin-body .checkout-form,
  .admin-body .stock-summary-card,
  .admin-body .client-card {
    width: 100%;
    min-width: 0;
    padding: 14px;
    border-radius: 10px;
  }
  .admin-body .elegant-client-card {
    padding: 16px;
  }
  .admin-body .client-card-head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
  }
  .admin-body .client-card-head > span {
    width: 42px;
    height: 42px;
    font-size: 12px;
  }
  .admin-body .client-metrics {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .admin-body .client-metrics em {
    min-height: 48px;
    padding: 9px 10px;
  }
  .admin-body .client-history {
    max-height: 230px;
  }
  .admin-body .client-history-bar {
    align-items: flex-start;
  }
  .admin-body .section-head.compact {
    display: grid;
    gap: 6px;
  }
  .admin-body .admin-panel table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
  }
  .admin-body .admin-panel thead {
    display: none;
  }
  .admin-body .admin-panel tbody,
  .admin-body .admin-panel tr,
  .admin-body .admin-panel td {
    display: block;
    width: 100%;
  }
  .admin-body .admin-panel tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(var(--theme-heading-rgb), 0.05);
  }
  .admin-body .admin-panel td {
    min-height: auto;
    padding: 10px 12px;
    border-bottom: 1px solid var(--theme-tint);
  }
  .admin-body .admin-panel td:last-child {
    border-bottom: 0;
  }
  .admin-body .admin-panel td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .admin-body .admin-panel td[data-label="Producto"],
  .admin-body .admin-panel td[data-label="Complemento"],
  .admin-body .admin-panel td[data-label="Promocion"] {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 8px;
    align-items: center;
  }
  .admin-body .admin-panel td[data-label="Producto"]::before,
  .admin-body .admin-panel td[data-label="Complemento"]::before,
  .admin-body .admin-panel td[data-label="Promocion"]::before {
    grid-column: 1 / -1;
  }
  .admin-body .promotions-table td[data-label="Promocion"] {
    display: block;
  }
  .admin-body .promotions-table td[data-label="Promocion"]::before {
    display: block;
  }
  .admin-body .promo-row-main {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .admin-body .promo-row-main .thumb.wide {
    width: 78px;
    height: 52px;
  }
  .admin-body .promotions-table tbody tr {
    border-color: var(--theme-tint);
    background: var(--theme-surface);
  }
  .admin-body .promotions-table tbody td {
    border: 0;
  }
  .admin-body .promotions-list-panel .section-head.compact > span {
    width: max-content;
  }
  .admin-body .table-actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--theme-tint);
    border-bottom: 0;
    background: var(--theme-surface);
  }
  .admin-body .table-actions::before {
    flex: 0 0 100%;
    margin-bottom: 2px;
  }
  .admin-body .table-actions a,
  .admin-body .table-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--theme-surface);
    color: var(--theme-primary-text);
    font-size: 12px;
    font-weight: 900;
  }
  .admin-body .table-actions .action-icon,
  .admin-body .table-actions button.action-icon {
    display: inline-grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
  }
  .admin-body .table-actions .action-icon svg {
    width: 17px;
    height: 17px;
  }
  .admin-body .table-actions .danger,
  .admin-body .table-actions button.danger {
    color: #b3261e;
  }
  .admin-body .table-actions .action-icon.danger,
  .admin-body .table-actions button.action-icon.danger {
    color: #b3261e;
  }
  .admin-body .stock-inline-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .admin-body .thumb {
    width: 46px;
    height: 46px;
    margin: 0;
  }
  .site-header {
    gap: 10px;
    padding: 10px 12px;
  }
  .home-site-header {
    background: linear-gradient(180deg, rgba(25,20,37,.82), rgba(25,20,37,.28));
  }
  .brand { font-size: 15px; }
  .brand-logo {
    width: min(118px, 40vw);
    max-height: 40px;
  }
  .menu-toggle,
  .cart-btn,
  .icon-link {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
  }
  .search input { width: 100%; }
  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }
  .icon-link { display: none; }
  .hero {
    min-height: auto;
    padding: 34px 16px 42px;
  }
  .magia-hero {
    min-height: 680px;
    padding: 128px 18px 52px;
    background:
      linear-gradient(180deg, rgba(25,20,37,.56) 0%, rgba(var(--theme-heading-rgb), 0.48) 42%, rgba(25,20,37,.82) 100%),
      var(--hero-bg),
      linear-gradient(135deg, var(--rose), var(--guinda-deep));
    background-size: cover;
    background-position: center top;
  }
  .hero::before {
    font-size: 58px;
    bottom: 6px;
  }
  .magia-hero::before {
    font-size: 62px;
    bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1;
  }
  .magia-hero h1 {
    max-width: 360px;
    font-size: clamp(40px, 13vw, 56px);
    line-height: .9;
  }
  .hero p {
    font-size: 14px;
  }
  .magia-hero p {
    max-width: 340px;
  }
  .hero-actions .button {
    min-height: 42px;
    padding: 11px 15px;
    font-size: 13px;
  }
  .magia-hero .hero-actions {
    gap: 8px;
  }
  .magia-hero .hero-actions .button {
    flex: 1 1 145px;
  }
  .hero-highlights {
    gap: 6px;
  }
  .hero-highlights span {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .hero-product,
  .hero-carousel {
    min-height: auto;
    aspect-ratio: 1 / 1.04;
  }
  .hero-product-badge {
    top: 18px;
    left: 18px;
    font-size: 11px;
  }
  .hero-product div,
  .hero-slide div {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px;
    font-size: 12px;
  }
  .hero-feature-pill {
    margin-top: 20px;
    padding: 13px 14px;
  }
  .hero-dots {
    right: 10px;
    gap: 9px;
  }
  .hero-dots span {
    width: 10px;
    height: 10px;
  }
  .product-grid { grid-template-columns: 1fr; }
  .client-stats {
    grid-template-columns: 1fr;
  }
  .web-feature-preview {
    padding: 18px;
  }
  .section-head,
  .admin-top,
  .site-footer {
    display: grid;
    align-items: start;
  }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line button,
  .cart-line > div:last-child { grid-column: 2; }
  .checkout-steps { grid-template-columns: 1fr; }
  .checkout-totals div,
  .checkout-note {
    display: grid;
  }
  .admin-sidebar nav { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .delivery-board-row .delivery-products,
  .admin-body .delivery-board-row .delivery-products {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 28px 10px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .delivery-board-row .delivery-products::-webkit-scrollbar,
  .admin-body .delivery-board-row .delivery-products::-webkit-scrollbar {
    display: none;
  }
  .delivery-board-row .delivery-products::before,
  .admin-body .delivery-board-row .delivery-products::before {
    position: absolute;
    top: 9px;
    left: 10px;
    flex: none;
  }
  .delivery-product-thumb,
  .admin-body .delivery-product-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    scroll-snap-align: start;
  }
}

/* Ajuste final del panel de pedidos: tabs lineales e historial propio. */
.admin-body .orders-tabs,
.orders-tabs {
  display: inline-flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  gap: 6px;
}

.admin-body .orders-tabs a,
.orders-tabs a {
  flex: 0 0 auto;
  min-width: 150px;
  white-space: nowrap;
}

.history-orders-board {
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(var(--theme-heading-rgb), 0.07);
}

.history-orders-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--theme-tint);
  background: linear-gradient(135deg, #fff, var(--theme-surface));
}

.history-orders-headline span {
  color: var(--theme-primary-text);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.history-orders-headline h2 {
  margin: 4px 0 0;
  color: var(--theme-secondary-text);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.history-orders-headline > strong {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  font-size: 12px;
}

.history-orders-table {
  overflow-x: auto;
}

.history-orders-head,
.history-orders-row {
  display: grid;
  grid-template-columns: 110px 160px minmax(180px, .9fr) minmax(280px, 1.25fr) 130px 190px;
  gap: 16px;
  align-items: center;
  min-width: 1050px;
}

.history-orders-head {
  padding: 15px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #8c7c84;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.history-orders-row {
  padding: 16px 22px;
  border-bottom: 1px solid var(--theme-tint);
  color: #2b2230;
  font-size: 13px;
}

.history-orders-row:last-child {
  border-bottom: 0;
}

.history-orders-row:hover {
  background: var(--theme-surface);
}

.history-orders-row [data-mobile-label="#Pedido"] strong,
.history-orders-row [data-mobile-label="Precio"] strong {
  color: var(--theme-secondary-text);
  font-weight: 900;
}

@media (max-width: 760px) {
  .admin-body .orders-tabs,
  .orders-tabs {
    display: flex;
    width: 100%;
    grid-template-columns: none;
    padding: 5px;
  }

  .admin-body .orders-tabs a,
  .orders-tabs a {
    flex: 1 0 max-content;
    min-width: max-content;
    padding: 10px 12px;
    text-align: center;
  }

  .history-orders-board {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .history-orders-headline {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
  }

  .history-orders-table {
    display: grid;
    gap: 12px;
    overflow: visible;
  }

  .history-orders-head {
    display: none;
  }

  .history-orders-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--theme-tint);
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 28px rgba(var(--theme-heading-rgb), 0.06);
  }

  .history-orders-row > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--theme-tint);
    border-radius: 10px;
    background: var(--theme-surface);
    word-break: break-word;
  }

  .history-orders-row > div::before {
    content: attr(data-mobile-label);
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .history-orders-row > [data-mobile-label="Producto"],
  .history-orders-row > [data-mobile-label="Fecha"] {
    grid-column: 1 / -1;
  }
}

/* Final public navbar and celebration carousel */
.campaign-search-row {
  min-height: 72px;
  padding: 8px clamp(16px, 5vw, 72px) 0;
}

.campaign-logo img {
  width: clamp(118px, 9vw, 154px);
  height: clamp(42px, 4vw, 58px);
}

.campaign-menu {
  min-height: 43px;
  gap: clamp(18px, 2.2vw, 34px);
  padding: 6px clamp(16px, 5vw, 72px) 12px;
  background: var(--brand-primary);
}

.campaign-menu a {
  color: rgba(255, 255, 255, .96);
  font-size: clamp(12px, .82vw, 14px);
  font-weight: 800;
  letter-spacing: 0;
}

.campaign-menu a:hover {
  color: #ffe070;
}

.top-strip {
  background: var(--guinda-deep);
  color: var(--theme-on-secondary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 75;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: var(--brand-primary);
  box-shadow: 0 10px 28px rgba(var(--theme-heading-rgb), 0.12);
}

.site-header .brand-logo {
  filter: brightness(0) invert(1);
}

.site-header .main-nav a {
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header .main-nav a:hover {
  color: #ffe070;
}

.site-header .search input,
.site-header .icon-link,
.site-header .cart-btn,
.site-header .menu-toggle {
  border-color: rgba(255, 255, 255, .4);
  background: white;
  color: var(--theme-secondary-text);
}

.celebration-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(18px, 7vw, 150px) 30px;
  background: var(--theme-surface);
}

.celebration-heading {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.celebration-heading h2 {
  margin: 0;
  color: #17315a;
  font-family: var(--font-body);
  font-size: clamp(25px, 2vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}

.celebration-heading h2 strong {
  font-weight: 900;
}

.celebration-heading p {
  margin: 0;
  color: var(--theme-muted);
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
}

.celebration-track {
  justify-content: flex-start;
  gap: clamp(18px, 2.6vw, 36px);
  padding: 8px 2px 0;
}

.celebration-item {
  flex: 0 0 clamp(92px, 8.4vw, 124px);
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.celebration-item span {
  width: clamp(76px, 6.2vw, 98px);
  border: 3px solid rgba(255, 255, 255, .86);
  box-shadow: 0 12px 24px rgba(var(--theme-heading-rgb), 0.1);
}

.celebration-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.celebration-item strong {
  max-width: 124px;
  color: var(--theme-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.celebration-item:hover strong,
.celebration-item:focus-visible strong {
  color: var(--theme-primary-text);
  font-weight: 800;
}

.celebration-arrow {
  align-self: end;
  margin-bottom: 34px;
  color: var(--theme-accent-text);
  font-size: 38px;
}

.celebration-arrow:hover {
  background: white;
  color: var(--theme-primary-text);
}

@media (max-width: 760px) {
  .campaign-search-row {
    min-height: 60px;
  }

  .campaign-logo img {
    width: 118px;
    height: 44px;
  }

  .campaign-menu {
    justify-content: flex-start;
    min-height: 40px;
    gap: 16px;
    padding: 5px 12px 10px;
  }

  .campaign-menu a {
    font-size: 11px;
  }

  .site-header {
    align-items: center;
    background: var(--brand-primary);
  }

  .site-header .main-nav {
    grid-column: 1 / -1;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .celebration-showcase {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    padding: 22px 8px 24px;
  }

  .celebration-heading h2 {
    font-size: 24px;
  }

  .celebration-heading p {
    max-width: 300px;
    font-size: 12px;
  }

  .celebration-track {
    gap: 16px;
  }

  .celebration-item {
    flex-basis: 84px;
  }

  .celebration-item span {
    width: 68px;
    border-width: 2px;
  }

  .celebration-item strong {
    max-width: 84px;
    font-size: 11px;
  }

  .celebration-arrow {
    width: 28px;
    height: 28px;
    margin-bottom: 30px;
    font-size: 30px;
  }
}

/* Final responsive shell overrides */
.admin-body .admin-layout,
.admin-layout {
  display: block;
  min-height: 100vh;
}
.admin-body .admin-sidebar,
.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px clamp(12px, 2.5vw, 24px);
  border-bottom: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-strong) 50%, var(--guinda-deep) 100%);
  box-shadow: 0 14px 34px rgba(var(--theme-heading-rgb), 0.16);
}
.admin-body .admin-sidebar .brand-logo,
.admin-sidebar .brand-logo {
  width: clamp(118px, 15vw, 172px);
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.admin-body .admin-sidebar nav,
.admin-sidebar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.admin-body .admin-sidebar nav::-webkit-scrollbar,
.admin-sidebar nav::-webkit-scrollbar {
  display: none;
}
.admin-body .admin-sidebar a,
.admin-sidebar a {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-body .admin-sidebar a.active,
.admin-body .admin-sidebar a:hover,
.admin-sidebar a.active,
.admin-sidebar a:hover {
  border-color: rgba(255,255,255,.36);
  background: white;
  color: var(--theme-primary-text);
}
.admin-body .admin-main,
.admin-main {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 30px);
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
  }
  .top-strip {
    font-size: 11px;
    line-height: 1.35;
    padding: 8px 10px;
    text-align: center;
  }
  .header-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    width: 100%;
  }
  .search input {
    min-width: 0;
    width: 100%;
  }
  .icon-link,
  .cart-btn,
  .menu-toggle {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .admin-body .admin-sidebar,
  .admin-sidebar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 10px 9px;
  }
  .admin-body .admin-sidebar .brand-logo,
  .admin-sidebar .brand-logo {
    width: 122px;
    max-height: 40px;
  }
  .admin-body .admin-sidebar nav,
  .admin-sidebar nav {
    width: 100%;
    padding-bottom: 2px;
  }
  .admin-body .admin-sidebar a,
  .admin-sidebar a {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .admin-body .admin-main,
  .admin-main {
    padding: 14px 10px 28px;
  }
  .admin-top {
    grid-template-columns: 1fr;
  }
  .admin-top h1 {
    font-size: clamp(23px, 7vw, 30px);
  }
  .admin-panel,
  .filters,
  .checkout-form {
    padding: 16px;
    border-radius: 12px;
  }
  .category-preview-card {
    padding: 16px;
  }
  .category-preview-card img {
    width: 96px;
  }
}

