@charset "UTF-8";
:root {
  --primary-color: #000;
  --secondary-color: #ABABAB;
  --tertiary-color: #78c400;
  --detail-color: #9100fa;
  --white-color: #fff;
  --whatsapp-color: #45a858;
  --primary-font: 'Barlow',
      sans-serif;
}

/* Drag & Drop Styles */
.drag-handle {
  cursor: grab;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.sortable-ghost .drag-handle {
  cursor: grabbing;
}

.sortable-ghost {
  opacity: 0.5;
  background-color: #e5e7eb;
  border: 2px dashed #000;
}

.sortable-drag {
  opacity: 0.9;
  transform: rotate(2deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sortable-chosen {
  cursor: grabbing;
}

.selected-product-item.sortable-ghost {
  position: relative;
  min-height: 60px;
  border: 3px solid #000;
  background-color: #eff6ff;
}

.selected-product-item.sortable-ghost > * {
  opacity: 0;
}

.selected-products.sortable-drag-over {
  background-color: #f0f9ff;
}

.selected-product-item {
  position: relative;
  transition: transform 0.2s ease;
}

/* Accordion Styles */
.accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
  padding: 1.25rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.accordion-header:hover {
  background-color: #f9fafb;
}

.accordion-header.active {
  background-color: #f3f4f6;
}

.accordion-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

/* Botão Selecionar Todos */
.select-all-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
  margin-right: 0.5rem;
  white-space: nowrap;
  display: none; /* Oculto por padrão */
}

/* Mostrar botão apenas quando a coleção estiver aberta */
.accordion-item:has(.accordion-content.open) .select-all-btn {
  display: block;
}

.select-all-btn:hover {
  background: #e5e7eb;
}

.select-all-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .select-all-btn {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  max-height: 999999px;
  overflow: visible;
}

.accordion-body {
  padding: 0 1rem 1rem 1rem;
}

/* Estilos para categorias dentro das coleções */
.category-item {
  border-bottom: 1px solid #e5e7eb;
}

.category-header {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  background-color: #fafafa;
}

.category-header:hover {
  background-color: #f3f4f6;
}

.category-header.active {
  background-color: #e5e7eb;
}

.category-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.category-header.active .category-icon {
  transform: rotate(180deg);
}

.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.category-content.open {
  max-height: 999999px;
  overflow: visible;
}

.category-products-container {
  padding: 0 1rem 1rem 1rem;
}

/* Botão Selecionar Todos de Categoria */
.select-all-category-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
  margin-right: 0.5rem;
  white-space: nowrap;
  display: none;
}

.category-item:has(.category-content.open) .select-all-category-btn {
  display: block;
}

.select-all-category-btn:hover {
  background: #e5e7eb;
}

.select-all-category-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .select-all-category-btn {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }
}
/* Cards com altura fixa para caber na tela */
.products-available-card {
  display: flex;
  flex-direction: column;
  min-height: 60px;
}

