:root {
  --ink: #161210;
  --ink-soft: #3a322c;
  --muted: #74685c;
  --paper: #f7f1e6;
  --paper-deep: #ebe1d0;
  --white: #fffaf2;
  --line: rgba(40, 28, 20, 0.1);
  --brand: #7a0d18;
  --brand-deep: #4c0810;
  --brand-soft: #f4e4e7;
  --gold: #d4a017;
  --gold-deep: #a67c0a;
  --gold-soft: #f6e7b8;
  --leaf: #2d6a4f;
  --leaf-hover: #1f4d39;
  --shadow: 0 24px 70px rgba(40, 22, 14, 0.14);
  --shadow-soft: 0 12px 32px rgba(40, 22, 14, 0.09);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1200px;
  --font: "IRANYekanFN", IRANYekanFN, Tahoma, sans-serif;
  --cover-h: 340px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.ambient-a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(196, 161, 90, 0.28), transparent 70%);
}

.ambient-b {
  width: 480px;
  height: 480px;
  bottom: 10%;
  left: -120px;
  background: radial-gradient(circle, rgba(161, 29, 58, 0.14), transparent 70%);
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

.container {
  width: min(var(--container), calc(100% - 2.4rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.narrow { width: min(760px, calc(100% - 2.4rem)); }

.site-header,
.site-main,
.site-footer { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(250, 246, 239, 0.9);
  border-bottom: 1px solid var(--line);
  z-index: 60;
  box-shadow: 0 8px 30px rgba(40, 20, 15, 0.04);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 96px;
  padding: 0.55rem 0;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-full {
  display: block;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand:hover .brand-logo-full {
  transform: translateY(-1px);
  opacity: 0.96;
}

.brand-logo-full .site-logo-img,
.brand-logo-full img {
  display: block;
  width: clamp(168px, 22vw, 230px);
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.primary-nav {
  position: relative;
  justify-self: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.1rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a { color: var(--brand); }
.nav-list a:hover::after,
.nav-list .current-menu-item > a::after { width: 100%; }

/* Desktop dropdown */
.nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.55rem;
  list-style: none;
  display: none;
  background: linear-gradient(165deg, #fffdf8, #f6e7b8 140%);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(40, 22, 14, 0.14);
  z-index: 80;
}

.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu {
  display: grid;
  gap: 0.15rem;
}

.nav-list .sub-menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.nav-list .sub-menu a::after { display: none; }
.nav-list .sub-menu a:hover {
  background: rgba(122, 13, 24, 0.06);
  color: var(--brand-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
}

.search-toggle,
.nav-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(180deg, #fffdf8, #f6e7b8);
  border: 1px solid rgba(212,160,23,0.35);
  color: var(--brand-deep);
}
.nav-toggle span { display: block; width: 15px; height: 1.6px; background: currentColor; border-radius: 2px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
.nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }

.header-search {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0 1.1rem;
  background: rgba(255, 253, 249, 0.75);
}

.header-search .search-form { display: flex; gap: 0.5rem; }
.header-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  background: #fff;
  font: inherit;
  outline: none;
}
.header-search input[type="search"]:focus {
  border-color: rgba(161, 29, 58, 0.35);
  box-shadow: 0 0 0 4px rgba(161, 29, 58, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-compact { min-height: 40px; padding-inline: 1rem; font-size: 0.86rem; }

.btn-primary {
  background: linear-gradient(135deg, #b82445, var(--brand-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(161, 29, 58, 0.28);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.btn-ghost {
  background: #f7f1e6;
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1.5px rgba(161, 29, 58, 0.18);
  position: relative;
  z-index: 2;
}

.hero-actions .btn-ghost {
  background: #faf3e8;
  box-shadow: inset 0 0 0 1.5px rgba(122, 13, 24, 0.16);
}

.btn-light {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.btn-cart {
  width: 100%;
  background: linear-gradient(135deg, #348564, var(--leaf));
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(45, 106, 79, 0.22);
}
.btn-cart.btn-compact {
  width: auto;
  min-width: 5.5rem;
  border-radius: 999px;
  padding-inline: 0.95rem;
}
.btn-cart:hover { background: var(--leaf-hover); }

.featured-body .add_to_cart_inline,
.featured-body .ajax_add_to_cart {
  display: inline-flex !important;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}
.text-link::after { content: "←"; transition: transform 0.2s ease; }
.text-link:hover::after { transform: translateX(-4px); }

/* Hero */
.hero-rich {
  padding: clamp(2.2rem, 5vw, 3.8rem) 0 clamp(2.5rem, 6vw, 4.2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
  background: rgba(255,253,249,0.7);
  padding: 0.35rem 0.85rem 0.35rem 0.55rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(161, 29, 58, 0.1);
}

.ornament-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--brand));
  box-shadow: 0 0 0 4px rgba(196, 161, 90, 0.18);
}

.hero-brand {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-deep);
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 1.15rem 0 1.4rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 400;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.hero-stats div {
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow-soft);
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
  color: var(--brand);
  font-weight: 800;
  line-height: 1.2;
}

.hero-stats span {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-ornament {
  position: absolute;
  inset: 8% 6% auto;
  height: 78%;
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(255,250,242,0.75), rgba(246,231,184,0.22) 45%, rgba(244,228,231,0.35)),
    radial-gradient(circle at 80% 20%, rgba(212,160,23,0.18), transparent 40%);
  box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.18);
  z-index: 0;
  pointer-events: none;
}

.hero-rich { position: relative; }

.hero-stage {
  position: relative;
  margin: 0;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.hero-stage-glow {
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(circle, rgba(212,160,23,0.32), transparent 70%);
  filter: blur(22px);
  z-index: 0;
}

.hero-stack {
  position: relative;
  width: min(420px, 92%);
  height: 420px;
  z-index: 1;
}

.hero-stack-card {
  position: absolute;
  width: 58%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 18px 40px rgba(30, 15, 10, 0.28),
    0 0 0 1px rgba(255,255,255,0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-stack-card img,
.hero-cover-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #efe6d8;
}

.hero-stack-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255,250,242,0.94);
  color: var(--brand-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.hero-stack-card-1 {
  right: 8%;
  top: 8%;
  z-index: 3;
  transform: rotate(-6deg);
}

.hero-stack-card-2 {
  right: 28%;
  top: 18%;
  z-index: 2;
  transform: rotate(3deg);
}

.hero-stack-card-3 {
  right: 18%;
  top: 30%;
  z-index: 1;
  transform: rotate(-1deg) scale(0.96);
  opacity: 0.95;
}

.hero-stack-card:hover {
  z-index: 5;
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 28px 55px rgba(30, 15, 10, 0.34);
}

.hero-float-card {
  position: absolute;
  left: 2%;
  bottom: 6%;
  z-index: 6;
  background: linear-gradient(145deg, rgba(255,250,242,0.97), rgba(246,231,184,0.88));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212,160,23,0.45);
  border-radius: 16px;
  padding: 0.9rem 1.05rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.15rem;
  animation: floatY 5s ease-in-out infinite;
}

.hero-float-card span {
  font-size: 0.76rem;
  color: var(--gold-deep);
  font-weight: 700;
}

.hero-float-card strong {
  font-size: 0.95rem;
  color: var(--ink);
}

/* Featured issue */
.featured-issue { padding-top: 0.5rem; }

.featured-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.4rem, 3vw, 2.8rem);
  align-items: center;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,250,242,0.98), rgba(246,231,184,0.22) 40%, rgba(244,228,231,0.4));
  border: 1px solid rgba(212,160,23,0.35);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255,255,255,0.55);
  position: relative;
  overflow: hidden;
}

.featured-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--gold), var(--brand));
}

.featured-panel::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(212,160,23,0.18);
  border-radius: 22px;
  pointer-events: none;
}

.featured-cover {
  margin: 0;
  position: relative;
  z-index: 1;
}

.featured-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f3ebe0, #e8dccb);
  box-shadow:
    0 24px 48px rgba(40,20,15,0.22),
    0 0 0 1px rgba(212,160,23,0.35),
    inset 0 0 0 6px rgba(255,250,242,0.65);
  padding: 0.65rem;
}

