/* ==========================================================================
   SEGA CALZADO DEPORTIVO - CSS DESIGN SYSTEM
   Diseño ultra profesional, limpio, responsivo y sin emojis
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #060913;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.90);
  --bg-header: rgba(11, 15, 26, 0.85);
  
  --color-primary: #00d8e7;
  --color-primary-hover: #00b3c0;
  --color-magenta: #a855f7;
  --color-magenta-bright: #d946ef;
  --color-gold: #facc15;
  --color-accent: #00e5f5;
  
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  
  --border-color: rgba(168, 85, 247, 0.3);
  --border-focus: #00d8e7;
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -5px rgba(6, 182, 212, 0.25), 0 0 15px rgba(168, 85, 247, 0.2);
  --shadow-lg: 0 20px 40px -10px rgba(6, 182, 212, 0.35), 0 0 30px rgba(217, 70, 239, 0.25);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 40%, rgba(6, 182, 212, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 60%, rgba(217, 70, 239, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #0e0a1f 0%, #060913 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 1rem 0;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.brand-badge {
  background: linear-gradient(135deg, #00d8e7 0%, #a855f7 100%);
  color: #000000;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(0, 216, 231, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #00d8e7;
  text-shadow: 0 0 8px rgba(0, 216, 231, 0.6);
}

.cart-btn-trigger {
  position: relative;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 216, 231, 0.4);
  color: var(--text-main);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(0, 216, 231, 0.2);
}

.cart-btn-trigger:hover {
  border-color: #d946ef;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
  transform: translateY(-2px);
}

.cart-badge {
  background: linear-gradient(135deg, #00d8e7, #d946ef);
  color: #000000;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  transition: var(--transition);
}

.cart-badge.has-count {
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.7);
  transform-origin: center;
}

.cart-badge.badge-pop {
  animation: badgePop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.cart-btn-trigger.has-items {
  border-color: var(--color-magenta-bright);
  background: rgba(30, 15, 45, 0.95);
  animation: cartGlow 2.4s ease-in-out infinite;
}

@keyframes cartGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(217, 70, 239, 0.3); }
  50% { box-shadow: 0 0 26px rgba(217, 70, 239, 0.75); }
}

@keyframes badgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   LEYENDA "¿AGREGAR OTRO PRODUCTO O SEGUIR CON LA COMPRA?"
   ========================================================================== */

#addToCartLegend {
  z-index: 2000;
}

.legend-box {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 1.75rem 1.75rem;
  text-align: center;
  animation: legendIn 0.3s cubic-bezier(0.2, 1.2, 0.4, 1);
}

