:root {
  --bg: #f7f1e7;
  --bg-soft: #efe5d5;
  --surface: rgba(255, 250, 242, 0.84);
  --surface-strong: #fffaf2;
  --surface-dark: #1f1b17;
  --text: #241b14;
  --text-soft: #68594d;
  --line: rgba(74, 53, 35, 0.14);
  --brand: #82572f;
  --brand-strong: #5d3b1d;
  --accent: #a67c33;
  --olive: #566247;
  --shadow: 0 22px 60px rgba(55, 34, 16, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(166, 124, 51, 0.14), transparent 24%),
    radial-gradient(circle at left 20%, rgba(86, 98, 71, 0.1), transparent 22%),
    linear-gradient(180deg, #f5efe5 0%, #f8f3eb 48%, #f2e7d7 100%);
  color: var(--text);
  font-family: Tajawal, sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 72vh;
  padding: 28px;
  border-radius: calc(var(--radius-xl) + 8px);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(27, 22, 17, 0.78), rgba(35, 22, 8, 0.5) 38%, rgba(73, 49, 16, 0.2)),
    linear-gradient(180deg, rgba(19, 15, 12, 0.12), rgba(19, 15, 12, 0.72));
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -120px -90px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 210, 120, 0.42) 0%, rgba(255, 210, 120, 0.04) 66%, transparent 72%);
  filter: blur(6px);
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 24px;
  align-items: end;
  min-height: calc(72vh - 56px);
}

.hero-copy {
  color: #fff7ea;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f3c97a;
}

.hero h1,
.toolbar-head h2,
.section-head h2,
.stats-card strong,
.featured-card h3,
.category-title,
.product-card h3,
.modal-body h3 {
  font-family: Changa, sans-serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.05;
}

.hero p {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  color: rgba(255, 247, 234, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.ghost-link,
.clear-button,
.category-chip,
.view-all-button {
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.primary-action,
.secondary-action,
.view-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-action {
  color: #20170f;
  background: linear-gradient(135deg, #efc97d, #dca347);
}

.secondary-action {
  border: 1px solid rgba(255, 241, 216, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff7ea;
  backdrop-filter: blur(16px);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-link:hover,
.clear-button:hover,
.category-chip:hover,
.view-all-button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: #fff7ea;
  border: 1px solid rgba(255, 245, 227, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(18px);
}

.panel-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.panel-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.panel-line span {
  color: rgba(255, 247, 234, 0.68);
}

.panel-line strong {
  font-size: 1rem;
}

.page-main {
  margin-top: 22px;
}

.toolbar-wrap {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-bottom: 24px;
}

.toolbar-card {
  padding: 18px;
  border: 1px solid rgba(86, 98, 71, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 249, 240, 0.82);
  box-shadow: 0 12px 36px rgba(67, 45, 23, 0.08);
  backdrop-filter: blur(22px);
}

.toolbar-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.toolbar-head h2,
.section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.2;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--brand-strong);
  font-weight: 700;
  white-space: nowrap;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 18px;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-soft);
}

.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(74, 53, 35, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  outline: 0;
}

.search-box input:focus {
  border-color: rgba(130, 87, 47, 0.42);
  box-shadow: 0 0 0 4px rgba(166, 124, 51, 0.12);
}

.clear-button {
  align-self: end;
  min-width: 94px;
  min-height: 52px;
  border: 1px solid rgba(74, 53, 35, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-strong);
  font-weight: 700;
  cursor: pointer;
}

.chips-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  overflow: visible;
  padding-bottom: 0;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(74, 53, 35, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
}

.category-chip.active {
  border-color: rgba(130, 87, 47, 0.3);
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff8ef;
}

.offers-section {
  margin-top: 8px;
}

.offers-highlight {
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(130, 87, 47, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 213, 138, 0.28), transparent 36%),
    linear-gradient(180deg, rgba(255, 247, 232, 0.94), rgba(245, 231, 208, 0.82));
  box-shadow: 0 16px 38px rgba(67, 45, 23, 0.08);
}

.offers-head {
  margin-bottom: 18px;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.offer-card {
  display: grid;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(74, 53, 35, 0.1);
  background: rgba(255, 251, 245, 0.9);
  box-shadow: 0 12px 30px rgba(60, 39, 19, 0.08);
}

.offer-media {
  position: relative;
}

.offer-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.offer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(32, 23, 15, 0.82);
  color: #fff7ea;
  font-size: 0.82rem;
  font-weight: 700;
}

.offer-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.offer-body h3 {
  margin: 0;
  font-family: Changa, sans-serif;
  font-size: 1.2rem;
}

.offer-body p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.offer-products-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 94px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.offer-product-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--brand-strong);
  background: rgba(130, 87, 47, 0.11);
  border: 1px solid rgba(130, 87, 47, 0.18);
}

.offer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.featured-section,
.menu-sections {
  margin-top: 26px;
}

