/* ==========================================================================
   FAN ARTS HF - SISTEMA DE DISENO Y ESTILOS PREMIUM
   ========================================================================== */

/* Importar tipografia moderna de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Variables de tema y paletas de colores */
:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colores base del tema oscuro */
  --bg-app: #07080d;
  --bg-sidebar: rgba(13, 16, 27, 0.75);
  --bg-card: rgba(22, 26, 43, 0.55);
  --bg-card-hover: rgba(30, 36, 60, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.6);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Colores de Marca y Accent */
  --color-primary: #38bdf8; /* Azul cielo */
  --color-primary-rgb: 56, 189, 248;
  --color-secondary: #38bdf8; /* Azul cielo */
  --color-accent: #f43f5e; /* Rosa/Rojo */
  --color-success: #10b981; /* Verde */
  --color-warning: #f59e0b; /* Naranja */
  --color-info: #06b6d4; /* Cian */

  /* Colores de Tipos de Energia Pokemon (HSL para gradientes fluidos) */
  --color-type-fire: #ff4422;
  --color-type-water: #3399ff;
  --color-type-grass: #77cc55;
  --color-type-lightning: #ffcb05;
  --color-type-psychic: #a55aed;
  --color-type-darkness: #4f3f3b;
  --color-type-dragon: #c6a114;
  --color-type-normal: #a8a878;

  /* Sombras y efectos de cristal */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 15px rgba(56, 189, 248, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-card: 16px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y estilos generales */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(165, 90, 237, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.02) 0%, transparent 60%);
  background-attachment: fixed;
}

/* ==========================================================================
   ESTRUCTURA DE NAVEGACION Y DISENO (GLASSMORPHISM)
   ========================================================================== */

/* Contenedor Principal */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
  position: relative;
}

/* Barra lateral de navegacion */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--border-glass);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  z-index: 100;
  transition: var(--transition-normal);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 45px;
  padding-left: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.5), 0 0 6px rgba(56, 189, 248, 0.3);
  border: 2px solid rgba(56, 189, 248, 0.4);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #fff, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-primary);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.05);
}

.nav-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
}

/* Area de contenido principal */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 40px 50px;
  min-height: 100vh;
  position: relative;
  transition: var(--transition-normal);
}

/* Cabecera de paginas */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.page-title-group h1 {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.page-title-group p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #0284c7);
  color: #07080d;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-accent {
  background: rgba(244, 63, 94, 0.1);
  color: var(--color-accent);
  border-color: rgba(244, 63, 94, 0.2);
}

.btn-accent:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-icon-only {
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Secciones (SPA Switcher) */
.page-section {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ELEMENTOS DE CRISTAL (GLASSMORPHISM)
   ========================================================================== */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   DASHBOARD / RESUMEN DE ESTADISTICAS
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-kpi, var(--color-primary));
}

.kpi-title {
  font-size: 13px;
  font-family: var(--font-title);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 4px;
}

.kpi-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* Layout de Dashboard con Graficos y Lista */
.dashboard-layout {
  display: grid;
  grid-template-columns: 3.5fr 2.5fr;
  gap: 25px;
}

.chart-panel {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stats-card-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.stats-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Mini graficos SVG interactivos */
.chart-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 20px;
}

.type-pie-chart {
  width: 100%;
  max-width: 250px;
  height: 250px;
  transform: rotate(-90deg);
  border-radius: 50%;
}

/* ==========================================================================
   CATALOGO DE CARTAS SELECTOR (CON EFECTO 3D HOLO)
   ========================================================================== */
.catalog-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 20px 14px 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-normal);
}

.search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.filter-select {
  background: rgba(22, 26, 43, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: var(--transition-normal);
}

.filter-select:focus {
  border-color: var(--border-focus);
}

/* Cuadricula de cartas del catalogo */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 18px;
}

.catalog-card-item {
  padding: 14px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

/* ==========================================================================
   EL INCREIBLE EFECTO HOLOGRAFICO 3D POKEMON
   ========================================================================== */

/* Contenedor 3D */
.pokemon-card-3d {
  perspective: 1000px;
  cursor: pointer;
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 10px;
}

/* Elemento de carta interno */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  transform-style: preserve-3d;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  background-color: #1a1e2e;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}

/* Capa de imagen de la carta */
.card-image-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

/* Capa de Brillo Holografico */
.card-holo-shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  mix-blend-mode: color-dodge;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* Gradiente base holografico de arcoiris */
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 0, 128, 0.3) 25%,
    rgba(255, 230, 0, 0.35) 45%,
    rgba(0, 255, 255, 0.3) 55%,
    rgba(0, 0, 255, 0.25) 70%,
    transparent 100%
  );
  background-size: 200% 200%;
  background-position: 0% 0%;
}

