/*Todo lo relacionado al icono de usuario*/
#btn-login {
  cursor: pointer;
}

.user-icon {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.user-icon svg,
.user-icon i {
  width: 20px;
  height: 20px;
  font-size: 20px;
  stroke: currentColor;
  fill: none;
}

.user-icon:focus,
.user-icon:active,
a.user-icon:focus,
a.user-icon:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}

/* ­ƒöÑ Soluci├│n definitiva para quitar color azul en Chrome/Opera */
a.user-icon {
  -webkit-tap-highlight-color: transparent;
}

/* Reforzar color correcto */
a.user-icon svg {
  fill: none !important;
  stroke: currentColor !important;
}


/* Panel LOGIN (derecha) */
.login-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  max-width: 450px;
  box-sizing: border-box;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  padding: 60px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.login-panel.open {
  transform: none;
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.login-header h2 {
  font-size: 28px;
  font-weight: 300;
  margin: 0;
}

.login-header .close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  color: #000;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.login-header .close-btn:hover {
  opacity: 0.6;
}

.login-header .close-btn svg {
  width: 24px;
  height: 24px;
}

.login-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000;
  letter-spacing: -0.01em;
}

/* Info lines con iconos */
.info-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin: 12px 0;
  color: #1D1D1D;
}

.info-line svg {
  flex-shrink: 0;
}

/* Quick links */
.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
  color: #1D1D1D;
  text-decoration: none;
  transition: opacity 0.2s;
}

.quick-links a:hover {
  opacity: 0.6;
}

.quick-links a svg {
  flex-shrink: 0;
}

.required-note {
  font-size: 12px;
  color: gray;
  margin-bottom: 10px;
  display: inline-block;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #000;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #000;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  width: 100%;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #000;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: #999;
}

.password-wrapper {
  position: relative;
  display: block;
}

.password-wrapper input {
  width: 100%;
  padding: 12px 14px;
  padding-right: 44px;
  font-size: 14px;
  font-family: inherit;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid #e8e8e8;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  appearance: none;
  -webkit-appearance: none;
  z-index: 1;
  transition: border-color 0.2s ease;
}

.password-wrapper input:focus {
  outline: none;
  border-color: #000;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 20px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 0; /* CR├ìTICO para que no tape el input */
  pointer-events: auto;
}

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}



/* Accesibilidad y compatibilidad responsive */
@media (max-width: 600px) {
  input[type="text"],
  input[type="email"],
  input[type="password"] {
    font-size: 16px;
  }

  .password-wrapper input {
    padding-right: 3.5rem;
  }

  .toggle-password {
    font-size: 1.4rem;
    padding: 12px;
  }
}

.forgot-link {
  font-size: 12px;
  text-decoration: underline;
  color: #000;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.login-alt-text {
  font-size: 12px;
  line-height: 1.4;
}

.email-login-link {
  text-decoration: underline;
  color: #000;
}

.login-btn {
  background: #000;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 30px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.login-btn:hover {
  opacity: 0.85;
}

.register-btn {
  display: block;
  margin: 0 auto;
  border: 1px solid #000;
  color: #000;
  background: none;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.register-btn:hover {
  background: #000;
  color: #fff;
}

hr {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.login-section p {
  font-size: 14px;
}

/* ========= SISTEMA DE CASCADA LOGIN/REGISTRO ========= */
.auth-view {
  display: none !important;
}

.auth-view.active {
  display: block !important;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bot├│n de volver */
.back-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  color: #000;
}

.back-btn:hover {
  opacity: 0.6;
}

.back-btn svg {
  width: 24px;
  height: 24px;
}

/* Header del registro con bot├│n volver */
/* ========= VISTAS RECUPERAR CONTRASEÑA ========= */
#view-recovery .login-header,
#view-recovery-sent .login-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

#view-recovery .login-header h2,
#view-recovery-sent .login-header h2 {
  flex: 1;
  margin: 0;
}

.recovery-subtitle {
  color: #666;
  margin-bottom: 20px !important;
  font-size: 14px;
  line-height: 1.5;
}

.recovery-sent-section {
  text-align: center;
  padding-top: 20px;
}

.recovery-sent-section p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

.recovery-sent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.recovery-sent-icon svg {
  animation: envelopePulse 2s ease-in-out infinite;
}

@keyframes envelopePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

/* ========= VISTA REGISTRO ========= */
#view-register .login-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

#view-register .login-header h2 {
  flex: 1;
  margin: 0;
}

/* Subt├¡tulo del registro */
.register-subtitle {
  color: #666;
  margin-bottom: 20px !important;
  font-size: 14px;
}

