*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff7fb;
  color: #3b3054;
}

/* HEADER */

.site-header {
  background: linear-gradient(135deg, #ffe4f3, #e3f4ff);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.logo {
  width: 65px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 2px solid rgba(255,255,255,0.9);
}

.brand-text {
  text-align: center;
}

.brand-text h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  font-family: "Pacifico", cursive;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ff7ea3 0%, #7e88ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  margin: 2px 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(142, 130, 190, 0.3);
  background: rgba(255,255,255,0.9);
  color: #5a4c87;
  font-weight: 600;
}

.main-nav a.active {
  background: linear-gradient(135deg, #ffb5d9, #ff9ac4);
  color: #3b3054;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(255, 154, 196, 0.4);
}


/* FILTER CATEGORY BUTTONS (chips) */
.categoria-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}








/* Aligned blocks for Category and Search */
.filters-aligned-block {
  max-width: 380px;
  width: 100%;
  margin: 0 auto 14px;
  text-align: center;
}

.filters-aligned-block .filter-label {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 600;
  margin-bottom: 6px;
}

.filters-aligned-block .categoria-chips {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 8px;
}

.filters-aligned-block .search-pill {
  margin: 0 auto;
}
/* CATEGORY FILTER BUTTONS (chips styled like main menu buttons) */
.categoria-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.chip-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(142, 130, 190, 0.3);
  color: #5a4c87;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(59, 48, 84, 0.18);
}

.chip-button.active {
  background: linear-gradient(135deg, #ffb5d9, #ff9ac4);
  border-color: transparent;
  color: #3b3054;
  box-shadow: 0 4px 10px rgba(255, 154, 196, 0.4);
}
/* FILTERS */
/* SEARCH PILL */
.search-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(177, 153, 218, 0.55);
  box-shadow: 0 10px 26px rgba(177, 153, 218, 0.35);
  max-width: 380px;
  margin: 0 auto;
}

.search-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-pill input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: #8e83b8;
  width: 100%;
}

.search-pill input::placeholder {
  color: #b3a9c9;
}


.header-filters {
  padding-top: 4px;
  padding-bottom: 6px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: #5c5470;
}

.filter-group-busqueda {
  align-items: center;
}


.filter-group select,
.filter-group input {
  border-radius: 999px;
  border: 1px solid #e0d7ff;
  padding: 6px 12px;
  font-size: 0.9rem;
  outline: none;
  background: rgba(255,255,255,0.9);
}

.filter-group input::placeholder {
  color: #b3a9c9;
}

/* MAIN */

.main-content {
  max-width: 1080px;
  margin: 16px auto 40px;
  padding: 0 16px;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* PRODUCT CARD */

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(44, 31, 64, 0.08);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(44, 31, 64, 0.14);
}

/* CATEGORY CHIP */

.chip-categoria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  background: #f1ecff;
  color: #6a5acd;
  margin: 0 auto 12px;
  font-weight: 700;
  text-align: center;
}

.chip-categoria.madera {
  background: #e9fff4;
  color: #2f8f72;
}

/* IMAGE FRAME */

.image-frame {
  border-radius: 24px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(68, 40, 94, 0.18);
  margin-bottom: 10px;
  position: relative;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 30px;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 228, 243, 0.9);
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.zoomable-img {
  cursor: zoom-in;
}

/* TEXTS */

.card h3 {
  margin: 4px 0;
  font-size: 1rem;
}

.card p {
  margin: 2px 0;
  font-size: 0.9rem;
  color: #5c5470;
}

.precio {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff7ea3;
  margin-top: 6px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

/* WhatsApp main button for cards & contact */

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #25d366, #7ee7c4);
  box-shadow: 0 6px 14px rgba(46, 125, 96, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(46, 125, 96, 0.4);
  filter: brightness(1.05);
}

.btn-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(46, 125, 96, 0.3);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #25d366;
  font-size: 0.85rem;
}

/* NO RESULTS */

.no-results {
  margin-top: 24px;
  text-align: center;
  font-size: 0.95rem;
  color: #8b80a9;
}

/* CONTACT SECTION */

.contact-section {
  margin-top: 32px;
}

