/* DESIGN PANEL: EDIT COLORS, FONTS, SIZES BELOW */
:root {
  --color-bg: linear-gradient(to bottom, #e8d7c4 0%, #f2e3c5 18%, #bfe5d7 40%, #8ecab5 65%, #52b397 85%, #18846a 100%);
  --color-surface: #f7f7f9; /* EDIT: Card surface color */
  --color-text: #0b0b0d; /* EDIT: Primary text color */
  --color-muted: #6b6b70; /* EDIT: Secondary text color */
  --color-primary: #0a84ff; /* EDIT: Primary brand color */
  --color-accent: #34c759; /* EDIT: Accent color */
  --radius: 14px; /* EDIT: Global border radius */
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; /* EDIT: Font */
  --base-size: 16px; /* EDIT: Base font size */
  --header-scale: 1;
  --space-1: 6px; --space-2: 10px; --space-3: 14px; --space-4: 18px; --space-5: 24px; --space-6: 32px; /* EDIT: Spacing scale */
  --badge-new-bg: #0a84ff; /* EDIT: Badge color for New */
  --badge-spicy-bg: #ff3b30; /* EDIT: Badge color for Spicy */
  --badge-vegan-bg: #34c759; /* EDIT: Badge color for Vegan */
  --badge-glutenfree-bg: #8e8e93;
  --badge-sugarfree-bg: #5856d6;
  --badge-lactosefree-bg: #5856d6;/*burdan devam */
  
  --badge-sugarfree-bg: #5856d6;
  --badge-sugarfree-bg: #5856d6;
}
/* Non-editable core styles below */
* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--base-size);
  color: var(--color-text);
  background: var(--color-bg);
  color-scheme: light dark;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, #f7efdb 0%, #f2e3c5 60%, #e9d8c7 100%);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2) 0 var(--space-2);
  position: relative;
  transition: padding 0.2s ease;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-2);
  transform: scale(var(--header-scale));
  transform-origin: top center;
  transition: transform 0.2s ease;
}
.brand-logo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-surface);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  text-align: center;
}
[data-theme="light"] .brand-name { color: #1f856b; }
.social {
  display: flex;
  gap: var(--space-3);
  position: absolute;
  top: var(--space-4);
  right: calc(var(--space-6) + 86px);
}
.social a {
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #66302d;
  background: var(--color-surface);
  border-radius: 50%;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.lang-toggle {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  margin-left: 0;
  height: 30px; padding: 0 10px;
  border-radius: 999px;
  background: var(--color-surface);
  color: #66302d;
  border: 1px solid var(--border-color);
  font-weight: 600;
  cursor: pointer;
}
.category-grid {
  display: flex;
  gap: var(--space-2);
  padding-bottom: var(--space-2);
  transition: opacity 0.2s ease;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.category-grid::-webkit-scrollbar { display: none; height: 0; }
@media (min-width: 640px) {
  .category-card .cat-image { width: 84px; }
}
.category-card {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.category-card .cat-image {
  width: 72px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.category-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-label {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  color: #66302d;
}
[data-theme="dark"] .cat-label { color: var(--color-text); }
.category-card.active .cat-image { outline: 3px solid var(--color-primary); outline-offset: -3px; }
.section {
  padding: var(--space-5) 0 var(--space-2);
}
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .products { grid-template-columns: 1fr 1fr; }
}
.card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  }
.card.vertical {
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .card { grid-template-columns: 120px 1fr auto; }
}
.product-image {
  width: 100%; height: 96px; border-radius: 12px; overflow: hidden; background: #eaeaf0;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.vertical .product-image { height: 160px; }
.badges {
  position: absolute;
  top: 7px; left: 7px;
  display: flex; gap: 3px;
}
.badge {
  font-size: 8px; font-weight: 700;
  color: #fff;
  padding: 1px 5px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.badge--new { background: var(--badge-new-bg); }
.badge--spicy { background: var(--badge-spicy-bg); }
.badge--vegan { background: var(--badge-vegan-bg); }
.badge--gluten_free { background: var(--badge-glutenfree-bg); }
.badge--sugar_free { background: var(--badge-sugarfree-bg); }
.badge--lactose_free { background: var(--badge-lactosefree-bg); }/*burdan devam */
.badge--sugar_free { background: var(--badge-sugarfree-bg); }
.badge--sugar_free { background: var(--badge-sugarfree-bg); }
.product-info {
  min-width: 0;
}
.product-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.product-desc {
  color: var(--color-muted);
  margin-top: 6px;
  font-size: 0.95rem;
}
.price {
  font-weight: 700;
  color: var(--color-text);
  font-size: 1.05rem;
  white-space: nowrap;
}
.price .currency {
  color: var(--color-muted);
  font-weight: 600;
}
/* Floating footer note */
.footer-note {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  padding: var(--space-6) var(--space-5) var(--space-6);
}

/* Hidden when filtered */
.hidden { display: none !important; }

.search-bar {
  position: sticky;
  top: 44px;
  z-index: 19;
  background: linear-gradient(to bottom, rgba(242,227,197,0.16), rgba(242,227,197,0.10) 70%, rgba(242,227,197,0.00) 100%);
  backdrop-filter: blur(10px);
  padding: var(--space-2) 0 var(--space-2);
}
.search-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--color-surface);
  font-size: 0.95rem;
  outline: none;
}
.filters {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; height: 0; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}
.filter-chip input { accent-color: var(--color-primary); }

/* Edge fade indicators for horizontal overflow */
.filters.fade-left {
  -webkit-mask-image: linear-gradient(to right, transparent 16px, #000 36px, #000 100%);
          mask-image: linear-gradient(to right, transparent 16px, #000 36px, #000 100%);
}
.filters.fade-right {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
}
.filters.fade-both {
  -webkit-mask-image: linear-gradient(to right, transparent 16px, #000 36px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 16px, #000 36px, #000 calc(100% - 36px), transparent 100%);
}
/* Edge fade for category grid */
.category-grid.fade-left {
  -webkit-mask-image: linear-gradient(to right, transparent 16px, #000 36px, #000 100%);
          mask-image: linear-gradient(to right, transparent 16px, #000 36px, #000 100%);
}
.category-grid.fade-right {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 36px), transparent 100%);
}
.category-grid.fade-both {
  -webkit-mask-image: linear-gradient(to right, transparent 16px, #000 36px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 16px, #000 36px, #000 calc(100% - 36px), transparent 100%);
}

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.25); backdrop-filter: blur(8px);
  display: none;
}
.modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 50;
}
.modal.open, .modal-backdrop.open { display: flex; }
.modal-card {
  width: min(92vw, 560px);
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  position: relative;
}
.modal-image { width: 100%; height: 300px; background: var(--color-surface); display: flex; align-items: center; justify-content: center; padding-top: 10px; }
.modal-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.modal-body { padding: 18px; }
.modal-subtitle { margin-top: 14px; font-weight: 700; color: var(--color-text); }
.modal-title { font-weight: 800; font-size: 1.2rem; }
.modal-price { font-weight: 700; margin-top: 6px; }
.modal-desc { color: var(--color-muted); margin-top: 10px; }
.modal-tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 8px; }
.tag { padding: 6px 10px; border-radius: 12px; background: var(--color-surface); color: var(--color-text); font-weight: 600; font-size: 12px; border: 1px solid var(--border-color); text-align: center; }
.modal-actions { display: flex; justify-content: flex-end; padding: 12px 18px 18px; }
.close-btn { padding: 10px 16px; border-radius: 999px; border: none; background: var(--color-primary); color: #fff; cursor: pointer; font-weight: 700; box-shadow: 0 8px 20px rgba(10,132,255,0.25); }
:root { --border-color: rgba(0,0,0,0.08); --divider-color: rgba(0,0,0,0.06); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow); cursor: pointer; }
.modal-x i { pointer-events: none; }
[data-theme="dark"] { --color-bg: radial-gradient(900px 420px at 20% -5%, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 60%), linear-gradient(135deg, #121417 0%, #15181d 50%, #101215 100%); --color-surface: #22262d; --color-text: #ecebe7; --color-muted: #b8b2ab; --shadow: 0 10px 30px rgba(0,0,0,0.45); --badge-new-bg: #0a84ff; --badge-spicy-bg: #ff3b30; --badge-vegan-bg: #34c759; --border-color: rgba(255,255,255,0.12); --divider-color: rgba(255,255,255,0.08); }
.page-blur .header { filter: blur(6px); transition: filter 0.2s ease; }
.page-blur .search-bar { filter: blur(6px); transition: filter 0.2s ease; }
.theme-toggle { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface); color: #66302d; border-radius: 50%; box-shadow: var(--shadow); border: none; cursor: pointer; }
.card { background: #f2e3c5; }
.product-title { color: #66302d; }
.product-desc { color: #9c5752; }
[data-theme="dark"] .card { background: #2a2e35; }
[data-theme="dark"] .product-title { color: #e8d7cf; }
[data-theme="dark"] .product-desc { color: #c9b1ac; }
[data-theme="dark"] .header { background: linear-gradient(to bottom, #343943 0%, #2f343d 60%, #2a2e35 100%); }
[data-theme="dark"] .search-bar { background: linear-gradient(to bottom, rgba(47,52,61,0.18), rgba(47,52,61,0.10) 70%, rgba(47,52,61,0.00) 100%); }
[data-theme="dark"] .social a, [data-theme="dark"] .theme-toggle, [data-theme="dark"] .lang-toggle, [data-theme="dark"] .tab { color: var(--color-text); }
@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .header-inner { padding: var(--space-1) 0 var(--space-2); }
  .category-grid { padding-bottom: var(--space-1); }
  .search-bar { top: 44px; padding: var(--space-2) 0 var(--space-2); }
  .card { grid-template-columns: 64px 1fr auto; gap: var(--space-2); padding: var(--space-2); }
  .product-image { height: 64px; border-radius: 10px; }
  .product-title { font-size: 0.95rem; }
  .product-desc { font-size: 0.9rem; }
  .price { font-size: 0.9rem; }
  .social { top: var(--space-2); right: calc(var(--space-4) + 82px); gap: 6px; }
  .social a, .theme-toggle { width: 28px; height: 28px; }
  .lang-toggle { top: var(--space-2); right: var(--space-4); height: 28px; padding: 0 8px; }
}

@media (max-width: 380px) {
  .social {
    left: var(--space-4);
    right: auto;
  }
  .lang-toggle { top: var(--space-2); right: var(--space-4); }
}

.read-more { background: transparent; border: none; color: var(--color-primary); font-weight: 600; cursor: pointer; padding: 0; margin-top: 6px; }
@media (max-width: 480px) {
  .product-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .product-desc.expanded { display: block; -webkit-line-clamp: unset; }
}
.tabs-compact {
  display: none;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
  transition: opacity 0.2s ease;
}
.tabs-compact::-webkit-scrollbar { height: 0px; }
.sub-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-2);
  transition: opacity 0.2s ease;
  scrollbar-width: none;
}
.sub-tabs::-webkit-scrollbar { height: 0px; }
.tab {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--color-surface);
  color: #66302d;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.tab.active { color: #fff; background: var(--color-primary); border-color: var(--color-primary); box-shadow: 0 8px 18px rgba(10,132,255,0.25); }
.compact .category-grid { display: none; opacity: 0; }
.compact .tabs-compact { display: flex; }
.compact .brand-logo { width: 52px; height: 52px; }
.compact .brand-name { font-size: 1rem; }
.compact .social a, .compact .theme-toggle { width: 26px; height: 26px; }
.compact .lang-toggle { height: 26px; padding: 0 8px; }
.compact .search-bar { top: 38px; padding: var(--space-1) 0 var(--space-1); }
.compact .filter-chip { padding: 4px 8px; font-size: 0.9rem; }
