﻿/* ── Cart drawer (bottom sheet) ── */
.cart-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 651;
  overscroll-behavior: contain;
  background: white;
  border-radius: 20px 20px 0 0;
  max-height: 92vh;
  max-height: 92dvh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 -8px 40px rgba(15,14,12,.16);
}
.cart-drawer.open { transform: translateY(0); }

.cart-drawer-handle {
  width: 40px; height: 4px;
  background: rgba(15,14,12,.14);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.cart-drawer-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 20px 16px;
  border-bottom: 1.5px solid rgba(15,14,12,.07);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.cart-items {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0;
}

.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(15,14,12,.06);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-weight: 600; font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 3px;
}
.cart-item-price { color: var(--accent); font-weight: 700; font-size: .88rem; }
.cart-item-code {
  font-size: .72rem; color: #9a948c; font-family: monospace;
  letter-spacing: .02em; margin-bottom: 2px;
}

.cart-item-controls {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.cart-qty-btn {
  width: 30px; height: 30px;
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 8px; background: white;
  font-size: 1rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  color: var(--ink);
}
.cart-qty-btn:hover { background: var(--cream); border-color: var(--ink); }
.cart-qty-num {
  font-weight: 700; font-size: .95rem;
  min-width: 20px; text-align: center;
}
.cart-item-delete {
  width: 26px; height: 26px;
  border: none;
  background: rgba(239,68,68,.1);
  color: #ef4444;
  border-radius: 6px;
  font-size: .8rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
  margin-left: 4px;
}
.cart-item-delete:hover { background: #ef4444; color: white; }
.cart-item-controls--readonly {
  display: flex; align-items: center; flex-shrink: 0;
  color: #888; font-size: .88rem;
}

/* Carrito compartido — banner solo lectura */
.cart-shared-banner {
  display: flex; align-items: center; gap: 7px;
  background: #eff6ff; border-bottom: 1px solid #bfdbfe;
  padding: 8px 16px; font-size: .78rem; color: #2563eb;
  font-weight: 500;
}

/* Modo descuento vendedor en carrito compartido */
.cart-item-price-edit {
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.cart-item-price-orig {
  font-size: .75rem; color: #aaa; text-decoration: line-through;
}
.cart-item-price-input {
  width: 90px; padding: 3px 7px;
  border: 1.5px solid rgba(15,14,12,.18); border-radius: 7px;
  font-size: .88rem; font-weight: 700; color: var(--accent);
  font-family: inherit; background: white;
}
.cart-item-price-input:focus { outline: none; border-color: var(--accent); }
.cart-wa-btn--offer { background: #1d4ed8; }
.cart-wa-btn--offer:hover { background: #1e40af; }

/* Modal compartir carrito */
#cart-share-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(15,14,12,.45); z-index: 700;
  align-items: center; justify-content: center;
  padding: 16px;
}

.cart-empty {
  text-align: center; padding: 40px 20px;
  color: var(--soft); font-size: .9rem;
}
.cart-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }

.cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1.5px solid rgba(15,14,12,.07);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cart-total-label {
  font-size: .78rem; color: var(--soft);
  font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
}
.cart-total-price {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1.5rem; color: var(--ink);
}

.cart-share-btn {
  width: 100%;
  margin-bottom: 10px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(15,14,12,.15);
  border-radius: 12px;
  padding: 11px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, border-color .15s;
}
.cart-share-btn:hover:not(:disabled) { background: var(--surface); border-color: rgba(15,14,12,.28); }
.cart-share-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Botón confirmar pedido — usa el color de la tienda, NO verde WA */
.cart-confirm-btn {
  width: 100%;
  background: var(--accent, #f97316);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, transform .15s;
}
.cart-confirm-btn:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.cart-confirm-btn:disabled {
  background: #e5e7eb !important; color: #9ca3af !important;
  cursor: not-allowed; transform: none !important;
}

/* Botón WhatsApp real — verde WA solo cuando el canal ES WhatsApp */
.cart-wa-btn {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s, transform .15s;
}
.cart-wa-btn:hover:not(:disabled) { background: #1da851; transform: translateY(-1px); }
.cart-wa-btn:disabled,
.cart-wa-btn--off {
  background: #e5e7eb !important; color: #9ca3af !important;
  cursor: not-allowed;
  transform: none !important;
}
.cart-no-wa-notice {
  font-size: .78rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 6px;
  text-align: center;
  line-height: 1.5;
}
.cart-no-wa-link {
  background: none; border: none; padding: 0;
  color: #b45309; font-weight: 600; font-size: inherit;
  cursor: pointer; text-decoration: underline;
}
.cart-no-wa-link:hover { color: #92400e; }

/* ── Botón historial en footer carrito ── */
.orders-history-btn {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: 1.5px solid rgba(15,14,12,.1);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, color .15s;
}
.orders-history-btn:hover { background: var(--surface); color: var(--ink); }
.orders-history-badge {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: .72rem;
  font-weight: 700;
}

/* ── Tarjetas historial ── */
.order-history-card {
  border-bottom: 1.5px solid rgba(15,14,12,.07);
  padding: 16px 20px;
}
.order-history-card:last-child { border-bottom: none; }
.order-history-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px; gap: 8px;
}
.order-history-store {
  font-weight: 700; font-size: .92rem; color: var(--ink);
}
.order-history-date {
  font-size: .72rem; color: var(--soft); white-space: nowrap;
}
.order-history-customer {
  font-size: .8rem; color: var(--soft); margin-bottom: 10px;
}
.order-history-lines {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px;
}
.order-history-line {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .84rem; color: var(--ink);
}
.order-history-line em { color: var(--soft); font-style: normal; }
.order-history-total {
  font-size: .84rem; color: var(--soft); text-align: right;
}
.order-history-total strong { color: var(--ink); font-size: .95rem; }

.order-history-line-restore {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .84rem; color: var(--ink);
}
.restore-item-btn {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: background .15s, color .15s;
  padding: 0;
}
.restore-item-btn:hover { background: var(--accent); color: white; }

/* ── Modal restaurar producto ── */
.restore-confirm-modal {
  text-align: center;
  padding: 32px 28px 28px !important;
}
.restore-confirm-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}
.restore-confirm-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.restore-confirm-product {
  font-size: .88rem;
  color: var(--soft);
  margin-bottom: 24px;
  line-height: 1.5;
}
.restore-confirm-actions {
  display: flex; gap: 10px; justify-content: center;
}
.restore-confirm-actions .btn { flex: 1; max-width: 140px; }


/* ── ESTADÍSTICAS DE VISITAS ── */
#dash-stats-section { padding: 0 20px 4px; }
.stats-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 16px;
}
.stats-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.stats-total {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}
.stats-label {
  font-size: 0.75rem;
  color: var(--soft);
  margin-top: 3px;
}
.stats-scope-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--cream);
  border-radius: 20px;
  padding: 4px 10px;
  color: var(--ink);
  white-space: nowrap;
}
.stat-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 72px;
  overflow-x: auto;
}
.stat-bar-item {
  flex: 1;
  min-width: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}
