/* دجاجنا وبس — ألوان: أحمر #C41E22، أصفر #FFCC00، كريمي #F9F4F0 */

:root {
  --color-red: #c41e22;
  --color-red-dark: #9e181c;
  --color-yellow: #ffcc00;
  --color-cream: #f9f4f0;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --font: "Cairo", system-ui, sans-serif;
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 5.85rem;
}

main {
  flex: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.section {
  padding-block: 2.5rem;
}

/* شعار */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.35rem;
  border-radius: 0.65rem;
  background: var(--color-red);
  color: var(--color-yellow);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.logo-badge--sm {
  min-width: 2rem;
  height: 2rem;
  font-size: 0.6rem;
  border-radius: 0.5rem;
}

.logo-image {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  border-radius: 0.7rem;
  filter: drop-shadow(0 6px 14px rgba(196, 30, 34, 0.18));
}

.logo-image--sm {
  width: 2.25rem;
  height: 2.25rem;
}

.logo-wordmark {
  font-weight: 800;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--color-text);
  white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--color-cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  opacity: 0.88;
  transition: opacity 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  color: var(--color-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline-start: auto;
}

.header-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-search__panel {
  position: absolute;
  inset-block-start: calc(100% + 0.55rem);
  inset-inline-end: 0;
  z-index: 160;
  width: min(21rem, calc(100vw - 2rem));
  padding: 0.55rem;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.16);
  backdrop-filter: blur(8px);
}

.header-search__input {
  width: 100%;
  height: 2.45rem;
  padding: 0 0.85rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 0.75rem;
  outline: none;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.header-search__input:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(196, 30, 34, 0.1);
}

.header-search__results {
  margin-top: 0.45rem;
  max-height: 18rem;
  overflow-y: auto;
}

.header-search__row {
  display: block;
  padding: 0.65rem 0.7rem;
  border-radius: 0.65rem;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.header-search__row:hover,
.header-search__row:focus-visible {
  background: rgba(196, 30, 34, 0.08);
  color: var(--color-red);
  outline: none;
}

.header-search__state {
  margin: 0;
  padding: 0.65rem 0.7rem;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .header-search__panel {
    position: fixed;
    inset-block-start: 4.85rem;
    inset-inline: 1rem;
    width: auto;
    max-width: none;
    border-radius: 0.9rem;
    max-height: calc(100vh - 6.25rem);
    overflow: hidden;
  }

  .header-search__results {
    max-height: min(52vh, 16.5rem);
  }
}

@media (max-width: 480px) {
  .header-search__panel {
    inset-block-start: 4.45rem;
    inset-inline: 0.65rem;
    padding: 0.5rem;
  }

  .header-search__input {
    height: 2.35rem;
    font-size: 0.88rem;
  }

  .header-search__row {
    padding: 0.58rem 0.62rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 360px) {
  .header-search__panel {
    inset-inline: 0.5rem;
    inset-block-start: 4.3rem;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--color-text);
  transition: background 0.25s var(--ease-smooth), transform 0.2s var(--ease-smooth);
}

.icon-btn:hover {
  background: rgba(196, 30, 34, 0.1);
}

.icon-btn:active {
  transform: scale(0.94);
}

.header-dashboard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  background: var(--color-red);
  box-shadow: 0 4px 14px rgba(196, 30, 34, 0.35);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.header-dashboard-btn:hover {
  filter: brightness(1.06);
  color: #fff;
}

.header-dashboard-btn:active {
  transform: scale(0.97);
}

.header-dashboard-btn[hidden],
.icon-btn[hidden] {
  display: none !important;
}

/* زر الهامبرغر — انتقالات */
.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.65rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.nav-toggle:hover {
  background: rgba(196, 30, 34, 0.08);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 2px;
}

.nav-toggle__bar {
  position: absolute;
  left: 50%;
  width: 1.35rem;
  height: 2px;
  margin-left: -0.675rem;
  background: var(--color-text);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.42s var(--ease-out-back),
    opacity 0.28s var(--ease-smooth),
    top 0.38s var(--ease-out-back),
    background 0.25s ease;
}

.nav-toggle__bar:nth-child(1) {
  top: calc(50% - 7px);
}

.nav-toggle__bar:nth-child(2) {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle__bar:nth-child(3) {
  top: calc(50% + 7px);
}

.nav-toggle.is-active {
  background: rgba(196, 30, 34, 0.12);
  box-shadow: 0 0 0 1px rgba(196, 30, 34, 0.15);
}

.nav-toggle.is-active .nav-toggle__bar {
  background: var(--color-red);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  top: 50%;
  margin-top: -1px;
  transform: rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  top: 50%;
  margin-top: -1px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  padding-block: 2rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-red);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 48px), 0 100%);
}

