:root {
      --color-primary: #1e40af;
      --color-primary-light: #3b82f6;
      --color-secondary: #374151;
      --color-accent: #f59e0b;
      --color-success: #22c55e;
      --color-error: #ef4444;
      --color-warning: #eab308;
    }

    .scrollbar-hide {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .scrollbar-hide::-webkit-scrollbar {
      display: none;
    }

    .card-hover {
      transition: all 0.3s ease;
    }

    .card-hover:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    }

    .btn-solid {
      background: var(--color-primary);
      color: white;
      transition: all 0.2s ease;
      font-weight: 600;
    }

    .btn-solid:hover {
      opacity: 0.9;
    }

    .btn-solid:active {
      transform: scale(0.98);
    }

    .product-card {
      background: #ffffff;
      border-radius: 0.75rem;
      overflow: hidden;
      border: 1px solid #f0f0f0;
      transition: all 0.3s ease;
    }

    .product-card:hover {
      border-color: #e5e5e5;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
      transform: translateY(-2px);
    }

    /* Skeleton Loading */
    .skeleton {
      background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite ease-in-out;
      border-radius: 0.5rem;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0;
      }

      100% {
        background-position: -200% 0;
      }
    }

    .skeleton-card {
      background: #ffffff;
      border-radius: 1rem;
      overflow: hidden;
      border: 1px solid #f0f0f0;
    }

    /* Fade-in para produtos carregados */
    .product-fade-in {
      animation: productFadeIn 0.4s ease-out forwards;
    }

    @keyframes productFadeIn {
      from {
        opacity: 0;
        transform: translateY(12px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ===== Banner Carousel ===== */
    .banner-carousel {
      position: relative;
      width: 100%;
      overflow: hidden;
      background: #111;
      /* Quadro Quadrado (1:1) para Mobile garantido */
      aspect-ratio: 1 / 1;
    }

    @media (min-width: 640px) {
      .banner-carousel {
        /* Remove o formato quadrado no Desktop */
        aspect-ratio: auto;
        /* Habilita a altura ultrawide retangular no PC */
        height: 400px;
      }
    }

    .banner-track {
      display: flex;
      height: 100%;
      width: 100%;
      /* Fix Crítico iOS: Força a trilha a ter a mesma base de cálculo das porcentagens */
      transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      will-change: transform;
    }

    .banner-track.no-transition {
      transition: none;
    }

    .banner-slide {
      flex: 0 0 100%;
      /* Blindagem Safari: Nunca estica, nunca encolhe, sempre 100% */
      width: 100%;
      height: 100%;
      position: relative;
      overflow: hidden;
    }

    .banner-slide picture,
    .banner-slide img {
      width: 100%;
      height: 100%;
      display: block;
      /* O cover preenche a área sem deformar, o que "sobra" é inteligentemente cortado */
      object-fit: cover;
      object-position: center;
      background: #111;
    }

    /* Sombreamento para os botões e pontos não sumirem em imagens claras */
    .banner-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 60px;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
      z-index: 5;
      pointer-events: none;
      /* Para não bloquear cliques na imagem */
    }

    /* Dots */
    .banner-dots {
      position: absolute;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 10px;
      z-index: 10;
    }

    .banner-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.45);
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      padding: 0;
    }

    .banner-dot:hover {
      background: rgba(255, 255, 255, 0.7);
    }

    .banner-dot.active {
      background: #ffffff;
      transform: scale(1.25);
      box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

    /* Nav arrows */
    .banner-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      background: rgba(0, 0, 0, 0.35);
      color: white;
      border: none;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
      backdrop-filter: blur(4px);
    }

    .banner-arrow:hover {
      background: rgba(0, 0, 0, 0.6);
    }

    .banner-arrow--prev {
      left: 12px;
    }

    .banner-arrow--next {
      right: 12px;
    }

    @media (max-width: 639px) {
      .banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
      }

      .banner-dots {
        bottom: 10px;
        gap: 8px;
      }

      .banner-dot {
        width: 8px;
        height: 8px;
      }
    }
    /* ===== Driver.js Custom Theme ===== */
    .driver-popover {
      background: #ffffff !important;
      border-radius: 16px !important;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
      border: 1px solid rgba(0, 0, 0, 0.06) !important;
      padding: 24px !important;
      max-width: 380px !important;
    }

    .driver-popover .driver-popover-title {
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 18px !important;
      font-weight: 700 !important;
      color: #111827 !important;
      margin-bottom: 8px !important;
      line-height: 1.3 !important;
    }

    .driver-popover .driver-popover-description {
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 14px !important;
      color: #6b7280 !important;
      line-height: 1.6 !important;
    }

    .driver-popover .driver-popover-progress-text {
      font-family: 'Inter', system-ui, sans-serif !important;
      font-size: 12px !important;
      color: #9ca3af !important;
      font-weight: 500 !important;
    }

    .driver-popover .driver-popover-navigation-btns {
      gap: 8px !important;
    }

    .driver-popover .driver-popover-next-btn {
      background: #111827 !important;
      color: #ffffff !important;
      border: none !important;
      border-radius: 10px !important;
      padding: 10px 22px !important;
      font-size: 13px !important;
      font-weight: 600 !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      transition: all 0.2s ease !important;
      text-shadow: none !important;
    }

    .driver-popover .driver-popover-next-btn:hover {
      background: #374151 !important;
      transform: translateY(-1px) !important;
    }

    .driver-popover .driver-popover-prev-btn {
      background: transparent !important;
      color: #6b7280 !important;
      border: 1px solid #e5e7eb !important;
      border-radius: 10px !important;
      padding: 10px 22px !important;
      font-size: 13px !important;
      font-weight: 500 !important;
      font-family: 'Inter', system-ui, sans-serif !important;
      transition: all 0.2s ease !important;
      text-shadow: none !important;
    }

    .driver-popover .driver-popover-prev-btn:hover {
      background: #f9fafb !important;
      border-color: #d1d5db !important;
    }

    .driver-popover .driver-popover-close-btn {
      color: #9ca3af !important;
      font-size: 20px !important;
      width: 32px !important;
      height: 32px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      border-radius: 8px !important;
      transition: all 0.2s ease !important;
    }

    .driver-popover .driver-popover-close-btn:hover {
      background: #f3f4f6 !important;
      color: #374151 !important;
    }

    .driver-popover-arrow {
      border: 1px solid rgba(0, 0, 0, 0.06) !important;
    }

    /* Onboarding welcome overlay */
    .onboarding-welcome-overlay {
      position: fixed;
      inset: 0;
      z-index: 10000;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      display: flex;
      align-items: center;
      justify-content: center;
      animation: onb-fadeIn 0.4s ease;
    }

    .onboarding-welcome-card {
      background: white;
      border-radius: 24px;
      padding: 48px 40px 40px;
      max-width: 440px;
      width: calc(100% - 32px);
      text-align: center;
      box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
      animation: onb-scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .onboarding-welcome-card .onb-icon {
      width: 72px;
      height: 72px;
      margin: 0 auto 20px;
      background: linear-gradient(135deg, #111827 0%, #374151 100%);
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      box-shadow: 0 8px 24px rgba(17, 24, 39, 0.3);
    }

    .onboarding-welcome-card h2 {
      font-size: 24px;
      font-weight: 800;
      color: #111827;
      margin: 0 0 8px;
      line-height: 1.3;
    }

    .onboarding-welcome-card p {
      font-size: 15px;
      color: #6b7280;
      margin: 0 0 28px;
      line-height: 1.6;
    }

    .onboarding-welcome-card .onb-features {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-bottom: 28px;
    }

    .onboarding-welcome-card .onb-feature {
      background: #f9fafb;
      border: 1px solid #f3f4f6;
      border-radius: 12px;
      padding: 14px 12px;
      text-align: center;
    }

    .onboarding-welcome-card .onb-feature-icon {
      font-size: 22px;
      margin-bottom: 6px;
    }

    .onboarding-welcome-card .onb-feature-label {
      font-size: 12px;
      font-weight: 600;
      color: #374151;
    }

    .onb-btn-primary {
      background: #111827;
      color: white;
      border: none;
      border-radius: 14px;
      padding: 14px 32px;
      font-size: 15px;
      font-weight: 700;
      font-family: 'Inter', system-ui, sans-serif;
      cursor: pointer;
      transition: all 0.2s ease;
      width: 100%;
      margin-bottom: 10px;
    }

    .onb-btn-primary:hover {
      background: #374151;
      transform: translateY(-1px);
    }

    .onb-btn-secondary {
      background: transparent;
      color: #9ca3af;
      border: none;
      padding: 10px;
      font-size: 13px;
      font-weight: 500;
      font-family: 'Inter', system-ui, sans-serif;
      cursor: pointer;
      transition: color 0.2s ease;
    }

    .onb-btn-secondary:hover {
      color: #6b7280;
    }

    /* Help button pulse */
    .help-btn-pulse {
      animation: helpPulse 2s ease-in-out infinite;
    }

    @keyframes helpPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(17, 24, 39, 0.3); }
      50% { box-shadow: 0 0 0 8px rgba(17, 24, 39, 0); }
    }

    @keyframes onb-fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes onb-scaleIn {
      from { opacity: 0; transform: scale(0.9) translateY(20px); }
      to { opacity: 1; transform: scale(1) translateY(0); }
    }