/* -----------------------------------------------------
   Panda – Menu (clean, compact, modern)
   Replaces the old file entirely.
----------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Playwrite+HU:wght@300;400&display=swap');

:root {
  --bg: #0b0b0b;
  --card: #141414;
  --muted: #bdbdbd;
  --brand: #c6252b;
  --brand-2: #25d366;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}
body {
  background: linear-gradient(to right, #00000086, #0000006d),
    url(../img/First.png) center/cover no-repeat fixed;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

/* ====================== Header ====================== */
.navbar {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.toggle-menu {
  border: 1px solid var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  padding: 0 8px;
}
.toggle-menu span {
  display: block;
  width: 100%;
  height: 4px;
  margin: 5px 0;
  border-radius: 5px;
  background-color: var(--brand);
}

/* RTL/LTR helpers (keep) */
[dir='rtl'] .header-home {
  flex-direction: row-reverse;
  text-align: right;
}
[dir='ltr'] .header-home {
  flex-direction: row;
  text-align: left;
}
.language-switch button {
  color: #f6efef;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  border-radius: 10px;
  margin-left: 20px;
  padding: 5px;
  background: transparent;
  border: none;
  transition: 0.2s;
}
.language-switch button:hover {
  filter: brightness(0.9);
  opacity: 0.9;
}
[dir='rtl'] {
  text-align: right;
  direction: rtl;
  padding: 0 30px;
}
[dir='ltr'] {
  text-align: left;
  direction: ltr;
}

@media (max-width: 576px) {
  body {
    overflow-x: hidden; /* keep horizontal hidden only */
    overflow-y: auto; /* allow vertical scroll */
  }
  .right-hand .brand {
    display: none !important;
  }
}

/* ====================== Menu Section ====================== */
.data-menu {
  background-image: url(../img/2.png);
  background-size: cover;
}
.panda-menu img {
  width: 100%;
  padding-bottom: 20px;
}

.data-menu h2 {
  text-align: center;
  font-family: 'Playwrite HU', cursive;
  font-weight: 400;
  padding: 12px 0 22px;
  margin: 0;
}

/* ---- Card / Slider (modern) ---- */
.swiper {
  padding: 4px 2px 18px;
}
.swiper-wrapper {
  align-items: stretch;
}
.swiper-slide {
  background: transparent; /* remove old #444 block */
  display: flex;
  height: auto;
}

.menu-item {
  background: var(--card);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

/* Image: keep plate crop but **shorter** to fit container */
.top-card {
  background: none;
}
.top-card img {
  display: block;
  width: 100%;
  height: 130px; /* <= smaller image height */
  object-fit: cover;
  background: #0f0f0f;
}

/* Body */
.data-food {
  padding: 12px;
}
.menu-item .card-body {
  padding: 12px 12px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.menu-item .card-title {
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
}
.menu-item .info {
  min-width: 0;
}
.menu-item .control-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-item select {
  min-width: 130px;
  border-radius: 12px;
  border: 1px solid #262626;
  background: #181818;
  color: #eaeaea;
  padding: 6px 8px;
  font-size: 0.85rem;
}
.menu-item .price {
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* ---- “Add to cart” button (compact + premium) ---- */
.add-btn,
.btn.btn-danger.add-btn {
  --btn-h: 40px;
  height: var(--btn-h);
  line-height: var(--btn-h);
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, #d03a40, var(--brand));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(198, 37, 43, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.add-btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 22px rgba(198, 37, 43, 0.42);
}
.add-btn:active {
  transform: translateY(1px);
}

/* Swiper bullets */
.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.4;
}
.swiper-pagination-bullet-active {
  background: var(--brand);
  opacity: 1;
}

/* Responsive card image heights */
@media (max-width: 992px) {
  .top-card img {
    height: 120px;
  }
}
@media (max-width: 576px) {
  .top-card img {
    height: 110px;
  }
  .menu-item .card-title {
    font-size: 0.9rem;
  }
  .menu-item select {
    min-width: 120px;
  }
}

/* ====================== Cart Sheet (clean) ====================== */
/* ====================== Cart Sheet — polished ====================== */
.cart-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 64px;

  /* elegant glass card */
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  width: min(360px, calc(100vw - 24px));
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);

  padding: 12px;
  z-index: 1000;
  box-sizing: border-box;
}
.cart-dropdown.show {
  display: block;
  animation: cartIn 0.18s ease;
}

@keyframes cartIn {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* empty state */
.cart-empty {
  text-align: center;
  padding: 24px 8px;
  color: var(--muted);
  margin: 0;
  font-weight: 600;
}

/* list */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* row */
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;

  padding: 10px 10px;
  border-radius: 14px;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.cart-item:hover {
  background: #171717;
}

/* left column */
.cart-line {
  min-width: 0;
}
.cart-title {
  font-weight: 800;
  font-size: 0.96rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #f3f3f3;
}
.cart-sub {
  font-size: 0.82rem;
  color: #b9b9b9;
}

/* qty controls */
.cart-qty {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 900;

  background: linear-gradient(180deg, #e14b51, var(--brand));
  color: #fff;
  box-shadow: 0 6px 16px rgba(198, 37, 43, 0.35);
  transition: transform 0.06s ease, filter 0.2s ease;
}
.qty-btn:hover {
  filter: brightness(1.05);
}
.qty-btn:active {
  transform: translateY(1px);
}

/* footer */
.cart-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.96rem;
  margin: 4px 2px 12px;
}
.cart-total strong {
  font-size: 1.05rem;
}

/* WhatsApp CTA */
.whatsapp-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #37e182, var(--brand-2));
  color: #0b0b0b;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.25);
  transition: transform 0.06s ease, filter 0.2s ease;
}
.whatsapp-btn:hover {
  filter: brightness(1.03);
}
.whatsapp-btn:active {
  transform: translateY(1px);
}

/* keep long titles from widening the panel */
.cart-title {
  word-break: break-word;
}

/* ===== Mobile: keep inside viewport and look like a sheet ===== */
@media (max-width: 576px) {
  html,
  body {
    overflow-x: hidden;
  }

  .cart-dropdown {
    position: fixed;
    top: 60px; /* under navbar */
    right: 12px;
    left: 12px; /* 12px margins */
    width: auto;
    max-width: none;
    margin: 0 auto;
    border-radius: 16px;
    max-height: 70vh;
  }
}

/* ====================== Footer (kept) ====================== */
[dir='rtl'] footer {
  flex-direction: row-reverse;
  text-align: right;
}
[dir='ltr'] footer {
  flex-direction: row;
  text-align: left;
}

.footer-map iframe {
  display: block;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  flex-wrap: wrap;
  gap: 20px;
  text-align: right;
}
.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 200px;
}
.footer-left p {
  line-height: 1.6;
}
.social-icons img {
  width: 24px;
  height: 24px;
  margin: 0 5px;
  vertical-align: middle;
}
.footer-center ul {
  list-style: none;
  padding: 0;
}
.footer-center ul li {
  margin: 5px 0;
}
.footer-center a {
  color: black;
  text-decoration: none;
}
.footer-right .social-icons a {
  color: var(--brand);
  text-decoration: none;
  font-size: 20px;
}
.footer-bottom {
  text-align: center;
  padding: 10px;
  font-size: 14px;
}
.footer-bottom a {
  color: black;
  text-decoration: underline;
}
/* ===== Noodles cards: compact & modern (no background change) ===== */