@media (min-width: 768px) {
  .hero-bg {
    clip-path: ellipse(130% 85% at 50% 0%);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-block: 2rem 3rem;
  }
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.hero-sub {
  margin: 0;
  font-size: 1rem;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.94);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* PNG بخلفية شفافة — ظل ناعم يتلاءم مع الخلفية الحمراء */
.hero-visual .hero-img {
  max-height: min(460px, 62vw);
  width: auto;
  max-width: min(100%, 380px);
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
}

/* من نحن */
.about-section {
  margin-top: 0.7rem;
  padding-block: 0 1.6rem;
}

.about-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 1rem;
  box-shadow: 0 10px 26px rgba(26, 26, 26, 0.08);
  padding: 1rem 1.1rem;
}

.about-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--color-red);
}

.about-card__text {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.9;
}

/* Categories — كروت أنيقة: لوحة صورة + شريط عنوان */
.category-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.35rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  box-shadow:
    0 4px 6px rgba(26, 26, 26, 0.04),
    0 16px 36px rgba(26, 26, 26, 0.09);
  border: 1px solid rgba(26, 26, 26, 0.06);
  transition:
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth),
    border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 12px rgba(26, 26, 26, 0.06),
    0 28px 48px rgba(26, 26, 26, 0.12);
  border-color: rgba(196, 30, 34, 0.18);
}

.category-card:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}

.category-card__plate {
  position: relative;
  padding: 1.1rem 1.1rem 0.85rem;
  background: radial-gradient(120% 100% at 50% 0%, #fff 0%, #f4f0eb 72%, #ebe4dc 100%);
}

.category-card__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

/* إطار صورة مستطيل بزوايا دائرية */
.category-card__img-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(165deg, #faf8f5 0%, #e8e0d6 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 24px rgba(42, 36, 32, 0.1);
}

.category-card__img-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* صورة PNG شفافة — تبقى ضمن المستطيل بدون قصّ قاسٍ */
.category-cards > .category-card:nth-child(1) .category-card__img-frame img {
  object-fit: contain;
  padding: 0.65rem;
  box-sizing: border-box;
}

.category-card__band {
  padding: 1rem 1rem 1.15rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.category-card--accent-red .category-card__band {
  background: linear-gradient(180deg, #c92328 0%, #a61a1f 100%);
  color: #fff;
}

.category-card--accent-yellow .category-card__band {
  background: linear-gradient(180deg, #ffd633 0%, #ffcc00 55%, #f5b800 100%);
  color: var(--color-text);
}

.category-card__label {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.category-card__hint {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.88;
}

.category-card--accent-yellow .category-card__hint {
  color: rgba(26, 26, 26, 0.65);
}

.category-card--accent-red .category-card__hint {
  color: rgba(255, 255, 255, 0.85);
}

/* Products — كروت احترافية (رئيسية + صفحات تستخدم نفس الأسماء) */
.menu-category-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .menu-category-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.menu-category-tile {
  position: relative;
  display: block;
  min-height: 150px;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 12px 30px rgba(26, 26, 26, 0.12);
  isolation: isolate;
}

.menu-category-tile__image {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform 0.35s var(--ease-smooth);
}

.menu-category-tile__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.62) 100%);
}

.menu-category-tile__title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  margin: 0;
  padding: 0.8rem;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.menu-category-tile:hover .menu-category-tile__image {
  transform: scale(1.05);
}

.home-empty-state {
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 0.9rem;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  color: var(--color-muted);
  font-weight: 800;
  text-align: center;
}

.menu-category-tile:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .menu-category-tile {
    min-height: 185px;
  }

  .menu-category-tile__image {
    min-height: 185px;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card,
a.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.07);
  box-shadow:
    0 2px 4px rgba(26, 26, 26, 0.04),
    0 14px 32px rgba(26, 26, 26, 0.08);
  transition: transform 0.28s var(--ease-smooth), box-shadow 0.28s ease, border-color 0.25s ease;
}

a.product-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card:hover,
a.product-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 8px 16px rgba(26, 26, 26, 0.06),
    0 22px 44px rgba(26, 26, 26, 0.12);
  border-color: rgba(196, 30, 34, 0.16);
}

