:root {
  --bg: #f4efe8;
  --bg-deep: #ebe4d9;
  --surface: #fffdf9;
  --ink: #1c1915;
  --muted: #6f675d;
  --line: #e4dbd0;
  --accent: #8a4736;
  --accent-dark: #6e3729;
  --gold: #b08968;
  --shadow: 0 18px 50px rgba(28, 25, 21, 0.1);
  --radius: 18px;
  --header: 76px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 94%, white); }
.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: .18em;
  font-weight: 500;
  text-transform: uppercase;
}
.nav { display: flex; gap: 28px; font-size: .92rem; font-weight: 400; }
.nav a { position: relative; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--ink);
}
html[dir="rtl"] .nav a.active::after { left: 0; right: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--ink);
  position: relative;
}
.icon-btn:hover { background: var(--bg-deep); }
.lang-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .8rem;
  letter-spacing: .04em;
}
.cart-count {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  background: var(--accent);
  color: white;
  font-size: .65rem;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: none;
  place-items: center;
  padding: 0 4px;
}
.cart-count.show { display: grid; }
.menu-btn { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: grid;
  place-items: end start;
  overflow: hidden;
  background: #2a241f;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,.15) 0%, rgba(20,16,12,.55) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  color: #fffaf4;
  padding: 0 0 80px;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  max-width: 720px;
  justify-self: center;
  width: min(1180px, calc(100% - 40px));
}
.kicker {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .75rem;
  color: var(--gold);
  margin: 0 0 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: .95;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero p { margin: 0 0 28px; max-width: 460px; font-size: 1.05rem; color: #f3e8db; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.light { background: #fffaf4; color: var(--ink); }
.btn.light:hover { background: #efe6d9; }
.btn.ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.full { width: 100%; }

/* Sections */
.section { padding: 88px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px;
}
.section-head h2, .page-hero h1, .product-info h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0;
}
.section-head p, .lede { color: var(--muted); margin: 8px 0 0; max-width: 460px; }
.link-more { font-size: .92rem; color: var(--accent); }

.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: end;
  padding: 20px;
  color: white;
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card span {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.6rem;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-deep);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 0; font-size: 1.05rem; font-weight: 500; }
.price { font-weight: 500; }
.card-actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }
.card-actions .btn { padding: 10px 14px; font-size: .88rem; flex: 1; }
.card-actions .ghost { flex: 0 0 auto; border-color: var(--line); color: var(--ink); }

/* About split */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.split img { width: 100%; height: 520px; object-fit: cover; border-radius: 24px; }
.split h2 { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 500; margin: 0 0 16px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
}
.contact-card, .form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.form label { display: block; font-size: .85rem; margin: 0 0 6px; }
.form .field { margin-bottom: 14px; }
.form input, .form textarea, .form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form-success { display: none; color: var(--accent-dark); margin-top: 12px; }
.form-success.show { display: block; }

/* Page hero */
.page-hero { padding: 56px 0 10px; }
.page-hero p { color: var(--muted); max-width: 560px; }

/* Product */
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  padding: 28px 0 80px;
  align-items: start;
}
.product-photo {
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-deep);
  border: 1px solid var(--line);
}
.product-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-info .cat-label { letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-size: .75rem; }
.product-info .price { font-size: 1.5rem; margin: 16px 0; }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 22px 0; }
.qty {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.qty button { border: 0; background: transparent; width: 40px; height: 40px; }
.qty span { min-width: 28px; text-align: center; padding-top: 8px; }

/* Cart page */
.cart-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; padding-bottom: 80px; }
.cart-items, .cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 8px 20px 20px;
}
.cart-summary { height: fit-content; padding: 24px; position: sticky; top: 96px; }
.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-row img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.cart-row h3 { margin: 0 0 4px; font-size: 1rem; }
.remove { border: 0; background: none; color: var(--muted); padding: 0; font-size: .85rem; }
.summary-line { display: flex; justify-content: space-between; margin: 10px 0; color: var(--muted); }
.summary-line.total { color: var(--ink); font-size: 1.15rem; font-weight: 500; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }

/* Drawer */
.overlay {
  position: fixed; inset: 0;
  background: rgba(28,25,21,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  z-index: 50;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(420px, 100%);
  background: var(--surface);
  z-index: 60;
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open, html[dir="rtl"] .drawer.open { transform: translateX(0); }
.drawer-head, .drawer-foot { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); display: block; }
.drawer-body { padding: 8px 22px; overflow: auto; flex: 1; }
.mobile-nav { display: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: #efe8de;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
.site-footer h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 10px; font-weight: 500; }
.site-footer p, .site-footer a { color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal { font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
}
.chip.active, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 960px) {
  .grid, .cats { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .product-layout, .cart-layout, .footer-grid { grid-template-columns: 1fr; }
  .split img { height: 320px; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
  .hero { min-height: 70vh; }
  .cart-summary { position: static; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .card-actions { flex-direction: column; }
  .legal { flex-direction: column; }
}
