/* ====================================================================
   MAISON ELLE - SISTEMA DE ESTILOS DE LUJO MINIMALISTA (DARK LUXURY THEME)
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --color-brand-brown: #3F3624;
  --color-brand-burgundy: #4B141C;
  --color-brand-gold: #C0AE74;
  --color-brand-gold-light: #E5D9B0;
  --color-brand-cream: #EDE4DB;
  --color-brand-cream-light: #F7F3EE;
  --color-brand-white: #FFFFFF;
  --color-brand-dark: #12100C;
  --color-brand-card: #1B1815;
  --color-brand-gray: #A0988E;
  --color-brand-gray-light: #2A2621;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.8);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--color-brand-dark);
  color: var(--color-brand-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ====================================================================
   CAPAS DE FONDO FIJAS (IDÉNTICAS A MANTENIMIENTO / HOME)
   ==================================================================== */

.bg-fixed-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0.82;
  pointer-events: none;
  filter: contrast(108%) brightness(98%);
}

.bg-vignette-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(18, 16, 12, 0.15) 0%, rgba(18, 16, 12, 0.75) 100%);
  z-index: 1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====================================================================
   HEADER & NAVEGACIÓN DE LUJO
   ==================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(18, 16, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--color-brand-cream);
  border-bottom: 1px solid rgba(192, 174, 116, 0.25);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  padding: 14px 24px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.nav-link {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(237, 228, 219, 0.75);
  padding-bottom: 4px;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-brand-gold);
  box-shadow: 0 0 8px rgba(192, 174, 116, 0.6);
}

/* MEGA DROPDOWN EN MENÚ PRINCIPAL DE LUJO */
.nav-item-has-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 100%;
}

/* Hover bridge to keep dropdown open smoothly */
.nav-item-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 20px;
  display: block;
}

.nav-mega-dropdown {
  position: absolute !important;
  top: calc(100% + 12px) !important;
  left: 0 !important;
  width: 260px !important;
  background: rgba(22, 19, 15, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(192, 174, 116, 0.4) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 20px rgba(192, 174, 116, 0.15) !important;
  display: flex !important;
  gap: 24px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(12px) !important;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
  z-index: 1000 !important;
  pointer-events: none !important;
  text-align: left !important;
}

.nav-item-has-dropdown:hover .nav-mega-dropdown,
.nav-mega-dropdown:hover {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.dropdown-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dropdown-column.highlight-column {
  background: rgba(18, 16, 12, 0.75);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(192, 174, 116, 0.25);
}

.dropdown-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(192, 174, 116, 0.25);
  padding-bottom: 6px;
}

.dropdown-item {
  font-size: 12px;
  color: rgba(237, 228, 219, 0.88);
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  text-decoration: none;
}

.dropdown-item:hover {
  color: var(--color-brand-gold);
  transform: translateX(4px);
}

.dropdown-item.gold-highlight {
  color: var(--color-brand-gold);
  font-weight: 700;
  margin-top: 4px;
}

.mini-badge {
  background: var(--color-brand-gold);
  color: #12100C;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}

.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.8));
  transition: transform var(--transition-fast);
}

.header-logo img:hover {
  transform: scale(1.04);
}

.header-actions-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex: 1;
  position: relative !important;
}

/* MENÚ DESPLEGABLE DE PERFIL EN EL HEADER (NO PANTALLA COMPLETA) */
.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 375px;
  max-width: 92vw;
  background-color: #16130E;
  border: 1px solid rgba(192, 174, 116, 0.4);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(192, 174, 116, 0.15);
  padding: 20px;
  z-index: 1200;
  color: var(--color-brand-cream);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s ease;
  pointer-events: none;
}

.user-profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* BOTÓN DE USUARIO EN HEADER CON CHEVRON E INTERACTIVIDAD */
.header-user-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 12px;
  background: rgba(192, 174, 116, 0.12);
  border: 1px solid rgba(192, 174, 116, 0.35);
  border-radius: 20px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.header-user-btn-pill:hover {
  background: rgba(192, 174, 116, 0.22);
  border-color: var(--color-brand-gold);
  box-shadow: 0 0 15px rgba(192, 174, 116, 0.3);
  transform: translateY(-1px);
}

.header-user-btn-pill:hover .user-dropdown-chevron {
  transform: translateY(1px);
  color: var(--color-brand-gold);
}

.user-dropdown-chevron {
  color: rgba(237, 228, 219, 0.65);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* PESTAÑAS DEL PERFIL (MIS DATOS / PEDIDOS) */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(192, 174, 116, 0.25);
  margin-bottom: 18px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(237, 228, 219, 0.5);
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  border-radius: 6px 6px 0 0;
}

.auth-tab-btn svg {
  stroke: currentColor;
  opacity: 0.7;
  transition: opacity 0.25s ease, stroke 0.25s ease, transform 0.25s ease;
}

.auth-tab-btn:hover {
  color: rgba(237, 228, 219, 0.85);
  background: rgba(192, 174, 116, 0.04);
}

.auth-tab-btn:hover svg {
  opacity: 1;
  stroke: var(--color-brand-gold);
}

.auth-tab-btn.active {
  color: var(--color-brand-gold);
  font-weight: 700;
  border-bottom-color: var(--color-brand-gold);
  background: rgba(192, 174, 116, 0.07);
  box-shadow: 0 4px 12px -2px rgba(192, 174, 116, 0.25);
}

.auth-tab-btn.active svg {
  opacity: 1;
  stroke: var(--color-brand-gold);
}

