@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

/* ============================================================
   Base & Variables — منيو المنؤشة
   ============================================================ */

:root {
  --scrollbar-size: 10px;
  --scrollbar-track: #1a1410;
  --scrollbar-thumb: #e67401;
  --scrollbar-thumb-hover: #ffb948;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html {
  scrollbar-gutter: stable;
}

::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

::-webkit-scrollbar-track {
  background: linear-gradient(
    180deg,
    rgba(26, 20, 16, 0.95) 0%,
    rgba(45, 24, 16, 0.95) 100%
  );
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #e67401 0%, #ffb948 100%);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffb948 0%, #fab037 100%);
}

::-webkit-scrollbar-thumb:active {
  background: #e67401;
}

::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

body {
  font-family: "Rubik", sans-serif;
  color: white;
  overflow-x: hidden;
}

/* —— Layout —— */
.container {
  width: 90%;
  margin: 0 auto;
}

/* ============================================================
   Loading Screen
   ============================================================ */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.loading-screen::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(230, 116, 1, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.loading-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.loading-text {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #e67401, #ffb948, #e67401);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
}

.loading-dot {
  width: 12px;
  height: 12px;
  background: #e67401;
  border-radius: 50%;
  animation: dot 1.5s ease-in-out infinite;
}

.loading-dot:nth-child(1) {
  animation-delay: 0s;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

/* ============================================================
   Popup Modal
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
}

.popup-overlay.is-open {
  visibility: visible;
}

.popup-content {
  width: 100%;
  max-width: 560px;
  max-height: min(85vh, 720px);
  min-height: 0;
  margin: auto;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
  border-radius: 20px;
  border: 2px solid rgba(230, 116, 1, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}

.popup-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 25px;
  border-bottom: 2px solid rgba(230, 116, 1, 0.3);
  background: rgba(230, 116, 1, 0.1);
}

.popup-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.popup-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: "Rubik", sans-serif;
  background: #fefade;
  border: 2px solid #000;
  border-radius: 10px;
  color: #6d4012;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: -2px 2px 0 #000;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.popup-cart-btn:hover {
  background: #fab037;
  box-shadow: -4px 4px 0 #000;
  transform: translate(1px, -1px);
}

.popup-cart-btn.has-items {
  background: #fab037;
}

.popup-cart-btn.just-added {
  animation: cartAddedPulse 0.55s ease;
}

@keyframes cartAddedPulse {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.06);
    box-shadow:
      -4px 4px 0 #000,
      0 0 0 3px rgba(255, 185, 72, 0.45);
  }
  100% {
    transform: scale(1);
  }
}

.popup-cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fab037;
  border-radius: 50%;
  font-size: 0.85rem;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.popup-cart-btn.has-items .popup-cart-icon,
.popup-cart-btn:hover .popup-cart-icon {
  background: #6d4012;
  color: #fefade;
}

.popup-cart-label {
  white-space: nowrap;
}

.popup-cart-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e67401;
  color: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.popup-title {
  flex: 1;
  min-width: 0;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e67401, #ffb948, #e67401);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
}

.popup-close {
  width: 40px;
  height: 40px;
  background: #fefade;
  border: 2px solid black;
  border-radius: 50%;
  color: #6d4012;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: -2px 2px 1px 0px rgb(0, 0, 0);
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: #fab037;
  box-shadow: -4px 4px 1px 0px rgb(0, 0, 0);
  transform: scale(1.1);
}

.popup-items {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popup-item {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(230, 116, 1, 0.3);
  border-radius: 15px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.popup-item:hover {
  background: rgba(230, 116, 1, 0.1);
  border-color: #e67401;
  transform: translateX(-5px);
}

.popup-item-info {
  flex: 1;
}

.popup-item-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.popup-item-details {
  display: flex;
  gap: 15px;
  align-items: center;
}

.popup-item-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: #e67401;
}

.popup-item-calories {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.popup-item-add {
  width: 45px;
  height: 45px;
  background: #fefade;
  border: 2px solid black;
  border-radius: 10px;
  color: #6d4012;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: -2px 2px 1px 0px rgb(0, 0, 0);
  transition: all 0.3s ease;
  margin-right: 15px;
}

.popup-item-add:hover {
  background: #fab037;
  box-shadow: -4px 4px 1px 0px rgb(0, 0, 0);
  transform: scale(1.1);
}

/* ============================================================
   Fixed & Header Buttons
   ============================================================ */
.fixed-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-family: "Rubik", sans-serif;
  padding: 15px 20px;
  background: #fefade;
  border: 2px solid black;
  color: #6d4012;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: -3px 3px 1px 0px rgb(0, 0, 0);
  transition: all 0.3s ease;
  z-index: 1000;
}
.fixed-btn:hover {
  background: #fab037;
  box-shadow: -6px 6px 1px 0px rgb(0, 0, 0);
}
.icon {
  margin-left: 5px;
  background-color: #fab037;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.fixed-btn:hover .icon {
  background: #6d4012;
  color: #fefade;
}

/* ============================================================
   Header
   ============================================================ */
.header {
  width: 100%;
  padding: 20px 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
}
.header-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 180px;
}
.menu-btn {
  font-family: "Rubik", sans-serif;
  padding: 15px 20px;
  background: #fefade;
  border: 2px solid black;
  color: #6d4012;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: -3px 3px 1px 0px rgb(0, 0, 0);
  transition: all 0.3s ease;
}
.menu-btn:hover {
  background: #fab037;
  box-shadow: -6px 6px 1px 0px rgb(0, 0, 0);
}
.icon2 {
  margin-left: 5px;
  background-color: #fab037;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.menu-btn:hover .icon2 {
  background: #6d4012;
  color: #fefade;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #e67401, #ffb948, #e67401);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../Media/bak.avif") no-repeat center center;
  background-size: 100%;
  z-index: 1;
}

