:root {
  --teal: #649993;
  --teal-dark: #4d7a75;
  --gold: #ffcd3c;
  --gold-dark: #e8b820;
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2b2b28;
  --text-muted: #8a8a82;
  --border: #e5e0d8;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--teal);
  color: #fff;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-header .brand { display: flex; align-items: center; gap: 0.75rem; }
.site-header .brand img { height: 68px; display: block; }
.site-header .brand-subtitle { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.03em; color: rgba(255,255,255,0.82); }
.site-header-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.site-footer { text-align: center; padding: 1.5rem; }
.site-footer p { font-size: 0.75rem; color: var(--text-muted); margin: 0; }
.header-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #ffffff; color: var(--teal-dark);
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.header-btn:hover { background: #f4f1ea; box-shadow: 0 3px 8px rgba(0,0,0,0.22); transform: translateY(-1px); }
.header-btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.header-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.header-btn .btn-icon { flex-shrink: 0; }

.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 100;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.5rem; max-width: 340px; width: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); text-align: center;
}
.modal-card p { margin: 0 0 1.1rem; font-size: 0.95rem; color: var(--text); }
.modal-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.modal-actions a { transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease; }
.modal-actions .btn-check { display: none; flex-shrink: 0; }
.modal-actions a.is-selected {
  transform: scale(0.97);
  box-shadow: 0 0 0 3px rgba(43,43,40,0.15), 0 3px 8px rgba(0,0,0,0.25);
}
.modal-actions a.is-selected .btn-check { display: inline-flex; }
.modal-actions a.is-dimmed { opacity: 0.35; transform: scale(0.97); }

.cart-link, .btn-gold {
  background: var(--gold);
  color: #4a3a00;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cart-link:hover, .btn-gold:hover { background: var(--gold-dark); box-shadow: 0 3px 8px rgba(0,0,0,0.22); transform: translateY(-1px); }
.cart-link:active, .btn-gold:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.cart-link:focus-visible, .btn-gold:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.btn-teal {
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.85rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 3px 8px rgba(0,0,0,0.22); transform: translateY(-1px); }
.btn-teal:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.btn-teal:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }

.filters { display: flex; gap: 0.6rem; padding: 1.1rem 1.5rem; flex-wrap: wrap; }
.filters input, .filters select {
  padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.9rem; background: var(--surface); color: var(--text);
}
.filters button {
  padding: 0.6rem 1.2rem; border: none; border-radius: var(--radius-sm);
  background: var(--teal); color: #fff; cursor: pointer; font-weight: 600; font-family: inherit;
}
.filters button:hover { background: var(--teal-dark); }

.product-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem; padding: 0.5rem 0.75rem 1.5rem;
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.1rem; padding: 0.5rem 1.5rem 1.5rem;
  }
}
.product-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 6px rgba(43,43,40,0.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(43,43,40,0.12); }
.product-card-link { display: block; text-decoration: none; color: inherit; }
/* Grid photo shows the whole image (no crop) at a small size — object-fit:contain
   inside the same fixed 3:4 box that keeps every card the same height, letterboxed
   on a neutral background instead of cropping tall/collage photos. The "sin foto"
   placeholder keeps the cover crop + gradient since it has no photo to protect. */
.product-card img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--bg);
}
.no-image {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; text-align: center; padding: 0.5rem;
}
.product-card-cta {
  display: block; text-align: center; text-decoration: none;
  margin: 0 0.85rem 0.85rem; padding: 0.55rem 0.8rem; font-size: 0.85rem;
  margin-top: auto;
}
.product-code {
  font-size: 0.72rem; color: var(--text-muted); padding: 0.7rem 0.85rem 0;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.product-name { font-weight: 600; font-size: 1rem; padding: 0.2rem 0.85rem; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; padding: 0 0.85rem 0.9rem; gap: 0.5rem; }
.product-price { color: var(--teal-dark); font-weight: 700; font-size: 1.05rem; }
.size-badge {
  font-size: 0.7rem; font-weight: 700; background: #fff6dc; color: #8a6d00;
  padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap;
}

.product-detail { max-width: 480px; margin: 1.5rem auto; padding: 0 1rem; }
.product-detail .back-link { display: inline-block; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--teal-dark); text-decoration: none; }
.product-detail-card { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 6px rgba(43,43,40,0.06); }
.photo-nav-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1; text-decoration: none;
  z-index: 2;
}
.photo-nav-arrow:hover { background: rgba(0,0,0,0.7); }
.photo-nav-prev { left: 0.6rem; }
.photo-nav-next { right: 0.6rem; }
/* Real photos keep their natural aspect ratio (no crop) — portrait shots
   (e.g. 1080x1920) are much taller than 3:4, so forcing that box with
   object-fit:cover was chopping off the top and bottom of every photo.
   The "no photo yet" placeholder still needs a fixed box to center its text in. */
