:root{
  --gold:#d4af37;
  --gold-neon:#ffd86a;
  --brown:#2b1b12;
  --dark:#0a0a0a;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:"Segoe UI", sans-serif;
  background:radial-gradient(circle at top,#1a120b 0%,#050505 60%);
  color:var(--gold);
}

header{
  text-align:center;
  border-bottom:1px solid var(--brown);
  box-shadow:0 0 25px rgba(212,175,55,.15);
}

header h1{
  letter-spacing:4px;
  text-shadow:0 0 10px rgba(212,175,55,.4),0 0 25px rgba(212,175,55,.2);
}

.lang{
  margin-top:15px;
  display:flex;
  justify-content:center;
  gap:15px;
}

.lang img{
  width:34px;
  cursor:pointer;
  filter:drop-shadow(0 0 8px rgba(255,216,106,.6));
  transition:.3s;
}

.lang img:hover{
  transform:scale(1.15);
}

.menu{
  max-width:900px;
  margin:30px auto;
  padding:0 15px;
}

.category, .subcategory{
  margin-bottom:15px;
  border:1px solid var(--brown);
  background:linear-gradient(145deg,#120c08,#080503);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 0 20px rgba(212,175,55,.08);
}

.cat-title, .sub-title{
  padding:18px 20px;
  cursor:pointer;
  position:relative;
  font-size:18px;
  letter-spacing:1px;
}

.cat-title::after, .sub-title::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,var(--gold),transparent);
  opacity:.15;
}

.cat-content, .items{
  overflow:hidden;
  max-height:0;
  transition:max-height .6s cubic-bezier(.25,.8,.25,1);
}

.item{
  padding:15px;
  border-top:1px solid var(--brown);
  transition:.3s;
}

.item:hover{
  background: rgba(212,175,55,0.05);
  box-shadow: 0 0 15px rgba(212,175,55,0.4);
  border-radius: 12px;
}

.item-head{
  display:flex;
  gap:15px;
  align-items:center;
  cursor:pointer;
}

.item img{
  width:70px;
  border-radius:12px;
  box-shadow:0 0 15px rgba(212,175,55,.35);
}

.name{
  font-size:17px;
}

.price{
  font-size:14px;
  color:var(--gold-neon);
}

.item-desc{
  display: block;
  max-height: none; /* دیگر نیازی به max-height نیست */
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s ease, opacity 0.5s ease;
  font-size:14px;
  line-height:1.8;
  padding: 0 85px 0 0;
  overflow: hidden;
}

.item-desc.open{
  opacity: 0.85;
  transform: scaleY(1);
  text-shadow: 0 0 5px #ffd86a;
}

/* --- موبایل کوچک --- */
@media (max-width: 480px) {
  body {
    font-size: 13px;
    padding: 0 10px;
  }

  header h1 {
    font-size: 22px;
  }

  .lang img {
    width: 28px;
  }

  .menu {
    padding: 0 10px;
  }

  .cat-title, .sub-title {
    font-size: 16px;
    padding: 12px 15px;
  }

  .item-head {
    flex-direction: column;
    gap: 8px;
  }

  .item img {
    width: 60px;
  }

  .name {
    font-size: 15px;
  }

  .price {
    font-size: 13px;
  }

  .item-desc {
    font-size: 13px;
    padding-right: 10px;
  }
}

/* --- تبلت --- */
@media (max-width: 768px) {
  header h1 {
    font-size: 28px;
  }

  .lang img {
    width: 30px;
  }

  .cat-title, .sub-title {
    font-size: 17px;
  }

  .item img {
    width: 65px;
  }

  .name {
    font-size: 16px;
  }

  .price {
    font-size: 14px;
  }

  .item-desc {
    font-size: 14px;
  }
}

