/**
 * KXY Componentes e Acessórios - Design System Oficial
 * Padrão Visual Exato do Anexo 2: Fundo Branco, Faixa de Filtros Vermelha, Rodapé Vermelho
 * Cores: #ba2327 (Vermelho KXY), #ffffff (Branco), #1a1a1a (Preto/Grafite)
 */

:root {
  --kxy-red: #ba2327;
  --kxy-red-hover: #9e1c20;
  --kxy-primary: #ba2327;
  --kxy-primary-dark: #9e1c20;
  --kxy-white: #ffffff;
  --kxy-black: #1a1a1a;
  --kxy-gray-zebra: #edf2f7;
  --kxy-gray-border: #e2e4e8;
  --kxy-gray-text: #555555;
  --font-family: 'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--kxy-white);
  color: var(--kxy-black);
  font-size: 16px;
  line-height: 1.5;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  background-color: var(--kxy-white);
  color: var(--kxy-black);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.kxy-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .kxy-container {
    padding: 0 16px;
  }
}

/* ========================================================================
   1. HEADER OFICIAL (Fundo Branco, Logo KXY Destacado e Ícones Sociais)
   ======================================================================== */
.kxy-header {
  background-color: var(--kxy-white);
  border-bottom: 1px solid var(--kxy-gray-border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.kxy-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.kxy-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.kxy-logo:hover {
  transform: scale(1.02);
}

.kxy-nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.kxy-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

@media (max-width: 920px) {
  .kxy-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  }
  .kxy-nav {
    height: 70px;
  }
  .kxy-logo {
    height: 42px;
    max-width: 130px;
  }
  .kxy-nav-right {
    gap: 8px;
  }
  .kxy-menu {
    display: none;
  }
  /* Redes sociais ficam dentro do menu no mobile */
  .kxy-social-icons .kxy-social-link {
    display: none !important;
  }
  .kxy-header-cart-guide {
    display: none !important;
  }
  .kxy-header-cart-btn {
    padding: 7px 11px;
    background: #f8fafc;
    border-color: #cbd5e1;
  }
  .kxy-mobile-toggle {
    display: inline-flex !important;
  }
}

/* Botão Menu Mobile Awwwards Magnetic Toggle */
.kxy-mobile-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  border: 1.5px solid #334155;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-family);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kxy-mobile-toggle:hover {
  background: #1e293b;
  border-color: #475569;
  transform: translateY(-1px);
}

.kxy-mobile-toggle.is-active {
  background: var(--kxy-red);
  border-color: var(--kxy-red);
  box-shadow: 0 4px 14px rgba(186, 35, 39, 0.35);
}

.kxy-mobile-toggle-box {
  width: 16px;
  height: 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.kxy-mobile-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.kxy-mobile-toggle.is-active .kxy-mobile-toggle-bar:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.kxy-mobile-toggle.is-active .kxy-mobile-toggle-bar:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.kxy-mobile-toggle-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  line-height: 1;
}

.kxy-menu-link {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  position: relative;
  padding: 8px 0;
}

.kxy-menu-link:hover,
.kxy-menu-link.active {
  color: var(--kxy-red);
}

.kxy-social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.kxy-social-link {
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), transform 0.2s ease;
}

.kxy-social-link:hover {
  color: var(--kxy-red);
  transform: translateY(-1px);
}

.kxy-social-link-whatsapp:hover {
  color: #25D366;
}

.kxy-social-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.kxy-social-link-whatsapp svg,
.kxy-social-link svg[fill="currentColor"] {
  fill: currentColor !important;
  stroke: none !important;
}

/* ========================================================================
   2. HERO / BANNER CARROSSEL (Ambiente Planejado de Alto Padrão)
   ======================================================================== */
.kxy-hero-banner {
  position: relative;
  width: 100%;
  height: 520px;
  max-height: 520px;
  overflow: hidden;
  background-color: #0b0b0b;
}

@media (max-width: 768px) {
  .kxy-hero-banner {
    height: 320px;
  }
}

.kxy-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.kxy-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border: none;
  border-radius: 4px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}

.kxy-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.45);
}

.kxy-slider-prev {
  left: 20px;
}

.kxy-slider-next {
  right: 20px;
}

.kxy-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.kxy-dot {
  width: 16px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  cursor: pointer;
}

.kxy-dot.active {
  background: var(--kxy-red);
  width: 24px;
}

/* ========================================================================
   3. FAIXA DE FILTROS VERMELHA (Idêntica ao Anexo 2)
   ======================================================================== */
.kxy-filter-bar {
  background-color: var(--kxy-red);
  padding: 14px 0;
  box-shadow: 0 4px 12px rgba(186, 35, 39, 0.25);
}

