/* ============================================
   QR MENÜ — MODERN CAFÉ AESTHETIC
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root{
  --ral6021:#2f7f5a;
  --ral7006:#7a6f5a;

  /* Zemin & kart */
  --bg:#faf8f5;
  --card:#ffffff;

  /* Metin */
  --text-main:#1a1a1a;
  --text-muted:#6b7280;

  /* Diğer */
  --muted:rgba(122,111,90,.78);
  --shadow:0 4px 24px rgba(0,0,0,.06);
  --shadow-hover:0 12px 40px rgba(0,0,0,.10);
  --radius:16px;

  --font-display:'Playfair Display', Georgia, serif;
  --font-body:'DM Sans', system-ui, sans-serif;

  --transition-fast:.2s cubic-bezier(.4,0,.2,1);
  --transition-smooth:.4s cubic-bezier(.4,0,.2,1);
}

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

html{scroll-behavior:smooth}

body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text-main);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

/* ================= LOADER ================= */

.loading-screen{
  position:fixed;inset:0;
  background:var(--ral6021);
  display:flex;align-items:center;justify-content:center;
  z-index:9999;
  transition:opacity .5s ease,visibility .5s ease;
}
.loading-screen.is-hidden{opacity:0;visibility:hidden;pointer-events:none}

.loader-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}

.loader-maskot{
  width:140px;
  height:140px;
  animation:maskotFloat 2.2s ease-in-out infinite;
  filter:drop-shadow(0 20px 40px rgba(0,0,0,.15));
}

.loader-maskot img{
  width:100%;
  height:100%;
  object-fit:contain;
}

@keyframes maskotFloat{
  0%,100%{
    transform:translateY(0) scale(1);
    opacity:0.35;
  }
  50%{
    transform:translateY(-12px) scale(1.05);
    opacity:1;
  }
}

/* ================= POPUP ================= */

.overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.5);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  z-index:9000;display:none;
  align-items:center;justify-content:center;
  padding:20px;
}
.overlay.is-open{
  display:flex;
  animation:fadeIn .3s ease;
}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}

.popup{
  width:min(520px,100%);
  background:var(--card);
  border-radius:20px;
  box-shadow:0 25px 60px rgba(0,0,0,.15);
  overflow:hidden;
  animation:popSlide .4s cubic-bezier(.4,0,.2,1);
}

