/**
 * Estilos da Calculadora de Espaço Stokarea - MODERNIZADO
 * 
 * @package Stokarea_Calculadora
 * @since 2.0.0
 */

/* Reset e variables CSS - MOBILE OPTIMIZED */
:root {
  --stokarea-primary: #4f46e5; /* Indigo mais forte */
  --stokarea-secondary: #3b82f6; /* Azul mais vivo */
  --stokarea-accent: #10b981; /* Verde esmeralda para sucesso */
  --stokarea-danger: #ef4444; /* Vermelho para alertas */
  --stokarea-background: #f8fafc; /* Cinza muito claro */
  --stokarea-border: #e2e8f0;
  --stokarea-text-primary: #1e293b;
  --stokarea-text-secondary: #64748b;
  --stokarea-radius: 12px;
  --stokarea-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --stokarea-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --stokarea-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --stokarea-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* iOS Safe Area Insets */
  --safe-area-inset-top: env(safe-area-inset-top);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
  --safe-area-inset-left: env(safe-area-inset-left);
  --safe-area-inset-right: env(safe-area-inset-right);
}

/* Herdar fontes E tamanhos globais do WordPress/tema */
.storage-calculator,
.storage-calculator * {
  font-family: inherit !important;
}

/* Headings herdam tamanho do tema */
.storage-calculator h1,
.storage-calculator h2,
.storage-calculator h3,
.storage-calculator h4,
.storage-calculator h5,
.storage-calculator h6 {
  font-family: inherit !important;
  font-size: inherit;
}

/* Parágrafos herdam tamanho do tema */
.storage-calculator p {
  font-family: inherit !important;
  font-size: inherit;
}

/* Outros elementos de texto */
.storage-calculator label,
.storage-calculator a,
.storage-calculator button,
.storage-calculator input,
.storage-calculator select {
  font-family: inherit !important;
}

/* Suporte a modo escuro automático */
@media (prefers-color-scheme: dark) {
  :root {
    --stokarea-background: #0f172a;
    --stokarea-border: #1e293b;
    --stokarea-text-primary: #f1f5f9;
    --stokarea-text-secondary: #94a3b8;
  }
}

/* Hardware acceleration global */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Otimizações de scroll suave */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  overscroll-behavior-y: contain;
}

.storage-calculator {
  font-family: var(--stokarea-font-family);
  background-color: var(--stokarea-background);
  color: var(--stokarea-text-primary);
  border-radius: var(--stokarea-radius);
  padding: clamp(16px, 4vw, 32px);
  max-width: 1200px;
  margin: 40px auto;
  border: 1px solid var(--stokarea-border);
  box-shadow: var(--stokarea-shadow-lg);
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

.storage-calculator *,
.storage-calculator *::before,
.storage-calculator *::after {
  box-sizing: border-box;
}

/* Loading state */
.storage-calculator.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.calculator-header {
  text-align: center;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--stokarea-border);
  padding-bottom: 24px;
  word-wrap: break-word;
}

