/* ============================================================
   IGRAČ VIŠE — Lounge Bar & Pizzeria
   Design tokens & reset
   ============================================================ */
:root {
  --bg: #FAF7F2;
  --bg-warm: #F4EFE6;
  --ink: #2B2826;
  --ink-soft: #5A544E;
  --ink-mute: #8A8680;
  --plum: #5C2A3E;
  --plum-deep: #3E1B2A;
  --gold: #B8935A;
  --gold-soft: #D4B480;
  --gold-pale: #EBDCC0;
  --olive: #7A8766;
  --line: #E6DFD1;
  --line-soft: #F0EADB;
  --danger: #C1443B;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(92, 42, 62, 0.06);
  --shadow-md: 0 4px 20px rgba(92, 42, 62, 0.08);
  --shadow-lg: 0 12px 40px rgba(92, 42, 62, 0.12);

  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Dancing Script', cursive;

  --header-h: 64px;
  --subcats-h: 52px;
  --bottom-h: 68px;

  --safe-top: env(safe-area-inset-top);
  --safe-bot: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
*::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: contain;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + var(--subcats-h) + var(--safe-top));
  padding-bottom: calc(var(--bottom-h) + var(--safe-bot));
  position: relative;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }

/* ============================================================
   Olive branch decorations (SVG-painted pseudo-elements)
   ============================================================ */
.olive {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  background-repeat: no-repeat;
  background-size: contain;
}
.olive-tl {
  top: -30px; left: -40px;
  width: 220px; height: 220px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%237A8766' stroke-width='1.2' stroke-linecap='round'><path d='M10 20 Q60 40 110 80 T180 160'/><path d='M30 30 Q45 25 55 35 Q60 45 50 50 Q40 48 35 42 Q30 35 30 30z' fill='%237A8766' fill-opacity='0.4'/><path d='M55 55 Q70 50 80 60 Q85 70 75 75 Q65 72 60 66z' fill='%237A8766' fill-opacity='0.4'/><path d='M80 80 Q95 75 105 85 Q110 95 100 100 Q90 97 85 91z' fill='%237A8766' fill-opacity='0.5'/><path d='M110 110 Q125 105 135 115 Q140 125 130 130 Q120 127 115 121z' fill='%237A8766' fill-opacity='0.4'/><path d='M135 140 Q150 135 160 145 Q165 155 155 160 Q145 157 140 151z' fill='%237A8766' fill-opacity='0.5'/><circle cx='45' cy='38' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='72' cy='62' r='3.5' fill='%239CAA87' fill-opacity='0.6'/><circle cx='98' cy='88' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='125' cy='118' r='3.5' fill='%239CAA87' fill-opacity='0.6'/><circle cx='152' cy='148' r='4' fill='%239CAA87' fill-opacity='0.6'/></g></svg>");
}
.olive-br {
  bottom: calc(var(--bottom-h) + 20px); right: -40px;
  width: 200px; height: 200px;
  transform: rotate(180deg);
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%237A8766' stroke-width='1.2' stroke-linecap='round'><path d='M10 20 Q60 40 110 80 T180 160'/><path d='M30 30 Q45 25 55 35 Q60 45 50 50 Q40 48 35 42 Q30 35 30 30z' fill='%237A8766' fill-opacity='0.4'/><path d='M55 55 Q70 50 80 60 Q85 70 75 75 Q65 72 60 66z' fill='%237A8766' fill-opacity='0.4'/><path d='M80 80 Q95 75 105 85 Q110 95 100 100 Q90 97 85 91z' fill='%237A8766' fill-opacity='0.5'/><path d='M110 110 Q125 105 135 115 Q140 125 130 130 Q120 127 115 121z' fill='%237A8766' fill-opacity='0.4'/><circle cx='45' cy='38' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='72' cy='62' r='3.5' fill='%239CAA87' fill-opacity='0.6'/><circle cx='98' cy='88' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='125' cy='118' r='3.5' fill='%239CAA87' fill-opacity='0.6'/></g></svg>");
}

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: saturate(1.5) blur(10px);
  -webkit-backdrop-filter: saturate(1.5) blur(10px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: 14px;
  z-index: 100;
  border-bottom: 1px solid var(--line-soft);
}

