:root {
  --color-sage: #71BC78;
  --color-forest: #008000;
  --color-lime: #00FF00;
  --color-teal: #009D71;
  --color-mint: #77DD77;
  --color-olive: #568203;
  --color-hunter: #06500C;
  --color-grass: #6BB323;
  --color-spring: #0BDA51;
  --color-orange: #ff9800;
  --color-orange-dark: #e28000;
  /* 068-tracking-page-seller-ratings (constitution v1.5.0): a single
     status-only exception, NOT part of the brand palette above. Valid
     only for the "🔵 Enviados" shipment-status indicator — never on a
     button, link, or any other element. */
  --color-status-shipped: #1E88E5;
  --bg: #f4f7f5;
  --card: #fff;
  --text: #1a1a1a;
  --muted: #5e5e5e;
  --err: #b42318;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
header.app {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: nowrap;
  position: relative;
  z-index: 3;
  padding: 0.75rem 1.25rem; background: var(--color-hunter); color: #fff;
}
header.app a { color: #fff; text-decoration: none; margin-left: 0.75rem; }
header.app #logout {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px; padding: 0.2rem 0.65rem; cursor: pointer; margin-left: 0;
}
.brand { font-weight: 700; letter-spacing: 0.02em; }
header.app a.brand { margin-left: 0; }
.lang { display: flex; flex-direction: row; gap: 0.35rem; }
header.app .lang:has(+ [data-catalog-menu-toggle]) { margin-left: auto; }
[data-catalog-menu-toggle] {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 4;
  margin-left: 0.75rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
header.app [data-catalog-menu] {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.65rem;
}
header.app[data-catalog-open] [data-catalog-menu] {
  display: flex;
  position: fixed;
  top: 3.5rem;
  right: 0;
  z-index: 2;
  margin: 0;
  width: max-content;
  min-width: 12rem;
  max-width: min(90vw, 16rem);
  padding: 1.25rem;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid var(--color-hunter);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: var(--text);
}
header.app[data-catalog-open] [data-catalog-menu] a,
header.app[data-catalog-open] [data-catalog-menu] #logout {
  margin-left: 0;
  color: var(--text);
  border-color: var(--muted);
}
header.app[data-catalog-open] [data-catalog-menu] hr {
  width: 100%;
  border: none;
  border-top: 1px solid var(--muted);
  margin: 0;
}
header.app #profile-bell { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lang button, .bell {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px; padding: 0.2rem 0.65rem; cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--color-spring); color: #111; border-color: var(--color-spring);
}
.bell[hidden] { display: none; }
main { max-width: 720px; margin: 1.5rem auto; padding: 0 1rem 3rem; }
.card { background: var(--card); border-radius: 12px; padding: 1.25rem 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
h1 { margin-top: 0; font-size: 1.45rem; }
[data-catalog-subtitle] {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-hunter);
}
label { display: block; margin: 0.65rem 0 0.2rem; font-size: 0.9rem; }
input, select, textarea {
  width: 100%; padding: 0.5rem 0.6rem; border: 1px solid #c5c5c5; border-radius: 8px;
}
.stripe-element {
  width: 100%; padding: 0.6rem; border: 1px solid #c5c5c5; border-radius: 8px; background: #fff; box-sizing: border-box;
}
.stripe-element--invalid { border-color: var(--err); }
.link-btn {
  display: inline-block; margin-top: 0.5rem; background: none; border: 0; padding: 0;
  color: var(--color-hunter); text-decoration: underline; cursor: pointer; font-size: 0.9rem;
}
.link-btn[hidden] { display: none; }
.saved-card-label { font-weight: 600; margin: 0.65rem 0 0.2rem; }
button.primary, a.button {
  display: inline-block; margin-top: 1rem; background: var(--color-orange); color: #fff;
  border: 0; border-radius: 8px; padding: 0.55rem 1rem; cursor: pointer; text-decoration: none;
}
button.primary:hover, button.primary:active,
a.button:hover, a.button:active { background: var(--color-orange-dark); }
button.primary:disabled { opacity: 0.7; cursor: not-allowed; }
.err { color: var(--err); min-height: 1.2rem; }
.ok { color: var(--color-forest); min-height: 1.2rem; }
.payment-groups { list-style: none; margin: 0.75rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.product, .widget {
  background: var(--card); border-radius: 10px; padding: 1rem; border: 1px solid #ddd;
}
.section { margin-top: 1.25rem; padding-top: 0.5rem; border-top: 1px solid #ddd; }
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.row[hidden] { display: none; }
.muted { color: var(--muted); font-size: 0.9rem; }
.required-mark { color: var(--muted); margin-left: 0.2rem; }
.price { color: var(--muted); font-weight: 600; white-space: nowrap; }
.google-host { margin-top: 1rem; min-height: 2.5rem; }
[data-loader],
[data-media-loader],
[data-variant-loader] {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}
form[aria-busy="true"] [data-loader] { display: flex; }
#media-section[aria-busy="true"] [data-media-loader] { display: flex; }
#variants-section[aria-busy="true"] [data-variant-loader] { display: flex; }
.loader-spin {
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--color-spring);
  border-right-color: transparent;
  border-radius: 50%;
  animation: daidar-spin 0.7s linear infinite;
}
@keyframes daidar-spin { to { transform: rotate(360deg); } }
body.is-submitting .lang button,
body.is-submitting a,
body.is-submitting #google-btn {
  pointer-events: none;
  opacity: 0.6;
}