/* Scrollbar Personalizado en Menú Desplegable */
.user-profile-dropdown ::-webkit-scrollbar {
  width: 5px;
}
.user-profile-dropdown ::-webkit-scrollbar-track {
  background: #12100C;
  border-radius: 10px;
}
.user-profile-dropdown ::-webkit-scrollbar-thumb {
  background: rgba(192, 174, 116, 0.35);
  border-radius: 10px;
}
.user-profile-dropdown ::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-gold);
}

.profile-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-input-field {
  width: 100%;
  background: rgba(18, 16, 12, 0.6);
  border: 1px solid rgba(192, 174, 116, 0.2);
  border-radius: 8px;
  padding: 10px 42px 10px 12px;
  color: rgba(237, 228, 219, 0.7);
  font-size: 12px;
  transition: all 0.25s ease;
}

.profile-input-field:disabled {
  background: rgba(18, 16, 12, 0.35);
  border-color: rgba(192, 174, 116, 0.15);
  color: rgba(237, 228, 219, 0.65);
  cursor: not-allowed;
}

.profile-input-field.editing-active {
  background: #12100C !important;
  border-color: var(--color-brand-gold) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 10px rgba(192, 174, 116, 0.35);
  cursor: text !important;
}

.edit-pencil-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(192, 174, 116, 0.16);
  border: 1px solid rgba(192, 174, 116, 0.35);
  color: var(--color-brand-gold);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.edit-pencil-btn:hover {
  background: var(--color-brand-gold);
  color: #12100C;
  border-color: var(--color-brand-gold);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 12px rgba(192, 174, 116, 0.45);
}

.edit-pencil-btn.active-editing {
  background: #27ae60 !important;
  border-color: #27ae60 !important;
  color: #ffffff !important;
}

/* BOTONES PRINCIPALES DE FORMULARIO DE PERFIL */
.profile-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-brand-gold);
  color: #12100C;
  border: 1px solid var(--color-brand-gold);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(192, 174, 116, 0.25);
  margin-bottom: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-submit-btn:hover {
  background: #d5bb74;
  border-color: #e2cb89;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(192, 174, 116, 0.45);
}

.profile-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(192, 174, 116, 0.3);
}

.profile-logout-btn {
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(192, 57, 43, 0.4);
  color: #e74c3c;
  background: rgba(192, 57, 43, 0.12);
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.profile-logout-btn:hover {
  background: rgba(192, 57, 43, 0.22);
  border-color: rgba(231, 76, 60, 0.7);
  box-shadow: 0 0 15px rgba(231, 76, 60, 0.25);
  transform: translateY(-1px);
}

/* BANNER DE PRIVACIDAD Y DATOS ENCRIPTADOS DE PERFIL */
.profile-privacy-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(192, 174, 116, 0.07);
  border: 1px dashed rgba(192, 174, 116, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.profile-privacy-banner.revealed {
  background: rgba(46, 204, 113, 0.08);
  border-style: solid;
  border-color: rgba(46, 204, 113, 0.35);
}

.privacy-status-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-brand-gold);
}

.btn-reveal-privacy {
  background: rgba(192, 174, 116, 0.15);
  border: 1px solid rgba(192, 174, 116, 0.35);
  color: var(--color-brand-cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.25s ease;
}

.btn-reveal-privacy:hover {
  background: var(--color-brand-gold);
  color: #12100C;
  box-shadow: 0 0 12px rgba(192, 174, 116, 0.35);
  transform: translateY(-1px);
}

.profile-input-field.masked-privacy {
  letter-spacing: 0.1em;
  color: rgba(237, 228, 219, 0.55) !important;
  font-style: italic;
}

/* Tarjetas y Badges de Pedidos */
.order-card-container {
  background: rgba(22, 19, 14, 0.95);
  border: 1px solid rgba(192, 174, 116, 0.3);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease;
}

.order-card-container:hover {
  border-color: rgba(192, 174, 116, 0.6);
}

.order-badge-pendiente {
  background: rgba(192, 174, 116, 0.18) !important;
  color: #E5C378 !important;
  border: 1px solid rgba(192, 174, 116, 0.4) !important;
}

.order-badge-procesando {
  background: rgba(52, 152, 219, 0.18) !important;
  color: #5DADE2 !important;
  border: 1px solid rgba(52, 152, 219, 0.4) !important;
}

.order-badge-entregado {
  background: rgba(46, 204, 113, 0.18) !important;
  color: #2ECC71 !important;
  border: 1px solid rgba(46, 204, 113, 0.4) !important;
}

.order-badge-cancelado {
  background: rgba(231, 76, 60, 0.18) !important;
  color: #E74C3C !important;
  border: 1px solid rgba(231, 76, 60, 0.4) !important;
}

.order-items-drawer {
  display: none;
  border-top: 1px dashed rgba(192, 174, 116, 0.25);
  margin-top: 10px;
  padding-top: 10px;
  animation: fadeInSmooth 0.2s ease;
}

.order-items-drawer.open {
  display: block;
}

.icon-btn {
  color: rgba(237, 228, 219, 0.85);
  padding: 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.icon-btn:hover {
  background-color: rgba(192, 174, 116, 0.18);
  color: var(--color-brand-gold);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--color-brand-gold);
  color: var(--color-brand-dark);
  font-size: 9px;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* SEARCH OVERLAY */
.search-overlay {
  display: none;
  background-color: rgba(27, 24, 21, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(192, 174, 116, 0.3);
  padding: 20px 24px;
  animation: fadeIn 0.25s ease;
  position: relative;
  z-index: 99;
}

.search-overlay.active {
  display: block;
}

.search-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-brand-cream);
  font-size: 14px;
  padding: 8px 0;
  outline: none;
  font-family: var(--font-sans);
}

.search-input::placeholder {
  color: rgba(237, 228, 219, 0.45);
}

.search-submit-btn {
  background-color: var(--color-brand-gold);
  color: var(--color-brand-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast);
}

.search-submit-btn:hover {
  opacity: 0.9;
}

/* ====================================================================
   HERO BANNER DE LUJO
   ==================================================================== */

.hero-banner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  background: linear-gradient(to right, rgba(18, 16, 12, 0.85), rgba(18, 16, 12, 0.4)), url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--color-brand-cream);
  padding: 0 40px;
}

