/* ==========================================================================
   SoDo Sans Font Family (Light, Regular, SemiBold, Bold, Black)
   ========================================================================== */
@font-face {
  font-family: 'SoDo Sans';
  src: url('../fonts/SoDoSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SoDo Sans';
  src: url('../fonts/SoDoSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SoDo Sans';
  src: url('../fonts/SoDoSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SoDo Sans';
  src: url('../fonts/SoDoSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SoDo Sans';
  src: url('../fonts/SoDoSans-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Dynamic colors will be overridden by inline styles */
  --color-primary: #004225;
  --color-primary-dark: #002d19;
  --color-primary-light: #005c33;
  --color-primary-soft: #e5ece9;
  --color-background: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #212529;
  --color-text-secondary: #6c757d;
  --color-border: #dee2e6;
  --color-success: #198754;
  --color-danger: #dc3545;
  --color-warning: #ffc107;
  --color-info: #0dcaf0;
  
  --font-heading: 'SoDo Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'SoDo Sans', system-ui, -apple-system, sans-serif;
  --font-price: 'SoDo Sans', tabular-nums, system-ui, sans-serif;
  
  --nav-height: 68px;
  --header-height: 76px;
}

/* Typography Utility Classes */
.fw-light    { font-weight: 300 !important; }
.fw-regular  { font-weight: 400 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold     { font-weight: 700 !important; }
.fw-black    { font-weight: 900 !important; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 20px) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 { font-size: 1.75rem; font-weight: 900; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.2rem;  font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; }
h6 { font-size: 0.85rem; font-weight: 600; }

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Layout */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.3s, box-shadow 0.3s;
}

.app-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  height: 52px;
  max-width: 180px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.header-logo:hover {
  transform: scale(1.03);
}

.header-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

.header-action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
  transition: background-color 0.2s;
}

.header-action:hover {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  height: var(--nav-height);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s;
  gap: 4px;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
}

.nav-item:active svg {
  transform: scale(0.9);
}

.nav-item.active {
  color: var(--color-primary);
}

.nav-item.whatsapp {
  color: var(--color-success);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-surface);
}

@media (min-width: 768px) {
  .hero-slider {
    aspect-ratio: 1920 / 781;
    border-radius: 16px;
    margin-top: 1rem;
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-link {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  width: 22px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
}

/* Category Cards */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.category-card {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: transparent;
  transition: background-color 0.2s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-card:hover::before {
  background-color: var(--color-primary);
}

.category-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--color-primary-soft);
}

.category-info {
  flex: 1;
  margin-left: 1rem;
}

.category-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.category-arrow {
  color: var(--color-border);
  margin-left: 0.5rem;
}

/* Product Cards */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.product-card {
  display: flex;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background-color: var(--color-primary-soft);
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  margin-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-price {
  font-family: var(--font-price);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.product-price.discounted {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-price.discounted .original {
  text-decoration: line-through;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.badge-popular {
  background-color: #61CE70;
  color: #004225;
}

.badge-recommended {
  background-color: #004225;
  color: #61CE70;
}

.badge-new {
  background-color: #E8F8EA;
  color: #004225;
  border: 1px solid rgba(97, 206, 112, 0.4);
}

.badge-discount {
  background-color: #FFEAEA;
  color: #B91C1C;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 1rem 0;
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.filter-pill.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Product Modal (Bottom Sheet) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-background);
  border-radius: 24px 24px 0 0;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .bottom-sheet {
    max-width: 600px;
    margin: 0 auto;
  }
}

.bottom-sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 12px 0;
  cursor: grab;
}

.sheet-handle::after {
  content: '';
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 4px;
}

.sheet-content {
  overflow-y: auto;
  padding-bottom: 2rem;
}

.sheet-hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #eee;
}

.sheet-body {
  padding: 1.5rem;
}

.sheet-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.sheet-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sheet-desc {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.detail-section {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.detail-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 10;
}

/* Info Page */
.info-card {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.info-card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card-title svg {
  color: var(--color-primary);
}

.wifi-box {
  background: var(--color-primary-soft);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.wifi-pass {
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-row svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-btn.social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  border-color: transparent;
}

.social-btn.social-facebook:hover {
  background: #1877F2;
  color: #fff;
  border-color: #1877F2;
}

.social-btn.social-twitter:hover {
  background: #000000;
  color: #fff;
  border-color: #000000;
}

.social-btn.social-tiktok:hover {
  background: #000000;
  color: #fff;
  border-color: #000000;
}

/* Delivery Platform Grid */
.delivery-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delivery-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.delivery-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.delivery-btn-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.delivery-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.delivery-label {
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
}

.delivery-subtext {
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--color-text-muted);
  display: block;
}

.delivery-arrow {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.delivery-btn:hover .delivery-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

.delivery-yemeksepeti:hover {
  border-color: #ea004b;
}

.delivery-getiryemek:hover {
  border-color: #5d3ebc;
}

.delivery-ubereats:hover {
  border-color: #06c167;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: calc(var(--nav-height) + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toastIn 0.3s forwards, toastOut 0.3s forwards 2.7s;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(20px); }
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Loader */
.loader {
  border: 3px solid var(--color-primary-soft);
  border-top: 3px solid var(--color-primary);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-secondary);
}
.empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--color-border);
  margin-bottom: 1rem;
}

/* Search input */
.search-input-wrapper {
  position: relative;
  margin: 1rem 0;
}
.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--color-surface);
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--color-primary);
}
.search-icon-inside {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-secondary);
}
