:root {
  --ivory: #f7f3ec;
  --ivory-deep: #efe8dc;
  --cream: #e8dcc8;
  --sand: #d4c4a8;
  --gold: #b8956c;
  --gold-deep: #9a7548;
  --gold-soft: #c9b08a;
  --ink: #1c1916;
  --ink-soft: #3a342e;
  --muted: #8a8178;
  --line: rgba(28, 25, 22, 0.1);
  --line-strong: rgba(28, 25, 22, 0.18);
  --paper: #fbf8f3;
  --white: #fffdf9;
  --rose: #8b3a3a;
  --ok: #3d5a45;
  --shadow: 0 24px 60px rgba(28, 25, 22, 0.12);
  --header-h: 84px;
  --announce-h: 36px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Vazirmatn", Tahoma, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  direction: rtl;
}

body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.muted { color: var(--muted); }
.gold { color: var(--gold-deep); }

/* ===== Announcement ===== */
.announce {
  height: var(--announce-h);
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.announce span { color: var(--gold-soft); padding-inline: 8px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.brand-en {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.42em;
  font-weight: 500;
  padding-right: 0.42em;
}

.brand-fa {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav a,
.nav button.linkish {
  font-size: 13.5px;
  color: var(--ink-soft);
  position: relative;
  padding: 8px 0;
}

.nav a:hover,
.nav button.linkish:hover { color: var(--ink); }

.nav a::after,
.nav button.linkish::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav button.linkish:hover::after { width: 100%; }

.header-actions {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
}

.icon-btn:hover { background: var(--ivory-deep); }

.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.4; }

.badge {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 16px;
  height: 16px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 10px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.mega {
  display: none;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 32px;
  box-shadow: var(--shadow);
}

.has-mega { position: relative; }
.has-mega:hover .mega,
.mega:hover { display: block; }

.mega-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 40px;
}

.mega h4 {
  margin: 0 0 14px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
}

.mega a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.mega a:hover { color: var(--ink); }

.mega-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.mega-card img { width: 100%; height: 180px; object-fit: cover; }
.mega-card span {
  position: absolute;
  inset: auto 16px 14px auto;
  color: var(--white);
  font-size: 13px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  transition: 0.2s ease;
}

.btn:hover { background: #2a2521; }

.btn-gold {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold);
}

.btn-gold:hover { background: var(--gold); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: min(86vh, 760px);
  overflow: hidden;
  background: var(--ivory-deep);
}

.hero img,
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 22%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.slide.on { opacity: 1; pointer-events: auto; }

.slider-dots {
  position: absolute;
  inset: auto 0 22px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.sdot {
  width: 28px;
  height: 2px;
  background: rgba(255, 253, 249, 0.45);
  transition: 0.3s;
}

.sdot.on { background: var(--gold-soft); }

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0 6vw 8vh;
  background:
    linear-gradient(to left, rgba(28,25,22,0) 45%, rgba(28,25,22,0.5) 100%),
    linear-gradient(180deg, rgba(28,25,22,0.04) 30%, rgba(28,25,22,0.34) 100%);
  color: var(--white);
}

.hero-copy-inner {
  width: min(440px, 88%);
  text-align: right;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  margin: 0 0 18px;
  max-width: 10ch;
}

.hero p {
  max-width: 36ch;
  margin: 0 0 28px;
  font-size: 15px;
  font-weight: 300;
  opacity: 0.92;
}

.hero-actions { display: flex; gap: 12px; }

/* ===== Sections ===== */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--paper); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 16px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  margin: 0;
}

.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.link-more {
  font-size: 13px;
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ===== Product card ===== */
.card { display: flex; flex-direction: column; min-width: 0; }

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ivory-deep);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.card:hover .card-media img { transform: scale(1.04); }

.tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  padding: 4px 10px;
  letter-spacing: 0.04em;
}

.tag.sale { background: var(--ink); color: var(--ivory); }
.tag.out { background: var(--ivory-deep); }

.quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 44px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.card:hover .quick { opacity: 1; transform: none; }

.card-body { padding: 14px 2px 0; }

.card-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
}

.price { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.price .old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}
.price .off { color: var(--rose); font-size: 12px; }

.dots { display: flex; gap: 6px; margin-top: 10px; }
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

/* ===== Services / brand / reviews ===== */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  padding: 28px 20px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.service:last-child { border-left: 0; }
.service h3 { margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.service p { margin: 0; font-size: 12.5px; color: var(--muted); }

.brand-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.brand-block img { width: 100%; height: 460px; object-fit: cover; }

.brand-block h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  margin: 0 0 18px;
}

.quote {
  background: var(--paper);
  padding: 32px 28px;
  border: 1px solid var(--line);
}

.quote p { margin: 0 0 16px; font-size: 15px; }
.quote cite { font-style: normal; font-size: 13px; color: var(--gold-deep); }