.hero-content {
  max-width: 640px;
  margin-left: 5%;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.35em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: 16px;
  display: block;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-style: italic;
}

.hero-description {
  font-size: 14px;
  color: rgba(237, 228, 219, 0.85);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-brand-brown);
  color: var(--color-brand-cream);
  border: 1px solid var(--color-brand-gold);
  padding: 14px 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-brand-gold);
  color: var(--color-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 174, 116, 0.35);
}

/* ====================================================================
   DRAWER LATERAL DE CATEGORÍAS (SLIDE IN FROM LEFT)
   ==================================================================== */

.category-drawer-overlay {
  position: fixed;
  inset: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.category-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.category-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(18, 15, 11, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-right: 1px solid rgba(192, 174, 116, 0.4) !important;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.6) !important;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
}

.category-drawer.active {
  transform: translateX(0);
}

.category-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(192, 174, 116, 0.25);
  padding-bottom: 20px;
}

.drawer-gold-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-brand-cream);
  margin-top: 2px;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(192, 174, 116, 0.12);
  border: 1px solid rgba(192, 174, 116, 0.4);
  color: var(--color-brand-cream);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: var(--color-brand-gold);
  color: var(--color-brand-dark);
  border-color: var(--color-brand-gold);
  transform: scale(1.05);
}

.category-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
  flex: 1;
  overflow-y: auto;
}

.drawer-cat-item {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  background: rgba(22, 18, 14, 0.45);
  border: 1px solid rgba(192, 174, 116, 0.2);
  color: rgba(237, 228, 219, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.drawer-cat-item:hover {
  background: rgba(192, 174, 116, 0.25);
  color: var(--color-brand-gold);
  border-color: var(--color-brand-gold);
  transform: translateX(5px);
}

.drawer-cat-item.active {
  background: linear-gradient(135deg, rgba(192, 174, 116, 0.38), rgba(75, 20, 28, 0.5));
  border-color: var(--color-brand-gold);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 10px rgba(192, 174, 116, 0.4);
}

.drawer-cat-item .cat-arrow {
  font-size: 14px;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.drawer-cat-item:hover .cat-arrow,
.drawer-cat-item.active .cat-arrow {
  opacity: 1;
  transform: translateX(4px);
  color: var(--color-brand-gold);
}

.category-drawer-footer {
  border-top: 1px solid rgba(192, 174, 116, 0.25);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* BOTÓN DISPARADOR DE CATEGORÍAS */
.category-drawer-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(22, 18, 14, 0.85);
  border: 1px solid rgba(192, 174, 116, 0.4);
  color: var(--color-brand-cream);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.category-drawer-trigger-btn:hover {
  background: var(--color-brand-gold);
  color: var(--color-brand-dark);
  border-color: var(--color-brand-gold);
  box-shadow: 0 6px 20px rgba(192, 174, 116, 0.35);
}

.active-cat-label {
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(192, 174, 116, 0.2);
  color: var(--color-brand-gold);
  border: 1px solid rgba(192, 174, 116, 0.3);
}

.category-drawer-trigger-btn:hover .active-cat-label {
  background: rgba(18, 16, 12, 0.8);
  color: var(--color-brand-gold);
}

/* ====================================================================
   SECCIÓN DE CATÁLOGO & PRODUCTOS
   ==================================================================== */

.catalog-section {
  max-width: 1280px;
  margin: 30px auto 80px;
  padding: 0 80px;
  position: relative;
  z-index: 2;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  body.drawer-open .catalog-section {
    padding-left: 340px !important;
  }
}

@media (max-width: 1024px) {
  .catalog-section {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .catalog-section {
    padding: 0 20px;
  }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(192, 174, 116, 0.2);
  padding-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-cream);
  font-style: italic;
}

.section-subtitle {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-brand-gold);
  margin-top: 4px;
  font-weight: 500;
}

.sort-select {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 174, 116, 0.3);
  background-color: rgba(27, 24, 21, 0.9);
  color: var(--color-brand-cream);
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sort-select:focus {
  border-color: var(--color-brand-gold);
}

/* GRID DE PRODUCTOS DE LUJO */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-content: center;
  gap: 24px 20px;
  width: 100%;
}

.product-card {
  background: rgba(22, 19, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(192, 174, 116, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 174, 116, 0.6);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(192, 174, 116, 0.15);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 118%;
  background-color: var(--color-brand-dark);
  overflow: hidden;
}

.product-image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.06);
}

/* ETIQUETAS FLOTANTES DE LUJO */
.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

.badge-new {
  background-color: var(--color-brand-gold);
  color: var(--color-brand-dark);
}

.badge-special {
  background-color: var(--color-brand-burgundy);
  color: var(--color-brand-cream);
  border: 1px solid var(--color-brand-gold);
}

/* BARRA FLOTANTE DE ACCIONES RÁPIDAS (ACCIONAR AL HOVER) */
.quick-actions-overlay {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .quick-actions-overlay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.action-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(18, 16, 12, 0.88);
  border: 1px solid rgba(192, 174, 116, 0.4);
  color: var(--color-brand-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.action-circle-btn:hover {
  background-color: var(--color-brand-gold);
  color: var(--color-brand-dark);
  border-color: var(--color-brand-gold);
  transform: scale(1.12);
}

.action-circle-btn.wishlisted {
  background-color: var(--color-brand-burgundy);
  color: var(--color-brand-gold);
  border-color: var(--color-brand-gold);
}

/* CONTENIDO DE LA TARJETA DE PRODUCTO */
.product-info {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  background: transparent;
}

.product-category {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: 3px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-brand-cream);
  margin-bottom: 8px;
  line-height: 1.25;
  transition: color var(--transition-fast);
}

.product-card:hover .product-name {
  color: var(--color-brand-gold);
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brand-gold);
}

.color-swatches-preview {
  display: flex;
  gap: 4px;
  align-items: center;
}

.swatch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(192, 174, 116, 0.4);
  display: inline-block;
}