@keyframes popSlide{
  from{opacity:0;transform:translateY(24px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

.popup-media{
  aspect-ratio:16/10;
  background:linear-gradient(135deg,#f0ebe4,#e8e3da);
  overflow:hidden;
}
.popup-media img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .6s ease;
}
.popup:hover .popup-media img{
  transform:scale(1.03);
}

.popup-body{padding:24px 24px 20px}

.popup-title{
  margin:0 0 8px;
  font-family:var(--font-display);
  font-size:22px;
  font-weight:700;
  letter-spacing:-.02em;
}
.popup-text{
  margin:0 0 18px;
  color:var(--text-muted);
  line-height:1.55;
  font-size:14.5px;
}

.popup-actions{display:flex;justify-content:flex-end}

.btn{
  border:0;
  border-radius:12px;
  padding:13px 24px;
  font-family:var(--font-body);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  transition:all var(--transition-fast);
  letter-spacing:.01em;
}

.btn-primary{
  background:var(--ral6021);
  color:#fff;
  box-shadow:0 4px 14px rgba(47,127,90,.25);
}
.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(47,127,90,.35);
  filter:brightness(1.06);
}
.btn-primary:active{
  transform:translateY(0);
}

/* ================= HEADER ================= */

.header{
  position:sticky;top:0;z-index:100;
  background:var(--ral6021);
  color:#fff;
  box-shadow:0 4px 30px rgba(0,0,0,.1);
}

.header-inner{
  width:min(980px,100%);
  margin:0 auto;padding:16px 20px;
  display:flex;align-items:center;justify-content:space-between;
}

.brand{display:flex;gap:12px;align-items:center}

.brand-badge{
  width:44px;height:44px;
  border-radius:13px;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;
  transition:transform var(--transition-fast);
}
.brand-badge:hover{transform:rotate(-3deg) scale(1.06)}
.brand-badge img{width:28px;height:28px;object-fit:contain}

.brand-name{
  font-family:var(--font-display);
  font-weight:800;
  font-size:21px;
  letter-spacing:-.02em;
}

.lang{
  display:flex;gap:4px;
  background:rgba(255,255,255,.12);
  padding:4px;border-radius:12px;
  backdrop-filter:blur(8px);
}
.lang button{
  border:0;background:transparent;
  color:rgba(255,255,255,.7);
  font-family:var(--font-body);
  font-weight:700;
  font-size:13px;
  padding:8px 14px;
  border-radius:10px;
  cursor:pointer;
  transition:all var(--transition-fast);
}
.lang button:hover{color:#fff}
.lang button.is-active{
  background:#fff;
  color:var(--ral6021);
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

/* ================= CATEGORIES ================= */

.cats-wrap{
  background:var(--card);
  border-bottom:1px solid rgba(0,0,0,.05);
  box-shadow:0 1px 4px rgba(0,0,0,.03);
}
.cats{
  width:min(980px,100%);
  margin:0 auto;padding:12px 20px;
  display:flex;gap:8px;overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.cats::-webkit-scrollbar{display:none}

.cat{
  padding:10px 18px;
  border-radius:12px;
  background:var(--bg);
  color:var(--text-main);
  border:1.5px solid rgba(0,0,0,.06);
  font-weight:600;
  font-size:13px;
  white-space:nowrap;
  transition:all var(--transition-fast);
  cursor:pointer;
  letter-spacing:.01em;
}
.cat:hover{
  background:var(--card);
  border-color:var(--ral6021);
  color:var(--ral6021);
  transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(47,127,90,.1);
}
.cat.is-active{
  background:var(--ral6021);
  color:#fff;
  border-color:var(--ral6021);
  box-shadow:0 4px 14px rgba(47,127,90,.25);
}

/* ================= CONTENT ================= */

.container{
  width:min(980px,100%);
  margin:0 auto;
  padding:8px 20px 60px;
}

.section{
  padding:24px 0 8px;
  scroll-margin-top:130px;
  animation:sectionIn .5s ease both;
}

@keyframes sectionIn{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:translateY(0)}
}

.section-title{
  margin:8px 0 16px;
  font-family:var(--font-display);
  font-size:22px;
  font-weight:800;
  display:flex;gap:12px;align-items:center;
  color:var(--text-main);
  letter-spacing:-.02em;
}
.section-title:before{
  content:"";
  width:4px;height:28px;
  border-radius:4px;
  background:var(--ral6021);
  flex-shrink:0;
}

.grid{display:grid;gap:12px}
@media(min-width:720px){
  .grid{grid-template-columns:1fr 1fr}
}

/* ================= CARD ================= */

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  display:flex;
  overflow:hidden;
  transition:all var(--transition-smooth);
  border:1px solid rgba(0,0,0,.04);
}
.card:hover{
  box-shadow:var(--shadow-hover);
  transform:translateY(-2px);
}

.card-media{
  width:110px;
  min-height:100px;
  background:linear-gradient(145deg,
    rgba(47,127,90,.05),
    rgba(47,127,90,.10));
  position:relative;
  overflow:hidden;
  flex-shrink:0;
}
.card-media img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .5s ease;
}
.card:hover .card-media img{
  transform:scale(1.06);
}

.card-body{
  flex:1;
  padding:14px 16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-width:0;
}

.name{
  margin:0;
  font-family:var(--font-display);
  font-size:16px;
  font-weight:700;
  color:var(--text-main);
  letter-spacing:-.01em;
  line-height:1.3;
}

.desc{
  margin-top:5px;
  font-size:13px;
  color:var(--text-muted);
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.price{
  align-self:flex-end;
  background:var(--ral6021);
  color:#fff;
  font-weight:700;
  padding:7px 14px;
  border-radius:10px;
  font-size:13px;
  margin-top:8px;
  letter-spacing:.02em;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(47,127,90,.2);
  transition:all var(--transition-fast);
}
.card:hover .price{
  box-shadow:0 4px 14px rgba(47,127,90,.3);
}

/* ================= PRODUCT DETAIL POPUP ================= */

.product-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  z-index:8000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.product-overlay.is-open{
  display:flex;
  animation:fadeIn .25s ease;
}

.product-popup{
  width:min(480px,100%);
  max-height:calc(100vh - 40px);
  background:var(--card);
  border-radius:22px;
  box-shadow:0 25px 70px rgba(0,0,0,.2);
  overflow:hidden;
  overflow-y:auto;
  position:relative;
  animation:popSlide .35s cubic-bezier(.4,0,.2,1);
}

/* Scrollbar inside popup */
.product-popup::-webkit-scrollbar{width:4px}
.product-popup::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:4px}

/* Close button */
.product-popup-close{
  position:absolute;
  top:12px;right:12px;
  z-index:10;
  width:36px;height:36px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.4);
  backdrop-filter:blur(8px);
  color:#fff;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:all var(--transition-fast);
  line-height:1;
}
.product-popup-close:hover{
  background:rgba(0,0,0,.6);
  transform:scale(1.08);
}

/* When no image, close button adapts */
.product-popup-media.no-image + .product-popup-body ~ .product-popup-close,
.product-popup:has(.product-popup-media.no-image) .product-popup-close{
  background:rgba(0,0,0,.08);
  color:var(--text-main);
}

/* Media */
.product-popup-media{
  width:100%;
  aspect-ratio:4/3;
  background:linear-gradient(145deg,
    rgba(47,127,90,.06),
    rgba(47,127,90,.12));
  overflow:hidden;
  position:relative;
}
.product-popup-media img{
  width:100%;height:100%;
  object-fit:cover;
}
.product-popup-media.no-image{
  aspect-ratio:auto;
  height:0;
  min-height:0;
}

/* Body */
.product-popup-body{
  padding:24px;
}

.product-popup-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}

