/* ==========================================================================
   Componentes reutilizables (valores tomados de las pantallas de Stitch)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Botones "Boutique"
   -------------------------------------------------------------------------- */
.btn-primary-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--burgundy); color: #fff;
  font: 500 14px/20px var(--font-sans);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-warm-md);
  transition: background-color 0.3s, transform 0.3s;
}
.btn-primary-pill:hover { background: var(--burgundy-dark); color: #fff; transform: translateY(-2px); }
.btn-primary-pill__arrow { margin-left: 0.5rem; font-size: 1rem; line-height: 1.5; }
.btn-primary-pill__arrow--sm { margin-left: 0.375rem; font-size: inherit; }
.btn-primary-pill--block { width: 100%; padding: 0.875rem 1.5rem; font-size: 12px; line-height: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); }
.btn-primary-pill--block:hover { transform: none; }

.btn-craft {
  display: inline-flex; align-items: center; padding: 0.75rem 1.5rem;
  background: var(--burgundy); color: #fff;
  font: 600 12px/16px var(--font-sans); border-radius: var(--r-full);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s;
}
.btn-craft:hover { background: var(--burgundy-dark); color: #fff; }

.btn-white-pill {
  display: inline-flex; align-items: center; padding: 0.75rem 1.75rem;
  background: #fff; color: var(--espresso);
  border: 1px solid var(--border-light);
  font: 600 12px/16px var(--font-sans); border-radius: var(--r-full);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.btn-white-pill:hover { background: var(--cream); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06); }
.btn-white-pill__arrow { margin-left: 0.375rem; color: var(--burgundy); }

.link-strong { display: inline-flex; align-items: center; font: 700 12px/16px var(--font-sans); color: var(--burgundy); transition: color 0.2s; }
.link-strong:hover { color: var(--burgundy-dark); }
.link-strong--sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.link-strong__arrow { margin-left: 0.25rem; font-size: 1rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Sello circular giratorio + nota manuscrita + polaroid
   -------------------------------------------------------------------------- */
.stamp {
  position: absolute; top: -1.75rem; right: 1.5rem; z-index: 20;
  width: 6rem; height: 6rem; padding: 0.375rem;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light); border-radius: 9999px;
  box-shadow: var(--shadow-warm-md);
  display: flex; align-items: center; justify-content: center;
}
.stamp__ring { width: 100%; height: 100%; display: block; }
.stamp__heart {
  position: absolute; inset: 0; margin: auto; width: 2rem; height: 2rem;
  background: var(--burgundy); color: #fff; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.note-card {
  position: absolute; bottom: 1.25rem; left: 1.5rem;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 0.875rem 1.25rem; border-radius: 0.5rem;
  border: 1px solid rgba(231, 229, 228, 0.8);
  box-shadow: var(--shadow-warm-md);
  transform: rotate(-5deg);
}
.note-card p { font: 700 20px/1 var(--font-script); color: var(--espresso); }

.polaroid {
  width: 100%; max-width: 24rem;
  background: #fff; padding: 1rem 1rem 1.5rem;
  border: 1px solid rgba(231, 229, 228, 0.9); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-warm-md);
  transform: rotate(2deg); transition: transform 0.5s;
}
.polaroid:hover { transform: rotate(0deg); }
.polaroid__img { aspect-ratio: 4 / 5; border-radius: 0.5rem; overflow: hidden; background: var(--border-light); margin-bottom: 1rem; position: relative; }
.polaroid__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid > p { text-align: center; color: var(--espresso); font: 700 24px/1.33 var(--font-script); letter-spacing: 0.025em; }

/* --------------------------------------------------------------------------
   Categorías: tarjeta con icono (Home desktop) y círculo con foto (Home móvil)
   -------------------------------------------------------------------------- */