.hero-background-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../Media/bak2.avif") no-repeat center center;
  background-size: 100%;
  z-index: 2;
  transform: translateX(0) translateY(0);
  opacity: 1;
}
.hero h1 {
  position: relative;
  z-index: 3;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  text-align: center;
}
.text-right {
  margin-bottom: 100px;
}
.text-right,
.text-left {
  color: #c56714;
  font-size: 10rem;
  font-weight: 900;
  line-height: 1.2;
  width: max-content;
}

.po-left {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  background: url("../Media/po1.avif") no-repeat center center;
  background-size: cover;
  z-index: 4;
}
.po-right {
  position: absolute;
  right: 50%;
  top: 30%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  background: url("../Media/po2.avif") no-repeat center center;
  background-size: cover;
  z-index: 4;
}

/* ============================================================
   Menu Section & Cards
   ============================================================ */
.menu-section {
  position: relative;
  width: 100%;
  padding: 250px 0 80px 0;
  overflow: hidden;
}
.po-left2 {
  position: absolute;
  left: 0;
  top: 15%;
  width: 150px;
  height: 150px;
  background: url("../Media/po3.avif") no-repeat center center;
  background-size: cover;
  z-index: 3;
}
.po-right2 {
  position: absolute;
  right: 0;
  top: 5%;
  width: 190px;
  height: 150px;
  background: url("../Media/po4.avif") no-repeat center center;
  background-size: cover;
  z-index: 3;
}
.wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.menu-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.menu-content h2 {
  background: linear-gradient(90deg, #e67401, #ffb948, #e67401);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.menu-content h2::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, #e67401, #ffb948, #e67401);
  border-radius: 2px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  background: linear-gradient(135deg, #e67401, #ffb948);
  border-radius: 15px;
  overflow: hidden;
  transition: box-shadow 0.45s ease;
  position: relative;
  min-height: 250px;
  will-change: transform, opacity;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}
.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../Media/card1.webp") no-repeat center center;
  background-size: cover;
  z-index: 1;
}

.card-1 .card-image {
  background: url("../Media/card1.webp") no-repeat center center;
  background-size: cover;
}

.card-2 .card-image {
  background: url("../Media/card2.webp") no-repeat center center;
  background-size: cover;
}

.card-3 .card-image {
  background: url("../Media/card3.webp") no-repeat center center;
  background-size: cover;
}

.card-4 .card-image {
  background: url("../Media/card4.webp") no-repeat center center;
  background-size: cover;
}

.card-5 .card-image {
  background: url("../Media/card5.webp") no-repeat center center;
  background-size: cover;
}

.card-6 .card-image {
  background: url("../Media/card6.webp") no-repeat center center;
  background-size: cover;
}

.card-7 .card-image {
  background: url("../Media/card7.webp") no-repeat center center;
  background-size: cover;
}

.card-8 .card-image {
  background: url("../Media/card8.webp") no-repeat center center;
  background-size: cover;
}

.card-9 .card-image {
  background: url("../Media/card9.webp") no-repeat center center;
  background-size: cover;
}

.card-10 .card-image {
  background: url("../Media/card10.webp") no-repeat center center;
  background-size: cover;
}
.card-top-image {
  position: absolute;
  top: 20px;
  left: 0%;
  width: 40px;
  z-index: 3;
  transform: scaleX(-1);
}
.card-bottom-image {
  position: absolute;
  left: 80px;
  bottom: 0;
  width: 60px;
  z-index: 3;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  text-align: right;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.8), transparent);
}