/* TALLAS DISPONIBLES EN TARJETAS DE PRODUCTO */
.product-sizes-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px 0;
  padding-top: 6px;
  border-top: 1px dashed rgba(192, 174, 116, 0.2);
}

.sizes-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  flex-shrink: 0;
}

.sizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.size-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(192, 174, 116, 0.28);
  color: var(--color-brand-cream);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.03em;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

.size-pill-btn:hover {
  border-color: var(--color-brand-gold);
  color: var(--color-brand-gold);
  background: rgba(192, 174, 116, 0.15);
  transform: translateY(-1px);
}

.size-pill-btn.active {
  background: var(--color-brand-gold);
  color: #12100C;
  border-color: var(--color-brand-gold);
  box-shadow: 0 0 8px rgba(192, 174, 116, 0.45);
  font-weight: 800;
}

/* TALLAS NO DISPONIBLES / AGOTADAS */
.size-pill-btn.disabled,
.size-pill-btn.out-of-stock {
  opacity: 0.32;
  color: rgba(237, 228, 219, 0.35);
  border-color: rgba(192, 174, 116, 0.12);
  background: rgba(0, 0, 0, 0.25);
  cursor: not-allowed !important;
  position: relative;
  overflow: hidden;
  pointer-events: none;
}

.size-pill-btn.disabled::after,
.size-pill-btn.out-of-stock::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -20%;
  width: 140%;
  height: 1px;
  background: rgba(192, 174, 116, 0.55);
  transform: rotate(-25deg);
}

.add-cart-btn {
  width: 100%;
  margin-top: 2px;
  background-color: var(--color-brand-brown);
  color: var(--color-brand-cream);
  border: 1px solid var(--color-brand-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.add-cart-btn:hover {
  background-color: var(--color-brand-gold);
  color: var(--color-brand-dark);
  border-color: var(--color-brand-gold);
  box-shadow: 0 6px 20px rgba(192, 174, 116, 0.4);
}

.add-cart-btn:hover {
  background-color: var(--color-brand-gold);
  color: var(--color-brand-dark);
  border-color: var(--color-brand-gold);
  box-shadow: 0 4px 15px rgba(192, 174, 116, 0.35);
}

/* USER BADGE & AUTH MODAL */
.user-badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #27ae60;
  box-shadow: 0 0 6px #27ae60;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(18, 16, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* DIAGONAL BLADE AUTH MODAL (REDiseño Maison Elle) */
.diagonal-auth-card {
  position: relative;
  width: 860px;
  max-width: 95vw;
  height: 540px;
  max-height: 90vh;
  background: #16130E;
  border: 1px solid rgba(192, 174, 116, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 30px rgba(192, 174, 116, 0.12);
  display: flex;
  color: var(--color-brand-cream);
  animation: fadeInModal 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.auth-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 20;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 174, 116, 0.3);
  color: var(--color-brand-gold);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.auth-close-btn:hover {
  background: var(--color-brand-gold);
  color: #12100C;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(192, 174, 116, 0.5);
}

/* CONTAINER DE FORMULARIOS DUALES */
.auth-forms-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 1;
}

.auth-form-side {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
}

.auth-form-side.form-login {
  left: 0;
  z-index: 2;
  padding: 36px 45px 36px 36px;
}

.auth-form-side.form-register {
  right: 0;
  left: auto;
  z-index: 2;
  padding: 24px 36px 24px 48px;
}

.auth-form-side::-webkit-scrollbar {
  width: 4px;
}
.auth-form-side::-webkit-scrollbar-thumb {
  background: rgba(192, 174, 116, 0.3);
  border-radius: 4px;
}

.auth-form-side.active-side {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0);
}

.auth-form-side.hidden-side {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(10px);
}

.auth-form-side.form-register .auth-form-header {
  margin-bottom: 12px;
}

.auth-form-side.form-register .auth-form-header h3 {
  font-size: 24px;
  margin-bottom: 3px;
}

.auth-form-side.form-register .auth-form-group {
  margin-bottom: 9px;
}

.auth-form-side.form-register .auth-input {
  padding: 10px 12px;
  font-size: 12px;
}

.auth-form-header {
  margin-bottom: 20px;
}

.auth-form-header h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--color-brand-gold);
  margin: 0 0 6px 0;
  letter-spacing: 0.02em;
}

.auth-form-header p {
  font-size: 12px;
  color: rgba(237, 228, 219, 0.65);
  margin: 0;
  line-height: 1.4;
}