.featured-cover img,
.featured-cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.featured-cover:hover img { transform: scale(1.02); }

.featured-seal {
  position: absolute;
  top: 18px;
  left: 10px;
  z-index: 2;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff8ef;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(90, 10, 20, 0.28);
  border: 1px solid rgba(246, 231, 184, 0.45);
}

.cover-shine {
  position: absolute;
  inset: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255,255,255,0.22), transparent 40%, transparent 60%, rgba(255,255,255,0.08));
  pointer-events: none;
}

.featured-body h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--brand-deep);
}

.featured-excerpt { color: var(--ink-soft); }
.featured-excerpt ul { padding-right: 1.1rem; }
.featured-excerpt .toc-list,
.featured-excerpt ul {
  columns: 1;
  margin: 0.6rem 0 1rem;
}

/* Quote */
.quote-band { padding: 0.5rem 0 0.2rem; }

.quote-inner {
  text-align: center;
  padding: 1.8rem 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(196,161,90,0.16), transparent 55%),
    rgba(255,253,249,0.7);
  border: 1px dashed rgba(196,161,90,0.4);
}

.quote-mark { color: var(--gold); margin-bottom: 0.4rem; opacity: 0.85; }

.quote-inner p {
  margin: 0 auto;
  max-width: 44rem;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 2;
}