.card-content h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.card-content p {
  color: white;
  font-size: 1rem;
  margin-bottom: 70px;
}

.card-menu-btn {
  width: fit-content;
  font-family: "Rubik", sans-serif;
  padding: 15px 20px;
  background: #fefade;
  border: 2px solid black;
  color: #6d4012;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: -3px 3px 1px 0px rgb(0, 0, 0);
  transition: all 0.3s ease;
}

.card-menu-btn:hover {
  background: #fab037;
  box-shadow: -6px 6px 1px 0px rgb(0, 0, 0);
}
.card-icon {
  margin-left: 5px;
  background-color: #fab037;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.card-menu-btn:hover .card-icon {
  background: #6d4012;
  color: #fefade;
}

.wave-footer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-99%);
  display: block;
  line-height: 0;
  pointer-events: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: linear-gradient(90deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
  padding: 0px 0 30px 0;
  margin-top: 100px;
  position: relative;
  overflow: visible;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logo img {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(230, 116, 1, 0.5));
}

.footer-text {
  text-align: center;
  max-width: 500px;
}

.footer-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

.social-link {
  --social-size: 52px;
  width: var(--social-size);
  height: var(--social-size);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  font-family: "Rubik", sans-serif;
  background: #fefade;
  border: 2px solid #000;
  color: #6d4012;
  border-radius: 10px;
  box-shadow: -3px 3px 0 #000;
  font-size: 1.15rem;
  line-height: 1;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  text-decoration: none;
}

.social-link i {
  display: block;
  width: 1.15rem;
  text-align: center;
  line-height: 1;
  pointer-events: none;
}

.social-link:hover {
  background: #fab037;
  color: #6d4012;
  box-shadow: -5px 5px 0 #000;
  transform: translate(1px, -1px);
  text-decoration: none;
}

.social-link:active {
  transform: translate(2px, -2px);
  box-shadow: -2px 2px 0 #000;
}

.social-link:focus-visible {
  outline: 2px solid #fab037;
  outline-offset: 3px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   Cart
   ============================================================ */
.cart-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1001;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Rubik", sans-serif;
  background: #fefade;
  border: 2px solid #000;
  border-radius: 10px;
  color: #6d4012;
  box-shadow: -3px 3px 0 #000;
  cursor: pointer;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.cart-toggle:hover {
  background: #fab037;
  box-shadow: -5px 5px 0 #000;
  transform: translate(1px, -1px);
}

.cart-toggle-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e67401;
  color: #fff;
  border: 2px solid #000;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
}

.cart-overlay.is-open {
  visibility: visible;
}

.cart-panel {
  width: 100%;
  max-width: 480px;
  max-height: min(88vh, 760px);
  min-height: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 50%, #1a1a1a 100%);
  border-radius: 20px;
  border: 2px solid rgba(230, 116, 1, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, opacity;
}

.cart-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 2px solid rgba(230, 116, 1, 0.3);
  background: rgba(230, 116, 1, 0.1);
}

.cart-title {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #e67401, #ffb948, #e67401);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cart-close {
  width: 40px;
  height: 40px;
  background: #fefade;
  border: 2px solid #000;
  border-radius: 50%;
  color: #6d4012;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 2px 0 #000;
  transition: all 0.25s ease;
}

.cart-close:hover {
  background: #fab037;
  box-shadow: -4px 4px 0 #000;
}

.cart-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 16px 20px;
}

.cart-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 24px 8px;
}

.cart-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-row {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(230, 116, 1, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: start;
}

.cart-row-info {
  min-width: 0;
}

.cart-row-category {
  font-size: 0.8rem;
  color: #e67401;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-row-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.cart-row-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.cart-row-price {
  font-size: 1rem;
  font-weight: 900;
  color: #ffb948;
  white-space: nowrap;
}

.cart-row-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 34px;
  height: 34px;
  background: #fefade;
  border: 2px solid #000;
  border-radius: 8px;
  color: #6d4012;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: -2px 2px 0 #000;
  transition: all 0.2s ease;
}