.product-popup-name{
  margin:0;
  font-family:var(--font-display);
  font-size:24px;
  font-weight:800;
  color:var(--text-main);
  letter-spacing:-.02em;
  line-height:1.25;
  flex:1;
  min-width:0;
}

.product-popup-price{
  flex-shrink:0;
  background:var(--ral6021);
  color:#fff;
  font-weight:800;
  font-size:15px;
  padding:8px 18px;
  border-radius:12px;
  letter-spacing:.02em;
  box-shadow:0 3px 12px rgba(47,127,90,.25);
  white-space:nowrap;
}

.product-popup-desc{
  margin:0;
  color:var(--text-muted);
  font-size:15px;
  line-height:1.65;
  white-space:pre-line;
}

/* Empty description */
.product-popup-desc:empty{
  display:none;
}

/* ================= FOOTER ================= */

.footer{
  width:min(980px,100%);
  margin:0 auto 30px;
  padding:20px;
  font-size:13px;
  text-align:center;
  color:var(--text-muted);
  border-top:1px solid rgba(0,0,0,.06);
  letter-spacing:.01em;
}

/* ================= LANG ================= */

[data-lang="tr"] .en{display:none}
[data-lang="en"] .tr{display:none}

/* ================= SCROLLBAR ================= */

::-webkit-scrollbar{width:6px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:10px}
::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.18)}

/* ================= MOBILE RESPONSIVE ================= */

@media(max-width:720px){
  .header-inner{padding:14px 16px}
  .brand-badge{width:40px;height:40px}
  .brand-name{font-size:18px}
  .cats{padding:10px 16px;gap:6px}
  .cat{padding:9px 15px;font-size:12.5px}
  .container{padding:4px 16px 48px}
  .section-title{font-size:19px}

  .card-media{width:96px;min-height:90px}
  .name{font-size:15px}
  .price{padding:6px 12px;font-size:12.5px}

  .popup{border-radius:16px}
  .popup-body{padding:20px}
  .popup-title{font-size:19px}

  .grid{gap:10px}

  /* Product popup mobile */
  .product-overlay{padding:0;align-items:flex-end}
  .product-popup{
    width:100%;
    max-height:92vh;
    border-radius:22px 22px 0 0;
    animation:popSlideUp .35s cubic-bezier(.4,0,.2,1);
  }
  @keyframes popSlideUp{
    from{opacity:0;transform:translateY(100%)}
    to{opacity:1;transform:translateY(0)}
  }
  .product-popup-media{aspect-ratio:16/10}
  .product-popup-body{padding:20px}
  .product-popup-name{font-size:20px}
  .product-popup-price{font-size:14px;padding:7px 14px}
  .product-popup-desc{font-size:14px}
}

/* ================= SELECTION ================= */

::selection{
  background:var(--ral6021);
  color:#fff;
}