.cat-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0.875rem;
  background: rgba(251, 246, 241, 0.8);
  border: 1px solid var(--border-light); border-radius: var(--r-2xl);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.cat-pill:hover { background: #fff; box-shadow: var(--shadow-warm-sm); transform: translateY(-2px); }
.cat-pill__icon {
  width: 2.5rem; height: 2.5rem; margin-bottom: 0.5rem;
  border-radius: 9999px; background: rgba(242, 228, 222, 0.7); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.3s, transform 0.3s;
}
.cat-pill:hover .cat-pill__icon { background: rgba(113, 62, 72, 0.1); }
.cat-pill__icon svg { width: 1.25rem; height: 1.25rem; display: block; }
.cat-pill__label { font: 600 12px/16px var(--font-sans); color: var(--espresso); transition: color 0.3s; }
.cat-pill:hover .cat-pill__label { color: var(--burgundy); }
.cat-pill--all { background: var(--burgundy); color: #fff; border: 0; }
.cat-pill--all:hover { background: var(--burgundy-dark); }
.cat-pill--all .cat-pill__icon { background: rgba(255, 255, 255, 0.2); color: #fff; }
.cat-pill--all:hover .cat-pill__icon { background: rgba(255, 255, 255, 0.2); transform: translateX(2px); }
.cat-pill--all .cat-pill__label { color: #fff; line-height: 1.25; }

.cat-circle { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cat-circle__ring {
  width: 4rem; height: 4rem; padding: 0.25rem;
  background: #f4e7e1; border: 1px solid #ebded7; border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.cat-circle:active .cat-circle__ring { transform: scale(0.95); }
.cat-circle__ring img { width: 3rem; height: 3rem; border-radius: 9999px; object-fit: cover; display: block; }
.cat-circle__label { margin-top: 0.375rem; font: 500 12px/16px var(--font-sans); color: var(--espresso); }
.cat-circle:hover .cat-circle__label { color: var(--burgundy); }

/* --------------------------------------------------------------------------
   Tarjeta de producto — Home desktop (.pc)
   -------------------------------------------------------------------------- */
.pc {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  background: rgba(251, 246, 241, 0.6);
  border: 1px solid var(--border-light); border-radius: var(--r-card);
  padding: 1rem;
  transition: box-shadow 0.3s, background-color 0.3s;
}
.pc:hover { background: #fff; box-shadow: var(--shadow-warm-md); }
.pc__media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-2xl); overflow: hidden; background: rgba(238, 223, 213, 0.4); margin-bottom: 1rem; }
.pc__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.pc:hover .pc__media img { transform: scale(1.05); }
.pc__fav {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 10;
  width: 2rem; height: 2rem; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, background-color 0.2s;
}
.pc__fav:hover { background: #fff; transform: scale(1.1); }
.fav-btn.is-active svg { fill: currentColor; }
.pc__body > * + * { margin-top: 0.5rem; }
.pc__name { font: 700 16px/24px var(--font-serif); color: var(--espresso); transition: color 0.3s; }
.pc:hover .pc__name { color: var(--burgundy); }
.pc__price { font: 700 14px/20px var(--font-sans); color: var(--burgundy); }
.pc__cta {
  width: 100%; margin-top: 0.5rem; padding: 0.625rem 1rem;
  background: var(--burgundy); color: #fff;
  font: 600 12px/16px var(--font-sans); border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: background-color 0.2s;
}
.pc__body .pc__cta { margin-top: 0.5rem; }
.pc__cta:hover { background: var(--burgundy-dark); }
.pc__cta svg { width: 0.875rem; height: 0.875rem; }
.pc__cta.is-added, .pm__add.is-added { background: var(--success); }

/* --------------------------------------------------------------------------
   Tarjeta de producto — Home móvil (.pm)
   -------------------------------------------------------------------------- */
.pm {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eee4dc; border-radius: var(--r-2xl);
  padding: 0.625rem; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.pm__fav {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 1.75rem; height: 1.75rem; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85); color: var(--burgundy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: transform 0.15s;
}
.pm__fav:active { transform: scale(0.9); }
.pm__media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 0.75rem; overflow: hidden; background: #faf3ed; }
.pm__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.pm:hover .pm__media img { transform: scale(1.05); }
.pm__meta { margin-top: 0.625rem; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 0.125rem; }
.pm__name { font: 600 12px/16px var(--font-sans); color: var(--espresso); max-width: 105px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm__price { font: 700 14px/20px var(--font-sans); color: var(--burgundy-dark); margin-top: 0.125rem; }
.pm__add {
  width: 2rem; height: 2rem; border-radius: 9999px; flex: none;
  background: var(--burgundy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: transform 0.15s, background-color 0.2s;
}
.pm__add:hover { background: var(--burgundy-hover); }
.pm__add:active { transform: scale(0.9); }
