:root {
  --bg: #f7f4ef;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --text: #2f2214;
  --muted: #7d6c5b;
  --accent: #b86d1d;
  --accent-dark: #7f4a12;
  --accent-soft: #f2e7d7;
  --green: #6d7d2d;
  --line: rgba(124, 98, 69, 0.08);
  --shadow: 0 18px 42px rgba(93, 69, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(233, 214, 184, 0.3), transparent 28%),
    linear-gradient(180deg, #fcfaf7 0%, #f6f2ec 100%);
}

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

.hero,
.catalog {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: 28px 0 32px;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  background:
    linear-gradient(rgba(75, 47, 18, 0.18), rgba(75, 47, 18, 0.3)),
    url("./assets/front.png") center center / cover no-repeat;
}

.hero__overlay {
  position: relative;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 232, 0.9) 0%, rgba(255, 248, 232, 0.72) 32%, rgba(255, 248, 232, 0.16) 68%, rgba(255, 248, 232, 0.04) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  padding: 40px;
  margin-inline-start: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 249, 239, 0.92), rgba(255, 255, 255, 0.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise 0.8s ease-out both;
}

.hero__eyebrow,
.section-heading__eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  max-width: 8ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--accent));
  border-color: transparent;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.5);
}

.catalog {
  padding: 52px 0 24px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  text-align: right;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.catalog__grid {
  display: grid;
  gap: 20px;
}

.catalog__search {
  margin-bottom: 18px;
}

.catalog__search-input {
  width: min(100%, 460px);
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  outline: none;
  box-shadow: var(--shadow);
}

.catalog__search-input::placeholder {
  color: var(--muted);
}

.catalog__search-input:focus {
  border-color: rgba(184, 109, 29, 0.42);
}

.catalog__filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.catalog__filter {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.catalog__filter:hover {
  transform: translateY(-1px);
}

.catalog__filter.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--accent));
  border-color: transparent;
}

.info-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.catalog__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  direction: rtl;
}

.product-card {
  overflow: hidden;
  animation: rise 0.7s ease-out both;
}

.product-card:nth-child(2) { animation-delay: 70ms; }
.product-card:nth-child(3) { animation-delay: 140ms; }
.product-card:nth-child(4) { animation-delay: 210ms; }
.product-card:nth-child(5) { animation-delay: 280ms; }
.product-card:nth-child(6) { animation-delay: 350ms; }

.product-card__media {
  height: 320px;
  overflow: hidden;
  padding: 24px 24px 10px;
  cursor: pointer;
  background: #ffffff;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(140, 63, 23, 0.18);
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--accent-dark);
  font-weight: 700;
  background: #ffffff;
}

.product-card__body {
  padding: 16px 22px 22px;
  text-align: right;
  background: #ffffff;
}

.product-card__title {
  direction: rtl;
  text-align: right;
}

.product-card__meta {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 700;
  direction: ltr;
  text-align: left;
}

.product-card__submeta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: right;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 14, 8, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  max-width: min(94vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  background: #fff;
  mix-blend-mode: normal;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: auto;
    padding-top: 24px;
    background-position: 68% center;
  }

  .hero__content {
    padding: 28px;
    margin-inline-start: 0;
    border-radius: 26px;
  }
}

@media (max-width: 560px) {
  .catalog__grid {
    grid-template-columns: 1fr;
  }

  .catalog__filters {
    gap: 10px;
  }

  .catalog__search-input,
  .catalog__filter {
    width: 100%;
  }

  .hero,
  .catalog {
    width: min(100% - 20px, 1120px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}
