/* =========================================================
   Dulce Pastel · tienda en línea (demo)
   ========================================================= */

:root {
  --green: #6a7f54;
  --green-tint: #e9eee2;
  --forest: #2f3a27;
  --ink: #2b2a26;
  --ink-soft: #5d5a52;
  --cream: #fdf6ec;
  --sand: #f3e9da;
  --rose: #d9a59a;
  --rose-deep: #b9776a;
  --line: rgba(47, 58, 39, .14);
  --white: #fff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Josefin Sans", system-ui, sans-serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.1; margin: 0 0 .4em; }
h1 em { font-style: italic; font-weight: 400; color: var(--green); }
p { margin: 0 0 1em; }
.eyebrow { margin: 0 0 12px; font-family: var(--caps); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--forest); border-radius: 40px;
  background: var(--forest); color: var(--white);
  font-family: var(--caps); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--green); border-color: var(--green); }
.btn--full { width: 100%; }
.btn--line { background: transparent; color: var(--forest); }
.btn--line:hover { color: var(--white); }

/* ---------- Barra ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: rgba(253, 246, 236, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; gap: 20px; width: min(1200px, 100% - 48px); margin: 0 auto; height: 72px; }
.bar__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.bar__logo img { width: 42px; }
.bar__logo span { font-family: var(--caps); letter-spacing: .22em; text-transform: uppercase; font-size: .82rem; color: var(--forest); }
.bar__logo small { color: var(--rose-deep); font-size: inherit; }
.pickup { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.pickup span { font-family: var(--caps); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.pickup select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); color: var(--ink); }
.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--forest); color: var(--white); }
.cart-btn span { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rose-deep); font-size: .72rem; line-height: 22px; text-align: center; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.15); } }

/* ---------- Banner ---------- */
.banner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 50px; width: min(1200px, 100% - 48px); margin: 40px auto 0; padding: 50px; background: var(--sand); border-radius: 14px; }
.banner h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.banner__img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; max-height: 380px; }
.perks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: var(--white); font-weight: 400; font-size: .8rem; }

/* ---------- Catálogo ---------- */
.shop { width: min(1200px, 100% - 48px); margin: 0 auto; padding: 40px 0 70px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 9px 18px; border: 1px solid var(--line); border-radius: 30px; background: var(--white); color: var(--ink); font-size: .88rem; transition: .3s var(--ease); }
.filters button.is-active { background: var(--forest); border-color: var(--forest); color: var(--white); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod { display: flex; flex-direction: column; background: var(--white); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.prod:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(47, 58, 39, .35); }
.prod__img { position: relative; aspect-ratio: 1; background: var(--sand); }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 20px; background: var(--rose-deep); color: var(--white); font-family: var(--caps); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; }
.prod__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.prod h3 { font-size: 1.35rem; margin-bottom: 4px; }
.prod p { font-size: .86rem; margin-bottom: 14px; }
.prod__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.prod__price { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); font-weight: 500; }
.prod__add { padding: 9px 16px; border: 0; border-radius: 30px; background: var(--green-tint); color: var(--forest); font-family: var(--caps); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; transition: .3s var(--ease); }
.prod__add:hover { background: var(--forest); color: var(--white); }

/* Tarjeta de regalo hecha con CSS */
.giftcard { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 30% 20%, #8a9c76, var(--forest)); }
.giftcard div { width: 72%; aspect-ratio: 1.6; border-radius: 12px; padding: 14px; background: var(--cream); display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 20px 30px -14px rgba(0, 0, 0, .45); transform: rotate(-6deg); }
.giftcard img { width: 38px; }
.giftcard b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--forest); text-align: right; }

.disclaimer { margin-top: 30px; font-size: .8rem; text-align: center; }

