/* Sitio público: catálogo + carrito */
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 242, 241, .9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--pink-deep); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px;
  background: var(--pink-strong); color: #fff; padding: 10px 16px; font-weight: 700; min-height: 44px;
  box-shadow: 0 6px 16px rgba(236, 126, 166, .3);
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  background: #fff; color: var(--pink-deep); border-radius: 999px; min-width: 24px; height: 24px; padding: 0 6px;
  display: inline-grid; place-items: center; font-size: 13px;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- Burbujas decorativas ---------- */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubbles i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--c); opacity: .55;
}
.sparkle { position: absolute; color: var(--pink); font-size: 34px; pointer-events: none; }
.sparkle--a { top: 40px; right: 18%; }
.sparkle--b { bottom: 50px; left: 12%; font-size: 26px; color: var(--lilac-deep); }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); padding: 56px 0 64px; }
.hero-inner { position: relative; text-align: center; max-width: 760px; }
.hero-script {
  font-family: var(--font-script); color: var(--pink-strong); font-size: clamp(76px, 15vw, 150px);
  line-height: .9; margin: 0;
}
.hero-title {
  font-family: var(--font-serif); font-weight: 700; color: var(--ink); font-size: clamp(22px, 4vw, 32px);
  margin: 10px 0 4px; letter-spacing: .02em;
}
.hero-sub { margin: 0; color: var(--ink-soft); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.hero-welcome {
  margin: 30px auto 0; background: var(--blush); border-radius: var(--radius); padding: 22px 24px; max-width: 620px;
}
.hero-welcome h2 {
  font-family: var(--font-sans); color: var(--pink-strong); margin: 0 0 6px; font-size: 26px; font-weight: 700;
  display: inline-block; background: linear-gradient(transparent 70%, var(--pink-soft) 70%);
}
.hero-welcome p { margin: 0; color: var(--pink-deep); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- Encabezados de sección ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.section-title {
  font-family: var(--font-serif); color: var(--pink-strong); font-size: clamp(28px, 4.4vw, 40px);
  margin: 0 0 10px; font-weight: 700;
}
.section-title::after {
  content: ''; display: block; width: 120px; height: 6px; border-radius: 6px; margin: 10px auto 0;
  background: var(--pink-soft);
}
.section-lead { margin: 0; color: var(--ink-soft); }

/* ---------- Catálogo ---------- */
.catalog { padding: 64px 0 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; max-width: 100%; }
.chip {
  flex: none; border: 2px solid var(--pink-soft); background: var(--white); color: var(--pink-deep);
  border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 40px;
}
.chip[aria-selected="true"] { background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--line);
  border-radius: 999px; padding: 0 14px; min-width: min(280px, 100%); flex: 1 1 220px; max-width: 340px;
}
.search svg { width: 18px; height: 18px; color: var(--ink-soft); flex: none; }
.search input { border: 0; outline: 0; background: transparent; padding: 10px 0; width: 100%; }
.search:focus-within { border-color: var(--pink-strong); }

.cat-section { margin-bottom: 46px; }
.cat-title {
  font-family: var(--font-serif); color: var(--pink-strong); font-weight: 400; text-align: center;
  font-size: clamp(24px, 3.6vw, 34px); margin: 0 0 22px;
}
.cat-title span { color: #f3c04f; }

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

.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--pink);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; cursor: pointer; text-align: left;
  border: 0; padding: 0; color: #fff;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--blush-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); color: var(--pink-deep);
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px;
}
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card-name {
  font-family: var(--font-serif); font-weight: 700; font-size: 17px; margin: 0; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; line-height: 1.35;
}
.card-desc {
  margin: 0; font-size: 14px; line-height: 1.5; opacity: .96;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font-family: var(--font-serif); font-weight: 900; font-size: 26px; line-height: 1; }