.auth-form-group {
  margin-bottom: 14px;
}

.auth-form-group label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: 5px;
}

.auth-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(192, 174, 116, 0.7);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.auth-pass-toggle:hover {
  color: var(--color-brand-gold);
}

/* PANEL DE MARCA CON CORTE DIAGONAL (THE BLADE) */
.auth-brand-blade {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  background-color: #221D17 !important;
  background-image: linear-gradient(135deg, #2A231C 0%, #14110D 100%) !important;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  transition: left 0.6s cubic-bezier(0.77, 0, 0.175, 1), -webkit-clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1), clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1), padding 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  filter: drop-shadow(0 0 25px rgba(192, 174, 116, 0.25));
}

.auth-brand-blade.blade-login {
  left: 50%;
  width: 50%;
  padding: 40px 35px;
  -webkit-clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
}

.auth-brand-blade.blade-register {
  left: 0%;
  width: 50%;
  padding: 40px 35px;
  -webkit-clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%);
}

.auth-blade-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  max-width: 250px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.auth-blade-content.content-login {
  left: 56%;
}

.auth-blade-content.content-register {
  left: 44%;
}

.auth-blade-content.active-content {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.auth-blade-content.inactive-content {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.auth-blade-logo {
  max-width: 150px !important;
  max-height: 55px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

.auth-blade-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-brand-cream);
  margin: 0 0 10px 0;
  letter-spacing: 0.03em;
  text-align: center;
}

.auth-blade-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(237, 228, 219, 0.75);
  margin: 0 0 24px 0;
  max-width: 230px;
  text-align: center;
}

.auth-blade-btn {
  background: transparent;
  border: 1px solid var(--color-brand-gold);
  color: var(--color-brand-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 13px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(192, 174, 116, 0.15);
}

.auth-blade-btn:hover {
  background: var(--color-brand-gold);
  color: #12100C;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(192, 174, 116, 0.35);
}

.auth-blade-btn b {
  font-weight: 800;
  text-decoration: underline;
  margin-left: 4px;
}

.auth-input {
  width: 100%;
  background-color: rgba(18, 16, 12, 0.85);
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-size: 0 0 !important;
  border: 1px solid rgba(192, 174, 116, 0.3);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 13px;
  color: var(--color-brand-cream);
  outline: none;
  font-family: var(--font-sans);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.auth-input:focus,
.auth-input:hover,
.auth-input:active {
  border-color: var(--color-brand-gold) !important;
  box-shadow: 0 0 14px rgba(192, 174, 116, 0.35) !important;
  background-color: rgba(26, 22, 17, 0.95) !important;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-size: 0 0 !important;
}

.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus,
.auth-input:-webkit-autofill:active,
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #12100C inset !important;
  -webkit-text-fill-color: var(--color-brand-cream) !important;
  transition: background-color 5000s ease-in-out 0s;
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-size: 0 0 !important;
}

.auth-btn-submit {
  width: 100%;
  background-color: var(--color-brand-gold) !important;
  color: #12100C !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  padding: 16px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  margin-top: 10px !important;
  box-shadow: 0 6px 20px rgba(192, 174, 116, 0.3) !important;
  transition: all 0.3s ease !important;
}

.auth-btn-submit:hover {
  background-color: #d8c58a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px rgba(192, 174, 116, 0.45) !important;
}

/* ====================================================================
   PÁGINA DE CARRITO Y FINALIZAR PEDIDO
   ==================================================================== */

.cart-page-container {
  max-width: 1280px;
  margin: 40px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .cart-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.cart-items-card, .order-summary-card {
  background-color: var(--color-brand-card);
  border: 1px solid rgba(192, 174, 116, 0.2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px;
  color: var(--color-brand-cream);
}

.cart-item-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(192, 174, 116, 0.15);
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: var(--color-brand-dark);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid rgba(192, 174, 116, 0.3);
  border-radius: var(--radius-sm);
  width: fit-content;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.qty-btn {
  padding: 4px 10px;
  font-weight: bold;
  color: var(--color-brand-cream);
}

.qty-btn:hover {
  background-color: rgba(192, 174, 116, 0.2);
}

.qty-val {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
}

/* FORMULARIO DE CHECKOUT */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 174, 116, 0.25);
  background-color: rgba(18, 16, 12, 0.8);
  color: var(--color-brand-cream);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-brand-gold);
  background-color: #12100C;
}

.btn-whatsapp {
  width: 100%;
  background-color: #25D366;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-normal);
  margin-top: 24px;
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ====================================================================
   SIDE CART DRAWER DE LUJO
   ==================================================================== */

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
}

.cart-drawer-overlay.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background-color: var(--color-brand-card);
  color: var(--color-brand-cream);
  z-index: 201;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  border-left: 1px solid rgba(192, 174, 116, 0.3);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(192, 174, 116, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #12100C;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid rgba(192, 174, 116, 0.2);
  background-color: #12100C;
}

/* ====================================================================
   FOOTER DE LUJO
   ==================================================================== */

.site-footer {
  background-color: rgba(18, 16, 12, 0.95);
  border-top: 1px solid rgba(192, 174, 116, 0.25);
  padding: 64px 24px 32px;
  color: var(--color-brand-cream);
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  color: var(--color-brand-gold);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--color-brand-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
}

.footer-links a {
  color: rgba(237, 228, 219, 0.7);
}

.footer-links a:hover {
  color: var(--color-brand-gold);
}

.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(192, 174, 116, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237, 228, 219, 0.5);
}

/* ====================================================================
   RESPONSIVE DESIGN
   ==================================================================== */

