/* =================================================== */
/* 1. ZMIENNE SYSTEMOWE I MOTYWY                       */
/* =================================================== */
:root {
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --yellow-main: #f59e0b;
  --yellow-dark: #d97706;
  --red-accent: #dc2626;
  --dark-bg: #1f2937;
  --light-bg: #f9fafb;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-color: #374151;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --accent-bg: #fffbeb;
  --accent-border: #fde68a;
  --badge-bg: #fff8e1;
  --badge-color: #d32f2f;
  --badge-border: #ffe082;
  
  /* Zmienne dla dynamicznych komponentów */
  --input-bg: #ffffff;
  --form-bg: #f9fafb;
}

[data-theme="dark"], body.dark-mode {
  --bg-color: #090d16;
  --card-bg: #111827;
  --dark-bg: #111827;
  --text-main: #f8fafc;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --accent-bg: #1e1b18;
  --accent-border: #451a03;
  --badge-bg: #2c2200;
  --badge-color: #ffca28;
  --badge-border: #554000;
  
  /* Zmienne dla dynamicznych komponentów w trybie ciemnym */
  --input-bg: #1f2937;
  --form-bg: #161e2e;
}

/* =================================================== */
/* 2. RESET I PODSTAWY                                 */
/* =================================================== */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  padding: 1.5rem 1rem 5rem 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container, .header-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

.wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border: 1px solid var(--border-color);
}

h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: -0.5px;
}

p.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Nadpisanie linków w trybie ciemnym */
body.dark-mode a {
  color: #64b5f6;
}

/* =================================================== */
/* 3. NAGŁÓWEK I LOGO                                  */
/* =================================================== */
.main-header {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.bee-icon {
  font-size: 2.5rem;
}

.brand-text h1 {
  font-size: 1.6rem;
  color: var(--yellow-main);
  line-height: 1;
}

.brand-text small {
  color: #9ca3af;
  font-size: 0.85rem;
}

.header-contact {
  text-align: right;
}

.call-label {
  display: block;
  font-size: 0.8rem;
  color: #9ca3af;
}

.phone-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--yellow-main);
  text-decoration: none;
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 2rem;
}

.theme-toggle {
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =================================================== */
/* 4. MENU GÓRNE & MENU POTRAW                         */
/* =================================================== */
#menu-top,
.nav#menu-top {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  min-height: 45px;
  background: #111111 url("img/bg_menu.png") repeat-x left top;
  border-bottom: 3px solid var(--yellow-main);
  margin-bottom: 15px;
  position: relative;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#menu-top ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
}

#menu-top ul li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: url("img/menu_sep.png") no-repeat right center;
}

#menu-top ul li a {
  display: block !important;
  padding: 12px 20px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-size: 14px !important;
  text-transform: uppercase;
  background: #222222 url("img/btn_menu.png") repeat-x left top;
  transition: background 0.2s ease, color 0.2s ease;
}

#menu-top ul li a:hover,
#menu-top ul li.selected a,
#menu-top ul li.active a {
  background: var(--yellow-main) url("img/btn_menu_hover.png") repeat-x left top !important;
  color: #111111 !important;
}