.price small { display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; opacity: .9; }
.add-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: #fff;
  color: var(--pink-deep); font-weight: 700; font-size: 13.5px; padding: 9px 14px; cursor: pointer; min-height: 40px;
}
.add-btn svg { width: 16px; height: 16px; }
.add-btn:hover { background: #fff7fa; }

.empty, .loading { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* ---------- Detalle de producto ---------- */
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.pm-media { background: var(--blush-2); }
.pm-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.pm-info { background: var(--pink); color: #fff; padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.pm-cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin: 0; }
.pm-name {
  font-family: var(--font-serif); font-size: 26px; margin: 0; text-transform: uppercase; line-height: 1.25;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px;
}
.pm-desc { margin: 0; font-size: 15px; }
.pm-extra { margin: 0; font-size: 14px; }
.pm-extra b { font-weight: 700; }
.pm-note { margin: 0; font-size: 14px; font-weight: 700; }
.pm-options { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pm-options legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.opt {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .22); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; border: 2px solid transparent; font-size: 14px;
}
.opt:has(input:checked) { background: #fff; color: var(--pink-deep); border-color: #fff; }
.opt input { accent-color: var(--pink-deep); width: 18px; height: 18px; flex: none; }
.opt span { flex: 1; }
.opt b { font-family: var(--font-serif); white-space: nowrap; }
.pm-buy { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 10px; }
.pm-total { font-family: var(--font-serif); font-weight: 900; font-size: 32px; line-height: 1; }
.pm-buy .btn { flex: 1 1 200px; background: #fff; color: var(--pink-deep); box-shadow: none; }
.pm-buy .btn:hover { background: #fff7fa; }

.qty {
  display: inline-flex; align-items: center; background: #fff; border-radius: 999px; overflow: hidden; color: var(--pink-deep);
}
.qty button { border: 0; background: transparent; width: 38px; height: 40px; font-size: 20px; font-weight: 700; cursor: pointer; color: inherit; }
.qty input {
  width: 54px; border: 0; text-align: center; font-weight: 700; background: transparent; padding: 0; height: 40px;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 32px; height: 34px; font-size: 17px; }
.qty--sm input { width: 42px; height: 34px; font-size: 14px; }
.qty--outline { border: 2px solid var(--line); }

/* ---------- Proceso ---------- */
.process {
  background: linear-gradient(160deg, var(--mauve) 0%, #b07a9f 55%, var(--pink) 100%);
  color: #fff; padding: 64px 0;
}
.process-title {
  font-family: var(--font-serif); font-weight: 400; text-align: center; font-size: clamp(30px, 5vw, 46px); margin: 0 0 30px;
}
.process-title::after { content: ''; display: block; width: 180px; height: 6px; border-radius: 6px; margin: 8px auto 0; background: #f8c9c4; }
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 980px; }
.steps li { display: flex; gap: 16px; align-items: stretch; }
.step-n {
  flex: none; width: 78px; display: grid; place-items: center; background: #fff; border-radius: 22px;
  font-family: var(--font-serif); font-size: 40px; color: var(--pink-strong);
}
.steps li > div { background: #fff; color: var(--pink-deep); border-radius: 22px; padding: 16px 20px; flex: 1; }
.steps h3 {
  margin: 0 0 6px; font-family: var(--font-serif); font-weight: 400; font-size: 19px; color: var(--pink-strong);
  text-decoration: underline; text-underline-offset: 4px;
}
.steps p { margin: 0; font-size: 14.5px; }

/* ---------- Importante ---------- */
.important { padding: 64px 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.info-card::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 110px; height: 110px; border-radius: 50%;
  background: var(--blush-2); opacity: .7;
}
.info-icon {
  position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 2px solid var(--pink-soft); color: var(--pink-strong); margin-bottom: 12px; background: #fff8f7;
}
.info-icon svg { width: 26px; height: 26px; }
.info-card h3 {
  position: relative; z-index: 1; margin: 0 0 8px; font-family: var(--font-serif); color: var(--pink-strong);
  font-size: 18px; text-decoration: underline; text-underline-offset: 4px;
}
.info-card p { position: relative; z-index: 1; margin: 0; color: var(--pink-deep); font-size: 14.5px; }
.info-card--thanks { background: var(--pink); }
.info-card--thanks .info-icon { background: #fff; border-color: #fff; }
.info-card--thanks h3, .info-card--thanks p { color: #fff; }

/* ---------- Pie ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--white); padding: 56px 0 30px; text-align: center; }
.footer-inner { position: relative; }
.footer-script { font-family: var(--font-script); color: var(--pink-strong); font-size: clamp(64px, 12vw, 110px); line-height: .9; margin: 0 0 10px; }
.logo--footer { justify-content: center; }
.footer-text { max-width: 520px; margin: 16px auto 18px; color: var(--ink-soft); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.footer-small { margin: 28px 0 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- Carrito (cajón lateral) ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(90, 59, 75, .4); z-index: 50; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--blush); z-index: 55;
  display: flex; flex-direction: column; transform: translateX(105%); transition: transform .28s ease;
  box-shadow: -20px 0 50px rgba(90, 59, 75, .2);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--white); border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--font-serif); color: var(--pink-strong); font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 24px; }

.cart-items { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 68px 1fr; gap: 12px; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow-sm); }
.cart-item img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; }
.ci-top { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }
.ci-name { margin: 0; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.ci-opt { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.ci-remove { border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; padding: 2px; border-radius: 6px; flex: none; }
.ci-remove svg { width: 18px; height: 18px; }
.ci-remove:hover { color: var(--danger); }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.ci-sub { font-family: var(--font-serif); font-weight: 700; color: var(--pink-deep); }
.ci-min { font-size: 11.5px; color: var(--ink-soft); width: 100%; margin-top: -2px; }

.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; border-top: 2px dashed var(--pink-soft); margin-bottom: 8px; }
.cart-total span { font-weight: 700; }
.cart-total b { font-family: var(--font-serif); font-size: 26px; color: var(--pink-deep); }
.cart-note { font-size: 13px; color: var(--ink-soft); background: #fff; border-radius: 12px; padding: 10px 12px; margin: 0 0 16px; }
.cart-form h3 { font-family: var(--font-serif); color: var(--pink-strong); font-size: 18px; margin: 6px 0 12px; }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--ink-soft); }
.cart-empty svg { width: 64px; height: 64px; color: var(--pink-soft); margin: 0 auto 10px; }
.cart-done { text-align: center; padding: 30px 6px; }
.cart-done .big { font-family: var(--font-script); font-size: 64px; color: var(--pink-strong); line-height: 1; margin: 0; }
.cart-done p { color: var(--ink-soft); }
.cart-done .btn-block { margin-top: 10px; }
.cart-done .form-error { margin: 10px 0 0; }
.btn-link { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; padding: 6px; cursor: pointer; font: inherit; font-size: 13px; }
.btn-link:hover { color: var(--pink-deep); }
.field > .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
  .pm-media img { max-height: 46vh; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-inner { justify-content: space-between; min-height: 64px; }
  .logo-script { font-size: 32px; }
  .logo-sub { font-size: 9px; }
  .cart-btn span:not(.cart-count) { display: none; }
}
@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 12px; }
  .card-name { font-size: 13.5px; }
  .card-desc { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .price { font-size: 20px; }
  .add-btn { justify-content: center; }
  .pm-info { padding: 24px 18px; }
  .pm-name { font-size: 21px; }
  .step-n { width: 58px; font-size: 30px; border-radius: 16px; }
  .search { max-width: none; }
  .two-col { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Categoría activa que aún no tiene productos */
.cat-soon { text-align: center; color: var(--ink-soft); background: #fff; border-radius: 16px; padding: 22px 16px; margin: 0; box-shadow: var(--shadow-sm); }

/* ---------- Varias fotos y aromas ---------- */
.card-media { position: relative; }
.photo-count {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .92); color: var(--pink-deep); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.photo-count svg { width: 14px; height: 14px; }
.card-aromas { margin: 2px 0 0; font-size: 12px; font-weight: 700; color: var(--pink-deep); }
.pm-media { position: relative; display: flex; flex-direction: column; }
.pm-media > img { flex: 1; min-height: 0; }
.pm-nav {
  position: absolute; top: calc(50% - 40px); width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--pink-deep); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); padding: 0;
}
.pm-nav:hover { background: #fff; }
.pm-nav svg { width: 20px; height: 20px; }
.pm-prev { left: 10px; }
.pm-next { right: 10px; }
.pm-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: var(--blush-2); scrollbar-width: thin; }
.pm-thumbs button { flex: none; width: 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; opacity: .7; }
.pm-thumbs button[aria-selected="true"] { border-color: var(--pink-deep); opacity: 1; }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-aromas { border: 0; padding: 0; margin: 4px 0 0; }
.pm-aromas legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.aroma-list { display: flex; flex-wrap: wrap; gap: 8px; }
.aroma {
  display: inline-flex; align-items: center; background: rgba(255, 255, 255, .22); border: 2px solid transparent; border-radius: 999px;
  padding: 7px 14px; cursor: pointer; font-size: 14px; font-weight: 600;
}
.aroma input { position: absolute; opacity: 0; pointer-events: none; }
.aroma:has(input:checked) { background: #fff; color: var(--pink-deep); border-color: #fff; }
.aroma:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.pm-aroma-error { margin: 6px 0 0; font-size: 13px; font-weight: 700; min-height: 0; }
.pm-aroma-error:empty { display: none; }
.ci-aroma {
  margin-top: 4px; max-width: 100%; font: inherit; font-size: 13px; color: var(--pink-deep); background: var(--blush);
  border: 1px solid var(--pink-soft); border-radius: 8px; padding: 4px 6px;
}
.ci-aroma.is-missing { border-color: #c0392b; background: #fff3f3; }
