:root {
  --bg: #fbfaf7;
  --surface: #fff;
  --surface-2: #f3f8f5;
  --text: #1e1e1e;
  --muted: #6f716f;

  --accent: #0e5a34;
  --accent-2: #177245;
  --accent-soft: #e7f1eb;

  --line: #ece9e3;
  --shadow: 0 18px 55px rgba(45, 35, 25, 0.09);

  --radius: 28px;
  --radius-sm: 18px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #fff 0, #fbfaf7 70%);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 233, 227, 0.8);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  font-family: 'Playfair Display';
  font-size: 24px;
}
.brand b {
  display: block;
  font-family: 'Playfair Display';
  font-size: 24px;
}
.brand small {
  display: block;
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  border: 0;
  background: transparent;
  padding: 30px 12px 26px;
  color: #424242;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 13px;
  right: 25%;
  width: 50%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: 0.3s;
}
.nav-link.active {
  color: var(--accent);
  font-weight: 700;
}
.nav-link.active::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-link {
  min-height: 43px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: 0.25s;
}
.login-link:hover {
  border-color: #afd0bd;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(45, 35, 25, 0.07);
}
.icon-btn {
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.mobile-only {
  display: none;
}
.hero {
  min-height: 520px;
  padding: 56px 6vw 36px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, #eaf4ee 0, transparent 42%),
    linear-gradient(135deg, #fff, #f6faf7);
}
.hero-copy {
  max-width: 610px;
}
.hero-kicker {
  display: inline-flex;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(48px, 6vw, 86px);
  line-height: 1.08;
  margin: 16px 0;
  font-weight: 800;
  letter-spacing: -2px;
}
.hero h1 span {
  color: var(--accent);
}
.hero-copy > p:not(.hero-kicker) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(14, 90, 52, 0.25);
}
.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.hero-art {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
}
.hero-art img {
  width: min(520px, 90%);
  height: min(520px, 90%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  box-shadow: 0 40px 80px rgba(14, 90, 52, 0.18);
  position: relative;
  z-index: 2;
  border: 14px solid rgba(255, 255, 255, 0.9);
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.2px);
}
.shape-a {
  width: 470px;
  height: 470px;
  background: #dcece2;
  left: 5%;
  top: 0;
}

.shape-b {
  width: 180px;
  height: 180px;
  background: #bfd9c9;
  right: 0;
  bottom: 8%;
}
.floating-note {
  position: absolute;
  z-index: 3;
  left: 8%;
  bottom: 12%;
  background: #fff;
  padding: 15px 18px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.floating-note b {
  color: var(--accent);
}
.floating-note span {
  font-size: 12px;
  color: var(--muted);
}
.menu-shell {
  width: min(1320px, 94vw);
  margin: 44px auto 80px;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
}
.category-rail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  height: max-content;
  position: sticky;
  top: 108px;
  box-shadow: 0 12px 35px rgba(45, 35, 25, 0.05);
}
.category {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 16px;
  border-radius: 15px;
  color: #4b4b4b;
  text-align: right;
}
.category span {
  width: 28px;
  text-align: center;
}
.category.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.menu-content {
  min-width: 0;
}
.menu-toolbar {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.search-box {
  flex: 1;
  height: 54px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}
.menu-toolbar select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 0 18px;
  color: #555;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: 0.35s;
  box-shadow: 0 9px 28px rgba(45, 35, 25, 0.045);
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}
.product-image {
  position: relative;
  aspect-ratio: 1.2/1;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.product-card:hover img {
  transform: scale(1.05);
}
.badge {
  position: absolute;
  top: 13px;
  right: 13px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
}
.heart {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}
.product-body {
  padding: 17px;
}
.product-body h3 {
  margin: 0 0 7px;
  font-size: 19px;
}
.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  min-height: 44px;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.price {
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}
.view-btn {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
}
.empty-state {
  text-align: center;
  padding: 70px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 22px;
}
.empty-state div {
  font-size: 42px;
}
.empty-state h3 {
  margin-bottom: 4px;
}
.empty-state p {
  color: var(--muted);
}
.mobile-cats {
  display: none;
  margin-bottom: 16px;
}
.chip {
  width: auto !important;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 17px;
}
.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.mobile-menu {
  position: fixed;
  z-index: 50;
  top: 86px;
  right: 16px;
  left: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.mobile-filter {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 13px;
  text-align: right;
  border-radius: 12px;
}
.mobile-filter:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
dialog {
  border: 0;
  border-radius: 26px;
  padding: 0;
  width: min(560px, 92vw);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
dialog::backdrop {
  background: rgba(30, 24, 20, 0.35);
  backdrop-filter: blur(6px);
}
dialog img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}
.dialog-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 26px;
}
.dialog-body {
  padding: 24px;
}
.dialog-body > p:first-child {
  color: var(--accent);
  font-weight: 700;
}
.dialog-body h2 {
  font-size: 30px;
  margin: 4px 0 10px;
}
.dialog-body p {
  color: var(--muted);
  line-height: 1.8;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.dialog-footer strong {
  font-size: 24px;
  color: var(--accent);
}
.dialog-footer span {
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }
  .mobile-only {
    display: grid;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
    margin: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-art {
    min-height: 360px;
  }
  .menu-shell {
    grid-template-columns: 1fr;
  }
  .category-rail {
    display: none;
  }
  .mobile-cats {
    display: block;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .login-link {
    width: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
  .login-link span {
    display: none;
  }
  .topbar {
    height: 62px;
    padding: 0 12px;
  }
  .header-actions {
    gap: 7px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 19px;
  }
  .brand b {
    font-size: 17px;
    line-height: 1;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.4px;
    margin-top: 3px;
  }

  .hero {
    padding: 18px 16px 14px;
    min-height: auto;
    gap: 10px;
  }
  .hero-copy {
    max-width: 340px;
  }
  .hero-kicker {
    padding: 6px 10px;
    font-size: 10px;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.14;
    letter-spacing: -0.6px;
    margin: 9px 0 7px;
  }
  .hero-copy > p:not(.hero-kicker) {
    font-size: 12px;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 310px;
  }
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-top: 13px;
  }
  .hero-actions .btn {
    min-height: 40px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 12px;
  }
  .hero-art {
    min-height: 170px;
  }
  .hero-art img {
    width: 164px;
    height: 164px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border-width: 6px;
  }
  .shape-a {
    width: 176px;
    height: 176px;
    left: 20%;
    top: -2px;
  }
  .shape-b {
    width: 70px;
    height: 70px;
    right: 14%;
    bottom: 5%;
  }
  .floating-note {
    left: 6%;
    bottom: 4%;
    padding: 8px 10px;
    border-radius: 12px;
  }
  .floating-note b {
    font-size: 10px;
  }
  .floating-note span {
    font-size: 8px;
  }

  .menu-shell {
    width: calc(100% - 24px);
    margin-top: 16px;
  }
  .menu-toolbar {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
  }
  .search-box {
    height: 44px;
    border-radius: 13px;
  }
  .menu-toolbar select {
    height: 44px;
    border-radius: 13px;
  }
  .mobile-cats {
    margin-bottom: 12px;
  }
  .chip {
    padding: 8px 13px;
    font-size: 11px;
  }
  .products {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    min-height: 164px;
    border-radius: 18px;
  }
  .product-image {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: auto;
    height: 100%;
    min-height: 164px;
  }
  .product-image img {
    object-position: center;
  }
  .product-body {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 15px 14px 13px;
  }
  .product-body h3 {
    font-size: 16px;
    line-height: 1.45;
    margin: 0 0 6px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .product-body p {
    min-height: auto;
    font-size: 11px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-meta {
    margin-top: auto;
    padding-top: 10px;
    gap: 8px;
  }
  .price {
    font-size: 15px;
    white-space: nowrap;
  }
  .view-btn {
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .badge {
    top: 9px;
    right: 9px;
    font-size: 8px;
    padding: 5px 8px;
  }
  .heart {
    display: none;
  }
  .mobile-menu {
    top: 62px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Category icons on the mobile menu experience */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.chip i {
  font-size: 0.95em;
  color: currentColor;
}
.mobile-filter {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-filter i {
  width: 22px;
  text-align: center;
  color: var(--accent);
}
.mobile-filter.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* Production integration */
.brand img {
  display: block;
  width: 150px;
  height: 54px;
  object-fit: contain;
}
.desktop-nav .nav-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu a {
  text-decoration: none;
}
.product-card[hidden] {
  display: none !important;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.site-footer {
  margin-top: 72px;
  padding: 44px clamp(22px, 6vw, 90px) 24px;
  background: #121b16;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 36px;
  position: relative;
  z-index: 2;
}
.footer-brand img {
  width: 180px;
  height: 82px;
  object-fit: contain;
  filter: invert(1);
}
.footer-brand p,
.footer-copy {
  color: #b8c4bd;
}
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links strong,
.footer-contact strong {
  color: #d8b36a;
  margin-bottom: 4px;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  color: #d8b36a;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ffffff30;
  display: grid;
  place-items: center;
}
.footer-copy {
  grid-column: 1/-1;
  border-top: 1px solid #ffffff1a;
  padding-top: 18px;
  margin: 0;
  text-align: center;
}
.dialog-option {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #ecebe6;
}
.branches-page {
  min-height: 70vh;
}
.branches-hero {
  text-align: center;
  padding: 90px 20px 46px;
  background: linear-gradient(180deg, #f6f4ee, #fff);
}
.branches-hero p {
  color: #0e5a34;
  font-weight: 800;
  margin: 0;
}
.branches-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  margin: 8px 0;
}
.branches-hero span {
  color: #73756f;
}
.branches-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.branch-card {
  background: #fff;
  border: 1px solid #e8e6df;
  border-radius: 22px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  box-shadow: 0 14px 38px #1b2b2210;
}
.branch-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #e7f1eb;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 21px;
}
.branch-card span {
  font-size: 12px;
  color: #9a7b43;
  font-weight: 800;
}
.branch-card h2 {
  margin: 2px 0 8px;
}
.branch-card p {
  margin: 0;
  color: #656862;
  line-height: 1.8;
}
.branch-card small {
  display: block;
  margin-top: 10px;
  color: #777;
}
.branch-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
}
.branch-actions a {
  flex: 1;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #d8ddd9;
  text-align: center;
  color: #183126;
  text-decoration: none;
  font-weight: 700;
}
.branch-actions a.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.branch-empty {
  grid-column: 1/-1;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 720px) {
  .brand img {
    width: 112px;
    height: 44px;
  }
  .site-footer {
    grid-template-columns: 1fr;
    padding: 38px 22px 22px;
  }
  .footer-copy {
    grid-column: 1;
  }
  .branches-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .branches-hero {
    padding-top: 68px;
  }
}

/* Independent desktop scrolling for the category rail */
.category-rail {
  max-height: calc(100vh - 132px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #8db7a0 transparent;
}
.category-rail::-webkit-scrollbar {
  width: 6px;
}
.category-rail::-webkit-scrollbar-track {
  background: transparent;
}
.category-rail::-webkit-scrollbar-thumb {
  background: #8db7a0;
  border-radius: 999px;
}

/* Modal controls and understated developer credit */
.dialog-close {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  font-family: Arial, sans-serif;
  font-size: 0;
}
.dialog-close::before {
  content: '\00d7';
  display: block;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-1px);
}
.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.developer-credit {
  font-size: 10px !important;
  font-weight: 500;
  color: #8da097 !important;
  opacity: 0.72;
  letter-spacing: 0.15px;
  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}
.developer-credit:hover {
  color: #d8b36a !important;
  opacity: 1;
}

/* Grouped menu sections and scroll-synced category navigation */
.product-sections {
  display: grid;
  gap: 34px;
}
.product-section {
  scroll-margin-top: 170px;
}
.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.category-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-heading span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.category-heading h2 {
  margin: 0;
  font-size: 23px;
  color: #2f2924;
}

@media (max-width: 1000px) {
  .mobile-cats {
    position: sticky;
    top: 72px;
    z-index: 30;
    margin-inline: -12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.96);
    border-block: 1px solid var(--line);
    box-shadow: 0 10px 24px rgba(45, 35, 25, 0.07);
    backdrop-filter: blur(12px);
  }
}

@media (max-width: 640px) {
  .mobile-cats {
    top: 62px;
    margin-bottom: 18px;
  }
  .product-sections {
    gap: 28px;
  }
  .product-section {
    scroll-margin-top: 132px;
  }
  .category-heading {
    margin-bottom: 10px;
  }
  .category-heading span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .category-heading h2 {
    font-size: 19px;
  }
}