.stars { color: var(--gold); letter-spacing: 2px; font-size: 12px; margin-bottom: 10px; }

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.insta-grid a { position: relative; overflow: hidden; aspect-ratio: 1; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.insta-grid a:hover img { transform: scale(1.05); }

.socials { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }

.socials a { font-size: 13px; }

.socials-page a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  margin: 0 0 8px;
}

.socials-page { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.socials-page a:hover { border-color: var(--ink); }

.socials-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

.socials-row a {
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  color: var(--gold-deep);
}

.set-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 420px;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
}

.set-banner img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.set-copy { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.set-copy h2 { font-family: var(--serif); font-size: 42px; font-weight: 400; margin: 0 0 12px; }
.set-copy .price { margin: 18px 0 28px; font-size: 16px; }

/* ===== Shop ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 40px 0 80px;
}

.filters h3 {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.filters-h { display: flex; justify-content: space-between; align-items: baseline; }
.filters-h button { display: none; font-size: 13px; }

@media (max-width: 720px) {
  .filters-h button { display: block; }
}

.filter-group { margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.filter-group h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; }

.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 5px 0;
  cursor: pointer;
}

.price-row { display: flex; gap: 8px; }
.price-row input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 0 10px;
  font-size: 13px;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.shop-toolbar select {
  height: 40px;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0 12px;
  font-size: 13px;
}

.empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}

/* ===== Product page ===== */
.pdp {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  padding: 36px 0 80px;
}

.gallery-main {
  position: relative;
  background: var(--ivory-deep);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.thumbs button { aspect-ratio: 1; overflow: hidden; border: 1px solid transparent; }
.thumbs button.active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp-info .crumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.pdp-info h1 { font-size: 28px; font-weight: 500; margin: 0 0 12px; }
.stock { font-size: 13px; color: var(--ok); margin: 8px 0 18px; }
.stock.out { color: var(--rose); }

.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.swatch, .size {
  min-width: 44px;
  height: 40px;
  border: 1px solid var(--line-strong);
  padding: 0 12px;
  font-size: 13px;
  background: var(--white);
}

.swatch.active, .size.active { border-color: var(--ink); outline: 1px solid var(--ink); }
.size.disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

.field-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 8px;
}

.qty {
  display: flex;
  width: 120px;
  height: 44px;
  border: 1px solid var(--line-strong);
  margin: 8px 0 20px;
}

.qty button { width: 40px; }
.qty span { flex: 1; display: grid; place-items: center; }

.meta-list { margin: 28px 0; padding: 0; list-style: none; font-size: 14px; }
.meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-top: 18px; }
.tabs button { padding: 12px 0; font-size: 14px; color: var(--muted); }
.tabs button.active { color: var(--ink); border-bottom: 1px solid var(--ink); }
.tab-panel { padding: 18px 0; font-size: 14.5px; color: var(--ink-soft); }

.zoom-layer {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 22, 0.88);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.zoom-layer img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

/* ===== Cart / checkout ===== */
.cart-page, .checkout-page, .plain-page { padding: 40px 0 90px; }

.cart-layout, .check-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
}

.line {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.line img { width: 92px; height: 118px; object-fit: cover; }
.line h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.line .meta { font-size: 12.5px; color: var(--muted); }

.summary {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  height: fit-content;
  position: sticky;
  top: 110px;
}

.summary h3 { margin: 0 0 18px; font-size: 16px; }
.row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-size: 16px; }

.coupon { display: flex; gap: 8px; margin: 14px 0 18px; }
.coupon input, .form input, .form select, .form textarea {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 0 12px;
  font-size: 14px;
}

.form textarea { height: 110px; padding: 12px; resize: vertical; }
.form label { display: block; font-size: 13px; margin: 14px 0 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.steps {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--muted);
}

.steps .on { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 4px; }

.ship-opt, .pay-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

.ship-opt.active, .pay-opt.active { border-color: var(--ink); }