.header-left { justify-self: start; position: relative; }
.header-right { justify-self: end; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--plum);
  border: 1px solid var(--gold-pale);
  border-radius: 20px;
  transition: all 0.2s;
}
.lang-toggle:hover, .lang-toggle:active {
  background: var(--gold-pale);
}
.lang-toggle svg { transition: transform 0.2s; }
.lang-toggle.open svg { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 110;
  animation: dropIn 0.18s ease-out;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s;
}
.lang-opt:last-child { border-bottom: none; }
.lang-opt:hover, .lang-opt:active { background: var(--line-soft); }
.lang-opt.active { background: var(--gold-pale); color: var(--plum); font-weight: 500; }
.lang-code {
  font-weight: 600;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  min-width: 22px;
}
.lang-opt.active .lang-code { color: var(--plum); }

/* Logo in center */
.header-logo {
  justify-self: center;
  /* hidden in header — logo lives in side menu only */
}
.header-logo > * { display: none !important; }
.logo-img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}
.logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--plum);
  letter-spacing: 0.02em;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 8px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Burger */
.burger {
  width: 40px; height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 50%;
  transition: background 0.2s;
}
.burger:hover, .burger:active { background: var(--line-soft); }
.burger span {
  width: 18px; height: 1.4px;
  background: var(--plum);
  border-radius: 1px;
  transition: all 0.2s;
}

/* ============================================================
   Subcategories (sticky, horizontal scroll)
   ============================================================ */
.subcats {
  position: fixed;
  top: calc(var(--header-h) + var(--safe-top));
  left: 0; right: 0;
  height: var(--subcats-h);
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 90;
}
.subcats-inner {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
  align-items: center;
}
.subcats-inner::-webkit-scrollbar { display: none; }

/* Section panes — only one visible at a time */
.section-pane[hidden] { display: none !important; }
.subcats .section-pane { width: 100%; height: 100%; }

.subcat-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}
.subcat-btn:hover { color: var(--plum); }
.subcat-btn.active {
  color: var(--plum);
  background: var(--bg);
  border-color: var(--gold-pale);
  font-weight: 500;
}

/* ============================================================
   Main content / categories
   ============================================================ */
.main {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.category {
  padding: 24px 0 12px;
  scroll-margin-top: calc(var(--header-h) + var(--subcats-h) + 4px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.category-header .divider { flex: 1; }
.divider-line {
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
}
.category-header .divider:first-child .divider-line {
  background: linear-gradient(to left, var(--gold-soft), transparent);
}
.category-header .divider:last-child .divider-line {
  background: linear-gradient(to right, var(--gold-soft), transparent);
}
.category-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--plum);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  /* allow wrapping for long names like "DOMAĆA ALKOHOLNA PIĆA" */
  white-space: normal;
  hyphens: none;
  max-width: 100%;
}
@media (max-width: 480px) {
  .category-title {
    font-size: 18px;
    letter-spacing: 0.1em;
  }
}

.subgroup-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
  margin: 20px 0 10px;
  padding-left: 2px;
  letter-spacing: 0.02em;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-mute);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
}

/* ============================================================
   Item card
   ============================================================ */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.item {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding: 12px;
  background: #FFFEFA;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  overflow: hidden;
}
.item:hover {
  border-color: var(--gold-pale);
  box-shadow: var(--shadow-md);
}
.item:active { transform: scale(0.992); }

/* Drinks/bar — same layout as food cards (with photo), but no click affordance */
.item-static {
  cursor: default;
}
.item-static:hover {
  border-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.item-static:active { transform: none; }

.item-photo {
  width: 92px; height: 92px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--line-soft);
  flex-shrink: 0;
}
.item-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
  background: linear-gradient(135deg, var(--line-soft), var(--gold-pale));
}

