/* ============================================================
   Amor Bonito — Estilos base
   Vanilla CSS con custom properties
   ============================================================ */

:root {
  /* Color tokens */
  --ab-ink: #3d2b1f;
  --ab-cream: #fffbf2;
  --ab-cream-2: #fef6e2;
  --ab-gold: #c1a064;
  --ab-gold-soft: #ead7ab;
  --ab-rose: #d27a6a;
  --ab-mint: #4a8b6f;
  --ab-danger: #c44a3a;
  --ab-success: #4a8b6f;

  /* Layout */
  --ab-radius-sm: 6px;
  --ab-radius: 12px;
  --ab-radius-lg: 20px;
  --ab-shadow-sm: 0 1px 2px rgba(61, 43, 31, 0.08);
  --ab-shadow: 0 4px 12px rgba(61, 43, 31, 0.1);
  --ab-shadow-lg: 0 12px 32px rgba(61, 43, 31, 0.15);

  /* Typography */
  --ab-font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --ab-font-display: "Playfair Display", Georgia, serif;
  --ab-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--ab-font-sans);
  color: var(--ab-ink);
  background: var(--ab-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ab-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Layout helpers ---------- */
.ab-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.ab-stack > * + * {
  margin-top: 1rem;
}

/* ---------- Buttons ---------- */
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  border-radius: var(--ab-radius);
  background: var(--ab-ink);
  color: var(--ab-cream);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.ab-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--ab-shadow);
  text-decoration: none;
}

.ab-btn--gold {
  background: var(--ab-gold);
  color: var(--ab-ink);
}

.ab-btn--ghost {
  background: transparent;
  color: var(--ab-ink);
  border-color: var(--ab-gold-soft);
}

.ab-btn--danger {
  background: var(--ab-danger);
}

.ab-btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.ab-field {
  display: block;
  margin-bottom: 1rem;
}

.ab-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ab-ink);
}

.ab-input,
.ab-textarea,
.ab-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ab-ink);
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius-sm);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.ab-input:focus,
.ab-textarea:focus,
.ab-select:focus {
  outline: none;
  border-color: var(--ab-gold);
  box-shadow: 0 0 0 3px rgba(193, 160, 100, 0.2);
}

.ab-textarea {
  min-height: 100px;
  resize: vertical;
}

/* ---------- Cards ---------- */
.ab-card {
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  padding: 1.25rem;
  box-shadow: var(--ab-shadow-sm);
}

.ab-card--pad-lg {
  padding: 1.75rem;
}

/* ---------- Tables ---------- */
.ab-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--ab-radius);
  overflow: hidden;
  border: 1px solid var(--ab-gold-soft);
}

.ab-table th,
.ab-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--ab-gold-soft);
}

.ab-table th {
  background: var(--ab-cream-2);
  font-weight: 700;
  color: var(--ab-ink);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ab-table tbody tr:last-child td {
  border-bottom: 0;
}

.ab-table tbody tr:hover {
  background: var(--ab-cream-2);
}

/* ---------- Badges ---------- */
.ab-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ab-badge--pending {
  background: #fff3cd;
  color: #856404;
}
.ab-badge--processing {
  background: #cce5ff;
  color: #004085;
}
.ab-badge--delivered {
  background: #d4edda;
  color: #155724;
}
.ab-badge--cancelled {
  background: #f8d7da;
  color: #721c24;
}
.ab-badge--premium {
  background: var(--ab-gold);
  color: var(--ab-ink);
}
.ab-badge--tradicional {
  background: var(--ab-cream-2);
  color: var(--ab-ink);
}

/* ---------- Alerts ---------- */
.ab-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--ab-radius);
  border: 1px solid;
  font-size: 0.9rem;
}

.ab-alert--info {
  background: #e7f3ff;
  border-color: #b3d7ff;
  color: #004085;
}
.ab-alert--success {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}
.ab-alert--warning {
  background: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}
