/* ========================= */
/* VARIABLES Y RESET         */
/* ========================= */

:root {
  --color-rosa-principal: #f3c7d9;
  --color-rosa-acento: #f29eb2;
  --color-rosa-suave: #ffeef5;
  --color-lila-suave: #dccbf3;
  --color-fondo: #fff9f9;
  --color-beige: #f1ece8;
  --color-texto: #3f3f46;
  --color-texto-suave: #8c8c8c;
  --radio-base: 18px;
  --sombra-suave: 0 18px 40px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(
    circle at top left,
    #ffeef5 0,
    #fff9f9 40%,
    #f1ece8 100%
  );
  color: var(--color-texto);
  min-height: 100vh;
}

/* ========================= */
/* CONTENEDOR GENERAL        */
/* ========================= */

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

/* ========================= */
/* HEADER                    */
/* ========================= */

header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: 20px;
  background: rgba(255, 249, 249, 0.85);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(243, 199, 217, 0.3);
  position: sticky;
  top: 12px;
  z-index: 30;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: conic-gradient(
    from 210deg,
    #f29eb2,
    #f3c7d9,
    #dccbf3,
    #f29eb2
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(255, 255, 255, 0.6),
    transparent 55%
  );
}

.logo-mark span {
  position: relative;
  font-family: "Poppins", system-ui;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text-main {
  font-family: "Poppins", system-ui;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo-text-sub {
  font-size: 0.7rem;
  color: var(--color-texto-suave);
}

.header-menu-btn {
  font-size: 0.8rem;
}

/* ========================= */
/* BOTONES                   */
/* ========================= */

.btn-primary {
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f29eb2, #f3c7d9);
  color: #fff;
  font-family: "Poppins", system-ui;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 14px 32px rgba(242, 158, 178, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 40px rgba(242, 158, 178, 0.7);
}

.btn-primary .icon {
  font-size: 1rem;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(242, 158, 178, 0.55);
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  color: var(--color-texto);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.08s;
}

.btn-ghost:hover {
  background: rgba(255, 246, 251, 0.9);
  transform: translateY(-1px);
}

.btn-mini {
  border-radius: 999px;
  border: 1px solid rgba(243, 199, 217, 0.7);
  padding: 6px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  color: var(--color-texto-suave);
  transition: background 0.12s, transform 0.08s;
}

.btn-mini:hover {
  background: #fff7fb;
  transform: translateY(-1px);
}

.btn-mini-primary {
  background: #f29eb2;
  color: #fff;
  border-color: #f29eb2;
}

.btn-mini-primary:hover {
  background: #ee8ca4;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ========================= */
/* LAYOUT PRINCIPAL          */
/* ========================= */

.layout-main {
  display: block;
}

/* ========================= */
/* HERO PRINCIPAL            */
/* ========================= */

.hero {
  padding: 20px 22px;
  border-radius: 28px;
  background: radial-gradient(
    circle at top left,
    #ffeef5 0,
    #fff9f9 40%,
    #f1ece8 100%
  );
  box-shadow: var(--sombra-suave);
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}

.hero-content {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(252, 231, 243, 0.85);
  color: var(--color-texto-suave);
  font-size: 0.75rem;
}

.hero-tag-badge {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f29eb2;
  box-shadow: 0 0 0 4px rgba(242, 158, 178, 0.25);
}

.hero h1 {
  font-family: "Poppins", system-ui;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, #f29eb2, #f3c7d9);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 0.95rem;
  color: var(--color-texto-suave);
  max-width: 460px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.hero-decoration {
  position: absolute;
  right: -14px;
  bottom: -10px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 0%,
    #ffeef5 0,
    #f3c7d9 30%,
    #dccbf3 65%,
    transparent 75%
  );
  opacity: 0.95;
}

.hero-floating-card {
  position: absolute;
  right: 16px;
  top: 24px;
  width: 160px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(255, 249, 249, 0.96);
  box-shadow: 0 18px 40px rgba(222, 169, 195, 0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
}

.hero-floating-title {
  font-family: "Poppins", system-ui;
  font-weight: 500;
  font-size: 0.8rem;
}

.hero-floating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-floating-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffeef5;
  font-size: 0.7rem;
}

.hero-floating-badge {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px dashed rgba(242, 158, 178, 0.6);
  font-size: 0.7rem;
  color: var(--color-texto-suave);
}

.hero-floating-text {
  font-size: 0.7rem;
  color: var(--color-texto-suave);
}

/* ========================= */
/* FILTROS                   */
/* ========================= */

.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  border: 1px solid rgba(243, 199, 217, 0.5);
  box-shadow: 0 10px 26px rgba(243, 199, 217, 0.3);
  flex-wrap: wrap;
}

.filters-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

.filters-label {
  font-size: 0.75rem;
  color: var(--color-texto-suave);
}

.input-pill {
  position: relative;
  flex: 1;
}

.input-pill input,
.input-pill select {
  width: 100%;
  padding: 7px 10px 7px 28px;
  border-radius: 999px;
  border: 1px solid rgba(228, 202, 212, 0.9);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  color: var(--color-texto);
  outline: none;
  transition: box-shadow 0.12s, border-color 0.12s, background 0.12s;
}

.input-pill input:focus,
.input-pill select:focus {
  border-color: #f29eb2;
  box-shadow: 0 0 0 1px rgba(242, 158, 178, 0.4);
  background: #fff;
}

.input-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--color-texto-suave);
}

/* ========================= */
/* CATÁLOGO                  */
/* ========================= */

.section-heading {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-heading h2 {
  font-family: "Poppins", system-ui;
  font-size: 1.05rem;
}

.section-subtitle {
  font-size: 0.75rem;
  color: var(--color-texto-suave);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.product-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radio-base);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.04);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(243, 199, 217, 0.4);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(243, 199, 217, 0.5);
  border-color: rgba(242, 158, 178, 0.8);
}