.item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.item-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--plum);
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}
.featured-star {
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
}
.item-price {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--plum);
  white-space: nowrap;
  flex-shrink: 0;
}

.item-desc {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Drinks/bar — show full description, no truncation */
.item-static .item-desc {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.item-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.item-weight {
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.item-country {
  font-size: 11px;
  color: var(--olive);
  font-style: italic;
  letter-spacing: 0.02em;
}
.item-tags {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.tag {
  --tag: var(--plum);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 500;
  color: var(--tag);
  background: color-mix(in srgb, var(--tag) 10%, white);
  border: 1px solid color-mix(in srgb, var(--tag) 25%, transparent);
  border-radius: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tag-icon { font-size: 10px; }

.item-stopped { opacity: 0.55; }
.item-stopped .item-photo { filter: grayscale(1); }
.item-stop-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: var(--danger);
  border-radius: 10px;
}

/* ============================================================
   Wine card (special featured button)
   ============================================================ */
.wine-card {
  margin: 10px 0 20px;
  display: flex;
  justify-content: center;
}
.wine-card-inner {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 36px 24px 28px;
  background: linear-gradient(145deg, #FFFEFA 0%, #FAF2E4 100%);
  border: 1px solid var(--gold-pale);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  text-align: center;
  overflow: hidden;
}
.wine-card-inner::before,
.wine-card-inner::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
}
.wine-card-inner::before { top: 14px; }
.wine-card-inner::after { bottom: 14px; }
.wine-card-ornament {
  margin: 0 auto 12px;
  width: 40px; height: 60px;
  color: var(--gold);
  opacity: 0.7;
}
.wine-card-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--plum);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.wine-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: white;
  background: var(--plum);
  border-radius: 100px;
  transition: all 0.25s;
  box-shadow: 0 4px 14px rgba(92, 42, 62, 0.25);
}
.wine-card-btn:hover {
  background: var(--plum-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(92, 42, 62, 0.3);
}

/* ============================================================
   Bottom bar
   ============================================================ */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--bottom-h) + var(--safe-bot));
  padding-bottom: var(--safe-bot);
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  z-index: 100;
}
.bottom-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink-mute);
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.bottom-btn.active {
  color: var(--plum);
}
.bottom-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.bottom-icon {
  width: 22px; height: 22px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.2s;
  opacity: 0.7;
}
.bottom-btn.active .bottom-icon { opacity: 1; }
.bottom-icon[data-icon="food"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C2A3E' stroke-width='1.3'><path d='M5 12h14a7 7 0 0 1-14 0z'/><path d='M5 12v-1a7 7 0 0 1 14 0v1'/><path d='M4 19h16'/></svg>");
}
.bottom-icon[data-icon="drinks"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C2A3E' stroke-width='1.3'><path d='M7 3h10l-1 9a4 4 0 0 1-8 0z'/><path d='M12 16v5'/><path d='M9 21h6'/></svg>");
}
.bottom-icon[data-icon="bar"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C2A3E' stroke-width='1.3'><path d='M6 3h12'/><path d='M7 3l5 8 5-8'/><path d='M12 11v9'/><path d='M9 21h6'/></svg>");
}

/* ============================================================
   Side menu
   ============================================================ */
