:root {
  --wm: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='220'><text x='14' y='104' font-family='Georgia,serif' font-size='27' font-weight='bold' fill='rgba(255,255,255,0.34)' stroke='rgba(0,0,0,0.34)' stroke-width='0.9' paint-order='stroke' transform='rotate(-28 14 104)'>for.luck.ua</text><text x='165' y='40' font-family='Georgia,serif' font-size='18' font-weight='bold' fill='rgba(255,255,255,0.26)' stroke='rgba(0,0,0,0.26)' stroke-width='0.9' paint-order='stroke' transform='rotate(14 165 40)'>for.luck.ua</text><text x='52' y='186' font-family='Georgia,serif' font-size='31' font-weight='bold' fill='rgba(255,255,255,0.3)' stroke='rgba(0,0,0,0.3)' stroke-width='0.9' paint-order='stroke' transform='rotate(-12 52 186)'>for.luck.ua</text><text x='190' y='140' font-family='Georgia,serif' font-size='17' font-weight='bold' fill='rgba(255,255,255,0.28)' stroke='rgba(0,0,0,0.28)' stroke-width='0.9' paint-order='stroke' transform='rotate(-40 190 140)'>for.luck.ua</text><text x='150' y='212' font-family='Georgia,serif' font-size='20' font-weight='bold' fill='rgba(255,255,255,0.24)' stroke='rgba(0,0,0,0.24)' stroke-width='0.9' paint-order='stroke' transform='rotate(6 150 212)'>for.luck.ua</text><text x='150' y='100' font-family='Georgia,serif' font-size='14' font-weight='bold' fill='rgba(255,255,255,0.22)' stroke='rgba(0,0,0,0.22)' stroke-width='0.9' paint-order='stroke' transform='rotate(-5 150 100)'>for.luck.ua</text></svg>");
  --bg: #f3ebdd;
  --card: #fbf6ec;
  --sand: #e4d6bd;
  --line: #d3c1a2;
  --text: #4a3b2a;
  --muted: #8a775e;
  --accent: #5e6b4e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Jost", system-ui, sans-serif;
  line-height: 1.5;
}

h1, .logo { font-family: "Cormorant Garamond", Georgia, serif; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6vw;
  border-bottom: 1px solid var(--line);
}
.logo { font-size: 1.7rem; font-weight: 600; color: var(--text); text-decoration: none; }
.top nav a { color: var(--muted); text-decoration: none; }

.hero { padding: 72px 6vw 48px; max-width: 760px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 16px; font-weight: 500; }
.hero p { color: var(--muted); max-width: 46ch; margin: 0 0 28px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fbf6ec;
  border: 0;
  padding: 12px 26px;
  border-radius: 4px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #4d593f; }
.btn:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
  padding: 24px 6vw 72px;
}

.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }

/* Місце під картину. Пізніше сюди підставимо справжні зображення */
.art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--tone-a), var(--tone-b));
  user-select: none;
  -webkit-user-select: none;
}
.art img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }

/* Водяний знак: повторюється по всій картині, а клік проходить крізь нього лише вниз до блокування */
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wm); background-size: 240px 176px;
}

.info { padding: 16px 18px 20px; }
.info h2 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.4rem; font-weight: 600; margin: 0 0 12px; }
.info select {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}
.row { display: flex; justify-content: space-between; align-items: center; }
.price { font-size: 1.2rem; font-weight: 500; }

.foot { padding: 28px 6vw; border-top: 1px solid var(--line); color: var(--muted); }

.note { color: var(--muted); font-size: 0.9rem; margin: 0 0 14px; }
.field { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.field select { margin-top: 4px; }

/* ---------- Конструктор картини (dollar.html) ---------- */
[hidden] { display: none !important; }

.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; margin: 36px 6vw 8px; line-height: 1.1; }

.builder {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  padding: 24px 6vw 72px;
  align-items: start;
}
@media (max-width: 860px) { .builder { grid-template-columns: 1fr; } }

.stage { position: sticky; top: 16px; }
@media (max-width: 860px) { .stage { position: static; } }

.hint { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }

/* Макет картини: справжній дизайн (позолота й рамка) з картинок images/dollar-*.jpg */
.preview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-width: 640px;
  background: #000 center / 100% 100% no-repeat;
  container-type: inline-size;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid var(--line);
  color: #b09a62;
}
.bill-label {
  position: absolute; left: 0; right: 0; transform: translateY(-50%);
  text-align: center; color: rgba(40, 28, 10, 0.55);
  font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 7cqw;
}
.main { position: absolute; left: 14%; right: 14%; text-align: center; line-height: 1.25; text-transform: uppercase; text-wrap: balance; letter-spacing: 0.01em; }
.sub { position: absolute; left: 6%; right: 6%; line-height: 1.3; text-wrap: balance; }