.success {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.success h2 { font-family: var(--serif); font-size: 36px; font-weight: 400; }

/* ===== Order result and tracking ===== */
.order-live { max-width: 620px; margin: 0 auto; }

.order-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px 20px;
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.order-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.order-line img {
  width: 56px;
  height: 70px;
  object-fit: cover;
}

.order-line b { font-weight: 500; font-size: 14px; }

.status.paid {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.set-size {
  display: block;
  margin: 18px 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.set-size select {
  display: block;
  margin-top: 8px;
  min-width: 220px;
}

/* ===== Drawers / overlays ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 22, 0.35);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 60;
  transform: translateX(-100%);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.drawer.show { transform: none; }

.drawer-h, .search-h, .modal-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-b { flex: 1; overflow: auto; padding: 8px 22px 22px; }
.drawer-f { padding: 18px 22px 24px; border-top: 1px solid var(--line); }

.search {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: var(--paper);
  z-index: 70;
  transform: translateY(-110%);
  transition: 0.3s ease;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.search.show { transform: none; }

.search input {
  width: 100%;
  height: 64px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 22px;
  padding: 0 8px;
  outline: none;
}

.search-list { max-height: 50vh; overflow: auto; }
.search-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.search-item img { width: 56px; height: 72px; object-fit: cover; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
  place-items: center;
  background: rgba(28, 25, 22, 0.4);
  padding: 24px;
}

.modal.show { display: grid; }

.modal-card {
  width: min(520px, 100%);
  background: var(--paper);
  padding: 8px 8px 28px;
}

.auth-tabs { display: flex; gap: 16px; padding: 8px 20px 0; }
.auth-tabs button.active { border-bottom: 1px solid var(--ink); }

/* ===== Admin ===== */
.admin {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 70vh;
  border: 1px solid var(--line);
  background: var(--paper);
}

.admin-nav { padding: 22px 16px; border-left: 1px solid var(--line); }
.admin-nav button {
  display: block;
  width: 100%;
  text-align: right;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.admin-nav button.active { background: var(--ivory-deep); color: var(--ink); }

.admin-main { padding: 22px; overflow: auto; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi { background: var(--ivory); padding: 16px; border: 1px solid var(--line); }
.kpi b { display: block; font-size: 22px; font-weight: 500; margin-top: 6px; }
.kpi span { font-size: 12px; color: var(--muted); }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 500; color: var(--muted); font-size: 12px; }

.status {
  font-size: 12px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: #d8cfc4;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer .brand-en { color: var(--ivory); }
.footer a { display: block; padding: 4px 0; font-size: 13.5px; color: #c9bfb3; }
.footer a:hover { color: var(--ivory); }
.footer h4 { margin: 0 0 14px; color: var(--gold-soft); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; }
.footer p { font-size: 13.5px; line-height: 1.9; }

.footer-brand {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.4em;
  color: var(--ivory);
  margin-bottom: 12px;
}

.news {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
  margin-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news h4 { margin: 0 0 6px; }
.news .muted { color: #a89e92; font-size: 13.5px; }

.news-form { display: flex; gap: 10px; min-width: min(420px, 100%); }

.news-form input {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ivory);
  font-family: inherit;
  font-size: 13.5px;
}

.news-form input::placeholder { color: #8d8377; }
.news-form input:focus { outline: none; border-color: var(--gold-soft); }
.news-form .btn { height: 46px; padding: 0 26px; background: var(--gold); border-color: var(--gold); }

.sicons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.sicons a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12.5px;
  transition: 0.25s;
}

.sicons a:hover { border-color: var(--gold-soft); color: var(--ivory); }

.sicons svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.fbtns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.fbtn {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  padding: 11px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: 0.25s;
}

.fbtn:hover { border-color: var(--gold-soft); background: rgba(255, 255, 255, 0.04); }

.fbtn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 1.4;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #a89e92;
}

.trust span { position: relative; padding-right: 16px; }

.trust span::before {
  content: "";
  position: absolute;
  right: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9d9388;
}

/* ===== WordPress admin bridge ===== */
.wpgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.wpcard {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff;
  transition: 0.25s;
}

.wpcard:hover { border-color: var(--gold); transform: translateY(-2px); }
.wpcard b { display: block; margin-bottom: 6px; font-size: 14.5px; }
.wpcard span { font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* ===== Blog / rich text from WordPress ===== */
.article-hero {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  margin: 18px 0 26px;
}

.richtext { max-width: 760px; }
.richtext p { font-size: 15px; line-height: 2.1; margin: 0 0 16px; }
.richtext h2, .richtext h3 { font-family: var(--serif); font-weight: 400; margin: 28px 0 12px; }
.richtext img { max-width: 100%; height: auto; margin: 16px 0; }
.richtext ul, .richtext ol { padding-right: 20px; margin: 0 0 16px; }
.richtext li { font-size: 14.5px; line-height: 2; }
.richtext a { color: var(--gold); text-decoration: underline; }

/* ===== Misc ===== */
.page-title {
  padding: 28px 0 0;
}

.page-title h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  margin: 0;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 18px;
  font-size: 13px;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.25s;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: none; }

.menu-toggle { display: none; }

/* ===== Mobile: sticky tabbar ===== */
.tabbar { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 62px; --announce-h: 32px; }

  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  .announce { font-size: 11px; padding: 0 12px; text-align: center; }

  /* Menu on the right, logo centred, cart on the left. */
  .header-row {
    display: flex;
    align-items: center;
    position: relative;
    gap: 0;
  }

  .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .brand-en { font-size: 19px; letter-spacing: 0.3em; padding-right: 0.3em; }
  .brand-fa { margin-top: 4px; font-size: 9.5px; letter-spacing: 0.2em; }

  .header-actions {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 0;
  }

  .header-actions .icon-btn[data-open="search"],
  .header-actions .icon-btn[data-open="auth"] { display: none; }
  .menu-toggle { display: grid; }
  .icon-btn { width: 40px; height: 40px; }

  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    inset: auto 0 0 0;
    z-index: 45;
    background: rgba(251, 248, 243, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 62px;
    position: relative;
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0;
  }

  .tab svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.5; }
  .tab.active { color: var(--ink); }
  .tab.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 26px;
    height: 2px;
    background: var(--gold);
  }

  .tab .badge { top: 6px; left: calc(50% - 20px); }
}

/* ===== Mobile menu sheet ===== */
.msheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 92%);
  background: var(--paper);
  z-index: 65;
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

.msheet.show { transform: none; visibility: visible; }

.msheet-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.msheet-brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.36em;
  padding-right: 0.36em;
}

.msheet-b {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.msheet-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.msheet-quick a { position: relative; overflow: hidden; }
.msheet-quick img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.msheet-quick span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(28,25,22,0) 0%, rgba(28,25,22,0.62) 100%);
  color: var(--white);
  font-size: 12.5px;
}