.featured-shell {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(86, 98, 71, 0.08), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(86, 98, 71, 0.1);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.featured-card,
.category-section,
.product-card,
.modal-panel {
  border: 1px solid rgba(74, 53, 35, 0.1);
  background: rgba(255, 251, 245, 0.88);
  box-shadow: 0 16px 40px rgba(60, 39, 19, 0.08);
}

.featured-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.featured-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.featured-card-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.featured-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.featured-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.price-pill {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(130, 87, 47, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
}

.results-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  margin-bottom: 18px;
  background: rgba(255, 251, 245, 0.74);
  border: 1px solid rgba(74, 53, 35, 0.08);
}

.results-banner p {
  margin: 0;
  color: var(--text-soft);
}

.menu-sections-grid {
  display: grid;
  gap: 22px;
}

.category-section {
  padding: 20px;
  border-radius: var(--radius-xl);
}

.category-top {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 230px;
  background: linear-gradient(135deg, rgba(130, 87, 47, 0.24), rgba(86, 98, 71, 0.16));
}

.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-cover.no-image {
  display: grid;
  place-items: end start;
  padding: 18px;
}

.category-cover.no-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 233, 181, 0.48), transparent 30%),
    linear-gradient(140deg, rgba(130, 87, 47, 0.86), rgba(86, 98, 71, 0.84));
}

.fallback-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: rgba(255, 247, 234, 0.18);
  color: #fff6ea;
  font-size: 2rem;
  backdrop-filter: blur(10px);
}

.category-meta {
  display: grid;
  align-content: center;
  gap: 12px;
}

.category-title {
  margin: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.5rem);
  line-height: 1.18;
}

.category-subtitle {
  margin: 0;
  color: var(--text-soft);
}

.category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(130, 87, 47, 0.09);
  color: var(--brand-strong);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
}

.product-card button {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: right;
  cursor: pointer;
}

.product-card button:focus-visible {
  outline: 3px solid rgba(130, 87, 47, 0.26);
  outline-offset: -3px;
}

.product-card-media {
  position: relative;
}

.product-card-media img {
  aspect-ratio: 16 / 11;
  width: 100%;
  object-fit: cover;
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.4;
}

.product-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-name-en,
.modal-subtitle {
  font-size: 0.92rem;
  color: #8a7869;
}

.empty-state {
  padding: 34px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-soft);
  background: rgba(255, 251, 245, 0.76);
  border: 1px dashed rgba(74, 53, 35, 0.18);
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 10, 0.6);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 24px));
  margin: min(5vh, 40px) auto;
  border-radius: 30px;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(36, 27, 20, 0.72);
  color: #fff9f0;
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-media-wrap img {
  width: 100%;
  max-height: 46vh;
  object-fit: cover;
}

.modal-body {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.modal-category {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
}

.modal-body h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.modal-description {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.modal-price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.modal-price-row strong {
  color: var(--brand-strong);
  font-size: 1.2rem;
}

@media (max-width: 1180px) {
  .hero-inner,
  .category-top,
  .featured-grid,
  .products-grid,
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    align-items: stretch;
  }

  .category-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-shell {
    padding: 12px 12px 40px;
  }

  .hero {
    min-height: auto;
    padding: 18px;
  }

  .hero-inner,
  .featured-grid,
  .products-grid,
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-wrap {
    position: static;
  }

  .toolbar-head,
  .section-head,
  .results-banner,
  .product-meta-row,
  .modal-price-row {
    align-items: start;
    flex-direction: column;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .clear-button {
    width: 100%;
  }

  .product-card button {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 10px 10px 30px;
  }

  .hero {
    border-radius: 20px;
    padding: 14px;
  }

  .hero-inner {
    min-height: auto;
    gap: 14px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    line-height: 1.7;
    font-size: 0.98rem;
  }

  .hero-panel,
  .toolbar-card,
  .offers-highlight,
  .featured-shell,
  .category-section {
    border-radius: 18px;
    padding: 14px;
  }

  .section-head h2,
  .toolbar-head h2,
  .category-title {
    font-size: 1.35rem;
  }

  .category-cover {
    min-height: 180px;
    border-radius: 18px;
  }

  .category-chip,
  .clear-button,
  .ghost-link,
  .view-all-button,
  .primary-action,
  .secondary-action {
    min-height: 46px;
  }

  .offers-grid {
    gap: 12px;
  }

  .offer-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .offer-meta .price-pill,
  .offer-meta .ghost-link {
    justify-content: center;
    width: 100%;
  }

  .results-banner {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .product-card,
  .offer-card,
  .featured-card {
    border-radius: 18px;
  }

  .modal-panel {
    width: calc(100% - 12px);
    margin: 10px auto;
    border-radius: 18px;
    max-height: calc(100vh - 20px);
    overflow: auto;
  }

  .modal-close {
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
  }

  .modal-body {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-head h2,
  .toolbar-head h2,
  .category-title,
  .modal-body h3 {
    font-size: 1.2rem;
  }

  .product-card h3,
  .featured-card h3,
  .offer-body h3 {
    font-size: 1.05rem;
  }

  .search-box input,
  .clear-button {
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  .site-shell {
    padding: 8px 8px calc(26px + env(safe-area-inset-bottom));
  }

  .hero {
    padding: 12px;
    border-radius: 16px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: 100%;
  }

  .toolbar-card,
  .offers-highlight,
  .featured-shell,
  .category-section {
    padding: 12px;
    border-radius: 16px;
  }

  .chips-strip {
    gap: 8px;
  }

  .category-chip {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .offer-body,
  .featured-card-body,
  .product-card-body {
    padding: 12px;
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.58rem;
    line-height: 1.12;
  }

  .hero p,
  .section-head p,
  .product-card p,
  .offer-body p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .section-head h2,
  .toolbar-head h2,
  .category-title,
  .modal-body h3 {
    font-size: 1.08rem;
  }

  .category-cover {
    min-height: 160px;
  }

  .price-pill,
  .ghost-link,
  .clear-button,
  .view-all-button {
    min-height: 42px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}