:root{
  --bg:#f6f7fb;
  --card:#fff;
  --text:#111;
  --muted:#6b7280;
  --brand:#b22222;
  --radius:18px;
  --shadow:0 10px 25px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px;
  background:#fff;
  box-shadow:var(--shadow);
}
.brand{display:flex;gap:10px;align-items:center}
.logo{
  width:48px;height:48px;border-radius:14px;
  overflow:hidden;background:#f2f3f7;
  display:grid;place-items:center;
}
.logo img{width:48px;height:48px;object-fit:contain;display:block}
.title{font-weight:900}
.sub{font-size:12px;color:var(--muted)}

.lang-switch{display:flex;gap:8px}
.lang-switch a{
  padding:8px 10px;border-radius:12px;
  background:#f2f3f7;color:#111;
  font-weight:900;font-size:13px;
  text-decoration:none;
}
.lang-switch a.active{background:#111;color:#fff}

/* Container */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:16px;
}

/* Section Head */
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:18px 0 10px;
}
.section-title{margin:0;font-size:22px;font-weight:1000}

/* Category Head */
.cat-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:22px 0 10px;
}
.cat-title{
  margin:0;
  font-size:18px;
  font-weight:1000;
}

/* More Button */
.more-btn{
  border:1px solid #f0d7d5;
  background:var(--accent-soft);
  padding:8px 14px;
  border-radius:999px;
  font-weight:900;
  color:#c0392b;
  cursor:pointer;
  transition:.2s;
}

.more-btn:hover{
  background:#f3cfcf;
}

.more-btn:hover{transform:translateY(-1px)}

.more-bottom-wrap{
  display:flex;
  justify-content:center;
  margin:12px 0 4px;
}

.more-bottom{
  font-size:14px;
}


/* Grid: Mobile 2 per row */
.grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

/* Desktop 3 */
@media (min-width: 900px){
  .grid{grid-template-columns:repeat(3, minmax(0,1fr))}
}

/* Card */
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.card-img{
  background:#eef0f6;
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.card-body{
  padding:12px;
  text-align:center;
}
.card-title{font-weight:1000;margin-bottom:6px}
.card-price{font-weight:900;color:#222;margin-bottom:10px}

/* Buttons */
.btn{
  width:100%;
  border:0;
  padding:11px 12px;
  border-radius:14px;
  background:#c0392b;       /* لون المطعم */
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}
.btn.primary{
  background:#25D366;
}

/* Hidden items */
.is-hidden{display:none}

/* Cart */
.cart{
  margin-top:18px;
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}
.cart-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.cart-title{font-weight:1000}
.cart-total{font-weight:900}
.cart-items{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.muted{color:var(--muted);font-size:13px;padding:10px 0}

.cart-note label{display:block;font-weight:1000;margin:10px 0 6px}
textarea{
  width:100%;
  border:1px solid #e5e7ef;
  border-radius:14px;
  padding:10px;
  resize:vertical;
  outline:none;
}

/* Back to top */
.back-to-top{
  position:fixed;
  right:14px;
  bottom:14px;
  width:46px;height:46px;
  border-radius:16px;
  border:0;
  background:#111;
  color:#fff;
  font-size:18px;
  font-weight:1000;
  box-shadow:var(--shadow);
  cursor:pointer;
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:.2s;
  z-index:999;
}
.back-to-top.show{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

/* Image Modal (keep compatible) */
.img-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:99999;
}
.img-modal img{
  max-width:90%;
  max-height:80%;
  border-radius:12px;
}
.img-modal .close{
  position:absolute;
  top:16px;
  right:16px;
  font-size:28px;
  color:#fff;
  cursor:pointer;
}
.img-modal .nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:36px;
  color:#fff;
  cursor:pointer;
  padding:12px;
}
.img-modal .nav.prev{left:10px}
.img-modal .nav.next{right:10px}
.dots{
  position:absolute;
  bottom:20px;
  display:flex;
  gap:6px;
}
.dots span{
  width:8px;height:8px;
  background:#777;
  border-radius:50%;
  cursor:pointer;
}
.dots span.active{background:#fff}


/*******************************************************/

.qty button {
  width: 35px;
  height: 35px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}


.qty button {
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.qty button.flash-green {
  background-color: #27ae60 !important;
  color: #fff !important;
  transform: scale(1.15);
}

.qty button.flash-red {
  background-color: #c0392b !important;
  color: #fff !important;
  transform: scale(1.15);
}


/*****************************************************************************/


.location-btn {
  display: inline-block;
  margin: 8px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f1f1f1;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #ddd;
}

.location-btn:hover {
  background: #e53935;
  color: #fff;
  border-color: #e53935;
}


/*********************************************************************/

/*.card-unit {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: #f2f2f2;
  font-size: 12px;
  color: #555;
  margin-top: 6px;
}*/

/*.card-unit {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #f4f4f4;
  font-size: 12px;
  color: #444;
}*/

.card-unit {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 900;
  color: #222;
  display: inline-block;
  align-items: center;
  gap: 6px;
}


.unit-icon {
  font-size: 15px;
}

.unit-text {
  font-weight: 900;
  font-size: 16px;
}


/***********************************************************************************/

.menu-search {
  margin: 10px 0 20px;
}

.menu-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

/****************************************************************************************/


.cart-datetime {
  margin: 10px 0;
}

.cart-datetime label {
  display: block;
  font-size: 13px;
  margin-top: 6px;
  color: #555;
}

.cart-datetime input {
  width: 100%;
  padding: 6px;
  margin-top: 2px;
  font-size: 14px;
}

/***********************************************************************************************************/


/* ================= CALL BUTTON ================= */

.call-wrapper{
    position: relative;
    margin-top: 30px;
    text-align: center;
}

.call-btn{
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    background: linear-gradient(135deg,#28a745,#20c997);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.call-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}


