/* Base (la usa también el panel, que redefine su propia paleta en admin.css) */
:root {
  --bg: #f5f1fb; --surface: #fff; --ink: #2c1b33; --muted: #75657e; --line: #e4daf0;
  --berry: #d63a6c; --berry-d: #b32a57; --sage: #3f7d5c; --pollen: #f2b134; --warn-bg: #fde6ed; --warn: #a8234f;
  --serif: "Young Serif", Georgia, serif; --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.55; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
button { font: inherit; border: 0; border-radius: 999px; background: var(--berry); color: #fff; padding: 9px 18px; cursor: pointer; font-weight: 700; }
button:hover:not(:disabled) { background: var(--berry-d); }
button:disabled { background: #e3d9ea; color: #8d7e97; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--muted); }
.sub { color: var(--muted); margin: 6px 0 0; }
.banner { padding: 14px 18px; border-radius: 14px; margin: 8px 0 20px; background: var(--surface); border: 1px solid var(--line); }
.banner.warn { background: var(--warn-bg); color: var(--warn); border-color: #f4bfd0; font-weight: 600; }
dialog { border: 0; border-radius: 22px; padding: 24px; max-width: 400px; width: calc(100% - 32px); background: var(--surface); color: var(--ink); }
dialog::backdrop { background: rgba(20, 8, 13, .6); }
dialog label { display: block; margin-top: 14px; font-size: .9rem; color: var(--muted); }
dialog textarea { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; font: inherit; resize: vertical; background: transparent; color: var(--ink); }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; max-width: 90%; z-index: 20; }
.toast.err { background: var(--warn); color: #fff; }

/* ===== Tienda: oscuro, champagne y fotos ===== */
body.shop {
  --bg: #14080d; --surface: #21111a; --ink: #f6ece6; --muted: #bba7ac; --line: #3b2530;
  --berry: #d9b87a; --berry-d: #c2a063; --sage: #a9d1b6; --pollen: #e8c872; --warn-bg: #3a1620; --warn: #ffa9bd;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: Jost, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
}
.shop button { color: #1a0d12; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; font-weight: 600; padding: 11px 22px; }
.shop button:disabled { background: #2c1b24; color: #8b747b; }
.shop button.ghost { color: var(--muted); }
.shop .banner { border-color: var(--line); }
.shop .banner.warn { border-color: #6b2b3d; }

.shop .top { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 5vw, 56px); }
.shop .brand { font: 500 1.35rem var(--serif); letter-spacing: .32em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.shop .panel-link { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--berry); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; transition: filter 1.2s ease; filter: saturate(.55) brightness(.62); }
.hero.done img { filter: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,8,13,.55) 0%, rgba(20,8,13,0) 30%, rgba(20,8,13,.55) 70%, var(--bg) 100%); }
.hero-text { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 120px clamp(20px, 5vw, 56px) 44px; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .98; font-weight: 500; max-width: 12ch; }
.hero h1 em { color: var(--berry); font-weight: 500; }
.hero .sub { max-width: 46ch; font-size: 1rem; }
.garden { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 20px; }
.coin { width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6e2b3, #c79f55 70%); box-shadow: 0 0 0 1px #8f6f33 inset; }
.garden .more { color: var(--berry); font-weight: 500; margin-left: 4px; }

main { max-width: 1120px; margin: 0 auto; padding: 8px clamp(20px, 5vw, 56px) 80px; }
.shop h2 { font-size: 2rem; font-weight: 500; margin: 36px 0 26px; display: flex; align-items: center; gap: 18px; }
.shop h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--berry), transparent); opacity: .5; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px 28px; }
.card { display: flex; flex-direction: column; }
.card .art { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 4px; background: var(--surface); }
.card .art::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(217, 184, 122, .55); border-radius: 2px; pointer-events: none; transition: inset .35s ease; }
.card:hover .art::after { inset: 14px; }
.card .art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.card:hover .art img { transform: scale(1.04); }
.card .art svg { width: 100%; height: 100%; padding: 14px; background: color-mix(in srgb, var(--tint, #d9b87a) 22%, #21111a); }
.card h3 { font-size: 1.7rem; font-weight: 500; margin: 18px 0 2px; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; flex: 1; }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.price { display: flex; align-items: center; gap: 8px; font: 500 1.15rem var(--serif); }

.orders { list-style: none; padding: 0; margin: 0; max-width: 560px; }
.orders li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.st-pending { color: var(--pollen); } .st-confirmed { color: var(--sage); } .st-rejected { color: var(--warn); }
.st-pending, .st-confirmed, .st-rejected { font-weight: 500; }

.shop dialog { border: 1px solid #6a5434; border-radius: 4px; }
.shop dialog h3 { font-size: 1.8rem; font-weight: 500; }
.shop dialog textarea { border-radius: 4px; }

@media (max-width: 560px) { .shop .brand { letter-spacing: .2em; font-size: 1.1rem; } .hero { min-height: 68vh; } }
@media (prefers-reduced-motion: reduce) { .hero img, .card .art img, .card .art::after { transition: none; } }
