/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;900&display=swap');

:root {
  --primary-color: #f97316;
  --primary-hover: #ea580c;
  --secondary-color: #0f172a;
  --accent-color: #e11d48;
}

html, body {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  touch-action: manipulation;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Light / Dark Mode Color Smoothing */
aside, header, nav, main, section, .glass-panel, .glass-card, .modal-box {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
}

/* Prevent auto-zoom on iOS inputs */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Glassmorphism effects (Light & Dark) */
.glass-panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .glass-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 10px 25px -8px rgba(249, 115, 22, 0.2);
}

/* Hidden state with highest specificity (All layouts & screens) */
.product-card.is-hidden,
.product-card.hidden,
#products-container .product-card.is-hidden,
#products-container .product-card.hidden,
.layout-grid-dense .product-card.is-hidden,
.layout-grid-dense .product-card.hidden,
.layout-list-compact .product-card.is-hidden,
.layout-list-compact .product-card.hidden,
.layout-magazine-large .product-card.is-hidden,
.layout-magazine-large .product-card.hidden,
.layout-grid-standard .product-card.is-hidden,
.layout-grid-standard .product-card.hidden,
[style*="display: none"] {
  display: none !important;
}

/* ========================================== */
/* PRODUCT CARD IMAGE (Clean & Original)      */
/* ========================================== */
.card-img-box {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.product-card-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

/* Modal Detail Image */
#modal-img-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #090d16 !important;
  padding: 0;
  position: relative;
  overflow: hidden;
}

#modal-detail-img {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* 3D Canvas Container (Light & Dark) */
#canvas3d-container {
  width: 100%;
  height: 250px;
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: radial-gradient(circle at center, #f1f5f9 0%, #cbd5e1 100%);
  touch-action: none;
}

.dark #canvas3d-container {
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

@media (min-width: 640px) {
  #canvas3d-container {
    height: 380px;
  }
}

#canvas3d-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
  cursor: grab;
}

#canvas3d-container canvas:active {
  cursor: grabbing;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
.dark ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(249, 115, 22, 0.4);
  border-radius: 9999px;
}

/* Hide horizontal scrollbar for categories bar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Touch feedback */
.touch-active:active {
  transform: scale(0.95);
  opacity: 0.85;
}

/* Centered Modals on Mobile & Desktop */
.modal-centered-box {
  margin: auto !important;
  max-height: 90vh !important;
  max-width: calc(100vw - 1.5rem) !important;
}

@media (min-width: 640px) {
  .modal-centered-box {
    max-width: 32rem !important;
  }
}

/* Mobile Horizontal Food Card Styling (Default on Mobile) */
@media screen and (max-width: 639px) {
  #products-container:not(.layout-grid-dense) .mobile-card-row:not(.is-hidden):not(.hidden) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0.75rem !important;
    gap: 0.75rem !important;
  }

  #products-container:not(.layout-grid-dense) .mobile-card-row .card-img-box {
    width: 90px !important;
    height: 90px !important;
    flex-shrink: 0 !important;
    border-radius: 1rem !important;
    order: 2 !important;
  }

  #products-container:not(.layout-grid-dense) .mobile-card-row .card-body-box {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
    order: 1 !important;
  }

  #products-container:not(.layout-grid-dense) .mobile-card-row .card-footer-box {
    padding: 0 !important;
    border: none !important;
    margin-top: 0.35rem !important;
  }

  #products-container:not(.layout-grid-dense) .mobile-card-row .card-desc {
    font-size: 11px !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
}

/* ========================================== */
/* ALTERNATIVE MENU LAYOUTS (Admin Settings)  */
/* ========================================== */

/* 1. Kompakt Liste Formatı (.layout-list-compact) */
.layout-list-compact {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.625rem !important;
}

.layout-list-compact .product-card:not(.hidden):not(.is-hidden) {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0.625rem 0.875rem !important;
  gap: 0.75rem !important;
  min-height: unset !important;
  border-radius: 1.25rem !important;
}

.layout-list-compact .product-card .card-img-box {
  width: 72px !important;
  height: 72px !important;
  flex-shrink: 0 !important;
  border-radius: 0.875rem !important;
  order: 2 !important;
}

.layout-list-compact .product-card .card-body-box {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 0 !important;
  order: 1 !important;
}