.cart-qty-btn:hover {
  background: #fab037;
}

.cart-qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 900;
  color: #fff;
}

.cart-remove {
  font-family: "Rubik", sans-serif;
  padding: 8px 12px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-remove:hover {
  border-color: #e67401;
  color: #ffb948;
}

.cart-footer {
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 2px solid rgba(230, 116, 1, 0.3);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-customer {
  display: none;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  will-change: height, opacity;
}

.cart-customer.is-visible {
  display: flex;
}

.cart-field,
.cart-customer-title {
  will-change: transform, opacity;
}

.cart-customer-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffb948;
}

.cart-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.cart-input {
  width: 100%;
  font-family: "Rubik", sans-serif;
  padding: 12px 14px;
  background: #fefade;
  border: 2px solid #000;
  border-radius: 10px;
  color: #6d4012;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: -2px 2px 0 #000;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cart-input::placeholder {
  color: rgba(109, 64, 18, 0.45);
  font-weight: 500;
}

.cart-input:focus {
  outline: none;
  background: #fff;
  border-color: #e67401;
  box-shadow:
    -2px 2px 0 #000,
    0 0 0 2px rgba(230, 116, 1, 0.35);
}

.cart-input.invalid {
  border-color: #e67401;
  background: #fff5e6;
}

.cart-input-ltr {
  direction: ltr;
  text-align: left;
}

.cart-field-error {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffb948;
  line-height: 1.4;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 1rem;
}

.cart-total-row strong {
  font-size: 1.35rem;
  color: #ffb948;
}

.cart-clear {
  font-family: "Rubik", sans-serif;
  padding: 10px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-clear:hover {
  border-color: #e67401;
  color: #ffb948;
}

.cart-checkout {
  font-family: "Rubik", sans-serif;
  width: 100%;
  padding: 14px 18px;
  background: #fefade;
  border: 2px solid #000;
  color: #6d4012;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: -3px 3px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.cart-checkout:hover {
  background: #fab037;
  box-shadow: -5px 5px 0 #000;
  transform: translate(1px, -1px);
}

.cart-checkout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: #fab037;
  border: 2px solid #000;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.cart-checkout:hover .cart-checkout-icon {
  background: #6d4012;
  color: #fefade;
}

.popup-item-add.added {
  background: #fab037;
  transform: scale(1.08);
}

.cart-checkout:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.cart-checkout.is-send {
  background: #fab037;
  cursor: wait;
}

.cart-checkout.is-send:hover {
  background: #fab037;
  box-shadow: -3px 3px 0 #000;
  transform: none;
}

.cart-checkout.is-success {
  background: #4caf50;
  border-color: #2e7d32;
  box-shadow: -3px 3px 0 #2e7d32;
}

.cart-checkout.is-success:hover {
  background: #4caf50;
  box-shadow: -3px 3px 0 #2e7d32;
  transform: none;
}

.cart-checkout.is-success .cart-checkout-icon {
  background: #2e7d32;
  color: #fff;
}

.cart-field-error.success {
  color: #4caf50;
}

/* ============================================================
   Responsive Styles — منيو المنؤشة
   أضف قواعد التصميم المتجاوب هنا حسب حجم الشاشة
   ============================================================ */

/* —— لاب توب صغير (max-width: 1280px) —— */
@media (max-width: 1280px) {
  .container {
    width: 92%;
  }

  .logo img {
    width: 150px;
  }

  .text-right {
    margin-bottom: 60px;
  }

  .text-right,
  .text-left {
    font-size: 6rem;
  }

  .po-left {
    left: 68%;
    top: 80%;
    width: 160px;
    height: 160px;
  }
  .po-right {
    right: 68%;
    top: 20%;
    width: 120px;
    height: 120px;
  }
  .menu-section {
    padding: 180px 0 180px 0;
  }
  .po-left2 {
    width: 120px;
    height: 120px;
    top: 10%;
  }
  .po-right2 {
    top: 3%;
    width: 150px;
    height: 120px;
  }

  .menu-content h2 {
    font-size: 3rem;
    margin-bottom: 40px;
  }

  .menu-content h2::after {
    bottom: -22px;
  }

  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    padding: 16px;
  }

  .card-content h3 {
    font-size: 1.35rem;
  }

  .footer {
    margin-top: 70px;
  }
}