/* Sections */
.section { padding: clamp(2.4rem, 5vw, 4.2rem) 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(212,160,23,0.22);
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 88px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--brand));
  border-radius: 2px;
}

.section-kicker {
  margin: 0 0 0.3rem;
  color: var(--gold-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-head h2,
.content-card h1,
.issue-single-body h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.issue-meta span::before {
  content: "·";
  margin-left: 0.55rem;
  opacity: 0.45;
}
.issue-meta span:first-child::before { content: none; }

/* Magazine carousel — single row */
.mag-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.mag-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.mag-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.15rem 0.85rem;
  scrollbar-width: none;
}

.mag-carousel-track::-webkit-scrollbar { display: none; }

.mag-carousel-slide {
  flex: 0 0 calc((100% - 2.4rem) / 3);
  width: calc((100% - 2.4rem) / 3);
  max-width: calc((100% - 2.4rem) / 3);
  scroll-snap-align: start;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mag-carousel-slide.cover-card {
  min-height: 560px;
  height: 560px;
  box-shadow: none;
  overflow: hidden;
}

.mag-carousel-slide.cover-card:hover {
  box-shadow: none;
  transform: none;
}

.mag-carousel-slide .cover-frame {
  height: 280px;
  min-height: 280px;
  flex: 0 0 280px;
}

.mag-carousel-slide .cover-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mag-carousel-slide .cover-card-body h3 {
  min-height: 3.2em;
  max-height: 3.2em;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mag-carousel-slide .issue-excerpt {
  flex: 1 1 auto;
  min-height: 3.2em;
  max-height: 3.2em;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mag-carousel-slide .cover-card-foot {
  margin-top: auto;
}

.mag-carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(212,160,23,0.45);
  background: linear-gradient(180deg, #fffdf8, #f6e7b8);
  color: var(--brand-deep);
  display: inline-grid;
  place-items: center;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.mag-carousel-btn svg {
  display: block;
}

.mag-carousel-btn:hover {
  transform: scale(1.06);
  background: linear-gradient(180deg, #fff8e8, #f0d789);
  border-color: rgba(122, 13, 24, 0.35);
  color: var(--brand);
}

/* Cover grid — equal height boxed archive */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  align-items: stretch;
}

.cover-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255,250,242,0.98), rgba(247,241,230,0.92));
  border: 1px solid rgba(212,160,23,0.28);
  border-radius: 22px;
  padding: 0.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
}

.cover-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212,160,23,0.12);
  border-radius: 16px;
  pointer-events: none;
}

.cover-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,160,23,0.55);
  box-shadow: var(--shadow);
}

.cover-frame {
  position: relative;
  display: grid;
  place-items: center;
  height: var(--cover-h);
  min-height: var(--cover-h);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f4ebe0 0%, #e7d9c6 100%);
  box-shadow: inset 0 0 0 1px rgba(120, 80, 40, 0.08);
  z-index: 1;
}

.cover-frame img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.45s ease;
}

.cover-card:hover .cover-frame img { transform: scale(1.03); }

.cover-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 30%, rgba(40, 15, 20, 0.68));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cover-overlay span {
  color: #fff;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}

.cover-card:hover .cover-overlay { opacity: 1; }
.cover-card:hover .cover-overlay span { transform: none; }

.cover-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.95rem 0.25rem 0.15rem;
  z-index: 1;
}

.cover-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  min-height: 3.2em;
}

.issue-excerpt {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  flex: 1;
}

.cover-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(212,160,23,0.18);
}