.ab-alert--danger {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* ---------- Utility ---------- */
.ab-text-muted {
  color: var(--ab-ink);
  opacity: 0.6;
}
.ab-text-sm {
  font-size: 0.85rem;
}
.ab-text-lg {
  font-size: 1.1rem;
}
.ab-text-xl {
  font-size: 1.5rem;
}
.ab-text-2xl {
  font-size: 2rem;
}
.ab-text-3xl {
  font-size: 2.5rem;
}

.ab-mt-0 {
  margin-top: 0;
}
.ab-mt-1 {
  margin-top: 0.5rem;
}
.ab-mt-2 {
  margin-top: 1rem;
}
.ab-mt-3 {
  margin-top: 1.5rem;
}
.ab-mt-4 {
  margin-top: 2rem;
}

.ab-mb-0 {
  margin-bottom: 0;
}
.ab-mb-1 {
  margin-bottom: 0.5rem;
}
.ab-mb-2 {
  margin-bottom: 1rem;
}
.ab-mb-3 {
  margin-bottom: 1.5rem;
}
.ab-mb-4 {
  margin-bottom: 2rem;
}

.ab-flex {
  display: flex;
}
.ab-flex-col {
  display: flex;
  flex-direction: column;
}
.ab-items-center {
  align-items: center;
}
.ab-justify-between {
  justify-content: space-between;
}
.ab-gap-1 {
  gap: 0.5rem;
}
.ab-gap-2 {
  gap: 1rem;
}
.ab-gap-3 {
  gap: 1.5rem;
}

.ab-hidden {
  display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .ab-container {
    padding: 0 1rem;
  }
  .ab-text-3xl {
    font-size: 1.75rem;
  }
  .ab-text-2xl {
    font-size: 1.5rem;
  }
}

/* ============================================================
   Storefront components (Fase 1)
   ============================================================ */

/* ---------- Header nav ---------- */
.ab-header {
  background: white;
  border-bottom: 1px solid var(--ab-gold-soft);
  padding: 1rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--ab-shadow-sm);
}
.ab-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.ab-header__brand {
  font-family: var(--ab-font-display);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ab-ink);
  text-decoration: none;
}
.ab-header__logo-icon {
  height: 48px;
  width: 48px;
  display: block;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.ab-header__brand:hover .ab-header__logo-icon {
  transform: rotate(-3deg);
}
.ab-header__logo-wordmark {
  height: 38px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .ab-header__logo-wordmark {
    display: none;
  }
  .ab-header__logo-icon {
    height: 42px;
    width: 42px;
  }
}
.ab-header__nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
}
.ab-header__nav a {
  color: var(--ab-ink);
  opacity: 0.85;
  font-weight: 500;
}
.ab-header__nav a:hover {
  opacity: 1;
  text-decoration: underline;
}
.ab-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ab-cream-2);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.ab-header__cart-count {
  background: var(--ab-rose);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  min-width: 1.4rem;
  text-align: center;
}

/* ---------- Footer ---------- */
.ab-footer {
  background: var(--ab-ink);
  color: var(--ab-cream);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 4rem;
}
.ab-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.ab-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ab-footer__logo {
  height: 56px;
  width: 56px;
  display: block;
  border-radius: 50%;
  background: rgba(255, 251, 242, 0.08);
  padding: 6px;
  box-shadow: 0 0 0 1px rgba(255, 251, 242, 0.18);
  flex-shrink: 0;
}
.ab-footer__brand-name {
  display: block;
  font-family: var(--ab-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.ab-footer__brand-tag {
  font-size: 0.85rem;
  opacity: 0.65;
  margin: 0.25rem 0 0;
  line-height: 1.4;
}
.ab-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ab-footer__title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  margin-bottom: 0.4rem;
}
.ab-footer__col a {
  color: var(--ab-cream);
  opacity: 0.78;
  font-size: 0.9rem;
  transition: opacity 0.15s ease;
}
.ab-footer__col a:hover {
  opacity: 1;
  text-decoration: underline;
}
.ab-footer__bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 251, 242, 0.1);
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.55;
}
@media (max-width: 700px) {
  .ab-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ---------- Hero ---------- */
.ab-hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.25rem 4rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 251, 242, 0.55) 0%,
      rgba(255, 251, 242, 0.78) 100%
    ),
    url("/assets/images/hero-bg.webp") center / cover no-repeat;
  background-color: var(--ab-cream);
}
.ab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(255, 251, 242, 0.35) 100%
  );
  pointer-events: none;
}
.ab-hero > * {
  position: relative;
  z-index: 1;
}
.ab-hero h1 {
  text-shadow: 0 2px 12px rgba(255, 251, 242, 0.6);
}
.ab-hero h1 {
  font-family: var(--ab-font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--ab-ink);
}
.ab-hero p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  opacity: 0.8;
}
.ab-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
}

