:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #eeece7;
  --text: #191919;
  --muted: #6f6c66;
  --line: #e3e0d9;
  --accent: #191919;
  --accent-text: #ffffff;
  --green: #2e7d4f;
  --amber: #9a5b00;
  --amber-bg: #fcefd9;
  --danger: #b3261e;
  --tint-blue: #2f63c9;
  --tint-violet: #6d4fd6;
  --tint-rose: #c4365f;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px rgb(0 0 0 / 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1b1b1a;
    --surface-2: #252523;
    --text: #f1f0ec;
    --muted: #a29f98;
    --line: #302f2c;
    --accent: #f1f0ec;
    --accent-text: #111110;
    --green: #5cc58a;
    --amber: #f0b45a;
    --amber-bg: #3a2a12;
    --danger: #f2867f;
    --tint-blue: #7fa6f5;
    --tint-violet: #a993f5;
    --tint-rose: #f08aa8;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 1360px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#catalog { scroll-margin-top: 76px; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; min-width: 0; }
.brand img { border-radius: 9px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.25s; }
/* The title is already huge in the hero; it shows up in the bar once the hero scrolls away. */
.topbar:not(.scrolled) .brand span { opacity: 0; }

/* ---------- hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 28px 0 56px; }
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -30%;
  right: -15%;
  width: 75%;
  height: 150%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--amber-bg) 85%, transparent), transparent);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero-inner.solo { grid-template-columns: minmax(0, 1fr); }
.hero h1 {
  font-size: clamp(44px, 7.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 18px;
}
.subtitle { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-actions .btn { display: inline-flex; align-items: center; }

.hero-mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(340px, 38vw, 480px); }
.hero-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero-mosaic.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 22px; background: var(--surface-2); box-shadow: var(--shadow); min-height: 0; }
.hero-mosaic.n3 .tile:first-child { grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) { .tile:hover img { transform: scale(1.05); } }
/* Each tile stacks layers: the new photo fades in over the old one, then the old layer is removed. */
.tile-layer {
  position: absolute;
  inset: 0;
  transition: opacity 0.8s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.8s ease;
}
.tile-layer.entering { opacity: 0; transform: scale(1.1); filter: blur(8px); }
.tile-layer.leaving { transform: scale(0.97); filter: blur(2px); }
@media (prefers-reduced-motion: reduce) {
  .tile-layer { transition: opacity 0.6s ease; }
  .tile-layer.entering,
  .tile-layer.leaving { transform: none; filter: none; }
}
.tile-price {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}

@media (max-width: 859px) {
  .hero { padding: 12px 0 36px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-mosaic,
  .hero-mosaic.n3 { height: 180px; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 1fr; }
  .hero-mosaic.n2 { grid-template-columns: 1fr 1fr; }
  .hero-mosaic.n3 .tile:first-child { grid-row: auto; }
  .tile { border-radius: 16px; }
  .tile-price { left: 8px; bottom: 8px; font-size: 12px; padding: 4px 9px; }
}
@media (max-width: 480px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { justify-content: center; }
}

/* ---------- rules ---------- */

.rules { margin: 0 0 32px; }
.rules-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rule {
  --tint: var(--text);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: border-color 0.25s, transform 0.25s;
}
@media (hover: hover) { .rule:hover { border-color: color-mix(in srgb, var(--tint) 35%, var(--line)); transform: translateY(-2px); } }
.rule-delivery { --tint: var(--tint-blue); }
.rule-calendar { --tint: var(--tint-violet); }
.rule-reserve { --tint: var(--amber); }
.rule-payment { --tint: var(--green); }
.rule-price { --tint: var(--tint-rose); }
.rule-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 13%, transparent);
}
.rule-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rule b { display: block; font-size: 17px; line-height: 1.25; letter-spacing: -0.015em; }
.rule p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 560px) {
  .rules-list { gap: 10px; }
  .rule { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 18px; }
  .rule-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; }
  .rule-icon svg { width: 22px; height: 22px; }
  .rule b { font-size: 16px; }
}

/* ---------- terms ---------- */