.call-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: radial-gradient(circle, #ffd86a 0%, #d4af37 80%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(212,175,55,0.6), 0 0 40px rgba(212,175,55,0.3);
  cursor: pointer;
  z-index: 9999;
  animation: bubble-drop 1.5s ease-in-out infinite alternate;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.call-bubble:hover {
  transform: scale(1.2);
  box-shadow: 0 0 35px #ffd86a, 0 0 70px rgba(212,175,55,0.5);
}

.call-bubble svg {
  width: 28px;
  height: 28px;
}

@keyframes bubble-drop {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* ریسپانسیو برای موبایل */
@media (max-width: 480px){
  .call-bubble {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .call-bubble svg {
    width: 22px;
    height: 22px;
  }
}

.cat-title, .sub-title {
  transition: color 0.4s ease, text-shadow 0.4s ease, box-shadow 0.4s ease;
}

.cat-title:hover, .sub-title:hover {
  color: #ffd86a;
  text-shadow: 0 0 8px #ffd86a, 0 0 16px rgba(212,175,55,0.5);
  box-shadow: inset 0 -2px 0 #ffd86a;
}

.cat-content.open, .items.open {
  box-shadow: 0 0 25px rgba(212,175,55,0.3);
}

/* وسط‌چین کردن کل منو بدون توجه به زبان */
.menu,
.cat-title,
.sub-title,
.item-head,
.item-desc,
.name,
.price {
  text-align: center !important;
  direction: ltr !important; /* برای جلوگیری از چسبیدن به چپ */
}

/* وسط‌چین کردن تصویر و متن در item-head */
.item-head {
  display: flex !important;
  flex-direction: column; /* متن زیر تصویر */
  justify-content: center;
  align-items: center;
  gap: 5px;
}

/* وسط‌چین کردن تصویر آیتم */
.item img {
  display: block;
  margin: 0 auto;
}

/* لوگوی کافه زیر تایتل */
.logo-cafe {
  text-align: center; /* وسط‌چین کردن لوگو */
  margin: 10px 0 15px 0; /* فاصله از تایتل و پرچم‌ها */
}

.logo-cafe img {
  width: 100px; /* اندازه لوگو */
  height: auto;
  border-radius: 12px; /* گوشه‌های نرم */
  box-shadow: 0 0 15px rgba(212,175,55,0.5), 0 0 25px rgba(212,175,55,0.3); /* Glow نئونی طلایی */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-cafe img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px #ffd86a, 0 0 50px rgba(212,175,55,0.4);
}

@media (max-width: 480px) {
  .logo-cafe img {
    width: 90px;
  }
}

#coffee-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none; /* هیچ کلیکی رو خراب نمی‌کنه */
}

.drink-ai {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(80,50,25,0.5);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px;
  width: 220px;
  color: #ffd86a;
  font-family: 'Arial', sans-serif;
  box-shadow: 0 0 15px rgba(255,200,120,0.3);
  z-index: 5;
}

.drink-ai h3 { text-align: center; margin-bottom: 10px; }
.drink-ai select, .drink-ai button {
  width: 100%; margin:5px 0; padding:5px; border-radius:8px; border:none;
  background: rgba(255,215,140,0.1); color:#ffd86a; cursor:pointer; font-weight:bold;
  transition: all 0.2s ease;
}
.drink-ai button:hover { background: rgba(255,215,140,0.25); transform: scale(1.05); }

#suggestion {
  text-align: center;
  margin-top: 8px;
}

#suggestion img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 5px;
  box-shadow: 0 0 12px rgba(255,215,106,0.4);
}
#drinkName { font-weight: bold; font-size:14px; }

@media (max-width: 480px) {
  .drink-ai {
    width: 140px;      /* عرض کمتر */
    padding: 5px;      /* فاصله کمتر داخل پنل */
    bottom: 12px;      /* فاصله از پایین */
    left: 8px;         /* فاصله از چپ */
  }

  #suggestion img {
    width: 50px;       /* تصویر کوچکتر */
    height: 50px;
  }

  #drinkName {
    font-size: 11px;   /* متن کمی کوچکتر */
  }

  select, button {
    font-size: 11px;
    padding: 3px;
  }
}
