/* ============ Zaklad ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --wine: #6d1f3d;
  --wine-dark: #571731;
  --wine-light: #f6e7ee;
  --bg: #f7f2ec;
  --card: #ffffff;
  --text: #2c2127;
  --muted: #8d7c84;
  --border: #e8dfe3;
  --green: #2b8a3e;
  --green-light: #e6f4ea;
  --red: #c0392b;
  --amber: #fff4d6;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(60, 20, 40, .08), 0 4px 14px rgba(60, 20, 40, .05);
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 130px; }
body.admin .wrap { max-width: 760px; padding-bottom: 110px; }
.muted { color: var(--muted); font-weight: 400; }

/* ============ Verejna stranka ============ */
.hero { background: linear-gradient(135deg, var(--wine-dark), #8b2a52); color: #fff; text-align: center; padding: 30px 20px 26px; }
.hero-emoji { font-size: 42px; }
.hero h1 { font-size: 24px; margin-top: 4px; }
.hero-sub { opacity: .85; font-size: 15px; }
.intro { margin: 16px 4px 4px; font-size: 15px; }
.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 4px 8px; font-weight: 700; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }

.product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.product-row:first-child { padding-top: 2px; }
.product-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.product-row.has-qty .product-name { color: var(--wine); }
.product-name { font-weight: 600; }
.product-price { color: var(--muted); font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper .step {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--wine); background: #fff; color: var(--wine);
  font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: inherit;
}
.stepper .step:active { background: var(--wine); color: #fff; }
.stepper input.qty {
  width: 46px; height: 44px; text-align: center; font-size: 18px; font-weight: 700;
  border: 0; background: transparent; color: var(--text); padding: 0;
  appearance: textfield; -moz-appearance: textfield;
}
.stepper input.qty::-webkit-outer-spin-button,
.stepper input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.places { display: flex; flex-direction: column; gap: 10px; }
.place-option { position: relative; display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; box-shadow: var(--shadow); }
.place-option input { position: absolute; opacity: 0; }
.place-body { flex: 1; display: flex; flex-direction: column; }
.place-name { font-weight: 600; }
.place-note { color: var(--muted); font-size: 13px; }
.place-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); color: transparent; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.place-option:has(input:checked) { border-color: var(--wine); background: var(--wine-light); }
.place-option:has(input:checked) .place-check { background: var(--wine); border-color: var(--wine); color: #fff; }

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=number], input[type=search], input[type=password], input[type=email], input[type=datetime-local], select, textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; border: 1.5px solid var(--border);
  border-radius: 12px; background: #fff; color: var(--text); font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(109, 31, 61, .12); }
.stepper input.qty:focus { box-shadow: none; }

.hp { position: absolute; left: -9999px; top: -9999px; }

.submitbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}
.submitbar-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.total-box { display: flex; flex-direction: column; line-height: 1.2; }
.total-box span { font-size: 12px; color: var(--muted); }
.total-box strong { font-size: 20px; color: var(--wine); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 12px 18px; font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; color: var(--text); background: #ece5e8;
  min-height: 48px; font-family: inherit;
}
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:active { background: var(--wine-dark); }
.btn-green { background: var(--green); color: #fff; flex: 1; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-danger { color: var(--red); border-color: #eecfcf; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.btn-big { flex: 1; font-size: 18px; }
.btn:disabled { opacity: .6; }

.flash { border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-weight: 500; }
.flash-ok { background: var(--green-light); color: var(--green); }
.flash-err { background: #fdecea; color: var(--red); }

/* uspesna objednavka */
.success-wrap { padding: 40px 16px 40px; }
.success-card { text-align: center; padding: 28px 20px; }
.success-check { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; }
.success-card h1 { font-size: 22px; }
.order-no { color: var(--muted); margin: 4px 0 16px; }
.order-no strong { color: var(--wine); font-size: 18px; }
.success-summary { text-align: left; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.sum-total { border-top: 1px solid var(--border); font-weight: 700; color: var(--wine); }
.success-place { background: var(--wine-light); border-radius: 12px; padding: 12px; margin: 14px 0; }
.success-name { font-size: 14px; margin-bottom: 8px; }
.pickup-info { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.closed-card { text-align: center; padding: 40px 20px; margin-top: 24px; }
.closed-emoji { font-size: 44px; margin-bottom: 8px; }

/* ============ Administrace ============ */
.topbar { position: sticky; top: 0; z-index: 60; background: var(--wine); color: #fff; padding-top: env(safe-area-inset-top); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.topbar-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.topbar-title { font-weight: 700; font-size: 17px; line-height: 1.25; }
.topbar-sub { display: block; font-size: 12px; font-weight: 400; opacity: .75; }
.topbar-logout { color: #fff; opacity: .85; text-decoration: none; font-size: 14px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 10px; padding: 6px 10px; }

.page-title { font-size: 20px; margin: 16px 4px 6px; }
.page-hint { color: var(--muted); font-size: 14px; margin: 0 4px 14px; }

.tabs { display: flex; background: #eadfe4; border-radius: 14px; padding: 4px; margin: 14px 0 10px; }
.tab { flex: 1; text-align: center; padding: 10px 6px; border-radius: 11px; text-decoration: none; color: #7d6b74; font-weight: 600; font-size: 14px; }
.tab.active { background: #fff; color: var(--wine); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.tab-badge { display: inline-block; background: var(--wine); color: #fff; font-size: 12px; border-radius: 99px; padding: 0 7px; margin-left: 2px; }
.tab:not(.active) .tab-badge { background: #b9a7af; }

.filterbar { display: flex; gap: 8px; margin-bottom: 14px; }
.filterbar select { flex: 0 0 44%; width: 44%; }
.searchbox { flex: 1; }

.order-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; border-left: 5px solid var(--wine); transition: opacity .3s ease, transform .3s ease; }
.order-card.status-picked { border-left-color: var(--green); }
.order-card.status-cancelled { border-left-color: #b9a7af; opacity: .75; }
.order-card.leaving { opacity: 0; transform: translateX(60px); }
.oc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.oc-name { font-weight: 700; font-size: 17px; }
.oc-id { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.oc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); margin: 4px 0 8px; }
.oc-phone { color: var(--wine); text-decoration: none; font-weight: 600; }
.oc-items { border-top: 1px dashed var(--border); padding-top: 8px; margin-bottom: 8px; }
.oc-item { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; padding: 2px 0; }
.oc-total { font-weight: 700; color: var(--wine); border-top: 1px dashed var(--border); margin-top: 4px; padding-top: 6px; }
.oc-note { background: var(--amber); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin-bottom: 10px; }
.oc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.oc-actions form { display: contents; }
.picked-label { color: var(--green); font-weight: 600; font-size: 14px; flex: 1; }
.cancel-label { color: var(--muted); font-weight: 600; font-size: 14px; flex: 1; }

.empty { text-align: center; color: var(--muted); padding: 44px 20px; }
.empty-emoji { font-size: 40px; margin-bottom: 6px; }

.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--border); display: flex; padding-bottom: env(safe-area-inset-bottom); }
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.bn-item .bn-icon { font-size: 20px; }
.bn-item.active { color: var(--wine); }

.form-card h3 { margin-bottom: 10px; }
.form-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.item-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.item-card.inactive { opacity: .6; }
.item-main { min-width: 160px; }
.item-name { font-weight: 600; }
.item-sub { color: var(--muted); font-size: 14px; }
.item-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.item-actions form { display: contents; }
.badge { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 600; }
.badge-gray { background: #eee; color: var(--muted); }
.badge-green { background: var(--green-light); color: var(--green); }
.tab-badge-gray { background: #b9a7af; }
.order-card.status-spam { border-left-color: #b9a7af; }
.spam-why { font-size: 13px; color: var(--red); margin: 0 0 8px; }
.spam-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.spam-bar .page-hint { flex: 1 1 260px; }

.statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 8px; text-align: center; }
.stat-num { font-size: 21px; font-weight: 800; color: var(--wine); }
.stat-label { font-size: 12px; color: var(--muted); }

.sumtable { width: 100%; border-collapse: collapse; }
.sumtable th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 0; font-weight: 600; }
.sumtable td { padding: 7px 0; border-top: 1px solid var(--border); }
.sumtable td:nth-child(2), .sumtable th:nth-child(2),
.sumtable td:nth-child(3), .sumtable th:nth-child(3) { text-align: right; }
.place-head { margin-bottom: 8px; }

/* login */
.login-wrap { max-width: 380px; margin: 0 auto; padding: 60px 20px; }
.login-card { text-align: center; padding: 28px 22px; }
.login-emoji { font-size: 40px; }
.login-card h1 { font-size: 20px; margin: 8px 0 2px; }
.login-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.login-card .field { text-align: left; }
.login-card .btn { width: 100%; margin-top: 10px; }

/* prepinac */
.switch-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch { flex-shrink: 0; width: 52px; height: 31px; border-radius: 99px; background: #d5c6cc; position: relative; transition: background .2s; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; }
.switch-row input:checked + .switch { background: var(--green); }
.switch-row input:checked + .switch::after { left: 24px; }
.switch-label { font-size: 14px; }

@media (min-width: 700px) {
  .hero h1 { font-size: 28px; }
  .statgrid { grid-template-columns: repeat(4, 1fr); }
}

/* ============ Ikony ============ */
.icon { flex-shrink: 0; }
.im { display: inline-flex; align-items: center; gap: 5px; }
.hero-logo { display: flex; justify-content: center; color: #fff; opacity: .95; margin-bottom: 2px; }
.closed-ic { display: flex; justify-content: center; color: var(--muted); margin-bottom: 10px; }
.empty-ic { display: flex; justify-content: center; color: #c9b6bf; margin-bottom: 8px; }
.login-logo { display: flex; justify-content: center; color: var(--wine); margin-bottom: 2px; }
.icon.note-ic { vertical-align: -2.5px; margin-right: 5px; }
.bn-icon { display: flex; }
.bn-icon svg { display: block; }

/* ============ Rekapitulace objednavky ============ */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(43, 16, 29, .55); display: flex; align-items: flex-end; justify-content: center; }
.overlay[hidden] { display: none; }
.sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; animation: sheet-up .22s ease; }
@keyframes sheet-up { from { transform: translateY(48px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: #e2d6db; margin: 0 auto 14px; }
.sheet h2 { font-size: 19px; margin-bottom: 10px; }
.recap-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.recap-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 9px; font-weight: 700; color: var(--wine); font-size: 16px; }
.recap-block { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.recap-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.recap-strong { font-weight: 600; }
.recap-small { font-size: 14px; }
.recap-q { text-align: center; font-weight: 600; margin: 14px 0 4px; }
.sheet .btn { width: 100%; margin-top: 8px; }
@media (min-width: 700px) {
  .overlay { align-items: center; padding: 20px; }
  .sheet { border-radius: 22px; }
}

/* ================================================== */
/* ============ Prezentacni web (homepage) ========== */
/* ================================================== */
body.web {
  --ink: #241419;
  --ink-soft: #37222b;
  --gold: #c19a5b;
  --gold-dark: #a8834a;
  background: #fff;
}
body.web { font-size: 16.5px; }

.web .btn-gold { background: var(--gold); color: #241419; font-weight: 700; }
.web .btn-gold:active { background: var(--gold-dark); }
.web .btn-outline-light { background: transparent; border: 1.5px solid rgba(255, 255, 255, .65); color: #fff; }
.web .btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }

/* --- hero --- */
.whero { position: relative; min-height: 92svh; display: flex; flex-direction: column; color: #fff; overflow: hidden; }
.whero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.whero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(24, 10, 16, .72) 0%, rgba(24, 10, 16, .45) 40%, rgba(24, 10, 16, .78) 100%); }
.wnav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px 0; max-width: 1060px; margin: 0 auto; width: 100%; }
.wnav-logo { height: 58px; width: auto; }
.wnav-links { display: flex; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; }
.wnav-links a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .9; padding: 6px 2px; }
.wnav-links a:hover { opacity: 1; color: var(--gold); }
.whero-content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px 60px; }
.whero-kicker { text-transform: uppercase; letter-spacing: .35em; font-size: 13px; opacity: .85; margin-bottom: 14px; }
.whero-content h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(34px, 8vw, 64px); line-height: 1.12; text-wrap: balance; }
.worn { display: flex; align-items: center; gap: 14px; margin: 18px 0 10px; color: var(--gold); }
.worn span { display: block; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.worn span:last-child { background: linear-gradient(270deg, transparent, var(--gold)); }
.whero-sub { font-family: Georgia, serif; font-style: italic; font-size: clamp(17px, 3.5vw, 22px); opacity: .9; }
.whero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.whero-scroll { position: absolute; z-index: 2; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; opacity: .7; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
.hero-back { position: absolute; top: 14px; left: 16px; color: #fff; opacity: .85; text-decoration: none; font-size: 14px; z-index: 3; }

/* --- pas pod herem --- */
.wstrip { background: var(--ink); color: #e9ddce; }
.wstrip-in { max-width: 1060px; margin: 0 auto; display: flex; justify-content: center; gap: 18px 44px; flex-wrap: wrap; padding: 15px 20px; }
.wstrip-in span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .05em; }
.wstrip-in .icon { color: var(--gold); }

/* --- sekce --- */
.wsec { padding: 64px 20px; background: #fff; }
.wsec-alt { background: var(--bg); }
.wsec-dark { background: var(--ink); color: #f0e6da; }
.wsec-in { max-width: 1060px; margin: 0 auto; }
.wkicker { text-transform: uppercase; letter-spacing: .3em; font-size: 12px; font-weight: 700; color: var(--gold-dark); margin-bottom: 8px; }
.wsec-dark .wkicker { color: var(--gold); }
.wtitle { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin-bottom: 22px; color: var(--ink); text-wrap: balance; }
.wsec-dark .wtitle { color: #fff; }

/* --- o nas --- */
.wsplit { display: grid; gap: 34px; align-items: center; }
.wsplit-text p { margin-bottom: 14px; color: #4a3a41; }
.wsplit-text strong { color: var(--ink); }
.wquote { font-family: Georgia, serif; font-style: italic; font-size: 19px; color: var(--wine); border-left: 3px solid var(--gold); padding: 6px 0 6px 18px; margin-top: 20px; }
.wsplit-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(36, 20, 25, .18); display: block; }

/* --- nabidka --- */
.wcards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.wcard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.wsec-alt .wcard { border: 0; }
.wcard-ic { color: var(--wine); margin-bottom: 12px; }
.wcard h3 { font-family: Georgia, serif; font-weight: 400; font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.wcard p { color: #4a3a41; font-size: 15px; }

/* --- akce --- */
.wevents { display: grid; gap: 14px; }
.wevent { background: var(--ink-soft); border: 1px solid rgba(193, 154, 91, .25); border-radius: var(--radius); padding: 22px; }
.wevent-date { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); font-size: 13.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.wevent h3 { font-family: Georgia, serif; font-weight: 400; font-size: 22px; margin-bottom: 8px; color: #fff; }
.wevent p { color: #d9cabc; font-size: 15px; }
.wevents-note { margin-top: 18px; color: #bda893; font-size: 14.5px; }
.wevents-note a, .wevents-empty a { color: var(--gold); }
.wevents-empty { color: #d9cabc; }

/* --- burcak pas --- */
.wburcak { background: linear-gradient(120deg, var(--wine-dark), #8b2a52); color: #fff; padding: 40px 20px; }
.wburcak-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.wburcak-ic { color: #f0d9e3; flex-shrink: 0; }
.wburcak-text { flex: 1; min-width: 230px; }
.wburcak-text h2 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(22px, 4vw, 30px); margin-bottom: 6px; }
.wburcak-text p { opacity: .9; font-size: 15.5px; }

/* --- galerie --- */
.wgallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wg-item { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.wg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.wg-item:hover img { transform: scale(1.05); }

/* --- lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 6, 10, .93); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; opacity: .8; font-family: inherit; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-close { top: 10px; right: 18px; font-size: 44px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; line-height: 1; padding: 20px 14px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

/* --- kontakt --- */
.wcontact { display: grid; gap: 30px; }
.wc-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.wc-row .icon { color: var(--wine); margin-top: 3px; }
.wc-strong { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; }
.wmuted { color: var(--muted); font-size: 14px; }
.wc-social, .wc-maps { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.wcontact-hours h3 { display: flex; align-items: center; gap: 8px; font-family: Georgia, serif; font-weight: 400; font-size: 21px; margin-bottom: 12px; color: var(--ink); }
.wcontact-hours h3 .icon { color: var(--wine); }
.whours { width: 100%; border-collapse: collapse; max-width: 380px; }
.whours td { padding: 8px 4px; border-bottom: 1px solid var(--border); font-size: 15.5px; }
.whours td:last-child { text-align: right; font-weight: 600; }
.whours tr.today td { color: var(--wine); font-weight: 700; }
.whours tr.today td:first-child::after { content: " · dnes"; font-size: 12px; font-weight: 600; color: var(--gold-dark); }
.whours-note { margin-top: 14px; max-width: 380px; }

/* --- paticka --- */
.wfoot { background: var(--ink); color: #b7a496; text-align: center; padding: 36px 20px calc(28px + env(safe-area-inset-bottom)); }
.wfoot-logo { height: 52px; margin-bottom: 12px; opacity: .9; }
.wfoot p { font-size: 14px; }
.wfoot-admin { margin-top: 8px; }
.wfoot-admin a { color: #8a766a; font-size: 12.5px; text-decoration: none; }
.wfoot-admin a:hover { color: var(--gold); }

/* --- desktop --- */
@media (min-width: 760px) {
  .wsec { padding: 84px 24px; }
  .wsplit { grid-template-columns: 1.15fr .85fr; gap: 54px; }
  .wcards { grid-template-columns: repeat(4, 1fr); }
  .wevents { grid-template-columns: repeat(2, 1fr); }
  .wgallery { grid-template-columns: repeat(4, 1fr); }
  .wcontact { grid-template-columns: 1.1fr .9fr; gap: 54px; }
  .wnav-logo { height: 68px; }
}

/* admin: 6 polozek ve spodni navigaci */
.bn-item { font-size: 10px; padding: 8px 1px 6px; }

/* zpravy + login doplnky */
.bn-item { position: relative; }
.bn-badge { position: absolute; top: 2px; left: 50%; margin-left: 7px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 0 5px; line-height: 15px; min-width: 15px; text-align: center; }
.msg-body { font-size: 15px; background: var(--bg); border-radius: 10px; padding: 10px 12px; margin: 8px 0 10px; }
.login-forgot { margin-top: 14px; font-size: 14px; }
.login-forgot a { color: var(--muted); }

/* instrukce k vyzvednuti v rekapitulaci */
.recap-note { background: var(--amber); border-radius: 12px; padding: 10px 12px; margin-top: 10px; font-size: 14px; }

/* poradi polozek: cislo pozice (vyber) + sipky nahoru/dolu */
.pos-ctl { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pos-select { width: 60px; min-height: 40px; padding: 0 4px 0 10px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--wine); text-align: center; cursor: pointer; }
.pos-btn { width: 38px; min-height: 40px; padding: 0; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--wine); display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: inherit; transition: transform 100ms ease-out, background 100ms ease-out; }
.pos-btn:active { transform: scale(.94); background: var(--wine-light); }
.pos-btn:disabled { opacity: .3; cursor: default; }
.pos-btn:disabled:active { transform: none; background: #fff; }
.pos-go { min-height: 40px; padding: 8px 10px; }
.sort-item { position: relative; scroll-margin-top: 72px; }
.sort-item .item-main { flex: 1 1 140px; min-width: 0; }
@media (min-width: 560px) { .sort-item .item-main { flex-basis: 220px; } }
.sort-item:target { animation: pos-zvyrazni 1.8s ease-out; }
.sort-item.is-saving { opacity: .55; pointer-events: none; }
@keyframes pos-zvyrazni {
  0%, 35% { box-shadow: 0 0 0 3px var(--wine), var(--shadow); }
  100% { box-shadow: var(--shadow); }
}

/* sablony akci - predvyplnovaci tlacitka */
.tpl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.tpl-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tpl-chip { border: 0; background: var(--wine-light); color: var(--wine); border-radius: 99px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.tpl-chip:active { background: var(--wine); color: #fff; }

/* fotka akce v adminu + info o listku */
.foto-nahled img { max-width: 220px; border-radius: 10px; display: block; margin-bottom: 8px; }
.menu-stav { font-size: 14.5px; margin-bottom: 12px; }
.menu-stav a { color: var(--wine); font-weight: 600; }

/* nove barevne logo */
.hero-logo img { height: 108px; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.login-logo img { height: 96px; }

/* viceradkova poznamka u odberneho mista (radky pod sebou dle zapisu v adminu) */
.place-note { white-space: pre-line; }
#recapPlaceNote { white-space: pre-line; }
.success-place .muted { white-space: pre-line; }

/* zive hledani v objednavkach */
.filterbar { display: flex; gap: 8px; margin-bottom: 14px; align-items: stretch; }
.filter-place { flex: 0 0 42%; }
.filter-place select { width: 100%; height: 100%; }
.searchbox { flex: 1; position: relative; }
.searchbox input { padding-left: 40px; padding-right: 42px; }
.search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: #eadfe4; color: var(--wine); font-size: 22px; line-height: 1; cursor: pointer; font-family: inherit; }
.search-clear:active { background: var(--wine); color: #fff; }
.search-empty { text-align: center; color: var(--muted); padding: 22px 12px; }
.order-card[hidden] { display: none; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* zaskrtnute misto i v prohlizecich bez :has() */
.place-option input:checked ~ .place-check { background: var(--wine); border-color: var(--wine); color: #fff; }

/* fotogalerie v administraci */
.gal-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 4px 10px; margin: 0 -4px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gal-chips::-webkit-scrollbar { display: none; }
.gal-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); background: #fff; color: var(--text); border-radius: 99px; padding: 9px 14px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; min-height: 40px; }
.gal-chip:active { background: var(--wine-light); }
.gal-chip.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.gal-chip-n { background: rgba(0, 0, 0, .07); border-radius: 99px; padding: 0 7px; font-size: 12px; line-height: 18px; }
.gal-chip.active .gal-chip-n { background: rgba(255, 255, 255, .22); }
.gal-chip-hidden { opacity: .65; border-style: dashed; }
.gal-chip-new { color: var(--wine); border-color: var(--wine-light); background: var(--wine-light); }
.gal-chip-new.active { background: var(--wine); color: #fff; }
.gal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gal-row-label { font-size: 14px; font-weight: 600; }
.gal-row input[type=text] { width: auto; min-width: 0; }
.gal-sub { font-size: 16px; margin: 18px 4px 10px; }
.gal-sub .muted { font-size: 14px; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .gal-grid { grid-template-columns: repeat(4, 1fr); } }
.gal-tile { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #eee; box-shadow: var(--shadow); }
.gal-tile::before { content: ""; display: block; padding-top: 100%; }
.gal-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-tile-n { position: absolute; left: 6px; top: 6px; background: rgba(44, 33, 39, .72); color: #fff; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 1px 8px; line-height: 18px; }
.gal-tile:active img { opacity: .8; }
.gal-tile.active { outline: 3px solid var(--wine); outline-offset: 1px; }
.gal-edit-preview img { width: 100%; max-height: 360px; object-fit: contain; border-radius: 12px; background: #f1ebe6; display: block; margin-bottom: 12px; }
#upravit { scroll-margin-top: 70px; }
#fotky { scroll-margin-top: 70px; }
.up-progress { margin-top: 12px; }
.up-bar { height: 8px; background: #eadfe4; border-radius: 99px; overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: var(--wine); transition: width .3s ease; }
.up-text { font-size: 14px; color: var(--muted); margin-top: 6px; }
.up-errors { list-style: none; margin-top: 8px; font-size: 14px; color: var(--red); }
.up-errors li { margin-top: 4px; }
.up-errors:empty { display: none; }

/* spodni navigace se 7 polozkami */
.bn-item span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 430px) { .bn-item { font-size: 9.5px; letter-spacing: -.01em; padding-left: 0; padding-right: 0; } }