@media (max-width: 768px) {
  .header-nav-left {
    display: none;
  }
  .hero-banner {
    height: 55vh;
    padding: 0 20px;
  }
  .hero-content {
    margin-left: 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product-info {
    padding: 14px;
  }
  .product-name {
    font-size: 1rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================================================================
   MODAL DE CONFIRMACIÓN DE ORDEN / FACTURA (ALTA COSTURA)
   ==================================================================== */
.invoice-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.invoice-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.invoice-card {
  background-color: #16130E;
  border: 1px solid rgba(192, 174, 116, 0.4);
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 30px rgba(192, 174, 116, 0.15);
  color: var(--color-brand-cream);
  position: relative;
  animation: fadeInSmooth 0.3s ease;
}

.invoice-brand-header {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(192, 174, 116, 0.3);
}

.invoice-brand-header img {
  max-width: 220px;
  width: 80%;
  height: auto;
  display: block !important;
  margin: 0 auto 12px auto !important;
  align-self: center !important;
}

.invoice-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
}

.badge-pending {
  display: inline-block;
  background: rgba(192, 174, 116, 0.15);
  color: var(--color-brand-gold);
  border: 1px solid rgba(192, 174, 116, 0.4);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-top: 8px;
  text-transform: uppercase;
}

.invoice-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.invoice-details-box {
  background: rgba(18, 16, 12, 0.75);
  border: 1px solid rgba(192, 174, 116, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 12px;
  line-height: 1.6;
}

.invoice-details-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.invoice-details-row:last-child {
  margin-bottom: 0;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 12px;
}

.invoice-table th {
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(237, 228, 219, 0.6);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(192, 174, 116, 0.2);
}

.invoice-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(192, 174, 116, 0.1);
  vertical-align: middle;
}

.invoice-totals-card {
  background: rgba(26, 22, 17, 0.9);
  border: 1px solid rgba(192, 174, 116, 0.3);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
  color: rgba(237, 228, 219, 0.8);
}

.invoice-total-row.grand-total {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-brand-gold);
  border-top: 1px solid rgba(192, 174, 116, 0.3);
  padding-top: 10px;
  margin-top: 8px;
  margin-bottom: 0;
}

.btn-confirm-wa {
  width: 100%;
  background-color: var(--color-brand-gold) !important;
  color: #12100C !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  padding: 16px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 6px 20px rgba(192, 174, 116, 0.35) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.btn-confirm-wa:hover {
  background-color: #d8c58a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px rgba(192, 174, 116, 0.5) !important;
}

.btn-edit-order {
  width: 100%;
  background: transparent !important;
  color: rgba(237, 228, 219, 0.7) !important;
  border: 1px solid rgba(192, 174, 116, 0.3) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 12px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  margin-top: 10px !important;
  transition: all 0.25s ease !important;
}

.btn-edit-order:hover {
  color: var(--color-brand-gold) !important;
  border-color: var(--color-brand-gold) !important;
  background: rgba(192, 174, 116, 0.08) !important;
}

/* FORMULARIO DESHABILITADO CUANDO CARRITO ESTÁ VACÍO */
.checkout-disabled {
  opacity: 0.45 !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* ==========================================================================
   AJUSTES ADICIONALES Y CORRECCIÓN DE MEDIA QUERIES
   ========================================================================== */


/* RESPONSIVE EN MÓVILES (~375px a 768px) */
@media (max-width: 768px) {
  .diagonal-auth-card {
    width: 92vw !important;
    max-width: 450px !important;
    height: auto !important;
    max-height: 88vh !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    margin: 0 auto !important;
  }

  .auth-forms-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    flex-direction: column !important;
    z-index: 1;
    order: 2;
  }

  .auth-form-side,
  .auth-form-side.form-login,
  .auth-form-side.form-register {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    padding: 22px 20px !important;
    transform: none !important;
    box-sizing: border-box;
  }

  .auth-form-side.active-side {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
  }

  .auth-form-side.hidden-side {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
  }

  .auth-brand-blade,
  .auth-brand-blade.blade-login,
  .auth-brand-blade.blade-register {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    transform: none !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(192, 174, 116, 0.3) !important;
    padding: 22px 18px !important;
    order: 1;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .auth-blade-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
  }

  .auth-blade-content.active-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    transform: none !important;
  }

  .auth-blade-content.inactive-content {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
    transform: none !important;
  }

  .auth-blade-logo {
    max-width: 120px !important;
    max-height: 48px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin-bottom: 12px !important;
  }

  .auth-blade-title {
    font-size: 18px !important;
    margin-bottom: 6px !important;
  }

  .auth-blade-desc {
    font-size: 11px !important;
    margin-bottom: 14px !important;
    max-width: 100% !important;
    line-height: 1.4 !important;
  }

  .auth-blade-btn {
    padding: 9px 18px !important;
    font-size: 9.5px !important;
  }
}

/* ====================================================================
   REDISEÑO VISUAL Y COMPONENTES DEL PANEL ADMIN - MAISON ELLE
   ==================================================================== */

.admin-header-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(192, 174, 116, 0.3));
  transition: transform 0.25s ease;
}
.admin-header-logo:hover {
  transform: scale(1.04);
}