.top-food-menu {
  background-color: var(--yellow-main);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.top-food-menu ul,
.food-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.food-nav-list li {
  flex: 1;
  text-align: center;
  min-width: 110px;
}

.food-btn,
.top-food-menu ul li a {
  display: block;
  padding: 12px 10px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  border-right: 1px solid rgba(0,0,0,0.05);
  text-transform: uppercase;
  border-radius: 6px;
}

.food-btn:hover, .food-btn.active,
.top-food-menu ul li a:hover,
.top-food-menu ul li.selected a,
.top-food-menu ul li.active a {
  background-color: var(--yellow-dark);
  color: #fff;
}

body.dark-mode .top-food-menu ul li a {
  color: #e0e0e0;
}

body.dark-mode .top-food-menu ul li a:hover,
body.dark-mode .top-food-menu ul li.selected a {
  background-color: #333;
  color: #ffca28;
}

.no-menu-info {
  color: #fff;
  margin: 0;
  padding: 10px 0;
  font-size: 13px;
}

/* =================================================== */
/* 5. UKŁAD DWU-KOLUMNOWY                              */
/* =================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  margin-top: 25px;
  margin-bottom: 40px;
}

.sidebar-left {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border-color);
  height: fit-content;
}

.sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--yellow-main);
  padding-bottom: 5px;
}

.side-nav ul {
  list-style: none;
}

.side-nav ul li a {
  display: block;
  padding: 8px 10px;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.side-nav ul li a:hover {
  color: var(--yellow-dark);
  font-weight: 600;
}

body.dark-mode .side-nav ul li a {
  color: #e0e0e0;
}

body.dark-mode .side-nav ul li a:hover,
body.dark-mode .side-nav ul li.selected a {
  background-color: #333;
  color: #ffca28;
}

.sidebar-box {
  margin-top: 25px;
  background-color: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 15px;
  border-radius: 6px;
  font-size: 0.77rem;
}

.sidebar-logo {
  max-width: 100%;
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
}

.opening-hours-row {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
}

.free-delivery {
  color: var(--red-accent);
  margin-top: 5px;
  font-size: 1.8rem;
  text-align: center;
}

.content-area {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 30px;
  border: 1px solid var(--border-color);
  min-height: 450px;
}

.page-heading {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.theme-toggle-box {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.theme-toggle-btn-side {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  background: var(--dark-bg);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.theme-toggle-btn-side:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =================================================== */
/* 6. WYSZUKIWARKA & KATEGORIE                         */
/* =================================================== */
.search-container {
  margin-bottom: 2rem;
  position: sticky;
  top: 1rem;
  z-index: 100;
}

.search-input {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 14px;
  outline: none;
  background: var(--card-bg);
  color: var(--text-main);
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.category-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-nav-btn {
  background: var(--accent-bg);
  color: var(--primary-hover);
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--accent-border);
  white-space: nowrap;
  transition: all 0.2s;
}

.category-nav-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =================================================== */
/* 7. MENU ELEMENTY (ITEM ROWS)                        */
/* =================================================== */
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 2.5rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
  scroll-margin-top: 5rem;
}

.section-title:first-of-type {
  margin-top: 1rem;
}

.subgroup-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-hover);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border-color);
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.item-row:last-child {
  border-bottom: none;
}

.item-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.item-info p, .item-info2 p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.item-price {
  font-weight: 700;
  color: var(--primary-hover);
  font-size: 0.95rem;
  white-space: nowrap;
  margin-left: 1.5rem;
  background: var(--accent-bg);
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--accent-border);
  text-align: right;
}

.badge {
  font-size: 0.7rem;
  background: var(--badge-bg);
  color: var(--badge-color);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid var(--badge-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  vertical-align: middle;
}

/* =================================================== */
/* 8. SLIDER CMS & CLEAN SLIDER                        */
/* =================================================== */
#main-top-slider {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 25px auto;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}

#main-top-slider ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
}

#main-top-slider ul li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

#main-top-slider ul li:first-child {
  position: relative;
  opacity: 1;
  z-index: 2;
}

#main-top-slider ul li.active-slide {
  opacity: 1 !important;
  z-index: 3 !important;
}

#main-top-slider img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  display: block;
}