.kxy-filter-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.kxy-filter-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.kxy-filter-label {
  color: var(--kxy-white);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.kxy-filter-input-wrap {
  position: relative;
}

.kxy-filter-input {
  background: var(--kxy-white);
  border: 1px solid var(--kxy-white);
  border-radius: 999px;
  height: 38px;
  padding: 0 20px;
  font-family: var(--font-family);
  font-size: 14px;
  color: #333;
  width: 210px;
  transition: width 0.3s ease;
}

.kxy-filter-input:focus {
  outline: none;
  width: 250px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

/* Dropdown de Busca Ativa (Live Autocomplete) */
.kxy-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 330px;
  max-width: 90vw;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 99999;
  overflow: hidden;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  animation: kxyFadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kxy-autocomplete-dropdown.active {
  display: block;
}

@keyframes kxyFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.kxy-autocomplete-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.kxy-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.kxy-autocomplete-item:last-child {
  border-bottom: none;
}

.kxy-autocomplete-item:hover,
.kxy-autocomplete-item.selected {
  background: #fff5f5;
}

.kxy-autocomplete-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.kxy-autocomplete-info {
  flex: 1;
  min-width: 0;
}

.kxy-autocomplete-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.kxy-autocomplete-item:hover .kxy-autocomplete-title {
  color: var(--kxy-red);
}

.kxy-autocomplete-highlight {
  color: var(--kxy-red);
  background: rgba(186, 35, 39, 0.08);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 800;
}

.kxy-autocomplete-category {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kxy-autocomplete-category::before {
  content: '•';
  color: var(--kxy-red);
}

.kxy-autocomplete-empty {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.kxy-autocomplete-footer {
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kxy-filter-or {
  color: var(--kxy-white);
  font-size: 15px;
  font-weight: 500;
}

.kxy-filter-select {
  background: var(--kxy-white);
  border: 1px solid var(--kxy-white);
  border-radius: 999px;
  height: 38px;
  padding: 0 32px 0 18px;
  font-family: var(--font-family);
  font-size: 14px;
  color: #333;
  cursor: pointer;
  appearance: auto;
  min-width: 230px;
}

.kxy-filter-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.kxy-cart-icon {
  color: var(--kxy-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kxy-cart-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* ========================================================================
   4. CATÁLOGO DE PRODUTOS (Fundo Branco, Cards Técnicos do Anexo 2)
   ======================================================================== */
.kxy-catalog-section {
  padding: 50px 0 75px;
  background-color: var(--kxy-white);
}

.kxy-section-title {
  text-align: center;
  color: var(--kxy-red);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.kxy-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 20px;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .kxy-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }
}

@media (max-width: 680px) {
  .kxy-products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Card Individual de Produto - Perfeito no Desktop e Mobile */
.kxy-product-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
  padding: 12px 10px 12px;
  background-color: var(--kxy-white);
  border: 1px solid #edf2f7;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.kxy-product-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.kxy-product-tech-drawing {
  width: 108px;
  height: 108px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 6px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.kxy-product-tech-drawing img,
.kxy-product-tech-drawing svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kxy-product-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.kxy-product-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
  margin-bottom: 5px;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.kxy-product-line {
  width: 48px;
  height: 2.5px;
  background-color: var(--kxy-red);
  border-radius: 2px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

/* Tabela Técnica Zebrada com o tom azul-acinzentado do Anexo 2 */
.kxy-tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
  table-layout: fixed;
  box-sizing: border-box;
}

.kxy-tech-table th {
  text-align: left;
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
  padding: 3px 4px;
  letter-spacing: 0.3px;
  box-sizing: border-box;
}

.kxy-tech-table th:nth-child(1) { width: 50%; }
.kxy-tech-table th:nth-child(2) { width: 23%; }
.kxy-tech-table th:nth-child(3) { width: 27%; text-align: right; }

.kxy-tech-table td {
  padding: 3.5px 4px;
  color: #334155;
  font-weight: 500;
  font-size: 10.5px;
  line-height: 1.2;
  vertical-align: middle;
  box-sizing: border-box;
}

.kxy-tech-table td:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kxy-tech-table td:nth-child(2) {
  white-space: nowrap;
}

.kxy-tech-table td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
}

.kxy-tech-table tr:nth-child(odd) td {
  background-color: var(--kxy-gray-zebra);
  border-radius: 2px;
}

.kxy-tech-table tr:nth-child(even) td {
  background-color: var(--kxy-white);
}

.kxy-product-quote-link {
  display: inline-block;
  font-size: 11px;
  color: var(--kxy-red);
  font-weight: 600;
  margin-top: 8px;
  text-decoration: underline;
}

/* ========================================================================
   5. RODAPÉ OFICIAL VERMELHO KXY (Idêntico ao Anexo 2)
   ======================================================================== */
.kxy-footer {
  background-color: var(--kxy-red);
  color: var(--kxy-white);
  padding: 55px 0 35px;
}

.kxy-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .kxy-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.kxy-footer-logo-box {
  margin-bottom: 22px;
}

.kxy-footer-logo-img {
  height: 56px;
  width: auto;
  margin-bottom: 12px;
}

/* Tarja Branca "Componentes e Acessórios" */
.kxy-footer-badge {
  display: inline-block;
  background-color: var(--kxy-white);
  color: var(--kxy-black);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.kxy-footer-address {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.kxy-footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--kxy-white);
  margin-bottom: 8px;
  display: block;
}

.kxy-footer-dash-line {
  width: 100%;
  max-width: 180px;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.kxy-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--kxy-white);
  margin-bottom: 12px;
}

.kxy-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.kxy-footer-links-list {
  list-style: none;
  margin-bottom: 18px;
}

.kxy-footer-links-list li {
  margin-bottom: 6px;
}

.kxy-footer-links-list a {
  color: var(--kxy-white);
  font-size: 14px;
  transition: opacity var(--transition);
}

.kxy-footer-links-list a:hover {
  opacity: 0.8;
  padding-left: 4px;
}

.kxy-footer-social-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kxy-footer-social-row a {
  color: var(--kxy-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kxy-footer-social-row svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.kxy-footer-social-row a.kxy-footer-whatsapp svg,
.kxy-footer-social-row svg[fill="currentColor"] {
  fill: currentColor !important;
  stroke: none !important;
}

.kxy-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

/* Modais Globais */
.dmt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dmt-modal.show {
  display: flex;
}

.dmt-modal-dialog {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  padding: 24px;
}

/* ========================================================================
   10. SISTEMA DE CARRINHO EM TELA CHEIA (FULL-SCREEN) & BOTÕES ADD
   ======================================================================== */

/* Botão Add na Tabela Técnica com Alto Contraste */
.kxy-btn-add-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background-color: #ffffff !important;
  color: #ba2327 !important;
  border: 1.5px solid #ba2327 !important;
  border-radius: 4px;
  padding: 2.5px 6px;
  font-family: var(--font-family);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  line-height: 1.15;
}

.kxy-btn-add-item svg {
  width: 10px;
  height: 10px;
  stroke: #ba2327 !important;
  flex-shrink: 0;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.kxy-btn-add-item:hover {
  background-color: #ba2327 !important;
  color: #ffffff !important;
  border-color: #ba2327 !important;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 3px 10px rgba(186, 35, 39, 0.35) !important;
}

.kxy-btn-add-item:hover svg {
  stroke: #ffffff !important;
  transform: rotate(90deg);
}

.kxy-btn-add-item:active {
  transform: translateY(0) scale(0.97);
}

/* Caixa de Orientação Clara e Amigável Antes dos Produtos */
.kxy-catalog-helper-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--kxy-red);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 auto 32px auto;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.kxy-helper-icon {
  background: rgba(186, 35, 39, 0.1);
  color: var(--kxy-red);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kxy-helper-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

.kxy-helper-text strong {
  color: #0f172a;
  font-weight: 700;
}

.kxy-helper-badge-sample {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fff;
  border: 1px solid #ba2327;
  color: #ba2327;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
}

/* Animação do Item Voando para o Carrinho (Flying Item) */
.kxy-fly-item {
  position: fixed;
  z-index: 99999999;
  pointer-events: none;
  background: #ba2327;
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(186, 35, 39, 0.45);
  border: 2px solid #ffffff;
  transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.65s ease;
}

/* Balão Orientador que Aponta para o Carrinho */
.kxy-cart-guide-tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  background: #0f172a;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  border: 1px solid #334155;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: kxyTooltipSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  cursor: pointer;
}

.kxy-cart-guide-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 32px;
  width: 10px;
  height: 10px;
  background: #0f172a;
  border-top: 1px solid #334155;
  border-left: 1px solid #334155;
  transform: rotate(45deg);
}

@keyframes kxyTooltipSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animação de Chacoalho / Pulso no Carrinho */
.kxy-cart-bounce {
  animation: kxyCartShake 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

@keyframes kxyCartShake {
  10%, 90% { transform: translate3d(-2px, 0, 0) scale(1.18); }
  20%, 80% { transform: translate3d(3px, 0, 0) scale(1.18); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0) scale(1.15); }
  40%, 60% { transform: translate3d(3px, 0, 0) scale(1.15); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

.kxy-badge-pop {
  animation: kxyBadgeScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes kxyBadgeScale {
  0% { transform: scale(1); }
  50% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

/* Badges e Botão do Carrinho no Topo (Header Oficial) */
.kxy-header-cart-btn {
  position: relative;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 14px 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.kxy-header-cart-btn:hover {
  background: #fff5f5;
  border-color: var(--kxy-red);
  color: var(--kxy-red);
  box-shadow: 0 4px 14px rgba(186, 35, 39, 0.16);
  transform: translateY(-1px);
}

.kxy-header-cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kxy-header-cart-svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.kxy-header-cart-btn:hover .kxy-header-cart-svg {
  transform: scale(1.08);
}

.kxy-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--kxy-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(186, 35, 39, 0.4);
  border: 2px solid #ffffff;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kxy-header-cart-guide {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.kxy-header-cart-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: inherit;
}

.kxy-header-cart-sub {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s ease;
}

.kxy-header-cart-btn:hover .kxy-header-cart-sub {
  color: var(--kxy-red);
}

@media (max-width: 768px) {
  .kxy-header-cart-guide {
    display: none;
  }
  .kxy-header-cart-btn {
    padding: 6px 10px;
  }
}

/* Modal Full-Screen (Tela Cheia) do Carrinho */
.kxy-cart-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  z-index: 999999;
  display: flex;
  overflow: hidden;
  font-family: var(--font-family);
}

.kxy-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.kxy-cart-window {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: #0d1117;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

/* Topbar do Carrinho */
.kxy-cart-topbar {
  height: 72px;
  background: #161b22;
  border-bottom: 1px solid #28303e;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.kxy-cart-topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.kxy-cart-header-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.kxy-cart-header-sub {
  font-size: 12px;
  color: #8b949e;
  margin: 2px 0 0 0;
}

.kxy-cart-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kxy-cart-close-btn:hover {
  background: #ba2327;
  color: #fff;
  border-color: #ba2327;
}

/* Corpo do Carrinho em 2 Colunas Espaçosas */
.kxy-cart-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Coluna de Itens (Esquerda) */
.kxy-cart-items-col {
  flex: 1.3;
  background: #0d1117;
  border-right: 1px solid #28303e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kxy-cart-col-header {
  padding: 24px 36px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2632;
  flex-shrink: 0;
}

.kxy-cart-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.kxy-cart-count-pill {
  background: rgba(186, 35, 39, 0.2);
  color: #ff6b6d;
  border: 1px solid rgba(186, 35, 39, 0.35);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.kxy-cart-clear-btn {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.kxy-cart-clear-btn:hover {
  color: #ff6b6d;
}

.kxy-cart-items-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #2d3748 #0d1117;
}

/* Scrollbar Personalizada e Moderna para o Carrinho (Chrome, Edge, Safari, Opera) */
.kxy-cart-modal *::-webkit-scrollbar,
.kxy-cart-items-list::-webkit-scrollbar,
.kxy-cart-form-col::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.kxy-cart-modal *::-webkit-scrollbar-track,
.kxy-cart-items-list::-webkit-scrollbar-track,
.kxy-cart-form-col::-webkit-scrollbar-track {
  background: #0d1117;
  border-radius: 999px;
  margin: 8px 0;
}

.kxy-cart-modal *::-webkit-scrollbar-thumb,
.kxy-cart-items-list::-webkit-scrollbar-thumb,
.kxy-cart-form-col::-webkit-scrollbar-thumb {
  background: #2d3748;
  border-radius: 999px;
  border: 1px solid #161b22;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.kxy-cart-modal *::-webkit-scrollbar-thumb:hover,
.kxy-cart-items-list::-webkit-scrollbar-thumb:hover,
.kxy-cart-form-col::-webkit-scrollbar-thumb:hover {
  background: var(--kxy-red);
  border-color: rgba(255, 255, 255, 0.2);
}

.kxy-cart-modal *::-webkit-scrollbar-corner,
.kxy-cart-items-list::-webkit-scrollbar-corner {
  background: transparent;
}

/* Item Card */
.kxy-cart-item-card {
  background: #161b22;
  border: 1px solid #28303e;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.2s ease;
}

.kxy-cart-item-card:hover {
  border-color: #384356;
}

.kxy-cart-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.kxy-cart-item-thumb {
  width: 58px;
  height: 58px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  object-fit: contain;
  border: 1px solid #28303e;
  flex-shrink: 0;
}

.kxy-cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kxy-cart-item-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.kxy-cart-item-specs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kxy-cart-item-badge-desc {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.kxy-cart-item-pkg {
  font-size: 11px;
  color: #8b949e;
}

/* Controles de Quantidade */
.kxy-cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 3px 6px;
}

.kxy-qty-btn {
  background: #21262d;
  border: none;
  color: #f1f5f9;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.kxy-qty-btn:hover {
  background: var(--kxy-primary);
  color: #fff;
}

.kxy-qty-input {
  width: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}

.kxy-cart-item-remove {
  background: none;
  border: none;
  color: #6e7681;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.kxy-cart-item-remove:hover {
  color: #ff6b6d;
  background: rgba(255, 107, 109, 0.1);
}

/* Rodapé Coluna Itens */
.kxy-cart-col-footer {
  padding: 18px 36px;
  background: #161b22;
  border-top: 1px solid #28303e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.kxy-btn-continue-link {
  background: none;
  border: none;
  color: #8b949e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.kxy-btn-continue-link:hover {
  color: #fff;
  text-decoration: underline;
}

.kxy-cart-summary-badge {
  font-size: 14px;
  color: #cbd5e1;
}

.kxy-cart-summary-badge strong {
  color: #fff;
  font-size: 16px;
  margin-left: 4px;
}

/* Estado Vazio do Carrinho */
.kxy-cart-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
}

.kxy-cart-empty-icon {
  color: #384356;
  margin-bottom: 20px;
}

.kxy-cart-empty-state h4 {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.kxy-cart-empty-state p {
  font-size: 14px;
  color: #8b949e;
  max-width: 380px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.kxy-btn-continue {
  background: #21262d;
  color: #f1f5f9;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kxy-btn-continue:hover {
  background: var(--kxy-primary);
  border-color: var(--kxy-primary);
  color: #fff;
}

/* Coluna de Formulário (Direita - Fixa e Minimalista sem rolagem vertical) */
.kxy-cart-form-col {
  flex: 1.05;
  background: #141820;
  overflow-y: auto; /* Permite scroll apenas em telas muito baixas */
  overflow-x: hidden;
  padding: 24px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-height: 650px) and (min-width: 961px) {
  .kxy-cart-form-col {
    overflow: hidden; /* Fixa sem rolagem vertical */
  }
}

.kxy-cart-form-box {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

.kxy-cart-form-header {
  margin-bottom: 16px;
}

.kxy-cart-step-badge {
  display: inline-block;
  background: rgba(186, 35, 39, 0.15);
  color: #ff6b6d;
  border: 1px solid rgba(186, 35, 39, 0.3);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

/* Card de Endereço Preenchido Automaticamente */
.kxy-cart-address-reveal {
  animation: kxyAddressFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kxyAddressFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.kxy-address-preview-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #161b22;
  border: 1px solid #30363d;
  border-left: 3.5px solid #22c55e;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 4px;
}

.kxy-address-preview-icon {
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kxy-address-preview-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.kxy-address-preview-info strong {
  font-size: 12.5px;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.kxy-address-preview-info span {
  font-size: 11px;
  color: #8b949e;
}

.kxy-cart-form-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.kxy-cart-form-desc {
  font-size: 13px;
  color: #8b949e;
  margin: 0;
}

/* Grupos de Formulário */
.kxy-form-group {
  margin-bottom: 16px;
}

.kxy-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.kxy-form-col-2 { flex: 2; }
.kxy-form-col-4 { flex: 4; }
.kxy-form-col-6 { flex: 6; }
.kxy-form-col-8 { flex: 8; }

.kxy-form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kxy-form-label .required {
  color: #ff6b6d;
  margin-left: 3px;
}

.kxy-cep-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  color: #38bdf8;
}

.kxy-form-input,
.kxy-form-textarea {
  width: 100%;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #f1f5f9;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.kxy-form-input:focus,
.kxy-form-textarea:focus {
  outline: none;
  border-color: #ba2327;
  box-shadow: 0 0 0 3px rgba(186, 35, 39, 0.25);
}

.kxy-form-hint {
  display: block;
  font-size: 11px;
  color: #8b949e;
  margin-top: 4px;
}

/* CEP Input Wrap */
.kxy-cep-input-wrap {
  display: flex;
  gap: 8px;
}

.kxy-btn-cep {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.kxy-btn-cep:hover {
  background: #30363d;
  color: #fff;
}

/* Alerta de Erro */
.kxy-cart-alert {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Botão de Finalização WhatsApp */
.kxy-btn-checkout {
  width: 100%;
  background: #22c55e;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 15px 24px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
  margin-top: 10px;
}

.kxy-btn-checkout:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.45);
}

.kxy-btn-checkout:active {
  transform: translateY(0);
}

.kxy-checkout-security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #8b949e;
  margin-top: 14px;
  text-align: center;
}

/* Toast Notificação */
.kxy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 9999999;
  animation: kxySlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.kxy-toast-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kxy-toast-text {
  display: flex;
  flex-direction: column;
}

.kxy-toast-text strong {
  font-size: 13px;
  color: #ffffff;
}

.kxy-toast-text span {
  font-size: 12px;
  color: #8b949e;
}

.kxy-toast-action {
  background: var(--kxy-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 8px;
  white-space: nowrap;
}

/* ========================================================================
   RESPONSIVIDADE DO CARRINHO EM TELAS MENORES E MOBILE (2 COLUNAS COMPACTAS)
   ======================================================================== */
.kxy-cart-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 960px) {
  .kxy-cart-window {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }
  .kxy-cart-body {
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: calc(100dvh - 52px);
  }
  .kxy-cart-items-col {
    border-right: none;
    border-bottom: 1px solid #28303e;
    overflow: visible;
    flex-shrink: 0;
  }
  .kxy-cart-topbar {
    padding: 10px 16px;
    min-height: 52px;
    height: 52px;
  }
  .kxy-cart-col-header {
    padding: 10px 16px 6px;
  }
  .kxy-cart-col-title {
    font-size: 13.5px;
  }
  .kxy-cart-count-pill {
    font-size: 10px;
    padding: 1px 7px;
    min-width: 18px;
    height: 18px;
  }
  .kxy-cart-clear-btn {
    font-size: 11px;
  }

  /* LISTA DE PRODUTOS EM 2 COLUNAS COMPACTAS */
  .kxy-cart-items-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    max-height: clamp(130px, 30vh, 210px) !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    align-content: start;
  }

  /* Card Individual de Item em 2 Colunas */
  .kxy-cart-item-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 8px 10px !important;
    gap: 6px !important;
    background: #161b22;
    border: 1px solid #28303e;
    border-radius: 8px;
    min-width: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }
  .kxy-cart-item-card:hover {
    border-color: #384356;
    background: #1c222b;
  }

  /* Topo do Card: Imagem + Nome + Badges */
  .kxy-cart-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .kxy-cart-item-thumb {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 6px;
    background: #ffffff;
    padding: 2px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .kxy-cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .kxy-cart-item-name {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    margin: 0;
  }
  .kxy-cart-item-specs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
  }
  .kxy-cart-item-badge-desc {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(186, 35, 39, 0.15);
    color: #ff8a8c;
    border: 1px solid rgba(186, 35, 39, 0.3);
    white-space: nowrap;
  }
  .kxy-cart-item-pkg {
    font-size: 9px;
    color: #8b949e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Rodapé do Card: Quantidade [- 1 +] e Lixeira */
  .kxy-cart-item-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-top: 5px !important;
    margin-top: 2px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    gap: 4px !important;
    flex-shrink: 0;
  }
  .kxy-cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    background: #0d1117;
    border: 1px solid #28303e;
    border-radius: 6px;
    padding: 1px 3px;
    gap: 2px;
  }
  .kxy-qty-btn {
    width: 20px;
    height: 20px;
    font-size: 12px;
    border-radius: 4px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21262d;
    color: #fff;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.15s ease;
  }
  .kxy-qty-btn:hover {
    background: #30363d;
  }
  .kxy-qty-input {
    width: 22px;
    height: 20px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: none;
    text-align: center;
    padding: 0;
  }
  .kxy-cart-item-remove {
    padding: 3px 4px;
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease, background-color 0.15s ease;
  }
  .kxy-cart-item-remove:hover {
    color: #ff6b6d;
    background: rgba(239, 68, 68, 0.15);
  }
  .kxy-cart-item-remove svg {
    width: 14px;
    height: 14px;
  }

  /* Rodapé dos Itens */
  .kxy-cart-col-footer {
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .kxy-btn-continue-link {
    font-size: 11px;
  }
  .kxy-cart-summary-badge {
    font-size: 11.5px;
  }
  .kxy-cart-summary-badge strong {
    font-size: 12.5px;
  }

  /* Formulário Compactado & Adaptado */
  .kxy-cart-form-col {
    padding: 10px 16px 16px;
    flex-shrink: 0;
    overflow: visible;
  }
  .kxy-cart-form-header {
    margin-bottom: 6px;
  }
  .kxy-cart-form-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
  }
  .kxy-cart-form-desc {
    font-size: 10.5px;
    color: #8b949e;
    margin-bottom: 0;
  }

  .kxy-cart-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 6px;
  }
  .kxy-form-group {
    margin-bottom: 6px;
  }
  .kxy-form-group-obs {
    margin-bottom: 6px;
  }
  .kxy-form-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
  }
  .kxy-form-input {
    height: 35px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
  }
  .kxy-cep-input-wrap {
    gap: 6px;
  }
  .kxy-btn-cep {
    padding: 0 10px;
    font-size: 11px;
    height: 35px;
  }

  /* Preview de Endereço Compacto */
  .kxy-address-preview-card {
    padding: 5px 8px;
    gap: 6px;
    margin-bottom: 6px;
    border-radius: 6px;
  }
  .kxy-address-preview-icon svg {
    width: 14px;
    height: 14px;
  }
  .kxy-address-preview-info strong {
    font-size: 11px;
  }
  .kxy-address-preview-info span {
    font-size: 9.5px;
  }

  /* Botão Finalizar Orçamento WhatsApp */
  .kxy-btn-checkout {
    height: 42px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 5px;
    gap: 6px;
  }
  .kxy-btn-checkout svg {
    width: 17px;
    height: 17px;
  }
  .kxy-checkout-security-notice {
    margin-top: 4px;
    font-size: 9.5px;
    gap: 4px;
  }
  .kxy-checkout-security-notice svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 640px) {
  .kxy-cart-topbar {
    padding: 8px 12px;
    min-height: 48px;
    height: 48px;
  }
  .kxy-cart-logo {
    height: 26px;
    max-width: 90px;
  }
  .kxy-cart-header-title {
    font-size: 13px;
  }
  .kxy-cart-header-sub {
    display: none;
  }
  .kxy-cart-close-btn {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }
  .kxy-cart-close-btn svg {
    width: 15px;
    height: 15px;
  }
  
  .kxy-cart-col-header {
    padding: 8px 12px 4px;
  }
  .kxy-cart-items-list {
    padding: 6px 12px !important;
    gap: 6px !important;
  }
  .kxy-cart-col-footer {
    padding: 5px 12px;
  }
  .kxy-cart-form-col {
    padding: 8px 12px 14px;
  }
  .kxy-cart-form-grid-2 {
    gap: 6px;
    margin-bottom: 5px;
  }
  .kxy-form-group {
    margin-bottom: 5px;
  }
  .kxy-form-group-obs {
    margin-bottom: 5px;
  }
}

/* Fallback para Telas Extremamente Estreitas (< 330px) */
@media (max-width: 330px) {
  .kxy-cart-items-list {
    grid-template-columns: 1fr !important;
  }
  .kxy-cart-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Adaptação para Telas de Baixa Altura / Celular Landscape */
@media (max-height: 620px) {
  .kxy-cart-topbar {
    height: 42px;
    min-height: 42px;
    padding: 4px 12px;
  }
  .kxy-cart-logo {
    height: 24px;
  }
  .kxy-cart-header-title {
    font-size: 12.5px;
  }
  .kxy-cart-col-header {
    padding: 6px 12px 3px;
  }
  .kxy-cart-items-list {
    max-height: 115px !important;
    padding: 4px 12px !important;
    gap: 4px !important;
  }
  .kxy-cart-col-footer {
    padding: 4px 12px;
  }
  .kxy-cart-form-col {
    padding: 6px 12px 10px;
  }
  .kxy-cart-form-header {
    display: none;
  }
  .kxy-form-group {
    margin-bottom: 4px;
  }
  .kxy-form-input {
    height: 32px;
  }
  .kxy-btn-checkout {
    height: 38px;
    font-size: 12px;
  }
}

/* ========================================================================
   MENU MOBILE AWWWARDS DESIGN SYSTEM (LUXURY OVERLAY & DRAWER)
   ======================================================================== */
.kxy-mobile-drawer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999998;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.kxy-mobile-drawer.is-open {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.kxy-mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  transition: opacity 0.32s ease;
}

.kxy-mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #0b0f17;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -14px 0 50px rgba(0, 0, 0, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.kxy-mobile-drawer.is-open .kxy-mobile-drawer-panel {
  transform: translateX(0);
}

/* Topo do Drawer */
.kxy-mobile-drawer-top {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(11, 15, 23, 0.98);
}

.kxy-drawer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}

.kxy-drawer-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.kxy-drawer-tagline {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #94a3b8;
  text-transform: uppercase;
}

.kxy-mobile-drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kxy-mobile-drawer-close:hover {
  background: var(--kxy-red);
  border-color: var(--kxy-red);
  transform: rotate(90deg) scale(1.05);
}

.kxy-mobile-drawer-close svg {
  width: 18px;
  height: 18px;
}

/* Corpo do Drawer */
.kxy-mobile-drawer-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  -webkit-overflow-scrolling: touch;
}

.kxy-mob-section-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Links de Navegação com Animação Estilo Editorial */
.kxy-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kxy-mob-nav-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.kxy-mobile-drawer.is-open .kxy-mob-nav-item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--item-index, 1) * 0.05s + 0.1s);
}

.kxy-mob-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  position: relative;
}

.kxy-mob-nav-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #64748b;
  font-family: monospace;
  transition: color 0.2s ease;
}

.kxy-mob-nav-text {
  flex: 1;
}

.kxy-mob-nav-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(186, 35, 39, 0.2);
  color: #ff6b6d;
  border: 1px solid rgba(186, 35, 39, 0.4);
  padding: 2px 8px;
  border-radius: 999px;
}

.kxy-mob-nav-arrow {
  font-size: 18px;
  color: #475569;
  transform: translateX(-4px);
  opacity: 0;
  transition: all 0.2s ease;
}

.kxy-mob-nav-link:hover,
.kxy-mob-nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding-left: 18px;
}

.kxy-mob-nav-link.active {
  border-left: 3.5px solid var(--kxy-red);
}

.kxy-mob-nav-link:hover .kxy-mob-nav-num,
.kxy-mob-nav-link.active .kxy-mob-nav-num {
  color: var(--kxy-red);
}

.kxy-mob-nav-link:hover .kxy-mob-nav-arrow,
.kxy-mob-nav-link.active .kxy-mob-nav-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--kxy-red);
}

