/* Default Template CSS using dynamic CSS variables */
.stolik-menu-container.template-default {
  background: var(--stolik-bg-color, #ffffff);
  color: var(--stolik-text-color, #2c3e50);
  --stolik-sold-out-badge-bg: rgba(160, 24, 24, 0.92);
  --stolik-sold-out-badge-color: #ffffff;
  --stolik-sold-out-badge-radius: 999px;
  font-family: var(--stolik-base-font-family, inherit);
  padding: 40px 30px;
  max-width: 960px;
  margin: 0 auto;
  border: 1px solid var(--stolik-border-color, #e9ecef);
  border-radius: 12px;
  box-shadow: 0 4px 18px var(--stolik-shadow-color, rgba(0,0,0,0.06));
  overflow-x: hidden;
  position: relative;
}

.template-default .menu-header {
  text-align: center;
  padding: 20px 0 30px;
}

.template-default .menu-logo-container {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.template-default .menu-logo-container.logo-align-left { text-align: left; justify-content: flex-start; }
.template-default .menu-logo-container.logo-align-center { text-align: center; justify-content: center; }
.template-default .menu-logo-container.logo-align-right { text-align: right; justify-content: flex-end; }

.template-default .menu-empty {
  padding: 20px;
  text-align: center;
  color: #666;
}

.template-default .menu-empty-note { text-align: center; }

.template-default .menu-title {
  color: var(--stolik-menu-title-font-color, #2c3e50);
  font-family: var(--stolik-menu-title-font-family, inherit);
  font-size: var(--stolik-menu-title-font-size, 36px);
  font-weight: var(--stolik-menu-title-font-weight, 700);
  font-style: var(--stolik-menu-title-font-style, normal);
  text-decoration: var(--stolik-menu-title-text-decoration, none);
  text-align: center;
  margin: 0 0 32px;
  letter-spacing: .5px;
}

.template-default .stolik-categories-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 12px 2px;
  margin: 0 0 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.template-default .stolik-categories-wrapper .stolik-categories-container {
  padding-left: 44px;
  padding-right: 44px;
}

.template-default .stolik-scroll-btn {
  color: #2c3e50;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(44, 62, 80, 0.18);
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.template-default .stolik-scroll-btn:hover {
  transform: translateY(-50%) scale(1.05);
}

.template-default .stolik-categories-container::-webkit-scrollbar {
  display: none;
}

.template-default .stolik-categories-container .stolik-category-pill {
  flex: 0 0 auto;
  width: auto;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 30px;
  text-align: center;
  margin: 0;
  color: var(--stolik-nav-text-color, #2c3e50);
  font-family: var(--stolik-nav-font-family, var(--stolik-base-font-family, inherit));
  font-size: var(--stolik-nav-font-size, 14px);
  font-weight: var(--stolik-nav-font-weight, 600);
  font-style: var(--stolik-nav-font-style, normal);
  text-decoration: var(--stolik-nav-text-decoration, none);
  background: var(--stolik-nav-button-bg, #f5f7fb);
  border: 1px solid rgba(44, 62, 80, 0.12);
  transition: all .2s ease;
  cursor: pointer;
}

.template-default .stolik-categories-container .stolik-category-pill:link,
.template-default .stolik-categories-container .stolik-category-pill:visited,
.template-default .stolik-categories-container .stolik-category-pill:hover,
.template-default .stolik-categories-container .stolik-category-pill:focus,
.template-default .stolik-categories-container .stolik-category-pill:focus-visible {
  color: var(--stolik-nav-text-color, #2c3e50);
  text-decoration: var(--stolik-nav-text-decoration, none);
}

.template-default .category-item {
  color: var(--stolik-nav-text-color, #2c3e50);
  font-family: var(--stolik-nav-font-family, inherit);
  font-size: var(--stolik-nav-font-size, 14px);
  font-weight: var(--stolik-nav-font-weight, 600);
  font-style: var(--stolik-nav-font-style, normal);
  text-decoration: var(--stolik-nav-text-decoration, none);
  background: var(--stolik-nav-button-bg, #f5f7fb);
  border: 1px solid rgba(44, 62, 80, 0.12);
  transition: all .2s ease;
  cursor: pointer;
}

.template-default .category-item:hover {
  background: #eef3fb;
  border-color: rgba(44, 62, 80, 0.22);
}

.template-default .category-item.active {
  background: var(--stolik-nav-button-active-bg, #2c3e50);
  color: var(--stolik-nav-button-active-color, #ffffff);
  border-color: transparent;
  text-decoration: var(--stolik-nav-text-decoration, none);
}

.template-default .stolik-categories-container .stolik-category-pill.active:link,
.template-default .stolik-categories-container .stolik-category-pill.active:visited,
.template-default .stolik-categories-container .stolik-category-pill.active:hover,
.template-default .stolik-categories-container .stolik-category-pill.active:focus,
.template-default .stolik-categories-container .stolik-category-pill.active:focus-visible {
  background: var(--stolik-nav-button-active-bg, #2c3e50);
  color: var(--stolik-nav-button-active-color, #ffffff);
  text-decoration: var(--stolik-nav-text-decoration, none);
}

.template-default .menu-logo {
  display: inline-block;
  width: auto;
  max-width: 100% !important;
  height: auto !important;
  margin: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain; /* Prevents distortion even if dimensions are forced */
  align-self: center;  /* Prevents flexbox vertical stretching */
  flex-shrink: 0;      /* Prevents the logo from being crushed by text */
  box-sizing: border-box;
}

.template-default .category-section { margin-bottom: 40px; }
.template-default .category-header { margin: 30px 0 28px; }
.template-default .category-title {
  color: var(--stolik-category-title-font-color, #34495e);
  font-family: var(--stolik-category-title-font-family, inherit);
  font-size: var(--stolik-category-title-font-size, 24px);
  font-weight: var(--stolik-category-title-font-weight, 700);
  font-style: var(--stolik-category-title-font-style, normal);
  text-decoration: var(--stolik-category-title-text-decoration, none);
  margin: 0;
  position: relative;
  padding-bottom: 10px;
}
.template-default .category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 28px;
  background: var(--stolik-accent-color, #3498db);
  margin-right: 12px;
  margin-left: 12px;
  vertical-align: middle;
  border-radius: 2px;
}

/* Menu Items */
.template-default .menu-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.template-default .menu-item {
  background: var(--stolik-item-bg-color, #ffffff);
  border: 1px solid var(--stolik-item-border-color, #e9ecef);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 18px;
  display:flex;
  gap:18px;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.template-default .menu-item:hover {
  box-shadow: 0 8px 28px var(--stolik-hover-shadow-color, rgba(0,0,0,0.08));
  border-color: var(--stolik-accent-color, #3498db);
  transform: translateY(-3px);
}

/* Featured Items */
.template-default .menu-item.featured {
  background: var(--stolik-featured-item-bg-color, #fff3cd);
  border: 1px solid var(--stolik-featured-item-border-color, #ffeaa7);
  position: relative;
}

.template-default .featured-star {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ffffff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: #ffd700;
  border: 2px solid #ffd700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stolik-menu-container.template-default[data-star-uses-accent="1"] .featured-star {
  color: var(--stolik-accent-color, #ffd700);
  border-color: var(--stolik-accent-color, #ffd700);
}

.stolik-menu-container.template-default[data-show-star="0"] .featured-star {
  display: none !important;
}

/* Item Image */
.template-default .item-image { flex: 0 0 110px; width: 110px; height: 110px; }
.template-default .menu-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: var(--stolik-image-bg-color, #f3f4f6);
  border: 1px solid var(--stolik-image-border-color, #e9ecef);
  transition: transform .3s ease;
}
.template-default .menu-item:hover .menu-item-image { transform: scale(1.05); }

/* Item Content */
.template-default .item-content { flex:1; display:flex; flex-direction:column; }

/* Title Normal */
.template-default .menu-item .item-name {
  color: var(--stolik-item-title-font-color, #2c3e50);
  font-family: var(--stolik-item-title-font-family, inherit);
  font-size: var(--stolik-item-title-font-size, 18px);
  font-weight: var(--stolik-item-title-font-weight, 700);
  font-style: var(--stolik-item-title-font-style, normal);
  text-decoration: var(--stolik-item-title-text-decoration, none);
  margin:0 0 6px; line-height:1.35;
}
/* Title Featured */
.template-default .menu-item.featured .item-name {
  color: var(--stolik-featured-item-title-font-color, #2c3e50);
  font-family: var(--stolik-featured-item-title-font-family, inherit);
  font-size: var(--stolik-featured-item-title-font-size, 20px);
  font-weight: var(--stolik-featured-item-title-font-weight, 700);
  font-style: var(--stolik-featured-item-title-font-style, normal);
  text-decoration: var(--stolik-featured-item-title-text-decoration, none);
  margin:0 0 8px; line-height:1.35;
}

/* Description Normal */
.template-default .menu-item .item-description {
  color: var(--stolik-item-desc-font-color, #7f8c8d);
  font-family: var(--stolik-item-desc-font-family, inherit);
  font-size: var(--stolik-item-desc-font-size, 14px);
  font-weight: var(--stolik-item-desc-font-weight, 400);
  font-style: var(--stolik-item-desc-font-style, normal);
  text-decoration: var(--stolik-item-desc-text-decoration, none);
  margin:0 0 10px; line-height:1.55;
}
/* Description Featured */
.template-default .menu-item.featured .item-description {
  color: var(--stolik-featured-item-desc-font-color, #7f8c8d);
  font-family: var(--stolik-featured-item-desc-font-family, inherit);
  font-size: var(--stolik-featured-item-desc-font-size, 14px);
  font-weight: var(--stolik-featured-item-desc-font-weight, 400);
  font-style: var(--stolik-featured-item-desc-font-style, normal);
  text-decoration: var(--stolik-featured-item-desc-text-decoration, none);
  margin:0 0 12px; line-height:1.55;
}

/* Price Normal */
.template-default .menu-item .item-price {
  color: var(--stolik-item-price-font-color, #e74c3c);
  font-family: var(--stolik-item-price-font-family, inherit);
  font-size: var(--stolik-item-price-font-size, 16px);
  font-weight: var(--stolik-item-price-font-weight, 700);
  font-style: var(--stolik-item-price-font-style, normal);
  text-decoration: var(--stolik-item-price-text-decoration, none);
  text-align:right; display:block; margin-top:auto;
}
/* Price Featured */
.template-default .menu-item.featured .item-price {
  color: var(--stolik-featured-item-price-font-color, #e74c3c);
  font-family: var(--stolik-featured-item-price-font-family, inherit);
  font-size: var(--stolik-featured-item-price-font-size, 18px);
  font-weight: var(--stolik-featured-item-price-font-weight, 700);
  font-style: var(--stolik-featured-item-price-font-style, normal);
  text-decoration: var(--stolik-featured-item-price-text-decoration, none);
  text-align:right; display:block; margin-top:auto;
}

.template-default .item-price-row { margin-top: 4px; }

/* Language UI (badges or dropdown) */
.template-default .stolik-language-ui {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.template-default .stolik-lang-badges { display: flex; gap: 8px; }

.template-default .stolik-lang-badge {
  background: var(--stolik-bg-color, #ffffff);
  color: #111;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.template-default .stolik-lang-badge:hover { background: var(--stolik-bg-color, #ffffff); color: #111; }

.template-default .stolik-lang-dropdown { position: relative; }

.template-default .stolik-lang-current {
  background: var(--stolik-bg-color, #ffffff);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 56px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  cursor: pointer;
}

.template-default .stolik-lang-current .stolik-flag,
.template-default .stolik-lang-option .stolik-flag,
.template-default .stolik-lang-badge .stolik-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.template-default .stolik-lang-current .stolik-flag .stolik-flag-emoji,
.template-default .stolik-lang-option .stolik-flag .stolik-flag-emoji,
.template-default .stolik-lang-badge .stolik-flag .stolik-flag-emoji {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 18px;
  line-height: 1;
}

.template-default .stolik-lang-current .stolik-flag .stolik-flag-emoji.fi,
.template-default .stolik-lang-option .stolik-flag .stolik-flag-emoji.fi,
.template-default .stolik-lang-badge .stolik-flag .stolik-flag-emoji.fi {
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.template-default .stolik-lang-current .stolik-flag .stolik-flag-emoji.fi::before,
.template-default .stolik-lang-option .stolik-flag .stolik-flag-emoji.fi::before,
.template-default .stolik-lang-badge .stolik-flag .stolik-flag-emoji.fi::before {
  content: '';
}

.template-default .stolik-lang-current .stolik-flag .stolik-flag-emoji--globe,
.template-default .stolik-lang-option .stolik-flag .stolik-flag-emoji--globe,
.template-default .stolik-lang-badge .stolik-flag .stolik-flag-emoji--globe {
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-default .stolik-lang-current .stolik-flag-code,
.template-default .stolik-lang-option .stolik-flag-code,
.template-default .stolik-lang-badge .stolik-flag-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0 4px;
  color: #111;
}

.template-default .stolik-lang-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--stolik-bg-color, #ffffff);
  border: none;
  border-radius: 8px;
  padding: 0 !important;
  margin: 6px 0 0 0 !important;
  list-style: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
  min-width: 56px;
  z-index: 50;
}

.template-default .stolik-lang-menu > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-default .stolik-lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  min-height: 26px;
}

.template-default .stolik-lang-option:hover { background: #f5f7fb; }

.template-default .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .stolik-menu-container.template-default { padding:30px 18px; }
  .template-default .menu-item { flex-direction:column; text-align:center; }
  .template-default .item-image { width: 100%; height: auto; margin-bottom: 15px; }
  .template-default .menu-item-image { width:100%; height:auto; border-radius:14px; object-fit: contain; display:block; }
  .template-default .menu-item .item-price,
  .template-default .menu-item.featured .item-price { text-align:center; margin-top:6px; }
}

@media (max-width: 600px) {
  .template-default .menu-logo-container { padding-top: 45px !important; }
  .stolik-menu-container.template-default { padding:18px 14px 24px; border-radius:0 !important; }
  .template-default .menu-item { padding:18px 16px 22px; }
  .template-default .item-description { font-size: 0.95rem; }
  .template-default .stolik-language-ui { top: 6px; right: 6px; }
  .template-default .stolik-lang-badge { padding: 5px 8px; font-size: 18px; min-width: 30px; min-height: 30px; }
  .template-default .stolik-lang-current { font-size: 13px; }
  .template-default .stolik-scroll-btn { display: none !important; }
}

@media (max-width: 375px) {
  .template-default .menu-logo-container {
    justify-content: center !important;
    padding-left: 0;
    padding-right: 0;
  }

  .template-default .menu-logo {
    max-width: min(78vw, 260px) !important;
  }
}

@media (max-width: 360px) {
  .template-default .menu-logo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  .template-default .menu-item-image,
  .template-default .item-image img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
}

.template-default .item-price-row,
.template-default .item-meta-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  clear: both;
}

.template-default .item-meta-row {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #7b7f87;
}

.template-default .item-meta-module {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.template-default .stolik-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  opacity: .8;
  line-height: 1;
  color: currentColor;
}

.template-default .stolik-meta-icon.allergens-icon {
  font-weight: 400;
  opacity: .62;
}

.template-default .item-allergens-text,
.template-default .item-weight-text {
  color: inherit;
}

.template-default .stolik-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--stolik-accent-color, #5f6368);
  font-size: 0.75rem;
  line-height: 1;
  padding: 3px 8px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.template-default .stolik-like-btn:disabled {
  cursor: default;
  opacity: .75;
}

.template-default .stolik-like-icon path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.8;
}

.template-default .stolik-like-btn.is-liked .stolik-like-icon path {
  fill: currentColor;
}