.price {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Shop */
.shop-section {
  background:
    linear-gradient(180deg, transparent, rgba(255,253,249,0.7), transparent);
}

.shop-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.product-tile {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  background: rgba(255,250,242,0.9);
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: 20px;
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.product-cover {
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4ebe0, #e7d9c6);
  height: var(--cover-h);
  min-height: var(--cover-h);
  box-shadow: inset 0 0 0 1px rgba(120, 80, 40, 0.08);
}

.product-cover img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info h3 {
  margin: 0 0 0.2rem;
  font-size: 1.12rem;
  font-weight: 800;
}

/* Books — distinct from magazine archive */
.books-section-rich {
  background:
    radial-gradient(circle at 10% 20%, rgba(212,160,23,0.12), transparent 35%),
    linear-gradient(180deg, rgba(255,250,242,0.2), rgba(232, 220, 198, 0.35), rgba(255,250,242,0.15));
}

.books-showcase {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.4rem;
  align-items: stretch;
}

.books-showcase-copy {
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2rem);
  background:
    linear-gradient(160deg, #4c0810 0%, #7a0d18 48%, #a67c0a 140%);
  color: #fff8ef;
  box-shadow: var(--shadow);
  display: grid;
  align-content: center;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
}

.books-showcase-copy::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  left: -40px;
  bottom: -50px;
  background: rgba(255,255,255,0.08);
}

.books-showcase-copy .section-kicker { color: var(--gold-soft); }
.books-showcase-copy h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.45;
}
.books-showcase-copy p {
  margin: 0 0 0.6rem;
  opacity: 0.92;
  max-width: 28rem;
}
.books-showcase-copy .btn-primary {
  justify-self: start;
  background: #fffaf2;
  color: var(--brand-deep);
  box-shadow: none;
}

.books-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.book-rail-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: 22px;
  background: rgba(255,250,242,0.92);
  border: 1px dashed rgba(212,160,23,0.45);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.book-rail-card:hover {
  transform: translateY(-3px);
  border-style: solid;
  border-color: rgba(212,160,23,0.7);
}

.book-rail-cover {
  border-radius: 12px;
  overflow: hidden;
  background: #efe4d4;
  box-shadow: 8px 8px 0 rgba(122, 13, 24, 0.08);
}

.book-rail-cover img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: linear-gradient(180deg, #f7efe4, #e8d8c4);
}

.book-rail-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.book-rail-body .price {
  margin-bottom: 0.65rem;
  display: block;
}

/* CTA */
.cta-banner { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }

.cta-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border-radius: 28px;
  background:
    linear-gradient(115deg, #6f1227 0%, #a11d3a 42%, #c4a15a 160%);
  color: #fffaf4;
  box-shadow: 0 22px 48px rgba(111, 28, 48, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-inner::after {
  content: "";
  position: absolute;
  inset: -40% auto auto 55%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.cta-mark {
  width: 148px;
  height: auto;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 0;
}
.cta-mark img { width: 100%; height: auto; object-fit: contain; background: transparent; }

.cta-copy { position: relative; z-index: 1; }
.cta-copy .section-kicker { color: var(--gold-soft); }
.cta-copy h2 {
  margin: 0.15rem 0 0.4rem;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
}
.cta-copy p { margin: 0; opacity: 0.92; }
.cta-inner .btn-light { position: relative; z-index: 1; }

/* Footer */
.site-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255,253,249,0.65));
}