/* smaller image to fit the card nicely */
.nodles-container .menu-item .top-card {
  background: #0f0f0f;
  height: 150px; /* overall image area */
  display: flex;
  align-items: center;
  justify-content: center;
}
.nodles-container .menu-item .top-card img {
  height: 100%; /* scale down */
  width: auto; /* keep aspect */
  max-width: 100%;
  object-fit: contain; /* never crop */
}

/* put controls then button on a new full-width line */
.nodles-container .menu-item .card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 12px 14px;
}
.nodles-container .menu-item .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nodles-container .menu-item .add-btn {
  width: 100%;
  border-radius: 12px;
}
/* -------- RTL adjustments (Arabic) -------- */
[dir='rtl'] .nodles-container .menu-item .card-title {
  text-align: right;
}
[dir='rtl'] .nodles-container .menu-item .control-row {
  flex-direction: row-reverse;
}
[dir='rtl'] .nodles-container .menu-item .price {
  text-align: left;
}

/* phone: a bit shorter */
@media (max-width: 576px) {
  .nodles-container .menu-item .top-card {
    height: 130px;
  }
}
/* better behavior on phones */
@media (max-width: 576px) {
  .nodles-container .menu-item .control-row {
    flex-wrap: wrap;
  }
  .nodles-container .menu-item select {
    flex: 1;
    min-width: 0;
  }
  .nodles-container .menu-item .price {
    width: 100%;
    text-align: right;
    margin-top: 2px;
    font-size: 0.9rem;
    font-weight: 700;
  }
}
/* ===== Rice cards: identical behavior to Noodles ===== */
.rice-container .menu-item .top-card {
  background: #0f0f0f;
  height: 150px; /* same visual box */
  display: flex;
  align-items: center;
  justify-content: center;
}
.rice-container .menu-item .top-card img {
  height: 100%; /* scale down to fit */
  width: auto; /* keep aspect ratio */
  max-width: 100%;
  object-fit: contain; /* never crop */
}

