:root {
  color-scheme: light;
  --ink: #292219;
  --muted: #6c604d;
  --paper: #d8cfb3;
  --card: #f3ecd9;
  --line: #b8a77c;
  --gold: #cf9b36;
  --gold-dark: #825715;
  --damascus: #174c46;
  --damascus-dark: #123d38;
  --night: #0c2926;
  --green: #2f6b4f;
  --red: #9a3f37;
  --shadow: 0 18px 50px rgba(57, 40, 18, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 244, 209, .58), transparent 28rem),
    radial-gradient(circle at 92% 24%, rgba(23, 76, 70, .18), transparent 30rem),
    linear-gradient(145deg, #e2d8bb 0%, var(--paper) 48%, #bdc3a6 100%);
  background-attachment: fixed;
}

body, button, input, select { font: inherit; }
a { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(181, 122, 38, .38);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  inset-block-start: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding-block: .65rem;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  color: #f6e8c7;
  border-block-end: 1px solid rgba(210, 162, 82, .42);
  background: rgba(18, 61, 56, .97);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  padding: 2px;
  background: #fffdf7;
  box-shadow: 0 7px 20px rgba(20, 15, 10, .16);
}

.brand span { display: grid; gap: .1rem; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; }
.brand small { color: #d6b77d; }

.language-control select {
  min-height: 44px;
  padding-block: .55rem;
  padding-inline: .9rem 2.2rem;
  border: 1px solid rgba(210, 162, 82, .5);
  border-radius: 999px;
  color: #f6e8c7;
  background: #0d302c;
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: 420px;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  padding-inline: clamp(1.5rem, 5vw, 4.5rem);
  margin-block-start: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(210, 162, 82, .32);
  border-radius: 34px;
  color: #f8e9c8;
  background:
    radial-gradient(circle at 82% 20%, rgba(210, 162, 82, .18), transparent 21rem),
    linear-gradient(135deg, var(--damascus), var(--damascus-dark) 58%, var(--night));
  box-shadow: 0 24px 65px rgba(24, 57, 50, .24);
}

.hero-copy { max-width: 730px; }

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #e6bd72; }

h1, h2, h3, p { margin-block-start: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  letter-spacing: -.035em;
}

h1 {
  max-width: 700px;
  margin-block-end: 1.1rem;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
}

h2 {
  margin-block-end: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-description {
  max-width: 620px;
  margin-block-end: 1.7rem;
  color: #dfcdb2;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.primary-action,
.mobile-order-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding-inline: 1.6rem;
  border-radius: 999px;
  color: #24180c;
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(27, 23, 19, .22);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.primary-action:hover,
.mobile-order-bar a:hover {
  background: #edc982;
  transform: translateY(-2px);
}

.hero-mark {
  display: grid;
  place-items: center;
  width: min(100%, 350px);
  justify-self: center;
  padding: .7rem;
  border: 1px solid rgba(207, 155, 54, .58);
  border-radius: 32px;
  background: #f8f3e5;
  box-shadow: 0 18px 50px rgba(6, 31, 27, .28);
}

.hero-mark img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: none;
}

.catalogue { padding-block: 2rem 7rem; }

.catalogue-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-block-end: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: min(100%, 390px);
  min-height: 50px;
  padding-inline: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(241, 224, 189, .88);
  box-shadow: 0 8px 25px rgba(57, 40, 18, .05);
}

.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 122, 38, .12);
}

.search-box svg {
  width: 21px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box input::placeholder { color: #9a9188; }

.category-filters {
  display: flex;
  gap: .6rem;
  padding-block: .25rem .8rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-filter {
  flex: 0 0 auto;
  min-height: 42px;
  padding-inline: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.category-filter:hover { border-color: #cdbb9f; color: var(--ink); }
.category-filter.is-active {
  border-color: var(--damascus);
  color: #faecd0;
  background: var(--damascus);
}
.catalogue-summary { min-height: 1.5em; margin-block: .6rem 1.25rem; color: var(--muted); font-size: .92rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(235px, 100%), 1fr));
  gap: 1.25rem;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, #f7f0df, var(--card));
  box-shadow: 0 10px 30px rgba(57, 40, 18, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee4d4;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.product-card:hover .product-image-wrap img { transform: scale(1.035); }
.product-content { padding: 1rem; }

.product-category {
  margin-block-end: .38rem;
  color: var(--gold-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.product-content h3 {
  min-height: 2.7em;
  margin-block-end: .9rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.product-price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--green);
  font-size: .78rem;
  font-weight: 750;
}

.availability::before {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.availability.is-unavailable { color: var(--red); }

.catalogue-status {
  display: grid;
  justify-items: center;
  min-height: 300px;
  padding: 4rem 1rem;
  border: 1px dashed #d8c9b1;
  border-radius: 22px;
  background: rgba(241, 224, 189, .58);
  text-align: center;
}

.catalogue-status h3 { margin: .9rem 0 .45rem; }
.catalogue-status p { max-width: 480px; color: var(--muted); line-height: 1.6; }

.loading-mark {
  width: 34px;
  height: 34px;
  border: 3px solid #eadfcf;
  border-block-start-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.catalogue-status[data-state="empty"] .loading-mark,
.catalogue-status[data-state="no-results"] .loading-mark,
.catalogue-status[data-state="error"] .loading-mark { display: none; }

.retry-button {
  min-height: 42px;
  padding-inline: 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.5rem;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  color: #f4e4c4;
  border-block-start: 1px solid rgba(210, 162, 82, .38);
  background:
    radial-gradient(circle at 12% 20%, rgba(210, 162, 82, .12), transparent 22rem),
    var(--damascus-dark);
}

.site-footer strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; }
.site-footer p { margin: .35rem 0 0; color: #d8c3a3; }
.staff-link { color: #e1c387; font-size: .9rem; text-underline-offset: .25rem; }
.staff-link:hover { color: #fff0d0; }
.mobile-order-bar { display: none; }

html[dir="rtl"] body { text-align: start; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] .search-box svg { transform: scaleX(-1); }
html[dir="rtl"] h1,
html[dir="rtl"] h2 { letter-spacing: 0; }

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

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .brand img { width: 46px; height: 46px; border-radius: 12px; }
  .brand small { display: none; }
  .language-control select { max-width: 125px; min-height: 42px; }
  main { width: min(100% - 1.25rem, 1180px); }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 3.25rem 4rem; }
  .hero-mark {
    width: min(100%, 270px);
    margin-block-start: .5rem;
  }
  .catalogue { padding-block-start: 0; padding-block-end: 5.5rem; }
  .catalogue-heading { align-items: stretch; flex-direction: column; gap: 1.3rem; }
  .search-box { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .product-card { border-radius: 17px; }
  .product-content { padding: .8rem; }
  .product-content h3 { min-height: 0; font-size: .98rem; }
  .product-meta { align-items: flex-start; flex-direction: column; gap: .45rem; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-block-end: 6.5rem; }

  .mobile-order-bar {
    position: fixed;
    z-index: 30;
    inset-block-end: 0;
    inset-inline: 0;
    display: block;
    padding-block: .7rem calc(.7rem + env(safe-area-inset-bottom));
    padding-inline: max(.75rem, env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-right));
    border-block-start: 1px solid rgba(210, 162, 82, .48);
    background: rgba(18, 61, 56, .96);
    backdrop-filter: blur(16px);
  }

  .mobile-order-bar a { width: 100%; min-height: 50px; }
}

@media (max-width: 410px) {
  .brand strong { font-size: 1rem; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image-wrap { aspect-ratio: 16 / 10; }
}

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