a.product-card:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}

.product-card__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #faf8f5 0%, #ebe4dc 100%);
  overflow: hidden;
}

.product-card__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s var(--ease-smooth);
}

.product-card:hover .product-card__photo,
a.product-card:hover .product-card__photo {
  transform: scale(1.04);
}

/* صور PNG شفافة في كروت المنتجات */
.product-card:has(.product-card__photo[src*="chicken"]) .product-card__photo {
  object-fit: contain;
  padding: 0.55rem;
  box-sizing: border-box;
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.55rem;
  border-radius: 0.45rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card__badge--hot {
  background: var(--color-red);
}

.product-card__badge--sale {
  background: var(--color-yellow);
  color: var(--color-text);
}

.product-card__content {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.product-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-text);
}

.product-card__desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(26, 26, 26, 0.07);
}

.product-card__price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-red);
  letter-spacing: -0.02em;
}

/* Best sellers slider */
.best-sellers {
  padding-top: 2.8rem;
}

.best-sellers__head {
  margin-bottom: 1rem;
  text-align: center;
}

.best-sellers__title {
  margin: 0;
  color: var(--color-red);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.best-sellers__subtitle {
  margin: 0.3rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.best-sellers-slider {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 14px 34px rgba(26, 26, 26, 0.12);
}

.best-sellers-slider__track {
  position: relative;
  aspect-ratio: 16 / 8.6;
  min-height: 220px;
}

.best-sellers-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease;
}

.best-sellers-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.best-sellers-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.best-sellers-empty {
  margin: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(196, 30, 34, 0.9), rgba(158, 24, 28, 0.9));
}

.best-sellers-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03) 10%, rgba(0, 0, 0, 0.27) 100%);
  pointer-events: none;
}

.best-sellers-slider__dots {
  position: absolute;
  inset-inline: 0;
  bottom: 0.85rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.best-sellers-slider__dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.best-sellers-slider__dot.is-active {
  background: #fff;
  transform: scale(1.22);
}

@media (max-width: 640px) {
  .best-sellers-slider__track {
    min-height: 200px;
    aspect-ratio: 4 / 3;
  }
}

/* Footer — بلوك لوني واضح عن جسم الصفحة */
.site-footer {
  margin-top: 2.5rem;
  padding: 0;
  border-top: 4px solid var(--color-red);
  background: #e3dbd2;
  color: #2a2420;
  box-shadow: 0 -10px 36px rgba(42, 36, 32, 0.08);
}

.site-footer .muted,
.site-footer .footer-tagline {
  color: #5c534c;
}

.site-footer .footer-nav__link {
  color: #2a2420;
}

.site-footer .logo-wordmark {
  color: #2a2420;
}

.footer-top {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 1.5rem;
  align-items: start;
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1.4fr auto auto;
    align-items: center;
    gap: 2rem;
  }
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  margin: 0;
  max-width: 26ch;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .footer-nav {
    align-items: flex-end;
  }
}

.footer-nav__link {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text);
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-nav__link:hover {
  opacity: 1;
  color: var(--color-red);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .footer-social {
    justify-content: flex-end;
  }
}

.footer-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: #fff;
  color: var(--color-red);
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.footer-social__btn:hover {
  background: var(--color-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 30, 34, 0.35);
}

.footer-social__btn:active {
  transform: translateY(0);
}

.footer-social__icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.footer-bottom {
  padding: 1rem 0 1.75rem;
  border-top: 1px solid rgba(42, 36, 32, 0.12);
  text-align: center;
  background: rgba(0, 0, 0, 0.04);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: #4a433e;
}