/* controls then button on its own full-width line */
.rice-container .menu-item .card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 12px 14px;
}
.rice-container .menu-item .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.rice-container .menu-item .add-btn {
  width: 100%;
  border-radius: 12px;
}

/* -------- RTL adjustments (Arabic) -------- */
[dir='rtl'] .rice-container .menu-item .card-title {
  text-align: right;
}
[dir='rtl'] .rice-container .menu-item .control-row {
  flex-direction: row-reverse;
}
[dir='rtl'] .rice-container .menu-item .price {
  text-align: left;
}

/* phone tweaks */
@media (max-width: 576px) {
  .rice-container .menu-item .top-card {
    height: 130px;
  }
  .rice-container .menu-item .control-row {
    flex-wrap: wrap;
  }
  .rice-container .menu-item select {
    flex: 1;
    min-width: 0;
  }
  .rice-container .menu-item .price {
    width: 100%;
    text-align: right;
    margin-top: 2px;
    font-size: 0.9rem;
    font-weight: 700;
  }
}
/* use same image box */
.sushi-container .menu-item .top-card {
  background: #0f0f0f;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sushi-container .menu-item .top-card img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* same body layout */
.sushi-container .menu-item .card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 12px 14px;
}
.sushi-container .menu-item .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sushi-container .menu-item .add-btn {
  width: 100%;
}

/* RTL */
[dir='rtl'] .sushi-container .menu-item .card-title {
  text-align: right;
}
[dir='rtl'] .sushi-container .menu-item .control-row {
  flex-direction: row-reverse;
}
[dir='rtl'] .sushi-container .menu-item .price {
  text-align: left;
}

/* phone */
@media (max-width: 576px) {
  .sushi-container .menu-item .top-card {
    height: 130px;
  }
  .sushi-container .menu-item .control-row {
    flex-wrap: wrap;
  }
  .sushi-container .menu-item select {
    flex: 1;
    min-width: 0;
  }
  .sushi-container .menu-item .price {
    width: 100%;
    text-align: right;
    margin-top: 2px;
    font-size: 0.9rem;
    font-weight: 700;
  }
}
/* image box */
.nodles-container .menu-item .top-card,
.Rice-container .menu-item .top-card,
.sushi-container .menu-item .top-card,
.Appetizers-container .menu-item .top-card {
  background: #0f0f0f;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nodles-container .menu-item .top-card img,
.Rice-container .menu-item .top-card img,
.sushi-container .menu-item .top-card img,
.Appetizers-container .menu-item .top-card img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* body stack + controls row */
.nodles-container .menu-item .card-body,
.Rice-container .menu-item .card-body,
.sushi-container .menu-item .card-body,
.Appetizers-container .menu-item .card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 12px 14px;
}
.nodles-container .menu-item .control-row,
.Rice-container .menu-item .control-row,
.sushi-container .menu-item .control-row,
.Appetizers-container .menu-item .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* full-width button */
.nodles-container .menu-item .add-btn,
.Rice-container .menu-item .add-btn,
.sushi-container .menu-item .add-btn,
.Appetizers-container .menu-item .add-btn {
  width: 100%;
  border-radius: 12px;
}
/* ===== Dessert cards (same layout/size as others) ===== */
.Dessert-container .menu-item .top-card,
.dessert-container .menu-item .top-card {
  background: #0f0f0f;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.Dessert-container .menu-item .top-card img,
.dessert-container .menu-item .top-card img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain; /* no cropping */
}