.footer-ornament {
  display: grid;
  place-items: center;
  color: var(--gold);
  margin-bottom: 1.4rem;
  opacity: 0.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.meta-list span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.meta-list strong { font-weight: 700; }

.footer-about p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

/* Inner */
.page-section { padding-top: 2.4rem; }

.content-card,
.issue-single-body {
  background: rgba(255,253,249,0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
}

.issue-single {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.issue-single-cover {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.issue-single-cover {
  background: linear-gradient(180deg, #f4ebe0, #e7d9c6);
  padding: 0.75rem;
  border: 1px solid rgba(212,160,23,0.3);
}

.issue-single-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 14px;
}

.custom-logo-link { display: block; }

/* Motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes brandPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Responsive */
@media (max-width: 1100px) {
  .cover-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .hero-grid,
  .featured-panel,
  .issue-single,
  .footer-grid,
  .books-showcase,
  .books-rail { grid-template-columns: 1fr; }

  .shop-row { grid-template-columns: repeat(2, 1fr); }

  .cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .hero-stack { height: 360px; }
  .hero-float-card { left: 50%; transform: translateX(-50%); bottom: -4px; }
  :root { --cover-h: 300px; }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 1.4rem));
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 72px;
    gap: 0.55rem;
    padding: 0.65rem 0 0.45rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-full .site-logo-img,
  .brand-logo-full img {
    width: min(148px, 42vw);
  }

  .primary-nav {
    position: static;
    order: 3;
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .nav-toggle { display: inline-flex; }

  .nav-panel {
    display: none;
    margin-top: 0.35rem;
    margin-bottom: 0.55rem;
    padding: 0.7rem;
    border-radius: 18px;
    background: linear-gradient(165deg, #fffdf8 0%, #f7ecd0 100%);
    border: 1px solid rgba(212,160,23,0.35);
    box-shadow: 0 16px 36px rgba(40, 22, 14, 0.12);
  }

  .nav-panel.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-list > li > a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    font-weight: 600;
  }

  .nav-list > li > a::after { display: none; }
  .nav-list > li > a:hover,
  .nav-list .current-menu-item > a {
    background: rgba(122, 13, 24, 0.06);
  }

  .nav-list .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.15rem 0 0.35rem;
    padding: 0.25rem;
    box-shadow: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.65);
  }

  .nav-list > li.menu-item-has-children.is-open > .sub-menu,
  .nav-panel.is-open .nav-list > li:focus-within > .sub-menu {
    display: grid;
  }

  .header-actions {
    gap: 0.35rem;
    max-width: 100%;
  }

  .header-actions .header-subscribe { display: none; }
  .header-actions .btn-compact {
    min-height: 38px;
    padding-inline: 0.8rem;
    font-size: 0.8rem;
  }

  .cart-link {
    min-height: 38px;
    padding: 0.35rem 0.65rem;
  }

  .cart-link-label { font-size: 0.78rem; }

  .cover-grid,
  .shop-row { grid-template-columns: 1fr 1fr; }

  .mag-carousel-slide {
    flex: 0 0 calc((100% - 1.2rem) / 2);
    width: calc((100% - 1.2rem) / 2);
    max-width: calc((100% - 1.2rem) / 2);
  }

  .mag-carousel-slide.cover-card {
    min-height: 480px;
    height: 480px;
  }

  .hero-stats { grid-template-columns: 1fr 1fr 1fr; }

  .hero-grid,
  .featured-panel,
  .cta-inner,
  .footer-grid {
    overflow-wrap: anywhere;
  }

  .nn-product-grid { grid-template-columns: 1fr 1fr; }
  .nn-contact-layout,
  .nn-about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .cover-grid,
  .shop-row,
  .nn-product-grid { grid-template-columns: 1fr; }
  .book-tile { grid-template-columns: 90px 1fr; }

  .mag-carousel-slide {
    flex: 0 0 85%;
    width: 85%;
    max-width: 85%;
  }

  .mag-carousel-slide.cover-card {
    min-height: 500px;
    height: 500px;
  }

  .header-actions .btn-primary.btn-compact {
    padding-inline: 0.7rem;
  }

  .cart-link-label { display: none; }
}

/* Page titles RTL */
.page-title-head {
  justify-content: flex-start;
  text-align: right;
  align-items: flex-start;
}

.page-title-head h1,
.content-card-page .section-head h1,
.woo-section .page-title-head h1 {
  text-align: right;
  width: 100%;
}

/* Catalog toolbar / sort */
.nn-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.2rem;
  margin: 0 0 1.25rem;
}

.nn-catalog-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nn-catalog-sort {
  margin: 0;
}

.nn-books-page select.orderby,
.nn-catalog-sort select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 220px;
  min-height: 46px;
  padding: 0.65rem 1.15rem 0.65rem 2.75rem;
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-radius: 999px;
  background-color: #fffdf8;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1.5 1.75L6 6.25L10.5 1.75' stroke='%234c0810' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #fffdf8, #f6e7b8);
  background-position:
    left 1rem center,
    0 0;
  background-size:
    12px 8px,
    100% 100%;
  background-repeat: no-repeat;
  color: var(--brand-deep);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(90, 40, 20, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  text-align: right;
  direction: rtl;
}