.sidemenu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 40, 38, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 199;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidemenu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sidemenu {
  position: fixed;
  top: 0; right: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  background:
    linear-gradient(165deg, #FFFEFA 0%, #FAF5EA 58%, #F2E8D4 100%);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.22, 0.8, 0.25, 1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 50px rgba(92, 42, 62, 0.18);
  overflow: hidden;
}
.sidemenu.open { transform: translateX(0); }

/* Decorative olive branch inside the panel */
.sidemenu-olive {
  position: absolute;
  pointer-events: none;
  top: -30px; right: -50px;
  width: 220px; height: 220px;
  opacity: 0.22;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%237A8766' stroke-width='1.2' stroke-linecap='round'><path d='M10 20 Q60 40 110 80 T180 160'/><path d='M30 30 Q45 25 55 35 Q60 45 50 50 Q40 48 35 42 Q30 35 30 30z' fill='%237A8766' fill-opacity='0.4'/><path d='M55 55 Q70 50 80 60 Q85 70 75 75 Q65 72 60 66z' fill='%237A8766' fill-opacity='0.4'/><path d='M80 80 Q95 75 105 85 Q110 95 100 100 Q90 97 85 91z' fill='%237A8766' fill-opacity='0.5'/><path d='M110 110 Q125 105 135 115 Q140 125 130 130 Q120 127 115 121z' fill='%237A8766' fill-opacity='0.4'/><circle cx='45' cy='38' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='72' cy='62' r='3.5' fill='%239CAA87' fill-opacity='0.6'/><circle cx='98' cy='88' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='125' cy='118' r='3.5' fill='%239CAA87' fill-opacity='0.6'/></g></svg>");
}

.sidemenu-head {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding: calc(14px + var(--safe-top)) 14px 0;
  z-index: 2;
}
.sidemenu-close {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sidemenu-close:hover {
  background: var(--plum);
  color: white;
  border-color: var(--plum);
}

/* Brand block */
.sidemenu-brand {
  position: relative;
  text-align: center;
  padding: 18px 24px 26px;
  z-index: 2;
}
.sidemenu-logo {
  max-height: 88px;
  max-width: 80%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.sidemenu-logo-placeholder {
  padding: 10px 0;
}
.sidemenu-logo-script {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 36px;
  color: var(--plum);
  letter-spacing: 0.01em;
  line-height: 1;
}
.sidemenu-tag {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.sidemenu-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 10px;
  max-width: 180px;
}
.rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-soft), transparent);
}
.rule-dot {
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
}
.sidemenu-place {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* Nav list */
.sidemenu-nav {
  position: relative;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
}
.sidemenu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all 0.22s cubic-bezier(0.3, 0.7, 0.3, 1);
  letter-spacing: 0.01em;
}
.sidemenu-link:hover, .sidemenu-link:active {
  background: white;
  border-color: var(--gold);
  color: var(--plum);
  transform: translateX(-2px);
  box-shadow: -2px 4px 14px rgba(92, 42, 62, 0.08);
}
.sidemenu-link:hover .sidemenu-arr {
  transform: translateX(3px);
  color: var(--gold);
}
.sidemenu-link-primary {
  background: linear-gradient(135deg, var(--plum) 0%, var(--plum-deep) 100%);
  border-color: var(--plum-deep);
  color: white;
  box-shadow: 0 6px 18px rgba(92, 42, 62, 0.25);
}
.sidemenu-link-primary:hover, .sidemenu-link-primary:active {
  background: linear-gradient(135deg, var(--plum-deep) 0%, #2A0F19 100%);
  color: white;
  box-shadow: 0 8px 22px rgba(92, 42, 62, 0.32);
}
.sidemenu-link-primary .sidemenu-ico {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-soft);
}
.sidemenu-link-primary:hover .sidemenu-arr { color: var(--gold-soft); }

.sidemenu-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  color: var(--gold);
  background: rgba(184, 147, 90, 0.12);
  border-radius: 50%;
  flex-shrink: 0;
}
.sidemenu-text {
  flex: 1;
}
.sidemenu-arr {
  color: var(--gold-soft);
  font-size: 16px;
  transition: transform 0.2s, color 0.2s;
}

.sidemenu-foot {
  position: relative;
  padding: 14px 20px calc(18px + var(--safe-bot));
  text-align: center;
  border-top: 1px solid var(--gold-pale);
  z-index: 2;
}
.sidemenu-foot-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

