:root {
  --bg: #faf7f2;
  --panel: #ffffff;
  --panel-2: #f5f0e8;
  --text: #2d2420;
  --muted: #6b5b52;
  --brand: #5c4033;
  --accent: #b85c38;
  --accent-soft: #d4a574;
  --danger: #c75050;
  --border: #e8e0d5;
  --chip: #ede6dc;
  --chip-active: #5c4033;
  --shadow: 0 2px 12px rgba(45, 36, 32, 0.06);
  --shadow-hover: 0 8px 24px rgba(45, 36, 32, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

#app { min-height: 100dvh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-logo { width: 42px; height: 42px; border-radius: var(--radius-sm); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.02em; font-size: 1.05rem; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2); }
.search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 14px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.icon-button:hover { background: var(--panel-2); border-color: var(--muted); }

.lang-toggle {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-width: 44px;
  transition: background 0.2s, border-color 0.2s;
}
.lang-toggle:hover {
  background: var(--panel-2);
  border-color: var(--muted);
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.cart-button:hover { background: #4a3529; transform: translateY(-1px); }
.cart-button .cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: 20px;
  padding: 20px;
  background: var(--bg);
  min-height: 100vh;
}
.layout.layout-bg {
  background: linear-gradient(180deg, var(--bg) 0%, var(--panel-2) 100%);
}

.categories {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100dvh - 96px);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.category-list { display: grid; gap: 8px; overflow: auto; max-height: 100%; padding-right: 4px; }
.category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.category-item.active, .category-item:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.category-item.active span, .category-item:hover span { color: #fff; }
.category-item img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }

.content { min-width: 0; }
.hero {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero img { width: 100%; height: 280px; object-fit: cover; display: block; }
.section-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; text-align: center; }
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  text-transform: uppercase;
}

/* Center column sections */
.section-block { padding: 8px 0 16px; }
.section-heading { position: sticky; top: 72px; background: var(--bg); padding: 8px 0; z-index: 5; font-weight: 800; }
.product-list { display: grid; gap: 12px; }
.product-row-item { display: grid; grid-template-columns: 1fr 200px; gap: 16px; align-items: center; border-top: 1px dashed var(--border); padding: 16px 0; }
.product-row-item .right img { width: 200px; height: 140px; border-radius: 12px; object-fit: cover; }
.product-row-item .left h3 { margin: 0 0 6px; font-size: 20px; }
.product-row-item .left .price { color: var(--accent); font-weight: 800; margin-bottom: 6px; }
.product-row-item .meta { color: var(--muted); }
.meta-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.chip-like { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #374151; font-size: 12px; position: relative; }
.chip-like .like-count { margin-left: 4px; padding: 2px 6px; background: rgba(184, 92, 56, 0.15); color: var(--accent); border-radius: 10px; font-size: 11px; font-weight: 600; }
.tag { color: var(--accent); font-size: 12px; font-weight: 600; }

/* old grid removed */

/* badges used in list */
.badge { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--chip); color: var(--brand); border: 1px solid var(--border); font-size: 12px; font-weight: 500; }
.price { font-weight: 700; }
.add-button {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.add-button:hover { background: #4a3529; transform: translateY(-1px); }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 36, 32, 0.5);
  backdrop-filter: blur(4px);
  z-index: 0;
}
.modal-dialog {
  position: relative;
  margin: 0 auto;
  width: min(680px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  z-index: 1;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.modal[aria-hidden="false"] .modal-dialog {
  transform: scale(1);
}
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.modal-body { padding: 0; }
.modal-top-image { width: 100%; height: 340px; object-fit: cover; display: block; }
.modal-inner { padding: 20px; display: grid; gap: 14px; }
.product-modal-inner { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.product-modal-title { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.product-modal-price { font-size: 1.3rem; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.product-modal-info { padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.product-modal-info-heading { margin: 0 0 8px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.product-modal-description { font-size: 0.95rem; line-height: 1.55; color: var(--text); }
.product-modal-description br { display: block; content: ""; margin-top: 0.35em; }
.product-modal-note { padding: 14px 16px; background: var(--panel-2); border-radius: 12px; margin-top: 8px; }
.product-modal-note p { margin: 0; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.45; }
.option-group { display: grid; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.option-title { margin: 0; font-size: 14px; color: var(--muted); }
.radio-row, .checkbox-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--border);
  cursor: pointer;
}
.pill input { accent-color: var(--brand); }
.modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.qty { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 6px 8px; }
.qty button { background: transparent; border: 0; color: var(--text); cursor: pointer; font-size: 16px; }

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92%);
  height: 100dvh;
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(45, 36, 32, 0.08);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.cart-items { overflow: auto; padding: 14px 16px; display: grid; gap: 12px; align-content: start; }
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--panel-2);
  min-height: 80px;
}
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.2; }
.cart-item .muted { color: var(--muted); font-size: 12px; line-height: 1.3; }
.cart-item .price { font-size: 14px; font-weight: 600; color: var(--accent); }
.cart-item .icon-button { align-self: start; }
.cart-footer { border-top: 1px solid var(--border); padding: 16px; display: grid; gap: 12px; background: var(--panel-2); }
.cart-total { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.checkout-button {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout-button:hover { background: #4a3529; }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 32, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 25;
}
.drawer-backdrop.active { opacity: 1; pointer-events: auto; }

/* Right Info Sidebar */
.info-sidebar { position: sticky; top: 72px; align-self: start; display: grid; gap: 10px; }
.search-panel { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; background: var(--panel); box-shadow: var(--shadow); }
.search-panel .search { padding: 8px 10px; }
.search-panel .search input { font-size: 13px; }
.info-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.info-card.expandable { grid-template-columns: 28px 1fr; }
.info-card .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
}
.info-card .label { font-size: 11px; color: var(--muted); line-height: 1.05; margin: 0; }
.info-card .value { font-weight: 600; font-size: 13.5px; line-height: 1.2; margin: 0; }
.info-card .value-link { color: var(--accent); text-decoration: none; }
.info-card .value-link:hover { text-decoration: underline; }
.value-with-toggle { display: flex; align-items: center; gap: 8px; }
.info-card > div { margin: 0; padding: 0; }
.expand-toggle { background: none; border: none; padding: 2px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.2s; }
.expand-toggle:hover { color: var(--text); }
.info-card.expanded .expand-toggle svg { transform: rotate(180deg); }
.opening-hours-list { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: none; }
.info-card.expanded .opening-hours-list { display: block; }
.opening-hours-list[aria-hidden="true"] { display: none; }
.opening-hours-list[aria-hidden="false"] { display: block; }
.opening-hour-day { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; margin-bottom: 4px; border-radius: 8px; background: transparent; transition: background 0.2s; }
.opening-hour-day.today { background: var(--brand); color: #fff; font-weight: 600; border-radius: 8px; }
.opening-hour-day-name { font-size: 13px; }
.opening-hour-day-time { font-size: 13px; font-weight: 500; }

.feedback-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  margin-top: 12px;
  transition: background 0.2s, transform 0.15s;
}
.feedback-button:hover { background: #a04f2e; transform: translateY(-1px); }

.form-group { display: grid; gap: 4px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }

/* Category Top Navigation */
.category-sticky {
  position: sticky;
  top: 66px;
  z-index: 10;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-row-item {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-row-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.product-row-item .right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 220px;
}
.product-row-item .right img {
  width: 100%;
  max-width: 300px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.product-row-item .left h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}
.product-row-item .left .price {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.product-row-item .meta { color: var(--muted); font-size: 14px; line-height: 1.5; }
.chip-like { background: var(--chip); color: var(--text); border-color: var(--border); border-radius: var(--radius-sm); }
.chip-like:hover { background: var(--panel-2); }
.chip-like span { color: var(--text); }

.section-heading {
  position: sticky;
  top: 130px;
  background: var(--bg);
  padding: 14px 0;
  z-index: 5;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-align: center;
  scroll-margin-top: 100px;
}

/* Responsive */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 220px 1fr; }
  .info-sidebar { display: none; }
}

/* Category Filter Buttons */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  margin-bottom: 4px;
  border-bottom: none;
  max-width: 100%;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.filter-chip:hover {
  background: var(--chip);
  border-color: var(--accent-soft);
  color: var(--brand);
}
.filter-chip:hover span { color: inherit; }

.filter-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.filter-chip.active:hover {
  background: #4a3529;
  border-color: #4a3529;
  color: #fff;
}
.filter-chip.active:hover span { color: #fff; }

html { scroll-behavior: smooth; }

/* Responsive hero heights */
@media (max-width: 860px) { 
  .hero img { height: 220px; }
  .category-filters {
    padding: 8px 0;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
  }
  .category-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-chip {
    padding: 6px 11px;
    font-size: 12px;
    flex-shrink: 0;
  }
}
@media (max-width: 520px) { 
  .hero img { height: 180px; }
  .category-filters {
    padding: 6px 0;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .category-filters::-webkit-scrollbar {
    display: none;
  }
  .filter-chip {
    padding: 6px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; padding: 12px 10px; }
  .categories { display: none; }
  .site-header { grid-template-columns: 1fr 1fr 1fr; }
  .cart-drawer { width: 100%; }
  .mobile-filter-screen { display: block; }
}
@media (max-width: 520px) {
  .layout { padding: 10px 8px; }
  .product-row-item {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }
  .product-row-item .right {
    min-height: 240px;
    order: -1;
  }
  .product-row-item .right img {
    width: 100%;
    max-width: none;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
  }
  .filter-options { grid-template-columns: 1fr; gap: 16px; }
  .filter-option-btn { padding: 24px 20px; }
}


/* Footer */
.site-footer {
  margin-top: 32px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border-top: 1px solid var(--border);
  padding-top: 1px;
}
.site-footer .brand-logo.small {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: var(--shadow);
}
.site-footer .brand-logo.small img { width: 100%; height: 100%; object-fit: cover; }
.site-footer.slim .footer-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: center; }
.footer-map iframe { border-radius: var(--radius-sm); }
.site-footer .footer-wrap .footer-info { display: grid; gap: 12px; }
.footer-brandline { display: inline-flex; align-items: center; gap: 12px; }
.footer-brandline .brand-name { font-family: var(--font-display); font-weight: 600; }
.footer-rows { display: grid; gap: 8px; }
.footer-row { display: flex; gap: 10px; align-items: center; }
.footer-row .muted { min-width: 72px; color: var(--muted); font-size: 13px; }
.footer-row a.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.footer-row a.link:hover { text-decoration: underline; }
.footer-social-inline { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.footer-social-inline a { color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-social-inline a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  background: var(--panel-2);
}
.footer-copyright { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-copyright span { color: var(--muted); font-size: 12px; }
.footer-powered { font-size: 11px; color: var(--muted); }
.footer-powered a:hover { text-decoration: underline; color: var(--accent); }

/* Mobil: footer ünvanı link deyil, sadə mətin (altda xəritə var) */
.footer-address-text { display: none; }
@media (max-width: 860px) {
  .footer-address-link { display: none !important; }
  .footer-address-text { display: inline; }
}
@media (min-width: 861px) {
  .footer-address-text { display: none; }
}

/* Şikayət və təkliflər – yalnız mobilde (sidebar gizlənəndə) footer-da göstər */
.footer-row-social { margin-top: 4px; }

@media (max-width: 860px) {
  .site-footer.slim .footer-wrap { grid-template-columns: 1fr; }
}