.auth-shell {
  max-width: 28rem;
  margin: 2.5rem auto;
  padding: 0 1rem 3rem;
}
.auth-shell--wide { max-width: 46rem; }
.auth-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e5;
}
[data-auth-tabs] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 0.25rem;
}
[data-auth-tabs] a {
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
}
[data-auth-tabs] a[aria-current="page"] {
  background: var(--muted);
  color: #fff;
}
.auth-badge {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.auth-card h1 { text-align: center; font-size: 1.75rem; }
.auth-sub { text-align: center; color: var(--muted); margin: 0 0 1.25rem; }
.auth-card button.primary { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; }
.field-icon { position: relative; }
.field-icon > svg {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--muted);
  pointer-events: none;
}
.field-icon input { padding-left: 2.35rem; }
.field-icon:has(button[data-password-toggle]) input { padding-right: 2.5rem; }
button[data-password-toggle] {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}
button[data-password-toggle] svg {
  position: static;
  left: auto;
  top: auto;
  right: auto;
  transform: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--muted);
  pointer-events: none;
  display: block;
}
button[data-password-toggle][aria-pressed="true"] [data-eye-off] { display: none; }
button[data-password-toggle][aria-pressed="false"] [data-eye-on],
button[data-password-toggle]:not([aria-pressed]) [data-eye-on] { display: none; }
.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1.1rem;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.checkbox-row--wrap {
  align-items: flex-start;
}
.checkbox-row--wrap input[type="checkbox"] {
  margin-top: 0.15rem;
}
.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"] {
  accent-color: var(--color-hunter);
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}
.remember-row a { font-size: 0.9rem; white-space: nowrap; }
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 40rem) {
  .form-grid-2 { grid-template-columns: 1fr; }
}
.form-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  color: var(--color-hunter);
}
.form-section-header svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.form-section-header h2 { margin: 0; font-size: 1.05rem; }
[data-section] { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #ddd; }
[data-bill-options] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (max-width: 40rem) {
  [data-bill-options] { grid-template-columns: 1fr; }
}
[data-bill-option] {
  text-align: left;
  border: 2px solid #ddd;
  background: var(--card);
  border-radius: 12px;
  padding: 0.9rem;
  cursor: pointer;
  color: inherit;
  font: inherit;
}
[data-bill-option][aria-pressed="true"] {
  border-color: var(--color-forest);
  background: color-mix(in srgb, var(--color-sage) 18%, #fff);
}
[data-bill-option] strong { display: block; margin-bottom: 0.25rem; }
[data-bill-option] span { display: block; font-size: 0.8rem; color: var(--muted); }
[data-bill-summary] {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
}
[data-bill-summary] .sum-title { font-weight: 600; margin: 0 0 0.5rem; color: var(--color-forest); }
[data-leave-dialog] {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}
[data-leave-dialog][hidden] { display: none; }
[data-leave-dialog] .leave-box {
  background: var(--card);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  max-width: 22rem;
  width: calc(100% - 2rem);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
[data-leave-dialog] .leave-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}
[data-leave-dialog] .leave-actions button {
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
}
[data-leave-cancel] { background: #fff; border: 1px solid #c5c5c5; }
[data-leave-confirm] {
  background: var(--color-forest);
  color: #fff;
  border: 0;
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #eee;
  color: var(--text);
  margin: 0.15rem 0.35rem 0.15rem 0;
}
.status-active { background: var(--color-mint); color: var(--color-hunter); }
.status-draft { background: #eee; color: var(--muted); }
.status-inactive { background: #ddd; color: var(--color-orange-dark); }

.variant-list { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.5rem 0; }
.variant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.variant-row.out-of-stock { color: var(--muted); }
.variant-photo-thumb-sm {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.variant-row-actions { display: flex; gap: 0.4rem; }
.variant-row-actions button {
  border: 0;
  background: #333;
  color: #fff;
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.variant-photo-thumb {
  position: relative;
  display: inline-flex;
  width: 3.2rem;
  height: 3.2rem;
}
.variant-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}
.variant-photo-thumb button {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 0;
  background: #333;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.media-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.media-thumb {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
}
.media-thumb img, .media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
}
.media-thumb button {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 0;
  background: #333;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.gallery { position: relative; max-width: 32rem; margin: 0 auto 1rem; }
.gallery-frame {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-frame img, .gallery-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.gallery-swipe .gallery-frame { touch-action: pan-y; cursor: grab; }
#gallery-prev, #gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 0;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
  font-size: 1.1rem;
}
#gallery-prev { left: 0.5rem; }
#gallery-next { right: 0.5rem; }
#gallery-prev[hidden], #gallery-next[hidden] { display: none; }
#gallery-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  max-width: calc(100% - 1rem);
  overflow-x: auto;
}
#gallery-dots[hidden] { display: none; }
.gallery-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  padding: 0;
  cursor: pointer;
}
.gallery-dot.active { background: #fff; }

#zoom-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#zoom-overlay[hidden] { display: none; }
#zoom-overlay img { max-width: 95vw; max-height: 95vh; object-fit: contain; }

.media-thumb .media-edit-btn {
  position: absolute;
  bottom: -0.4rem;
  right: -0.4rem;
  top: auto;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  border: 0;
  background: #333;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  font-size: 0.75rem;
}

#photo-editor:not([hidden]) { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
#photo-editor-canvas-wrap { max-width: 100%; }
#photo-editor-canvas { max-width: 100%; height: auto; touch-action: none; cursor: move; border-radius: 8px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.header-pill, .cart-icon {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px; padding: 0.2rem 0.65rem; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.cart-icon { position: relative; }
.cart-badge {
  position: absolute; top: -0.4rem; right: -0.4rem;
  background: var(--color-orange); color: #fff; border-radius: 999px;
  font-size: 0.7rem; line-height: 1; min-width: 1.1rem; height: 1.1rem;
  display: flex; align-items: center; justify-content: center; padding: 0 0.2rem;
}
.cart-badge[hidden] { display: none; }

/* 063-order-messages-notifications: the "Messages"/"Mensajes" nav item's
   unread count — a small green circle with the number centered inside,
   inline with the label so both sit on one line. */
.messages-unread-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-forest); color: #fff; border-radius: 999px;
  font-size: 0.7rem; line-height: 1; min-width: 1.1rem; height: 1.1rem;
  padding: 0 0.3rem; margin-left: 0.4rem; vertical-align: middle;
}
.messages-unread-count[hidden] { display: none; }

/* 067-support-help-form: the "Soporte" pill distinguishing a support-request
   row from an order message in the merged /messages list (FR-008), and
   minimal spacing for the thread/follow-up panel rendered on open. */
.support-badge {
  display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 0.8rem; background: var(--color-teal);
}
.support-thread-message { margin: 0.4rem 0; }
.support-followup-form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }

.home-main { max-width: 72rem; margin: 1.5rem auto; padding: 0 1rem 3rem; }
.home-section { margin-top: 1.5rem; }
.home-section[hidden] { display: none; }
.home-section h2 { margin: 0 0 0.75rem; }
.product-photo, .product-photo-placeholder {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; display: block;
}
.product-photo-placeholder {
  background: #eee; color: var(--muted); display: flex; align-items: center; justify-content: center;
}
.product-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 0.6rem; }
.product-size-line { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.product .price { margin-top: 0.2rem; }

/* 045-cart-page-redesign: cart-item, cart-subtotal, and cart-empty-btn
   below are reused by the /cart page's own layout (see the cart-page
   rules further down); the popup dialog chrome (cart-panel) that used
   to wrap them is gone. */
.cart-item { display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid #eee; }
.cart-item-photo, .cart-item .product-photo-placeholder { width: 3.5rem; height: 3.5rem; flex-shrink: 0; }
.cart-item-info p { margin: 0.1rem 0; }
.cart-subtotal { font-weight: 600; }
.cart-empty-btn {
  width: 100%; margin-top: 0.5rem; padding: 0.55rem 1rem; border-radius: 8px; cursor: pointer;
  background: #fff; border: 1px solid #c5c5c5; color: var(--text);
}

.cart-page-main { max-width: 60rem; margin: 1.5rem auto; padding: 0 1rem 3rem; }
.cart-page-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.cart-page-grid[hidden] { display: none; }
/* 061-stripe-tax-calculation (FR-010): the cart/checkout-view-failed
   retry state, built dynamically by cart-page.js when a Stripe Tax
   outage means the view itself cannot render a verified total. */
#cart-view-error { margin-top: 1rem; }
#cart-view-error button.primary { margin-top: 0.5rem; }
@media (max-width: 640px) {
  .cart-page-grid { grid-template-columns: 1fr; }
}
.cart-page-items .cart-item:last-child { border-bottom: 0; }
.cart-page-list-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.cart-page-secondary-btn {
  width: auto; margin-top: 0; padding: 0.55rem 1rem; border-radius: 8px; cursor: pointer;
  background: #fff; border: 1px solid #c5c5c5; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center;
}
.cart-page-totals-box { margin-bottom: 1rem; }
.cart-page-totals-row { display: flex; justify-content: space-between; margin: 0.35rem 0; }
.cart-page-total-row { font-weight: 700; border-top: 1px solid #ddd; padding-top: 0.5rem; margin-top: 0.5rem; }
.cart-page-totals #cart-checkout-btn { width: 100%; margin-top: 0; text-align: center; }
.cart-item-unavailable { opacity: 0.6; }
.cart-item-unavailable-badge { color: var(--err); font-size: 0.85rem; font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 0.4rem; margin: 0.35rem 0; }
.cart-qty-dec, .cart-qty-inc {
  width: 1.8rem; height: 1.8rem; border-radius: 6px; border: 1px solid #c5c5c5;
  background: #fff; cursor: pointer; line-height: 1; padding: 0;
}
.cart-qty-input { width: 3.2rem; text-align: center; padding: 0.3rem; }
.cart-item-capped-msg { font-size: 0.8rem; }
.cart-item-remove {
  background: transparent; border: 0; padding: 0; color: var(--color-hunter);
  text-decoration: underline; cursor: pointer; font-size: 0.85rem;
}

.search-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.search-bar input[type="search"] { flex: 1 1 14rem; min-width: 0; }
.search-bar button.primary { margin-top: 0; white-space: nowrap; }
.search-bar #filters-toggle, .search-bar #search-clear {
  background: transparent; border: 1px solid #c5c5c5; border-radius: 8px;
  padding: 0.5rem 0.9rem; cursor: pointer; color: var(--text); white-space: nowrap;
}
.filters-panel {
  display: flex; flex-wrap: wrap; gap: 1.25rem; background: var(--card);
  border: 1px solid #ddd; border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1rem;
}
.filters-panel[hidden] { display: none; }
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; min-width: 8rem; }
.filter-label { font-size: 0.85rem; font-weight: 600; color: var(--color-hunter); }
.filter-group .row { gap: 0.5rem; }
#filter-price-min, #filter-price-max { width: 6rem; }
#search-empty { margin-top: 1rem; }
.home-section .product { cursor: pointer; }
.home-section .product:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }

.product-main { max-width: 60rem; margin: 1.5rem auto; padding: 0 1rem 3rem; }
.product-detail .product-top {
  display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: flex-start;
}
.product-detail .gallery { flex: 1 1 22rem; width: 100%; margin: 0; }
.product-info { flex: 1 1 18rem; min-width: 0; }
.product-info h1 { margin-top: 0; }
.product-description { color: var(--text); white-space: pre-line; }
.product-buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
.qty-field { display: flex; flex-direction: column; gap: 0.2rem; }
.qty-field[hidden] { display: none; }
.qty-field label { margin: 0; }
.qty-field input { width: 5rem; }
#variant-swatches, #saved-cards-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.variant-swatch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.variant-swatch img {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: cover;
  border-radius: 50%;
}
.variant-swatch.active { border-color: var(--color-orange); border-width: 2px; }
.variant-swatch:disabled { color: var(--muted); cursor: not-allowed; opacity: 0.6; }
.product-buy-row button.primary { margin-top: 0; }
.product-price { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.product-details-section h2 { margin-top: 0; }
.detail-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem 1.5rem; margin: 0 0 0.75rem; }
.detail-list dt { font-size: 0.8rem; color: var(--muted); margin: 0; }
.detail-list dd { margin: 0.1rem 0 0; font-weight: 600; }
@media (max-width: 40rem) {
  .product-detail .product-top { flex-direction: column; }
}