.contact-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: 0 10px 24px rgba(44, 31, 64, 0.08);
  border: 1px solid rgba(228, 210, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  background-image:
    radial-gradient(circle at top left, #ffe6f5 0, transparent 50%),
    radial-gradient(circle at bottom right, #e3f7ff 0, transparent 55%);
}

.contact-card h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  font-weight: 700;
}

.contact-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #5a4c87;
  max-width: 380px;
}

.contact-phone {
  font-weight: 600;
}

.contact-phone a {
  color: #ff7ea3;
  text-decoration: none;
}

.contact-phone a:hover {
  text-decoration: underline;
}

.contact-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.contact-icon {
  font-size: 1.4rem;
}

/* OVERLAY ZOOM */

.image-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.image-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.image-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffe0f6, #d2e3ff);
  backdrop-filter: blur(12px);
}

.image-overlay-content {
  position: relative;
  z-index: 1;
  padding: 8px;
  transform: scale(0.96);
  transition: transform 0.18s ease;
}

.image-overlay.open .image-overlay-content {
  transform: scale(1);
}

.image-overlay-content img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.overlay-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  color: #3b3054;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* FOOTER */

.site-footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 14px 12px 20px;
  color: #8b80a9;
}

/* FAB WHATSAPP */

.fab-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #7ee7c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(46, 125, 96, 0.4);
  z-index: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fab-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(46, 125, 96, 0.45);
}

/* ADMIN STYLES (admin.html) */

.admin-body {
  background: #fdf7ff;
}

.admin-login {
  max-width: 420px;
  margin: 18px auto 10px;
}

.admin-login .small {
  font-size: 0.8rem;
  color: #6a5c8f;
}

.admin-login label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.admin-login input {
  width: 100%;
  margin-top: 4px;
  border-radius: 10px;
  border: 1px solid #e0d7ff;
  padding: 7px 9px;
  font-size: 0.9rem;
  outline: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.admin-form-card,
.admin-list-card {
  align-self: flex-start;
}

.admin-form-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(44, 31, 64, 0.08);
  border: 1px solid rgba(228, 210, 255, 0.9);
}

.admin-form-card h2 {
  text-align: center;
  margin: 0 0 14px;
  font-size: 1.4rem;
  font-weight: 700;
}

.admin-form {
  display: grid;
  gap: 14px 16px;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 600;
  color: #5c5470;
}

.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form textarea,
.admin-form select {
  border-radius: 12px;
  border: 1px solid #e0d7ff;
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(44, 31, 64, 0.05);
}

.admin-form textarea {
  resize: vertical;
  min-height: 70px;
}

/* Campo de archivo bonito */
.admin-form input[type="file"] {
  border-radius: 999px;
  border: 1px dashed #e0bce8;
  padding: 8px 12px;
  font-size: 0.85rem;
  background: #fff5fb;
  cursor: pointer;
  color: #6a5c8f;
}

.admin-form input[type="file"]::file-selector-button {
  margin-right: 8px;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #ffb5d9, #ff9ac4);
  color: #3b3054;
  cursor: pointer;
}

#guardarProductoBtn {
  margin-top: 6px;
}

#previewImagen img {
  margin-top: 6px;
  border-radius: 12px;
  max-height: 140px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(44, 31, 64, 0.25);
}

.lista-admin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 500px;
  overflow: auto;
}

.admin-card {
  display: grid;
  grid-template-columns: 60px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0e9ff;
}

.admin-card img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-card strong {
  display: block;
  margin-bottom: 2px;
}

.admin-card button {
  border-radius: 999px;
  border: none;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  background: #ffe1e8;
  color: #b8325d;
}

/* RESPONSIVE */

@media (min-width: 900px) {
  .header-inner {
    max-width: 820px;
  }

  .admin-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: flex-start;
  }

  .admin-form label:nth-child(1),
  .admin-form label:nth-child(2) {
    grid-column: span 1;
  }

  .admin-form label:nth-child(3) {
    grid-column: 1 / -1;
  }

  .admin-form label:nth-child(4) {
    grid-column: span 1;
  }

  .admin-form label:nth-child(5) {
    grid-column: 1 / -1;
  }

  #guardarProductoBtn,
  #previewImagen {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 8px 12px;
  }

  .brand-text h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  font-family: "Pacifico", cursive;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ff7ea3 0%, #7e88ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 18px 14px;
  }
}


