/* ============================================
   KAZANDIBI DÃœNYASI â€” Components
   ============================================ */

/* â”€â”€ Header â”€â”€ */
.header {
  position: relative;
  text-align: center;
  padding: var(--space-12) var(--space-4) var(--space-8);
  overflow: hidden;
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,165,116,0.12) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="light"] .header::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(180,120,50,0.10) 0%, transparent 70%);
}
.theme-toggle {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-base);
}
.theme-toggle:hover {
  background: var(--color-surface-hover);
  transform: scale(1.05);
}
.header__logo {
  width: 90px;
  height: 90px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  border: 2px solid rgba(212,165,116,0.3);
  padding: 4px;
  background: var(--color-surface);
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.header__title {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  background: var(--gradient-gold);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
[data-theme="light"] .header__title {
  background: linear-gradient(90deg, #6B3410, #A0521E, #6B3410);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header__tagline {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.header__info {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
  font-size: 16px;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}
.header__info-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.header__divider {
  width: 60px;
  height: 1px;
  background: var(--gradient-primary);
  margin: var(--space-6) auto 0;
  position: relative;
  z-index: 1;
}

/* â”€â”€ Search Bar â”€â”€ */
.search-bar {
  position: relative;
  margin: var(--space-4) auto;
  max-width: var(--container-max);
  padding: 0 var(--space-4);
}
.search-bar__input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
  background: var(--color-surface);
  border: var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}
.search-bar__input:focus {
  border-color: rgba(212,165,116,0.3);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.08);
}
.search-bar__input::placeholder {
  color: var(--color-text-muted);
}
.search-bar__icon {
  position: absolute;
  left: calc(var(--space-4) + var(--space-3));
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: var(--text-md);
  pointer-events: none;
}
.search-bar__clear {
  position: absolute;
  right: calc(var(--space-4) + var(--space-3));
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: var(--text-md);
  padding: var(--space-1);
  display: none;
  transition: color var(--transition-fast);
}
.search-bar__clear.visible { display: block; }
.search-bar__clear:hover { color: var(--color-text); }

/* â”€â”€ Category Bar â”€â”€ */
.category-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(17,14,12,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,165,116,0.06);
  padding: var(--space-3) 0;
  transition: box-shadow var(--transition-base);
}
[data-theme="light"] .category-bar {
  background: rgba(243, 234, 211, 0.94);
  border-bottom: 1px solid rgba(212,165,116,0.2);
}
.category-bar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
[data-theme="light"] .category-bar.scrolled {
  box-shadow: 0 4px 20px rgba(139,95,40,0.12);
}
.category-bar__list {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: 0 var(--space-4);
  scroll-snap-type: x mandatory;
}
.category-bar__item {
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-bold);
  color: var(--color-text-muted);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  min-width: 68px;
  text-align: center;
  position: relative;
}
.category-bar__item:hover {
  color: var(--color-text-secondary);
  background: rgba(212,165,116,0.05);
}
.category-bar__item.active {
  color: var(--color-primary);
  background: rgba(212,165,116,0.1);
}
.category-bar__item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
.category-bar__icon {
  font-size: var(--text-lg);
  line-height: 1;
}

/* â”€â”€ Menu Section â”€â”€ */
.menu-section {
  padding: var(--space-6) 0 var(--space-2);
}
.menu-section__header {
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.menu-section__icon {
  font-size: var(--text-xl);
}
.menu-section__title {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--color-primary);
}
.menu-section__count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: auto;
}
.menu-section__divider {
  width: 40px;
  height: 1px;
  background: var(--gradient-primary);
  margin: var(--space-1) 0 0 0;
  opacity: 0.5;
}

/* â”€â”€ Menu Card â”€â”€ */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: 0 var(--space-4);
}
.menu-card {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.menu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.menu-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212,165,116,0.2);
  box-shadow: var(--shadow-card);
}
.menu-card:hover::before { opacity: 1; }
.menu-card:active {
  transform: translateY(0);
  transition-duration: 80ms;
}
.menu-card__image-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.menu-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.menu-card:hover .menu-card__image {
  transform: scale(1.08);
}
.menu-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-hover);
  font-size: var(--text-3xl);
}
.menu-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.menu-card__name {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.menu-card__desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-2);
}
.menu-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.menu-card__price {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}
.menu-card__price .currency {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-primary-dark);
}
.menu-card__actions {
  display: flex;
  gap: var(--space-2);
}
.menu-card__fav {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212,165,116,0.08);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}
.menu-card__fav:hover { background: rgba(212,165,116,0.15); }
.menu-card__fav.active {
  background: rgba(212,165,116,0.2);
  color: #e74c3c;
}