/* Tarjetas Flotantes y Tablas Admin */
.admin-card-container {
  background: #181510;
  border: 1px solid rgba(192, 174, 116, 0.25);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(192, 174, 116, 0.05);
  padding: 24px;
  margin-bottom: 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.admin-card-container:hover {
  border-color: rgba(192, 174, 116, 0.4);
}

/* Grid del Dashboard */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.kpi-card {
  background: rgba(26, 22, 16, 0.9);
  border: 1px solid rgba(192, 174, 116, 0.25);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.kpi-card:hover {
  border-color: var(--color-brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(192, 174, 116, 0.15);
}

.kpi-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(192, 174, 116, 0.12);
  border: 1px solid rgba(192, 174, 116, 0.3);
  color: var(--color-brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kpi-content-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-brand-gold);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.kpi-content-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 228, 219, 0.6);
  margin-top: 2px;
}

/* Semáforo de Inventario */
.stock-badge-disponible {
  background: rgba(39, 174, 96, 0.16) !important;
  color: #2ecc71 !important;
  border: 1px solid rgba(39, 174, 96, 0.4) !important;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.2);
}

.stock-badge-critico {
  background: rgba(230, 126, 34, 0.18) !important;
  color: #f39c12 !important;
  border: 1px solid rgba(230, 126, 34, 0.4) !important;
  box-shadow: 0 0 10px rgba(243, 156, 18, 0.2);
}

.stock-badge-agotado {
  background: rgba(192, 57, 43, 0.2) !important;
  color: #e74c3c !important;
  border: 1px solid rgba(192, 57, 43, 0.45) !important;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.25);
}

/* Botones de Filtro Rápido en Inventario */
.inventory-filter-btn {
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid rgba(192, 174, 116, 0.25);
  background: rgba(18, 16, 12, 0.6);
  color: rgba(237, 228, 219, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
}

.inventory-filter-btn:hover, .inventory-filter-btn.active {
  background: var(--color-brand-gold);
  color: #12100C;
  border-color: var(--color-brand-gold);
  box-shadow: 0 0 12px rgba(192, 174, 116, 0.35);
}

/* Botones de Acción de Fila (Iconos + Tooltip) */
.action-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(192, 174, 116, 0.3);
  background: rgba(192, 174, 116, 0.1);
  color: var(--color-brand-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.action-icon-btn:hover {
  background: var(--color-brand-gold);
  color: #12100C;
  border-color: var(--color-brand-gold);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 0 12px rgba(192, 174, 116, 0.4);
}

.action-icon-btn-danger {
  border-color: rgba(231, 76, 60, 0.4);
  background: rgba(192, 57, 43, 0.12);
  color: #e74c3c;
}

.action-icon-btn-danger:hover {
  background: #e74c3c;
  color: #ffffff;
  border-color: #e74c3c;
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.4);
}

.action-icon-btn-whatsapp {
  border-color: rgba(46, 204, 113, 0.4);
  background: rgba(39, 174, 96, 0.14);
  color: #2ecc71;
}

.action-icon-btn-whatsapp:hover {
  background: #27ae60;
  color: #ffffff;
  border-color: #27ae60;
  box-shadow: 0 0 12px rgba(39, 174, 96, 0.4);
}

/* Modal e Impresión de Conduce de Envío */
.conduce-modal-card {
  width: 100%;
  max-width: 580px;
  background: #16130E;
  border: 1px solid var(--color-brand-gold);
  border-radius: 14px;
  padding: 24px;
  color: var(--color-brand-cream);
  box-shadow: 0 25px 60px rgba(0,0,0,0.9);
}

@media print {
  body * {
    visibility: hidden;
  }
  #printConduceSection, #printConduceSection * {
    visibility: visible;
  }
  #printConduceSection {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 20px;
  }
}

/* Selector de Estado de Pedido Interactivo (Pill Badge) */
.order-status-badge {
  padding: 6px 26px 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  border: 1px solid transparent;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23C0AE74' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: all 0.25s ease;
  display: inline-block;
}

.order-status-badge option {
  background: #1B1815;
  color: #EDE4DB;
  font-weight: 600;
  padding: 8px;
}

.status-badge-pendiente {
  background-color: rgba(241, 196, 15, 0.14);
  color: #f1c40f;
  border-color: rgba(241, 196, 15, 0.4);
}
.status-badge-pendiente:hover, .status-badge-pendiente:focus {
  background-color: rgba(241, 196, 15, 0.25);
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.3);
}

.status-badge-procesando {
  background-color: rgba(52, 152, 219, 0.14);
  color: #3498db;
  border-color: rgba(52, 152, 219, 0.4);
}
.status-badge-procesando:hover, .status-badge-procesando:focus {
  background-color: rgba(52, 152, 219, 0.25);
  box-shadow: 0 0 12px rgba(52, 152, 219, 0.3);
}

.status-badge-en_camino, .status-badge-en-camino {
  background-color: rgba(155, 89, 182, 0.16);
  color: #9b59b6;
  border-color: rgba(155, 89, 182, 0.4);
}
.status-badge-en_camino:hover, .status-badge-en_camino:focus,
.status-badge-en-camino:hover, .status-badge-en-camino:focus {
  background-color: rgba(155, 89, 182, 0.28);
  box-shadow: 0 0 12px rgba(155, 89, 182, 0.35);
}

.status-badge-entregado {
  background-color: rgba(46, 204, 113, 0.14);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.4);
}
.status-badge-entregado:hover, .status-badge-entregado:focus {
  background-color: rgba(46, 204, 113, 0.25);
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.3);
}

.status-badge-cancelado {
  background-color: rgba(231, 76, 60, 0.14);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.4);
}
.status-badge-cancelado:hover, .status-badge-cancelado:focus {
  background-color: rgba(231, 76, 60, 0.25);
  box-shadow: 0 0 12px rgba(231, 76, 60, 0.3);
}

