/* ------------------------------------------------------------
   أساس مشترك لكل الثيمات: البنية والتخطيط
   الألوان والخطوط والشخصية في ملف الثيم
   ------------------------------------------------------------ */
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.6; }
img { max-width: 100%; display: block; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* الترويسة */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 8px; }
.header-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand .logo { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.brand h1 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: 0.1px; }
.brand p { margin: 1px 0 0; font-size: 11.5px; font-weight: 500; }
.langs { display: flex; gap: 3px; }
.langs a { text-decoration: none; font-size: 14px; padding: 6px 14px; border-radius: 8px; line-height: 1.4; }
.langs a.on { background: transparent; border: 1.5px solid; font-weight: 800; }

/* زر اللغة الواحد (علم يتبدّل بالضغط) */
.lang-flag-btn { text-decoration: none; font-size: 19px; line-height: 1; padding: 4px; border-radius: 50%; flex-shrink: 0; }
.search-icon-btn { background: none; border: none; font-size: 16px; padding: 4px 6px; cursor: pointer; flex-shrink: 0; line-height: 1; }
.menu-search-bar { display: flex; align-items: center; gap: 8px; padding: 8px 16px; position: sticky; top: 0; z-index: 15; background: var(--body-bg, #fff); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.menu-search-bar[hidden] { display: none; }
.menu-search-bar input { flex: 1; border: none; border-radius: 10px; padding: 9px 14px; font-family: inherit; font-size: 14px; }
.menu-search-bar button { background: none; border: none; font-size: 15px; cursor: pointer; padding: 4px 8px; }

.allergen-filter-bar { padding: 12px 16px; position: sticky; top: 0; z-index: 15; background: var(--body-bg, #fff); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.allergen-filter-bar[hidden] { display: none; }
.allergen-filter-title { font-size: 12px; font-weight: 700; margin: 0 0 8px; opacity: 0.75; }
.allergen-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.allergen-filter-chip {
	border: 1px solid rgba(0,0,0,0.15); background: rgba(255,255,255,0.7); border-radius: 999px;
	padding: 6px 13px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.allergen-filter-chip.on { background: #d64545; color: #fff; border-color: #d64545; }
#allergen-filter-close { display: block; margin: 10px auto 0; background: none; border: none; font-size: 13px; cursor: pointer; opacity: 0.6; font-family: inherit; }

.allergen-icons {
	position: absolute; bottom: 8px; inset-inline-start: 8px; display: flex; gap: 3px;
}
.allergen-icons span { font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }

.lb-allergens { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lb-allergen-chip {
	font-size: 11.5px; border: 1px solid rgba(214,69,69,0.4); color: #d64545;
	background: rgba(214,69,69,0.08); border-radius: 999px; padding: 3px 10px;
}
.item.search-hidden { display: none; }
.cat-section.search-hidden { display: none; }
.item.allergen-hidden { display: none; }
.cat-section.allergen-hidden { display: none; }

/* حالة آخر طلب — مدمجة بصف الترويسة نفسه، بإطار غامق واضح وخلفية شفافة بدل التظليل الباهت */
.header-order-status {
	flex: 0 1 auto; min-width: 0; text-decoration: none; text-align: center;
	font-size: 10.5px; padding: 5px 12px; display: flex; flex-direction: column; line-height: 1.3;
	overflow: hidden; border-radius: 10px; border: 2px solid; margin: 0 8px;
	background: transparent; font-weight: 700;
}
.header-order-status span { font-size: 14px; font-weight: 800; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-order-status strong { font-weight: 900; letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* شريط "جرّب شي جديد" */
.suggest-strip { padding: 12px 0 4px; }
.suggest-title { font-size: 16.5px; font-weight: 700; margin: 0 0 12px; text-align: center; }

/* شريط الاقتراحات الذكية بالسلة (حسب المجموعة الفاضية) */
.cart-suggest-strip { background: var(--surface, #fff); border-radius: var(--radius, 14px); padding: 14px 14px 10px;
	margin: 0 auto 14px; max-width: 420px; box-shadow: var(--shadow-card, 0 2px 10px rgba(0,0,0,0.05)); }
.cart-suggest-title { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.suggest-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 2px 4px; scrollbar-width: none; }
.suggest-scroll::-webkit-scrollbar { display: none; }
.suggest-card { flex-shrink: 0; width: 100px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 3px; border: none; background: transparent; padding: 0; font-family: inherit; cursor: pointer; text-align: start; }
.suggest-img { width: 100px; height: 100px; border-radius: 12px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.suggest-img img { width: 100%; height: 100%; object-fit: cover; }
.suggest-img.no-photo .placeholder-logo { width: 42%; height: 42%; }
.suggest-add {
	position: absolute; bottom: 5px; inset-inline-end: 5px; width: 22px; height: 22px; border-radius: 50%;
	background: rgba(255,255,255,0.92); color: #201f1c; font-size: 14px; font-weight: 700;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,0.25);
	transition: transform 0.15s;
}
.suggest-card.added .suggest-add { transform: scale(1.25); color: #2f6b45; }
.suggest-card.added .suggest-img { opacity: 0.55; }
.suggest-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-price { font-size: 12px; font-weight: 800; opacity: 0.85; }

.suggest-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }

.order-review-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.order-review-backdrop[hidden] { display: none; }
.order-review-modal { background: #fff; border-radius: 18px; padding: 22px 20px; max-width: 360px; width: 100%; }
.order-review-modal h3 { margin: 0 0 14px; font-size: 16px; text-align: center; }
.order-review-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); gap: 10px; }
.order-review-row span { opacity: 0.65; }
.order-review-row strong { text-align: end; }
.order-review-row[hidden] { display: none; }
.order-review-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.order-review-actions #review-back-btn { background: none; border: none; padding: 8px; font-size: 13px; opacity: 0.6; cursor: pointer; font-family: inherit; }
.suggest-modal-backdrop[hidden] { display: none; }
.suggest-modal { background: #fff; border-radius: 18px; padding: 26px 20px 20px; max-width: 400px; width: 100%; position: relative; }

/* شريط المجموعات */
.cats { position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.cats-scroll {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 7px;
	padding-top: 9px; padding-bottom: 9px;
}

.cat { flex-shrink: 0; border: none; border-radius: 999px; padding: 6px 14px; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }

/* الأصناف */
.items { padding: 4px 0 70px; }
.cat-section { scroll-margin-top: 130px; margin-bottom: 22px; }
.cat-heading {
	font-size: 18px; font-weight: 800; margin: 0 0 14px; padding-top: 6px;
	text-align: center; position: relative; letter-spacing: 0.2px;
	transition: color 0.3s;
}
.cat-heading::after {
	content: ""; display: block; width: 34px; height: 3px; border-radius: 3px;
	margin: 8px auto 0; background: currentColor; opacity: 0.5;
}
.cat-heading.flash { animation: heading-flash 1s ease-out; }
@keyframes heading-flash {
	0% { opacity: 0.35; letter-spacing: 1.5px; }
	100% { opacity: 1; letter-spacing: 0.2px; }
}
.cat-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.item { border-radius: 14px; overflow: hidden; transition: box-shadow 0.2s; }
.item.in-cart { animation: cart-flash 0.9s ease-out forwards; }
@keyframes cart-flash {
	0% { box-shadow: 0 0 0 7px var(--cart-ring-glow, rgba(216,90,48,0.35)); }
	100% { box-shadow: 0 0 0 2px var(--cart-ring, rgba(216,90,48,0.7)); }
}
.item-img { position: relative; cursor: pointer; aspect-ratio: 1 / 1; overflow: hidden; }
.item-img.no-photo { cursor: default; display: flex; align-items: center; justify-content: center; }
.item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s, opacity 0.25s; opacity: 0; }
.item-img.loaded img { opacity: 1; }
.item-img:hover img { transform: scale(1.04); }

.img-skel {
	position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.10) 50%, rgba(0,0,0,0.05) 70%);
	background-size: 200% 100%;
	animation: skel-pulse 1.3s ease-in-out infinite;
}
.item-img.loaded .img-skel { display: none; }
@keyframes skel-pulse {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.placeholder-icon { font-size: 34px; opacity: 0.35; }
.placeholder-logo { width: 42%; height: 42%; object-fit: contain; filter: grayscale(1); opacity: 0.4; }
#reveal-sentinel { height: 1px; }
.img-count { position: absolute; bottom: 8px; inset-inline-end: 8px; font-size: 11px; padding: 2px 8px; border-radius: 8px; }
.item-body { padding: 10px 12px 13px; }
.item-body h3 {
	margin: 0 0 4px; font-size: 14.5px; font-weight: 700; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden; text-overflow: ellipsis;
	min-height: 2.6em;
}
.desc { margin: 0 0 7px; font-size: 12px; line-height: 1.45; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 16.5px; font-weight: 900; }
.price small { font-size: 11px; font-weight: 400; }
.price del { opacity: 0.5; font-weight: 400; font-size: 12px; margin-inline-end: 4px; }

/* عداد الكمية على بطاقة الصنف — بلا خلفية، شكل نظيف وأنيق */
.stepper { display: flex; align-items: center; }
.step-add {
	width: 30px; height: 30px; border-radius: 50%; border: 1.4px solid;
	background: transparent; font-size: 16px; line-height: 1; cursor: pointer;
	transition: transform 0.12s, opacity 0.15s;
}
.step-add:active { transform: scale(0.9); }
.step-mid { display: flex; align-items: center; gap: 10px; }
.step-mid[hidden] { display: none; }
.step-mid button {
	width: 26px; height: 26px; border: none; background: transparent;
	font-size: 15px; line-height: 1; cursor: pointer; padding: 0;
	display: flex; align-items: center; justify-content: center;
	transition: opacity 0.15s, transform 0.12s;
	opacity: 0.75;
}
.step-mid button:hover { opacity: 1; }
.step-mid button:active { transform: scale(0.88); }
.step-qty { min-width: 16px; text-align: center; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* السعرات الحرارية والملاحظة */
.cal-badge {
	position: absolute; top: 6px; inset-inline-start: 6px;
	font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	background: rgba(255,255,255,0.14); border: 1px solid rgba(255,59,59,0.75); color: #ff3b3b;
	line-height: 1.5;
}
.note-tag {
	display: inline-block; font-size: 11px; font-weight: 600;
	padding: 2px 9px; border-radius: 999px; margin: 0 0 8px;
}
.lb-note-lines {
	white-space: pre-line; font-size: 11.5px; font-weight: 400; opacity: 0.6;
	line-height: 1.5; margin: 0; padding: 0;
}
.lb-note-lines.collapsed {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lb-note-wrap { position: relative; margin: 0 0 6px; cursor: pointer; }
.lb-note-expand {
	display: flex; align-items: center; justify-content: center; width: 100%;
	background: none; border: none; padding: 2px 0 0; cursor: pointer;
}
.lb-note-expand-icon { font-size: 14px; font-weight: 700; }
.cal-text { font-size: 11px; opacity: 0.65; margin: -4px 0 8px; }

/* شريط السلة العائم */
.cart-bar { position: fixed; bottom: 16px; inset-inline-start: 50%; transform: translateX(50%); display: flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 999px; text-decoration: none; font-size: 15px; z-index: 20; animation: cart-glow 2.2s ease-in-out infinite; }
@keyframes cart-glow {
	0%, 100% { box-shadow: var(--cart-bar-shadow, 0 6px 20px rgba(0,0,0,0.25)), 0 0 0 0 var(--cart-glow-color, rgba(0,0,0,0.25)); }
	50% { box-shadow: var(--cart-bar-shadow, 0 6px 20px rgba(0,0,0,0.25)), 0 0 0 7px var(--cart-glow-color, rgba(0,0,0,0.25)); }
}
.cart-bar[hidden] { display: none; }
[dir="ltr"] .cart-bar { transform: translateX(-50%); }
.cart-n { border-radius: 999px; min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding: 0 6px; }

/* "قائمتي" - بديل السلة بمينيو العرض فقط. نفس مكان/شكل زر السلة تقريباً، بس محايدة الألوان بدون
   أي تلوين تبع الثيم وبدون توهج، حتى تبين بوضوح إنها مش زر شراء/طلب حقيقي */
.mylist-bar {
	position: fixed; bottom: 16px; inset-inline-start: 50%; transform: translateX(50%);
	display: flex; align-items: center; gap: 10px; padding: 12px 26px; border-radius: 999px;
	border: 1px solid var(--line, #e0ddd3); background: var(--surface, #fff); color: var(--ink, #2a2a26);
	font-size: 15px; font-family: inherit; cursor: pointer; z-index: 20; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.mylist-bar[hidden] { display: none; }
[dir="ltr"] .mylist-bar { transform: translateX(-50%); }
.mylist-bar .cart-n { background: var(--ink, #2a2a26); color: var(--surface, #fff); }
.mylist-icon { font-size: 17px; }

.mylist-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 55; display: flex;
	align-items: center; justify-content: center; padding: 16px; }
.mylist-backdrop[hidden] { display: none; }
.mylist-box { background: #fff; border-radius: 16px; max-width: 380px; width: 100%; max-height: 80vh;
	overflow-y: auto; padding: 18px; }
.mylist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mylist-head h3 { margin: 0; font-size: 16px; }
.mylist-head .lb-close { position: static; background: rgba(0,0,0,0.08); color: inherit; border: none;
	border-radius: 999px; width: 30px; height: 30px; font-size: 13px; cursor: pointer; }
.mylist-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #eee; }
.mylist-row:last-child { border-bottom: none; }
.mylist-row-name { flex: 1; font-size: 14px; }
.mylist-row-qty { font-size: 13px; opacity: 0.7; min-width: 22px; text-align: center; }
.mylist-row-remove { background: none; border: none; color: #b03030; font-size: 16px; cursor: pointer; padding: 4px 6px; }
.mylist-empty { font-size: 13px; opacity: 0.65; text-align: center; padding: 20px 0; margin: 0; }
.mylist-clear-btn { width: 100%; margin-top: 12px; padding: 10px; border-radius: 10px; border: 1px solid #eecccc;
	background: #fff5f5; color: #b03030; font-size: 13px; cursor: pointer; font-family: inherit; }
.random-pick-btn {
	position: fixed; bottom: 18px; inset-inline-end: 16px; z-index: 20;
	width: 52px; height: 52px; border-radius: 50%; border: none; font-size: 24px;
	background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,0.22); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.random-pick-btn.idle-glow { animation: idle-glow-pulse 1.6s ease-in-out infinite; }
.waiter-call-btn { bottom: 80px; background: #fff8e6; }
.waiter-call-btn.calling { animation: idle-glow-pulse 0.9s ease-in-out infinite; }
.offers-btn {
	inset-inline-end: auto; inset-inline-start: 16px;
	background: radial-gradient(circle at 35% 30%, #ff5348, #c41e14 75%);
	color: #fff !important; font-size: 22px; font-weight: 900; font-family: Arial, sans-serif;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(196,30,20,0.55), 0 6px 18px rgba(0,0,0,0.22) !important;
	animation: offers-btn-blink 1.8s steps(1, end) infinite;
}
@keyframes offers-btn-blink {
	0%, 55% { opacity: 1; }
	56%, 100% { opacity: 0.35; }
}
.offers-btn.on { border-color: #ffd23f; box-shadow: 0 0 0 3px rgba(255,210,63,0.55), 0 6px 18px rgba(0,0,0,0.22) !important; animation: none; opacity: 1; }
@keyframes idle-glow-pulse {
	0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,0.22), 0 0 0 0 var(--cart-ring-glow, rgba(216,90,48,0.5)); }
	50% { box-shadow: 0 6px 18px rgba(0,0,0,0.22), 0 0 0 10px transparent; }
}

/* معرض الصور */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lb-sheet { background: #fff; border-radius: 18px; max-width: 420px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative; }
.lb-img-wrap { position: relative; aspect-ratio: 1 / 1; background: #f4f3ef; }
.lb-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-img-wrap img[hidden] { display: none; }
.lb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-placeholder[hidden] { display: none; }
.lb-placeholder .placeholder-logo { width: 40%; height: 40%; }
.lightbox .lb-close { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(0,0,0,0.45); color: #fff; border: none; border-radius: 999px; width: 34px; height: 34px; font-size: 15px; cursor: pointer; z-index: 2; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.35); color: #fff; border: none; border-radius: 999px; width: 36px; height: 36px; font-size: 20px; cursor: pointer; }
.lightbox .lb-prev { inset-inline-start: 10px; }
.lightbox .lb-next { inset-inline-end: 10px; }
.lb-info { padding: 20px 22px 22px; color: #201f1c; }
.lb-info h3 { margin: 0 0 10px; font-size: 23px; font-weight: 800; line-height: 1.3; }
.lb-desc { font-size: 15px; line-height: 1.7; opacity: 0.75; margin: 0 0 12px; }
.lb-info .cal-text { margin: 0 0 10px; display: block; font-size: 13px; padding: 5px 12px; }
.lb-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.lb-foot .price { font-size: 24px; font-weight: 900; }
.lb-foot #lb-add { font-size: 15px; padding: 11px 26px; animation: add-btn-pulse 1.8s ease-in-out infinite; }
@keyframes add-btn-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.055); }
}

.info-dot {
	position: absolute; top: 8px; inset-inline-end: 8px; width: 16px; height: 16px; border-radius: 50%;
	font-size: 14px; font-style: normal; font-weight: 400;
	text-shadow: 0 1px 4px rgba(0,0,0,0.35);
	display: flex; align-items: center; justify-content: center;
	animation: info-dot-pulse 4s ease-in-out infinite;
}
@keyframes info-dot-pulse {
	0%, 100% { opacity: 0.45; transform: scale(0.92); }
	50% { opacity: 0.95; transform: scale(1.08); }
}

/* صفحة السلة */
.cart-wrap { padding-top: 20px; padding-bottom: 60px; }
.cart-list { border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px 4px; }
.cart-item img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; }
/* الصنفين الملحقين بالكومبو (مادة الكومبو نفسها + مشروبها المجّاني) - أصغر وأخف من الصنف
   الرئيسي بصرياً، حتى يبين وزنهم الثانوي بالسلة بدل ما يظهروا متساويين بالأهمية */
.ci-combo-part .cart-item { padding: 2px 14px 1px; gap: 6px; }
.ci-combo-part .cart-item img { width: 16px; height: 16px; opacity: 0.6; }
.ci-combo-part .ci-body strong { font-size: 8.5px; font-weight: 400; opacity: 0.6; }
.ci-combo-part .ci-price { font-size: 8px; }
.ci-combo-part .ci-qty { transform: scale(0.85); transform-origin: left center; opacity: 0.6; }
[dir="rtl"] .ci-combo-part .ci-qty { transform-origin: right center; }
.ci-combo-pair-item { justify-content: space-between; }
.ci-combo-pair-item .ci-body { flex: 1; }
/* فاصل بصري خفيف بين كل مجموعة (صنف رئيسي + ملحقاته من كومبو) والمجموعة يلي بعدها - نقّط فاتح
   شفاف، بعرض جزئي وسط البطاقة (مش خط كامل عرض الشاشة) حتى يكون فصل لطيف مش حدّ فاصل قوي */
.cart-group-divider { display: flex; justify-content: center; padding: 8px 0; }
.cart-group-divider span {
	width: 60%; border-top: 1.5px dotted rgba(0,0,0,0.28);
}
.ci-note { width: 100%; border: none; background: transparent; font-size: 10.5px; padding: 0 14px 10px; font-family: inherit; opacity: 0.55; }
.ci-note:focus { outline: none; opacity: 1; }
.ci-body { flex: 1; display: flex; flex-direction: column; }
.ci-price { font-size: 13px; opacity: 0.75; }
.ci-qty { display: flex; align-items: center; gap: 8px; }
.ci-qty button { width: 28px; height: 28px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; }
.ci-del { border: none; background: transparent; cursor: pointer; font-size: 14px; opacity: 0.5; }
.ci-del:hover { opacity: 1; }
.cart-total { display: flex; justify-content: space-between; padding: 14px; font-size: 16px; }

/* الدفع */
.checkout { border-radius: 14px; padding: 18px; }
.checkout h2 { margin: 0 0 14px; font-size: 17px; }
.f { margin-bottom: 12px; }
.schedule-toggle { display: flex; gap: 16px; font-size: 13.5px; }
.schedule-toggle label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
#scheduled-datetime-select { width: 100%; padding: 9px 12px; border-radius: 10px; }
#scheduled-datetime-select:disabled { opacity: 0.4; }
.f-row { display: flex; gap: 10px; }
.f-row .f { flex: 1; }
#address-required-mark { opacity: 0.6; }
.f label { display: inline-block; font-size: 13px; margin-bottom: 4px; margin-inline-end: 14px; }
.f input[type=text], .f input[type=tel], .f textarea { width: 100%; border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; border: 1px solid transparent; }
.f select {
	width: 100%; border-radius: 10px; padding: 10px 38px 10px 12px; font-family: inherit; font-size: 14px;
	border: 1px solid transparent; appearance: none; -webkit-appearance: none; -moz-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='%23888' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: left 10px center; cursor: pointer;
}
[dir="rtl"] .f select { padding: 10px 12px 10px 38px; background-position: left 10px center; }
.f select:focus { outline: 2px solid var(--accent, #d85a30); outline-offset: 1px; }
#region-required-mark { color: #d85a30; font-weight: 800; }
.region-compact-row {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 14px; border: 1px solid var(--line, #e0ddd5); border-radius: 10px; background: var(--paper, #faf8f3);
}
.region-compact-name { font-size: 14px; font-weight: 700; }
.region-change-link {
	background: none; border: none; color: var(--accent, #d85a30); font-size: 12.5px; font-weight: 700;
	text-decoration: underline; cursor: pointer; font-family: inherit; padding: 0; flex-shrink: 0;
}
.region-add-hint { font-size: 11.5px; color: var(--ink-faint, #888); margin: 4px 0 0; }
.required-mark { color: #d85a30; font-weight: 800; }
.f textarea::placeholder, .f input::placeholder { opacity: 0.45; }
.order-note-field textarea { background: #2a2a28; color: #f2f0ea; border: 1px solid #444341; font-weight: 500; }
.order-note-field textarea::placeholder { color: #a8a6a0; opacity: 1; }
.order-note-field label { font-weight: 700; }
.phone-row { display: flex; gap: 8px; }
.phone-row select { border-radius: 10px; padding: 10px 8px; font-family: inherit; font-size: 13px; border: 1px solid transparent; flex: 0 0 108px; max-width: 108px; }
.phone-row input[type=tel] { flex: 1 1 0%; width: auto; min-width: 0; }
.addr-row { display: flex; flex-wrap: nowrap; gap: 8px; align-items: stretch; }
.addr-row input[type=text] { flex: 1 1 0%; width: auto; min-width: 0; }
.tr-address-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-address-row select { flex: 1 1 30%; min-width: 90px; }
.tr-address-status { font-size: 11.5px; opacity: 0.65; margin: 4px 0 0; }
.tr-address-status.tr-status-error { color: #a53a3a; opacity: 1; font-weight: 600; }

/* تقييم تجربة الزبون */
.feedback-open-btn { display: block; width: 100%; margin-top: 10px; }
.feedback-thanks-note { text-align: center; font-size: 12.5px; opacity: 0.7; margin-top: 10px; }
.feedback-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 65; display: flex; align-items: center; justify-content: center; padding: 20px; }
.feedback-modal-backdrop[hidden] { display: none; }
.feedback-modal { background: var(--body-bg, #fff); border-radius: 18px; padding: 24px 20px 20px; max-width: 380px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative; color: var(--body-text, #201f1c); }
.feedback-modal h3 { text-align: center; margin: 0 0 16px; font-size: 16px; color: var(--body-text, #201f1c); }
.feedback-modal .track-modal-close { color: var(--body-text, #201f1c); opacity: 0.6; }
.feedback-rating-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 13.5px; gap: 8px; color: var(--body-text, #201f1c); }
.feedback-yesno-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 13.5px; gap: 8px; color: var(--body-text, #201f1c); }
.feedback-yesno-btns { display: flex; gap: 6px; }
.fb-yesno-btn {
	border: 1px solid color-mix(in srgb, var(--body-text, #201f1c) 25%, transparent);
	background: transparent; color: var(--body-text, #201f1c); border-radius: 999px;
	padding: 5px 16px; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.fb-yesno-btn.on { background: #f0ad2b; border-color: #f0ad2b; color: #1c1c1a; font-weight: 700; }
.feedback-stars { display: flex; gap: 2px; direction: ltr; }
.fb-star { background: none; border: none; font-size: 22px; color: var(--body-text, #201f1c); opacity: 0.25; cursor: pointer; padding: 0 1px; line-height: 1; }
.fb-star.on { color: #f0ad2b; opacity: 1; }
.feedback-modal textarea {
	width: 100%; border: 1px solid var(--body-text, #201f1c); border-opacity: 0.15; background: transparent; color: var(--body-text, #201f1c); border-radius: 10px; padding: 10px 12px;
	font-family: inherit; font-size: 13.5px; margin: 6px 0 14px; resize: vertical;
}
.feedback-modal textarea { border-color: color-mix(in srgb, var(--body-text, #201f1c) 18%, transparent); }
.feedback-modal textarea::placeholder { color: var(--body-text, #201f1c); opacity: 0.5; }
.feedback-error { color: #d64545; font-size: 12px; margin: 0 0 10px; text-align: center; }
.feedback-thanks-icon { font-size: 34px; text-align: center; margin: 0 0 6px; }
.feedback-modal #feedback-thanks-view h3 { margin-bottom: 10px; }
.feedback-discount-text { text-align: center; font-size: 14px; font-weight: 700; background: #fff3d6; color: #8a5a00; border-radius: 10px; padding: 10px; margin: 0 0 14px; }
.feedback-google-btn {
	display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
	background: #4285F4; color: #fff !important; border-radius: 999px; padding: 11px; font-size: 14px;
	font-weight: 600; margin-bottom: 10px;
}
#feedback-done-btn { display: block; width: 100%; background: none; border: none; padding: 8px; font-size: 13px; color: #cfccc4; opacity: 0.8; cursor: pointer; font-family: inherit; }
.addr-map { width: 100%; height: 180px; border-radius: 12px; margin: 10px 0; overflow: hidden; position: relative; z-index: 0; isolation: isolate; }
.geo-btn { flex: 0 0 44px; width: 44px; max-width: 44px; border-radius: 10px; border: none; font-size: 17px; cursor: pointer; }
.geo-status { font-size: 11.5px; opacity: 0.75; margin: 5px 2px 0; min-height: 14px; }
.pay-hint { font-size: 12.5px; opacity: 0.7; }
.btn-main { display: inline-block; border: none; border-radius: 12px; padding: 12px 30px; font-family: inherit; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center; }
.form-error { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13.5px; }

/* نجاح الطلب */
.order-ok, .cart-empty { text-align: center; padding: 50px 20px; border-radius: 14px; }
.ok-mark { width: 64px; height: 64px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 10px; }
.ok-num { font-size: 14px; }
.order-ok .btn-main, .cart-empty .btn-main { margin-top: 14px; }

.site-foot { padding: 20px 0 30px; text-align: center; font-size: 12.5px; opacity: 0.6; }
.site-foot-credit { margin-top: 6px; font-size: 11px; }
.site-foot-credit a { text-decoration: none; }
.site-foot-credit a:hover { text-decoration: underline; }

/* خطوات تتبع الطلب */
.track-hero { text-align: center; border-radius: 16px; padding: 28px 16px 24px; margin-bottom: 18px; }
.track-order-num { font-size: 12.5px; font-weight: 600; margin: 0 0 6px; }

/* شارة رقم الطلب — كبيرة وواضحة ومميزة */
.order-num-label { font-size: 11.5px; font-weight: 600; margin: 0 0 4px; opacity: 0.75; }
.order-num-badge {
	display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: 3px;
	font-variant-numeric: tabular-nums; padding: 6px 22px; border-radius: 14px;
	margin: 0 0 6px;
}
.order-num-pending { font-size: 11.5px; opacity: 0.65; margin: 0 0 14px; }
.checkout-discount-note { font-size: 13px; font-weight: 700; background: #fff3d6; color: #8a5a00; border-radius: 10px; padding: 10px 14px; margin: 10px 0 0; }
.existing-customer-note { font-size: 12.5px; background: #eaf3ff; color: #1a5ea8; border-radius: 8px; padding: 8px 12px; margin: 8px 0 0; }
.otp-box { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft, #f6f6f0); border: 1px solid var(--line, #e7e4dc); }
.otp-msg { font-size: 12.5px; margin: 0 0 8px; font-weight: 600; }
.otp-msg-warn { color: #8a5a00; }
.otp-msg-ok { color: #1c8a4b; }
.otp-msg-err { color: #a5312f; }
.otp-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.otp-row input { width: 90px; text-align: center; font-size: 16px; letter-spacing: 4px; padding: 7px 8px;
				  border: 1px solid var(--line, #e7e4dc); border-radius: 8px; font-family: inherit; }
.otp-btn { border: none; border-radius: 8px; padding: 8px 14px; font-size: 12.5px; cursor: pointer; font-family: inherit;
		   background: var(--accent, #9c6b2e); color: #fff; }
.otp-btn:disabled { opacity: 0.6; cursor: default; }
.otp-btn-link { background: transparent; color: var(--accent, #9c6b2e); text-decoration: underline; padding: 8px 4px; }
.track-status { font-size: 19px; font-weight: 700; margin: 0 0 18px; }
.track-scheduled { font-size: 13px; font-weight: 700; color: #1a6ab9; background: #eaf2fc; border-radius: 10px; padding: 8px 14px; margin: 0 0 14px; display: inline-block; }
.track-status.track-cancelled { color: #a53a3a; }
.track-contact-label { font-size: 13px; font-weight: 700; color: #5f5e5a; margin: 4px 0 6px; }
.order-type-modal {
	position: fixed; inset: 0; z-index: 9999; background: rgba(20, 18, 14, 0.72);
	display: flex; align-items: center; justify-content: center; padding: 20px;
	backdrop-filter: blur(2px);
}
.order-type-box {
	background: var(--paper, #fff); border-radius: 18px; padding: 28px 22px; max-width: 380px; width: 100%;
	text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.order-type-title { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.order-type-hint { margin: 0 0 20px; font-size: 12.5px; color: var(--ink-faint, #888); line-height: 1.6; }
.order-type-options { display: flex; flex-direction: column; gap: 10px; }
.order-type-opt {
	display: block; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line, #e0ddd5);
	text-decoration: none; color: inherit; font-size: 15px; font-weight: 700; background: var(--bg, #faf8f3);
}
.order-type-opt:hover, .order-type-opt:active { border-color: var(--accent, #d85a30); background: var(--accent-tint, #fdf0ea); }

.combo-suggest-modal {
	position: fixed; inset: 0; z-index: 9998; background: rgba(20, 18, 14, 0.72);
	display: flex; align-items: center; justify-content: center; padding: 20px;
}
.combo-suggest-modal[hidden] { display: none; }
.combo-suggest-box {
	background: var(--paper, #fff); border-radius: 18px; padding: 24px 20px; max-width: 380px; width: 100%;
	text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.combo-suggest-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.combo-suggest-hint { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; color: #201f1c; }
.combo-suggest-subheading { margin: 0 0 10px; font-size: 12.5px; color: var(--ink-faint, #888); }
.combo-suggest-drinks {
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px;
	max-height: 280px; overflow-y: auto;
}
.combo-drink-opt {
	display: flex; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 10px;
	border: 1.5px solid rgba(0,0,0,0.22); font-size: 13px; text-align: start; cursor: pointer;
	min-width: 0; overflow-wrap: break-word; line-height: 1.3;
}
.combo-drink-opt:has(input:checked) { border-color: var(--accent, #d85a30); border-width: 2px; background: var(--accent-tint, #fdf0ea); }
.combo-drink-opt input { flex-shrink: 0; }
.combo-drink-opt span { min-width: 0; overflow-wrap: break-word; }
.combo-suggest-actions { display: flex; flex-direction: column; gap: 8px; }
#combo-suggest-yes { color: #fff; font-weight: 800; }
#combo-suggest-yes:disabled { opacity: 0.75; background: #b7b3aa !important; border-color: #b7b3aa !important; color: #fff; }
#combo-suggest-no { background: none; border: none; color: var(--ink-faint, #888); font-size: 13px; text-decoration: underline; cursor: pointer; font-family: inherit; padding: 6px; }
.order-type-locked-note {
	margin: 0; padding: 10px 14px; background: var(--accent-tint, #fdf0ea); border-radius: 10px;
	font-size: 13.5px;
}

.track-contact-row { display: flex; gap: 8px; margin: 0 0 14px; }
.track-contact-btn {
	flex: 1; font-size: 14px; font-weight: 700; border-radius: 10px; padding: 10px 14px;
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	text-decoration: none; direction: ltr; border: 1.5px solid transparent;
}
.track-contact-call { color: #0f4c8c; background: #d8e8fb; border-color: #a8c9ee; }
.track-contact-call:hover { background: #c5ddf7; border-color: #8bb8e8; }
.track-contact-wa { color: #16703c; background: #d4f4e0; border-color: #9ee0b6; }
.track-contact-wa:hover { background: #c0edd1; border-color: #7fd39d; }
.track-steps { display: flex; align-items: center; margin: 10px 0 4px; }
.track-steps-big { max-width: 380px; margin: 0 auto 20px; }
.track-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(0,0,0,0.15); flex-shrink: 0; }
.track-steps-big .track-dot { width: 18px; height: 18px; box-shadow: 0 0 0 4px transparent; }
.track-steps-big .track-dot.on { box-shadow: 0 0 0 4px rgba(0,0,0,0.06); }
.track-dot.on { background: currentColor; }
.track-line { flex: 1; height: 2px; background: rgba(0,0,0,0.12); margin: 0 2px; }
.track-steps-big .track-line { height: 3px; }
.track-line.on { background: currentColor; }
.track-wa-hint { font-size: 12px; color: var(--ink-faint, #888); margin: 0 0 6px; }
.track-wa { display: inline-flex; align-items: center; gap: 6px; background: #25d366; color: #fff !important; border: none;
			border-radius: 999px; padding: 10px 22px; font-size: 13.5px; font-weight: 600; text-decoration: none; margin-top: 6px; }
.track-pdf { display: inline-flex; align-items: center; gap: 6px; color: #fff !important;
			 border-radius: 999px; padding: 10px 22px; font-size: 13.5px; font-weight: 600; text-decoration: none; margin: 6px 0 0 8px; }
.track-note-banner { font-size: 12.5px; border-radius: 10px; padding: 10px 14px; margin: 0 0 10px; background: rgba(0,0,0,0.05); }

.ordering-paused-banner {
	background: #fff3d6; color: #8a5a00; text-align: center; font-size: 13px; font-weight: 600;
	padding: 10px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
	position: relative;
}
.ordering-paused-banner a { color: #8a5a00; text-decoration: underline; }
.stop-banner-close {
	position: absolute; top: 6px; inset-inline-end: 10px; background: none; border: none; color: #8a5a00;
	font-size: 14px; cursor: pointer; padding: 4px 6px; opacity: 0.75;
}
.stop-banner-close:hover { opacity: 1; }

/* صف أيقونات التواصل الاجتماعي وخرائط Google بصفحة تتبع الطلب */
.track-social-row { display: flex; justify-content: center; gap: 10px; margin: 14px 0; }
.track-social-btn {
	width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	color: #fff !important; text-decoration: none; flex-shrink: 0;
}
.track-social-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.track-social-facebook { background: #1877F2; }
.track-social-tiktok { background: #000; }
.track-social-snapchat { background: #FFFC00; color: #000 !important; }
.track-social-google_maps { background: #4285F4; }

.track-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.track-modal-backdrop[hidden] { display: none; }
.track-modal { background: #fff; border-radius: 16px; padding: 26px 22px; max-width: 340px; width: 100%; text-align: center; position: relative; }
.track-modal-close { position: absolute; top: 10px; inset-inline-end: 10px; background: none; border: none; font-size: 16px; cursor: pointer; opacity: 0.5; }
.track-modal-icon { font-size: 26px; margin: 0 0 8px; }
.track-modal-text { font-size: 14px; line-height: 1.7; margin: 0; color: #201f1c; }

/* قائمة أصناف الطلب — خط صغير وناعم، التركيز على المخطط أعلاه */
.track-items { border-radius: 14px; padding: 4px 4px; }
.track-item-row { display: flex; justify-content: space-between; padding: 7px 12px; font-size: 12px; font-weight: 300; opacity: 0.7; }
.track-item-row .track-item-strong { color: #000; opacity: 1; font-weight: 700; }
.track-item-row.track-total { font-weight: 600; opacity: 0.9; font-size: 13px; border-top: 1px solid rgba(0,0,0,0.08); margin-top: 4px; padding-top: 10px; }

@media (max-width: 520px) {
	/* أسماء المجموعات - عالجوال كانت تاخذ مساحة كبيرة (أكتر من ٣ أسطر). صغّرنا حجم الخط والحشوة
	   حتى تلاقي أكتر مجموعات مكان بنفس السطر، وضلت تلف عادي (بدون تمرير جانبي) بس عادةً بتستقر
	   على ٣ أسطر تقريباً بدل ٤-٥ */
	.cats-scroll { gap: 5px; }
	.cat { font-size: 11px; padding: 5px 11px; }

	.cat-items { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.item-body { padding: 6px 7px 8px; }
	.item-body h3 { font-size: 11.5px; line-height: 1.3; min-height: 2.6em; }
	.desc { font-size: 10px; }
	.note-tag { font-size: 9.5px; padding: 1px 6px; }
	.cal-text { font-size: 9.5px; }
	.price { font-size: 11.5px; }
	.price small { font-size: 9px; }
	.item-foot { flex-wrap: wrap; gap: 4px 6px; }
	.step-add { width: 27px; height: 27px; font-size: 15px; }
	.step-mid { gap: 8px; }
	.step-mid button { width: 24px; height: 24px; font-size: 14px; }
	.step-qty { font-size: 12.5px; }
}

/* -------------------------------------------- مقارنة الأصناف -------------------------------------------- */
.compare-toggle {
	position: absolute; bottom: 8px; inset-inline-end: 8px; width: 44px; height: 44px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 24px;
	background: rgba(255,255,255,0.5); border: 1.5px solid rgba(0,0,0,0.18); color: #444;
	cursor: pointer; padding: 0; font-family: inherit; transition: background 0.15s, border-color 0.15s, transform 0.1s;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 2;
}
.compare-toggle:active { transform: scale(0.9); }
.compare-toggle.on { background: var(--compare-accent, #d85a30); border-color: var(--compare-accent, #d85a30); color: #fff; }

/* شريط تحديد الأصناف - يظهر لما ينتقي الزبون صنف واحد ع الأقل، وبيرتفع فوق شريط السلة تلقائياً لو ظاهر */
.compare-bar {
	position: fixed; bottom: 80px; inset-inline-start: 16px; inset-inline-end: auto;
	z-index: 19; display: flex; align-items: center; gap: 10px;
	background: #1c1c1a; color: #fff; border-radius: 999px; padding: 8px 8px 8px 16px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.28); max-width: calc(100vw - 32px);
}
.compare-bar[hidden] { display: none; }
.compare-bar-thumbs { display: flex; gap: 5px; }
.compare-bar-thumbs img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.compare-bar-thumbs .cb-placeholder { width: 30px; height: 30px; border-radius: 50%; background: #4a4a47; display: flex; align-items: center; justify-content: center; font-size: 13px; border: 2px solid #fff; }
.compare-bar-btn {
	background: var(--compare-accent, #d85a30); color: #fff; border: none; border-radius: 999px;
	padding: 8px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
	white-space: nowrap;
}
.compare-bar-btn:disabled { opacity: 0.5; cursor: default; }

/* نافذة المقارنة */
.compare-modal { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; align-items: stretch; justify-content: center; }
.compare-modal[hidden] { display: none; }
.compare-sheet { background: #fff; width: 100%; max-width: 720px; height: 100%; max-height: 100%; border-radius: 0; padding: 16px 10px 24px; overflow-y: auto; overflow-x: hidden; position: relative; }
@media (min-width: 720px) {
	.compare-modal { align-items: center; }
	.compare-sheet { border-radius: 18px; max-height: 80vh; }
}
.compare-title { margin: 0 0 14px; font-size: 17px; text-align: center; padding-inline-end: 30px; color: #1a1a18; }
.compare-table-wrap { overflow-x: hidden; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; border: 1.5px solid rgba(0,0,0,0.18); }
.compare-table th, .compare-table td { padding: 6px 4px; vertical-align: top; border-bottom: 1.5px solid rgba(0,0,0,0.18); font-size: 11.5px; color: #1a1a18; overflow-wrap: break-word; word-break: break-word; }
.compare-table .ct-row-label { font-weight: 700; width: 62px; font-size: 10px; color: #555; white-space: normal; line-height: 1.25; background: rgba(0,0,0,0.03); }
.compare-table td:not(.ct-row-label) { border-inline-start: 1.5px solid rgba(0,0,0,0.18); }
.compare-table .ct-col-head { text-align: center; position: relative; padding-top: 4px; }
.compare-table .ct-item-img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; margin: 0 auto 4px; display: block; }
.compare-table .ct-item-name { font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.3; }
.compare-table .ct-price-cell, .compare-table .ct-cal-cell { text-align: center; font-weight: 700; }
.compare-table .ct-allergen-chip {
	display: inline-block; font-size: 10.5px; border: 1px solid rgba(214,69,69,0.4); color: #d64545;
	background: rgba(214,69,69,0.08); border-radius: 999px; padding: 1px 7px; margin: 1px;
}
.compare-table .ct-remove-btn {
	position: absolute; top: 0; inset-inline-end: 8px; width: 22px; height: 22px; border-radius: 50%;
	background: rgba(0,0,0,0.55); color: #fff; border: none; font-size: 13px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.compare-table .ct-remove-btn:hover { background: rgba(184,60,40,0.85); }
.compare-table .ct-add-cart-btn {
	display: block; width: 100%; margin: 8px auto 0; background: var(--compare-accent, #d85a30); color: #fff;
	border: none; border-radius: 8px; padding: 6px 8px; font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.compare-table .ct-add-cart-btn:disabled { opacity: 0.7; cursor: default; }
.compare-table .ct-add-cart-btn.added { background: #2e8b57; }

/* تمييز الملاحظات/المكونات المشتركة عن المختلفة بين الأصناف المقارنة (وضع الخوارزمية) */
.ct-note-shared { background: rgba(46,139,87,0.12); color: #276b45; border-radius: 4px; padding: 0 3px; }
.ct-note-unique { background: rgba(184,121,31,0.14); color: #8a5f18; border-radius: 4px; padding: 0 3px; font-weight: 700; }
.ct-note-empty { color: #999; }
.compare-legend { display: flex; gap: 16px; justify-content: center; margin-top: 12px; font-size: 11px; color: #777; }
.ct-legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 3px; }
.ct-legend-dot.ct-legend-shared { background: #2e8b57; }
.ct-legend-dot.ct-legend-unique { background: #b8791f; }

/* تمييز الخانة المختلفة فعلياً (وضع الذكاء الاصطناعي) - لون واحد واضح، بس للخانات المختلفة تحديداً */
.compare-table td.ct-cell-diff { background: rgba(184,60,40,0.10); box-shadow: inset 0 0 0 1.5px rgba(184,60,40,0.35); }
.compare-table .ct-ai-summary { font-weight: 600; color: #8a3020; background: rgba(184,60,40,0.06); text-align: center; line-height: 1.6; }

/* نتيجة المقارنة بالذكاء الاصطناعي - نص متدفّق تدريجياً */
.compare-ai-result { font-size: 13.5px; line-height: 1.9; color: #2a2a26; white-space: pre-wrap; min-height: 40px; }
.compare-ai-result.loading::after {
	content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
	background: var(--compare-accent, #d85a30); margin-inline-start: 4px; animation: ai-cursor-blink 0.9s ease-in-out infinite;
}
@keyframes ai-cursor-blink { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@media (max-width: 520px) {
	.compare-table th, .compare-table td { padding: 6px; font-size: 11.5px; }
	.compare-table .ct-row-label { width: 72px; font-size: 10.5px; }
	.compare-table .ct-item-img { width: 50px; height: 50px; }
}