.product-detail-card img {
  width: 100%; height: auto; display: block;
}
.product-detail-card .no-image {
  width: 100%; aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal)); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:600;
}
.thumb-row { display: flex; gap: 0.5rem; padding: 0.6rem; overflow-x: auto; }
.thumb-row .thumb {
  width: 90px; height: 90px; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center;
  border-radius: 6px; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; display: block;
}
.thumb:hover { border-color: var(--teal); }
.product-detail-body { padding: 1.1rem 1.3rem 1.4rem; }
.product-detail-body .product-code { padding: 0; }
.product-detail-body .product-tela {
  font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
  margin: 0.15rem 0 0;
}
.product-detail-body h1 { font-size: 1.35rem; margin: 0.2rem 0 0.1rem; }
.product-detail-body .product-price { font-size: 1.15rem; display: block; margin-bottom: 1rem; }

@media (min-width: 768px) {
  .product-detail--split { max-width: 880px; }
  .product-detail-card { display: flex; align-items: flex-start; }
  .product-photo-col { flex: 0 0 45%; min-width: 0; }
  .product-detail-body { flex: 1 1 auto; min-width: 0; }
}

.size-table { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; }
.size-table th {
  text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); padding: 0 0.4rem 0.5rem; border-bottom: 1px solid #eee;
}
.size-table td { padding: 0.5rem 0.4rem; border-bottom: 1px solid #f2f0ea; }
.size-table td:first-child { font-weight: 600; }
.size-table input[type="number"] {
  width: 4.2rem; padding: 0.4rem; border-radius: 6px; border: 1px solid var(--border);
  text-align: center; font-family: inherit;
}
.size-subtotal-row {
  display: flex; justify-content: space-between; padding: 0.6rem 0.4rem; font-size: 0.85rem;
  color: var(--text-muted); border-top: 1px solid #eee; margin-top: 0.2rem;
}
.size-subtotal-row strong { color: var(--text); }

form.buyer-form, form.login-form {
  max-width: 380px; margin: 3rem auto; display: flex; flex-direction: column; gap: 0.85rem;
  padding: 1.75rem; background: var(--surface); border-radius: var(--radius); box-shadow: 0 2px 6px rgba(43,43,40,0.06);
}
.buyer-form label, .login-form label, .product-form label {
  display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
}
.buyer-form input, .login-form input, .product-form input, .product-form select {
  padding: 0.65rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-family: inherit; font-size: 0.95rem; color: var(--text);
}
.buyer-form h1, .login-form h1 { font-size: 1.2rem; margin: 0 0 0.25rem; text-align: center; }

.error { color: #b00020; font-size: 0.9rem; }

.page-section { margin: 1.25rem 1.5rem; }
.total-row { font-size: 1.05rem; }
.total-row strong { color: var(--teal-dark); }

.admin-nav {
  display: flex; align-items: center; gap: 1.4rem; padding: 0.9rem 1.5rem; background: var(--teal); flex-wrap: wrap;
}
.admin-nav .logo-sm { height: 30px; margin-right: 0.4rem; }
.admin-nav a {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active { color: #fff; border-bottom-color: var(--gold); }

.admin-content { padding: 0 1.5rem 1.5rem; }
.admin-content h1 { padding-top: 1rem; }

.admin-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.admin-table th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--border); background: #f4f1ea;
}
.admin-table td { padding: 0.65rem 0.8rem; border-bottom: 1px solid #f2f0ea; font-size: 0.9rem; }

.product-images-current { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: -0.25rem; }
.product-image-item { text-align: center; }
.product-image-item img { display: block; border-radius: 8px; margin-bottom: 0.3rem; object-fit: cover; height: 120px; }

.status-pill {
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px;
  background: #fff6dc; color: #8a6d00; text-transform: capitalize;
}
.status-pill.cerrado { background: #eef4f3; color: var(--teal-dark); }
.status-pill.visto { background: #eef2fb; color: #3a5aa8; }

/* --- Mejoras UX / checkout (2026-08-06) --- */

.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--gold-dark); color: #4a3a00;
  font-size: 0.68rem; font-weight: 700;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.25rem;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.product-photo-wrap { position: relative; }

.qty-stepper { display: inline-flex; align-items: center; gap: 0.35rem; }
.qty-stepper button {
  width: 1.9rem; height: 1.9rem; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1.1rem; font-weight: 700;
  line-height: 1; cursor: pointer; font-family: inherit; flex-shrink: 0;
}
.qty-stepper button:hover { background: #f4f1ea; }
.qty-stepper input[type="number"] { width: 3rem; text-align: center; padding: 0.4rem 0.2rem; }

.subtotal-cell { font-weight: 600; color: var(--teal-dark); white-space: nowrap; }

.cart-summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted); margin: 0 1.5rem; }
.btn-gold.is-disabled { opacity: 0.45; pointer-events: none; box-shadow: none; }

/* --- Rediseño Configuración / Carrito / Checkout / Banner (2026-08-07) --- */

.settings-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 900px; padding: 0; border: none; margin: 0; }
@media (min-width: 720px) {
  .settings-grid { grid-template-columns: 1fr 1fr; }
}
.settings-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 2px 6px rgba(43,43,40,0.06);
  padding: 1.1rem 1.2rem; border: none; display: flex; flex-direction: column; gap: 0.75rem;
}
.settings-card legend {
  display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem;
  color: var(--teal-dark); padding: 0 0 0.4rem;
}
.settings-card label {
  display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
}
.settings-card input[type="text"], .settings-card input[type="email"], .settings-card input[type="number"] {
  padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-family: inherit; font-size: 0.9rem; color: var(--text);
}
.payment-methods-preview { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.settings-file-label { flex-direction: row !important; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.settings-file-status { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text); font-weight: 500; }
.status-icon-ok { color: var(--teal-dark); }
.status-icon-empty { color: var(--text-muted); }
.settings-save-btn { justify-self: start; grid-column: 1 / -1; }

.cart-empty {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  text-align: center; padding: 3rem 1.5rem; color: var(--text-muted);
}
.cart-empty svg { color: var(--border); }
.cart-empty-recover { font-size: 0.85rem; color: var(--teal-dark); text-decoration: underline; }

.cart-layout { display: flex; flex-direction: column; gap: 1rem; padding: 0 1.5rem 6rem; }
@media (min-width: 900px) {
  .cart-layout { flex-direction: row; align-items: flex-start; padding-bottom: 1.5rem; }
  .cart-items { flex: 1 1 auto; min-width: 0; }
  .cart-summary-panel { flex: 0 0 300px; position: sticky; top: 1rem; }
}

.cart-items { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-line-card {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 2px 6px rgba(43,43,40,0.06);
  padding: 0.75rem;
}
.cart-line-photo { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.cart-line-photo-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal)); color: #fff;
  font-size: 0.7rem; font-weight: 600; padding: 0.25rem;
}
.cart-line-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.cart-line-title { font-weight: 600; font-size: 0.9rem; }
.cart-line-meta { font-size: 0.78rem; color: var(--text-muted); }
.cart-line-subtotal { color: var(--teal-dark); }
.cart-line-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cart-line-remove { flex-shrink: 0; }

.cart-line-trigger {
  display: flex; align-items: center; gap: 0.85rem; flex: 1 1 auto; min-width: 0;
  background: none; border: none; padding: 0; margin: 0; cursor: pointer; text-align: left;
  font-family: inherit; color: inherit;
}
.cart-line-trigger:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; border-radius: var(--radius-sm); }
.cart-line-edit-icon { font-size: 0.72rem; color: var(--text-muted); margin-left: 0.3rem; }

