@charset "UTF-8";

:root {
  color-scheme: light;
  --cream: #f7f3eb;
  --paper: #fffdf8;
  --sand: #eee5d6;
  --sand-deep: #dfceb7;
  --caramel: #c28b54;
  --brown: #694732;
  --brown-deep: #442e22;
  --brown-soft: #92745d;
  --ink: #33291f;
  --muted: #81786d;
  --line: #e9e0d4;
  --green: #607257;
  --welcome-start: #eadcc8;
  --welcome-mid: #f0e6d8;
  --welcome-end: #e7d6bf;
  font-family: "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(rgb(105 71 50 / 4%) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; }

.page-shell {
  width: min(100% - 36px, 1040px);
  margin-inline: auto;
  padding-bottom: 48px;
}

.masthead { padding-top: 20px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brown-deep); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--sand-deep);
  border-radius: 14px;
  background: var(--paper);
}
.brand-mark svg { width: 30px; fill: none; stroke: var(--brown); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .brand-logo { width: 30px; height: 30px; object-fit: contain; }
.brand-mark .brand-logo[hidden] { display: none; }
.brand-name { direction: ltr; font-size: 17px; font-weight: 800; letter-spacing: 0; }
.brand-name #brand-name { color: var(--brown-deep); font-weight: 800; }
.brand-name span { color: var(--brown-soft); font-weight: 500; }
.open-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.open-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(96 114 87 / 12%); }

.welcome {
  position: relative;
  display: flex;
  min-height: 205px;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin-top: 22px;
  padding: 28px 34px;
  border: 1px solid var(--sand-deep);
  border-radius: 8px;
  background: linear-gradient(108deg, var(--welcome-start) 0%, var(--welcome-mid) 52%, var(--welcome-end) 100%);
}
.welcome::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 24px, rgb(255 255 255 / 14%) 24px 25px);
  content: "";
  pointer-events: none;
}
.welcome-copy { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 6px; color: var(--brown-soft); font-size: 12px; font-weight: 700; }
.welcome h1 { margin: 0; color: var(--brown-deep); font-size: 28px; font-weight: 800; line-height: 1.6; }
.welcome h1 .welcome-icon { display: inline-block; color: var(--brown); font-size: 22px; }
.welcome-line { margin: 5px 0 0; color: #655342; font-size: 15px; }
.bean-art { position: absolute; inset-inline-end: 6%; top: 50%; width: 128px; transform: translateY(-50%) rotate(-6deg); opacity: .58; }
.bean-art svg { display: block; width: 100%; fill: none; stroke: var(--brown); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.menu-section { margin-top: 36px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.section-heading .eyebrow { margin-bottom: 1px; }
.section-heading h2 { margin: 0; color: var(--brown-deep); font-size: 22px; font-weight: 800; }
.menu-count { padding-bottom: 3px; color: var(--muted); font-size: 13px; }
.category-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.category-tab {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--brown-soft);
  background: rgb(255 253 248 / 75%);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.category-tab:hover { border-color: var(--sand-deep); }
.category-tab.is-active { border-color: var(--brown); color: var(--paper); background: var(--brown); }
.tab-icon { font-size: 17px; line-height: 1; }
.cold-icon { font-size: 16px; }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 159px;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 17px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  animation: card-enter .32s both;
  animation-delay: min(calc(var(--card-order) * 20ms), 180ms);
}
.product-card::before { position: absolute; top: 0; inset-inline-start: 0; width: 3px; height: 38px; background: var(--caramel); content: ""; }
.product-motif { position: absolute; top: 10px; inset-inline-end: 14px; color: var(--motif); font-size: 19px; line-height: 1; }
.product-content { display: flex; width: 100%; min-width: 0; flex: 1; align-items: stretch; gap: 10px; }
.product-image { width: 68px; height: 68px; flex: 0 0 auto; align-self: center; border: 1px solid var(--line); border-radius: 5px; object-fit: cover; }
.product-details { display: flex; width: auto; min-width: 0; flex: 1 1 0; align-self: stretch; flex-direction: column; padding-inline-end: 17px; }
.product-name { min-height: 26px; margin: 0; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.7; overflow-wrap: anywhere; }
.product-price { margin: auto 0 0; padding-top: 4px; color: var(--brown-soft); font-size: 13px; font-weight: 600; }

.page-footer { display: flex; flex-direction: column; align-items: center; gap: 11px; margin-top: 37px; color: var(--muted); font-size: 12px; text-align: center; }
.footer-slogan { display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-bean { color: var(--caramel); font-size: 14px; }
.footer-info { display: flex; flex-direction: column; gap: 5px; }
.footer-info[hidden], .contact-links[hidden] { display: none; }
.footer-info p { margin: 0; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.contact-links a { color: var(--brown-soft); text-decoration: none; }
.contact-links a:hover { color: var(--brown); text-decoration: underline; }
.contact-placeholder { color: var(--muted); }

@keyframes card-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 760px) {
  .page-shell { width: min(100% - 64px, 1040px); padding-bottom: 52px; }
  .masthead { padding-top: 25px; }
  .welcome { min-height: 222px; margin-top: 25px; padding-inline: 46px; }
  .welcome h1 { font-size: 32px; }
  .bean-art { inset-inline-end: 12%; width: 145px; }
  .menu-section { margin-top: 43px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .product-card { min-height: 165px; padding-inline: 19px; }
}

@media (max-width: 1020px) {
  .product-content { flex-direction: column; gap: 8px; }
  .product-image { width: min(100%, 96px); height: auto; aspect-ratio: 4 / 3; }
  .product-details { width: 100%; flex: 1; padding-inline-end: 0; }
  .product-name { min-height: 0; overflow-wrap: break-word; }
}

@media (max-width: 520px) {
  .page-shell { width: calc(100% - 28px); }
  .masthead { padding-top: 14px; }
  .brand-mark { width: 38px; border-radius: 12px; }
  .brand-name { font-size: 15px; }
  .open-note { gap: 6px; font-size: 11px; }
  .welcome { min-height: 180px; margin-top: 17px; padding: 23px 20px; }
  .welcome h1 { max-width: 230px; font-size: 24px; }
  .welcome-line { max-width: 245px; font-size: 13px; line-height: 1.8; }
  .bean-art { inset-inline-end: -12px; width: 102px; opacity: .42; }
  .menu-section { margin-top: 29px; }
  .section-heading h2 { font-size: 20px; }
  .category-tabs { gap: 6px; margin-bottom: 13px; }
  .category-tab { min-height: 49px; gap: 6px; padding-inline: 7px; font-size: 13px; }
  .tab-icon { font-size: 15px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .product-card { min-height: 154px; padding: 16px 11px 11px; }
  .product-motif { top: 8px; inset-inline-end: 10px; font-size: 16px; }
  .product-image { width: min(100%, 72px); }
  .product-name { font-size: 14px; line-height: 1.65; }
  .product-price { margin: auto 0 0; padding-top: 3px; font-size: 12px; }
}

@media (max-width: 350px) {
  .brand-name { font-size: 14px; }
  .open-note { font-size: 10px; }
  .product-card { padding-inline: 9px; }
  .product-name { font-size: 13px; }
  .product-content { gap: 7px; }
  .product-image { width: min(100%, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