.terms {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 24px;
  margin: 0 0 40px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.terms .section-title { margin: 3px 0 0; }
.terms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.terms-list li { position: relative; padding-left: 30px; }
.terms-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%232e7d4f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
@media (max-width: 719px) {
  .terms { grid-template-columns: minmax(0, 1fr); padding: 18px; }
}

/* ---------- toolbar ---------- */

.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
@media (min-width: 720px) {
  /* Stays under the top bar while scrolling, so filters and search are always at hand. */
  .toolbar {
    position: sticky;
    top: 60px;
    z-index: 20;
    flex-direction: row;
    align-items: center;
    margin: 0 -12px 20px;
    padding: 10px 12px;
    border-radius: 0 0 18px 18px;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}
.search { position: relative; display: flex; align-items: center; flex: none; }
.search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 16px 9px 40px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}
.search input:focus { border-color: var(--text); }
@media (min-width: 720px) { .search { width: 220px; } .search input { font-size: 15px; } }
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 2px 16px;
  min-width: 0;
}
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .chips { margin: 0; padding: 0 24px 0 0; flex: 1; }
  .toolbar .chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
}
.chip {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed='true'] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.chip .count { opacity: 0.55; margin-left: 6px; font-weight: 500; }
.filters { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-left: auto; width: 100%; }
@media (min-width: 720px) { .filters { width: auto; justify-content: flex-end; } }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  padding: 8px 36px 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- grid ---------- */

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head .section-title { margin: 0; }
.view-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.view-switch button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.view-switch button:hover { color: var(--text); }
.view-switch button[aria-pressed='true'] { background: var(--accent); color: var(--accent-text); }
.view-switch svg { width: 15px; height: 15px; fill: currentColor; }