.clean-header-slider {
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.clean-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.clean-slide {
  min-width: 100%;
  height: 320px;
  position: relative;
}

.clean-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clean-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.clean-slider-btn:hover {
  background: rgba(211, 47, 47, 0.9);
  border-color: #d32f2f;
}

.clean-slider-btn.prev { left: 15px; }
.clean-slider-btn.next { right: 15px; }

.clean-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.clean-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.clean-slider-dots .dot.active {
  background: #ffca28;
  transform: scale(1.3);
}

/* =================================================== */
/* 9. SZYBKA NAWIGACJA, PRZYCISK I FORMULARZ            */
/* =================================================== */
.quick-menu-wrapper {
  background: var(--card-bg);
  padding: 12px 18px;
  margin-bottom: 30px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.quick-menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.quick-menu-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent-bg);
  color: var(--text-main);
  border: 1px solid var(--accent-border);
  padding: 9px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.quick-menu-btn:hover {
  background: var(--red-accent);
  color: #ffffff;
  border-color: var(--red-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

#backToTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  background-color: var(--red-accent);
  color: #ffffff;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}

#backToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#backToTopBtn:hover {
  background-color: #b91c1c;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.contact-form-wrapper {
  margin-top: 25px;
  background: var(--form-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.contact-form-group {
  margin-bottom: 12px;
}

.contact-form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-main);
}

.contact-form-input,
.contact-form-textarea {
  width: 100%;
  max-width: 500px;
  padding: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: var(--text-main);
  border-radius: 4px;
}

.contact-form-submit {
  background: var(--red-accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.contact-form-submit:hover {
  background: #b91c1c;
}

.contact-status-success {
  color: #15803d;
  font-weight: bold;
  background: #dcfce7;
  padding: 10px;
  border: 1px solid #86efac;
  border-radius: 4px;
}

.contact-status-error {
  color: #b91c1c;
  font-weight: bold;
  background: #fee2e2;
  padding: 10px;
  border: 1px solid #fca5a5;
  border-radius: 4px;
}

.cms-empty-notice {
  color: var(--text-muted);
  font-style: italic;
}

/* =================================================== */
/* 10. STOPKA STRONY                                   */
/* =================================================== */
.footer-info-bar {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 40px 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.footer-col h3 {
  color: var(--yellow-main);
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.footer-col p {
  margin-bottom: 8px;
  line-height: 1.5;
}

.phone-link {
  color: inherit;
  text-decoration: none;
}

.phone-link:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 12px;
  margin: 15px 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  transition: opacity 0.2s ease;
}

.social-icon:hover {
  opacity: 0.85;
}

.social-icon.fb { background-color: #1877f2; }
.social-icon.ig { background-color: #e4405f; }

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.text-red {
  color: var(--red-accent);
  font-weight: bold;
}

.site-footer {
  background-color: #0b0f19;
  color: #9ca3af;
  padding: 20px 0;
  text-align: center;
}

.footer-copy p {
  margin: 0;
  font-size: 0.9rem;
}

/* =================================================== */
/* 11. RESPONSYWNOŚĆ                                  */
/* =================================================== */
@media (max-width: 768px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .clean-slide { 
    height: 200px; 
  }
  .clean-slider-btn { 
    width: 34px; 
    height: 34px; 
    font-size: 14px; 
  }
}

/* =================================================== */
/* 12. POPRAWKA WIELKOŚCI EDYTORA W PANELU ADMINA       */
/* =================================================== */
.contact-form-wrapper,
.cms-editor-container,
.admin-editor-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 20px !important;
}

.contact-form-textarea,
.contact-form-input,
.cms-editor-container textarea,
.admin-editor-wrapper textarea,
iframe.cke_wysiwyg_frame,
.mce-edit-area iframe {
  width: 100% !important;
  min-height: 400px !important;
  box-sizing: border-box !important;
  resize: vertical !important;
}

body.dark-mode .contact-form-textarea,
body.dark-mode .contact-form-input,
body.dark-mode .cms-editor-container textarea {
  background-color: var(--input-bg, #1f2937) !important;
  color: var(--text-main, #f8fafc) !important;
  border-color: var(--border-color, #1e293b) !important;
}

/* =================================================== */
/* 13. OBSŁUGA LIST TEKSTOWYCH I GALERII ZDJĘĆ W CMS  */
/* =================================================== */

/* STYL DLA STANDARDOWYCH LIST TEKSTOWYCH (kropki zachowane) */
.content-area ul,
.wrapper ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

.content-area ul li,
.wrapper ul li {
  display: list-item;
  margin-bottom: 4px;
}

/* STYL DLA LIST ZAWIERAJĄCYCH ZDJĘCIA (wyśrodkowana galeria bez kropek) */
.content-area ul:has(img),
.wrapper ul:has(img) {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 15px !important;
  margin-top: 15px !important;
  margin-bottom: 15px !important;
}

.content-area ul:has(img) li,
.wrapper ul:has(img) li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* FORMATOWANIE SAMYCH ZDJĘĆ */
.content-area img,
.wrapper img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
}