/* ==========================================================================
   Componentes reutilizáveis
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

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

.btn--pink {
  background: var(--color-pink);
  color: var(--color-white);
  box-shadow: var(--shadow-pink);
}

.btn--pink:hover {
  background: var(--color-pink-dark);
}

.btn--yellow {
  background: var(--color-yellow);
  color: #3b0764;
  box-shadow: 0 6px 16px rgba(255, 204, 0, 0.35);
}

.btn--yellow:hover {
  background: var(--color-yellow-dark);
}

.btn--ghost {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--block {
  width: 100%;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 800;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.45rem;
  font-weight: 800;
}

.section-link {
  color: var(--color-pink);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover {
  text-decoration: underline;
}

.product-card {
  background: var(--color-white);
  border: 1px solid #edf0f4;
  border-radius: 18px;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card__image {
  height: 148px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.product-card__image img {
  max-height: 138px;
  width: auto;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 800;
  min-height: 44px;
  color: #111827;
}

.product-card__name a:hover {
  color: var(--color-pink);
}

.product-card__price {
  color: var(--color-pink);
  font-size: 1.2rem;
  font-weight: 900;
  margin: 8px 0 12px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  background: #111827;
  color: var(--color-white);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 20px 22px;
}

.cookie-banner__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--color-text);
}

.cookie-banner p {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--color-text-soft);
  line-height: 1.4;
}

.cookie-banner a {
  color: var(--color-pink);
  font-weight: 800;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(31, 41, 55, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.cookie-panel[hidden],
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-panel__dialog {
  width: min(100%, 520px);
  background: var(--color-white);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.cookie-panel__dialog h2 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.cookie-panel__dialog > p {
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--color-text-soft);
}

.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  font-weight: 700;
  color: var(--color-text-soft);
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-pink);
}

.cookie-option strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 2px;
}

.cookie-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.footer-policies button {
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: inherit;
}

.footer-policies button:hover {
  color: var(--color-pink);
}

body.cookie-panel-open {
  overflow: hidden;
}