@keyframes legendIn {
  from { transform: translateY(18px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.legend-check {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d8e7, #d946ef);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(0, 216, 231, 0.45);
}

.legend-check .icon-svg {
  stroke: #000000;
}

.legend-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.legend-item {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  word-break: break-word;
}

.legend-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.legend-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.25rem 0;
}

.legend-question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.legend-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-legend-ghost {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-legend-ghost:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
  background: rgba(0, 216, 231, 0.08);
}

.legend-count {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ==========================================================================
   HERO / BANNER SEGA
   ========================================================================== */

.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #60a5fa;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ==========================================================================
   CATALOGO DE PRODUCTOS
   ========================================================================== */

.catalog-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
  width: 100%;
}

.catalog-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.catalog-title {
  font-size: 1.75rem;
  font-weight: 700;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.search-box {
  position: relative;
}

.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  width: 260px;
  max-width: 100%;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* GRID DE PRODUCTOS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 2rem;
}

.product-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: #00d8e7;
  box-shadow: 0 15px 35px -5px rgba(0, 216, 231, 0.35), 0 0 25px rgba(217, 70, 239, 0.3);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  background-color: #000000;
  overflow: hidden;
  cursor: pointer;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-quickview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 19, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-image-wrap:hover .product-quickview-overlay {
  opacity: 1;
}

.btn-quickview {
  background: linear-gradient(135deg, #00d8e7 0%, #a855f7 100%);
  color: #000000;
  border: none;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 15px rgba(0, 216, 231, 0.5);
}

.product-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00d8e7;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 10px rgba(0, 216, 231, 0.4);
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-ref {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
}

.price-tag {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.price-currency {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 0.2rem;
}

.btn-add-cart {
  background: linear-gradient(135deg, #00d8e7 0%, #a855f7 100%);
  color: #000000;
  border: none;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 0 12px rgba(0, 216, 231, 0.4);
}

.btn-add-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.6);
}

/* ==========================================================================
   MODAL VISTA RÁPIDA (FOTO + SELECCIÓN DE TALLA + COLOR + CÁLCULO)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .modal-box {
    grid-template-columns: 1fr;
  }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-img-col {
  position: relative;
  background: #000;
  min-height: 350px;
}

.modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info-col {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.option-group {
  margin-bottom: 1.25rem;
}

.option-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.size-btn:hover, .size-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
}

.color-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.color-btn:hover, .color-btn.selected {
  border-color: var(--color-accent);
  background: rgba(16, 185, 129, 0.2);
  color: var(--color-accent);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--border-color);
}

.qty-input {
  width: 48px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
}

.modal-price-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: auto;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.total-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.total-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
}

/* ==========================================================================
   FORMULARIO DE ENVÍO LOGIGHO & CHECKOUT
   ========================================================================== */

.checkout-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}


.form-group {

  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Campo bloqueado (valor fijo que el usuario no puede editar) */
.locked-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-main);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-weight: 700;
  user-select: none;
}

.locked-field .icon-svg {
  color: var(--color-gold);
}

.locked-tag {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
  background: var(--color-gold);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.55rem;
}

.field-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ==========================================================================
   DIRECCIÓN INTELIGENTE (AUTOCOMPLETADO + MAPA + REFERENCIA + CONFIRMACIÓN)
   ========================================================================== */

.address-search-wrap {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1200;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 270px;
  overflow-y: auto;
}

.address-suggestions li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: background 0.15s ease;
}

.address-suggestions li:hover,
.address-suggestions li.is-active {
  background: rgba(0, 216, 231, 0.14);
}

.address-suggestions li small {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.address-suggestions .sg-empty {
  cursor: default;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.address-toolbar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 216, 231, 0.12);
  border: 1px solid rgba(0, 216, 231, 0.45);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-chip:hover {
  background: rgba(0, 216, 231, 0.24);
}

.btn-chip:disabled {
  opacity: 0.55;
  cursor: progress;
}

.address-map {
  height: 270px;
  width: 100%;
  margin-top: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-main);
  overflow: hidden;
  transition: height 0.25s ease, margin-top 0.25s ease, opacity 0.2s ease,
    border-width 0.2s ease, visibility 0.25s ease;
}

/* Mapa oculto hasta que el usuario lo necesita (o hace falta afinar el pin) */
.address-map.is-collapsed {
  height: 0;
  margin-top: 0;
  border-width: 0;
  opacity: 0;
  visibility: hidden;
}

.address-map .leaflet-bar a {
  background: var(--bg-card);
  color: #fff;
}

.address-map .leaflet-control-attribution {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.75);
}

.map-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.map-status.is-ok {
  color: #34d399;
  font-weight: 600;
}

/* Checkout: aviso de "Reclamar en oficina de transporte" (no pide dirección) */
.pickup-notice {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.95rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.87rem;
  color: var(--text-main);
}

.pickup-notice strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-accent);
}

.address-confirm {
  margin-top: 1.35rem;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(0, 216, 231, 0.5);
  background: rgba(0, 216, 231, 0.06);
  transition: var(--transition);
}

.address-confirm.is-confirmed {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.7);
  background: rgba(16, 185, 129, 0.1);
}

.address-confirm-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}

.address-summary {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  white-space: pre-line;
}