/* ---------- Section header ---------- */
.ab-section {
  padding: 2.5rem 0;
}
.ab-section h2 {
  font-family: var(--ab-font-display);
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
  text-align: center;
}
.ab-section__sub {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 600px;
  opacity: 0.7;
}

/* ---------- Catalog filters ---------- */
.ab-catalog-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  max-width: 1000px;
}
.ab-catalog-filters select,
.ab-catalog-filters input {
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius-sm);
  background: white;
  color: var(--ab-ink);
  min-width: 160px;
}
.ab-catalog-filters input {
  flex: 1 1 220px;
  min-width: 220px;
}

/* ---------- Product grid ---------- */
.ab-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.ab-product-card {
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.ab-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ab-shadow);
}
.ab-product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ab-cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
}
.ab-product-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  z-index: 1;
}
.ab-product-card:hover .ab-product-img img {
  transform: scale(1.05);
}
.ab-product-img-placeholder {
  font-size: 3.5rem;
  opacity: 0.5;
  z-index: 0;
}
.ab-product-line-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
}
.ab-product-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ab-product-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  font-family: inherit;
  line-height: 1.3;
}
.ab-product-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0 0 0.9rem;
  flex: 1;
  line-height: 1.45;
}
.ab-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}
.ab-product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ab-ink);
}

/* ---------- Flavor landing ---------- */
.ab-flavor-hero {
  background: linear-gradient(
    135deg,
    var(--ab-cream-2) 0%,
    var(--ab-cream) 100%
  );
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}
.ab-flavor-hero h1 {
  font-family: var(--ab-font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0.5rem 0 0.75rem;
}
.ab-flavor-tagline {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}
.ab-flavor-info {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Cart / Checkout ---------- */
.ab-cart {
  max-width: 920px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
}
.ab-cart__items {
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  padding: 1.25rem;
}
.ab-cart-item {
  display: grid;
  grid-template-columns: 1fr 130px 90px 32px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ab-gold-soft);
}
.ab-cart-item:last-child {
  border-bottom: 0;
}
.ab-cart-item-info {
  display: flex;
  flex-direction: column;
}
.ab-cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius-sm);
  overflow: hidden;
}
.ab-cart-item-qty button {
  background: var(--ab-cream-2);
  border: 0;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ab-ink);
  cursor: pointer;
}
.ab-cart-item-qty input {
  width: 40px;
  text-align: center;
  border: 0;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  background: white;
  -moz-appearance: textfield;
}
.ab-cart-item-qty input::-webkit-outer-spin-button,
.ab-cart-item-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ab-cart-item-sub {
  font-weight: 700;
  text-align: right;
}
.ab-cart__summary {
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  padding: 1.5rem;
  position: sticky;
  top: 5rem;
  align-self: start;
}
.ab-cart__total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 2px dashed var(--ab-gold-soft);
}

/* ============================================================
   Admin panel
   ============================================================ */
body.ab-admin {
  background: var(--ab-cream-2);
  margin: 0;
}

.ab-admin-header {
  background: var(--ab-ink);
  color: var(--ab-cream);
  padding: 0.75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--ab-shadow);
}
.ab-admin-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}
.ab-admin-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ab-cream);
  text-decoration: none;
  font-family: var(--ab-font-display);
  font-size: 1.1rem;
}
.ab-admin-brand__icon {
  height: 36px;
  width: 36px;
  display: block;
  border-radius: 50%;
  background: var(--ab-cream);
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(255, 251, 242, 0.25);
}
.ab-admin-brand__sep {
  opacity: 0.5;
}
.ab-admin-brand__name {
  font-family: var(--ab-font-sans);
  font-size: 0.85rem;
  opacity: 0.7;
}
.ab-admin-logout {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
}
.ab-admin-user {
  font-size: 0.85rem;
  opacity: 0.85;
}
.ab-admin-logout .ab-btn--ghost {
  background: transparent;
  color: var(--ab-cream);
  border-color: rgba(255, 255, 255, 0.3);
}

.ab-admin-shell {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 60px);
  max-width: 1400px;
  margin: 0 auto;
}