/* stack content + controls row like others */
.Dessert-container .menu-item .card-body,
.dessert-container .menu-item .card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 12px 14px;
}
.Dessert-container .menu-item .control-row,
.dessert-container .menu-item .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.Dessert-container .menu-item .add-btn,
.dessert-container .menu-item .add-btn {
  width: 100%;
  border-radius: 12px;
}

/* RTL tweaks */
[dir='rtl'] .Dessert-container .menu-item .card-title,
[dir='rtl'] .dessert-container .menu-item .card-title {
  text-align: right;
}
[dir='rtl'] .Dessert-container .menu-item .control-row,
[dir='rtl'] .dessert-container .menu-item .control-row {
  flex-direction: row-reverse;
}
[dir='rtl'] .Dessert-container .menu-item .price,
[dir='rtl'] .dessert-container .menu-item .price {
  text-align: left;
}

/* Phones */
@media (max-width: 576px) {
  .Dessert-container .menu-item .top-card,
  .dessert-container .menu-item .top-card {
    height: 130px;
  }
  .Dessert-container .menu-item .control-row,
  .dessert-container .menu-item .control-row {
    flex-wrap: wrap;
  }
  .Dessert-container .menu-item select,
  .dessert-container .menu-item select {
    flex: 1;
    min-width: 0;
  }
  .Dessert-container .menu-item .price,
  .dessert-container .menu-item .price {
    width: 100%;
    text-align: right;
    margin-top: 2px;
    font-size: 0.9rem;
    font-weight: 700;
  }
}
/* ===== Drinks cards: same compact layout as others ===== */
.drinks .menu-item .top-card {
  background: #0f0f0f;
  height: 150px; /* same image box height */
  display: flex;
  align-items: center;
  justify-content: center;
}
.drinks .menu-item .top-card img {
  height: 100%; /* contain image nicely */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* body & controls */
.drinks .menu-item .card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 12px 14px;
}
.drinks .menu-item .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.drinks .menu-item .add-btn {
  width: 100%;
  border-radius: 12px;
}

/* RTL tweaks */
[dir='rtl'] .drinks .menu-item .card-title {
  text-align: right;
}
[dir='rtl'] .drinks .menu-item .control-row {
  flex-direction: row-reverse;
}
[dir='rtl'] .drinks .menu-item .price {
  text-align: left;
}

/* phones */
@media (max-width: 576px) {
  .drinks .menu-item .top-card {
    height: 130px;
  }
  .drinks .menu-item .control-row {
    flex-wrap: wrap;
  }
  .drinks .menu-item .price {
    width: 100%;
    text-align: right;
    margin-top: 2px;
    font-size: 0.9rem;
    font-weight: 700;
  }
}
/* === Custom Mixes (same card sizing as others) === */
.Mixes-container .menu-item .top-card {
  background: #0f0f0f;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.Mixes-container .menu-item .top-card img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.Mixes-container .menu-item .card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 14px;
}
.Mixes-container .menu-item .control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* extras pills row */
.extras-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.extra-chip {
  background: #181818;
  border: 1px solid #262626;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.extra-chip input {
  accent-color: var(--brand);
  transform: translateY(1px);
}

/* RTL tweaks */
[dir='rtl'] .Mixes-container .menu-item .card-title {
  text-align: right;
}
[dir='rtl'] .Mixes-container .menu-item .control-row {
  flex-direction: row-reverse;
}
[dir='rtl'] .extras-row {
  justify-content: flex-end;
}

/* phone image height */
@media (max-width: 576px) {
  .Mixes-container .menu-item .top-card {
    height: 130px;
  }
}