/* ============================================================
   Modals (item detail, wine list, info)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 40, 38, 0.55);
  animation: fadeIn 0.25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 540px;
  max-height: 92dvh;
  background: var(--bg);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: sheetUp 0.32s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.modal-sheet-full {
  max-height: 96dvh;
  height: 96dvh;
}

.modal-sheet::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-mute);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  z-index: 10;
  transition: all 0.2s;
}
.modal-close:hover { background: white; color: var(--plum); }

.modal-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* -- Item detail view -- */
.detail-hero {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--line-soft);
  position: relative;
}
.detail-hero-empty {
  background: linear-gradient(135deg, var(--gold-pale), var(--line-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-soft);
}
.detail-body {
  padding: 22px 22px 34px;
}
.detail-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.detail-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--plum);
  line-height: 1.2;
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-name .featured-star {
  font-size: 18px;
}
.detail-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.detail-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--plum);
}
.detail-weight {
  color: var(--gold);
  font-weight: 500;
}
.detail-country {
  color: var(--olive);
  font-style: italic;
}
.detail-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.detail-section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.detail-section-title {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.detail-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.detail-allergens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-allergen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--line-soft);
  border-radius: 100px;
}

/* -- Wine modal -- */
.wine-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
}
.wine-inner { padding: 40px 20px 30px; }
.wine-header {
  text-align: center;
  margin-bottom: 24px;
}
.wine-header h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 34px;
  color: var(--plum);
  margin-bottom: 6px;
}
.wine-subgroup {
  margin: 26px 0 14px;
}
.wine-subgroup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.wine-subgroup-head .divider-line { flex: 1; }
.wine-subgroup-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--plum);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .wine-subgroup-title { font-size: 15px; letter-spacing: 0.1em; }
}
.wine-country-group {
  margin-bottom: 18px;
}
.wine-country-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.wine-row {
  display: flex;
  align-items: baseline;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--line);
  gap: 10px;
}
.wine-row-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  flex: 1;
}
.wine-row-weight {
  font-size: 11px;
  color: var(--gold);
  margin-left: 4px;
  font-weight: 500;
  white-space: nowrap;
}
.wine-dots {
  flex: 1;
  border-bottom: 1px dotted var(--gold-soft);
  margin: 0 8px;
  transform: translateY(-4px);
  min-width: 20px;
}
.wine-row-price {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--plum);
  white-space: nowrap;
}

/* ============================================================
   Full-screen pages (about / contacts)
   ============================================================ */