/* Водяний знак поверх усього макета */
.preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wm); background-size: 240px 176px;
}

.controls fieldset { border: 1px solid var(--line); border-radius: 4px; margin: 0 0 18px; padding: 14px 16px 16px; background: var(--card); }
.controls legend { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.2rem; font-weight: 600; padding: 0 6px; }
.controls select, .controls input[type=text], .controls input:not([type]) {
  width: 100%; padding: 10px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 4px; font: inherit;
}
.choices { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.choices label, .presets label { cursor: pointer; }
.presets { margin-top: 12px; max-height: 250px; overflow-y: auto; display: grid; gap: 8px; padding-right: 6px; }
.presets label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; line-height: 1.35; }
.custom { margin-top: 12px; }
.custom .field + .field, .controls .field + .field { margin-top: 12px; }

.summary { border-top: 1px solid var(--line); padding-top: 16px; }
.summary #summaryText { color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }

/* ---------- Конструктор «Серце» (heart.html) ---------- */
.sheet {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 333 / 444;
  margin: 0 auto;
  background: #fff;
  outline: 10px solid #111;
  outline-offset: -10px;
  container-type: inline-size;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  --ink: #6f4e2e;
}
.sheet .cell { position: absolute; background: #c4c4c4; overflow: hidden; }
.sheet .cell.empty { cursor: pointer; }
.sheet .cell.empty:hover, .sheet .cell.empty:focus-visible { background: #b2b2b2; }
.sheet .cell.empty::before { content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 5cqw "Jost", sans-serif; color: #fff; }
.sheet .cell.has { cursor: grab; }
.sheet .cell.has.sel { touch-action: none; cursor: grabbing; }
.sheet .cell.sel { outline: 2px solid #2b7de9; outline-offset: -2px; z-index: 2; }
.sheet .cell img { position: absolute; max-width: none; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.txt { position: absolute; width: max-content; max-width: 92%; transform: translateX(-50%); text-align: center; cursor: grab; z-index: 3; user-select: none; }
.txt.sel { outline: 1px dashed #2b7de9; outline-offset: 2px; touch-action: none; cursor: grabbing; }
.t-title { font-family: "Playfair Display", serif; font-weight: 700; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.t-sub { font-family: "Marck Script", cursive; color: #1a1a1a; line-height: 1.3; }
.t-bottom { max-width: 88%; font-family: "Playfair Display", serif; font-weight: 700; text-transform: uppercase; color: var(--ink); line-height: 1.25; }
.sheet::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background-image: var(--wm); background-size: 240px 176px;
}
.controls textarea, .controls input[type=file] {
  width: 100%; padding: 10px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 4px; font: inherit; resize: vertical;
}
.status { font-size: 0.9rem; margin: 10px 0; color: var(--text); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 8px 18px; }
.swatches { display: flex; gap: 10px; margin-top: 6px; }
.sw input { position: absolute; opacity: 0; }
.sw span { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid var(--line); cursor: pointer; }
.sw input:checked + span { border-color: var(--card); outline: 2px solid var(--text); }
.sw input:focus-visible + span { outline: 2px solid var(--accent); }

/* ---------- Адмінка (admin.html) ---------- */
.admin { padding: 24px 6vw 72px; }
.admin h1 { font-size: 2rem; font-weight: 500; margin: 0 0 16px; }
.admin form { display: grid; gap: 12px; max-width: 360px; }
.admin input { padding: 10px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.orders { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.92rem; }
.orders th, .orders td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.orders .btn { padding: 8px 14px; font-size: 0.85rem; }

/* Панель вибраного фото */
.selpanel { margin: 12px 0; padding: 12px; border: 1px dashed var(--line); border-radius: 4px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.controls input[type=range] { width: 100%; accent-color: var(--accent); }
.controls .btn.ghost { margin-top: 6px; }

.top nav a + a { margin-left: 22px; }

/* ---- Нижня панель редагування (телефон і комп'ютер) ---- */
.editbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fbf7ee; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.12); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.eb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eb-title { font-weight: 500; }
.eb-done { padding: 8px 18px; }
.eb-zoom { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.eb-zoom input { flex: 1; min-height: 32px; }
.eb-btns { display: flex; gap: 8px; }
.eb-btns .btn { flex: 1; padding: 8px 6px; font-size: 14px; }
body.has-bar { padding-bottom: 190px; }
.sheet.editing .cell.has:not(.sel) img { filter: brightness(.55); }
.sheet.editing .txt:not(.sel) { opacity: .45; }
.sheet.editing .cell.has, .sheet.editing .txt { touch-action: none; }
.sheet .cell.sel { outline: 3px solid #2b7de9; outline-offset: -3px; }
.sheet .cell.has.sel::after { content: attr(data-n); position: absolute; top: 4px; left: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #2b7de9; color: #fff; font: 500 12px/20px "Jost", sans-serif; text-align: center; z-index: 5; }

/* ================= Новорічна тема ================= */
:root {
  --bg: #f6efe2;
  --card: #fffaf0;
  --line: #dccaa6;
  --accent: #1f5c46;      /* ялинковий зелений */
  --red: #b3262d;
  --gold: #c9a24b;
  --pine: #173f33;
}
.btn:hover { background: #17493a; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.ghost:hover { background: rgba(31, 92, 70, .08); }
.price { color: var(--red); }
.controls legend, .info h2 { color: var(--pine); }

/* Шапка зі гірляндою */
.top { position: relative; background: var(--pine); border-bottom: 3px solid var(--gold); gap: 10px 16px; flex-wrap: wrap; z-index: 5; }
.logo { color: #fbf1d6; }
.top nav a { color: #e9d9ae; }
.top nav { margin-right: auto; margin-left: 18px; }
.soc { display: flex; gap: 8px; }
.soc-a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fbf1d6; border: 1px solid rgba(233, 217, 174, .5); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .soc-a:hover { background: var(--red); border-color: var(--red); color: #fff; }
}
.soc-a:active { background: var(--red); border-color: var(--red); color: #fff; }
.soc-a:focus:not(:focus-visible) { outline: none; }
.top::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; margin-top: 3px; height: 26px; pointer-events: none;
  background:
    radial-gradient(circle at 14px 12px, #e63946 0 6px, transparent 7px) 0 0 / 120px 26px,
    radial-gradient(circle at 34px 14px, #f2c14e 0 6px, transparent 7px) 0 0 / 120px 26px,
    radial-gradient(circle at 54px 12px, #4fb286 0 6px, transparent 7px) 0 0 / 120px 26px,
    radial-gradient(circle at 74px 14px, #fff4d6 0 6px, transparent 7px) 0 0 / 120px 26px,
    radial-gradient(circle at 94px 12px, #5aa9e6 0 6px, transparent 7px) 0 0 / 120px 26px,
    radial-gradient(circle at 114px 14px, #e63946 0 6px, transparent 7px) 0 0 / 120px 26px,
    linear-gradient(#2a2a2a, #2a2a2a) 0 0 / 100% 2px no-repeat;
  animation: twinkle 2.4s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 1; } to { opacity: .55; } }
.page-title { margin-top: 56px; }
.hero { padding-top: 84px; position: relative; }
.hero { padding-top: 40px; padding-bottom: 32px; }
.hero h1 { color: var(--pine); font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.hero .hero-cta { font-size: 1rem; margin-bottom: 20px; }
.hero .hero-cta::before { content: "🎄 "; }
.hero h1::after { content: none; }
.hero .wow { color: var(--red); font-weight: 600; }
.hero-sub { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--gold); letter-spacing: .18em; font-size: .85rem; font-weight: 600; max-width: 460px; }
.hero-sub i { flex: 1; border-top: 2px dotted var(--gold); }
.hero .btn { background: var(--red); }
.hero .btn:hover { background: #962026; }

/* Картки каталогу */
.card { border-color: var(--line); box-shadow: 0 1px 0 var(--gold); }
.card .art { border-bottom: 1px solid var(--line); }

/* Підвал */
.foot { background: var(--pine); color: #e9d9ae; border-top: 3px solid var(--gold); padding: 36px 6vw 22px; }
.foot a { color: #fbf1d6; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; }
.foot-logo { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; font-weight: 600; color: #fbf1d6; }
.foot h3 { margin: 0 0 8px; font: 500 1rem "Jost", sans-serif; color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.foot p { margin: 0 0 8px; font-size: .92rem; }
.soc-foot { margin-top: 12px; }
.foot-copy { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(233, 217, 174, .25); font-size: .8rem; opacity: .8; }

/* Сніг (тільки каталог) */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.snow i { position: absolute; top: -12px; color: #fff; text-shadow: 0 0 3px rgba(60, 80, 90, .55); animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(105vh) translateX(var(--dx, 20px)) rotate(180deg); } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } .top::after { animation: none; } }
@media (max-width: 520px) { .top nav { margin-left: 0; } .logo { font-size: 1.45rem; } }

/* Список товарів під кнопкою «Дивитися каталог» */
.catlist { margin-top: 18px; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 20px rgba(23, 63, 51, .12); overflow: hidden; position: relative; z-index: 2; }
.catlist a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.catlist a:last-child { border-bottom: 0; }
.catlist a:hover, .catlist a:focus-visible { background: rgba(179, 38, 45, .07); }
.catlist em { font-style: normal; color: var(--red); white-space: nowrap; font-size: .9rem; }
.card { scroll-margin-top: 16px; }
.card.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--red); } 100% { box-shadow: 0 1px 0 var(--gold); } }

/* Редагування написів на картині з доларом */
.preview .main, .preview .sub { cursor: grab; z-index: 3; }
.preview .main.sel, .preview .sub.sel { outline: 1px dashed #2b7de9; outline-offset: 3px; touch-action: none; cursor: grabbing; }
.preview.editing .main:not(.sel), .preview.editing .sub:not(.sel) { opacity: .45; touch-action: none; }
.preview::after { pointer-events: none; }

/* Лінія центру при «прилипанні» напису */
.guide { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 1px dashed #2b7de9; z-index: 6; pointer-events: none; }

/* ---------- Конструктор «Сузір'я» ---------- */
.suz-wrap { width: min(100%, 560px); margin: 0 auto; background: #000; border: 1px solid var(--line); user-select: none; -webkit-user-select: none; line-height: 0; }
.suz-wrap canvas { display: block; max-width: 100%; }
.found { margin: 10px 0; font-size: .92rem; color: var(--muted); display: grid; gap: 6px; }
.found-item { text-align: left; padding: 9px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; font: inherit; color: var(--text); cursor: pointer; }
.found-item span { display: block; color: var(--muted); font-size: .82rem; }
.found-item:hover { border-color: var(--accent); }
.manual { margin: 10px 0 14px; font-size: .9rem; }
.manual summary { cursor: pointer; color: var(--accent); margin-bottom: 8px; }
.controls textarea, .controls input[type=date], .controls input[type=time] { width: 100%; padding: 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font: inherit; }
.controls .field + .btn.ghost, .controls .btn.ghost { margin-bottom: 4px; }

/* Підказка «щось не виходить» на сторінках-конструкторах */
.helpbox { background: #f6f1e6; border: 1px dashed var(--gold); border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; }
.helpbox p { margin: 0 0 10px; font-size: 0.94rem; }
.helpbox a.btn { display: inline-block; text-decoration: none; }

/* Справжні фото виробів у каталозі: без водяного знака, квадрат */
.art.has-photo::after { display: none; }
.art.has-photo { background: #2a2118; }
.art .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 6px; justify-content: center; pointer-events: none; }
.art .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.55); box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.art .dots i.on { background: #fff; }

/* Вибір оплати: великі кнопки-картки */
.paychoice { display: grid; gap: 12px; margin: 8px 0 14px; }
.payopt { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.payopt input { width: 22px; height: 22px; accent-color: var(--red); flex: none; margin: 0; }
.payopt .po-t { display: flex; flex-direction: column; gap: 3px; color: var(--text); }
.payopt .po-t b { font-size: 1.05rem; font-weight: 600; }
.payopt .po-t small { font-size: .85rem; color: var(--muted); }
.payopt:has(input:checked) { border-color: var(--red); background: rgba(179, 38, 45, .06); }
.confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 6px 0 10px; }
.confirm-row .btn { margin: 0; }
/* Велике вікно після замовлення */
.modal-back { position: fixed; inset: 0; z-index: 9999; background: rgba(20, 30, 25, .6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--card); border-radius: 18px; padding: 34px 28px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.modal-box h2 { margin: 6px 0 10px; font-size: 1.6rem; color: var(--accent); }
.modal-box p { margin: 0 0 22px; line-height: 1.5; }
.modal-emoji { font-size: 3rem; }

/* Кошик */
.cart-link { margin-left: 16px; white-space: nowrap; }
.cart-n { display: inline-block; min-width: 20px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .75rem; text-align: center; }
.cart-page { max-width: 640px; margin: 0 auto; padding: 28px 5vw 60px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ci-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-info span { color: var(--muted); font-size: .9rem; }
.ci-info em { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-price { font-weight: 600; white-space: nowrap; }
.ci-del { border: 0; background: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 6px 8px; }
.ci-del:hover { color: var(--red); }
.cart-total { text-align: right; font-size: 1.2rem; margin: 14px 0 16px; }
.cart-form { margin-top: 26px; }
.pay-btn { width: 100%; margin-top: 8px; padding: 16px; font-size: 1.1rem; }
.modal-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Кошик: поля форми на всю ширину */
.cart-form label, .cart-page fieldset label { display: block; margin-top: 10px; }
.cart-page fieldset input[type=text], .cart-page fieldset input[type=tel], .cart-page fieldset input:not([type=radio]):not([type=checkbox]) {
  display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 12px 14px; font-size: 16px;
  border: 1px solid var(--line, #d9cdb5); border-radius: 10px; background: #fff; font-family: inherit;
}
.cart-page fieldset .paychoice label { margin-top: 0; }
.cart-page fieldset .paychoice label.payopt { display: flex; align-items: center; gap: 12px; }

.confirm-check { display: flex !important; align-items: center; gap: 12px; margin: 14px 0 6px; cursor: pointer; font-size: 16px; }
.cart-page fieldset .confirm-check input { width: 24px; height: 24px; margin: 0; flex: none; padding: 0; accent-color: #1f5c43; }

/* Адмінка як застосунок на iPhone: відступ під «чілку» */
@media all and (display-mode: standalone) { header.top { padding-top: calc(env(safe-area-inset-top) + 10px); } body { padding-bottom: env(safe-area-inset-bottom); } }

/* Стрілки для гортання фото в каталозі */
.art .arr { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.88); color: #2a2118; font-size: 28px; line-height: 38px; padding: 0 0 3px; z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; font-family: Georgia, serif; }
.art .arr.prev { left: 10px; } .art .arr.next { right: 10px; }
.art .arr:active { background: #fff; transform: translateY(-50%) scale(0.94); }
@media (hover:hover) and (pointer:fine) { .art .arr:hover { background: #fff; } }
.art .dots { z-index: 3; }

/* ---------- Адмінка: вкладки, аналітика, телефон ---------- */
.tabs { display: flex; gap: 8px; margin: 0 0 18px; }
.tabs .tab { flex: 1; padding: 12px 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px; font: inherit; font-size: 1rem; cursor: pointer; }
.tabs .tab.on { background: #1f5c43; color: #fff; border-color: #1f5c43; }
.periods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.periods button { padding: 8px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font: inherit; cursor: pointer; color: var(--text); }
.periods button.on { background: #1f5c43; color: #fff; border-color: #1f5c43; }
.stats-body h2 { font-size: 1.35rem; font-weight: 500; margin: 26px 0 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; }
.kpi b { display: block; font-size: 1.5rem; line-height: 1.15; font-family: "Cormorant Garamond", Georgia, serif; color: #1f3f33; }
.kpi span { font-size: 0.82rem; color: var(--muted); }
.kpi.ok { background: #eaf3ec; border-color: #b9d6c0; }
.funnel .fr { margin: 0 0 12px; }
.funnel .ft { display: flex; justify-content: space-between; gap: 10px; font-size: 0.95rem; margin-bottom: 4px; }
.funnel small { color: var(--muted); font-size: 0.78rem; }
.bar { height: 12px; background: var(--sand); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #3f7a5a; border-radius: 6px; }
.bar.gold i { background: #c9973a; }
.tscroll { overflow-x: auto; }
table.st { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.st th, table.st td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
table.st .num { text-align: right; white-space: nowrap; }
.days { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; overflow-x: auto; }
.day { flex: 1 0 34px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; font-size: 0.72rem; color: var(--muted); }
.day i { display: block; width: 100%; background: #3f7a5a; border-radius: 4px 4px 0 0; }
.day b { color: var(--text); font-weight: 500; }

@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .admin { padding: 18px 14px 60px; }
  /* таблиця замовлень -> картки */
  table.orders, table.orders tbody, table.orders tr, table.orders td { display: block; width: 100%; }
  table.orders thead { display: none; }
  table.orders tr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }
  table.orders td { border: 0; padding: 6px 0; word-break: break-word; }
  table.orders td:first-child { color: var(--muted); font-size: 0.85rem; }
  table.orders .acts { display: flex; flex-direction: column; align-items: stretch; }
  table.orders .acts .btn { width: 100%; }
}
@media (max-width: 760px) { table.st { font-size: 0.8rem; } table.st th, table.st td { padding: 7px 3px; } }
header.top .btn.ghost { color: #f6edd6; border-color: rgba(246,237,214,0.55); background: transparent; }

.allscale { display: grid; gap: 8px; margin: 12px 0; }
.allscale input[type=range] { width: 100%; accent-color: #1f5c43; height: 32px; }
.allscale .btn { justify-self: start; padding: 8px 14px; font-size: 0.9rem; }