.layout-list-compact .product-card .card-footer-box {
  padding: 0 !important;
  border: none !important;
  margin-top: 0.25rem !important;
}

.layout-list-compact .product-card .card-desc {
  font-size: 11px !important;
  line-height: 1.3 !important;
  -webkit-line-clamp: 1 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* 2. Büyük Magazin Vitrini (.layout-magazine-large) */
.layout-magazine-large .product-card:not(.hidden):not(.is-hidden) {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 1.75rem !important;
}

.layout-magazine-large .product-card .card-img-box {
  height: 220px !important;
}

@media (min-width: 640px) {
  .layout-magazine-large .product-card .card-img-box {
    height: 290px !important;
  }
}

/* 3. Yoğun 2'li Izgara Formatı (.layout-grid-dense) */
.layout-grid-dense .product-card:not(.hidden):not(.is-hidden) {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  border-radius: 1.25rem !important;
}

.layout-grid-dense .product-card .card-img-box {
  width: 100% !important;
  height: 120px !important;
  border-radius: 1.25rem 1.25rem 0 0 !important;
  order: 1 !important;
}

@media (min-width: 640px) {
  .layout-grid-dense .product-card .card-img-box {
    height: 160px !important;
  }
}

.layout-grid-dense .product-card .card-body-box {
  padding: 0.625rem 0.625rem 0.25rem 0.625rem !important;
  order: 2 !important;
}

.layout-grid-dense .product-card .card-body-box h3 {
  font-size: 0.8125rem !important;
  line-height: 1.25 !important;
}

.layout-grid-dense .product-card .card-desc {
  font-size: 10px !important;
  line-height: 1.25 !important;
  -webkit-line-clamp: 1 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.layout-grid-dense .product-card .card-footer-box {
  padding: 0 0.625rem 0.625rem 0.625rem !important;
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
  }
  50% {
    box-shadow: 0 0 28px rgba(249, 115, 22, 0.7);
  }
}

.animate-glow {
  animation: pulse-glow 2.5s infinite;
}

@keyframes new-order-pulse {
  0%, 100% {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.4), 0 0 20px -2px rgba(249, 115, 22, 0.5);
    border-color: rgba(249, 115, 22, 1);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.8), 0 0 35px 2px rgba(245, 158, 11, 0.85);
    border-color: rgba(245, 158, 11, 1);
  }
}

.animate-new-order {
  animation: new-order-pulse 1.8s ease-in-out infinite;
}

@keyframes badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.animate-badge {
  animation: badge-bounce 2s ease-in-out infinite;
}

/* Print Styles for Table QR Codes */
@media print {
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .no-print {
    display: none !important;
  }
}

/* ========================================== */
/* MULTI-LANGUAGE & GOOGLE TRANSLATE STYLING  */
/* ========================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMy,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-SmfZ-OEG7W,
iframe[class*="VIpgJd"],
div[class*="VIpgJd"],
div[id^="goog-gt-"],
.goog-te-spinner-pos {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

html, body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

/* Hide Google's auto-injected top bar container */
body > .skiptranslate:not(.lang-dropdown-wrapper):not(#language-switcher-wrapper),
body > div[id^="goog-gt"],
body > iframe[id^=":"] {
  display: none !important;
}

#google_translate_element {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

font {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Language Dropdown Menu Animations & Glass Effect */
.lang-dropdown-menu {
  transform-origin: top right;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-menu.hidden {
  opacity: 0;
  transform: scale(0.95) translateY(-6px);
  pointer-events: none;
  display: none !important;
}

.lang-dropdown-menu:not(.hidden) {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  display: block !important;
}

/* RTL Layout Mode (Arabic) */
[dir="rtl"] .product-card .card-img-box + div {
  text-align: right;
}
[dir="rtl"] #menu-search {
  padding-left: 1rem;
  padding-right: 2.75rem;
  text-align: right;
}
[dir="rtl"] #menu-search + i,
[dir="rtl"] .relative > i[data-lucide="search"] {
  left: auto;
  right: 0.875rem;
}

/* Story Bubbles / Instagram Style Equal Sizing & Spacing */
.story-ring {
  flex-shrink: 0;
  box-sizing: border-box;
}

.story-label {
  display: block;
  width: 100%;
  text-align: center;
}