.nn-books-page select.orderby:hover,
.nn-catalog-sort select:hover {
  border-color: rgba(122, 13, 24, 0.35);
  box-shadow: 0 10px 24px rgba(122, 13, 24, 0.1);
  transform: translateY(-1px);
}

.nn-books-page select.orderby:focus,
.nn-catalog-sort select:focus {
  outline: none;
  border-color: rgba(122, 13, 24, 0.45);
  box-shadow: 0 0 0 4px rgba(122, 13, 24, 0.08);
}

/* Product grids */
.nn-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.nn-product-card {
  background: linear-gradient(180deg, rgba(255,250,242,0.98), rgba(247,241,230,0.92));
  border: 1px solid rgba(212,160,23,0.28);
  border-radius: 20px;
  padding: 0.85rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nn-product-card-media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f4ebe0, #e7d9c6);
  aspect-ratio: 3 / 4;
  margin-bottom: 0.8rem;
}

.nn-product-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nn-product-card-title {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 700;
}

.nn-product-card-price {
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.nn-product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
}

.nn-pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.nn-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nn-pagination .page-numbers li a,
.nn-pagination .page-numbers li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid rgba(212,160,23,0.28);
  font-weight: 700;
}

.nn-pagination .page-numbers li .current {
  background: linear-gradient(135deg, #b82445, var(--brand-deep));
  color: #fff;
  border-color: transparent;
}

/* Contact */
.nn-contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.3rem;
  align-items: start;
}

.nn-contact-card {
  background: linear-gradient(165deg, #fffdf8, #f7f1e6);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 22px;
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.nn-contact-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  color: var(--brand-deep);
  text-align: right;
}

.nn-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.nn-contact-list li {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(122,13,24,0.12);
}

.nn-contact-list li span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.nn-contact-list li strong {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.7;
}

.nn-contact-map {
  margin-top: 1rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212,160,23,0.28);
  background: #efe6d8;
  min-height: 260px;
}

.nn-contact-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.nn-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.nn-contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nn-contact-form .nn-form-full,
.nn-contact-form button {
  grid-column: 1 / -1;
}

.nn-contact-form input,
.nn-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(212,160,23,0.28);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  font: inherit;
}

.nn-contact-form-lead {
  margin: 0 0 1rem;
  color: var(--muted);
}

.nn-form-notice {
  margin-bottom: 0.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-weight: 600;
}

.nn-form-notice.is-ok {
  background: #e8f6ef;
  color: var(--leaf);
}

.nn-form-notice.is-err {
  background: #f8e6eb;
  color: var(--brand-deep);
}

/* About */
.nn-about-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.3rem;
  align-items: start;
}

.nn-about-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0 0 1.1rem;
}

.nn-about-panel {
  background: linear-gradient(165deg, #fffaf2, #f6e7b8);
  border: 1px solid rgba(212,160,23,0.35);
  border-radius: 20px;
  padding: 1.15rem 1.1rem;
  margin-bottom: 1rem;
}

.nn-about-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  color: var(--brand-deep);
  text-align: right;
}

.nn-about-mission p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

/* Team */
.nn-team-intro {
  margin: -0.4rem 0 1.6rem;
  color: var(--muted);
  max-width: 44rem;
  text-align: right;
}

.nn-team-heading {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: var(--brand-deep);
  text-align: right;
}

.nn-team-block { margin-bottom: 2rem; }

.nn-people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.nn-person-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf8, #f7f1e6);
  border: 1px solid rgba(212,160,23,0.25);
  min-width: 0;
}

.nn-person-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-deep);
  background: linear-gradient(135deg, #f6e7b8, #f4e4e7);
  border: 1px solid rgba(212,160,23,0.35);
}

.nn-person-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.nn-person-role {
  margin: 0 0 0.35rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}

.nn-person-bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

body.nn-nav-lock { overflow: hidden; }

@media (max-width: 900px) {
  .nn-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nn-people-grid { grid-template-columns: 1fr; }
  .nn-contact-form { grid-template-columns: 1fr; }
}

/* Overflow safety */
.site-main,
.entry-content,
.woocommerce,
.nn-cart-layout,
.hero-copy,
.featured-copy {
  overflow-wrap: anywhere;
  word-break: break-word;
}

img,
iframe,
video,
.svg-inline {
  max-width: 100%;
}

.woocommerce ul.products li.product,
.nn-product-card,
.content-card {
  max-width: 100%;
}