@media (max-width: 600px) {
  .filter-group-categorias,
  .filter-group-busqueda {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .filter-group-categorias .filter-label,
  .filter-group-busqueda .filter-label {
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 4px;
  }

  .categoria-chips {
    justify-content: center;
    width: 100%;
  }

  .filter-group-busqueda .search-pill {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}
.footer-heart {
  display: inline-block;
  margin: 0 2px;
  transform-origin: center;
  animation: footer-heart-beat 1.4s ease-in-out infinite;
}

@keyframes footer-heart-beat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
}

/* Versión web: alinear filtros en una sola fila y ocultar textos */
@media (min-width: 768px) {
  .header-filters .filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  .filters-aligned-block {
    margin-bottom: 0;
  }

  .filters-aligned-block .filter-label {
    display: none;
  }

  .filters-aligned-block.categorias-block .categoria-chips {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  /* Compact header spacing on mobile */
  header {
    padding-top: 10px;
  }

  .header-inner {
    gap: 6px;
  }

  .brand {
    gap: 6px;
  }

  .brand-text h1 {
    font-size: 1.7rem;
  }

  .brand-text p {
    font-size: 0.9rem;
    margin-top: 2px;
  }

  .header-nav {
    margin-top: 4px;
  }

  .header-nav button,
  .header-nav .nav-btn {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .filters {
    gap: 6px;
    margin-top: 6px;
  }

  .filters-aligned-block {
    margin-bottom: 8px;
  }

  .filters-aligned-block .filter-label {
    font-size: 0.78rem;
  }

  .categoria-chips {
    gap: 6px;
  }

  .chip-button {
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  .search-pill {
    padding: 8px 14px;
    max-width: 320px;
  }

  .search-pill input {
    font-size: 0.85rem;
  }
}



/* NUEVO HEADER COMPACTO TIPO APP */

.topbar {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Botones redondeados tipo app */
.icon-button {
  border: 1px solid rgba(255,255,255,0.9);
  outline: none;
  background: rgba(255,255,255,0.96);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(59, 48, 84, 0.16);
  cursor: pointer;
  padding: 0;
}

.icon-button:active {
  transform: translateY(1px);
}

/* Icono hamburguesa mejor definido */
.menu-toggle {
  position: relative;
}

.menu-toggle .menu-line {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: #5a4c87;
  margin: 2px 0;
}

/* Marca clickeable (logo + texto) en una sola línea */
.brand-clickable {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  flex: 1;
}

.brand-clickable .brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.topbar .brand {
  flex-direction: row;
}

.brand-clickable .logo {
  width: 65px;
  height: auto;
}

.brand-clickable .brand-text {
  text-align: left;
}

.search-toggle-icon {
  font-size: 1.15rem;
}

/* Panel de navegación + filtros */
.main-nav-wrapper {
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .brand-clickable .brand-text h1 {
    font-size: 1.35rem;
  }

  .brand-clickable .brand-text p {
    display: block;
    font-size: 0.8rem;
  }

  .brand-clickable .logo {
    width: 65px;
  }

  .brand-clickable .brand-text {
    text-align: center;
  }

  /* Ocultar panel por defecto en móvil */
  #filtersPanel {
    display: none;
  }

  /* MENÚ abierto: mostrar navegación + categorías, ocultar búsqueda */
  .site-header.menu-open #filtersPanel {
    display: flex;
    animation: headerPanelIn 0.18s ease-out;
  }

  .site-header.menu-open .filter-group-busqueda {
    display: none;
  }

  /* BÚSQUEDA abierta: mostrar solo el cuadro de búsqueda */
  .site-header.search-open #filtersPanel {
    display: flex;
    animation: headerPanelIn 0.18s ease-out;
  }

  .site-header.search-open .main-nav-wrapper,
  .site-header.search-open .categorias-block {
    display: none;
  }

  .header-inner.header-filters {
    padding-top: 4px;
    padding-bottom: 10px;
  }
}

/* En desktop, mantener el panel siempre visible */
@media (min-width: 901px) {
  #filtersPanel {
    display: flex !important;
  }
  .topbar .icon-button {
    display: none;
  }
  .topbar {
    justify-content: center;
  }
  .brand-clickable {
    flex: 0 auto;
    margin: 0 auto;
  }
  .brand-clickable .brand {
    justify-content: center;
  }
}

@keyframes headerPanelIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.menu-symbol { font-size: 1.1rem; line-height: 1; color: #5a4c87; font-weight: 600; }
