@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700&family=Assistant:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #faf6f0;
  --bg-alt: #f2ebe0;
  --ink: #2b2620;
  --ink-soft: #6b6154;
  --gold: #ad8a4e;
  --gold-deep: #8a6d3a;
  --line: #e4d9c7;
  --white: #ffffff;
  --danger: #a3453c;
  --radius: 2px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Assistant', 'Segoe UI', sans-serif;
  direction: rtl;
  text-align: right;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
  font-family: 'Frank Ruhl Libre', 'David Libre', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 8px 12px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.brand-word {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.55rem;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.brand-text small {
  display: block;
  font-family: 'Assistant', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  gap: 30px;
  font-size: 0.98rem;
}
nav.main-nav a {
  position: relative;
  padding: 4px 0;
}
nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--gold-deep);
}
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  right: 0; left: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s;
}
.cart-btn:hover { background: var(--bg-alt); }
.cart-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute;
  top: 1px;
  left: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: #fff;
  font-size: 0.65rem;
  line-height: 16px;
  text-align: center;
}
.cart-count[hidden] { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 28px 70px;
}
.hero-copy .eyebrow {
  color: var(--gold-deep);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-copy h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.18;
  margin-bottom: 18px;
}
.hero-copy p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-media {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(0 14px 34px rgba(60,45,20,0.18)); }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  background: var(--ink);
  color: var(--bg);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--bg); }
.btn.gold { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn.gold:hover { background: transparent; color: var(--gold-deep); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 28px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.trust-strip strong { display: block; color: var(--ink); font-family: 'Frank Ruhl Libre', serif; font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- Section ---------- */
section.section { padding: 64px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-head .eyebrow {
  color: var(--gold-deep);
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.section-head p { color: var(--ink-soft); }

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.cat-tile {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile .cat-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 20px;
  background: linear-gradient(to top, rgba(20,16,10,0.68), transparent);
  color: #fff;
}
.cat-tile .cat-label span {
  display: block;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.35rem;
}
.cat-tile .cat-label small { font-size: 0.78rem; opacity: 0.85; letter-spacing: 0.05em; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.product-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card .thumb {
  aspect-ratio: 1/1;
  background: var(--bg-alt);
  overflow: hidden;
  filter: drop-shadow(0 8px 18px rgba(60,45,20,0.16));
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .info { padding: 16px 16px 18px; }
.product-card .cat-tag { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--gold-deep); margin-bottom: 4px; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.product-card .price { font-weight: 600; color: var(--ink); }

/* ---------- Product detail ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 18px 0 6px;
}
.breadcrumbs a:hover { color: var(--gold-deep); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 30px 0 30px;
  align-items: flex-start;
}
.product-detail .media {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  position: sticky;
  top: 100px;
}
.product-detail .media img { width: 100%; height: 100%; object-fit: cover; filter: drop-shadow(0 18px 40px rgba(60,45,20,0.2)); }
.product-detail .cat-tag { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--gold-deep); margin-bottom: 10px; }
.product-detail h1 { font-size: 2rem; margin-bottom: 10px; }
.product-detail .price { font-size: 1.4rem; color: var(--ink); margin-bottom: 20px; font-weight: 600; }
.product-detail .desc { color: var(--ink-soft); margin-bottom: 26px; }
.material-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 26px;
  font-size: 0.9rem;
  background: var(--bg-alt);
}
.material-box div + div { margin-top: 6px; }
.material-box b { color: var(--ink); }

.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--radius); }
.qty-control button { background: none; border: none; width: 36px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.qty-control input { width: 40px; text-align: center; border: none; background: none; font-size: 1rem; }

.set-block { margin-top: 46px; }
.set-block h2 { font-size: 1.25rem; }
.set-block p.set-desc { color: var(--ink-soft); margin-bottom: 20px; font-size: 0.92rem; }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 50px 0;
}
.about-hero .media { aspect-ratio: 1/1; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; }
.about-hero .media img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: flex; gap: 34px; margin-top: 30px; }
.stat-row div strong { display: block; font-family: 'Frank Ruhl Libre', serif; font-size: 1.7rem; }
.stat-row div span { font-size: 0.82rem; color: var(--ink-soft); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}
.value-card {
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.value-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.value-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Simple content pages ---------- */
.content-page { max-width: 780px; margin: 0 auto; padding: 50px 0 90px; }
.content-page h1 { font-size: 2rem; margin-bottom: 8px; }
.content-page .updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 34px; }
.content-page h2 { font-size: 1.2rem; margin-top: 34px; }
.content-page p, .content-page li { color: var(--ink-soft); }
.content-page ul, .content-page ol { padding-inline-start: 22px; }

.info-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 26px 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 50px 0 90px;
}
.contact-details h1 { font-size: 2rem; }
.contact-details .addr { margin-top: 24px; }
.contact-details .addr div { margin-bottom: 14px; }
.contact-details .addr b { display: block; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gold-deep); margin-bottom: 3px; }

form.contact-form { display: grid; gap: 16px; }
form.contact-form label { display: block; font-size: 0.85rem; margin-bottom: 6px; color: var(--ink-soft); }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--ink);
}
form.contact-form textarea { min-height: 120px; resize: vertical; }
.form-msg { display: none; padding: 14px 16px; border-radius: var(--radius); background: #eef4ea; border: 1px solid #cfe0c6; color: #395a2c; font-size: 0.9rem; }
.form-msg.show { display: block; }

/* ---------- Cart drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(20,16,10,0.4);
  opacity: 0; pointer-events: none; transition: opacity .2s;
  z-index: 90;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: min(420px, 92vw);
  background: var(--bg);
  box-shadow: 8px 0 30px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform .25s ease;
  z-index: 91;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.cart-drawer-head h2 { margin: 0; font-size: 1.2rem; }
.cart-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); background: var(--bg-alt); }
.cart-line .cl-info { flex: 1; }
.cart-line .cl-info h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; }
.cart-line .cl-info .cl-price { font-size: 0.88rem; color: var(--ink-soft); }
.cart-line .cl-remove { background: none; border: none; color: var(--danger); font-size: 0.8rem; cursor: pointer; padding: 0; margin-top: 6px; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 60px 10px; }
.cart-drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.05rem; font-weight: 600; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  color: #cfc6b8;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 56px 28px 30px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.footer-grid h4 { color: #fff; font-family: 'Frank Ruhl Libre', serif; font-size: 1rem; margin-bottom: 14px; }
.footer-grid .brand-mark { color: #fff; font-family: 'Frank Ruhl Libre', serif; font-size: 1.4rem; letter-spacing: 0.1em; margin-bottom: 10px; }
.footer-grid p, .footer-grid a { font-size: 0.88rem; color: #cfc6b8; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 28px;
  text-align: center;
  font-size: 0.78rem;
  color: #a89d8a;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  nav.main-nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; right: 0; left: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 6px 28px 16px;
  }
  nav.main-nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }

  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-media { order: -1; }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 26px; }
  .product-detail .media { position: static; }
  .about-hero { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .header-inner { padding: 14px 18px; }
  .wrap { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; padding: 40px 20px 20px; }
}