/* Categorias em Destaque (Chips) */
.kxy-mob-categories-wrap {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kxy-mob-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kxy-mob-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.kxy-mob-chip:hover {
  background: var(--kxy-red);
  border-color: var(--kxy-red);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Redes Sociais & Contato Dentro do Menu */
.kxy-mob-social-section {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kxy-mob-social-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kxy-mob-social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.kxy-mob-social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.kxy-card-instagram:hover {
  background: linear-gradient(135deg, rgba(131, 58, 180, 0.2), rgba(225, 48, 108, 0.2), rgba(245, 96, 64, 0.2));
  border-color: rgba(225, 48, 108, 0.45);
}

.kxy-card-whatsapp:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.45);
}

.kxy-mob-social-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kxy-card-instagram .kxy-mob-social-icon-box {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #ffffff;
}

.kxy-card-whatsapp .kxy-mob-social-icon-box {
  background: #25d366;
  color: #ffffff;
}

.kxy-mob-social-icon-box svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.kxy-card-whatsapp .kxy-mob-social-icon-box svg,
.kxy-mob-social-icon-box svg[fill="currentColor"] {
  fill: currentColor !important;
  stroke: none !important;
}

.kxy-mob-social-info {
  flex: 1;
  min-width: 0;
}

.kxy-mob-social-sub {
  font-size: 11px;
  color: #94a3b8;
  display: block;
}

.kxy-mob-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #4ade80;
  font-weight: 600;
}