.products-available-content {
  max-height: 0;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.products-available-content.open {
  max-height: 999999px;
  overflow: visible;
}

.accordion-container {
  overflow-y: auto;
  min-height: 0;
}

.selected-products-section {
  display: flex;
  flex-direction: column;
  min-height: 60px;
}

.selected-products-content {
  max-height: 0;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.selected-products-content.open {
  max-height: 200px;
  overflow: visible;
}

.selected-products-body {
  padding: 1rem;
}

/* Search Input Styles */
.search-input-container {
  margin: 1rem;
  margin-bottom: 0.5rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1.4rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::-moz-placeholder {
  color: #9ca3af;
}

.search-input::placeholder {
  color: #9ca3af;
}

.products-available-content .search-input-container {
  margin-top: 0.5rem;
}

/* Global Search Loader */
.global-search-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.global-search-loader.show {
  display: flex;
}

.global-search-loader .loading-spinner {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

.global-search-loader p {
  font-size: 1.4rem;
  color: #6b7280;
  margin: 0;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
}

.load-more-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
}

.load-more-btn:hover {
  background: #e5e7eb;
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Product Item Styles - Mobile First */
.product-item {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.product-item:hover {
  background-color: #f9fafb;
}

.product-item.selected {
  background-color: #f9fafb;
  border-left: 3px solid #000;
}

.product-info {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
  gap: 0.75rem;
}

.product-info .flex.flex-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 0.25rem;
}

.product-image {
  width: 60px;
  height: 60px;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 0.75rem;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.product-image span {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-name {
  font-size: 1.6rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.product-ref {
  font-size: 1.4rem;
  color: #6b7280;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.product-selection-indicator {
  min-width: 110px;
  display: flex;
  justify-content: flex-end;
}

.product-selection-text {
  font-size: 1.2rem;
  color: #4b5563;
}

.product-selection-text--muted {
  color: #9ca3af;
}

.product-selection-plus {
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #374151;
}

.sku-tooltip-wrapper {
  position: relative;
}

.sku-tooltip-trigger {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sku-tooltip-trigger:hover,
.sku-tooltip-trigger:focus-visible {
  background: #eef2ff;
  border-color: #6366f1;
  outline: none;
}

.sku-tooltip {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.sku-tooltip--fixed {
  position: fixed !important;
  width: min(320px, 100vw - 32px);
  max-height: 60vh;
  overflow-y: auto;
  transform: translateY(0) !important;
  right: auto !important;
  left: 16px;
  z-index: 9999;
  margin-right: 0 !important;
}

.sku-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sku-tooltip__placeholder,
.sku-tooltip__empty,
.sku-tooltip__error {
  font-size: 1.3rem;
  color: #6b7280;
  margin: 0;
}

.sku-tooltip__error {
  color: #dc2626;
}

.sku-tooltip__loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  color: #4b5563;
}

.sku-tooltip__variation + .sku-tooltip__variation {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.sku-tooltip__variation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: #111827;
  gap: 1rem;
}

.sku-tooltip__price {
  font-size: 1.2rem;
  color: #16a34a;
  font-weight: 600;
}

.sku-tooltip__table-wrapper {
  margin-top: 0.75rem;
  overflow-x: auto;
}

.sku-tooltip table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.sku-tooltip th {
  text-align: left;
  font-weight: 600;
  color: #4b5563;
  padding-bottom: 0.4rem;
}

.sku-tooltip td {
  padding: 0.2rem 0;
  border-top: 1px solid #f3f4f6;
  color: #111827;
  white-space: nowrap;
}

.sku-tooltip td.sku-tooltip__stock-zero,
.sku-tooltip__stock-zero {
  color: #dc2626;
  font-weight: 700;
}

.sku-tooltip__empty-row {
  text-align: center;
  color: #6b7280;
}

.inline-loader {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #e5e7eb;
  border-top-color: #6b7280;
  border-radius: 50%;
  animation: spin-loader 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes spin-loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.sku-price-loader,
.sku-stock-5-andar-loader,
.sku-stock-fisico-loader {
  display: inline-block;
  min-width: 20px;
  min-height: 14px;
  vertical-align: middle;
}

.product-details {
  display: block;
  margin-top: 0.25rem;
  line-height: 1.5;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .sku-tooltip {
    width: min(260px, 100vw - 32px);
    left: auto;
    right: 100%;
    margin-right: 12px;
    transform: translateY(6px);
  }
  .product-selection-indicator {
    min-width: auto;
  }
  .product-details {
    font-size: 1.3rem;
  }
}
/* Botão fixo para adicionar selecionados */
.fixed-add-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #000;
  color: #fff;
  padding: 1rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 1000;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fixed-add-button.show {
  display: flex;
}

.fixed-add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .fixed-add-button {
    bottom: 80px;
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}
/* Botão Salvar Centralizado - Mesma largura dos cards */
.save-button-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

/* Layout mobile - altura dinâmica baseada no viewport */
@media (max-width: 768px) {
  section.common-container {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
  }
  .landing-page-products {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 0 1rem;
  }
  /* Título da página - 48px */
  .landing-page-products > div:first-child {
    flex-shrink: 0;
    height: 48px;
    margin: 0 !important;
    padding: 0 !important;
  }
  .products-form-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    min-height: 0;
    overflow: hidden;
    gap: 2rem;
  }
  /* Products Available Card - sempre mostra header (60px) */
  .products-available-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  /* Quando expandido, ocupa espaço dinâmico: altura disponível - 60px (header selected) - 48px (botão) - 2rem (gap) */
  .products-available-card.expanded {
    min-height: 0;
    height: calc(100vh - 60px - 48px - 2rem - 168px);
    overflow: hidden;
  }
  .products-available-header {
    flex-shrink: 0;
    display: flex;
    height: 60px;
    min-height: 60px;
  }
  .products-available-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    max-height: 0;
  }
  .products-available-content.open {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
  .accordion-container {
    min-height: 0;
    overflow-y: auto;
  }
  /* Selected Products Section - sempre mostra header (60px) */
  .selected-products-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    max-height: 60px;
  }
  /* Quando expandido, ocupa espaço dinâmico: altura disponível - 60px (header available) - 48px (botão) - 2rem (gap) */
  .selected-products-section.expanded {
    min-height: 0;
    max-height: none;
    height: calc(100% - 60px - 48px - 2rem);
    overflow: hidden;
  }
  .selected-products-header {
    flex-shrink: 0;
    display: flex;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
  }
  .selected-products-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    max-height: 0;
  }
  .selected-products-content.open {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
  .selected-products-body {
    min-height: 0;
    overflow-y: auto;
  }
  /* Botão Salvar - sempre visível no final (48px) */
  .save-button-container {
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    height: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .save-button-wrapper {
    max-width: 100%;
  }
}
.save-button-wrapper {
  width: 100%;
  max-width: 100%;
}

/* Garantir que cards tenham mesma largura */
.products-available-card,
.selected-products-section {
  width: 100%;
}

/* Container principal com altura controlada */
.landing-page-products {
  display: flex;
  flex-direction: column;
}

.products-form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fixed-add-button .count-badge {
  background-color: #fff;
  color: #000;
  padding: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fixed-add-button button {
  background-color: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.fixed-add-button button:hover {
  opacity: 0.8;
}

.landing-page-product-page .btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  width: 100%;
  max-width: 190px;
}
.landing-page-product-page .btn-add-cart:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.landing-page-product-page .btn-add-cart-loader {
  display: inline-block;
}
.landing-page-product-page .hidden {
  display: none !important;
}
.landing-page-product-page .sku-action-header,
.landing-page-product-page .sku-action {
  width: 190px;
  text-align: right;
  padding-left: 16px;
}
.landing-page-product-page .sku-action-content {
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
}
.landing-page-product-page .sku-no-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fbeaea;
  color: #a81818;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Selected Products Section - Accordion */
.selected-products-section {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #fff;
}

.selected-products-header {
  padding: 1.25rem;
  background-color: #f9fafb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid #e5e7eb;
}

.selected-products-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.selected-products-content.open {
  max-height: 600px;
  overflow-y: auto;
}

.selected-products-body {
  padding: 1rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  /* Ocultar botão voltar no mobile */
  .back-button-mobile {
    display: none !important;
  }
  .accordion-header {
    padding: 1rem 0.75rem;
    font-size: 1.125rem;
  }
  .product-item {
    padding: 0.875rem 0.75rem;
  }
  .product-image {
    width: 50px;
    height: 50px;
  }
  .product-name {
    font-size: 1.4rem;
  }
  .product-ref {
    font-size: 1.2rem;
  }
  .fixed-add-button {
    padding: 1.25rem;
  }
  .fixed-add-button button {
    font-size: 1.4rem;
  }
  .fixed-add-button .count-badge {
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }
}
/* ========================================
   NOVO LAYOUT DE ÁRVORE (REF > SKUs)
   ======================================== */
/* Grupo de Produto (Referência) */
.product-group {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.product-group:hover {
  background-color: #fafafa;
}

.product-group.partial-selected {
  border-left: 3px solid #fbbf24;
}

.product-group.all-selected {
  border-left: 3px solid #22c55e;
  background-color: #f0fdf4;
}

.product-group.expanded {
  background-color: #f9fafb;
}

/* Header do Grupo de Produto */
.product-group-header {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  -webkit-tap-highlight-color: transparent;
}

.product-group-header .product-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.product-group-header .product-image {
  width: 70px;
  height: 70px;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-group-header .product-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.product-group-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.select-all-skus-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.select-all-skus-btn:hover {
  background: #e5e7eb;
}

.product-group-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #6b7280;
}

.product-group.expanded .product-group-icon {
  transform: rotate(180deg);
}

/* Badge de SKUs selecionados */
.selected-skus-badge {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.product-group.partial-selected .selected-skus-badge {
  background: #fbbf24;
  color: #78350f;
}

/* Conteúdo do Grupo (Lista de SKUs) */
.product-group-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fff;
}

.product-group.expanded .product-group-content {
  max-height: 2000px;
  overflow: visible;
  min-height: 4rem;
}

.products-container-loading {
  min-height: 6rem;
}

.skus-container {
  padding: 0 1rem 1rem 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Item de SKU */
.sku-item {
  padding: 0.875rem 1rem;
  margin-left: 70px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.sku-item:hover {
  background-color: #f9fafb;
}

.sku-item.selected {
  background-color: #eff6ff;
  border-left: 3px solid #3b82f6;
  margin-left: 67px;
}

.sku-item.already-added {
  background-color: #f3f4f6;
  opacity: 0.7;
  cursor: not-allowed;
}

.sku-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.sku-details {
  font-size: 1.4rem;
  color: #374151;
}

.sku-stock-info {
  font-size: 1.2rem;
  color: #6b7280;
}

.sku-stock-updating-hint {
  font-size: 1.1rem;
  color: #9ca3af;
  font-style: italic;
  margin-left: 0.25rem;
}

.sku-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sku-selection-indicator {
  min-width: 100px;
  display: flex;
  justify-content: flex-end;
}

.sku-selection-text {
  font-size: 1.2rem;
  color: #22c55e;
  font-weight: 500;
}

.sku-selection-text--muted {
  color: #9ca3af;
}

.sku-selection-plus {
  font-size: 1.8rem;
  font-weight: 700;
  color: #374151;
}

/* Mobile Optimizations para Árvore */
@media (max-width: 768px) {
  .product-group-header {
    padding: 0.875rem;
  }
  .product-group-header .product-image {
    width: 60px;
    height: 60px;
  }
  .product-group-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  .select-all-skus-btn {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }
  .sku-item {
    margin-left: 0;
    padding: 0.75rem;
  }
  .sku-item.selected {
    margin-left: 0;
  }
  .sku-details {
    font-size: 1.3rem;
  }
  .sku-stock-info {
    font-size: 1.1rem;
  }
}
.page-grid .product-list {
  margin-bottom: 50px;
}
.page-grid .product-list > h2 {
  grid-column: 1/span 5;
}
.page-grid .loader-product {
  animation: spin 4s linear infinite;
  margin: 20px auto;
  display: block;
  z-index: -1;
}
@media screen and (max-width: 990px) {
  .page-grid .loader-product {
    margin: 20px auto 70px;
  }
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.text--right {
  text-align: right;
}
