/* ========================================
   قيّمني - الأنماط الرئيسية
   ======================================== */

:root {
  --primary: #1a56db;
  --primary-dark: #1341b1;
  --primary-light: #e8f0fe;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Segoe UI', 'Arial', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  direction: rtl;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon { font-size: 1.6rem; }

.main-nav {
  display: flex;
  gap: .25rem;
  flex: 1;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 8px;
  font-size: .95rem;
  transition: all .2s;
}

.main-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions { display: flex; align-items: center; gap: .75rem; margin-right: auto; }

.btn-suggest {
  background: var(--primary);
  color: #fff !important;
  padding: .5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
  text-decoration: none;
}
.btn-suggest:hover { background: var(--primary-dark); color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
  padding: .25rem;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 999;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  box-shadow: var(--shadow-lg);
  transition: right .3s ease;
}

.mobile-nav.open { right: 0; }
.mobile-nav a { display: block; padding: .75rem 1rem; border-radius: 8px; color: var(--text); font-weight: 500; }
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }
.close-nav { align-self: flex-end; background: none; border: none; font-size: 1.3rem; cursor: pointer; margin-bottom: .5rem; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 998; display: none; }
.nav-overlay.show { display: block; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1341b1 0%, #1a56db 50%, #0ea5e9 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.3; }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 2rem; }
.highlight { color: var(--accent); }

/* ===== SEARCH BOX ===== */
.search-box { margin-bottom: 2.5rem; }
.search-inner {
  display: flex;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  padding: .3rem;
  gap: .3rem;
}
.search-inner input {
  flex: 1;
  border: none;
  outline: none;
  padding: .75rem 1rem;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  min-width: 0;
  direction: rtl;
}
.search-inner select {
  border: none;
  outline: none;
  border-right: 1px solid var(--border);
  padding: .5rem .75rem;
  color: var(--text-muted);
  background: transparent;
  font-size: .9rem;
}
.search-inner button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .75rem 1.5rem;
  border-radius: 40px;
  font-weight: 700;
  cursor: pointer;
  font-size: .95rem;
  transition: background .2s;
  white-space: nowrap;
}
.search-inner button:hover { background: var(--primary-dark); }

/* ===== HERO STATS ===== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-item .num { font-size: 1.8rem; font-weight: 800; }
.stat-item span:last-child { font-size: .85rem; opacity: .8; }

/* ===== CATEGORIES ===== */
.categories-section { padding: 1.5rem 0; background: #fff; border-bottom: 1px solid var(--border); }
.categories-scroll { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; -webkit-overflow-scrolling: touch; }
.categories-scroll::-webkit-scrollbar { height: 3px; }
.categories-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
  padding: .4rem .9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-size: .9rem;
  transition: all .2s;
  flex-shrink: 0;
}
.cat-pill:hover, .cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== SECTIONS ===== */
.section { padding: 3rem 0; }
.section.bg-light { background: var(--bg); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.4rem; font-weight: 700; }
.btn-text { color: var(--primary); font-weight: 600; font-size: .9rem; }

/* ===== STORES GRID ===== */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.store-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.store-img { height: 160px; overflow: hidden; }
.store-img a { display: block; height: 100%; }
.store-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.store-card:hover .store-img img { transform: scale(1.04); }