/* â”€â”€ Badge â”€â”€ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 6px;
  border-radius: 4px; /* Clean modern tag look */
  font-size: 10px; /* Small and compact to fit inside 88px image boundary */
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.badge--glutenfree {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  color: #ffffff;
}
.badge--popular {
  background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
  color: #ffffff;
}
.badge--promo {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  color: #ffffff;
}
.badge--natural {
  background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
  color: #ffffff;
}
.badge--signature {
  background: linear-gradient(135deg, #d4a574 0%, #a3723f 100%);
  color: #ffffff;
  border: 1px solid rgba(212, 165, 116, 0.4);
}

/* â”€â”€ Bottom Sheet Modal â”€â”€ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--color-bg-alt);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  z-index: var(--z-modal);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(var(--space-8) + var(--bottom-safe));
}
.modal-sheet.active {
  transform: translateY(0);
}
.modal-sheet__handle {
  width: 36px;
  height: 4px;
  background: var(--color-surface-active);
  border-radius: var(--radius-full);
  margin: var(--space-3) auto var(--space-2);
}
.modal-sheet__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.modal-sheet__image-placeholder {
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  font-size: 80px;
}
.modal-sheet__body {
  padding: var(--space-5) var(--space-5);
}
.modal-sheet__name {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.modal-sheet__price {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.modal-sheet__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}
.modal-sheet__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.modal-sheet__tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  background: var(--color-surface);
  border: var(--glass-border);
  color: var(--color-text-secondary);
}
.modal-sheet__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  z-index: 2;
  transition: background var(--transition-fast);
}
.modal-sheet__close:hover { background: rgba(0,0,0,0.7); }

/* â”€â”€ Order Button (hidden by default, toggle from admin) â”€â”€ */
.order-btn {
  width: 100%;
  padding: var(--space-4);
  background: var(--gradient-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
  text-align: center;
  transition: all var(--transition-base);
  display: none; /* Toggle from admin */
}
.order-btn:hover {
  opacity: 0.9;
  transform: scale(1.01);
}
body.order-enabled .order-btn { display: block; }

/* â”€â”€ WhatsApp Float â”€â”€ */
.whatsapp-float {
  position: fixed;
  bottom: calc(var(--space-6) + var(--bottom-safe));
  right: var(--space-4);
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  z-index: var(--z-float);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: all var(--transition-base);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
}

/* â”€â”€ Footer â”€â”€ */
.footer {
  text-align: center;
  padding: var(--space-10) var(--space-4) calc(var(--space-8) + var(--bottom-safe));
  border-top: 1px solid rgba(212,165,116,0.06);
  margin-top: var(--space-8);
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-md);
  transition: all var(--transition-base);
}
.footer__social-link:hover {
  border-color: rgba(212,165,116,0.3);
  background: var(--color-surface-hover);
  transform: translateY(-2px);
}
.footer__address {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.footer__hours {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.footer__copy {
  font-size: 14px;
  color: var(--color-text-muted);
  opacity: 0.5;
}

/* â”€â”€ Footer Platforms â”€â”€ */
.footer__platforms {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(212,165,116,0.06);
}
.footer__platforms-title {
  font-size: 16px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.footer__platforms-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}
.footer__platform-link {
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 16px;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
  text-decoration: none;
}
.footer__platform-link:hover {
  border-color: rgba(212,165,116,0.3);
  background: var(--color-surface-hover);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* â”€â”€ No Results â”€â”€ */
.no-results {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}
.no-results__icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.3;
}
.no-results__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* â”€â”€ Cart Float Button â”€â”€ */
.cart-float {
  position: fixed;
  bottom: calc(var(--space-6) + var(--bottom-safe));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--space-8));
  max-width: 400px;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-float);
  cursor: pointer;
  animation: slideUp 0.3s ease;
}
.cart-float__info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.cart-float__count {
  background: var(--color-text-inverse);
  color: var(--color-primary);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
}
.cart-float__text {
  font-weight: var(--weight-semibold);
}
.cart-float__price {
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}

/* â”€â”€ Cart Items Modal â”€â”€ */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(212,165,116,0.1);
}
.cart-item__name {
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-1);
}
.cart-item__price {
  color: var(--color-primary);
  font-weight: var(--weight-bold);
}
.cart-item__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-surface);
  padding: 4px;
  border-radius: var(--radius-full);
}
.cart-btn {
  width: 28px;
  height: 28px;
  background: rgba(212,165,116,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: bold;
}
.cart-qty {
  min-width: 16px;
  text-align: center;
  font-weight: var(--weight-bold);
}

/* â”€â”€ Loading Skeleton â”€â”€ */
.skeleton {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}
@keyframes skeletonPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* â”€â”€ About Modal & Button â”€â”€ */
.about-open-btn {
  padding: var(--space-2) var(--space-4);
  background: rgba(212,165,116,0.1);
  border: 1px solid rgba(212,165,116,0.3);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: var(--weight-medium);
  transition: all var(--transition-base);
  cursor: pointer;
}
[data-theme="light"] .about-open-btn {
  background: rgba(139,69,19,0.1);
  border: 1px solid rgba(139,69,19,0.35);
  color: #7A3A10;
}
.about-open-btn:hover {
  background: rgba(212,165,116,0.2);
  transform: translateY(-2px);
}
[data-theme="light"] .about-open-btn:hover {
  background: rgba(139,69,19,0.18);
}

.about-section {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(212,165,116,0.1);
}
.about-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.about-section__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.about-platforms {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.about-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
  text-decoration: none;
  transition: all var(--transition-base);
  color: white;
}
.about-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.about-btn--trendyol { background: #F27A1A; }
.about-btn--yemeksepeti { background: #ea004b; }
.about-btn--getir { background: #5d3ebc; color: #ffd300; }
.about-btn--migros { background: #ff7f00; }

.about-action-btn {
  flex: 1;
  padding: var(--space-3);
  background: var(--color-surface);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: all var(--transition-base);
}
.about-action-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.about-ig-link {
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-body);
}
.about-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.about-ig-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: block;
  transition: transform var(--transition-base);
}
.about-ig-item:hover {
  transform: scale(1.05);
}

/* ¦¦ Added Icon Styles ¦¦ */
.category-bar__img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
  transition: transform var(--transition-base), filter var(--transition-base);
}
.category-bar__item:hover .category-bar__img,
.category-bar__item.active .category-bar__img {
  transform: scale(1.15);
  filter: drop-shadow(0 6px 16px rgba(212,165,116,0.5));
}
.menu-section__img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