/* ==========================================================================
   SISTEMA DE MODALES Y ALERTAS DE CONFIRMACIÓN MAISON ELLE
   ========================================================================== */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 9, 7, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.custom-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #16130E;
  border: 1px solid rgba(192, 174, 116, 0.45);
  border-radius: 20px;
  padding: 34px 28px 28px 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 35px rgba(192, 174, 116, 0.18);
  color: var(--color-brand-cream);
  text-align: center;
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.custom-modal-overlay.active .custom-modal-card {
  transform: scale(1) translateY(0);
}

.custom-modal-close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(192, 174, 116, 0.3);
  color: var(--color-brand-gold);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.custom-modal-close-x:hover {
  background: var(--color-brand-gold);
  color: #12100C;
  transform: rotate(90deg) scale(1.08);
}

.custom-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(192, 174, 116, 0.3);
}

.custom-modal-icon.icon-info {
  background: rgba(192, 174, 116, 0.12);
  color: var(--color-brand-gold);
  border-color: rgba(192, 174, 116, 0.4);
  box-shadow: 0 0 20px rgba(192, 174, 116, 0.2);
}

.custom-modal-icon.icon-warning {
  background: rgba(230, 126, 34, 0.14);
  color: #f39c12;
  border-color: rgba(243, 156, 18, 0.45);
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.2);
}

.custom-modal-icon.icon-error {
  background: rgba(231, 76, 60, 0.14);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.45);
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.2);
}

.custom-modal-icon.icon-success {
  background: rgba(46, 204, 113, 0.14);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.45);
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
}

.custom-modal-header {
  margin-bottom: 12px;
}

.custom-modal-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--color-brand-gold);
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.custom-modal-body {
  margin-bottom: 26px;
}

.custom-modal-body p {
  font-size: 13.5px;
  color: rgba(237, 228, 219, 0.85);
  line-height: 1.6;
  margin: 0;
}

.custom-modal-footer {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.custom-modal-footer button {
  flex: 1;
  padding: 13px 20px;
  border-radius: 25px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-modal-confirm {
  background: var(--color-brand-gold);
  color: #12100C;
  border: 1px solid var(--color-brand-gold);
  box-shadow: 0 4px 15px rgba(192, 174, 116, 0.25);
}

.btn-modal-confirm:hover {
  background: #d8c58a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 174, 116, 0.4);
}

.btn-modal-cancel {
  background: transparent;
  color: rgba(237, 228, 219, 0.7);
  border: 1px solid rgba(192, 174, 116, 0.35);
}

.btn-modal-cancel:hover {
  border-color: var(--color-brand-gold);
  color: var(--color-brand-gold);
  background: rgba(192, 174, 116, 0.08);
}

.btn-modal-danger {
  background: #c0392b !important;
  color: #ffffff !important;
  border-color: #e74c3c !important;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.35) !important;
}

.btn-modal-danger:hover {
  background: #e74c3c !important;
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5) !important;
}

/* ESTADOS ADICIONALES DE PEDIDOS (EN CAMINO / ENVIADO) */
.status-badge-en_camino, .status-badge-en-camino, .status-badge-enviado {
  background-color: rgba(155, 89, 182, 0.14) !important;
  color: #9b59b6 !important;
  border-color: rgba(155, 89, 182, 0.4) !important;
}
.status-badge-en_camino:hover, .status-badge-en-camino:hover, .status-badge-enviado:hover {
  background-color: rgba(155, 89, 182, 0.25) !important;
  box-shadow: 0 0 12px rgba(155, 89, 182, 0.3) !important;
}

/* LÍNEA DE TIEMPO / SEGUIMIENTO DE ETAPAS DEL PEDIDO (PIPELINE) */
.order-tracking-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 14px 0;
  padding: 12px 10px 10px 10px;
  background: rgba(18, 16, 12, 0.7);
  border: 1px solid rgba(192, 174, 116, 0.25);
  border-radius: 12px;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.pipeline-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.pipeline-step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #25201A;
  border: 1.5px solid rgba(192, 174, 116, 0.3);
  color: rgba(237, 228, 219, 0.4);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

.pipeline-step-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(237, 228, 219, 0.45);
  margin-top: 5px;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.35s ease;
}

.pipeline-step-item.completed .pipeline-step-icon {
  background: rgba(192, 174, 116, 0.25);
  border-color: var(--color-brand-gold);
  color: var(--color-brand-gold);
}

.pipeline-step-item.completed .pipeline-step-label {
  color: var(--color-brand-gold);
}

.pipeline-step-item.active .pipeline-step-icon {
  background: var(--color-brand-gold);
  border-color: var(--color-brand-gold);
  color: #12100C;
  box-shadow: 0 0 14px rgba(192, 174, 116, 0.7);
  transform: scale(1.15);
}

.pipeline-step-item.active .pipeline-step-label {
  color: #FFFFFF;
  font-weight: 800;
}

.pipeline-connector-line {
  height: 2px;
  flex: 1;
  background: rgba(192, 174, 116, 0.18);
  margin: -14px -6px 0 -6px;
  position: relative;
  z-index: 1;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.pipeline-connector-line.completed {
  background: var(--color-brand-gold);
  box-shadow: 0 0 8px rgba(192, 174, 116, 0.4);
}

/* Toast Flotante de Notificaciones en Tiempo Real (WebSocket / SSE) */
.realtime-toast-banner {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999999;
  background: rgba(20, 17, 13, 0.95);
  border: 1px solid rgba(192, 174, 116, 0.5);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(192, 174, 116, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  max-width: 420px;
  width: calc(100vw - 40px);
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.realtime-toast-banner.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}