.calculator-header h1,
.calculator-header h2 {
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(
    45deg,
    var(--stokarea-primary),
    var(--stokarea-secondary)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.2;
}

.calculator-header p {
  color: var(--stokarea-text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.calculator-body {
  padding: 40px;
}

/* Controles Globais */
.global-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--stokarea-border);
}

.collapse-control-btn {
  background: linear-gradient(135deg, var(--stokarea-light), #ffffff);
  border: 2px solid var(--stokarea-border);
  color: var(--stokarea-dark);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--stokarea-transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.collapse-control-btn:hover {
  background: linear-gradient(
    135deg,
    var(--stokarea-primary),
    var(--stokarea-secondary)
  );
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
}

.category-section {
  margin-bottom: 30px;
  border: 1px solid var(--stokarea-border);
  border-radius: var(--stokarea-radius);
  padding: 30px;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  transition: var(--stokarea-transition);
  position: relative;
}

.category-section:hover {
  border-color: var(--stokarea-primary);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.category-header {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: var(--stokarea-radius);
  background: #ffffff;
  border: 1px solid var(--stokarea-border);
  cursor: pointer;
  transition: var(--stokarea-transition);
  margin-bottom: 16px;
  box-shadow: var(--stokarea-shadow-sm);
  gap: 8px;
  word-wrap: break-word;
  flex-wrap: wrap;
}

.category-header:hover {
  border-color: var(--stokarea-primary);
  box-shadow: var(--stokarea-shadow-md);
  transform: translateY(-2px);
}

.category-header .category-icon {
  font-size: 20px;
  margin-right: 12px;
}

.category-header .collapse-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.category-section:not(.collapsed) .collapse-arrow {
  transform: rotate(180deg);
}

.category-section.collapsed .category-content {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.category-section.collapsed .category-header {
  margin-bottom: 0;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.item-selector {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  padding: 16px;
  border: 1px solid var(--stokarea-border);
  border-radius: var(--stokarea-radius);
  background: white;
  transition: var(--stokarea-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  box-shadow: var(--stokarea-shadow-sm);
  word-wrap: break-word;
}

.item-selector::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.item-selector:hover::before {
  left: 100%;
}

.item-selector:hover {
  transform: translateY(-4px);
  box-shadow: var(--stokarea-shadow-md);
  border-color: var(--stokarea-primary);
}

.item-selector.has-quantity {
  border-color: var(--stokarea-primary);
  background: linear-gradient(135deg, white, #f7f7ff);
}

.item-info {
  display: flex;
  align-items: flex-start;
  flex: 1;
  margin-bottom: 16px;
  min-width: 0;
  overflow: hidden;
  gap: 12px;
}

.item-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--stokarea-light), #ffffff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--stokarea-border);
  transition: var(--stokarea-transition);
  flex-shrink: 0;
}

.item-selector:hover .item-icon {
  background: linear-gradient(
    135deg,
    var(--stokarea-primary),
    var(--stokarea-secondary)
  );
  color: white;
  transform: scale(1.1);
}

.item-details {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.item-name {
  font-weight: 600;
  margin-bottom: 3px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.item-space {
  font-size: 12px;
  color: #666;
  word-wrap: break-word;
  line-height: 1.2;
}

.quantity-controls {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: auto;
  padding: 8px;
  background: var(--stokarea-background);
  border-radius: 10px;
  border: 1px solid var(--stokarea-border);
}

.quantity-btn {
  width: 38px !important;
  height: 38px !important;
  border: none !important;
  background: white !important;
  color: var(--stokarea-primary) !important;
  border-radius: 8px !important;
  box-shadow: var(--stokarea-shadow-sm);
}

.quantity-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--stokarea-primary);
  border-radius: 50%;
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.quantity-btn:hover::before {
  width: 120%;
  height: 120%;
}

.quantity-btn:hover {
  color: white;
  border-color: var(--stokarea-primary);
  transform: scale(1.05);
}

.quantity-btn span {
  position: relative;
  z-index: 1;
}

.quantity-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.quantity-btn:disabled:hover::before {
  width: 0;
  height: 0;
}

.quantity-display {
  min-width: 45px !important;
  font-weight: 600 !important;
  color: var(--stokarea-text-primary) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* GARANTIR VISIBILIDADE DOS BOTÕES DE QUANTIDADE EM TODAS AS RESOLUÇÕES */
.quantity-controls {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.quantity-btn {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  /* Área de toque mínima para mobile */
  min-width: 36px !important;
  min-height: 36px !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.quantity-display {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Garantir que item-selector mantenha layout flexível */
.item-selector {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.furniture-option {
  border: 2px solid var(--stokarea-border);
  border-radius: var(--stokarea-radius);
  padding: 25px;
  cursor: pointer;
  transition: var(--stokarea-transition);
  background: white;
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
}

.furniture-option p,
.furniture-option div,
.furniture-option strong {
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.furniture-option::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.furniture-option:hover::before {
  left: 100%;
}

.furniture-option:hover {
  border-color: var(--stokarea-primary);
  background: linear-gradient(145deg, #ffffff, #f8f9ff);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.furniture-option.selected {
  border-color: var(--stokarea-success);
  background: linear-gradient(145deg, #ffffff, #f0fff4);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
  transform: translateY(-1px);
}

.furniture-option.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 15px;
  color: var(--stokarea-success);
  font-size: 20px;
  font-weight: bold;
}

.calculate-section {
  text-align: center;
  margin: 30px 0;
}

.calculate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(
    45deg,
    var(--stokarea-primary),
    var(--stokarea-secondary)
  );
  border: none;
  border-radius: var(--stokarea-radius);
  cursor: pointer;
  transition: var(--stokarea-transition);
  box-shadow: var(--stokarea-shadow-md);
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--stokarea-shadow-lg);
}

.calculate-btn:active {
  transform: translateY(-2px) scale(1.01);
}

.calculate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: #ccc;
}

.calculate-btn:disabled:hover {
  transform: none;
  box-shadow: var(--stokarea-shadow-md);
}

.results-section {
  margin-top: 32px;
  border-radius: var(--stokarea-radius);
  border: 1px solid var(--stokarea-border);
  box-shadow: var(--stokarea-shadow-md);
}

.results-section.show {
  display: block;
  animation: slideUp 0.5s ease;
}

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

.space-summary {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: center;
}

.total-space {
  font-size: 32px;
  font-weight: 700;
  color: var(--stokarea-text-primary);
  margin-bottom: 10px;
}

.space-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.space-item {
  background: #f8f9ff;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.space-value {
  font-size: 20px;
  font-weight: 600;
  color: #667eea;
}

.space-label {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

.selected-items {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: var(--stokarea-radius);
  padding: 25px;
  margin-bottom: 25px;
  border: 2px solid var(--stokarea-border);
  box-shadow: var(--stokarea-shadow);
}

.selected-items h4 {
  margin: 0 0 20px 0;
  color: var(--stokarea-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
}

.selected-items h4::before {
  content: "📋";
  margin-right: 10px;
}

.selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--stokarea-border);
  background: white;
  margin-bottom: 8px;
  border-radius: 8px;
  transition: var(--stokarea-transition);
  border-left: 4px solid var(--stokarea-primary);
  gap: 12px;
  overflow: hidden;
}

.selected-item:hover {
  background: var(--stokarea-light);
  transform: translateX(5px);
}

.selected-item:last-child {
  border-bottom: 1px solid var(--stokarea-border);
  margin-bottom: 0;
}

.selected-item span:first-child {
  font-weight: 600;
  color: var(--stokarea-dark);
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.selected-item span:last-child {
  font-weight: 700;
  color: var(--stokarea-primary);
  font-size: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.selected-item em {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
  font-style: italic;
  word-wrap: break-word;
  line-height: 1.3;
}

.box-recommendations {
  margin-top: 25px;
}

/* Boxes Disponíveis */
.available-boxes-section {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: var(--stokarea-radius);
  border: 2px solid var(--stokarea-border);
  box-shadow: var(--stokarea-shadow);
}

.location-selector {
  margin-bottom: 25px;
  text-align: center;
}

.location-selector h4 {
  margin: 0 0 15px 0;
  color: var(--stokarea-dark);
  font-weight: 700;
}

.location-selector select {
  padding: 12px 20px;
  border: 2px solid var(--stokarea-border);
  border-radius: var(--stokarea-radius);
  background: white;
  font-size: 16px;
  font-weight: 600;
  color: var(--stokarea-dark);
  min-width: 250px;
  transition: var(--stokarea-transition);
}

.location-selector select:focus {
  outline: none;
  border-color: var(--stokarea-primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.available-box-card {
  background: white;
  border: 2px solid var(--stokarea-border);
  border-radius: var(--stokarea-radius);
  padding: 20px;
  transition: var(--stokarea-transition);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
}

.available-box-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.available-box-card:hover::before {
  left: 100%;
}

.available-box-card:hover {
  border-color: var(--stokarea-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.available-box-card.recommended {
  border-color: var(--stokarea-success);
  background: linear-gradient(145deg, #ffffff, #f0fff4);
}

.available-box-card.recommended::after {
  content: "⭐ RECOMENDADO";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--stokarea-success);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}

.box-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.box-card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--stokarea-primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.box-card-size {
  font-size: 14px;
  color: #666;
  background: var(--stokarea-light);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.box-card-details {
  margin-bottom: 15px;
  word-wrap: break-word;
  line-height: 1.4;
}

.box-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.box-detail-label {
  color: #666;
}

.box-detail-value {
  font-weight: 600;
  color: var(--stokarea-dark);
}

.box-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--stokarea-primary);
}

.box-rent-button {
  width: 100%;
  background: linear-gradient(135deg, #7b3f98, #6a2f85);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--stokarea-radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--stokarea-transition);
  text-decoration: none;
  display: block;
  text-align: center;
  margin-top: 15px;
}

.box-rent-button:hover {
  background: linear-gradient(135deg, #6a2f85, #5a1f75);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 63, 152, 0.3);
  color: white;
  text-decoration: none;
}

.no-boxes-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

.view-all-boxes-btn {
  background: var(--stokarea-light);
  color: var(--stokarea-primary);
  border: 2px solid var(--stokarea-primary);
  padding: 12px 24px;
  border-radius: var(--stokarea-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--stokarea-transition);
  text-decoration: none;
  display: inline-block;
  margin-top: 15px;
}

.view-all-boxes-btn:hover {
  background: var(--stokarea-primary);
  color: white;
  text-decoration: none;
}

.box-recommendation {
  background: white;
  border: 2px solid #e1e8ff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  position: relative;
}

.box-recommendation.recommended {
  border-color: #28a745;
  background: #f8fff9;
}

.recommended-badge {
  position: absolute;
  top: -8px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.box-size {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
}

.box-area {
  font-size: 18px;
  font-weight: 600;
  color: #667eea;
}

.box-details {
  color: #666;
  margin-bottom: 15px;
}

.box-capacity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f4ff;
  padding: 10px 15px;
  border-radius: 6px;
}

.capacity-bar {
  flex: 1;
  height: 8px;
  background: #e1e5e9;
  border-radius: 4px;
  margin: 0 15px;
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  transition: width 0.3s ease;
}

.contact-section {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid #e1e8ff;
}

.cta-button {
  display: inline-block;
  background: #28a745;
  color: white;
  padding: 14px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  margin: 5px;
}

.cta-button:hover {
  background: #218838;
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
  .storage-calculator {
    margin: 4px;
    border-radius: 12px;
    padding: 8px;
    width: calc(100% - 8px);
    max-width: 100%;
    overflow-x: hidden;
  }

  .calculator-body {
    padding: 8px;
    overflow-x: hidden;
  }

  .calculator-header {
    padding: 16px 8px;
    overflow: hidden;
    margin-bottom: 16px;
  }

  .calculator-header h2 {
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    margin-bottom: 6px !important;
  }

  .calculator-header p {
    line-height: 1.4 !important;
    padding: 0;
  }

  .category-section {
    overflow: hidden;
    margin-bottom: 16px;
    padding: 12px 8px !important;
  }

  .items-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Botões de quantidade MAIORES e mais fáceis de tocar */
  .quantity-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
    border-radius: 12px !important;
    min-width: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease !important;
  }
  
  .quantity-btn:active {
    transform: scale(0.9) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }

  .quantity-display {
    min-width: 50px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
  }
  
  /* Animação quando o valor muda */
  .quantity-display.value-changing {
    transform: scale(1.2);
    color: var(--stokarea-primary);
  }

  .quantity-controls {
    gap: 12px !important;
  }
  
  /* Animação de pulso quando item é adicionado */
  .item-selector.item-pulse {
    animation: itemPulse 0.4s ease-out;
  }
  
  @keyframes itemPulse {
    0% {
      transform: scale(1);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
      transform: scale(1.02);
      box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
  }

  /* Itens maiores e mais espaçados */
  .item-selector {
    padding: 16px !important;
    min-height: 70px;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .item-name {
    font-size: 16px !important;
    font-weight: 600 !important;
  }

  .item-space {
    font-size: 13px !important;
  }

  .item-icon {
    font-size: 28px !important;
    min-width: 40px !important;
  }

  /* Categorias mais touch-friendly */
  .category-header {
    padding: 12px 10px !important;
    min-height: 50px;
    touch-action: manipulation;
  }

  .category-icon {
    font-size: 22px !important;
    margin-right: 10px !important;
  }

  /* Controles globais compactos */
  .global-controls {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .collapse-control-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .space-breakdown {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cta-button {
    display: block;
    margin: 10px 0;
  }

  .box-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .box-capacity {
    flex-direction: column;
    gap: 10px;
  }

  .capacity-bar {
    margin: 0;
    width: 100%;
  }

  /* Botão calcular MAIOR e fixo no bottom em mobile */
  .calculate-btn {
    position: sticky !important;
    bottom: 70px;
    z-index: 999;
    width: calc(100% - 32px) !important;
    margin: 20px 16px !important;
    padding: 18px 24px !important;
    font-size: 18px !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4) !important;
  }

  /* FIX: Prevenir overflow de texto nas cards */
  .item-selector {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 10px 8px !important;
    min-height: 60px !important;
  }

  .item-info {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
  }

  .item-icon {
    flex-shrink: 0 !important;
  }

  .item-details {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .item-name {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    max-width: 100% !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
  }

  .item-space {
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.2 !important;
  }

  .item-dimensions {
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 10px !important;
  }

  /* Fix para categorias */
  .category-header {
    word-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.4 !important;
  }

  /* Fix para boxes disponíveis */
  .simple-box-card,
  .available-box-card {
    overflow: hidden !important;
  }

  .box-name,
  .box-card-name {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.3 !important;
  }

  .box-location,
  .box-details {
    word-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.4 !important;
  }

  /* Opções de móveis - fix overflow e layout */
  .furniture-option {
    overflow: hidden !important;
    word-wrap: break-word !important;
    padding: 12px !important;
  }

  .furniture-option > div {
    margin-bottom: 8px !important;
  }

  .furniture-option p,
  .furniture-option div {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
    margin: 4px 0 !important;
  }

  .furniture-option strong {
    display: block;
    margin-bottom: 4px;
  }

  .furniture-option div[style*="margin-top"] {
    margin-top: 8px !important;
    font-size: 11px !important;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.5);
  }
}

@media (max-width: 480px) {
  .calculator-header {
    padding: 16px;
  }

  .calculator-header h2 {
    line-height: 1.3;
  }

  .calculator-body {
    padding: 12px;
  }

  .category-section {
    padding: 12px;
    margin-bottom: 10px;
  }

  /* Botões AINDA MAIORES em telas pequenas */
  .quantity-btn {
    width: 52px !important;
    height: 52px !important;
    font-size: 26px !important;
  }

  .quantity-display {
    min-width: 55px !important;
    font-size: 22px !important;
  }

  .calculate-btn {
    padding: 20px 24px !important;
    font-size: 19px !important;
    bottom: 60px !important;
  }

  .total-space {
    font-size: 32px;
  }

  .global-controls {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
  }

  .collapse-control-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 15px;
  }

  .category-header {
    padding: 16px 14px;
    font-size: 16px;
  }

  /* Opções de móveis maiores */
  .furniture-option {
    padding: 16px !important;
    min-height: 110px;
  }

  /* Ações rápidas em coluna */
  .quick-actions-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .quick-action-btn,
  .share-action-btn {
    width: 100% !important;
    justify-content: center;
    padding: 14px !important;
    font-size: 15px !important;
  }
}

/* Estilos para agrupamento por tamanho */
.size-category-header {
  background: var(--stokarea-primary);
  color: white !important;
  padding: 12px 20px;
  border-radius: 8px;
  margin: 20px 0 15px 0;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 3px 12px rgba(123, 63, 152, 0.3);
  grid-column: 1 / -1;
}

.location-group-header {
  background: #f8f9fa;
  color: #666 !important;
  padding: 8px 15px;
  border-left: 4px solid var(--stokarea-primary);
  margin: 15px 0 10px 0;
  border-radius: 0 6px 6px 0;
  font-weight: 600;
  font-size: 14px;
  grid-column: 1 / -1;
}

/* Melhorar espaçamento entre grupos */
.boxes-grid > div:first-child {
  margin-top: 0;
}

/* Interface Simplificada das Boxes */
.simple-box-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  word-wrap: break-word;
}

.simple-box-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.simple-box-card.recommended {
  border-color: var(--stokarea-primary);
  background: linear-gradient(145deg, #fff, #f0f8ff);
}

.box-main-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.box-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--stokarea-dark);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.3;
}

.box-area {
  font-size: 14px;
  background: var(--stokarea-light);
  color: var(--stokarea-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.box-status {
  background: var(--stokarea-primary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin: -4px 0 4px 0;
  word-wrap: break-word;
  line-height: 1.3;
}

.box-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
  overflow: hidden;
}

.box-location {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}

.box-utilization {
  font-size: 14px;
  color: #666;
  word-wrap: break-word;
  line-height: 1.4;
}

.box-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--stokarea-primary);
  text-align: center;
  margin: 8px 0;
  word-wrap: break-word;
  line-height: 1.3;
}

.simple-rent-btn {
  background: linear-gradient(135deg, #7b3f98, #6a2f85);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: block;
}

.simple-rent-btn:hover {
  background: linear-gradient(135deg, #6a2f85, #5a1f75);
  transform: scale(1.02);
  color: white;
  text-decoration: none;
}

.show-more-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.show-more-btn {
  background: var(--stokarea-border);
  color: var(--stokarea-dark);
  border: 2px solid var(--stokarea-border);
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.show-more-btn:hover {
  background: var(--stokarea-primary);
  color: white;
  border-color: var(--stokarea-primary);
}

/* Títulos das opções */
.option-header {
  background: linear-gradient(135deg, var(--stokarea-primary), #6a2f85);
  color: white;
  padding: 10px 20px;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-top: 20px;
  margin-bottom: -12px;
  position: relative;
  z-index: 2;
}

.option-header:first-child {
  margin-top: 0;
}

/* Destaque para melhor opção */
.simple-box-card.best-option {
  border: 3px solid var(--stokarea-primary);
  box-shadow: 0 4px 20px rgba(123, 63, 152, 0.2);
}

.simple-box-card.alternative-option {
  border: 2px solid #ddd;
  opacity: 0.95;
}

/* Botão pequeno e discreto */
.show-more-btn.small {
  padding: 8px 20px;
  font-size: 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #6c757d;
  margin-top: 10px;
}

.show-more-btn.small:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #adb5bd;
}

/* Layout mais compacto para 2 opções */
.boxes-grid {
  gap: 0 20px;
}

@media (min-width: 768px) {
  .boxes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .option-header {
    margin-bottom: -8px;
  }
}

/* Barra Flutuante da Calculadora */
.calculator-floating-bar {
  background: linear-gradient(
    135deg,
    var(--stokarea-primary),
    var(--stokarea-secondary)
  );
  box-shadow: var(--stokarea-shadow-lg);
  position: relative;
  overflow: visible;
}

.calculator-floating-bar:hover {
  transform: translateY(-8px) scale(1.05) !important;
  box-shadow:
    0 20px 60px rgba(74, 144, 226, 0.4),
    0 8px 25px rgba(0, 0, 0, 0.15) !important;
  background: linear-gradient(135deg, var(--stokarea-primary) 0%, var(--stokarea-secondary) 100%) !important;
  animation-play-state: paused !important;
}

.calculator-floating-bar:active {
  transform: translateY(-4px) scale(0.96) !important;
}

.floating-icon {
  font-size: 22px !important;
  margin-right: 10px !important;
  animation: bounce 2s infinite !important;
}

.floating-text {
  font-weight: 800 !important;
  font-size: 15px !important;
}

/* Badge de contador no floating button */
.floating-bar-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  animation: badgePulse 2s infinite;
  border: 3px solid white;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes floating-attention {
  0%,
  70%,
  100% {
    box-shadow:
      0 12px 40px rgba(74, 144, 226, 0.25),
      0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  35% {
    box-shadow:
      0 16px 50px rgba(74, 144, 226, 0.4),
      0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

.floating-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  gap: 20px;
}

.floating-bar-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.floating-bar-text strong {
  font-size: 16px;
  font-weight: 700;
}

.floating-bar-text span {
  font-size: 12px;
  opacity: 0.9;
}

.floating-bar-btn {
  background: white;
  color: var(--stokarea-primary);
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.floating-bar-btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  .floating-bar-content {
    padding: 10px 15px;
    gap: 15px;
  }

  .floating-bar-text strong {
    font-size: 14px;
  }

  .floating-bar-text span {
    font-size: 11px;
  }

  .floating-bar-btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .floating-bar-content {
    flex-direction: column;
    gap: 8px;
    padding: 8px 15px;
    text-align: center;
  }

  .floating-bar-text {
    gap: 0;
  }
}

/* Estilos para dimensões dos itens */
.item-dimensions {
  font-size: 10px;
  color: #666;
  margin-top: 1px;
  font-style: italic;
  line-height: 1.2;
}

.item-dimensions small {
  opacity: 0.8;
}

/* Melhorias de responsividade para tablets */
@media (max-width: 768px) {
  .storage-calculator {
    margin: 15px 10px;
    border-radius: 20px;
  }

  .calculator-body {
    padding: 25px 20px;
  }

  .items-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .item-selector {
    padding: 16px;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    min-height: 110px;
  }

  .item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
  }

  .item-icon {
    font-size: 24px !important;
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0;
  }

  .item-details {
    flex: 1;
    min-width: 0;
  }

  .item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
  }

  .item-space {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
  }

  .item-dimensions {
    font-size: 10px;
    color: #999;
  }

  .quantity-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: auto;
    padding: 10px 8px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    flex-shrink: 0;
  }

  .quantity-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    border: 2px solid var(--stokarea-primary) !important;
    background: white !important;
    color: var(--stokarea-primary) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .quantity-btn:hover {
    background: var(--stokarea-primary) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
  }

  .quantity-display {
    font-size: 18px !important;
    font-weight: 700 !important;
    min-width: 45px !important;
    text-align: center !important;
    background: white !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    border: 2px solid var(--stokarea-primary) !important;
    color: var(--stokarea-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

/* Mobile Smartphones */
@media (max-width: 480px) {
  .storage-calculator {
    margin: 8px;
    border-radius: 16px;
    padding: 0;
  }

  .calculator-header {
    padding: 25px 20px;
  }

  .calculator-header h2 {
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .calculator-header p {
    line-height: 1.5;
  }

  .calculator-body {
    padding: 20px 15px;
  }

  .category-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .category-header {
    padding: 12px 15px;
    font-size: 16px;
    margin-bottom: 15px;
  }

  .items-grid {
    gap: 10px;
  }

  .item-selector {
    padding: 12px !important;
    min-height: 100px;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }

  .item-info {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .item-icon {
    font-size: 22px !important;
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
  }

  .item-details {
    flex: 1;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .item-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 3px !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  .item-space {
    font-size: 11px !important;
    color: #666;
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
  }

  .item-dimensions {
    font-size: 9px !important;
    color: #999;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
  }

  .quantity-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: auto;
    padding: 8px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    flex-shrink: 0;
  }

  .quantity-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    border: 2px solid var(--stokarea-primary) !important;
    background: white !important;
    color: var(--stokarea-primary) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
  }

  .quantity-btn:hover,
  .quantity-btn:active {
    background: var(--stokarea-primary) !important;
    color: white !important;
    transform: scale(1.05);
  }

  .quantity-display {
    font-size: 16px !important;
    font-weight: 700 !important;
    min-width: 40px !important;
    text-align: center !important;
    background: white !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    border: 2px solid var(--stokarea-primary) !important;
    color: var(--stokarea-primary) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .calculate-btn {
    font-size: 16px;
    padding: 16px 30px;
    width: 100%;
    margin: 15px 0;
  }

  .box-recommendation {
    padding: 15px;
  }

  .simple-box-card {
    padding: 15px;
  }

  .floating-bar-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Botão flutuante responsivo para mobile */
  .calculator-floating-bar {
    bottom: 20px !important;
    right: 20px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    min-width: 180px !important;
    display: flex !important;
    position: fixed !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    border-radius: 50px !important;
    box-shadow:
      0 15px 35px rgba(74, 144, 226, 0.3),
      0 5px 15px rgba(0, 0, 0, 0.2) !important;
  }

  /* Garantir que controles de quantidade sempre aparecem */
  .item-selector .quantity-controls {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
  }

  /* Força a exibição dos botões + e - sempre em smartphones */
  .quantity-controls,
  .quantity-controls *,
  .quantity-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Área de toque adequada para mobile */
  .quantity-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Opções de móveis otimizadas para mobile */
  .furniture-option {
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 12px;
    min-height: 70px;
    display: flex;
    align-items: center;
    text-align: left;
  }
}

/* Mobile Extra Pequeno */
@media (max-width: 360px) {
  .storage-calculator {
    margin: 5px;
    padding: 0;
  }

  .calculator-body {
    padding: 15px 10px;
  }

  .category-section {
    padding: 15px 10px;
    margin-bottom: 15px;
  }

  .item-selector {
    padding: 12px;
    min-height: 90px;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
  }

  .item-info {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .item-icon {
    font-size: 20px !important;
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
  }

  .item-details {
    flex: 1;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .item-name {
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    white-space: normal !important;
    max-width: 100% !important;
  }

  .item-space {
    font-size: 10px !important;
    color: #666;
    margin-bottom: 1px !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
  }

  .item-dimensions {
    font-size: 8px !important;
    color: #999;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
    white-space: normal !important;
  }

  .quantity-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: auto;
    padding: 6px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    flex-shrink: 0;
  }

  .quantity-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    border: 2px solid var(--stokarea-primary) !important;
    background: white !important;
    color: var(--stokarea-primary) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
  }

  .quantity-btn:hover,
  .quantity-btn:active {
    background: var(--stokarea-primary) !important;
    color: white !important;
    transform: scale(1.05);
  }

  .quantity-display {
    font-size: 14px !important;
    font-weight: 700 !important;
    min-width: 35px !important;
    text-align: center !important;
    background: white !important;
    border-radius: 6px !important;
    padding: 5px 8px !important;
    border: 2px solid var(--stokarea-primary) !important;
    color: var(--stokarea-primary) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .calculate-btn {
    width: 100%;
    margin: 15px 0;
    font-size: 15px;
    padding: 14px 20px;
  }

  /* Botão flutuante extra pequeno */
  .calculator-floating-bar {
    bottom: 15px !important;
    right: 15px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    min-width: 150px !important;
    border-radius: 40px !important;
    display: flex !important;
    position: fixed !important;
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    box-shadow:
      0 12px 30px rgba(74, 144, 226, 0.3),
      0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  .calculator-floating-bar:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow:
      0 15px 35px rgba(74, 144, 226, 0.4),
      0 6px 15px rgba(0, 0, 0, 0.2) !important;
  }

  /* Garantir visibilidade dos controles */
  .item-selector .quantity-controls {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
  }

  /* Opções de móveis melhoradas para mobile */
  .furniture-option {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    min-height: 60px;
    display: flex;
    align-items: center;
  }

  /* Controles globais melhorados */
  .global-controls {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .collapse-control-btn {
    width: 100%;
    padding: 12px;
    text-align: center;
    justify-content: center;
  }

  /* Força a exibição dos botões + e - sempre */
  .quantity-controls,
  .quantity-controls *,
  .quantity-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Área de toque melhorada para mobile */
  .quantity-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Melhor feedback visual para toque */
  .quantity-btn:active {
    background: var(--stokarea-primary) !important;
    color: white !important;
    transform: scale(0.95) !important;
  }

  .item-selector .quantity-btn {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
  }
}

/* Media query para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .item-selector {
    padding: 15px;
  }

  .simple-box-card {
    padding: 20px;
  }

  .box-recommendation {
    padding: 20px;
  }
}

/* Media query para ecrãs grandes */
@media (min-width: 1200px) {
  .storage-calculator {
    max-width: 1000px;
    margin: 0 auto;
  }

  .items-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .simple-box-card {
    padding: 25px;
  }
}

/* ===== UX MELHORADA - DESIGN MODERNO ===== */

/* Override do design dos itens para melhor UX */
.storage-calculator .item-selector {
  background: linear-gradient(135deg, #ffffff 0%, #fbfcff 100%) !important;
  border: 2px solid rgba(74, 144, 226, 0.08) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.storage-calculator .item-selector:hover {
  border-color: rgba(74, 144, 226, 0.3) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5ff 100%) !important;
  box-shadow:
    0 8px 25px rgba(74, 144, 226, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-4px) !important;
}

.storage-calculator .item-selector.has-quantity {
  border-color: rgba(34, 197, 94, 0.3) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
}

.storage-calculator .item-icon {
  font-size: 28px !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  border-radius: 16px !important;
  margin-right: 20px !important;
  transition: all 0.3s ease !important;
}

.storage-calculator .item-selector:hover .item-icon {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important;
}

.storage-calculator .item-name {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin-bottom: 4px !important;
}

.storage-calculator .item-space {
  font-size: 14px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.storage-calculator .item-dimensions {
  font-size: 12px !important;
  color: #94a3b8 !important;
  font-style: normal !important;
  margin-top: 2px !important;
}

.storage-calculator .quantity-controls {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.storage-calculator .quantity-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 2px solid rgba(74, 144, 226, 0.1) !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%) !important;
  color: #4a90e2 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.storage-calculator .quantity-btn:hover {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%) !important;
  color: white !important;
  transform: scale(1.05) !important;
  border-color: #4a90e2 !important;
}

.storage-calculator .quantity-display {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  min-width: 40px !important;
  text-align: center !important;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
}

/* =================================================
   STICKY SUMMARY DRAWER - RESUMO FIXO MOBILE
   ================================================= */

.sticky-summary-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    var(--stokarea-primary) 0%,
    var(--stokarea-secondary) 100%
  );
  color: white;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.sticky-summary-drawer.show {
  transform: translateY(0);
  animation: slideUpBounce 0.5s ease-out;
}

@keyframes slideUpBounce {
  0% {
    transform: translateY(100%);
  }
  60% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.drawer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.summary-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: white;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 400;
  color: white;
}

.stat-divider {
  font-size: 16px;
  opacity: 0.6;
  margin: 0 4px;
  color: white;
}

.drawer-cta-btn {
  background: white;
  color: var(--stokarea-primary);
  border: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-cta-btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.drawer-cta-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsivo para diferentes tamanhos */
@media (max-width: 480px) {
  .drawer-content {
    padding: 14px 16px;
  }

  .stat-number {
    font-size: 18px;
  }

  .stat-label {
    font-size: 11px;
  }

  .drawer-cta-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .drawer-content {
    padding: 12px 14px;
    flex-direction: column;
    gap: 10px;
  }

  .summary-stats {
    gap: 8px;
    order: 2;
  }

  .stat-number {
    font-size: 16px;
  }

  .drawer-cta-btn {
    padding: 8px 12px;
    font-size: 12px;
    order: 1;
    width: 100%;
  }
}

/* Ocultar em desktop */
@media (min-width: 769px) {
  .sticky-summary-drawer {
    display: none !important;
  }
}

/* =================================================
   AÇÕES RÁPIDAS
   ================================================= */

.quick-actions-section {
  margin: 20px 0 15px 0;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 82, 82, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.quick-actions-section.show {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.quick-actions-header {
  margin-bottom: 12px;
  text-align: center;
}

.actions-title {
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.quick-actions-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-action-btn {
  padding: 8px 12px;
  border: 2px solid #ff5252;
  background: white;
  color: #ff5252;
  border-radius: 18px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(255, 82, 82, 0.1);
}

.quick-action-btn:hover {
  background: #ff5252;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 82, 82, 0.25);
}

.quick-action-btn:active {
  transform: translateY(0);
}

.quick-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.share-action-btn {
  padding: 8px 12px;
  border: 2px solid #4caf50;
  background: white;
  color: #4caf50;
  border-radius: 18px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.1);
}

.share-action-btn:hover {
  background: #4caf50;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.share-action-btn:active {
  transform: translateY(0);
}

/* Responsivo para ações rápidas */
@media (max-width: 768px) {
  .quick-actions-section {
    margin: 16px 0 12px 0;
    padding: 12px;
  }

  .quick-actions-buttons {
    gap: 6px;
  }

  .quick-action-btn {
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .quick-actions-buttons {
    justify-content: stretch;
  }

  .quick-action-btn {
    flex: 1;
    min-width: 0;
    font-size: 10px;
    padding: 6px 8px;
  }
}

/* =================================================
   BARRA DE PESQUISA E PRESETS
   ================================================= */

.search-presets-section {
  margin: 25px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.search-container {
  margin-bottom: 16px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border: 2px solid var(--stokarea-border);
  border-radius: 25px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  outline: none;
  border-color: var(--stokarea-primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.search-icon {
  position: absolute;
  left: 18px;
  font-size: 18px;
  color: var(--stokarea-primary);
  pointer-events: none;
}

.presets-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preset-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.presets-buttons {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.presets-buttons::-webkit-scrollbar {
  display: none;
}

.preset-btn {
  padding: 10px 16px;
  border: 2px solid var(--stokarea-primary);
  background: white;
  color: var(--stokarea-primary);
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.preset-btn:hover {
  background: var(--stokarea-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

/* Item destacado na pesquisa */
.item-selector.search-highlighted {
  border-color: var(--stokarea-primary) !important;
  background: rgba(102, 126, 234, 0.05) !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
  transform: scale(1.02);
  z-index: 10;
  position: relative;
}

.item-selector.search-hidden {
  display: none !important;
}

/* Responsivo */
@media (max-width: 768px) {
  .search-presets-section {
    margin: 16px 0;
    padding: 12px;
  }

  .search-input {
    padding: 10px 12px 10px 40px;
    font-size: 14px;
  }

  .search-icon {
    left: 12px;
    font-size: 16px;
  }

  .presets-buttons {
    gap: 8px;
    justify-content: flex-start;
  }

  .preset-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Opções de armazenamento em coluna */
  .category-section[data-category="storage-options"] .items-grid {
    gap: 10px;
  }

  .furniture-option {
    padding: 10px !important;
    min-height: auto !important;
  }

  .furniture-option > div:first-child {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px !important;
  }

  .furniture-option > div:first-child span {
    flex-shrink: 0;
  }

  .furniture-option > div:first-child strong {
    flex: 1;
    margin-bottom: 0 !important;
  }

  .furniture-option p {
    margin: 6px 0 !important;
    padding-left: 28px;
    font-size: 12px !important;
  }

  .furniture-option div[style*="color"] {
    margin: 6px 0 0 0 !important;
    padding: 6px 8px !important;
    padding-left: 28px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .presets-container {
    align-items: stretch;
  }

  .presets-buttons {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .preset-btn {
    flex-shrink: 0;
    min-width: auto;
    padding: 8px 12px;
    font-size: 11px;
  }

  .category-section {
    padding: 10px 6px !important;
  }

  .item-selector {
    padding: 8px 6px !important;
  }

  .furniture-option {
    padding: 10px 8px !important;
  }

  .furniture-option p {
    font-size: 11px !important;
  }

  .furniture-option div[style*="color"] {
    font-size: 10px !important;
  }
}

/* =================================================
   MICRO-BENEFÍCIOS SELF STORAGE
   ================================================= */

.micro-benefits-section {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #f8fffe 0%, #e8f5f3 100%);
  border-radius: 16px;
  border: 1px solid rgba(76, 175, 80, 0.2);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

.benefits-header {
  text-align: center;
  margin-bottom: 20px;
}

.benefits-header h3 {
  margin: 0;
  color: #2e7d32;
  font-weight: 700;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(76, 175, 80, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.3);
}

.benefit-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 10px;
}

.benefit-content {
  flex: 1;
}

.benefit-title {
  font-weight: 600;
  font-size: 14px;
  color: #2e7d32;
  margin-bottom: 2px;
}

.benefit-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.3;
}

/* Responsivo para micro-benefícios */
@media (max-width: 768px) {
  .micro-benefits-section {
    margin-top: 20px;
    padding: 20px;
  }

  .benefits-header h3 {
    line-height: 1.3;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefit-item {
    padding: 14px;
  }

  .benefit-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
  }

  .benefit-title {
    font-size: 13px;
  }

  .benefit-desc {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-item {
    flex-direction: column;
    text-align: center;
    padding: 12px;
    gap: 8px;
  }

  .benefit-content {
    text-align: center;
  }
}

/* =================================================
   CONTADORES DE CATEGORIA
   ================================================= */

.category-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--stokarea-primary);
  color: white;
  font-size: 12px;
  font-weight: 700;
  min-width: 24px;
  height: 20px;
  border-radius: 10px;
  padding: 0 6px;
  margin-left: 8px;
  margin-right: auto;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
}

.category-counter.show {
  opacity: 1;
  transform: scale(1);
}

.category-counter.pulse {
  animation: counterPulse 0.5s ease;
}

@keyframes counterPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    background: #ff6b35;
  }
  100% {
    transform: scale(1);
  }
}

/* Responsivo para contadores */
@media (max-width: 768px) {
  .category-counter {
    font-size: 11px;
    min-width: 22px;
    height: 18px;
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  .category-counter {
    font-size: 10px;
    min-width: 20px;
    height: 16px;
    margin-left: 4px;
    padding: 0 4px;
  }
}

/* =================================================
   MELHORIAS DA SEÇÃO DE LOCALIZAÇÃO
   ================================================= */

.location-selector h4 {
  margin-bottom: 15px;
  color: var(--stokarea-primary);
  font-size: 16px;
  font-weight: 700;
}

.location-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.location-select,
.location-input {
  padding: 12px 16px;
  border: 2px solid var(--stokarea-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.location-select:focus,
.location-input:focus {
  outline: none;
  border-color: var(--stokarea-primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateY(-1px);
}

.location-select {
  cursor: pointer;
}

.location-select:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.location-help {
  text-align: center;
  margin-top: 8px;
}

.location-help small {
  color: #666;
  font-size: 12px;
  font-style: italic;
}

/* Responsivo para localização */
@media (max-width: 768px) {
  .location-inputs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .location-select,
  .location-input {
    padding: 10px 14px;
    font-size: 13px;
  }

  .location-selector h4 {
    margin-bottom: 12px;
    line-height: 1.3;
  }
}

@media (max-width: 480px) {
  .location-select,
  .location-input {
    padding: 8px 12px;
    font-size: 12px;
  }

  .location-selector h4 {
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .location-help small {
    font-size: 11px;
  }
}

/* =================================================
   MODAL DE PARTILHA
   ================================================= */

.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.share-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.share-modal {
  background: white;
  border-radius: 16px;
  padding: 0;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s ease;
}

.share-modal-overlay.show .share-modal {
  transform: scale(1) translateY(0);
}

.share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(
    135deg,
    var(--stokarea-primary) 0%,
    var(--stokarea-secondary) 100%
  );
  color: white;
  border-radius: 16px 16px 0 0;
}

.share-header h3 {
  margin: 0;
  font-weight: 700;
}

.share-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.share-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.share-content {
  padding: 24px;
}

.share-content p {
  margin: 0 0 16px 0;
  color: #666;
  font-size: 14px;
}

.share-url-container {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.share-url-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: monospace;
  color: #333;
  outline: none;
}

.copy-url-btn {
  background: var(--stokarea-primary);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.copy-url-btn:hover {
  background: var(--stokarea-secondary);
  transform: scale(1.05);
}

.copy-url-btn:active {
  transform: scale(0.95);
}

.share-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.share-method-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid #dee2e6;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-method-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.share-method-btn.whatsapp:hover {
  border-color: #25d366;
  background: #25d366;
  color: white;
}

.share-method-btn.email:hover {
  border-color: #ea4335;
  background: #ea4335;
  color: white;
}

.share-method-btn.facebook:hover {
  border-color: #1877f2;
  background: #1877f2;
  color: white;
}

.share-method-btn.telegram:hover {
  border-color: #0088cc;
  background: #0088cc;
  color: white;
}

.share-icon {
  font-size: 18px;
}

/* Responsivo para modal de partilha */
@media (max-width: 768px) {
  .share-modal {
    width: 95%;
    margin: 10px;
  }

  .share-header {
    padding: 16px 20px;
  }

  .share-header h3 {
    line-height: 1.3;
  }

  .share-content {
    padding: 20px;
  }

  .share-methods {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .share-method-btn {
    padding: 14px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .share-url-container {
    flex-direction: column;
    gap: 10px;
  }

  .copy-url-btn {
    align-self: stretch;
    text-align: center;
  }
}

/* ============================================
   🚀 MELHORIAS MOBILE ULTRA AVANÇADAS
   ============================================ */

/* Skeleton Loading para feedback visual */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton-loader {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--stokarea-radius);
  min-height: 60px;
}

/* Toast Notifications - Mobile Friendly */
.stokarea-toast {
  position: fixed;
  top: calc(20px + var(--safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.4);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  will-change: transform;
  max-width: 90%;
}

.stokarea-toast.show {
  transform: translateX(-50%) translateY(0);
}

.stokarea-toast.success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stokarea-toast.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stokarea-toast.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stokarea-toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* Bottom Sheet nativo para resultados */
.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9998;
  pointer-events: none;
  transition: background 0.3s ease;
}

.bottom-sheet-overlay.active {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: all;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  padding-bottom: calc(24px + var(--safe-area-inset-bottom, 0px));
  max-height: 85vh;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.bottom-sheet.active {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 5px;
  background: #e2e8f0;
  border-radius: 10px;
  margin: 0 auto 20px;
  cursor: grab;
  touch-action: none;
}

.bottom-sheet-handle:active {
  cursor: grabbing;
}

/* Swipe Indicator Visual para deletar */
.swipe-action-indicator {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) translateX(100px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-weight: 700;
  font-size: 14px;
  z-index: 1;
}

.item-selector.swiping {
  position: relative;
}

.item-selector.swiping .swipe-action-indicator {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

/* Quick Action Chips - Presets rápidos */
.quick-actions-container {
  padding: 16px;
  background: linear-gradient(to bottom, #f8fafc, transparent);
  border-bottom: 1px solid var(--stokarea-border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease, max-height 0.4s ease;
  margin-bottom: 0;
}

.quick-actions-container.visible {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 8px;
}

.quick-actions-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--stokarea-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.quick-actions-toggle {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.quick-actions-container.visible .quick-actions-toggle {
  transform: rotate(180deg);
}

.quick-actions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

.quick-actions::-webkit-scrollbar {
  display: none;
}

.quick-action-chip {
  flex-shrink: 0;
  padding: 12px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--stokarea-text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  scroll-snap-align: start;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-action-chip:active {
  transform: scale(0.95);
}

.quick-action-chip.active {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.quick-action-chip-icon {
  font-size: 18px;
}

/* Pull to Refresh Visual */
.pull-to-refresh-container {
  position: relative;
  min-height: 100vh;
}

.pull-to-refresh {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
}

.pull-to-refresh.visible {
  opacity: 1;
  top: 20px;
}

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

.pull-to-refresh.spinning {
  animation: spin 1s linear infinite;
}

/* Floating Action Button Menu Expandível */
.fab-menu {
  position: fixed;
  bottom: calc(90px + var(--safe-area-inset-bottom, 0px));
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.fab-menu.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.fab-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.fab-button:active {
  transform: scale(0.9);
}

.fab-button.main {
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.5);
}

.fab-button.mini {
  width: 48px;
  height: 48px;
  font-size: 20px;
  background: white;
  color: #4f46e5;
  transform: scale(0) translateY(20px);
  opacity: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fab-menu.open .fab-button.mini {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.fab-menu.open .fab-button.mini:nth-child(1) {
  transition-delay: 0.05s;
}

.fab-menu.open .fab-button.mini:nth-child(2) {
  transition-delay: 0.1s;
}

.fab-menu.open .fab-button.mini:nth-child(3) {
  transition-delay: 0.15s;
}

.fab-label {
  position: absolute;
  right: 68px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fab-button:hover .fab-label {
  opacity: 1;
}

/* Progress Ring para loading states */
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  stroke: white;
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-ring.loading circle {
  animation: progressRing 2s linear infinite;
}

@keyframes progressRing {
  0% {
    stroke-dashoffset: 150;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -150;
  }
}

/* Touch Ripple Effect */
.touch-ripple {
  position: relative;
  overflow: hidden;
}

.touch-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
  opacity: 0;
  pointer-events: none;
}

.touch-ripple.active::after {
  width: 300px;
  height: 300px;
  opacity: 1;
}

/* Empty State melhorado */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--stokarea-text-secondary);
}

.empty-state-icon {
  font-size: 80px;
  margin-bottom: 20px;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--stokarea-text-primary);
  margin-bottom: 8px;
}

.empty-state-description {
  font-size: 15px;
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto 20px;
}

.empty-state-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
  touch-action: manipulation;
}

.empty-state-action:active {
  transform: scale(0.95);
}

/* Long Press Indicator */
@keyframes longPressRing {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(1.5);
    opacity: 0;
  }
}

.long-press-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 3px solid #4f46e5;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

.long-press-indicator.active {
  animation: longPressRing 0.8s ease-out infinite;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #3b82f6, #10b981);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s ease;
  z-index: 99999;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

/* Loading Dots animados */
.loading-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Micro-interações para botões */
@media (hover: none) and (pointer: coarse) {
  /* Touch devices only */
  .quantity-btn,
  .calculate-btn,
  .category-header,
  .quick-action-chip {
    transition: all 0.1s ease;
  }
  
  .quantity-btn:active {
    transform: scale(0.92);
  }
  
  .calculate-btn:active {
    transform: scale(0.97);
  }
  
  .category-header:active {
    transform: scale(0.99);
  }
}