.product-image {
  border-radius: 14px;
  background: linear-gradient(135deg, #ffeef5, #dccbf3);
  aspect-ratio: 4 / 3;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.product-image::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle at 20% 10%,
    rgba(255, 255, 255, 0.65),
    transparent 55%
  );
  opacity: 0.8;
}

.product-title {
  font-family: "Poppins", system-ui;
  font-size: 0.86rem;
  font-weight: 500;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-texto-suave);
}

.product-price {
  font-weight: 600;
  color: #dd3f7a;
  font-size: 0.9rem;
}

.product-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(252, 231, 243, 0.9);
  font-size: 0.68rem;
  color: #c23f72;
}

.product-actions {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}

.catalog-cta-row {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.catalog-more-btn {
  font-size: 0.8rem;
}

/* =========================================
   PÁGINA DE DETALLE DE PRODUCTO (producto.html)
   ========================================= */

/* Migas / breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #8c6c83;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  text-decoration: none;
  color: #b57cab;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Contenedor general de la página de producto */
.product-detail-page {
  padding: 1rem 0 3rem;
}

/* Layout: 2 columnas en desktop, 1 en mobile */
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

/* En pantallas chicas: una sola columna */
@media (max-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* COLUMNA IZQUIERDA: media */
.product-detail-media {
  width: 100%;
}

/* Caja que contiene imagen / texto del producto */
.product-detail-image-box {
  position: relative;
  width: 100%;
  min-height: 260px;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, #f9ecff, #ffeef4);
  border: 1px solid #f1d7f1;
  box-shadow:
    0 18px 45px rgba(148, 97, 145, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

/* Texto grande cuando no hay imagen */
.product-detail-image-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: #84506e;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

/* Si más adelante usás una imagen principal, podés usar esta clase */
.product-detail-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* COLUMNA DERECHA: info del producto */
.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tag / sticker de categoría o estado */
.product-detail-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 222, 244, 0.9);
  color: #a74f8a;
}

/* Título de producto */
.product-detail-title {
  font-size: 1.9rem;
  line-height: 1.2;
  color: #3c2335;
  margin: 0;
}

/* Precio */
.product-detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #a43e7d;
  margin: 0.25rem 0 0.5rem;
}

/* Descripción principal */
.product-detail-description {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #5b4152;
  margin: 0;
}

/* Bloque de botones */
.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Que los botones se vean bien en mobile */
@media (max-width: 480px) {
  .product-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-detail-actions .btn-primary,
  .product-detail-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* Bloque de detalles extra */
.product-detail-extra {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #fff7ff;
  border: 1px solid #f3d7f3;
}

.product-detail-extra h2 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: #4a2741;
}

.product-detail-extra p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: #5d3b54;
  margin: 0;
}

/* Bloque de ayuda / CTA secundaria */
.product-detail-help {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #f6fbff;
  border: 1px dashed #c7d9f0;
}

.product-detail-help h3 {
  font-size: 0.98rem;
  margin: 0 0 0.35rem;
  color: #344055;
}

