/* =====================================================
   Finish (Acabado) Selector Styles
   Shared between product.html and checkout's finish step
   ===================================================== */

.finish-selector-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
}

.finish-card {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: visible;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  width: 100px;
  min-width: 100px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  box-sizing: border-box;
  flex-shrink: 0;
}

.finish-card .finish-top {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  background: #f8f9fa;
}

.finish-card .finish-icon {
  font-size: 2rem;
  color: var(--brand);
}

.finish-card .finish-price {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.finish-card .finish-name {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: #071325;
  margin: 0;
  padding: 8px;
  line-height: 1.25;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.finish-card:hover {
  border-color: rgba(var(--brand-rgb), 0.3);
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.1);
}

.finish-card.selected {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(var(--brand-rgb), 0.2);
  background: rgba(var(--brand-rgb), 0.02);
}

.finish-card .finish-check {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.finish-card.selected .finish-check {
  background: var(--brand);
  border-color: var(--brand);
}

.finish-card .finish-check svg { width: 14px; height: 14px; stroke-width:2; color:#fff; display:none; }
.finish-card.selected .finish-check svg { display: block; }

.finish-card-more .finish-top {
  background: rgba(var(--brand-rgb), 0.06);
}

.finish-card-more .finish-icon {
  font-size: 1.6rem;
}

.finish-card-more .finish-name {
  font-weight: 700;
}