/* Columns per row for each card size (large / medium / small), per screen width. */
.grid { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 28px 14px; padding-bottom: 72px; }
.grid.size-large { --cols: 1; }
.grid.size-small { --cols: 3; gap: 20px 8px; }
@media (min-width: 720px) {
  .grid { --cols: 3; gap: 40px 24px; }
  .grid.size-large { --cols: 2; }
  .grid.size-small { --cols: 4; gap: 28px 14px; }
}
@media (min-width: 1040px) {
  .grid { --cols: 4; }
  .grid.size-large { --cols: 3; gap: 48px 28px; }
  .grid.size-small { --cols: 6; }
}
.card-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.card-prices .old-price { font-size: 14px; }
.is-sale { color: var(--tint-rose); }
.card.is-sold .card-prices .is-sale { color: var(--muted); }
.card.is-sold .card-prices .old-price { display: none; }
.badge.discount { left: auto; right: 10px; background: var(--tint-rose); color: #fff; }
.card-photo:has(.badge.discount) .badge:not(.discount):not(.pickup) { max-width: calc(100% - 78px); }
.save.sale { color: var(--tint-rose); background: color-mix(in srgb, var(--tint-rose) 14%, transparent); }
.grid.size-small .badge.discount { left: auto; right: 7px; }
.grid.size-small .card-prices .old-price { font-size: 12px; }
.grid.size-large .card-price { font-size: 20px; }
.grid.size-large .card-title { font-size: 16px; }
.grid.size-small .card-body { padding-top: 8px; }
.grid.size-small .card-price { font-size: 15px; }
.grid.size-small .card-title { font-size: 13px; }
.grid.size-small .card-meta { display: none; }
.grid.size-small .badge { top: 7px; left: 7px; padding: 3px 8px; font-size: 11px; max-width: calc(100% - 14px); }
.grid.size-small .badge.pickup { top: auto; bottom: 7px; }
.grid.size-small .badge-icon { display: none; }

.card { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); }
.card:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.card-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); transition: box-shadow 0.3s; }
@media (hover: hover) { .card:hover .card-photo, .bundle-card:hover .bundle-photo { box-shadow: var(--shadow); } }
.bundle-photo { transition: box-shadow 0.3s; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (hover: hover) { .card:hover .card-photo img { transform: scale(1.04); } }
.card-body { padding: 12px 2px 0; }
.card-price { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.card-title {
  font-size: 15px;
  font-weight: 500;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--amber-bg);
  color: var(--amber);
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge.sold { background: var(--accent); color: var(--accent-text); }
.badge.pickup {
  top: auto;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
.badge-icon { width: 12px; height: 12px; flex: none; }
.badge.count {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
.card.is-sold .card-photo img { filter: grayscale(1); opacity: 0.45; }
.card.is-sold .card-price { text-decoration: line-through; color: var(--muted); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 44px; font-weight: 800; opacity: 0.5; }

/* ---------- bundles ---------- */

.bundles { margin-bottom: 40px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin: 0 0 14px; }
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
@media (max-width: 719px) {
  .bundle-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 4px;
  }
  .bundle-grid::-webkit-scrollbar { display: none; }
  .bundle-card { scroll-snap-align: start; }
}
.bundle-card { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); }
.bundle-card:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.bundle-photo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.bundle-prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.bundle-items { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.old-price { color: var(--muted); font-weight: 600; font-size: 0.8em; }
.save {
  align-self: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
  padding: 2px 8px;
  border-radius: 999px;
}

.collage { display: grid; gap: 2px; width: 100%; height: 100%; }
.collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.collage.n2 { grid-template-columns: 1fr 1fr; }
.collage.n3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.collage.n3 img:first-child { grid-row: span 2; }
.collage.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage .noimg { font-size: 40px; }

.empty { text-align: center; color: var(--muted); padding: 64px 0 96px; font-size: 17px; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 24px; padding-bottom: 40px; }
.foot a { font-weight: 600; color: var(--text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- item dialog ---------- */

dialog.sheet {
  padding: 0;
  border: 0;
  background: var(--surface);
  color: var(--text);
  width: min(1000px, calc(100% - 48px));
  max-width: none;
  height: min(700px, calc(100dvh - 48px));
  max-height: none;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
dialog.sheet::backdrop { background: rgb(10 10 10 / 0.55); backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: pop 0.22s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.sheet-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: 100%; }
.sheet-photo { position: relative; background: var(--surface-2); }
.sheet-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sheet-info { padding: 44px 36px 32px; overflow-y: auto; }
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
@media (max-width: 719px) {
  dialog.sheet { width: 100%; height: 100dvh; margin: 0; border-radius: 0; }
  dialog.sheet[open] { animation: rise 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .sheet-inner { display: block; overflow-y: auto; }
  .sheet-photo { aspect-ratio: 1 / 1; }
  .sheet-info { padding: 22px 16px 40px; overflow: visible; }
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding-right: 36px; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.available { color: var(--green); }
.tag.reserved { background: var(--amber-bg); color: var(--amber); }
.tag.sold { background: var(--accent); color: var(--accent-text); }
.tag.pickup { color: var(--text); }
.sheet-info h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 800; padding-right: 32px; }
.sheet-price { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 18px; }
.desc { white-space: pre-line; margin: 0 0 26px; }
.sheet-photo .collage { position: absolute; inset: 0; }
.sheet-photo .collage img { position: static; object-fit: cover; }
.sheet-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.sheet-price .old-price { font-size: 18px; }

.d-list { display: grid; gap: 8px; margin: 0 0 24px; }
.d-list-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.d-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.d-item:hover { background: var(--surface-2); }
.d-item img, .d-item .noimg { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--surface-2); font-size: 18px; }
.d-item-title { font-weight: 600; font-size: 14px; }
.d-item-price { font-weight: 700; font-size: 14px; color: var(--muted); }
.bundle-hint {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.2s;
}
.bundle-hint:hover { border-color: var(--text); }

.actions { display: grid; gap: 10px; }
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.1s, opacity 0.2s, border-color 0.2s;
}
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.primary:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: progress; }
.notice { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 600; }

form.req { display: grid; gap: 14px; }
.form-head { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--text); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.hint { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.form-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); font-size: 14px; font-weight: 600; }
.form-error { color: var(--danger); font-weight: 600; font-size: 14px; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.success { text-align: center; padding: 28px 8px 8px; }
.success-icon { font-size: 48px; line-height: 1; margin-bottom: 14px; }
.success h3 { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; }
.success p { color: var(--muted); margin: 0 0 24px; }
.success .success-note { color: var(--text); font-weight: 700; margin-top: -12px; }
.success .tg-btn { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 auto 10px; max-width: 320px; background: #2a9ee8; border-color: #2a9ee8; color: #fff; }
.success .success-hint { font-size: 13px; margin: 0 auto 20px; max-width: 320px; }
.success .pending-status { color: var(--amber); font-weight: 600; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 32px);
  transform: translate(-50%, 16px);
  opacity: 0;
  background: var(--accent);
  color: var(--accent-text);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