.ab-admin-sidebar {
  background: white;
  border-right: 1px solid var(--ab-gold-soft);
  width: 220px;
  flex-shrink: 0;
  padding: 1.25rem 0;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.ab-admin-sidebar nav {
  display: flex;
  flex-direction: column;
}
.ab-admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.25rem;
  color: var(--ab-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s ease;
}
.ab-admin-sidebar a:hover {
  background: var(--ab-cream);
  text-decoration: none;
}
.ab-admin-sidebar a.active {
  background: var(--ab-cream-2);
  border-left-color: var(--ab-gold);
  color: var(--ab-ink);
  font-weight: 700;
}
.ab-admin-sidebar hr {
  border: 0;
  border-top: 1px solid var(--ab-gold-soft);
  margin: 0.75rem 1rem;
}
.ab-admin-sidebar__external {
  opacity: 0.6;
  font-size: 0.85rem;
}

.ab-admin-main {
  flex: 1;
  padding: 1.5rem 2rem 3rem;
  min-width: 0;
}

.ab-admin-page-title {
  font-family: var(--ab-font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--ab-ink);
}
.ab-admin-page-sub {
  color: var(--ab-ink);
  opacity: 0.7;
  margin: 0 0 1.5rem;
}

.ab-admin-card {
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.ab-admin-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}
.ab-admin-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.ab-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ab-admin-stat {
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  padding: 1.25rem;
}
.ab-admin-stat__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ab-ink);
  opacity: 0.6;
  margin: 0 0 0.4rem;
}
.ab-admin-stat__value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--ab-ink);
  margin: 0;
}
.ab-admin-stat__delta {
  font-size: 0.75rem;
  color: var(--ab-mint);
  margin-top: 0.3rem;
}
.ab-admin-stat--warning .ab-admin-stat__value {
  color: #c44a3a;
}

.ab-admin-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  padding: 0.75rem 1rem;
}
.ab-admin-toolbar input,
.ab-admin-toolbar select {
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius-sm);
  background: white;
  color: var(--ab-ink);
}
.ab-admin-toolbar input {
  flex: 1 1 200px;
  min-width: 200px;
}

.ab-admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  overflow: hidden;
  font-size: 0.88rem;
}
.ab-admin-table th,
.ab-admin-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--ab-gold-soft);
}
.ab-admin-table th {
  background: var(--ab-cream-2);
  font-weight: 700;
  color: var(--ab-ink);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ab-admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.ab-admin-table tbody tr:hover {
  background: var(--ab-cream-2);
}
.ab-admin-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ab-admin-table .actions {
  white-space: nowrap;
  text-align: right;
}
.ab-admin-table .actions button {
  margin-left: 0.3rem;
}

.ab-admin-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.ab-admin-form-row .ab-field {
  margin-bottom: 0;
}

.ab-admin-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) {
  .ab-admin-detail-grid {
    grid-template-columns: 1fr;
  }
  .ab-admin-shell {
    flex-direction: column;
  }
  .ab-admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--ab-gold-soft);
  }
  .ab-admin-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .ab-admin-sidebar a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 0.6rem 1rem;
  }
  .ab-admin-sidebar a.active {
    border-bottom-color: var(--ab-gold);
  }
  .ab-admin-sidebar hr {
    display: none;
  }
}

/* Toast */
.ab-toast {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  background: var(--ab-ink);
  color: var(--ab-cream);
  padding: 0.85rem 1.25rem;
  border-radius: var(--ab-radius);
  box-shadow: var(--ab-shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  max-width: 380px;
  font-size: 0.9rem;
}
.ab-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.ab-toast--success {
  background: var(--ab-mint);
}
.ab-toast--danger {
  background: var(--ab-danger);
}
.ab-toast--warning {
  background: #d97706;
}

/* ---------- Coverage ---------- */
.ab-coverage {
  max-width: 920px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}
.ab-coverage__zones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.ab-coverage__zone {
  padding: 0.5rem 0.85rem;
  background: white;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius-sm);
  font-size: 0.9rem;
  text-align: center;
}
.ab-coverage__check {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 1rem auto;
}
.ab-coverage__check input {
  flex: 1;
}
.ab-coverage__min {
  display: inline-block;
  margin-left: 0.25rem;
  color: var(--ab-ink);
  opacity: 0.85;
  font-size: 0.85em;
}
.ab-coverage__note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  opacity: 0.75;
  line-height: 1.4;
  border-top: 1px dashed rgba(74, 139, 111, 0.3);
  padding-top: 0.5rem;
}

