:root {
  --bg-cream: #FFF6F9;
  --bg-page: #FDF1F2;
  --pink: #EF8AB6;
  --pink-dark: #E06C9F;
  --gold: #F0C24B;
  --plum: #5B1F3A;
  --plum-soft: rgba(91, 31, 58, 0.7);
  --ink: #241016;
}

* { box-sizing: border-box; }

/* Novinka blinking indicator */
@keyframes lpPulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}
@keyframes lpDotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.novinka-dot {
  position: relative;
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: lpDotBlink 1.4s ease-in-out infinite;
}
.novinka-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: lpPulseRing 1.4s ease-out infinite;
}
@keyframes lpBadgeBlink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,194,75,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(240,194,75,0); }
}
.novinka-badge-blink {
  animation: lpBadgeBlink 1.6s ease-out infinite;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--ink);
  margin: 0;
}

h1, h2, h3, .font-display {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  font-weight: 800;
  color: var(--plum);
}

.text-pink { color: var(--pink); }
.bg-pink { background: var(--pink); }
.text-plum { color: var(--plum); }
.bg-plum { background: var(--plum); }
.bg-cream { background: var(--bg-cream); }
.bg-gold { background: var(--gold); }

a { text-decoration: none; color: inherit; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--pink);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .2s ease, transform .2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--pink-dark); transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--plum);
  color: var(--plum);
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
  transition: background .2s ease;
}
.btn-outline:hover { background: rgba(91,31,58,0.06); }

.container-lp {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

html, body { overflow-x: hidden; max-width: 100%; }

/* Any multi-column grid (hero, gallery, výroba/kaviareň, kontakt, footer)
   collapses to a single column below tablet width. The inline
   grid-template-columns set per-section needs !important here since it
   otherwise wins on specificity over a plain class rule. */
@media (max-width: 780px) {
  .stack-mobile {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
  }
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 249, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(91,31,58,0.08);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--plum);
  opacity: 0.75;
  transition: opacity .2s;
}
.nav-link:hover { opacity: 1; }

/* Hero */
.hero-blob-1 {
  position: absolute; left: -160px; top: 40px; height: 520px; width: 520px;
  border-radius: 50%;
  background: rgba(239,138,182,0.2);
  filter: blur(10px);
}
.hero-blob-2 {
  position: absolute; right: -160px; bottom: 40px; height: 520px; width: 520px;
  border-radius: 50%;
  background: rgba(240,194,75,0.15);
  filter: blur(10px);
}
.star-badge {
  position: absolute;
  left: -14px; top: 24px;
  height: 56px; width: 56px;
  border-radius: 50%;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--plum);
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(240,194,75,0.4);
}
.hero-img-wrap {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery */
.gallery-tile {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  background: #f3d9df;
  border: none;
  padding: 0;
  text-align: left;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-tile:hover img { transform: scale(1.06); }
.gallery-tile .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(36,16,22,0.75), rgba(36,16,22,0) 55%);
}
.gallery-tile .label {
  position: absolute; left: 1rem; bottom: 1rem; color: #fff;
}
.gallery-tile .label h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.gallery-tile .label span { font-size: 0.78rem; opacity: 0.85; letter-spacing: 0.05em; text-transform: uppercase; }

/* Pricing */
.price-card {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(91,31,58,0.1);
}
.price-card:last-child { border-bottom: none; }
.price-card h4 { margin: 0 0 0.25rem; font-size: 1.05rem; color: var(--plum); font-family: 'Fraunces', serif; font-weight: 700;}
.price-card p { margin: 0; font-size: 0.88rem; color: rgba(36,16,22,0.65); }
.price-card .amount { font-family: 'Fraunces', serif; font-weight: 700; color: var(--pink-dark); white-space: nowrap; font-size: 1.05rem;}

/* Dark sections (Vyroba & Kaviaren) */
.dark-section { background: var(--plum); color: var(--bg-cream); }
.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,246,249,0.12); font-size: 0.92rem;}
.hours-list li:last-child { border-bottom: none; }

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(91,31,58,0.12); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; font-weight: 700; color: var(--plum); font-size: 1rem;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { margin: 0 0 1.1rem; color: rgba(36,16,22,0.7); font-size: 0.92rem; line-height: 1.6; }
.faq-item.open .faq-answer { max-height: 220px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform .25s ease; }

/* Testimonials */
.testimonial-card { display: none; text-align: center; max-width: 680px; margin: 0 auto; }
.testimonial-card.active { display: block; }
.testimonial-card blockquote { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--plum); font-weight: 600; line-height: 1.5; margin: 0 0 1rem;}
.testimonial-card cite { font-style: normal; font-size: 0.85rem; color: rgba(36,16,22,0.6); }
.dot { height: 8px; width: 8px; border-radius: 999px; background: rgba(91,31,58,0.2); border: none; cursor: pointer; transition: all .2s; }
.dot.active { width: 24px; background: var(--plum); }

/* Footer */
footer.site-footer { background: #FBEAEE; border-top: 1px solid rgba(91,31,58,0.08); }
footer.site-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--plum); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
footer .social-icon {
  height: 38px; width: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(91,31,58,0.08); color: var(--plum); transition: background .2s;
}
footer .social-icon:hover { background: var(--pink); color: #fff; }

/* Order configurator */
.step-option {
  border: 1.5px solid rgba(91,31,58,0.15);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  background: #fff;
  transition: border-color .2s, background .2s;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: var(--plum); font-size: 0.95rem;
  width: 100%; text-align: left;
}
.step-option .surcharge { font-size: 0.82rem; color: var(--pink-dark); font-weight: 700; }
.step-option.selected { border-color: var(--pink); background: rgba(239,138,182,0.08); }
.step-option:hover { border-color: var(--pink); }

.progress-track { height: 6px; background: rgba(91,31,58,0.1); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--pink); transition: width .3s ease; }

