/* =====================================================
   FRILLO — Products (Produtos)
   ===================================================== */

/* ── Grid ───────────────────────────────────────── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  padding: var(--space-6);
  align-content: start;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* ── Card ───────────────────────────────────────── */

.product-card {
  background: var(--bg-card-premium);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}

.product-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

/* ── Card: Top row (icon + actions) ─────────────── */

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-chip-active);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.product-card-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.product-card:hover .product-card-actions {
  opacity: 1;
}

/* ── Card: Body ─────────────────────────────────── */

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.product-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card: Footer ───────────────────────────────── */

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.product-card-price {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.product-card-price-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 3px;
}

.product-card-delivery {
  text-align: right;
}

.product-card-delivery-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.product-card-delivery-value {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Empty State ─────────────────────────────────── */

.products-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  color: var(--text-muted);
  gap: var(--space-3);
}

.products-empty-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.products-empty-desc {
  font-size: var(--text-sm);
  max-width: 320px;
  line-height: 1.6;
  margin: 0;
}

/* ── Icon Picker ─────────────────────────────────── */

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

.icon-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--space-2) var(--space-1);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  color: var(--text-secondary);
  aspect-ratio: 1;
  font-family: var(--font-ui);
}

.icon-picker-btn:hover {
  border-color: var(--border-default);
  color: var(--text-primary);
}

.icon-picker-btn.selected {
  border-color: var(--accent);
  background: var(--bg-chip-active);
  color: var(--accent);
}

.icon-picker-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