.talla-modal-card { max-width: 440px; max-height: 85vh; overflow-y: auto; text-align: left; }
.talla-modal-title { font-size: 1.05rem; margin: 0 0 0.8rem; }

.cart-summary-panel {
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 2px 6px rgba(43,43,40,0.06);
  padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.cart-summary-panel h2 { font-size: 1rem; margin: 0; }
.cart-summary-panel .cart-summary-row { margin: 0; }
.cart-summary-total { font-size: 1.1rem; margin: 0; }
.cart-summary-total strong { color: var(--teal-dark); }
.cart-confirm-btn { width: 100%; text-align: center; }

.cart-progress-label { font-size: 0.82rem; color: var(--gold-dark); font-weight: 600; margin: 0 0 0.3rem; }
.cart-progress-reached .cart-progress-label { color: var(--teal-dark); }
.progress-bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.2s ease; }
.cart-progress-reached .progress-bar-fill { background: var(--teal); }

.cart-mobile-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem; box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.cart-mobile-bar-total strong { color: var(--teal-dark); }
@media (min-width: 900px) {
  .cart-mobile-bar { display: none; }
}

form.buyer-form.buyer-form-wide { max-width: 480px; }
.buyer-form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
@media (min-width: 480px) {
  .buyer-form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.payment-fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.payment-fieldset legend { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; padding: 0 0 0.3rem; }
.payment-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.payment-option {
  display: inline-flex; align-items: center; padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.payment-option input[type="radio"] {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.payment-option:has(input:checked) { background: var(--gold); border-color: var(--gold-dark); color: var(--text); }
.payment-option:has(input:focus-visible) { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.payment-option.is-selected { background: var(--gold); border-color: var(--gold-dark); color: var(--text); }

.status-select {
  font-family: inherit; font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.5rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  background: #fff6dc; color: #8a6d00;
}
.status-select-visto { background: #eef2fb; color: #3a5aa8; }
.status-select-cerrado { background: #eef4f3; color: var(--teal-dark); }

.stat-counter {
  display: inline-flex; flex-direction: column; gap: 0.15rem;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 2px 6px rgba(43,43,40,0.06);
  padding: 1rem 1.5rem; margin: 0 0 1.25rem;
}
.stat-counter-value { font-size: 2.5rem; font-weight: 700; color: var(--teal-dark); line-height: 1.1; }
.stat-counter-label { font-size: 0.85rem; color: var(--text-muted); }
.stat-counter-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.stat-counter-row .stat-counter { margin: 0; }
.admin-table th a { color: inherit; text-decoration: none; }
.admin-table th a:hover { text-decoration: underline; }

/* --- Carrito flotante (2026-08-10) --- */

.cart-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #4a3a00;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.cart-fab:hover { background: var(--gold-dark); box-shadow: 0 5px 14px rgba(0,0,0,0.3); transform: translateY(-1px); }
.cart-fab:active { transform: translateY(0); }
.cart-fab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* --- Editar tallas de pedido desde admin (2026-08-10) --- */

.admin-order-row-clickable { cursor: pointer; }
.admin-order-row-clickable:hover { background: #f4f1ea; }

/* --- Eliminar productos en masa desde admin (2026-08-11) --- */

.bulk-actions-bar { padding: 0.5rem 0 0.75rem; }
.bulk-actions-bar button:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- Recuadros de talla (2026-08-11) --- */

.talla-chip-row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.talla-chip {
  display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--teal-dark); font-weight: 600; font-size: 0.78rem; padding: 0.2rem 0.6rem;
}

/* --- Tabla de pedido: tallas en la misma fila que la referencia (2026-08-18) --- */

.order-items-table { table-layout: fixed; }
.order-items-table .col-ref { width: 46%; }
.order-items-table .col-qty { width: 16%; }
.order-items-table .col-price, .order-items-table .col-subtotal { width: 19%; }
.order-items-table .talla-chip-row { margin-top: 0.35rem; }

/* --- Mensajes de confirmación de pedido (2026-08-18) --- */

.order-confirm-notice {
  background: var(--teal); color: #fff;
  border-radius: var(--radius); padding: 1.15rem 1.4rem; margin: 1.25rem 0;
  line-height: 1.55; text-align: center; box-shadow: 0 4px 14px rgba(43,43,40,0.16);
}
.order-confirm-notice-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.4rem; }
.order-confirm-notice p:last-child { margin: 0; }
.whatsapp-hint { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.35rem; }

/* --- Tabla con scroll horizontal en mobile (2026-08-11) --- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Paginación del catálogo (2026-08-18) --- */

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1rem 1.5rem 2rem; flex-wrap: wrap;
}
.pagination-link.is-disabled { opacity: 0.45; pointer-events: none; box-shadow: none; }
.pagination-status { font-size: 0.85rem; color: var(--text-muted); }