/* ---------- Carrito ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(43, 42, 38, .4); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(430px, 100%);
  display: flex; flex-direction: column;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform .45s var(--ease);
}
.drawer.is-open { transform: none; box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .35); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.8rem; margin: 0; }
.x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sand); font-size: 1.4rem; line-height: 1; color: var(--ink); }
.step { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; }
.step[hidden] { display: none; }
form.step { padding: 22px 24px; }

.items { flex: 1; padding: 10px 24px; }
.empty { padding: 50px 10px; text-align: center; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item img, .item .giftcard { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.item .giftcard div { width: 80%; padding: 4px; border-radius: 4px; }
.item .giftcard img { width: 12px; height: auto; }
.item .giftcard b { font-size: .6rem; }
.item h3 { font-size: 1.1rem; margin: 0 0 4px; }
.item__price { font-family: var(--serif); font-size: 1.15rem; color: var(--forest); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.qty button { width: 28px; height: 28px; border: 0; background: none; color: var(--ink); }
.qty span { min-width: 20px; text-align: center; font-size: .9rem; }
.item__msg { grid-column: 2 / -1; }
.item__msg input { width: 100%; padding: 8px 10px; border: 1px dashed var(--green); border-radius: 6px; background: var(--white); font-size: .85rem; }
.item__rm { border: 0; background: none; color: var(--rose-deep); font-size: .78rem; padding: 0; margin-top: 6px; text-decoration: underline; }

.drawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--white); }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer label { display: grid; gap: 5px; margin-bottom: 12px; font-family: var(--caps); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.drawer input:not([type="radio"]), .drawer select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-family: var(--sans); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.drawer .is-invalid { border-color: var(--rose-deep) !important; background: #fff6f4 !important; }
.where { font-size: .88rem; margin: 2px 0 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 16px; }
.total strong { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; color: var(--forest); }

.back { align-self: flex-start; border: 0; background: none; padding: 0; margin-bottom: 18px; color: var(--green); font-size: .88rem; }
.pay { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px 6px; margin: 4px 0 14px; }
.pay legend { padding: 0 6px; font-family: var(--caps); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.drawer .opt { display: flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: .95rem; letter-spacing: 0; text-transform: none; }
.demo-note { font-size: .8rem; padding: 10px 12px; border-radius: 6px; background: var(--sand); }
.err { color: var(--rose-deep); font-size: .88rem; margin: 10px 0 0; min-height: 1.2em; }

.done { padding: 40px 28px; text-align: center; align-items: center; }
.done__icon { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 18px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 2rem; }
.done h3 { font-size: 2rem; }
.ticket { width: 100%; margin: 10px 0 18px; padding: 20px; border: 2px dashed var(--green); border-radius: 10px; background: var(--white); }
.ticket span { display: block; font-family: var(--caps); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.ticket strong { font-family: var(--serif); font-size: 2.4rem; font-weight: 500; letter-spacing: .06em; color: var(--forest); }
.small { font-size: .85rem; }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; transform: translate(-50%, 200%); visibility: hidden; padding: 12px 22px; border-radius: 30px; background: var(--forest); color: var(--white); font-size: .9rem; transition: transform .4s var(--ease), visibility 0s .4s; white-space: nowrap; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .4s var(--ease); }
/* con la barra de la propuesta (celular) el aviso sube */
body:has(.pnav) .toast { bottom: 90px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .banner { grid-template-columns: 1fr; padding: 36px; gap: 28px; }
  .banner__img { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .bar__in { width: calc(100% - 24px); gap: 10px; height: 64px; }
  .bar__logo span { display: none; }
  .pickup span { display: none; }
  .pickup select { max-width: 190px; font-size: .8rem; }
  .banner { width: calc(100% - 24px); margin-top: 16px; padding: 24px 20px; }
  .shop { width: calc(100% - 24px); }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 22px; padding: 0 12px; scrollbar-width: none; }
  .filters button { flex: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod__body { padding: 12px 12px 14px; }
  .prod h3 { font-size: 1.1rem; }
  .prod p { display: none; }
  .prod__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .prod__price { font-size: 1.25rem; }
}