.store-no-img {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-no-img a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.store-no-img span { font-size: 3rem; color: var(--primary); background: #fff; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }

.store-info { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.store-category { font-size: .78rem; color: var(--primary); font-weight: 600; background: var(--primary-light); display: inline-block; padding: .15rem .5rem; border-radius: 4px; }
.store-info h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.store-info h3 a { color: var(--text); }
.store-info h3 a:hover { color: var(--primary); }

.store-rating-row { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.rating-num { font-weight: 700; color: var(--text); }
.review-count { font-size: .83rem; color: var(--text-muted); }

.store-address { font-size: .85rem; color: var(--text-muted); }

.store-link {
  margin-top: auto;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 600;
}

/* ===== STARS ===== */
.stars { display: inline-flex; gap: 1px; }
.star { font-size: 1rem; cursor: default; }
.star.full { color: var(--accent); }
.star.half { color: var(--accent); opacity: .7; }
.star.empty { color: #d1d5db; }
.stars-interactive .star { cursor: pointer; font-size: 1.4rem; transition: color .1s; }

/* ===== REVIEWS LIST (homepage) ===== */
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.review-store a { font-weight: 700; color: var(--primary); }
.review-text { font-size: .9rem; color: var(--text-muted); margin: .5rem 0; line-height: 1.5; }
.review-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-light); }

/* ===== CTA ===== */
.cta-section { padding: 3rem 0; background: var(--primary); }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-text h3 { color: #fff; font-size: 1.4rem; font-weight: 700; }
.cta-text p { color: rgba(255,255,255,.8); }
.btn-cta {
  background: #fff;
  color: var(--primary);
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s;
}
.btn-cta:hover { background: var(--accent); color: #fff; }

/* ===== STORE PAGE ===== */
.store-page { padding: 1.5rem 0 3rem; }

.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:not(.sep) { color: var(--text); }

.store-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }

.store-header-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.store-hero { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.5rem; }
.store-logo { width: 90px; height: 90px; border-radius: 14px; overflow: hidden; flex-shrink: 0; border: 2px solid var(--border); }
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-logo-placeholder { background: linear-gradient(135deg, var(--primary-light), var(--primary)); display: flex; align-items: center; justify-content: center; }
.store-logo-placeholder span { font-size: 2rem; color: #fff; font-weight: 800; }

.store-headline { flex: 1; }
.store-category-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: .8rem; font-weight: 600; padding: .15rem .6rem; border-radius: 4px; margin-bottom: .4rem; }
.store-headline h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }

.store-big-rating { display: flex; align-items: center; gap: 1rem; }
.rating-score { font-size: 2.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.rating-meta { font-size: .83rem; color: var(--text-muted); margin-top: .25rem; }

/* Rating Breakdown */
.rating-breakdown { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.breakdown-row { display: flex; align-items: center; gap: .75rem; font-size: .88rem; }
.breakdown-row .bar-bg { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.breakdown-row .bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .5s ease; }
.breakdown-row span:first-child { width: 30px; color: var(--text-muted); flex-shrink: 0; }
.breakdown-row span:last-child { width: 25px; text-align: left; color: var(--text-muted); flex-shrink: 0; }

/* Gallery */
.store-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.gallery-item { border-radius: 8px; overflow: hidden; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* Store Description */
.store-description { margin-bottom: 1.25rem; }
.store-description h2, .reviews-section h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; }

/* Review Form */
.review-form-card { margin-bottom: 1.5rem; }
.review-form-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

.stars-picker { display: flex; gap: .25rem; margin-bottom: .5rem; }
.star-pick { font-size: 2rem; cursor: pointer; color: #d1d5db; transition: color .1s, transform .1s; }
.star-pick.active, .star-pick:hover { color: var(--accent); transform: scale(1.1); }

.criteria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.criteria-item { display: flex; flex-direction: column; gap: .25rem; padding: .75rem; background: var(--bg); border-radius: 8px; }
.criteria-item span { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.stars-mini-picker { display: flex; gap: 2px; }
.stars-mini-picker span { font-size: 1.2rem; cursor: pointer; color: #d1d5db; transition: color .1s; }
.stars-mini-picker span.active { color: var(--accent); }

.form-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; color: var(--text-muted); margin-bottom: .75rem; }
.form-check input { margin-top: 3px; flex-shrink: 0; }

.already-rated { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; font-weight: 600; }

/* Review Items */
.review-item { border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem; margin-bottom: .75rem; }
.review-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.reviewer-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.reviewer-info { flex: 1; }
.reviewer-info strong { display: block; font-weight: 700; font-size: .95rem; }
.review-date { font-size: .8rem; color: var(--text-muted); }
.review-body { font-size: .93rem; color: var(--text-muted); line-height: 1.6; }
.review-actions { margin-top: .75rem; }
.report-link { font-size: .8rem; color: var(--danger); opacity: .7; }
.report-link:hover { opacity: 1; }
.no-reviews { text-align: center; padding: 2rem; color: var(--text-muted); }

/* Sidebar Cards */
.store-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.info-card .info-row { display: flex; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.info-card .info-row:last-child { border: none; }
.map-placeholder { background: var(--primary-light); border-radius: 8px; padding: 1.5rem; text-align: center; font-size: 2rem; color: var(--primary); }
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-buttons a, .share-buttons button {
  flex: 1;
  min-width: 90px;
  padding: .5rem;
  border-radius: 8px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.share-wa { background: #25d366; color: #fff; }
.share-tw { background: #1da1f2; color: #fff; }
.share-copy { background: var(--border); color: var(--text); }
.share-buttons a:hover, .share-buttons button:hover { opacity: .85; }

/* ===== FORMS ===== */
.card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .6rem .85rem;
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  font-family: var(--font);
  direction: rtl;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font);
}
.btn-submit:hover { background: var(--primary-dark); }

/* ===== ALERTS ===== */
.alert { padding: .9rem 1.1rem; border-radius: 8px; margin-bottom: 1rem; font-weight: 500; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: .35rem; margin-top: 2rem; flex-wrap: wrap; }
.pagination a {
  padding: .45rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  transition: all .2s;
}
.pagination a:hover, .pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== FILTERS BAR ===== */
.filters-bar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.filters-bar input, .filters-bar select { flex: 1; min-width: 150px; }
.filters-bar button { flex-shrink: 0; }
.results-count { font-size: .9rem; color: var(--text-muted); margin-right: auto; }

/* ===== PAGE HEADER ===== */
.page-header { text-align: center; margin-bottom: 2rem; }
.page-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: .35rem; }
.page-header p { color: var(--text-muted); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state p { font-size: 1.1rem; margin: .5rem 0 1rem; }

/* ===== FOOTER ===== */
.site-footer { background: #1e293b; color: rgba(255,255,255,.8); padding: 3rem 0 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-links h4, .footer-social h4 { color: #fff; font-weight: 700; margin-bottom: .75rem; }
.footer-links a, .footer-social a { display: block; color: rgba(255,255,255,.65); font-size: .9rem; margin-bottom: .4rem; transition: color .2s; }
.footer-links a:hover, .footer-social a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; text-align: center; font-size: .85rem; color: rgba(255,255,255,.45); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .store-layout { grid-template-columns: 1fr; }
  .store-sidebar { order: -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 1.75rem; }
  .search-inner { flex-wrap: wrap; border-radius: 16px; }
  .search-inner select { border: none; border-top: 1px solid var(--border); width: 100%; }
  .stores-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { flex-direction: column; text-align: center; }
  .store-hero { flex-direction: column; align-items: center; text-align: center; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .stores-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .stat-item .num { font-size: 1.4rem; }
}

/* ===== Country Selector Banner ===== */
.country-banner {
  background: linear-gradient(90deg, #eff6ff, #e0f2fe);
  border-bottom: 1px solid #bfdbfe;
  padding: .5rem 0;
  font-size: .87rem;
  text-align: center;
  color: #1e40af;
}

/* ===== Static Pages ===== */
.static-page-content {
  padding: 2rem 2.5rem;
}
.static-page-content h1 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}
.page-body h2 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--text); }
.page-body h3 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .4rem; color: var(--text); }
.page-body p  { margin-bottom: .9rem; line-height: 1.85; color: #374151; }
.page-body ul, .page-body ol { margin: .5rem 0 .9rem 1.5rem; }
.page-body li { margin-bottom: .4rem; line-height: 1.7; color: #374151; }
.page-body strong { color: var(--text); }
.page-updated { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-light); }

/* ===== Reviews List (store page) — renamed to avoid conflict ===== */
.reviews-list-section { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }

@media (max-width: 640px) {
  .static-page-content { padding: 1.25rem; }
}

/* ============================================================
   قيّمني — تحسينات الجوال الشاملة
   Mobile-First Responsive Overhaul
   ============================================================ */

/* ===== GENERAL MOBILE BASE ===== */
@media (max-width: 768px) {

  /* أساس أفضل للنص والتباعد */
  body { font-size: 14px; }
  .container { padding: 0 1rem; }

  /* ===== HEADER ===== */
  .site-header { position: sticky; top: 0; z-index: 200; }

  .header-inner {
    padding: .65rem 0;
    gap: .75rem;
    flex-wrap: nowrap;
    align-items: center;
  }

  .logo { font-size: 1.2rem; }
  .logo-icon { font-size: 1.3rem; }

  /* إخفاء عناصر غير ضرورية في الهيدر */
  .main-nav { display: none !important; }
  .btn-suggest { display: none; }

  /* إخفاء زر دخول التاجر في الهيدر (موجود في القائمة الجانبية) */
  .header-actions > a[href*="merchant/login"] { display: none; }

  /* اختصار اسم الدولة */
  .country-name-short { display: none; }
  .country-btn {
    padding: .4rem .5rem;
    gap: .2rem;
    min-width: unset;
  }
  .country-flag { font-size: 1.2rem; }
  .country-chevron { display: none; }

  /* زر القائمة */
  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .header-actions { gap: .4rem; margin-right: auto; }

  /* ===== MOBILE NAV — تحسين كامل ===== */
  .mobile-nav {
    right: -100%;
    width: min(80vw, 300px);
    background: #fff;
    box-shadow: -4px 0 30px rgba(0,0,0,.15);
    padding: 0;
    overflow-y: auto;
    border-right: none;
    border-left: 3px solid var(--primary);
  }

  .mobile-nav.open { right: 0; }

  .mobile-nav-header {
    background: linear-gradient(135deg, #1341b1, #1a56db);
    padding: 1.25rem 1rem;
    margin-bottom: 0;
    border-bottom: none;
  }

  .mobile-nav-header .logo { color: #fff; font-size: 1.2rem; }
  .close-nav {
    color: rgba(255,255,255,.8);
    font-size: 1.4rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    transition: background .2s;
    margin: 0;
  }
  .close-nav:hover { background: rgba(255,255,255,.3); }

  .mobile-nav a {
    padding: .85rem 1.25rem;
    font-size: .95rem;
    border-radius: 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text);
  }
  .mobile-nav a:hover { background: var(--primary-light); }
  .mobile-nav a:last-of-type { border-bottom: none; }

  .mobile-nav hr {
    margin: .25rem 0;
    border-color: var(--border);
  }

  /* قسم الدول في القائمة */
  .mobile-nav > div[style*="padding:.5rem 1rem"] {
    padding: .65rem 1.25rem !important;
    background: var(--bg);
    font-size: .8rem !important;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  /* ===== HERO ===== */
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.6rem; line-height: 1.35; margin-bottom: .75rem; }
  .hero p { font-size: .95rem; margin-bottom: 1.5rem; opacity: .9; }

  /* صندوق البحث على الجوال */
  .search-box { margin-bottom: 1.75rem; }
  .search-inner {
    flex-direction: column;
    border-radius: 16px;
    padding: .5rem;
    gap: .4rem;
  }
  .search-inner input {
    padding: .8rem 1rem;
    font-size: .95rem;
    border-radius: 10px;
    border: 1.5px solid var(--border);
  }
  .search-inner select {
    border: 1.5px solid var(--border) !important;
    border-radius: 10px !important;
    padding: .7rem 1rem;
    font-size: .9rem;
    width: 100%;
    background: #fff;
  }
  .search-inner button {
    border-radius: 10px;
    padding: .8rem;
    font-size: .95rem;
    width: 100%;
  }

  /* إحصاءات الهيرو */
  .hero-stats {
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .stat-item .num { font-size: 1.5rem; }
  .stat-item span:last-child { font-size: .78rem; }

  /* ===== CATEGORIES ===== */
  .categories-section { padding: 1rem 0; }
  .categories-scroll {
    padding: 0 1rem .5rem;
    gap: .4rem;
    scrollbar-width: none;
  }
  .categories-scroll::-webkit-scrollbar { display: none; }
  .cat-pill { font-size: .83rem; padding: .35rem .75rem; }

  /* ===== SECTIONS ===== */
  .section { padding: 1.75rem 0; }
  .section-header { margin-bottom: 1rem; }
  .section-header h2 { font-size: 1.15rem; }
  .btn-text { font-size: .83rem; }

  /* ===== STORES GRID — بطاقتين بجانب بعض ===== */
  .stores-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
  }

  .store-card { border-radius: 10px; }
  .store-img { height: 130px; }
  .store-info { padding: .75rem; gap: .25rem; }
  .store-category { font-size: .72rem; }
  .store-info h3 { font-size: .88rem; line-height: 1.35; }
  .store-address { font-size: .78rem; }
  .store-link { font-size: .8rem; }
  .rating-num { font-size: .83rem; }
  .review-count { font-size: .75rem; }

  /* ===== REVIEWS GRID ===== */
  .reviews-list { grid-template-columns: 1fr; gap: .75rem; }
  .review-card { padding: 1rem; border-radius: 10px; }
  .review-store a { font-size: .88rem; }
  .review-text { font-size: .85rem; }

  /* ===== CTA ===== */
  .cta-section { padding: 2rem 0; }
  .cta-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .cta-text h3 { font-size: 1.2rem; }
  .cta-text p { font-size: .9rem; }
  .btn-cta { width: 100%; text-align: center; padding: .85rem; }

  /* ===== STORE PAGE ===== */
  .store-page { padding: 1rem 0 2.5rem; }
  .breadcrumb { font-size: .8rem; gap: .3rem; margin-bottom: 1rem; }

  .store-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .store-sidebar {
    order: -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  /* بطاقة هيدر المتجر */
  .store-header-card { padding: 1.25rem; margin-bottom: .75rem; }

  .store-hero {
    flex-direction: row;
    align-items: flex-start;
    text-align: right;
    gap: .85rem;
  }
  .store-logo { width: 65px; height: 65px; border-radius: 10px; flex-shrink: 0; }

  .store-headline h1 { font-size: 1.2rem; margin-bottom: .3rem; }
  .store-category-badge { font-size: .75rem; }

  .store-big-rating { flex-wrap: wrap; gap: .5rem; }
  .rating-score { font-size: 2rem; }

  /* معرض الصور */
  .store-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
  }

  /* ===== REVIEW FORM ===== */
  .star-pick { font-size: 1.75rem; }
  .stars-picker { gap: .15rem; }

  .criteria-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .criteria-item { padding: .6rem; }
  .criteria-item span { font-size: .78rem; }

  /* ===== FORMS ===== */
  .form-row { grid-template-columns: 1fr; gap: .75rem; }
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* يمنع zoom في iOS */
    padding: .65rem .85rem;
  }
  .btn-submit { width: 100%; padding: .85rem; font-size: .95rem; }

  /* ===== PAGE HEADER ===== */
  .page-header { margin-bottom: 1.25rem; }
  .page-header h1 { font-size: 1.4rem; }

  /* ===== FILTERS BAR ===== */
  .filters-bar { flex-direction: column; gap: .6rem; }
  .filters-bar input,
  .filters-bar select { min-width: unset; font-size: 16px; }
  .filters-bar button { width: 100%; }
  .results-count { margin-right: 0; }

  /* ===== PAGINATION ===== */
  .pagination { gap: .25rem; margin-top: 1.5rem; }
  .pagination a { padding: .5rem .65rem; font-size: .83rem; }

  /* ===== COUNTRY DROPDOWN ===== */
  .country-dropdown {
    left: auto;
    right: 0;
    width: min(260px, 85vw);
  }

  /* ===== FOOTER ===== */
  .site-footer { padding: 2rem 0 0; margin-top: 2.5rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }
  .footer-brand p { font-size: .85rem; }
  .footer-links h4, .footer-social h4 { margin-bottom: .5rem; font-size: .9rem; }
  .footer-links a, .footer-social a { font-size: .85rem; margin-bottom: .3rem; }
  .footer-bottom { padding: 1rem 0; font-size: .8rem; }

  /* ===== CARD ===== */
  .card { padding: 1.1rem; border-radius: 10px; }

  /* ===== ALERTS ===== */
  .alert { padding: .75rem 1rem; font-size: .88rem; }

  /* ===== EMPTY STATE ===== */
  .empty-state { padding: 2rem 1rem; }
  .empty-state p { font-size: .95rem; }

  /* ===== SHARE BUTTONS ===== */
  .share-buttons { gap: .4rem; }
  .share-buttons a, .share-buttons button { font-size: .8rem; padding: .5rem .4rem; }

  /* ===== COUNTRY BANNER ===== */
  .country-banner { font-size: .8rem; padding: .4rem 0; }

  /* ===== INFO CARD ===== */
  .info-card .info-row { font-size: .85rem; gap: .5rem; }

  /* ===== STATIC PAGES ===== */
  .static-page-content { padding: 1rem; }
  .static-page-content h1 { font-size: 1.3rem; }
  .page-body h2 { font-size: 1rem; }
  .page-body p { font-size: .9rem; line-height: 1.75; }

}

/* ===== VERY SMALL SCREENS (< 380px) ===== */
@media (max-width: 380px) {

  .hero h1 { font-size: 1.35rem; }
  .stores-grid { gap: .5rem; }
  .store-img { height: 110px; }
  .store-info { padding: .6rem; }
  .store-info h3 { font-size: .82rem; }
  .hero-stats { gap: .75rem; }
  .stat-item .num { font-size: 1.25rem; }
  .logo { font-size: 1.1rem; }

}

/* ===== TABLET (769px – 1023px) ===== */
@media (min-width: 769px) and (max-width: 1023px) {

  .stores-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .store-layout { grid-template-columns: 1fr; }
  .store-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .hero h1 { font-size: 2rem; }
  .search-inner { flex-wrap: nowrap; }

}

/* ===== SMOOTH MOBILE INTERACTIONS ===== */
@media (max-width: 768px) {

  /* لمسة تفاعلية سلسة */
  .store-card { -webkit-tap-highlight-color: transparent; }
  .store-card:active { transform: scale(.98); }

  .cat-pill { -webkit-tap-highlight-color: transparent; }
  .cat-pill:active { opacity: .75; }

  .btn-submit:active, .btn-cta:active { opacity: .85; transform: scale(.98); }

  /* منع overflow أفقي */
  main, section { overflow-x: hidden; }

  /* تحسين نص عربي على الجوال */
  h1, h2, h3 { word-break: break-word; }

  /* Bottom safe area على أجهزة iPhone X+ */
  .site-footer { padding-bottom: env(safe-area-inset-bottom, 0); }

  /* تحسين الـ overlay */
  .nav-overlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  /* تمرير سلس داخل القوائم */
  .mobile-nav { -webkit-overflow-scrolling: touch; }
  .categories-scroll { -webkit-overflow-scrolling: touch; }
  .country-list { -webkit-overflow-scrolling: touch; }

}


