/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--c-wine);
  color: #fff;
}

.btn-primary:hover {
  background: var(--c-wine-2);
}

.btn-secondary {
  background: #fff;
  color: var(--c-green);
  border-color: var(--c-line-2);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--c-sage);
}

.btn-ghost {
  background: transparent;
  color: var(--c-green);
  border-color: var(--c-line-2);
}

.btn-ghost:hover {
  background: #fff;
}

.btn-orange {
  background: var(--c-orange);
  color: #fff;
}

.btn-orange:hover {
  background: #c9762d;
}

.btn-terracotta {
  background: var(--c-terracotta);
  color: #fff;
}

.btn-terracotta:hover {
  background: #7a4022;
}

.btn-white {
  background: #fff;
  color: var(--c-green);
}

.btn-white:hover {
  background: #f3f5ef;
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 14px;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--c-line-2);
  background: #fff;
  color: var(--c-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-icon:hover {
  border-color: var(--c-sage);
}

.btn-icon.is-active {
  color: var(--c-wine);
  border-color: var(--c-wine);
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-line-2);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-green);
  white-space: nowrap;
}

.pill--soft {
  background: #eef1ec;
  border-color: transparent;
}

.pill--success {
  background: #e8f3ec;
  border-color: #cfe4d6;
  color: #2f6b47;
}

.pill--orange {
  background: var(--c-orange-2);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.pill--terracotta {
  background: var(--c-terracotta);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10px;
}

.pill--wine {
  background: var(--c-wine);
  border-color: transparent;
  color: #fff;
}

.pill--outline-wine {
  border-color: var(--c-wine);
  color: var(--c-wine);
}

.pill--green {
  background: var(--c-green);
  border-color: transparent;
  color: #fff;
}

.pill--sale {
  background: #e6f4d9;
  border-color: transparent;
  color: #2c5b16;
  font-weight: 700;
  font-size: 11px;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--c-wine);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Stars ---------- */
.stars {
  display: inline-flex;
  gap: 1px;
  color: var(--c-star);
}

.stars svg {
  width: 12px;
  height: 12px;
}

.stars--lg svg {
  width: 16px;
  height: 16px;
}

.stars--xl svg {
  width: 18px;
  height: 18px;
}

.stars .off {
  color: #d9ddd6;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--c-line-2);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: var(--c-green);
}

.pagination span.is-current {
  background: var(--c-green);
  color: #fff;
  border-color: var(--c-green);
}

.pagination span.is-disabled {
  opacity: .4;
}

/* ---------- Flash ---------- */
.flash {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.flash__item {
  background: var(--c-green);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 10px;
  align-items: center;
  animation: flash-in .25s ease;
}

.flash__item--error {
  background: var(--c-danger);
}

.flash__item button {
  background: transparent;
  border: 0;
  color: inherit;
  margin-left: auto;
  opacity: .7;
}

@keyframes flash-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}