@media (max-width: 768px) {
  .ab-cart {
    grid-template-columns: 1fr;
  }
  .ab-cart__summary {
    position: static;
  }
  .ab-cart-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .ab-cart-item-sub {
    text-align: left;
  }
  .ab-header__nav {
    gap: 0.85rem;
    font-size: 0.85rem;
  }
}

/* ---------- Footer: línea de contacto no-link ---------- */
.ab-footer__contact-line {
  color: var(--ab-cream);
  opacity: 0.78;
  font-size: 0.9rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}
.ab-footer__col a[href^="https://wa.me/"] {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Botón flotante de WhatsApp ---------- */
.ab-wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}
.ab-wa-float__btn,
.ab-wa-float__panel {
  pointer-events: auto;
  position: relative;
}
.ab-wa-float__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
}
.ab-wa-float__btn svg {
  width: 32px;
  height: 32px;
  display: block;
}
.ab-wa-float__btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  z-index: -1;
  animation: ab-wa-pulse 2.4s ease-out infinite;
}
@keyframes ab-wa-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
.ab-wa-float__btn:hover {
  transform: scale(1.06);
  box-shadow:
    0 12px 28px rgba(37, 211, 102, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.2);
}
.ab-wa-float__btn:focus-visible {
  outline: 3px solid var(--ab-gold);
  outline-offset: 3px;
}
.ab-wa-float__panel {
  width: 280px;
  background: var(--ab-cream);
  color: var(--ab-ink);
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius-lg);
  box-shadow: var(--ab-shadow-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transform-origin: bottom right;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  visibility: hidden;
}
.ab-wa-float.is-open .ab-wa-float__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.ab-wa-float__header {
  padding: 0 0.25rem 0.5rem;
  border-bottom: 1px solid var(--ab-gold-soft);
  margin-bottom: 0.25rem;
}
.ab-wa-float__header strong {
  display: block;
  font-family: var(--ab-font-display);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ab-ink);
}
.ab-wa-float__header p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--ab-ink);
  opacity: 0.7;
  line-height: 1.35;
}
.ab-wa-float__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #ffffff;
  border: 1px solid var(--ab-gold-soft);
  border-radius: var(--ab-radius);
  text-decoration: none;
  color: var(--ab-ink);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}
.ab-wa-float__option:hover,
.ab-wa-float__option:focus-visible {
  background: #f0f7f1;
  border-color: #25d366;
  transform: translateX(-2px);
  text-decoration: none;
  outline: none;
}
.ab-wa-float__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ab-wa-float__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.ab-wa-float__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ab-ink);
  opacity: 0.6;
}
.ab-wa-float__num {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ab-ink);
}

@media (max-width: 600px) {
  .ab-wa-float {
    right: 0.85rem;
    bottom: 0.85rem;
  }
  .ab-wa-float__btn {
    width: 54px;
    height: 54px;
  }
  .ab-wa-float__btn svg {
    width: 28px;
    height: 28px;
  }
  .ab-wa-float__panel {
    width: calc(100vw - 1.7rem);
    max-width: 320px;
  }
}

/* Ocultar el flotante en rutas admin para no estorbar al equipo */
body.ab-admin .ab-wa-float {
  display: none;
}