.macc { border-bottom: 1px solid var(--line); }

.macc summary {
  padding: 15px 2px;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.macc summary::-webkit-details-marker { display: none; }
.macc summary::after {
  content: "+";
  color: var(--gold-deep);
  font-size: 17px;
}
.macc[open] summary::after { content: "–"; }
.macc a { display: block; padding: 10px 14px 10px 0; font-size: 14px; color: var(--ink-soft); }
.macc a:last-child { padding-bottom: 16px; }

.msheet-links { padding: 8px 0 4px; }
.msheet-links a {
  display: block;
  padding: 13px 2px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.msheet-contact { margin-top: 22px; }

.msheet-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.msheet-social a {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line-strong);
  padding: 11px 4px;
  font-size: 12.5px;
}

@media (min-width: 901px) {
  .msheet { display: none; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .services, .kpis { grid-template-columns: repeat(2, 1fr); }
  .shop-layout, .pdp, .cart-layout, .check-layout, .brand-block, .set-banner, .admin, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .set-copy { padding: 36px 24px; }
  .hero { height: 72vh; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1320px); }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 26px; }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { gap: 14px; }

  .hero { height: 74vh; }
  .hero-copy { padding: 0 24px 8vh; align-items: stretch; }
  .hero-copy-inner { width: 100%; }
  .hero h1 { font-size: clamp(34px, 11vw, 46px); max-width: 14ch; }
  .hero p { font-size: 14px; max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .page-title h1 { font-size: 30px; }

  /* mobile filter drawer */
  .shop-layout { gap: 0; }
  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, 92%);
    background: var(--paper);
    z-index: 66;
    padding: 20px 20px calc(90px + env(safe-area-inset-bottom));
    overflow-y: auto;
    transform: translateX(105%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .filters.show { transform: none; visibility: visible; }
  .filter-fab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    font-size: 13px;
  }

  .pdp { gap: 26px; padding-bottom: 96px; }
  .gallery-main { aspect-ratio: 3 / 4; }
  .pdp-info h1 { font-size: 22px; }
  .pdp .btn-full { display: none; }

  .buybar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    position: fixed;
    inset: auto 0 calc(62px + env(safe-area-inset-bottom)) 0;
    z-index: 44;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding: 10px 16px;
  }
  .buybar .price { flex-direction: column; gap: 0; font-size: 13px; }
  .buybar .btn { height: 46px; }

  .line { grid-template-columns: 74px 1fr; }
  .line img { width: 74px; height: 96px; }
  .line > div:last-child { grid-column: 2; display: flex; justify-content: space-between; align-items: center; }
  .summary { position: static; padding: 20px; }

  .set-banner img, .set-banner { min-height: 0; }
  .brand-block img { height: 320px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { border-bottom: 1px solid var(--line); }

  .footer { padding: 44px 0 24px; }
  .legal { flex-direction: column; gap: 8px; text-align: center; }
  .news { flex-direction: column; align-items: stretch; gap: 14px; padding-bottom: 26px; margin-bottom: 28px; }
  .news-form { min-width: 0; }
  .news-form .btn { padding: 0 18px; }
  .footer-grid { gap: 26px; }
  .footer-grid > div:not(:first-child) { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 20px; }
  .sicons a { flex: 1 1 44%; justify-content: center; }
  .trust { gap: 8px 18px; font-size: 12px; }
  .slider-dots { inset: auto 0 14px 0; }
  table { font-size: 12.5px; }
  .admin-nav { display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  .admin-nav button { white-space: nowrap; width: auto; }
}

@media (min-width: 721px) {
  .buybar,
  .filter-fab { display: none; }
}