/* 056-locker-room-panel */
.locker-room-view { max-width: 48rem; margin: 0 auto; padding: 1rem; display: flex; flex-direction: column; gap: 1.25rem; }
.locker-room-hero { display: flex; align-items: center; gap: 1rem; }
.locker-room-avatar {
  width: 4rem; height: 4rem; border-radius: 50%; flex-shrink: 0;
  background: var(--color-orange); color: #fff; background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.locker-room-hero-text h1 { margin: 0 0 0.2rem; }
.locker-room-full-name { margin: 0; color: var(--muted); }
.locker-room-group-label { margin: 0 0 0.5rem; font-size: 1.1rem; }
.locker-room-entries { display: flex; flex-direction: column; gap: 0.4rem; }
/* 058-my-account-rename: "Detalles de la cuenta" is a visual sub-heading
   only (Clarification Q3) — same entries list styling, smaller/muted
   label so it reads as a sub-group of "Mi Perfil", not a sibling group. */
.locker-room-subgroup { display: flex; flex-direction: column; gap: 0.4rem; }
.locker-room-subgroup-label { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.locker-room-entry {
  display: block; text-align: left; padding: 0.6rem 0.9rem; border-radius: 8px;
  border: 1px solid #ddd; background: var(--card); color: var(--text);
  cursor: pointer; text-decoration: none; font: inherit;
}
.locker-room-entry:hover, .locker-room-entry:focus-visible { border-color: var(--color-orange); }
/* 058-my-account-rename (FR-015/FR-016): replaces the 057-era `hidden`
   attribute toggle — `display: none` cannot be transitioned, so a
   collapsed panel now sits at `max-height: 0`/`opacity: 0` and an
   `.is-open` class expands it over 0.5s. `visibility` flips on a delay
   when closing (immediately when opening) so the panel's form fields
   stay out of the tab order and accessibility tree while collapsed,
   the same guarantee `[hidden]` used to provide. */
.locker-room-detail {
  display: flex; flex-direction: column; gap: 0.5rem;
  max-height: 0; opacity: 0; overflow: hidden; visibility: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s 0.5s;
}
.locker-room-detail.is-open {
  max-height: 40rem; opacity: 1; visibility: visible;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
}
.locker-room-detail form { display: flex; flex-direction: column; gap: 0.5rem; }
/* 069-nickname-change-request: #name-form toggles via the `hidden`
   attribute (read-only vs. editable, FR-007) independently of the
   section's own open/closed state above — needs its own override since
   the blanket `.locker-room-detail form` rule otherwise always wins. */
.locker-room-detail form[hidden] { display: none; }
.locker-room-readonly { font-size: 1.1rem; font-weight: 600; }
#photo-preview-canvas { border-radius: 50%; width: 8rem; height: 8rem; object-fit: cover; }
.locker-room-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
/* 057-locker-room-refinements: a row now stacks its clickable summary
   (.locker-room-row) above an optional detail panel instead of laying two
   inline children side by side — the old `display: flex` on the `<li>`
   itself moved onto `.locker-room-row` below. */
.locker-room-list li { padding: 0.6rem 0.9rem; border-radius: 8px; border: 1px solid #ddd; }
.locker-room-row {
  display: flex; justify-content: space-between; gap: 1rem; width: 100%;
  background: none; border: none; padding: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer;
}
/* 058-my-account-rename: status swatch + label sit together on the left of
   the row; the chevron is pushed to the far right by the row's own
   `justify-content: space-between` (FR-006). A rounded *square*, not a
   circle — `border-radius: 4px`, never `50%` (spec's own "cuadrado ... con
   border-radius" wording; see specs/058-my-account-rename/research.md §5). */
.locker-room-row-main { display: flex; align-items: center; gap: 0.5rem; }
.status-swatch { width: 0.6rem; height: 0.6rem; border-radius: 4px; display: inline-block; flex-shrink: 0; }
.status-swatch--completed { background: var(--color-mint); }
.status-swatch--failed { background: var(--err); }
.status-swatch--pending { background: var(--color-orange); }
/* 068-tracking-page-seller-ratings: tracking.js's own three bucket names
   ("processing"/"shipped"/"delivered") are distinct from the pre-existing
   "pending"/"completed" buckets above (057/058's order/sale status, a
   different concept) — each needs its own modifier rule here, not a reuse
   of those. "🔵 Enviados" is the one status-only use of
   --color-status-shipped (constitution v1.5.0). */
.status-swatch--processing { background: var(--color-orange); }
.status-swatch--shipped { background: var(--color-status-shipped); }
.status-swatch--delivered { background: var(--color-mint); }
/* 059-account-details-status-colors: solid, pill-shaped status badge —
   `border-radius: 999px` for the fully-rounded pill the sketch draws,
   deliberately different from `.status-swatch`'s small rounded-*square*
   (`4px`) dot (058-my-account-rename's own research.md already flagged
   that exact shape distinction). Groups with `.chevron` inside
   `.locker-room-row-end` so both sit together on the row's right side.
   Named `.order-status-badge`, not `.status-badge` — that name is
   already taken (line ~396 above) by products.js/product-page.js's own
   active/draft/inactive product-status badge, with a different color
   scheme; reusing it here would have silently overridden that badge's
   text color. */
.locker-room-row-end { display: flex; align-items: center; gap: 0.5rem; }
.order-status-badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; color: #fff; font-weight: 700; font-size: 0.8rem; }
.order-status-badge--completed { background: var(--color-mint); }
.order-status-badge--failed { background: var(--err); }
.order-status-badge--pending { background: var(--color-orange); }
.order-status-badge--processing { background: var(--color-orange); }
.order-status-badge--shipped { background: var(--color-status-shipped); }
.order-status-badge--delivered { background: var(--color-mint); }
.chevron { display: inline-block; transition: transform 0.2s ease; }
.locker-room-row[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.locker-room-list li.status-completed { background: color-mix(in srgb, var(--color-mint) 15%, transparent); }
.locker-room-list li.status-failed { background: color-mix(in srgb, var(--err) 12%, transparent); }
.locker-room-list li.status-pending { background: color-mix(in srgb, var(--color-orange) 12%, transparent); }
.locker-room-list li.status-processing { background: color-mix(in srgb, var(--color-orange) 12%, transparent); }
.locker-room-list li.status-shipped { background: color-mix(in srgb, var(--color-status-shipped) 12%, transparent); }
.locker-room-list li.status-delivered { background: color-mix(in srgb, var(--color-mint) 15%, transparent); }
.order-detail-panel { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 0.4rem; }
.order-detail-panel h4 { margin: 0.4rem 0 0.1rem; font-size: 0.95rem; }
.order-detail-item { display: flex; gap: 0.6rem; align-items: center; }
.order-detail-item p { margin: 0.1rem 0; }
.order-item-photo { width: 3rem; height: 3rem; flex-shrink: 0; border-radius: 6px; }
.locker-room-pagination { display: flex; gap: 0.5rem; align-items: center; }
/* 068-tracking-page-seller-ratings: the row(s) a deep link (?order_id= /
   &seller_id=) points at — a ring, not a background swap, so it never
   fights the status tint above. --color-teal is an existing Principle VII
   token (cool accent), not a new hue. */
.locker-room-list li.highlighted { outline: 2px solid var(--color-teal); outline-offset: 2px; }
.tracking-rating { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #eee; display: flex; flex-direction: column; gap: 0.4rem; }
.tracking-rating label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.9rem; }
.tracking-rating textarea { min-height: 3rem; }
.locker-room-earnings-total { font-size: 1.75rem; font-weight: 700; }

/* 057-locker-room-refinements: /saved-cards's first styled table in this
   app (research.md §6) — scoped narrowly, not a shared `.data-table`. */
.saved-cards-table { width: 100%; border-collapse: collapse; }
.saved-cards-table th, .saved-cards-table td { padding: 0.6rem 0.9rem; text-align: left; border-bottom: 1px solid #eee; }
.saved-cards-table thead th { color: var(--muted); font-weight: 600; font-size: 0.85rem; border-bottom: 1px solid #ddd; }
.saved-cards-table tbody tr:last-child td { border-bottom: none; }