.ab-cart-float {
  position: fixed;
  right: 1.25rem;
  bottom: 6rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: var(--ab-ink, #2a1a0f);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.ab-cart-float:hover,
.ab-cart-float:focus-visible {
  transform: translateY(-2px);
  background: var(--ab-primary, #d97757);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(217, 119, 87, 0.45);
  outline: none;
}
.ab-cart-float__icon {
  font-size: 1.1rem;
  line-height: 1;
}
.ab-cart-float__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ab-gold, #c1a064);
  color: var(--ab-ink, #2a1a0f);
  font-size: 0.8rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .ab-cart-float {
    right: 0.75rem;
    bottom: 5.25rem;
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
  }
  .ab-cart-float__label {
    display: none;
  }
}

/* ============================================================
   Información nutricional
   Imagen estática (assets/images/nutrition-table.png) centrada.
   Restaurada de la versión Next.js (NutritionalInfo.tsx).
   El PNG se genera con scripts/generate-nutrition-image.py.
   ============================================================ */
.ab-nutrition {
  background: var(--ab-cream, #fffbf2);
}
.ab-nutrition__wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ab-nutrition__img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 1.5rem auto 0;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 8px 24px rgba(61, 43, 31, 0.1),
    0 2px 6px rgba(61, 43, 31, 0.06);
}
.ab-nutrition__footnote {
  margin: 1.25rem auto 0;
  font-size: 0.85rem;
  color: var(--ab-muted, #6b5847);
  line-height: 1.55;
  text-align: center;
  max-width: 720px;
}
.ab-nutrition__footnote a {
  color: var(--ab-primary, #d97757);
  text-decoration: underline;
  font-weight: 600;
}

/* ============================================================
   Blog & FAQ
   ============================================================ */
.ab-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.ab-blog-card {
  background: #fff;
  border: 1px solid var(--ab-gold-soft, #ead7ab);
  border-radius: var(--ab-radius, 12px);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.ab-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(61, 43, 31, 0.12);
}
.ab-blog-card__link {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--ab-ink, #2a1a0f);
}
.ab-blog-card__link:hover {
  color: var(--ab-ink, #2a1a0f);
}
.ab-blog-card__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ab-muted, #6b5847);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ab-blog-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
}
.ab-blog-card__desc {
  font-size: 0.95rem;
  color: var(--ab-muted, #6b5847);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.ab-blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.ab-blog-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--ab-cream-2, #fef6e2);
  color: var(--ab-ink, #2a1a0f);
  font-weight: 600;
}

/* Blog post (single) */
.ab-blog-post__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ab-gold-soft, #ead7ab);
}
.ab-blog-post__back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--ab-muted, #6b5847);
  text-decoration: none;
  margin-bottom: 1rem;
}
.ab-blog-post__back:hover {
  color: var(--ab-primary, #d97757);
}
.ab-blog-post__header h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--ab-ink, #2a1a0f);
}
.ab-blog-post__meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ab-muted, #6b5847);
}
.ab-blog-post__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ab-ink, #2a1a0f);
}
.ab-blog-post__body h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  color: var(--ab-ink, #2a1a0f);
}
.ab-blog-post__body h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}
.ab-blog-post__body p {
  margin: 0 0 1.25rem;
}
.ab-blog-post__body ul,
.ab-blog-post__body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}
.ab-blog-post__body li {
  margin-bottom: 0.5rem;
}
.ab-blog-post__body code {
  background: var(--ab-cream-2, #fef6e2);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}
.ab-blog-post__body strong {
  color: var(--ab-ink, #2a1a0f);
  font-weight: 700;
}
.ab-blog-post__body a {
  color: var(--ab-primary, #d97757);
  text-decoration: underline;
}
.ab-blog-post__table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.ab-blog-post__table th,
.ab-blog-post__table td {
  border: 1px solid var(--ab-gold-soft, #ead7ab);
  padding: 0.6rem 0.9rem;
  text-align: left;
}
.ab-blog-post__table th {
  background: var(--ab-cream-2, #fef6e2);
  font-weight: 700;
}
.ab-blog-post__footer {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--ab-cream-2, #fef6e2);
  border-radius: var(--ab-radius, 12px);
  text-align: center;
}
.ab-blog-post__footer h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.5rem;
}
.ab-blog-post__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* FAQ */
.ab-faq__category {
  margin-top: 2.5rem;
}
.ab-faq__category-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  color: var(--ab-ink, #2a1a0f);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ab-gold-soft, #ead7ab);
}
.ab-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ab-faq__item {
  background: #fff;
  border: 1px solid var(--ab-gold-soft, #ead7ab);
  border-radius: var(--ab-radius, 12px);
  overflow: hidden;
}
.ab-faq__item[open] {
  box-shadow: 0 4px 14px rgba(61, 43, 31, 0.08);
}
.ab-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ab-ink, #2a1a0f);
  list-style: none;
  user-select: none;
}
.ab-faq__q::-webkit-details-marker {
  display: none;
}
.ab-faq__chev {
  font-size: 1.5rem;
  color: var(--ab-gold, #c1a064);
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.ab-faq__item[open] .ab-faq__chev {
  transform: rotate(45deg);
}
.ab-faq__a {
  padding: 0 1.25rem 1.25rem;
  color: var(--ab-muted, #6b5847);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 640px) {
  .ab-blog-post__header h1 {
    font-size: 1.8rem;
  }
  .ab-blog-post__body {
    font-size: 1rem;
  }
  .ab-blog-card__title {
    font-size: 1.2rem;
  }
  .ab-faq__q {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
  .ab-faq__a {
    padding: 0 1rem 1rem;
  }
}