/* Indicador de fuerza de contrase├▒a */
.password-strength {
  margin-top: 6px;
  margin-bottom: 10px;
}

.strength-bar {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
}

.strength-bar.weak span { width: 33%; background: #ef4444; }
.strength-bar.medium span { width: 66%; background: #f59e0b; }
.strength-bar.strong span { width: 100%; background: #22c55e; }

.strength-text {
  font-size: 11px;
  margin-top: 4px;
  display: block;
}

.strength-text.weak { color: #ef4444; }
.strength-text.medium { color: #f59e0b; }
.strength-text.strong { color: #22c55e; }

/* Bot├│n de registro con loading */
.register-submit-btn {
  position: relative;
  min-height: 44px;
}

.register-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Mensajes de error/├®xito */
.error-msg {
  color: #dc2626;
  font-size: 13px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
  display: none;
}

.error-msg:not(:empty) {
  display: block;
}

.success-msg {
  color: #16a34a;
  font-size: 13px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0fdf4;
  border-radius: 6px;
  display: none;
}

.success-msg:not(:empty) {
  display: block;
}

/* Beneficios del registro */
.register-benefits {
  background: #f9f9f9;
  padding: 15px !important;
  border-radius: 8px;
  margin-top: 10px;
}

.register-benefits h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.register-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.register-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.register-benefits li:last-child {
  margin-bottom: 0;
}

.register-benefits li i {
  color: #22c55e;
  font-size: 11px;
}

/* Terms note */
.terms-note {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 15px;
}

.terms-note a {
  color: #666;
  text-decoration: underline;
}

/* Input con icono */
.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
}

/* ========= PEDIDOS EN PANEL ========= */
.pedidos-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.pedidos-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.pedidos-empty svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.pedidos-empty p {
  margin-bottom: 16px;
  font-size: 14px;
}

.btn-explorar {
  display: inline-block;
  padding: 10px 24px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.btn-explorar:hover {
  opacity: 0.8;
}

.pedidos-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card de pedido individual */
.pedido-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
  transition: border-color 0.2s;
}

.pedido-card:hover {
  border-color: #000;
}

.pedido-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.pedido-numero {
  font-weight: 600;
  font-size: 14px;
}

.pedido-fecha {
  font-size: 12px;
  color: #666;
}

.pedido-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pedido-status.pendiente { background: #fff3cd; color: #856404; }
.pedido-status.procesando { background: #cce5ff; color: #004085; }
.pedido-status.enviado { background: #d4edda; color: #155724; }
.pedido-status.entregado { background: #d1e7dd; color: #0f5132; }
.pedido-status.cancelado { background: #f8d7da; color: #721c24; }

.pedido-items {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pedido-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.pedido-items-more {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.pedido-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.pedido-total {
  font-weight: 600;
  font-size: 15px;
}

.pedido-total small {
  font-weight: 400;
  color: #666;
  font-size: 12px;
}

/* Bot├│n ver historial */
.btn-ver-historial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  border-radius: 4px;
}

.btn-ver-historial:hover {
  opacity: 0.8;
  color: #fff;
}

/* Chevron en links */
.quick-links a {
  position: relative;
}

.quick-links .chevron-right {
  position: absolute;
  right: 0;
  opacity: 0.5;
}

/* ========= PERFIL EN PANEL (Estilo Elegante) ========= */
.perfil-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e5e5e5;
  margin: 0 -60px 1rem -60px;
  padding: 0 60px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.perfil-tabs::-webkit-scrollbar { display: none; }

.perfil-tab-btn {
  padding: 0.75rem 1.25rem;
  font-size: 10px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}

.perfil-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: transparent;
  transition: all 0.3s ease;
}

.perfil-tab-btn:hover { color: #1a1a1a; }
.perfil-tab-btn.active { 
  color: #1a1a1a; 
  font-weight: 400; 
}
.perfil-tab-btn.active::after { background: #1a1a1a; }

/* Tab content */
.perfil-tab-content { 
  display: none; 
  animation: fadeIn 0.4s ease; 
}
.perfil-tab-content.active { display: block; }

/* Section header */
.perfil-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.perfil-section-title {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1a1a1a;
}

/* Form fields */
.perfil-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perfil-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.perfil-field label {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.perfil-field input,
.perfil-field select,
.perfil-field textarea {
  border: none;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  padding: 0.6rem 0;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.3px;
  background: transparent;
  transition: all 0.3s ease;
  width: 100%;
}

.perfil-field input:focus,
.perfil-field select:focus,
.perfil-field textarea:focus {
  outline: none;
  border-bottom-color: #1a1a1a;
}

.perfil-field input:disabled,
.perfil-field select:disabled,
.perfil-field textarea:disabled {
  background: #fafafa;
  color: #666;
  cursor: default;
  border-bottom-color: #eee;
}

.perfil-field input::placeholder,
.perfil-field textarea::placeholder {
  color: #bbb;
  font-weight: 300;
}

.perfil-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

.perfil-field textarea {
  resize: vertical;
  min-height: 50px;
  max-height: 80px;
}

.perfil-hint {
  font-size: 10px;
  font-weight: 300;
  color: #999;
  letter-spacing: 0.3px;
}

.perfil-hint.warning {
  color: #b8860b;
}

/* Field row (two columns) */
.perfil-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Badge */
.perfil-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 0;
}

.perfil-badge.verified {
  color: #2d6a4f;
  border: 1px solid #2d6a4f;
}

.perfil-badge.unverified {
  color: #b8860b;
  border: 1px solid #b8860b;
}

/* Buttons */
.perfil-btn-edit {
  padding: 0.4rem 1rem;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.perfil-btn-edit:hover {
  background: #1a1a1a;
  color: #fff;
}

.perfil-btn-edit.editing {
  background: #1a1a1a;
  color: #fff;
}

/* Bot├│n "Agregar" - invita a completar datos */
.perfil-btn-edit.inviting {
  background: #2d6a4f;
  border-color: #2d6a4f;
  color: #fff;
  animation: subtlePulse 2s ease-in-out infinite;
}

.perfil-btn-edit.inviting:hover {
  background: #1e4d38;
  border-color: #1e4d38;
}

@keyframes subtlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Mensaje para completar perfil */
.perfil-completar-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 300;
  color: #166534;
  letter-spacing: 0.3px;
}

.perfil-completar-msg svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* ========= CONTACTO EN PANEL ========= */
.contacto-intro {
  font-size: 13px;
  font-weight: 300;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.contacto-alternativas {
  text-align: center;
}

.contacto-alt-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1rem;
}

.contacto-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.2s ease;
}

.contacto-link:hover {
  background: #f5f5f5;
  border-color: #1a1a1a;
}

.contacto-link svg {
  flex-shrink: 0;
}

/* Select y Textarea en forms */
.perfil-form select,
.perfil-form textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s ease;
}

.perfil-form select:focus,
.perfil-form textarea:focus {
  border-color: #1a1a1a;
}

.perfil-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========= WISHLIST EN PANEL ========= */
.wishlist-content {
  padding: 20px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.wishlist-content p {
  font-size: 13px;
  font-weight: 300;
  color: #666;
  text-align: center;
  padding: 2rem 0;
}

.wishlist-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.wishlist-empty svg {
  margin-bottom: 1rem;
  color: #ccc;
}

.wishlist-empty h3 {
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.wishlist-empty p {
  font-size: 12px;
  font-weight: 300;
  color: #999;
}

.wishlist-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.wishlist-item:last-child {
  border-bottom: none;
}

.wishlist-item-img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  background: #f5f5f5;
}

.wishlist-item-info {
  flex: 1;
  min-width: 0;
}

.wishlist-item-name {
  font-size: 13px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-item-price {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.wishlist-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wishlist-item-actions button {
  padding: 6px 10px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid #e0e0e0;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wishlist-item-actions button:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.wishlist-item-actions .btn-add-cart {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.wishlist-item-actions .btn-add-cart:hover {
  background: #333;
}

.perfil-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
}

.perfil-btn-cancel {
  flex: 1;
  padding: 0.75rem;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  color: #999;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.perfil-btn-cancel:hover {
  border-color: #999;
  color: #666;
}

.perfil-btn-save {
  flex: 1;
  padding: 0.75rem;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: #1a1a1a;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.perfil-btn-save:hover {
  background: #333;
}

.perfil-btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========= CARRITO CASCADA ========= */
.carrito-content {
  padding: 0 20px 20px 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.carrito-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}

.carrito-empty svg {
  width: 64px;
  height: 64px;
  stroke: #ccc;
  margin-bottom: 1rem;
}

.carrito-empty p {
  margin: 0 0 1.5rem 0;
  font-size: 14px;
}

.carrito-empty a {
  display: inline-block;
  padding: 12px 24px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.carrito-empty a:hover {
  opacity: 0.85;
}

.carrito-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.carrito-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.carrito-item:last-child {
  border-bottom: none;
}

.carrito-item-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.carrito-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.carrito-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin: 0 0 4px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carrito-item-variant {
  font-size: 11px;
  color: #666;
  margin: 0 0 8px 0;
}

.carrito-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrito-item-qty {
  font-size: 12px;
  color: #888;
}

.carrito-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.carrito-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-top: 8px;
  border-top: 2px solid #111;
  font-size: 15px;
}

.carrito-total span {
  color: #666;
}

.carrito-total strong {
  font-size: 18px;
  color: #111;
}

.carrito-btn-checkout {
  display: block;
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  margin-top: 12px;
}

.carrito-btn-checkout:hover {
  opacity: 0.85;
}

/* ========= WISHLIST PANEL (header) ========= */
#wishlist-panel .wishlist-header-content {
  padding: 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

#wishlist-panel .login-header h2 {
  font-weight: 300;
}

/* ============================================
   CARRITO CASCADA EN PANEL CLIENTE
============================================ */

/* Mensaje de mayoreo */
.carrito-mayoreo-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef9e7 0%, #fcf3cf 100%);
  border: 1px solid #f4d03f;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 12px 0;
  font-size: 12px;
  color: #9a7b0a;
}

.carrito-mayoreo-msg svg {
  stroke: #f4d03f;
  fill: #f4d03f;
  flex-shrink: 0;
}

/* Contador de items */
.carrito-counter {
  padding: 0 0 12px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.carrito-counter span {
  font-size: 13px;
  color: #666;
}

/* Secciones del carrito */
.carrito-section {
  margin-bottom: 20px;
}

.carrito-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.carrito-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carrito-btn-vaciar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #999;
  font-size: 11px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.carrito-btn-vaciar:hover {
  color: #e74c3c;
  background: #fdf2f2;
}

/* Lista de items */
.carrito-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.carrito-loading,
.carrito-error {
  text-align: center;
  padding: 2rem 1rem;
  color: #999;
  font-size: 13px;
}

.carrito-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #888;
}

.carrito-empty svg {
  margin-bottom: 12px;
}

.carrito-empty h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 6px 0;
  color: #555;
}

.carrito-empty p {
  margin: 0;
  font-size: 13px;
  color: #999;
}

/* Item del carrito */
.carrito-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
  position: relative;
}

.carrito-item-img {
  width: 60px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
}

.carrito-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding-right: 20px;
}

.carrito-item-name {
  font-size: 12px;
  font-weight: 500;
  color: #222;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carrito-item-variant {
  font-size: 10px;
  color: #888;
  margin-top: 2px;
}

.carrito-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* Control de cantidad */
.carrito-item-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #f0f0f0;
}

.qty-value {
  width: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  padding: 4px 0;
}

.carrito-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #000;
}

/* Bot├│n eliminar item */
.carrito-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  color: #bbb;
}

.carrito-item-remove:hover {
  background: #fee;
  color: #e74c3c;
}

/* Resumen del pedido */
.carrito-resumen {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 14px;
  border: 1px solid #eee;
}

.carrito-resumen .carrito-section-header {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.carrito-resumen-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carrito-resumen-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #555;
}

.carrito-envio-calc {
  font-size: 11px;
  color: #999;
  font-style: italic;
}

.carrito-total-row {
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px dashed #ddd;
  font-size: 14px;
  color: #000;
}

.carrito-total-row strong {
  font-size: 16px;
}

/* Acciones del carrito */
.carrito-actions {
  margin-top: 16px;
}

.carrito-btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s;
}

.carrito-btn-checkout:hover {
  background: #222;
  color: #fff;
}

.carrito-btn-checkout svg {
  transition: transform 0.2s;
}

.carrito-btn-checkout:hover svg {
  transform: translateX(3px);
}

.carrito-secure-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: #888;
}

.carrito-secure-text svg {
  color: #27ae60;
  stroke: #27ae60;
}

/* Scrollbar para items del carrito */
.carrito-items-list::-webkit-scrollbar {
  width: 4px;
}

.carrito-items-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.carrito-items-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.carrito-items-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Responsive */
@media (max-width: 480px) {
  .login-panel {
    padding: 30px 20px;
  }
  
  .register-benefits ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .pedido-item-thumb {
    width: 40px;
    height: 40px;
  }
  
  .perfil-tabs {
    margin: 0 -20px 1rem -20px;
    padding: 0 20px;
  }
  
  .perfil-field-row {
    grid-template-columns: 1fr;
  }
  
  .carrito-item-img {
    width: 60px;
    height: 75px;
  }
}