.checkbox-row { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: rgba(36,16,22,0.75); line-height: 1.5; }
.checkbox-row input[type="checkbox"] { margin-top: 0.2rem; width: 16px; height: 16px; accent-color: var(--pink); flex-shrink: 0; }
.field-error { color: #c0405f; font-size: 0.8rem; margin: 0.3rem 0 0; display: none; }

/* Lightbox nav arrows */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: #fff; cursor: pointer;
  height: 46px; width: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid rgba(91,31,58,0.12); border-radius: 1.2rem;
  padding: 1.2rem 1.4rem; box-shadow: 0 20px 50px rgba(91,31,58,0.15);
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; font-size: 0.85rem; color: rgba(36,16,22,0.7); line-height: 1.5; flex: 1; min-width: 220px; }

/* Gallery photo management (admin) */
.photo-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.6rem; margin: 0.8rem 0; }
.photo-thumb { position: relative; border-radius: 0.6rem; overflow: hidden; aspect-ratio: 1/1; background: rgba(91,31,58,0.06); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .photo-delete {
  position: absolute; top: 0.25rem; right: 0.25rem; background: rgba(36,16,22,0.65); color: #fff; border: none;
  border-radius: 50%; width: 22px; height: 22px; font-size: 0.7rem; cursor: pointer; line-height: 1;
}
.upload-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; border: 1.5px dashed rgba(91,31,58,0.3); border-radius: 0.7rem;
  padding: 0.6rem 1rem; font-size: 0.82rem; font-weight: 600; color: var(--plum); cursor: pointer; background: rgba(91,31,58,0.03);
}
.upload-btn:hover { border-color: var(--pink); }
.category-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.category-header input { flex: 1; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1rem; color: var(--plum); border: none; background: none; padding: 0.3rem 0.2rem; border-bottom: 1.5px solid transparent; }
.category-header input:focus { outline: none; border-bottom-color: var(--pink); }

/* Admin */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--plum); color: var(--bg-cream); padding: 1.5rem 1rem; flex-shrink: 0; }
.admin-sidebar a, .admin-sidebar button.nav-item {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.9rem; border-radius: 0.7rem;
  color: rgba(255,246,249,0.8); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.2rem; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left;
}
.admin-sidebar a.active, .admin-sidebar button.nav-item.active, .admin-sidebar a:hover, .admin-sidebar button.nav-item:hover {
  background: rgba(255,246,249,0.12); color: #fff;
}
.admin-main { flex: 1; padding: 2rem; background: var(--bg-page); min-width: 0; }
.admin-card { background: #fff; border-radius: 1.2rem; padding: 1.5rem; border: 1px solid rgba(91,31,58,0.08); }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border-radius: 1.2rem; padding: 1.3rem; border: 1px solid rgba(91,31,58,0.08); }
.stat-card .num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 800; color: var(--plum); }
.stat-card .label { font-size: 0.82rem; color: rgba(36,16,22,0.6); }

.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.admin-table th { text-align: left; color: rgba(36,16,22,0.55); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.6rem 0.8rem; border-bottom: 2px solid rgba(91,31,58,0.08); }
table.admin-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid rgba(91,31,58,0.06); vertical-align: top; }
.badge { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge.new { background: rgba(239,138,182,0.15); color: var(--pink-dark); }
.badge.done { background: rgba(80,160,110,0.15); color: #2e7d4f; }

.mobile-nav {
  position: fixed; inset: 0; background: var(--bg-cream); z-index: 60;
  display: none; flex-direction: column; padding: 1.5rem;
}
.mobile-nav.open { display: flex; }

@media (max-width: 860px) {
  .desktop-nav { display: none !important; }
}
@media (min-width: 861px) {
  #menuOpen { display: none !important; }
}

@media (max-width: 900px) {
  .admin-sidebar { position: fixed; left: -260px; top: 0; bottom: 0; z-index: 40; transition: left .25s; }
  .admin-sidebar.open { left: 0; }
  .admin-main { padding: 1.5rem 1.2rem; }
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2,1fr) !important; }
  .admin-main { padding: 1.2rem 0.9rem; }
  .form-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr !important; }
}

/* Site announcement popup */
.site-popup-overlay {
  display: none; position: fixed; inset: 0; background: rgba(36,16,22,0.55); z-index: 90;
  align-items: center; justify-content: center; padding: 1.2rem;
}
.site-popup-overlay.open { display: flex; }
.site-popup-card {
  position: relative; background: #fff; border-radius: 1.5rem; width: 100%; max-width: 420px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(36,16,22,0.35);
}
.site-popup-close {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 1; background: rgba(255,255,255,0.85);
  border: none; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; color: var(--plum);
}
.site-popup-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 1.5rem 1.5rem 0 0; }
.site-popup-body { padding: 1.6rem 1.6rem 1.8rem; }
.site-popup-body h3 { font-size: 1.3rem; margin: 0 0 0.7rem; color: var(--plum); }
.site-popup-body p { font-size: 0.95rem; line-height: 1.6; color: rgba(36,16,22,0.75); margin: 0; white-space: pre-wrap; }

@media (max-width: 480px) {
  .site-popup-card { max-width: 100%; }
  .site-popup-body { padding: 1.3rem 1.2rem 1.5rem; }
}
