@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600&family=Nunito+Sans:wght@400;600;700&display=swap');
 
:root {
  --bg: #FDFAFC;
  --lavender: #f1eef3;
  --lavender-soft: #fbf6ff;
  --lavender-line: #f1e2ff;
  --yellow: #fff3a5;
  --yellow-soft: #fffadb;
  --yellow2: #eae6d0;
  --yellow-soft2: #fffce8;
  --ink: #424243;
  --muted: #747178;
  --white: #FFFFFF;
  --success-bg: #E7F4E4;
  --success-ink: #4C8A4A;
  --accent: #998ca2;
  --accent-dark: #695b74;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 8px 24px rgba(90, 50, 130, 0.07);
  --max-width: 820px;
  
}
 
* { box-sizing: border-box; }
 
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito Sans', sans-serif;
  display: flex;
  justify-content: center;
  padding: 24px 16px 64px;
}
 
.page {
  width: 100%;
  max-width: var(--max-width);
}
 

.page--catalog { max-width: 1180px; }
.page--product { max-width: 860px; }
 
h1, h2, h3, .brand {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  margin: 0;
}
 
a { color: inherit; text-decoration: none; }
 
img { display: block; max-width: 100%; }
 
/* ---------- Banner de inicio ---------- */
.banner {
  background: var(--lavender);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
 
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--white);
  object-fit: cover;
  border: 3px solid var(--white);
}
 
.banner h1 { font-size: 22px; }
 
.banner p.tagline {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
 
/* ---------- Links (Ko-fi / Youtube) ---------- */
.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
 
.link-btn {
  background: var(--yellow-soft);
  border: 1px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
  transition: transform .15s ease, background .15s ease;
}
 
.link-btn:hover { background: var(--yellow); transform: translateY(-1px); }
 
/* ---------- Secciones ---------- */
.section-title {
  font-size: 15px;
  margin: 28px 4px 12px;
  color: var(--ink);
}
 
.catalog-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
 
.sort-select {
  border: 1px solid var(--lavender-line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--ink);
  font-family: inherit;
}
 
/* ---------- Categorías (inicio) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
 
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
 
.cat-card {
  background: var(--lavender-soft);
  border: 1px solid var(--lavender-line);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
 
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
 
.cat-thumb {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: var(--white);
  object-fit: cover;
}
 
.cat-card h3 { font-size: 13.5px; }
.cat-card p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
 
/* ---------- Aviso importante ---------- */
.aviso {
  background: var(--lavender-soft);
  border: 1px solid var(--lavender-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #4A3E58;
}
 
/* ---------- Catálogo: header + layout ---------- */
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--lavender);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
 
.catalog-header .brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}
 
.catalog-header .avatar-sm {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); object-fit: cover;
}
 
.catalog-header nav { display: flex; gap: 10px; }
 
.pill-btn {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
}
 
.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  margin: 16px 4px 4px;
}
 
.catalog-layout {
  display: flex;
  gap: 24px;
  margin-top: 18px;
}
 
.categories-side {
  width: 150px;
  flex-shrink: 0;
}
 
.categories-side a {
  display: flex;
  justify-content: space-between;
  padding: 9px 4px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--lavender-line);
}
 
.categories-side a.active { color: #673e86; font-weight: 700; }
 
.sub-list {
  display: flex;
  flex-direction: column;
  padding: 2px 0 6px 14px;
  border-bottom: 1px solid var(--lavender-line);
}
 
.sub-list a {
  padding: 6px 4px;
  font-size: 12.5px;
  color: var(--muted);
  border-bottom: none;
}
 
.sub-list a.active { color: #6f3d95; font-weight: 700; }
 
.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
 
@media (min-width: 860px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
 
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); }
}
 
/* ---------- Tarjeta de producto ---------- */
.product-card {
  background: var(--lavender-soft);
  border: 1px solid var(--lavender-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
 
.product-card .thumb-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: repeating-conic-gradient(#f0e9f6 0% 25%, #f7f2fb 0% 50%) 50% / 16px 16px;
}
 
.product-card .thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
 
.badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--success-bg);
  color: var(--success-ink);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
 
.badge.agotado {
  background: #F5E5E5;
  color: #B24A4A;
}
 
.product-card .info { padding: 10px 12px 12px; }
.product-card h4 { font-size: 13.5px; margin: 0 0 2px; }
.product-card .price { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
 
.ig-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  transition: background .15s ease;
}
 
.ig-btn:hover { background: var(--accent-dark); }
 
/* ---------- Detalle de producto ---------- */
.back-link { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: inline-block; }
 
.carousel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: repeating-conic-gradient(#f0e9f6 0% 25%, #f7f2fb 0% 50%) 50% / 20px 20px;
}
 
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .3s ease;
}
 
.carousel-track img {
  width: 100%; height: 100%; object-fit: cover; flex-shrink: 0;
}
 
.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
 
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
 
.carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 10px;
}
 
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lavender-line);
  cursor: pointer;
}
 
.dot.active { background: #A362D6; }
 
.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 14px;
  background: var(--yellow-soft2);
  border: 1px solid var(--yellow2);
  border-radius: var(--radius-lg);
  padding: 16px;
}
 
.detail-media { width: 100%; }
.detail-info { min-width: 0; }
 
@media (min-width: 680px) {
  .detail-layout {
    flex-direction: row;
    align-items: stretch;
    padding: 24px;
    gap: 28px;
  }
  .detail-media { flex: 0 0 460px; }
  .detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
 
.product-detail h2 { font-size: 19px; margin-top: 0; }
.product-detail .price { font-size: 16px; color: var(--muted); margin: 4px 0 12px; }
.product-detail .descripcion,
.detail-info .descripcion {
  font-size: 14px;
  line-height: 1.7;
  color: #4A3E58;
  white-space: pre-line; 
}
 
.detail-info h2 { font-size: 19px; margin: 0 0 4px; }
.detail-info .price { font-size: 16px; color: var(--muted); margin: 0 0 10px; }
 
.nota {
  display: inline-block;
  background: var(--lavender-soft);
  border: 1px solid var(--lavender);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #644e69;
  margin: 4px 0 10px;
}
 
.cta-ig {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 15px;
  font-weight: 700;
  margin-top: 20px;
  transition: background .15s ease;
}
 
.cta-ig:hover { background: var(--accent-dark); }
 
.hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
 
.empty-msg { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13.5px; }
 
/* ---------- Responsive: móvil ---------- */
@media (max-width: 560px) {
  body { padding: 16px 10px 48px; }
 
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
 
  .catalog-layout { flex-direction: column; }
 
  .categories-side {
    width: 100%;
    background: var(--lavender-soft);
    border-radius: var(--radius-md);
    padding: 6px 12px;
  }
 
  .product-grid { grid-template-columns: repeat(2, 1fr); }
 
  .catalog-header nav { gap: 6px; }
  .pill-btn { padding: 7px 10px; font-size: 11.5px; }
}