.product-detail-help p {
  font-size: 0.9rem;
  color: #5a647c;
  margin: 0 0 0.6rem;
}

/* Ajustes generales del botón mini dentro de ayuda */
.product-detail-help .btn-mini {
  font-size: 0.86rem;
}

/* Imagen principal específica */
.product-detail-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Contenedor de miniaturas */
.product-detail-thumbs {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Botón de miniatura */
.product-detail-thumb {
  border: 1px solid #f1d7f1;
  background: #fff;
  border-radius: 0.9rem;
  padding: 0.15rem;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.product-detail-thumb img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 0.7rem;
}

/* Estado activo / seleccionada */
.product-detail-thumb.is-active {
  border-color: #d48bbf;
  box-shadow: 0 0 0 2px rgba(212, 139, 191, 0.25);
  transform: translateY(-1px);
}

/* Hover suave (desktop) */
@media (hover: hover) {
  .product-detail-thumb:hover {
    border-color: #e2a6cf;
    box-shadow: 0 8px 18px rgba(148, 97, 145, 0.18);
  }
}



/* ========================= */
/* SOBRE BLOSSIA             */
/* ========================= */

.about-section {
  margin-top: 22px;
}

.about-text {
  font-size: 0.85rem;
  color: var(--color-texto-suave);
  max-width: 640px;
}

/* ========================= */
/* SIDEBAR OVERLAY IZQUIERDA */
/* ========================= */

.sidebar-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: flex-start;
  align-items: stretch;
  z-index: 40;
}

.sidebar-overlay.is-open {
  display: flex;
}

.sidebar-backdrop {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.sidebar-panel {
  width: 260px;
  max-width: 80%;
  background: #fff9f9;
  border-right: 1px solid rgba(243, 199, 217, 0.7);
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.25);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideInSidebarLeft 0.22s ease-out;
}

@keyframes slideInSidebarLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.sidebar-close {
  align-self: flex-end;
  background: #fff;
  border: 1px solid #f3c7d9;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-texto-suave);
}

.sidebar-panel-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.sidebar-panel-title {
  font-family: "Poppins", system-ui;
  font-size: 0.95rem;
  font-weight: 600;
}

.sidebar-panel-subtitle {
  font-size: 0.75rem;
  color: var(--color-texto-suave);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(243, 199, 217, 0.7);
  padding: 8px 10px;
  font-size: 0.85rem;
  text-decoration: none;
  background: #fff;
  color: var(--color-texto-suave);
  cursor: pointer;
  transition: background 0.12s, transform 0.08s, box-shadow 0.12s;
}

.sidebar-nav-btn:hover {
  background: #fff7fb;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(243, 199, 217, 0.4);
}

.sidebar-nav-btn-accent {
  border-color: #f29eb2;
  background: linear-gradient(135deg, #f29eb2, #f3c7d9);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 14px 32px rgba(242, 158, 178, 0.55);
}

.sidebar-nav-btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(242, 158, 178, 0.7);
}

/* ========================= */
/* FOOTER                    */
/* ========================= */

footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed rgba(243, 199, 217, 0.7);
  font-size: 0.75rem;
  color: var(--color-texto-suave);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ========================= */
/* CHECKOUT OVERLAY          */
/* ========================= */

.checkout-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.checkout-overlay.is-open {
  display: flex;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(4px);
}

.checkout-panel {
  position: relative;
  z-index: 51;
  max-width: 880px;
  width: 100%;
  margin: 16px;
  background: rgba(255, 249, 249, 0.98);
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.22);
  padding: 18px 18px 20px;
  border: 1px solid rgba(243, 199, 217, 0.9);
}

