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

/* Reset e variables CSS */
: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);
  --stokarea-font-family: "Inter", sans-serif;
}

.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);
}

/* 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;
}

.calculator-header h1 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(
    45deg,
    var(--stokarea-primary),
    var(--stokarea-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.calculator-header p {
  font-size: clamp(14px, 3vw, 16px);
  color: var(--stokarea-text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.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);
}

.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);
}

.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: center;
  flex: 1;
  margin-bottom: 16px;
}

.item-icon {
  font-size: 24px;
  margin-right: 15px;
  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);
}

.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;
}

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

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

.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;
}

.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-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

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

.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);
}

.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);
}

.selected-item span:last-child {
  font-weight: 700;
  color: var(--stokarea-primary);
  font-size: 16px;
}

.selected-item em {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.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-size: 18px;
  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;
}

.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);
}

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

.box-card-details {
  margin-bottom: 15px;
}

.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: 5px;
    border-radius: 16px;
    padding: 16px;
  }

  .calculator-body {
    padding: 16px;
  }

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

  /* 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: 18px 16px !important;
    font-size: 17px !important;
    min-height: 60px;
    touch-action: manipulation;
  }

  .category-icon {
    font-size: 26px !important;
    margin-right: 12px !important;
  }

  .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;
  }
}

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

  .calculator-header h2 {
    font-size: 22px;
  }

  .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;
}

.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);
}

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

.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;
}

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

.box-location {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.box-utilization {
  font-size: 14px;
  color: #666;
}

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

.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 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .calculator-header p {
    font-size: 16px;
  }

  .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: 14px;
    min-height: 100px;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: space-between !important;
  }

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

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

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

  .item-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.3;
  }

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

  .item-dimensions {
    font-size: 9px;
    color: #999;
    line-height: 1.2;
  }

  .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: center;
    gap: 10px;
    margin-bottom: 8px;
  }

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

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

  .item-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
  }

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

  .item-dimensions {
    font-size: 8px;
    color: #999;
    line-height: 1.2;
  }

  .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;
  flex-wrap: wrap;
  justify-content: center;
}

.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;
  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: 20px 0;
    padding: 16px;
  }

  .search-input {
    padding: 12px 16px 12px 45px;
    font-size: 15px;
  }

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

  .presets-buttons {
    gap: 8px;
  }

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

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

  .presets-buttons {
    justify-content: stretch;
  }

  .preset-btn {
    flex: 1;
    min-width: 0;
  }
}

/* =================================================
   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-size: 18px;
  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 {
    font-size: 16px;
  }

  .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 {
    font-size: 15px;
    margin-bottom: 12px;
  }
}

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

  .location-selector h4 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .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-size: 18px;
  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 {
    font-size: 16px;
  }

  .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;
  }
}
