/* ==========================================
   Mypimes Design System — Fase 1
   Inspirado en frontend-design skill:
   - Editorial sophistication con technical soul
   - NO: Inter para todo, gradientes púrpura, emojis en UI
   - SÍ: Outfit display, Inter body, sombras suaves, materialidad
   ========================================== */

/* --- Tipografía --- */
:root {
  /* Font families */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Letter spacing para display */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
}

/* --- Espaciado (8px base) --- */
:root {
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;    /* 48px */
  --space-3xl: 4rem;    /* 64px */
}

/* --- Sombras (materialidad sutil) --- */
:root {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Sombra difusa para cards */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- Bordes --- */
:root {
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --radius-circle: 50%;
}

/* --- Colores base (se sobreescriben dinámicamente) --- */
:root {
  /* Neutros cálidos (no frío #f8f9fa) */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Superficies */
  --surface-primary: #ffffff;
  --surface-secondary: var(--gray-50);
  --surface-dark: #1a1a2e;  /* Azul marino elegante para sidebar */

  /* Colores dinámicos — fallback global (tenant-specific pages sobreescriben via inline :root) */
  --primary: #0d6efd;
  --primary-light: #6ea8fe;
  --primary-dark: #0a58ca;
  --secondary: #6c757d;
  --text-on-primary: #ffffff;
}

/* --- Variables dinámicas (se inyectan via inline style) --- */
/*
  Uso en Razor:
  <style>
    :root {
      --primary: @_primaryColor;
      --primary-light: color-mix(in srgb, @_primaryColor 20%, white);
      --primary-dark: color-mix(in srgb, @_primaryColor 80%, black);
      --secondary: @_secondaryColor;
    }
  </style>
*/

/* --- Transiciones --- */
:root {
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ==========================================
   Componentes Base
   ========================================== */

/* --- Botones (.btn-mypimes) --- */
.btn-mypimes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-mypimes:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.btn-mypimes:disabled,
.btn-mypimes[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-mypimes.btn-solid:disabled,
.btn-mypimes.btn-solid[disabled] {
  background-color: var(--primary, #0d6efd);
  color: var(--text-on-primary, #ffffff);
  border-color: var(--primary, #0d6efd);
}

/* Variantes de botón */
.btn-mypimes.btn-solid {
  background-color: var(--primary, #0d6efd);
  color: var(--text-on-primary, #ffffff);
  border-color: var(--primary, #0d6efd);
}

.btn-mypimes.btn-solid:hover {
  background-color: var(--primary-dark, #0a58ca);
  border-color: var(--primary-dark, #0a58ca);
  color: var(--text-on-primary, #ffffff);
  filter: brightness(0.9);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-mypimes.btn-outline {
  background-color: transparent;
  color: var(--primary-dark, #0a58ca);
  border-color: var(--primary, #0d6efd);
}

.btn-mypimes.btn-outline:hover {
  background-color: var(--primary, #0d6efd);
  color: var(--text-on-primary, #ffffff);
}

.btn-mypimes.btn-ghost {
  background-color: transparent;
  color: var(--primary-dark, #0a58ca);
  border-color: transparent;
}

.btn-mypimes.btn-ghost:hover {
  background-color: color-mix(in srgb, var(--primary, #0d6efd) 10%, transparent);
  color: var(--primary-dark, #0a58ca);
}

.btn-mypimes.btn-ghost:active {
  background-color: color-mix(in srgb, var(--primary, #0d6efd) 20%, transparent);
  color: var(--primary-dark, #0a58ca);
}

/* Success variant (usado en ConfigurarPagos) */
.btn-mypimes.btn-success {
  background-color: #10b981;
  color: #ffffff;
  border-color: #10b981;
}

.btn-mypimes.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
}

/* Glassmorphism button (para carrito/whatsapp flotantes) */
.btn-mypimes.btn-glass {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-on-primary, #ffffff);
  box-shadow: var(--shadow-md);
}

.btn-mypimes.btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Tamaños */
.btn-mypimes.btn-sm {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
}

.btn-mypimes.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* --- Cards (.card-mypimes) --- */
.card-mypimes {
  background-color: var(--surface-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card-mypimes .card-img-top {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card-mypimes:hover .card-img-top {
  transform: scale(1.05);
}

.card-mypimes .card-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.card-mypimes .card-title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
}

.card-mypimes .card-footer {
  background-color: transparent;
  border-top: 1px solid var(--gray-200);
  padding: var(--space-md) var(--space-lg);
}

/* Glassmorphism card */
.card-mypimes.card-glass {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Badges (.badge-mypimes) --- */
.badge-mypimes {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  line-height: 1;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge-mypimes.badge-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: var(--radius-circle);
}

.badge-mypimes.badge-success {
  background-color: #10b981;
  color: #ffffff;
}

.badge-mypimes.badge-warning {
  background-color: #f59e0b;
  color: #000000;
}

.badge-mypimes.badge-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.badge-mypimes.badge-info {
  background-color: #3b82f6;
  color: #ffffff;
}

.badge-mypimes.badge-dark {
  background-color: #1f2937;
  color: #ffffff;
}

.badge-mypimes.badge-secondary {
  background-color: #6b7280;
  color: #ffffff;
}

.border-start-primary {
  border-left: 4px solid var(--primary, #0d6efd) !important;
}

/* Badge con blur (para stock en catálogo) */
.badge-mypimes.badge-blur {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* --- Inputs (.input-mypimes) --- */
.input-mypimes {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--gray-900);
  background-color: var(--surface-primary);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.input-mypimes:focus {
  outline: none;
  border-color: var(--primary, #0d6efd);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.input-mypimes::placeholder {
  color: var(--gray-400);
}

/* --- Floating Label --- */
.floating-label-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.floating-label-group .input-mypimes {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-xs);
}

.floating-label-group label {
  position: absolute;
  top: 4px;
  left: var(--space-md);
  font-size: 0.7rem;
  font-weight: var(--fw-medium);
  color: var(--gray-500);
  pointer-events: none;
  transition: all var(--transition-fast);
  line-height: 1;
}

/* ==========================================
   Utilidades
   ========================================== */

/* Texto */
.text-display {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
}

.text-mono {
  font-family: var(--font-mono);
}

/* Backdrop blur para overlays */
.backdrop-blur {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Hover scale sutil */
.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Animación pulse para carrito badge */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Estilo de página en catálogo: hero section */
.hero-section {
  min-height: 30vh;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 35vh;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 40vh;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.7));
}

/* Responsive: Floating buttons */
@media (max-width: 768px) {
  .btn-glass[style*="bottom:20px"] {
    bottom: 80px !important;
  }
  .btn-glass[style*="bottom:90px"] {
    bottom: 150px !important;
  }
}

/* Sobreescritura de Bootstrap (solo donde sea necesario) */
body {
  font-family: var(--font-body) !important;
  background-color: var(--surface-secondary) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tight);
}

/* --- Toast Animations --- */
@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}

.animate-fade-out {
    animation: fadeOut 0.3s ease-in both;
}

@keyframes toastShrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* --- Dark Mode --- */
[data-theme="dark"] {
    --surface: #1a1a2e;
    --surface-dark: #0f0f1a;
    --surface-card: #1e1e36;
    --text: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #27272a;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --primary-light: color-mix(in srgb, var(--primary) 60%, white);
    --primary-dark: color-mix(in srgb, var(--primary) 80%, black);
}

[data-theme="dark"] body {
    background: var(--surface);
    color: var(--text);
}

[data-theme="dark"] .card-mypimes {
    background: var(--surface-card);
    border: 1px solid var(--border);
}

[data-theme="dark"] .btn-mypimes.btn-ghost {
    color: var(--primary-light, #6ea8fe);
}

[data-theme="dark"] .btn-mypimes.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .btn-mypimes.btn-outline {
    color: var(--primary-light, #6ea8fe);
    border-color: var(--primary-light, #6ea8fe);
}

[data-theme="dark"] .btn-mypimes.btn-outline:hover {
    background: var(--primary-light, #6ea8fe);
    color: #000000;
}

[data-theme="dark"] .input-mypimes {
    background: var(--surface-dark);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] .badge-mypimes.badge-secondary {
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

/* Dark mode text contrast fixes */
[data-theme="dark"] .text-muted,
[data-theme="dark"] .text-secondary {
    color: var(--text-secondary, #a1a1aa) !important;
}

/* ==========================================
   Admin Panel — Design Tokens (Odoo-style)
   Scoped to .admin-layout to not affect CatalogoLayout
   ========================================== */

.admin-layout {
    /* Admin primario — púrpura */
    --primary:        #7C3AED;
    --primary-light:  #EDE9FE;
    --primary-dark:   #5B21B6;
    --primary-ring:   rgba(124, 58, 237, 0.25);

    /* Acento — verde éxito */
    --accent:         #10B981;
    --accent-light:   #D1FAE5;
    --accent-dark:    #059669;

    /* Estados */
    --warning:        #F59E0B;
    --warning-light:  #FEF3C7;
    --danger:         #EF4444;
    --danger-light:   #FEE2E2;
    --info:           #3B82F6;
    --info-light:     #DBEAFE;

    /* Sidebar */
    --sidebar-bg:     #1E1B2E;
    --sidebar-border: #2D2645;
    --sidebar-text:   #A89FC4;
    --sidebar-muted:  #5A5278;
    --sidebar-hover:  rgba(124, 58, 237, 0.15);
    --sidebar-active: rgba(124, 58, 237, 0.20);

    /* Superficies admin */
    --admin-bg:       #F4F3F8;
    --admin-surface:  #FFFFFF;
    --admin-border:   #E5E3EE;
    --admin-text:     #1A1523;
    --admin-muted:    #7C7492;

    /* Sombras admin */
    --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md:      0 4px 16px rgba(124, 58, 237, 0.12);

    /* Radios admin */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Stat Cards */
.stat-card {
    background: var(--admin-surface, #fff);
    border: 1px solid var(--admin-border, #E5E3EE);
    border-radius: var(--radius-lg, 16px);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card.purple::before { background: var(--primary, #7C3AED); }
.stat-card.green::before  { background: var(--accent, #10B981); }
.stat-card.orange::before { background: var(--warning, #F59E0B); }
.stat-card.blue::before   { background: var(--info, #3B82F6); }

.stat-card-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 12px;
}

.stat-card-icon.purple { background: var(--primary-light, #EDE9FE); }
.stat-card-icon.green  { background: var(--accent-light, #D1FAE5); }
.stat-card-icon.orange { background: var(--warning-light, #FEF3C7); }
.stat-card-icon.blue   { background: var(--info-light, #DBEAFE); }

.stat-card-value {
    font-size: 26px; font-weight: 700;
    color: var(--admin-text, #1A1523);
    line-height: 1;
}

.stat-card-label {
    font-size: 12px; font-weight: 500;
    color: var(--admin-muted, #7C7492);
    margin-top: 4px;
}

.stat-card-delta {
    font-size: 11px; font-weight: 600;
    margin-top: 8px;
}

.stat-card-delta.up   { color: var(--accent, #10B981); }
.stat-card-delta.down { color: var(--danger, #EF4444); }

/* Stock bar */
.stock-bar {
    height: 5px; border-radius: 3px;
    background: var(--admin-border, #E5E3EE);
    overflow: hidden; margin-top: 4px; width: 80px;
}

.stock-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.4s ease;
}

.stock-fill.ok   { background: var(--accent, #10B981); }
.stock-fill.warn { background: var(--warning, #F59E0B); }
.stock-fill.low  { background: var(--danger, #EF4444); }

/* Admin card */
.admin-card {
    background: var(--admin-surface, #fff);
    border: 1px solid var(--admin-border, #E5E3EE);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm);
}

.admin-card-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--admin-border, #E5E3EE);
    display: flex; align-items: center; gap: 10px;
}

.admin-card-title {
    font-size: 14px; font-weight: 700;
    color: var(--admin-text, #1A1523);
    flex: 1;
}

/* Admin badges */
.badge-admin {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
}

.badge-admin.success { background: var(--accent-light, #D1FAE5); color: #065F46; }
.badge-admin.warning { background: var(--warning-light, #FEF3C7); color: #92400E; }
.badge-admin.danger  { background: var(--danger-light, #FEE2E2); color: #991B1B; }
.badge-admin.info    { background: var(--info-light, #DBEAFE); color: #1E40AF; }
.badge-admin.purple  { background: var(--primary-light, #EDE9FE); color: var(--primary-dark, #5B21B6); }
.badge-admin.muted   { background: #F3F4F6; color: #374151; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
    padding: 10px 16px; text-align: left;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    color: var(--admin-muted, #7C7492); text-transform: uppercase;
    background: #FAF9FC;
    border-bottom: 1px solid var(--admin-border, #E5E3EE);
}

.admin-table td {
    padding: 12px 16px; font-size: 13px;
    color: var(--admin-text, #1A1523);
    border-bottom: 1px solid #F3F0FA;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #F8F7FD; }

/* Admin topbar button overrides */
.admin-layout .btn-mypimes.btn-solid {
    background-color: var(--primary, #7C3AED);
    border-color: var(--primary, #7C3AED);
    color: #ffffff !important;
}

.admin-layout .btn-mypimes.btn-solid:hover {
    background-color: var(--primary-dark, #5B21B6);
    border-color: var(--primary-dark, #5B21B6);
    color: #ffffff !important;
    filter: none;
}

.admin-layout .btn-mypimes.btn-outline {
    color: var(--primary, #7C3AED);
    border-color: var(--primary, #7C3AED);
}

/* Kanban columns */
.kanban-board {
    display: flex; gap: 14px;
    overflow-x: auto; padding-bottom: 8px;
    align-items: flex-start;
}

.kanban-col { min-width: 260px; }

.kanban-col-header {
    padding: 9px 14px; border-radius: 8px;
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 10px;
}

.kanban-col-header.pending  { background: var(--warning-light, #FEF3C7); color: #92400E; }
.kanban-col-header.progress { background: var(--info-light, #DBEAFE); color: #1E40AF; }
.kanban-col-header.ready    { background: var(--accent-light, #D1FAE5); color: #065F46; }
.kanban-col-header.done     { background: #F3F4F6; color: #374151; }

.kanban-col-count {
    margin-left: auto;
    background: rgba(0,0,0,.1);
    border-radius: 10px; padding: 1px 7px;
    font-size: 11px;
}

.kanban-card {
    background: var(--admin-surface, #fff);
    border: 1px solid var(--admin-border, #E5E3EE);
    border-radius: var(--radius-md, 10px);
    padding: 12px 14px; margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.kanban-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ==========================================
   Animaciones y Transiciones — Fase 5.2
   ========================================== */

/* @keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation utility classes */
.animate-fade-in { animation: fadeIn 0.4s ease-out both; }
.animate-slide-up { animation: slideUp 0.5s ease-out both; }
.animate-scale-in { animation: scaleIn 0.3s ease-out both; }
.animate-slide-right { animation: slideInRight 0.4s ease-out both; }

/* Staggered reveal for card grids */
.stagger-container > .card-mypimes,
.stagger-container > * > .card-mypimes {
    animation: slideUp 0.5s ease-out both;
}
.stagger-container > :nth-child(1) { animation-delay: 0.05s; }
.stagger-container > :nth-child(2) { animation-delay: 0.1s; }
.stagger-container > :nth-child(3) { animation-delay: 0.15s; }
.stagger-container > :nth-child(4) { animation-delay: 0.2s; }
.stagger-container > :nth-child(5) { animation-delay: 0.25s; }
.stagger-container > :nth-child(6) { animation-delay: 0.3s; }
.stagger-container > :nth-child(n+7) { animation-delay: 0.35s; }

/* Page transition */
main { animation: fadeIn 0.3s ease-out; }

/* Card hover enhancement */
.card-mypimes:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Button press effect */
.btn-mypimes:active {
    transform: scale(0.97);
}

/* ==========================================
   Mobile Touch Fixes
   ========================================== */

@media (max-width: 767px) {
    /* Ensure modal dialogs are tappable on mobile */
    .modal-dialog {
        touch-action: manipulation;
        -webkit-overflow-scrolling: touch;
    }

    .modal-dialog button,
    .modal-dialog .btn-mypimes {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        user-select: none;
    }

    /* Fix cart/checkout buttons on mobile */
    .btn-mypimes.btn-glass {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}