/* —— Tablets (max-width: 1024px) —— */
@media (max-width: 1024px) {
  .container {
    width: 95%;
  }

  .header {
    padding: 16px 0;
  }

  .logo img {
    width: 130px;
  }

  .menu-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .hero {
    min-height: 100vh;
    height: auto;
  }

  .hero-background,
  .hero-background-2 {
    background-size: 200%;
  }

  .text-right,
  .text-left {
    font-size: 6.5rem;
  }
  .po-left {
    left: 85%;
    top: 80%;
    width: 250px;
    height: 250px;
  }
  .po-right {
    right: 85%;
    top: 20%;
    width: 200px;
    height: 200px;
  }
  .po-left2 {
    width: 180px;
    height: 180px;
    top: 3%;
  }
  .po-right2 {
    top: 0%;
    width: 200px;
    height: 150px;
  }

  .menu-content h2 {
    font-size: 2.5rem;
    margin-bottom: 32px;
  }

  .menu-content h2::after {
    bottom: -18px;
    width: 70%;
  }

  .card {
    min-height: 220px;
  }

  .card-content p {
    margin-bottom: 50px;
  }

  .card-bottom-image {
    left: 60px;
    width: 52px;
  }

  .footer {
    margin-top: 50px;
  }

  .footer-logo img {
    width: 100px;
  }

  .loading-text {
    font-size: 2rem;
  }

  .popup-content {
    max-width: 520px;
  }

  .popup-title {
    font-size: 1.5rem;
  }

  .fixed-btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* —— Tablets صغيرة (max-width: 768px) —— */
@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }

  .logo img {
    width: 110px;
  }

  .menu-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
  .text-right,
  .text-left {
    font-size: 5.25rem;
  }
  .po-left {
    left: 20%;
    top: 74%;
    width: 110px;
    height: 110px;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 5;
  }

  .po-right {
    right: 20%;
    top: 26%;
    width: 95px;
    height: 95px;
    transform: translateY(-50%);
    opacity: 1;
    z-index: 5;
  }

  .menu-section {
    padding: 120px 0 120px 0;
  }
  .po-left2 {
    width: 80px;
    height: 80px;
  }
  .po-right2 {
    width: 90px;
    height: 70px;
  }

  .menu-content h2 {
    font-size: 2rem;
    margin-bottom: 28px;
  }

  .menu-content h2::after {
    bottom: -14px;
    width: 65%;
    height: 3px;
  }

  .cards-container {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px 0;
    max-width: 560px;
    margin: 0 auto;
  }

  .card {
    min-height: 200px;
  }

  .card-content h3 {
    font-size: 1.25rem;
  }

  .card-content p {
    font-size: 0.95rem;
    margin-bottom: 44px;
  }

  .card-menu-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .card-top-image {
    width: 32px;
    top: 14px;
  }

  .card-bottom-image {
    left: 48px;
    width: 44px;
  }

  .footer {
    margin-top: 40px;
  }

  .footer-logo img {
    width: 90px;
  }

  .footer-social {
    gap: 10px;
  }

  .social-link {
    --social-size: 46px;
    font-size: 1rem;
  }

  .loading-text {
    font-size: 1.65rem;
  }

  .popup-content {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
  }

  .popup-title {
    font-size: 1.35rem;
  }

  .popup-header {
    padding: 16px 18px;
  }

  .popup-item-name {
    font-size: 1.05rem;
  }

  .cart-panel {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 16px;
  }

  .cart-title {
    font-size: 1.3rem;
  }

  .fixed-btn {
    padding: 11px 14px;
    font-size: 0.9rem;
    bottom: 16px;
    right: 16px;
  }

  .cart-toggle {
    width: 52px;
    height: 52px;
    bottom: 16px;
    left: 16px;
  }
}

/* —— موبايل صغير (max-width: 520px) —— */
@media (max-width: 520px) {
  .popup-cart-label {
    display: none;
  }

  .popup-cart-btn {
    padding: 10px 12px;
  }
}

/* —— موبايل ضيق (max-width: 480px) —— */
@media (max-width: 480px) {
  .cart-toggle {
    left: 12px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .fixed-btn {
    right: 12px;
    bottom: 16px;
    padding: 12px 14px;
    font-size: 0.9rem;
  }
}