/* Capa de destello reflector de luz */
.card-holo-flare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0) 50%
  );
}

/* Efectos de Hover — solo tilt en cartas normales */
.pokemon-card-3d:hover .card-inner {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

/* Holo SOLO en cartas EX/GX */
.pokemon-card-3d.is-ex:hover .card-holo-shine,
.pokemon-card-3d.is-ex:hover .card-holo-flare {
  opacity: 0.85;
}

/* Borde dorado especial para EX */
.pokemon-card-3d.is-ex .card-inner {
  border: 1.5px solid rgba(255, 210, 60, 0.4);
  box-shadow: 0 5px 20px rgba(255, 180, 0, 0.2);
}

.pokemon-card-3d.is-ex:hover .card-inner {
  box-shadow: 0 15px 40px rgba(255, 180, 0, 0.35), 0 0 20px rgba(255, 180, 0, 0.15);
}

/* Controles de la carta en el Catalogo */
.card-info-panel {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title-group h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.card-title-group p {
  font-size: 12px;
  color: var(--text-secondary);
}

.card-price-add {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-price-tag {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--color-primary);
  font-size: 16px;
}

.btn-add-card {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-add-card:hover {
  background: var(--color-primary);
  color: #07080d;
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Insignias de Tipo de Energia */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.type-badge.fire { background: var(--color-type-fire); }
.type-badge.water { background: var(--color-type-water); }
.type-badge.grass { background: var(--color-type-grass); }
.type-badge.lightning { background: var(--color-type-lightning); color: #07080d; }
.type-badge.psychic { background: var(--color-type-psychic); }
.type-badge.darkness { background: var(--color-type-darkness); }
.type-badge.dragon { background: var(--color-type-dragon); }
.type-badge.fighting { background: #c06440; }
.type-badge.metal { background: #8899aa; color: #07080d; }

/* ==========================================================================
   SECCION DE BORRADOR DE NUEVO PEDIDO / FORMULARIO
   ========================================================================== */
.order-creation-container {
  display: grid;
  grid-template-columns: 2.2fr 1.8fr;
  gap: 30px;
}

.draft-cards-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Personalizar barra de scroll */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

.draft-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
  width: 100%;
}

.draft-item-img {
  width: 48px;
  height: 67px;
  border-radius: 6px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.draft-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.draft-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.draft-item-title-group {
  min-width: 0;
  flex: 1;
}

.draft-item-title {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  color: var(--text-primary);
}

.draft-item-details {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.draft-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.draft-item-price-unit {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.draft-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.draft-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-qty {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 0;
  transition: var(--transition-fast);
}

.btn-qty:hover {
  background: rgba(255,255,255,0.2);
}

.draft-qty-val {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  min-width: 16px;
  text-align: center;
}

.draft-item-total {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 14px;
  color: var(--color-primary);
  text-align: right;
  min-width: 50px;
}

.btn-remove-draft {
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-remove-draft:hover {
  color: var(--color-accent);
  background: rgba(244, 63, 94, 0.1);
}

/* Formulario de Detalles de Envio */
.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-normal);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-focus);
}

textarea.form-input {
  min-height: 80px;
  resize: vertical;
}

/* Resumen del borrador */
.draft-summary-box {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 25px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-bottom: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.summary-row.total .price {
  color: var(--color-primary);
}

.empty-draft-placeholder {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.empty-draft-icon {
  font-size: 40px;
  color: var(--text-muted);
}

/* ==========================================================================
   VISTA DE PEDIDOS (TABLA Y LISTA EXPANDIBLE)
   ========================================================================== */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-card {
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.order-card.order-completed {
  opacity: 0.82;
  background: rgba(16, 185, 129, 0.05) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.order-card.order-completed:hover {
  opacity: 1;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 5px 0;
}

.order-meta-info {
  display: flex;
  gap: 25px;
  align-items: center;
}

.order-id {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-primary);
}

.order-date-seller {
  font-size: 13px;
  color: var(--text-secondary);
}

.order-summary-metrics {
  display: flex;
  align-items: center;
  gap: 25px;
}

.order-total-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 16px;
}

/* Insignias de Estado del Pedido */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pendiente {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.en_camino {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.recibido {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Detalles expandibles de pedido */
.order-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow) ease;
  border-top: 0px solid transparent;
}

.order-card.expanded .order-card-details {
  max-height: 1000px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 18px;
  padding-top: 20px;
}

.order-details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.order-cards-subtable {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subtable-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.subtable-row:last-child {
  border-bottom: none;
}

.subtable-img {
  width: 36px;
  height: 50px;
  border-radius: 4px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.subtable-info {
  flex: 1;
}

.order-info-sidebar {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.info-sidebar-block h4 {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.info-sidebar-block p {
  font-size: 14px;
  line-height: 1.5;
}

.tracking-link {
  color: var(--color-primary);
  text-decoration: none;
  word-break: break-all;
}

.tracking-link:hover {
  text-decoration: underline;
}

.order-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* ==========================================================================
   CONFIGURACION Y BACKUP
   ========================================================================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.settings-card {
  padding: 30px;
}

.settings-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.settings-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ==========================================================================
   EFECTOS FLOTANTES DE ANIMACION (Anadir al pedido)
   ========================================================================== */
.floating-ball-animation {
  position: fixed;
  width: 25px;
  height: 25px;
  background: var(--color-primary);
  border-radius: 50%;
  z-index: 9999;
  box-shadow: 0 0 15px var(--color-primary);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

/* ==========================================================================
   RESPONSIVIDAD
   ========================================================================== */
@media (max-width: 1200px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .order-creation-container {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 900px) {
  .sidebar {
    width: 80px;
    padding: 20px 10px;
  }
  .brand-name {
    display: none;
  }
  .nav-item span {
    display: none;
  }
  .main-content {
    margin-left: 80px;
    padding: 30px 20px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .order-details-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 600px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .catalog-filters {
    flex-direction: column;
    align-items: stretch;
  }
}


/* ==========================================================================
   DISENO RESPONSIVE MOVIL - NAVEGACION INFERIOR TIPO APP
   ========================================================================== */

@media (max-width: 768px) {
  /* Ocultar sidebar fija */
  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--border-glass);
    z-index: 200;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  /* Ocultar brand y creditos en movil */
  .brand,
  .sidebar > div:last-child {
    display: none;
  }

  /* Ocultar badge de Netlify para que no tape los botones */
  #netlify-badge,
  .netlify-badge,
  [id*="netlify-badge"],
  [class*="netlify-badge"],
  [data-netlify-badge],
  iframe[src*="netlify"],
  div[data-netlify-preview] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Nav ocupa el ancho inferior pero con espacio seguro a la derecha */
  .sidebar nav {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .nav-menu {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 6px 4px;
    padding-right: 130px; /* Margen de seguridad para no ser tapado por ningun widget flotante a la derecha */
  }

  .nav-menu li {
    flex: 0 1 110px;
    position: relative;
  }

  .nav-item {
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    font-size: 11px;
    border-radius: 8px;
    border: none;
  }

  .nav-item span {
    display: block !important;
    font-size: 10px !important;
  }

  .nav-item.active {
    background: rgba(56, 189, 248, 0.12);
    border-top: 2px solid var(--color-primary);
  }

  #draft-count-badge {
    position: absolute;
    top: 3px;
    right: calc(50% - 24px);
    font-size: 9px !important;
    padding: 1px 5px !important;
    margin-left: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  }


  /* Contenido principal ajustado */
  .main-content {
    margin-left: 0;
    padding: 12px 4px 85px 4px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    min-height: 100vh;
  }

  /* Header de paginas en columna */
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .page-title-group h1 {
    font-size: 20px;
  }

  /* Tarjetas del catalogo de 3 en 3 en moviles */
  .card-grid, #catalog-grid, .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .catalog-card-item, #catalog-grid > .glass-panel {
    padding: 4px 3px !important;
    border-radius: 6px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .pokemon-card-3d {
    border-radius: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .card-inner {
    border-radius: 6px !important;
  }

  .card-info-panel {
    margin-top: 4px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 3px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .card-title-group {
    min-width: 0 !important;
    width: 100% !important;
  }

  .card-title-group h3 {
    font-size: 11px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  .card-title-group p {
    display: none !important;
  }

  .type-badge {
    font-size: 8px !important;
    padding: 1px 4px !important;
    gap: 2px !important;
  }

  .card-action-container {
    width: 100% !important;
  }

  .card-price-add {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 2px !important;
  }

  .card-price-tag {
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  .btn-add-card {
    width: 24px !important;
    height: 24px !important;
  }

  /* Cards mas compactas */
  .pokemon-card-preview {
    aspect-ratio: 2/3;
  }

  /* KPI en 2 columnas */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Formulario de pedido full width */
  .order-form-grid {
    grid-template-columns: 1fr;
  }

  /* Tabla de pedidos scrollable */
  .orders-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Modal en movil */
  .modal-content {
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 16px;
  }

  /* Contenedor de creacion de pedido 100% responsive en movil */
  .order-creation-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .order-creation-container > .glass-panel {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    overflow: hidden !important;
  }

  .draft-cards-list {
    max-height: 420px !important;
    padding-right: 0px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.main-content, .page-section {
  overflow-x: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}


/* Safe area para dispositivos con notch (iPhone X+) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .sidebar {
      padding-bottom: env(safe-area-inset-bottom);
    }
    .main-content {
      padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
  }
}


/* ==========================================================================
   ESTILOS DE MODO TIENDA ESTANCO, WHATSAPP Y CARTEL QR
   ========================================================================== */

/* Boton llamativo de WhatsApp */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

/* Ocultar elementos admin cuando se esta en modo cliente */
body.customer-mode .admin-only,
body.customer-mode #admin-toggle-wrapper,
body.customer-mode #btn-admin-toggle {
  display: none !important;
}

/* Boton de bloqueo / desbloqueo de modo admin */
.admin-lock-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.admin-lock-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-primary);
  border-color: rgba(56, 189, 248, 0.3);
}

.admin-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Modal de PIN */
.pin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.pin-modal-overlay.active {
  display: flex;
}

.pin-modal-card {
  background: #0f1322;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
}

.pin-input {
  font-size: 28px;
  letter-spacing: 12px;
  text-align: center;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-md);
  color: #fff;
  margin: 20px 0;
}

.pin-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   CARTEL IMPRIMIBLE DE ALTO IMPACTO PARA EL ESTANCO
   ========================================================================== */

.poster-preview-box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  padding: 30px 24px;
  border-radius: 20px;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 4px solid #0284c7;
  position: relative;
  overflow: hidden;
}

.poster-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.poster-logo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 3px solid #0284c7;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  object-fit: cover;
}

.poster-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 900;
  color: #0c4a6e;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-align: left;
}

.poster-subtitle {
  font-size: 11px;
  color: #0284c7;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

/* Cinta de Descuento Destacada */
.poster-promo-banner {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  margin: 10px 0 16px;
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.poster-promo-main {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.poster-promo-sub {
  font-size: 11px;
  opacity: 0.95;
  font-weight: 500;
  margin-top: 2px;
}

/* Abanico 3D de Cartas */
.poster-cards-fan {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0 20px;
  position: relative;
  height: 145px;
}

.poster-fan-card {
  width: 90px;
  height: 126px;
  border-radius: 8px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border: 2px solid #ffffff;
}

.poster-fan-card.c1 { transform: translateX(-80px) rotate(-14deg); z-index: 1; }
.poster-fan-card.c2 { transform: translateX(-40px) rotate(-7deg); z-index: 2; }
.poster-fan-card.c3 { transform: translateX(0px) rotate(0deg) scale(1.08); z-index: 3; border-color: #38bdf8; box-shadow: 0 12px 28px rgba(2, 132, 199, 0.45); }
.poster-fan-card.c4 { transform: translateX(40px) rotate(7deg); z-index: 2; }
.poster-fan-card.c5 { transform: translateX(80px) rotate(14deg); z-index: 1; }

/* Contenedor Inferior: QR + Pasos */
.poster-bottom-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: left;
}

.poster-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.poster-qr-img {
  width: 125px;
  height: 125px;
  border: 2.5px solid #0284c7;
  border-radius: 10px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.poster-qr-label {
  font-size: 10px;
  font-weight: 800;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.poster-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #0f172a;
  line-height: 1.35;
}

.poster-step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.poster-step-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.poster-footer-banner {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: rgba(2, 132, 199, 0.08);
  padding: 6px 10px;
  border-radius: 8px;
}

/* Reglas de impresion para que el cartel salga perfecto en A4 */
@media print {
  @page {
    size: A4 portrait;
    margin: 1.5cm;
  }
  body * {
    visibility: hidden;
  }
  #poster-printable-area, #poster-printable-area * {
    visibility: visible;
  }
  #poster-printable-area {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1.15);
    width: 90%;
    max-width: 520px;
    box-shadow: none;
    border: 4px solid #0284c7;
  }
}

/* Pantallas medianas y moviles apaisados (3 columnas) */
@media (min-width: 601px) and (max-width: 900px) {
  .card-grid, #catalog-grid, .catalog-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   TOAST DE NOTIFICACION FLOTANTE SUPERIOR (ESTILO DYNAMIC ISLAND / PILL)
   ========================================================================== */
.toast-banner {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(-100px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 18px !important;
  max-width: 92vw !important;
  width: auto !important;
  min-width: 250px !important;
  border-radius: 40px !important;
  background: rgba(13, 16, 27, 0.96) !important;
  border: 1px solid var(--color-primary) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  cursor: pointer !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
}

.toast-banner.show {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.toast-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 8px;
  line-height: 1;
  transition: var(--transition-fast);
}

.toast-close-btn:hover {
  color: var(--text-primary);
}

@supports (padding-top: env(safe-area-inset-top)) {
  .toast-banner {
    top: calc(14px + env(safe-area-inset-top)) !important;
  }
}



/* ==========================================================================
   CORREOS AL CLIENTE (ACCESO ESTANCO)
   ========================================================================== */
.order-email-box { background: rgba(56, 189, 248, 0.05); border: 1px dashed rgba(56, 189, 248, 0.35); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.order-email-label { font-family: var(--font-title); font-size: 12px; font-weight: 700; color: var(--color-primary); }
.order-email-input { width: 100%; box-sizing: border-box; padding: 9px 12px !important; font-size: 13px !important; }
.order-email-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.btn-mail { font-family: var(--font-title); font-size: 11.5px; font-weight: 700; padding: 9px 6px; border-radius: 8px; border: 1px solid var(--border-glass); background: rgba(255,255,255,0.06); color: var(--text-primary); cursor: pointer; transition: var(--transition-fast); line-height: 1.2; }
.btn-mail:hover { background: rgba(56, 189, 248, 0.18); border-color: var(--color-primary); transform: translateY(-1px); }
.btn-mail.sent { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.5); color: #10b981; }
@media (max-width: 480px) { .order-email-buttons { grid-template-columns: 1fr; } .btn-mail { font-size: 13px; padding: 11px; } }

/* PANEL RAPIDO DE CORREOS (3 BOTONES) */
.quick-mail-panel { margin-bottom: 22px; border: 1px solid rgba(56, 189, 248, 0.35) !important; display: flex; flex-direction: column; gap: 6px; }
.quick-mail-title { font-family: var(--font-title); font-size: 18px; font-weight: 800; margin: 0; }
.quick-mail-sub { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 8px 0; }
.quick-mail-label { font-family: var(--font-title); font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-top: 6px; }
.quick-mail-panel .form-input { width: 100%; box-sizing: border-box; }
.quick-mail-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.btn-quick-mail { font-family: var(--font-title); font-size: 14px; font-weight: 800; color: #fff; border: none; border-radius: 12px; padding: 16px 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-quick-mail:active { transform: scale(0.97); }
.btn-quick-mail.mail-pedido { background: linear-gradient(135deg, #38bdf8, #2563eb); box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35); }
.btn-quick-mail.mail-pago { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35); }
.btn-quick-mail.mail-envio { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35); }
.quick-mail-clear { background: none; border: none; color: var(--text-muted); font-size: 12px; text-decoration: underline; cursor: pointer; margin-top: 8px; align-self: center; }
@media (max-width: 600px) { .quick-mail-buttons { grid-template-columns: 1fr; } .btn-quick-mail { font-size: 15px; padding: 15px; } }


/* Boton flotante de carrito para acceso rapido en movil */
.floating-cart-btn {
  display: none;
}

@media (max-width: 768px) {
  .floating-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 150;
    background: rgba(13, 16, 27, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #f3f4f6;
    padding: 7px 13px;
    border-radius: 30px;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45), 0 0 10px rgba(56, 189, 248, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease;
  }

  .floating-cart-btn:active {
    transform: scale(0.95);
  }

  .floating-cart-btn svg, .floating-cart-btn i {
    width: 15px;
    height: 15px;
    color: var(--color-primary);
  }

  .floating-cart-btn .floating-badge {
    background: var(--color-primary);
    color: #07080d;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  }
}