.page-screen {
  position: fixed;
  inset: 0;
  z-index: 310;
  background:
    radial-gradient(circle at 10% -10%, var(--gold-pale) 0%, transparent 45%),
    radial-gradient(circle at 90% 110%, #F2E0DC 0%, transparent 45%),
    linear-gradient(180deg, #FFFEFA 0%, var(--bg) 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: pageSlideIn 0.34s cubic-bezier(0.22, 0.8, 0.25, 1);
}
.page-screen[hidden] { display: none; }
@keyframes pageSlideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.page-olive {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  background-repeat: no-repeat;
  background-size: contain;
}
.page-olive-tl {
  top: -30px; left: -50px;
  width: 240px; height: 240px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%237A8766' stroke-width='1.2' stroke-linecap='round'><path d='M10 20 Q60 40 110 80 T180 160'/><path d='M30 30 Q45 25 55 35 Q60 45 50 50 Q40 48 35 42 Q30 35 30 30z' fill='%237A8766' fill-opacity='0.4'/><path d='M55 55 Q70 50 80 60 Q85 70 75 75 Q65 72 60 66z' fill='%237A8766' fill-opacity='0.4'/><path d='M80 80 Q95 75 105 85 Q110 95 100 100 Q90 97 85 91z' fill='%237A8766' fill-opacity='0.5'/><path d='M110 110 Q125 105 135 115 Q140 125 130 130 Q120 127 115 121z' fill='%237A8766' fill-opacity='0.4'/><circle cx='45' cy='38' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='72' cy='62' r='3.5' fill='%239CAA87' fill-opacity='0.6'/><circle cx='98' cy='88' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='125' cy='118' r='3.5' fill='%239CAA87' fill-opacity='0.6'/></g></svg>");
}
.page-olive-br {
  bottom: -40px; right: -50px;
  width: 220px; height: 220px;
  transform: rotate(180deg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><g fill='none' stroke='%237A8766' stroke-width='1.2' stroke-linecap='round'><path d='M10 20 Q60 40 110 80 T180 160'/><path d='M30 30 Q45 25 55 35 Q60 45 50 50 Q40 48 35 42 Q30 35 30 30z' fill='%237A8766' fill-opacity='0.4'/><path d='M55 55 Q70 50 80 60 Q85 70 75 75 Q65 72 60 66z' fill='%237A8766' fill-opacity='0.4'/><path d='M80 80 Q95 75 105 85 Q110 95 100 100 Q90 97 85 91z' fill='%237A8766' fill-opacity='0.5'/><path d='M110 110 Q125 105 135 115 Q140 125 130 130 Q120 127 115 121z' fill='%237A8766' fill-opacity='0.4'/><circle cx='45' cy='38' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='72' cy='62' r='3.5' fill='%239CAA87' fill-opacity='0.6'/><circle cx='98' cy='88' r='4' fill='%239CAA87' fill-opacity='0.6'/><circle cx='125' cy='118' r='3.5' fill='%239CAA87' fill-opacity='0.6'/></g></svg>");
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: calc(14px + var(--safe-top)) 16px 10px;
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  background: white;
  border: 1px solid var(--gold-pale);
  border-radius: 100px;
  color: var(--plum);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(92, 42, 62, 0.05);
  transition: all 0.2s;
}
.page-back:hover {
  background: var(--plum);
  color: white;
  border-color: var(--plum);
}

.page-body {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 22px calc(50px + var(--safe-bot));
}

.page-eyebrow {
  text-align: center;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 10px;
}
.page-title-big {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 44px;
  color: var(--plum);
  text-align: center;
  line-height: 1.05;
  font-weight: 500;
}
.page-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 28px;
  max-width: 260px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 24px;
}
.page-logo {
  max-height: 120px;
  max-width: 70%;
  object-fit: contain;
}
.page-logo-placeholder {
  text-align: center;
  padding: 20px;
}

.page-text {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  letter-spacing: 0.005em;
}

.page-signature {
  margin-top: 40px;
  text-align: center;
}
.sig-line {
  width: 60px;
  height: 1px;
  background: var(--gold-soft);
  margin: 0 auto 10px;
}
.sig-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* Contact cards */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--gold-pale);
  border-radius: 14px;
  color: var(--ink);
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.contact-card:not(.contact-card-static):hover {
  background: white;
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(92, 42, 62, 0.08);
}
.contact-card-static { cursor: default; }
.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  color: var(--plum);
  background: var(--gold-pale);
  border-radius: 50%;
}
.contact-info { min-width: 0; flex: 1; }
.contact-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 3px;
}
.contact-value {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--plum);
  line-height: 1.2;
  word-break: break-word;
}

/* ============================================================
   Footer note
   ============================================================ */
.footer-note {
  text-align: center;
  padding: 32px 20px 20px;
  color: var(--ink-mute);
  font-family: var(--font-serif);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.05em;
}
.olive-mini {
  display: inline-block;
  margin-bottom: 6px;
  opacity: 0.6;
}

/* ============================================================
   Desktop adjustments (bigger screens)
   ============================================================ */
@media (min-width: 720px) {
  :root {
    --header-h: 72px;
    --subcats-h: 56px;
  }
  body { font-size: 16px; }
  .main { padding: 0 24px; }
  .category-title { font-size: 26px; }
  .item { grid-template-columns: 110px 1fr; }
  .item-photo { width: 110px; height: 110px; }
  .item-name { font-size: 19px; }
  .item-price { font-size: 19px; }
  .logo-script { font-size: 26px; }
  .logo-sub { font-size: 9px; }
  .detail-hero { height: 320px; }
  .detail-name { font-size: 30px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}