.kxy-status-dot-pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: kxyStatusPulse 1.8s infinite;
}

@keyframes kxyStatusPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.kxy-mob-social-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kxy-mob-social-action {
  font-size: 18px;
  color: #64748b;
  transition: transform 0.2s ease, color 0.2s ease;
}

.kxy-mob-social-card:hover .kxy-mob-social-action {
  color: #ffffff;
  transform: translate(2px, -2px);
}

/* Contatos Rápidos em Pílulas */
.kxy-mob-quick-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.kxy-mob-contact-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kxy-mob-contact-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.kxy-mob-contact-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Rodapé do Menu Drawer */
.kxy-mob-drawer-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  color: #64748b;
  line-height: 1.6;
}

.kxy-mob-footer-corp {
  color: #94a3b8;
  font-weight: 500;
}

/* ========================================================================
   ZERO HORIZONTAL SCROLL & RESPONSIVIDADE MOBILE IMPECÁVEL
   ======================================================================== */
@media (max-width: 768px) {
  .kxy-filter-bar {
    padding: 16px 0;
  }
  .kxy-filter-inner {
    width: 100%;
    justify-content: stretch;
  }
  .kxy-filter-controls {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 10px;
  }
  .kxy-filter-label {
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  .kxy-filter-input-wrap {
    width: 100%;
    position: relative;
  }
  .kxy-filter-input {
    width: 100% !important;
    max-width: 100% !important;
    height: 42px;
    font-size: 15px;
    box-sizing: border-box;
  }
  .kxy-filter-input:focus {
    width: 100% !important;
  }
  .kxy-autocomplete-dropdown {
    width: 100% !important;
    max-width: 100% !important;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }
  .kxy-filter-or {
    text-align: center;
    font-size: 13px;
    margin: -2px 0;
    opacity: 0.85;
  }
  .kxy-filter-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px;
    font-size: 14px;
    box-sizing: border-box;
  }
}