/* نافذة تسجيل الدخول */
.login-dialog {
  margin: auto;
  padding: 0;
  border: none;
  max-width: calc(100vw - 1.5rem);
  width: min(400px, 100%);
  background: transparent;
  color: var(--color-text);
}

.login-dialog::backdrop {
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(3px);
}

.login-dialog__surface {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(26, 26, 26, 0.05),
    0 24px 48px rgba(26, 26, 26, 0.18);
  border: 1px solid rgba(26, 26, 26, 0.08);
}

.login-dialog__head {
  padding: 1.35rem 1.25rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, #faf7f4 0%, #f9f4f0 100%);
  border-bottom: 3px solid var(--color-red);
}

.login-dialog__logo {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  margin-bottom: 0.65rem;
  display: inline-block;
}

.login-dialog__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
}

.login-dialog__subtitle {
  margin: 0;
  font-size: 0.88rem;
}

.login-dialog__close {
  position: absolute;
  top: 0.65rem;
  inset-inline-end: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.login-dialog__close:hover {
  background: rgba(196, 30, 34, 0.12);
  color: var(--color-red);
}

.login-dialog__form {
  padding: 1.35rem 1.35rem 1.5rem;
  display: grid;
  gap: 1rem;
}

.login-dialog__feedback {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  color: #7f1d1d;
  background: rgba(196, 30, 34, 0.09);
  border: 1px solid rgba(196, 30, 34, 0.28);
}

.login-dialog__feedback[hidden] {
  display: none !important;
}

.login-dialog__feedback.login-dialog__feedback--success {
  color: #14532d;
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
}

.login-dialog__field {
  display: grid;
  gap: 0.4rem;
}

.login-dialog__label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text);
}

.login-dialog__input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: 0.65rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-dialog__input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(196, 30, 34, 0.12);
}

.login-dialog__submit {
  margin-top: 0.25rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 30, 34, 0.35);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.login-dialog__submit:hover {
  filter: brightness(1.05);
}

.login-dialog__submit:active {
  transform: scale(0.98);
}

.login-dialog__submit.is-loading {
  cursor: wait;
  opacity: 0.92;
  pointer-events: none;
}

.login-dialog__submit.is-loading:hover {
  filter: none;
}

.login-dialog__submit-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-dialog__spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.65s linear infinite;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}

/* قائمة الجوال */
@media (max-width: 899px) {
  .main-nav {
    display: none !important;
  }

  .header-inner {
    width: 100%;
    max-width: 100%;
    min-height: 4rem;
    gap: 0.45rem;
    padding-inline: 0.65rem;
    overflow: visible;
  }

  .brand-logo {
    min-width: 0;
  }

  .logo-image {
    width: 2.35rem;
    height: 2.35rem;
  }

  .logo-wordmark {
    max-width: 7.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
  }

  .header-actions {
    flex: 0 1 auto;
    min-width: 0;
    margin-inline-start: 0;
    gap: 0.28rem;
  }

  .icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
  }

  .header-dashboard-btn {
    min-height: 2.25rem;
    padding-inline: 0.75rem;
    font-size: 0.76rem;
    flex: 0 1 auto;
    max-width: 7rem;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .logo-wordmark {
    max-width: 6.35rem;
  }

  .header-dashboard-btn {
    padding-inline: 0.62rem;
    font-size: 0.72rem;
    max-width: 6.25rem;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none !important;
  }
}

/* تنقل سفلي مثل التطبيق */
.app-bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.45rem 0.7rem calc(0.45rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 -8px 24px rgba(26, 26, 26, 0.12);
  backdrop-filter: blur(6px);
}

.app-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 52px;
  border-radius: 0.8rem;
  color: #5f5f5f;
  font-size: 0.68rem;
  font-weight: 800;
}

.app-bottom-nav__item svg {
  width: 1.22rem;
  height: 1.22rem;
  fill: currentColor;
}

.app-bottom-nav__item.is-active,
.app-bottom-nav__item:hover {
  color: var(--color-red);
  background: rgba(196, 30, 34, 0.08);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .app-bottom-nav {
    display: none;
  }
}