.btn-confirm-address {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-confirm-address:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.address-confirm.is-confirmed .btn-confirm-address {
  background: #34d399;
  cursor: default;
  transform: none;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.payment-card-option {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--bg-main);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.payment-card-option:hover, .payment-card-option.selected {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.1);
}

.qr-display-box {
  background: #ffffff;
  color: #000000;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 470px;
  margin: 1.5rem auto;
}

.qr-img {
  width: min(100%, 380px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 14px;
}

.btn-primary {
  width: 100%;
  background: var(--color-primary);
  color: #000000;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #070a12;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* SVG ICON HELPERS */
.icon-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   HEADER - MENÚ MÓVIL / NAVEGACIÓN SEGÚN ROL
   ========================================================================== */

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 216, 231, 0.4);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.nav-toggle:hover {
  border-color: var(--color-accent);
}

.panel-float-btn {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #00d8e7 0%, #a855f7 100%);
  color: #000000;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  transition: var(--transition);
}

.panel-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 216, 231, 0.4);
}

/* ==========================================================================
   LAYOUT HELPERS RESPONSIVE (PANELES, CHAT, CARRITO)
   ========================================================================== */

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.admin-manage-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

/* Cambios masivos de precios (panel de catálogo) */
.bulk-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.bulk-values {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.bulk-value-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.bulk-value-chip span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bulk-value-chip strong {
  font-size: 1rem;
  color: var(--color-accent);
}

.bulk-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.bulk-pager {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bulk-pager .btn-chip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


.cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.chat-card {
  display: flex;
  flex-direction: column;
  height: 600px;
  min-height: 0;
}

.chat-form {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chat-form .form-control {
  flex: 1 1 220px;
  min-width: 0;
  width: auto;
}

.chat-form .btn-primary {
  width: auto;
  flex: 0 0 auto;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-row > * {
  flex: 1 1 auto;
}

.cart-item-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.cart-item-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-info {
  flex: 1 1 180px;
  min-width: 0;
}

.cart-item-price {
  text-align: right;
}

.form-msg {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.form-msg-ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.form-msg-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE GENERAL
   ========================================================================== */

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 15, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.55);
    padding: 0.35rem 1.25rem 0.75rem;
    z-index: 120;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links .nav-link {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
  }
}

@media (max-width: 900px) {
  .two-col-grid,
  .admin-manage-grid,
  .cart-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .chat-card {
    height: min(72vh, 560px);
  }

  .chat-bubble {
    max-width: 92%;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .header-container {
    padding: 0 1rem;
    gap: 0.6rem;
  }

  .brand-logo {
    font-size: 1.3rem;
    gap: 0.5rem;
  }

  .brand-logo-img {
    height: 32px;
  }

  .brand-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  .cart-btn-trigger {
    padding: 0.55rem 0.8rem;
    gap: 0.4rem;
  }

  .cart-btn-label {
    display: none;
  }

  .catalog-container {
    padding: 1.75rem 1rem;
  }

  .catalog-header {
    gap: 1rem;
    margin-bottom: 1.75rem;
  }

  .catalog-filters {
    width: 100%;
  }

  .search-box {
    flex: 1 1 100%;
  }

  .search-input,
  .filter-select,
  .form-control {
    width: 100%;
    font-size: 16px;
  }

  .products-grid {
    gap: 1.25rem;
  }

  .product-image-wrap {
    height: 220px;
  }

  .product-details {
    padding: 1.15rem;
  }

  .card-box {
    padding: 1.25rem;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 0.75rem;
    align-items: flex-start;
  }

  .modal-box {
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .modal-info-col {
    padding: 1.25rem;
  }

  .modal-img-col {
    min-height: 220px;
  }

  .chat-card {
    height: min(70vh, 520px);
  }

  .chat-form .btn-primary {
    width: 100%;
  }

  .cart-item-img {
    width: 72px;
    height: 72px;
  }

  .cart-item-price {
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cart-item-price .qty-control {
    transform: none;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .panel-float-btn {
    left: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem;
  }
}


/* ==========================================================================
   RECUPERAR PEDIDO (ENLACE PERMANENTE + P�GINA MI PEDIDO)
   ========================================================================== */

/* P�gina /mi-pedido.php */
.recover-hero {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.recover-badge {
  display: inline-block;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #141414;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.recover-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

.recover-title span {
  color: #facc15;
}

.recover-sub {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 0 auto 1.75rem;
  max-width: 560px;
}

.recover-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 460px;
  margin: 0 auto 1.25rem;
  text-align: left;
}

.recover-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.recover-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

.recover-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.recover-field input::placeholder {
  color: #64748b;
  font-weight: 500;
}

.recover-field input:focus {
  outline: none;
  border-color: #facc15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.18);
}

.recover-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Lista de pedidos encontrados (búsqueda con cualquiera de los 3 datos) */
.recover-results {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  text-align: left;
}

.recover-results-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.85rem;
  text-align: center;
}

.recover-result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.recover-result-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.recover-result-num {
  color: #60a5fa;
  font-size: 0.98rem;
}

.recover-result-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.recover-result-status {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.recover-result-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #141414;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 0.6rem 1.05rem;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.recover-result-btn:hover {
  transform: translateY(-2px);
}

.recover-submit {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #141414;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.35);
}

.recover-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.45);
}

.recover-continue {
  max-width: 460px;
  margin: 1.25rem auto 0;
}

.recover-continue-link {
  display: block;
  text-align: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
}

.recover-continue-link:hover {
  background: rgba(16, 185, 129, 0.22);
  color: #fff;
}

.recover-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.9rem;
  margin-top: 2.25rem;
  text-align: left;
}

.recover-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.95rem;
}

.recover-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #000;
  font-weight: 900;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.recover-step strong {
  color: #fff;
  font-size: 0.86rem;
  display: block;
  margin-bottom: 0.15rem;
}

.recover-step div {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.recover-step small {
  color: var(--text-dim);
  font-size: 0.75rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .recover-steps {
    grid-template-columns: 1fr;
  }

  .recover-result-card {
    flex-direction: column;
    align-items: stretch;
  }

  .recover-result-btn {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================================================
   PAGO ANTICIPADO (etiqueta en cat�logo, modal, checkout y panel)
   ========================================================================== */

.badge-anticipo {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #facc15;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

.advance-note {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fde68a;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.advance-banner {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.advance-banner.ok {
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #fde68a;
}

.advance-banner.warn {
  background: rgba(251, 146, 60, 0.12);
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #fdba74;
}

/* ==========================================================================
   ARMA TU COMBO (combo builder en cat�logo Combos)
   ========================================================================== */
.combo-builder {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.10), rgba(17, 24, 39, 0.65));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.combo-builder-head { margin-bottom: 1.25rem; }
.combo-builder-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.combo-builder-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 720px;
}
.combo-step { margin-bottom: 1.5rem; }
.combo-step-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}
.combo-step-title em {
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.combo-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  flex: 0 0 auto;
}
.combo-shoes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.combo-shoe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-main);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  color: inherit;
}
.combo-shoe-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.combo-shoe-card.selected {
  border-color: var(--color-accent, #10b981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.combo-shoe-card img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #fff;
}
.combo-shoe-name {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.combo-shoe-price { font-size: 0.8rem; font-weight: 800; color: #fff; }
.combo-size-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}
.combo-size-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.combo-shoe-clear {
  font-size: 0.82rem;
  color: #f87171;
  cursor: pointer;
  text-decoration: underline;
}
.combo-accs { display: flex; flex-direction: column; gap: 0.6rem; }
.combo-acc-row {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.7rem 1rem;
}
.combo-acc-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}
.combo-acc-main input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary); cursor: pointer; }
.combo-acc-name { font-weight: 700; color: #fff; flex: 1; }
.combo-acc-price { font-size: 0.9rem; font-weight: 800; color: var(--color-accent, #34d399); }
.combo-acc-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border-color);
}
.combo-acc-variant {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  cursor: pointer;
}
.combo-acc-variant input { accent-color: var(--color-primary); }
.combo-acc-variant-price { color: var(--text-dim); }
.combo-summary {
  border-top: 1px solid var(--border-color);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.combo-summary-list { display: flex; flex-direction: column; gap: 0.35rem; }
.combo-msg-hint { color: var(--text-dim); font-size: 0.88rem; }
.combo-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.combo-summary-item .combo-summary-name { color: #e5e7eb; }
.combo-summary-item .combo-summary-price { font-weight: 700; color: #fff; white-space: nowrap; }
.combo-summary-total {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.combo-total-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.combo-total-value { font-size: 1.7rem; font-weight: 800; color: var(--color-accent, #34d399); }
.combo-total-ahorro { font-size: 0.88rem; color: #fbbf24; font-weight: 700; }
.combo-add-btn {
  width: 100%;
  justify-content: center;
  font-size: 1.02rem;
  padding: 0.85rem 1.5rem;
}
.combo-add-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.combo-msg { color: #fbbf24; font-size: 0.88rem; min-height: 1.1em; margin: 0; }
@media (max-width: 700px) {
  .combo-builder { padding: 1.1rem; }
  .combo-shoes { grid-auto-columns: minmax(115px, 70%); }
}

/* ===== Campana de notificaciones Web Push ===== */
.notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #9aa3b2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.notify-bell .icon-svg { width: 18px; height: 18px; }
.notify-bell:hover { color: #fff; border-color: var(--color-accent); background: rgba(0, 229, 245, 0.08); }
.notify-bell.is-on { color: var(--color-accent); border-color: rgba(0, 229, 245, 0.55); }
.notify-bell.is-blocked { color: #f87171; border-color: rgba(248, 113, 113, 0.5); }
.notify-bell.is-unsupported { opacity: 0.45; cursor: not-allowed; }
.notify-bell.is-busy { opacity: 0.55; pointer-events: none; }
.notify-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px var(--bg-card, #121722);
  display: none;
}
.notify-bell.has-unread .notify-dot { display: block; }
@keyframes sega-bell-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-6deg); }
}
.notify-bell.has-unread .icon-svg { animation: sega-bell-ring 1.6s ease-in-out infinite; transform-origin: 50% 15%; }

.push-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 18px);
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(0, 229, 245, 0.45);
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
}
.push-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   VARIANTES EN EL CARRITO: TALLAS Y CÍRCULOS DE COLOR
   ========================================================================== */
.cart-selected-variants {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.cart-selected-pill {
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.cart-selected-size {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
}

.cart-selected-color {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.cart-variant-editor {
  margin-top: 0.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.cart-variant-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.cart-variant-row + .cart-variant-row {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.cart-variant-label {
  min-width: 46px;
  padding-top: 0.32rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.size-chip {
  padding: 0.3rem 0.62rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.size-chip:hover,
.size-chip.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
}

.color-circles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.color-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  width: 66px;
}

.color-circle {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.color-circle:hover,
.color-circle.selected,
.color-choice.selected .color-circle {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28);
}

.color-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.color-circle-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.color-circle-label {
  width: 100%;
  font-size: 0.62rem;
  line-height: 1.12;
  color: var(--text-muted);
  text-align: center;
  word-break: break-word;
}

.color-choice.selected .color-circle-label {
  color: var(--color-accent);
  font-weight: 700;
}

/* Panel de administración: gestor de fotos por color */
.color-manage-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-main);
}

.color-manage-preview {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background: #ffffff;
}

.color-manage-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.color-manage-preview .color-circle-fallback {
  font-size: 1.1rem;
}

.color-manage-info {
  flex: 1;
  min-width: 0;
}

.color-manage-info strong {
  display: block;
  color: var(--text-main);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .cart-variant-row {
    flex-direction: column;
    gap: 0.35rem;
  }

  .cart-variant-label {
    padding-top: 0;
  }

  .color-circle {
    width: 32px;
    height: 32px;
  }

  .color-choice {
    width: 58px;
  }

  .color-manage-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