@media (max-width: 580px) {
  .kxy-catalog-section {
    padding: 30px 0 50px;
  }
  .kxy-section-title {
    font-size: 19px;
    margin-bottom: 24px;
    line-height: 1.35;
    padding: 0 8px;
    word-break: break-word;
  }
  .kxy-catalog-helper-box {
    padding: 12px 14px;
    margin-bottom: 24px;
    gap: 10px;
    align-items: flex-start;
  }
  .kxy-helper-icon {
    flex-shrink: 0;
    margin-top: 2px;
  }
  .kxy-helper-text {
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
  }
  /* Card de produto empilhado no mobile: Desenho técnico centralizado e tabela 100% largura */
  .kxy-product-card {
    grid-template-columns: 1fr !important;
    gap: 14px;
    padding: 14px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  }
  .kxy-product-title {
    min-height: auto;
  }
  .kxy-product-tech-drawing {
    height: 140px;
    width: 100%;
  }
  .kxy-tech-table {
    width: 100%;
    table-layout: auto;
  }
  .kxy-tech-table th:nth-child(1),
  .kxy-tech-table th:nth-child(2),
  .kxy-tech-table th:nth-child(3) {
    width: auto;
  }
  .kxy-tech-table td:nth-child(1) {
    white-space: normal;
  }
  .kxy-tech-table th, 
  .kxy-tech-table td {
    padding: 6px 6px;
    font-size: 11px;
  }
  .kxy-btn-add-item {
    padding: 3.5px 8px;
    font-size: 10.5px;
  }
  .kxy-footer {
    padding: 40px 0 25px;
  }
}