.checkout-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-texto-suave);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.checkout-title {
  font-family: "Poppins", system-ui;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.checkout-subtitle {
  font-size: 0.8rem;
  color: var(--color-texto-suave);
  margin-bottom: 12px;
  max-width: 560px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 16px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}

.checkout-field label {
  font-weight: 500;
}

.checkout-field input,
.checkout-field select {
  border-radius: 999px;
  border: 1px solid rgba(228, 202, 212, 0.9);
  padding: 7px 12px;
  font-size: 0.8rem;
  outline: none;
  background: #fff;
  color: var(--color-texto);
}

.checkout-field input:focus,
.checkout-field select:focus {
  border-color: var(--color-rosa-acento);
  box-shadow: 0 0 0 1px rgba(242, 158, 178, 0.4);
}

.checkout-field small {
  font-size: 0.7rem;
  color: var(--color-texto-suave);
}

.checkout-actions-main {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-note {
  font-size: 0.7rem;
  color: var(--color-texto-suave);
}

/* RESUMEN */

.checkout-summary {
  background: linear-gradient(135deg, #ffeef5, #dccbf3);
  border-radius: 18px;
  padding: 10px 12px 12px;
  color: #4a1840;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-summary-title {
  font-family: "Poppins", system-ui;
  font-size: 0.95rem;
}

.checkout-summary-items {
  max-height: 150px;
  overflow-y: auto;
  border-radius: 12px;
  background: rgba(255, 249, 249, 0.86);
  padding: 6px 8px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(242, 158, 178, 0.6);
}

.checkout-summary-item:last-child {
  border-bottom: none;
}

.checkout-summary-item-name {
  max-width: 160px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* CUPONES */

.checkout-coupon {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}

.checkout-coupon-row {
  display: flex;
  gap: 6px;
}

.checkout-coupon input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(228, 202, 212, 0.9);
  padding: 7px 10px;
  font-size: 0.8rem;
  outline: none;
}

.checkout-coupon input:focus {
  border-color: #f29eb2;
  box-shadow: 0 0 0 1px rgba(242, 158, 178, 0.4);
}

.checkout-coupon-message {
  font-size: 0.7rem;
}

/* TOTALES */

.checkout-totals {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(242, 158, 178, 0.6);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkout-total-final span:last-child {
  font-family: "Poppins", system-ui;
  font-size: 0.95rem;
}

.checkout-summary-note {
  font-size: 0.7rem;
  margin-top: 4px;
}

/* ========================= */
/* CARRUSEL PROMO / FLAYERS  */
/* ========================= */

.promo-carousel {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 22px;
  background: radial-gradient(
    circle at top left,
    #ffeef5 0,
    #fff9f9 40%,
    #f1ece8 100%
  );
  box-shadow: var(--sombra-suave);
  display: flex;
  align-items: stretch;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.promo-track {
  position: relative;
  flex: 1;
  min-height: 230px;
}

.promo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  transform: translateX(10px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(252, 231, 243, 0.95);
  font-size: 0.75rem;
  color: var(--color-texto-suave);
}

.promo-slide h2 {
  font-family: "Poppins", system-ui;
  font-size: 1rem;
}

.promo-slide p {
  font-size: 0.8rem;
  color: var(--color-texto-suave);
  max-width: 520px;
}

.promo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  margin-top: 4px;
}

.promo-meta span {
  color: var(--color-texto-suave);
}

.promo-highlight {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(220, 203, 243, 0.9);
  color: #4b1250;
}

/* Flechas del carrusel centradas verticalmente */
.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  border-radius: 999px;
  border: 1px solid rgba(243, 199, 217, 0.8);
  background: rgba(255, 255, 255, 0.9);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-texto-suave);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.06);
  transition: background 0.15s, transform 0.08s;
}

.promo-nav:hover {
  background: #fff7fb;
  transform: translateY(-50%) scale(1.06);
}

#promo-prev {
  left: 10px;
}

#promo-next {
  right: 10px;
}

.promo-dots {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  bottom: 8px;
  display: inline-flex;
  gap: 6px;
}

.promo-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(243, 199, 217, 0.6);
  cursor: pointer;
  padding: 0;
}

.promo-dot.is-active {
  width: 18px;
  background: #f29eb2;
}

/* ========================= */
/* PANEL ADMIN BLOSSIA       */
/* ========================= */

.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.admin-section {
  padding: 16px 16px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(243, 199, 217, 0.28);
  border: 1px solid rgba(243, 199, 217, 0.6);
}

.admin-form-card {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.admin-field label {
  font-weight: 500;
}

.admin-field input,
.admin-field textarea {
  border-radius: 14px;
  border: 1px solid rgba(228, 202, 212, 0.9);
  padding: 7px 10px;
  font-size: 0.85rem;
  outline: none;
  background: #fff;
  color: var(--color-texto);
}

.admin-field textarea {
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-color: var(--color-rosa-acento);
  box-shadow: 0 0 0 1px rgba(242, 158, 178, 0.4);
}

.admin-field small {
  font-size: 0.75rem;
  color: var(--color-texto-suave);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.admin-hint {
  font-size: 0.78rem;
  color: var(--color-texto-suave);
}

.admin-table-wrapper {
  margin-top: 10px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-table th,
.admin-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(243, 199, 217, 0.5);
  text-align: left;
}

.admin-table th {
  font-family: "Poppins", system-ui;
  font-size: 0.8rem;
  color: var(--color-texto);
}

.admin-table tr:hover {
  background: #fff7fb;
}

/* ========================= */
/* BANNER EN FORMATO TARJETA */
/* ========================= */

.promo-slide--banner {
  display: flex;
  align-items: stretch;
}

.promo-banner-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    #fff5fa 0%,
    #fff9ff 45%,
    #f3e8ff 100%
  );
  border: 1px solid rgba(243, 199, 217, 0.8);
  box-shadow: var(--sombra-suave);
}