.stat-bar-fill {
  width: 100%;
  min-height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  opacity: .85;
  transition: height .4s ease;
}
.stat-bar-lbl {
  font-size: 0.5rem;
  color: var(--soft);
  white-space: nowrap;
}
.stats-empty {
  font-size: 0.82rem;
  color: var(--soft);
  text-align: center;
  padding: 8px 0;
}

/* ── PRODUCTOS DESTACADOS ── */
/* ── Stack de badges izquierda (catálogo público) ── */
.prod-badge-stack {
  position: absolute;
  top: 8px; left: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.featured-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .02em;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 45%, transparent);
  display: inline-block;
}

/* ── PIEZA ÚNICA ── */
.unique-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .02em;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(124,58,237,.35);
}
.unique-toggle-text { color: #7c3aed; font-weight: 600; }

/* ── Badges de etiquetas en tarjetas del catálogo ── */
.prod-badge {
  font-size: .65rem; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; letter-spacing: .02em;
  display: inline-block;
}
.prod-badge--nuevo       { background: #16a34a; color: #fff; box-shadow: 0 2px 6px rgba(22,163,74,.35); }
.prod-badge--proximo     { background: #2563eb; color: #fff; box-shadow: 0 2px 6px rgba(37,99,235,.35); }
.prod-badge--liquidacion { background: #dc2626; color: #fff; box-shadow: 0 2px 6px rgba(220,38,38,.35); }
.prod-badge--hot         { background: #b45309; color: #fff; box-shadow: 0 2px 6px rgba(180,83,9,.35); }
.prod-badge--wholesale   { background: #dbeafe; color: #1d4ed8; box-shadow: 0 2px 6px rgba(29,78,216,.18); }

/* ── Meta row en tarjeta (cat + género) ── */
.cat-card-meta-row { display:flex; flex-wrap:nowrap; gap:6px; margin-bottom:3px; overflow:hidden; align-items:center; }
.cat-card-meta-row .product-tag { background:none; border:none; padding:0; border-radius:0; font-size:.62rem; color:var(--soft); opacity:.7; }
.cat-meta-text {
  font-size: .62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--soft);
  opacity: .7;
  white-space: nowrap;
}
.cat-meta-text + .cat-meta-text::before {
  content: '·';
  margin-right: 6px;
  opacity: .5;
}
.cat-meta-text--gender { color: #7c3aed; opacity: .8; }

/* ── Tag chips en catálogo público ── */
.cat-tag-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
}
.cat-tag-chips::-webkit-scrollbar { display: none; }
.cat-tag-chips { scrollbar-width: none; -ms-overflow-style: none; }
.chip--tag { border-style: dashed; }

/* ── Etiquetas en modal de producto ── */
.prod-tags-wrap { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.prod-tag-chip {
  display:flex; align-items:center; gap:6px; cursor:pointer;
  font-size:.84rem; padding:7px 12px;
  border: 1.5px solid var(--border);
  border-radius:8px; transition:all .15s;
  user-select:none;
}
.prod-tag-chip:hover { border-color: var(--accent); background: rgba(232,93,38,.06); }
.prod-tag-chip input[type=checkbox] { accent-color: var(--accent); cursor:pointer; width:14px; height:14px; }
.prod-tag-chip:has(input:checked) { border-color: var(--accent); background: rgba(232,93,38,.08); font-weight:600; }

/* ── Oculto por vendedor (dashboard) ── */
.product-card--vendor-hidden { opacity: .65; }
.vendor-hidden-badge {
  position:absolute; top:8px; left:8px;
  background:#374151; color:#fff;
  font-size:.65rem; font-weight:700; padding:3px 8px; border-radius:20px; z-index:2;
}
.btn-eye--off { color: #dc2626 !important; }

.tallas-label-row { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.tallas-label-row label:first-child { margin-bottom:0; }
.unique-inline-label { display:flex; align-items:center; gap:5px; cursor:pointer; font-size:.82rem; white-space:nowrap; }
.unique-inline-label input[type=checkbox] { width:14px; height:14px; accent-color:#7c3aed; cursor:pointer; }
.product-card--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 22%, transparent);
}
.cat-product-card--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 22%, transparent);
}
.btn-star {
  font-size: 1.1rem;
  color: #d1d5db;
  transition: color .15s, transform .1s;
  padding: 4px 7px;
}
.btn-star:hover { color: #f59e0b; transform: scale(1.2); }
.btn-star--on { color: #f59e0b; }

/* ── MODAL PAGO ── */
.modal--payment { max-width: 420px; }
.payment-modal-body { padding: 20px 24px 24px; }
.payment-plan-chip {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #000));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.payment-loading { color: var(--soft); font-size: 0.9rem; padding: 12px 0; }
.bank-info-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bank-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.bank-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--soft);
  min-width: 80px;
}
.bank-val { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.bank-account-num {
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--accent);
}
.bank-notes {
  font-size: 0.8rem;
  color: var(--soft);
  border-top: 1px solid rgba(15,14,12,.08);
  padding-top: 8px;
  margin-top: 2px;
}
.no-bank-info {
  text-align: center;
  color: var(--soft);
  font-size: 0.88rem;
  padding: 16px 0;
  line-height: 1.6;
}
.payment-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.payment-actions .btn { flex: 1; }
.payment-wa-btn { background: #25d366 !important; }
.payment-wa-btn:hover { background: #1da851 !important; }
.payment-note {
  font-size: 0.75rem;
  color: var(--soft);
  text-align: center;
  line-height: 1.5;
}

/* ── PLAN PENDIENTE ── */
.plan-info-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
/* wrapper para tooltip de revisión */
.plan-chip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.plan-pending-notice {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  color: #b45309;
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 100;
}
.plan-chip-wrap:hover .plan-pending-notice,
.plan-chip-wrap:focus-within .plan-pending-notice,
.plan-chip-wrap.show-pending .plan-pending-notice {
  opacity: 1;
}
.plan-expires-notice {
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}
.plan-expires-notice.expires--ok     { background: #dcfce7; color: #15803d; }
.plan-expires-notice.expires--warn   { background: #fef9c3; color: #b45309; }
.plan-expires-notice.expires--danger { background: #fee2e2; color: #b91c1c; }
.plan-pending-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
  background: #fef9c3;
  border-radius: 8px;
  padding: 6px 10px;
  margin-top: auto;
}

/* ── COLOR PICKER ── */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  outline: none;
  position: relative;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch--selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--swatch-color, #e85d26);
  transform: scale(1.1);
}
.color-swatch--selected::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

/* ── FOTOS EXTRA (tira de miniaturas en modal producto) ── */
.extra-imgs-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.extra-img-slot {
  width: 62px; height: 62px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1.5px solid rgba(15,14,12,.12);
}
.extra-img-slot img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.extra-img-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: white; font-size: .7rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.extra-img-remove:hover { background: #ef4444; }
.extra-img-add {
  width: 62px; height: 62px;
  border: 2px dashed rgba(15,14,12,.15);
  border-radius: 10px;
  background: transparent; cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--soft); font-size: .65rem;
  gap: 3px; flex-shrink: 0;
  transition: border-color .15s, color .15s;
}
.extra-img-add:hover { border-color: var(--accent); color: var(--accent); }
.extra-img-add-icon { font-size: 1.2rem; }

/* ── CARRUSEL MODAL DETALLE PRODUCTO ── */
.pd-carousel {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pd-carousel-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.pd-carousel-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--ink); font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  z-index: 5; transition: background .15s; line-height: 1;
}
.pd-carousel-nav:hover { background: white; }
.pd-carousel-prev { left: 8px; }
.pd-carousel-next { right: 8px; }
.pd-carousel-dots {
  position: absolute;
  bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5;
}
.pd-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.pd-carousel-dot.active { background: white; transform: scale(1.2); }

/* ── Miniaturas galería modal producto ── */
.pd-thumbnails {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  padding: 2px 0;
}
.pd-thumbnails:empty { display: none; }
.pd-thumbnails::-webkit-scrollbar { display: none; }
.pd-thumb {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0; cursor: pointer;
  transition: border-color .15s, opacity .15s;
  opacity: .65;
}
.pd-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.pd-thumb--active {
  border-color: var(--accent);
  opacity: 1;
}

/* Video en carrusel de detalle de producto */
.pd-carousel-video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}
.pd-carousel-video--solo {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
  border-radius: inherit;
}
/* Miniatura de video en galería */
.pd-thumb--video {
  background: #111;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
}

/* ── Paso 3: Pedido confirmado ── */
.cart-success-body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 32px 24px 16px;
  text-align: center;
}
.cart-success-check {
  color: #22c55e;
  margin-bottom: 6px;
}
.cart-success-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink, #0f0e0c);
}
.cart-success-num {
  font-size: .82rem;
  color: var(--soft, #9a948c);
  font-variant-numeric: tabular-nums;
}
.cart-success-sub {
  font-size: .85rem;
  color: var(--soft, #9a948c);
  max-width: 260px;
  line-height: 1.5;
}
.cart-success-footer {
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 8px;
}
.cart-success-close-btn {
  width: 100%;
  color: var(--soft, #9a948c);
}
[data-theme="dark"] .cart-success-title { color: #f5f5f5; }
