:root {
  --paper: #f3eee6;
  --ink: #1c1916;
  --muted: #5e584f;
  --card: #fffcf7;
  --line: rgba(28, 25, 22, 0.14);
  --copper: #b64a28;
  --sea: #1b656c;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(182, 74, 40, 0.14), transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}

a { color: inherit; }

img { max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  min-height: 64px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  text-decoration: none;
}

.bar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.bar nav a.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}

.bar nav a.lang svg {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line);
}

.bar nav a.contact {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.bar nav a, .bar button, .quiet-button {
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  color: var(--muted);
  cursor: pointer;
}

.bar form { margin: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 28px 0 12px; }

h2 { font-size: 1.6rem; margin: 0 0 8px; }

.intro p, .lede { max-width: 42rem; }

.reach {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  max-width: 46rem;
}

.reach li { display: flex; gap: 8px; align-items: baseline; }

.reach span { color: var(--muted); }

.reach a { font-weight: 600; }

.lede { color: var(--muted); }

.search { margin: 28px 0 14px; }

.search label {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 1.25rem;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

button.category {
  min-height: 38px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.category.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card > a img, .gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7e0d6;
}

.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.card h2 { font-size: 1.45rem; }

.card h2 a, .detail h1 { text-decoration: none; }

.meta, .until, .muted { color: var(--muted); margin: 0; font-size: 0.95rem; }

.price { margin: 0; font-weight: 600; }

.price span, .lines span { font-weight: 400; color: var(--muted); }

.deal, .flag, .warn {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.82rem;
  font-weight: 600;
}

.deal { background: var(--copper); color: #fff; }

.flag { background: rgba(27, 101, 108, 0.14); color: var(--sea); }

.warn { color: var(--copper); }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.card button { margin-top: auto; align-self: flex-start; }

.quiet-button { min-height: 0; padding: 0; background: none; color: var(--muted); border-radius: 0; }

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(27, 101, 108, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
}

.status p { margin: 0; }

.status-big {
  margin: 8px 0 22px;
  padding: 28px 26px;
  border: 2px solid var(--sea);
  background: #e5f2f1;
  border-radius: 18px;
}

.status-big p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}

.status-close {
  min-height: 0;
  padding: 8px 14px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  flex: none;
}

.swal2-popup.sale-alert { font-family: var(--sans); border-radius: 18px; }

.swal2-popup.sale-alert .swal2-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.empty { color: var(--muted); }

.detail, .stack { max-width: 42rem; }

.gallery {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px;
  overflow-x: auto;
}

.gallery img {
  flex: 0 0 180px;
  width: 180px;
  height: 140px;
  border-radius: 18px;
  aspect-ratio: auto;
  max-height: none;
  object-fit: cover;
  background: #e7e0d6;
}

.gallery img.main-photo { flex-basis: min(100%, 420px); width: min(100%, 420px); height: 320px; }

.description { white-space: normal; margin: 16px 0; }

.lines { list-style: none; padding: 0; margin: 16px 0 22px; }

.lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.lines div { display: flex; flex-direction: column; }

.stack label, .stack fieldset { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }

.stack input, .stack select, .stack textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 10px 12px;
}

.stack label span { color: var(--muted); font-size: 0.9rem; }

.check { flex-direction: row !important; align-items: center; gap: 8px; }

.check input { width: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }

.errors {
  background: rgba(182, 74, 40, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
}

.narrow { max-width: 28rem; }

.foot { text-align: center; color: var(--muted); padding: 28px 0 40px; }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }

.table-wrap { overflow-x: auto; margin: 12px 0 28px; }

table { width: 100%; border-collapse: collapse; }

th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

.actions { display: flex; gap: 12px; }

.actions form { margin: 0; }

.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 10px;
}

.thing { display: flex; align-items: center; gap: 10px; }

.row-thumb { width: 48px; height: 36px; object-fit: cover; border-radius: 8px; flex: none; background: #e7e0d6; }

.photo-note { color: var(--muted); margin: 0; }

.photo-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.photo-card {
  position: relative;
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: grab;
}

.photo-card img {
  width: 150px;
  height: 112px;
  object-fit: cover;
  border-radius: 12px;
  background: #e7e0d6;
}

.photo-main {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-login {
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 30;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
}

.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 8px; padding: 6px 0; }

.facts dt { color: var(--muted); }

.danger { margin-top: 18px; }

.back { margin-top: 22px; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

@media (max-width: 640px) {
  .split, .facts div { grid-template-columns: 1fr; }
}
