/* Ultracell V18 — entrada única de CSS.
   Ordem preservada: base/legado -> módulos -> núcleo V17 -> correções visuais finais. */
@import url('./legacy.css');
@import url('./base.css');
@import url('./components.css');
@import url('./mobile.css');
@import url('./drawer-mobile.css');
@import url('./catalog-mobile.css');
@import url('./delivery-mobile.css');
@import url('./diagnostics.css');
@import url('./official-mobile-anexos.css');
@import url('./desktop.css');
@import url('./admin-mobile-drawer-clean.css');
@import url('./sidebar-deliverer-fix.css');
@import url('./admin-delivery-map-fix.css');
@import url('./order-product-confirmation.css');
@import url('./biometric-login-toggle.css');
@import url('./brand-logo-reference.css');
@import url('./user-grid-brand-deliverer-web.css');
@import url("./payment-options-user.css");
@import url('./responsive-device-fit.css');
@import url('./brand-style-settings.css');
@import url('./product-gallery-import.css');
@import url('./catalog-premium-online-redesign.css');
@import url('./catalog-mobile-vision-v2.css');
@import url('./ultracell-layout-contract-v3.css');
@import url('./catalog-banner-official.css');
@import url('./mobile-drawer-import-whatsapp-v4.css');
@import url('./registration-invite.css');
@import url('./seller-delivery-d1.css');
@import url('./style-core-v18.css');
@import url('./cart-brand-universal-fix.css');
@import url('./mobile-final-official.css');
@import url('./vitrine-mobile-shell-official.css');
@import url('./desktop-web-premium-grade.css');
@import url('./mobile-cart-visible-fix.css');
@import url('./v14_mobile_preview_pdfs.css');

/* V18.1 — correção limpa do carrinho aberto: o botão flutuante não cobre o checkout. */
.cart-v17-layer {
  z-index: 99980 !important;
}
body.cart-v17-open .uc-bottom,
body.cart-v17-open #floating-cart-btn,
body.cart-v17-open .floating-cart-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(16px) scale(.96) !important;
}
@media (max-width: 760px) {
  body.cart-v17-open .cart-v17-layer {
    z-index: 99980 !important;
    bottom: 0 !important;
    max-height: min(88dvh, calc(100dvh - 38px)) !important;
  }
  body.cart-v17-open .cart-v17-body {
    padding-bottom: 12px !important;
  }
  body.cart-v17-open .cart-v17-footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 2 !important;
  }
}

/* V18.3 — menu do cliente mobile: botões internos clicáveis no iOS/Android. */
@media (max-width: 820px) {
  body.uc-mobile-drawer-open {
    touch-action: auto !important;
  }
  .official-mobile-drawer.is-open {
    pointer-events: auto !important;
  }
  .official-mobile-drawer .official-nav-btn,
  .official-mobile-drawer [data-store-action] {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .client-orders-list,
  .client-orders-modal,
  .profile-client-form {
    display: grid;
    gap: 12px;
  }
  .client-order-items {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #475569;
    font-size: .9rem;
    line-height: 1.45;
  }
  .compact-actions {
    margin-top: 12px;
  }
}

/* V18.6 — sincroniza o banner premium do Nexus 1 com o padrão visual do Nexus 2.
   Remove a aparência legada de borda amarela quando o produto SAM/BAT cai na regra Gold
   e aplica o mesmo card completo premium usado no banner Diamond/Premium. */
.uc-card.premium-nexus-banner,
.catalog-list-banner-card.premium-nexus-banner,
.desktop-premium-product-card.premium-nexus-banner {
  border-color: color-mix(in srgb, var(--brand-primary, #ff7a00) 58%, #ffffff) !important;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand-primary, #ff7a00) 12%, #ffffff) 0%,
    color-mix(in srgb, var(--brand-secondary, #111111) 4%, #ffffff) 100%
  ) !important;
  box-shadow: 0 18px 42px color-mix(in srgb, var(--brand-primary, #ff7a00) 18%, transparent), 0 10px 24px rgba(15,23,42,.06) !important;
}

.uc-card.premium-nexus-banner .uc-strip,
.catalog-list-banner-card.premium-nexus-banner .catalog-list-strip,
.desktop-premium-product-card.premium-nexus-banner .desktop-premium-card-strip {
  background: linear-gradient(90deg, var(--brand-secondary, #111111) 0%, var(--brand-primary, #ff7a00) 100%) !important;
  color: var(--brand-text, #ffffff) !important;
}

.uc-card.premium-nexus-banner .uc-content,
.catalog-list-banner-card.premium-nexus-banner .catalog-list-content,
.desktop-premium-product-card.premium-nexus-banner .desktop-premium-card-body {
  background: transparent !important;
}

body.official-mobile-active .uc-card.premium-nexus-banner {
  border-width: 2px !important;
}