.promo-banner-content {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-banner-content h2 {
  font-family: "Poppins", system-ui;
  font-size: 1.1rem;
}

.promo-banner-content p {
  font-size: 0.85rem;
  color: var(--color-texto-suave);
  max-width: 360px;
}

.promo-banner-figure {
  flex: 1;
  max-width: 45%;
  height: 100%;
  max-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: #fbe9f2;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.promo-banner-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ========================= */
/* SECCIÓN DESTACADOS        */
/* ========================= */

.featured-section {
  margin-top: 22px;
  padding: 16px 16px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(243, 199, 217, 0.3);
  border: 1px solid rgba(243, 199, 217, 0.6);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.featured-card {
  background: #fff9fb;
  border-radius: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(243, 199, 217, 0.7);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.featured-card-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.featured-kit-price {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: var(--color-texto-suave);
}

.featured-kit-price strong {
  font-family: "Poppins", system-ui;
  font-size: 0.9rem;
  color: #dd3f7a;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #ffeef5;
  color: #c23f72;
}

.featured-tag-alt {
  background: #dccbf3;
  color: #4b1250;
}

.featured-card h3 {
  font-family: "Poppins", system-ui;
  font-size: 0.9rem;
}

.featured-card p {
  font-size: 0.8rem;
  color: var(--color-texto-suave);
}

.featured-card ul {
  margin-top: 4px;
  padding-left: 16px;
  font-size: 0.78rem;
  color: var(--color-texto-suave);
}

.featured-card li {
  margin-bottom: 2px;
}

.featured-list {
  margin-top: 4px;
}

.featured-list h4 {
  font-family: "Poppins", system-ui;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.featured-list ul {
  padding-left: 16px;
  font-size: 0.78rem;
  color: var(--color-texto-suave);
}

.featured-list li {
  margin-bottom: 3px;
}

/* ========================= */
/* BOTÓN FLOTANTE CARRITO    */
/* ========================= */

.floating-cart-btn {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 60;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #f29eb2, #f3c7d9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 36px rgba(242, 158, 178, 0.7);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: "Poppins", system-ui;
}

.floating-cart-icon {
  font-size: 1rem;
}

.floating-cart-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  color: #dd3f7a;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: opacity 0.15s, transform 0.15s;
}

.floating-cart-count.is-empty {
  opacity: 0;
  transform: scale(0.5);
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */

@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    border-radius: 20px;
  }

  .hero {
    padding: 18px 16px;
  }

  .hero-floating-card,
  .hero-decoration {
    display: none;
  }
}

@media (max-width: 768px) {
  .checkout-panel {
    padding: 14px 12px 14px;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .promo-carousel {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-track {
    min-height: 220px;
  }

  .promo-nav {
    display: none;
  }

  .promo-dots {
    position: static;
    transform: none;
    margin-top: 6px;
    justify-content: center;
  }

  .promo-banner-card {
    flex-direction: column-reverse;
    padding: 14px 12px;
    gap: 10px;
  }

  .promo-banner-figure {
    max-width: 100%;
    width: 100%;
    max-height: 200px;
  }

  .promo-banner-content {
    max-width: 100%;
  }

  .floating-cart-btn {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
  }
}

/* ================================
   Ajuste de imágenes en tarjetas (catálogo / destacados)
   ================================ */

.product-card .product-image {
  width: 100%;
  height: 170px;            /* alto fijo para todas las tarjetas */
  border-radius: 1rem;
  padding: 0.5rem;
  background: #fffdfd;
  border: 1px solid #f3d7f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;         /* por si algo se pasa, no rompe la tarjeta */
}

/* En móviles, un poco más bajito para que no sea tan alta la card */
@media (max-width: 480px) {
  .product-card .product-image {
    height: 150px;
  }
}

.product-card .product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;      /* muestra toda la foto sin recortarla */
  display: block;
}
