/* =========================================================================
   Peakito — پیکیتو | Base styles (RTL Persian)
   Shared: tokens, nav, footer, homepage, blog, product card
   ========================================================================= */

:root {
  --bg: #f4f1ec;
  --bg-warm: #ece7df;
  --cream: #faf7f2;
  --forest-deep: #1a2b22;
  --forest-mid: #2d3a32;
  --charcoal: #1c1c1c;
  --earth: #2a2520;
  --ink: #1f1d1a;
  --primary: #8c1c13;
  --primary-deep: #6e140c;
  --primary-soft: #b54432;
  --moss: #6b7a5a;
  --pine: #3d4e3a;
  --line: rgba(28, 28, 28, 0.12);
  --line-warm: rgba(28, 28, 28, 0.20);
  --line-dark: rgba(244, 241, 236, 0.14);
  --ease-quiet: cubic-bezier(.22, 1, .36, 1);
  --ease-precise: cubic-bezier(.4, 0, .2, 1);
  --ease-emphasis: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: 'Vazirmatn', sans-serif; }
::selection { background: var(--primary); color: var(--cream); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
}
.skip-link:focus {
  position: fixed !important;
  top: 1rem; right: 1rem;
  width: auto; height: auto;
  clip: auto;
  z-index: 999;
  background: var(--primary);
  color: var(--cream);
  padding: 0.6rem 1rem;
}

/* ---------------- Announce bar ---------------- */
.announce {
  background: var(--forest-deep);
  color: var(--cream);
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.7rem;
  padding: 0.7rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.8rem;
  position: relative;
  z-index: 100;
  flex-wrap: wrap;
}
.announce-dot { color: var(--primary-soft); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(244, 241, 236, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.3rem 0rem;
  display: grid;
  grid-template-columns: auto auto 1fr; /* logo | links (hug logo) | actions */
  align-items: center;
  gap: 2rem;
}
.logo {
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark {
  width: 20px; height: 20px;
  background: var(--primary);
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after { content: ''; position: absolute; inset: 4px; background: var(--bg); }
.logo-mark::before { content: ''; position: absolute; inset: 7px; background: var(--primary); z-index: 1; }
.logo .light { font-weight: 400; opacity: 0.55; font-size: 0.85em; }

.nav-links { display: flex; gap: 2.2rem; justify-self: start; align-items: center; } /* sticks to the logo (RTL start = right) */
.nav-link {
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.74rem;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
  transition: color 300ms var(--ease-precise);
}
.nav-link.is-active, .current-menu-item > a { color: var(--primary); }
.nav-link::after,
.nav-links .current-menu-item > a::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0; left: auto;
  width: 0; height: 1.5px;
  background: var(--primary);
  transition: width 400ms var(--ease-quiet);
}
.nav-links .current-menu-item > a::after { width: 100%; }
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

/* dropdown level 2 (mobile-ish simple) */
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  min-width: 200px;
  padding: 0.8rem 1.2rem;
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  z-index: 99;
}
.nav-links li { position: relative; }
.nav-links li:hover > .sub-menu { display: flex; }

.nav-actions {
  display: flex;
  gap: 1.4rem;
  justify-self: end; /* far left in RTL */
  align-items: center;
}
.nav-action {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.74rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 300ms var(--ease-precise);
}
.nav-action:hover { color: var(--primary); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px; height: 22px;
  background: var(--primary);
  color: var(--cream);
  font-size: 0.65rem;
  padding: 0 6px;
}

/* search dropdown */
.nav-search {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 1.4rem;
}
.nav-search .search-form { display: flex; background: var(--cream); border: 1px solid var(--ink); }

/* ---------------- Hero bento ---------------- */
.hero-bento { background: var(--bg); padding: 1.5rem; position: relative; z-index: 2; }
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  height: 560px;
  max-height: 560px;
}
.bento-cell { position: relative; overflow: hidden; }
.bento-slideshow { grid-row: 1 / 3; background: var(--forest-deep); }

.slideshow { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease-quiet), visibility 0s 1.4s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.4s var(--ease-quiet), visibility 0s;
  z-index: 2;
}
.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 43, 34, 0.92) 0%, rgba(26, 43, 34, 0.3) 50%, rgba(26, 43, 34, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: var(--cream);
  z-index: 3;
}
.slide-eyebrow {
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.7rem;
  color: var(--primary-soft);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.slide-eyebrow::before { content: ''; display: inline-block; width: 2.5rem; height: 1px; background: var(--primary-soft); }
.slide-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  max-width: 20ch;
}
.slide-title .em, .slide-title.em { color: var(--primary-soft); }
.slide-quote { font-size: 0.9rem; line-height: 1.7; opacity: 0.82; max-width: 50ch; margin-bottom: 1.5rem; }
.slide-cta-row { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--primary);
  color: var(--cream);
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.72rem;
  padding: 0.95rem 1.6rem;
  border: none;
  cursor: pointer;
  transition: background 400ms var(--ease-precise);
}
.hero-cta:hover { background: var(--primary-deep); }
.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 241, 236, 0.5);
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.72rem;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: all 400ms var(--ease-precise);
}
.hero-cta-ghost:hover { background: rgba(244, 241, 236, 0.1); border-color: var(--cream); }

.slideshow-nav {
  position: absolute;
  top: 1.5rem; left: 1.5rem; right: auto;
  display: flex;
  gap: 0.4rem;
  z-index: 10;
  align-items: center;
}
.slide-dot {
  background: rgba(244, 241, 236, 0.18);
  border: none;
  color: var(--cream);
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.66rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  transition: background 400ms;
}
.slide-dot.is-active { background: var(--primary); }
.slide-dot:hover:not(.is-active) { background: rgba(244, 241, 236, 0.35); }

.slideshow-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(244, 241, 236, 0.15); z-index: 10; }
.progress-bar { display: block; height: 100%; background: var(--primary); width: 0%; }

.slide-counter {
  position: absolute;
  top: 1.5rem; right: 1.5rem; left: auto;
  z-index: 10;
  color: var(--cream);
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.66rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.slide-counter .current { color: var(--primary-soft); font-size: 1.2rem; font-weight: 500; }
.slide-counter .sep { opacity: 0.4; }
.slide-counter .total { opacity: 0.7; }

.slide-corners .corner {
  position: absolute;
  width: 1.8rem; height: 1.8rem;
  border-color: rgba(244, 241, 236, 0.55);
  z-index: 5;
  pointer-events: none;
}
.slide-corners .corner.tl { top: 1rem; right: 1rem; left: auto; border-top: 1.5px solid; border-right: 1.5px solid; border-left: none; }
.slide-corners .corner.tr { top: 1rem; left: 1rem; right: auto; border-top: 1.5px solid; border-left: 1.5px solid; border-right: none; }
.slide-corners .corner.bl { bottom: 1rem; right: 1rem; left: auto; border-bottom: 1.5px solid; border-right: 1.5px solid; border-left: none; }
.slide-corners .corner.br { bottom: 1rem; left: 1rem; right: auto; border-bottom: 1.5px solid; border-left: 1.5px solid; border-right: none; }

/* ---------------- Bento boxes ---------------- */
.bento-box { padding: 1.8rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; }
.bento-box-1 { background: var(--cream); border: 1px solid var(--line); }
.bento-box-2 { background: var(--forest-deep); color: var(--cream); }
.bento-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.bento-box-2 .bento-head { border-color: var(--line-dark); }
.bento-eyebrow { font-family: 'IBM Plex Mono', 'Vazirmatn', monospace; font-size: 0.66rem; color: var(--primary); }
.bento-box-2 .bento-eyebrow { color: var(--primary-soft); }
.bento-num { font-family: 'IBM Plex Mono', 'Vazirmatn', monospace; font-size: 0.66rem; opacity: 0.5; }
.bento-body { flex: 1; display: flex; flex-direction: column; gap: 0.8rem; justify-content: center; }
.bento-title { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.bento-box-2 .bento-title .em { color: var(--primary-soft); }
.bento-desc { font-size: 0.82rem; line-height: 1.65; opacity: 0.7; max-width: 32ch; }
.bento-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.bento-cta {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.7rem;
  color: var(--primary);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 400ms var(--ease-quiet);
}
.bento-cta:hover { gap: 0.9rem; }
.bento-box-2 .bento-cta { color: var(--primary-soft); }
.bento-thumb { width: 56px; height: 56px; overflow: hidden; flex-shrink: 0; }
.bento-thumb img { width: 100%; height: 100%; object-fit: cover; }

.bento-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.3rem; }
.bento-stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num { font-size: 1.4rem; font-weight: 800; color: var(--primary-soft); line-height: 1; font-family: 'Vazirmatn', sans-serif; }
.stat-lbl { font-family: 'IBM Plex Mono', 'Vazirmatn', monospace; font-size: 0.58rem; opacity: 0.6; line-height: 1.4; }

/* ---------------- Section shells ---------------- */
.section { position: relative; z-index: 2; background: var(--bg); }
.section-pad { padding: 6rem 2rem; }
.section-inner { max-width: 1600px; margin: 0 auto; }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.section-head-left { display: flex; flex-direction: column; gap: 1.6rem; max-width: 720px; }
.section-eyebrow {
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.section-eyebrow::after {
  content: '';
  display: inline-block;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width 800ms var(--ease-quiet) 400ms;
}
.is-in .section-eyebrow::after { width: 2.5rem; }
.section-title { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; line-height: 1.1; }
.section-title .em { color: var(--primary); }
.section-aside {
  text-align: left;
  color: var(--ink);
  opacity: 0.65;
  font-size: 0.88rem;
  max-width: 34ch;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.section-aside a { color: var(--primary); border-bottom: 1px solid var(--primary); padding-bottom: 1px; }

/* ---------------- Categories carousel ---------------- */
.cat-carousel { position: relative; }
.cat-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}
.cat-track::-webkit-scrollbar { display: none; }

.cat-card {
  flex: 0 0 220px;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  scroll-snap-align: start;
  transition: background 500ms var(--ease-quiet), border-color 500ms var(--ease-quiet);
  position: relative;
  overflow: hidden;
}
.cat-card:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.cat-card-head { display: flex; justify-content: space-between; align-items: center; color: var(--ink); transition: color 500ms; }
.cat-card:hover .cat-card-head { color: var(--cream); }
.cat-card-num { font-family: 'IBM Plex Mono', 'Vazirmatn', monospace; font-size: 0.62rem; opacity: 0.6; }
.cat-card-dot { width: 6px; height: 6px; background: var(--primary); display: inline-block; transition: transform 400ms var(--ease-quiet), background 400ms; }
.cat-card:hover .cat-card-dot { background: var(--primary-soft); transform: scale(1.5); }
.cat-card-body { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.5rem 0; }
.cat-card-name { font-size: 1.4rem; font-weight: 800; line-height: 1.1; color: var(--ink); transition: color 500ms; }
.cat-card:hover .cat-card-name { color: var(--cream); }
.cat-card-spec { font-size: 0.72rem; opacity: 0.5; line-height: 1.4; transition: opacity 500ms; }
.cat-card:hover .cat-card-spec { opacity: 0.7; color: var(--cream); }
.cat-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.62rem;
  color: var(--ink);
  opacity: 0.5;
  transition: color 500ms, opacity 500ms;
}
.cat-card:hover .cat-card-foot { color: var(--cream); opacity: 0.8; }
.cat-card-arrow { font-size: 0.85rem; transition: transform 400ms var(--ease-quiet); }
.cat-card:hover .cat-card-arrow { transform: translateX(-6px); }

.cat-nav-arrows { display: flex; gap: 0.5rem; }
.cat-arrow-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--line-warm);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.9rem;
  color: var(--ink);
  transition: all 300ms;
}
.cat-arrow-btn:hover:not(:disabled) { border-color: var(--primary); background: var(--primary); color: var(--cream); }
.cat-arrow-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ---------------- Features strip ---------------- */
.features { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.feature { display: flex; align-items: flex-start; gap: 1rem; }
.feature-num {
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.7rem;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.3rem 0.5rem;
  line-height: 1;
}
.feature-text { font-size: 0.85rem; line-height: 1.5; }
.feature-text strong { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.feature-text span { opacity: 0.65; font-size: 0.8rem; }

/* ---------------- Product card (shared) ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; row-gap: 3.5rem; list-style: none; margin: 0; }
.featured-row { grid-template-columns: repeat(4, 1fr); }
.related-grid, .cross-sell-grid { grid-template-columns: repeat(4, 1fr); }

ul.products { list-style: none; margin: 0; padding: 0; }

.product-card { display: flex; flex-direction: column; cursor: pointer; position: relative; }
.product-media {
  position: relative;
  background: var(--bg-warm);
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: 1.4rem;
}
.product-media > img, .product-media > a:first-child img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-quiet);
}
.product-card:hover .product-media img { transform: scale(1.06); }
.media-link { position: absolute; inset: 0; z-index: 2; }
.product-media .corner {
  position: absolute;
  width: 1.8rem; height: 1.8rem;
  border-color: rgba(244, 241, 236, 0.85);
  transition: width 400ms var(--ease-quiet), height 400ms var(--ease-quiet), border-color 400ms;
  pointer-events: none;
  z-index: 3;
}
.product-media .corner.tl { top: 0.9rem; right: 0.9rem; left: auto; border-top: 1.5px solid; border-right: 1.5px solid; border-left: none; }
.product-media .corner.tr { top: 0.9rem; left: 0.9rem; right: auto; border-top: 1.5px solid; border-left: 1.5px solid; border-right: none; }
.product-media .corner.bl { bottom: 0.9rem; right: 0.9rem; left: auto; border-bottom: 1.5px solid; border-right: 1.5px solid; border-left: none; }
.product-media .corner.br { bottom: 0.9rem; left: 0.9rem; right: auto; border-bottom: 1.5px solid; border-left: 1.5px solid; border-right: none; }
.product-card:hover .product-media .corner { width: 2.4rem; height: 2.4rem; border-color: var(--primary-soft); }

.product-tag {
  position: absolute;
  top: 0.9rem; left: 50%; right: auto;
  transform: translateX(50%);
  background: var(--primary);
  color: var(--cream);
  padding: 0.35rem 0.8rem;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.62rem;
  z-index: 4;
}
.product-tag.out { background: var(--forest-mid); }

.product-cat {
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.68rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}
.product-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.2; transition: color 300ms; }
.product-card:hover .product-name { color: var(--primary); }
.product-name a { display: inline-block; }
.product-desc { font-size: 0.82rem; line-height: 1.65; opacity: 0.65; margin-bottom: 1rem; }
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  transition: border-color 400ms;
  gap: 1rem;
  flex-wrap: wrap;
}
.product-card:hover .product-foot { border-color: var(--primary); }
.product-price { font-size: 1.1rem; font-weight: 700; font-family: 'Vazirmatn', sans-serif; }
.product-price del { opacity: 0.4; font-size: 0.8em; font-weight: 400; }
.product-price ins { text-decoration: none; }
.product-spec { font-family: 'IBM Plex Mono', 'Vazirmatn', monospace; font-size: 0.72rem; opacity: 0.6; }
.product-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: var(--cream);
  padding: 0.9rem;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.72rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 500ms var(--ease-quiet);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.product-card:hover .product-add { transform: translateY(0); }
.product-add.is-added { background: var(--forest-deep); transform: translateY(0); }
@media (hover: none) {
  .product-add { transform: translateY(0); }
}

/* ---------------- Field journal ---------------- */
.journal { background: var(--bg-warm); }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.journal-card { cursor: pointer; display: flex; flex-direction: column; }
.journal-media { aspect-ratio: 4/3; overflow: hidden; margin-bottom: 1.5rem; background: var(--bg); position: relative; }
.journal-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-quiet); }
.journal-card:hover .journal-media img { transform: scale(1.05); }
.journal-num {
  position: absolute;
  top: 1rem; right: 1rem; left: auto;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.7rem;
  color: var(--cream);
  background: rgba(26, 43, 34, 0.7);
  padding: 0.3rem 0.6rem;
}
.journal-meta {
  display: flex;
  gap: 1rem;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.68rem;
  color: var(--primary);
  margin-bottom: 1rem;
  align-items: center;
}
.journal-meta .sep { color: var(--ink); opacity: 0.3; }
.journal-meta .author { color: var(--ink); opacity: 0.65; }
.journal-title { font-size: 1.4rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.8rem; transition: color 300ms; }
.journal-card:hover .journal-title { color: var(--primary); }
.journal-excerpt { font-size: 0.9rem; line-height: 1.7; opacity: 0.72; margin-bottom: 1.2rem; }
.journal-read {
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.7rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

/* ---------------- Newsletter ---------------- */
.newsletter { background: var(--bg); text-align: center; padding: 7rem 2rem; }
.newsletter-inner { max-width: 720px; margin: 0 auto; }
.newsletter-eyebrow {
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.74rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.newsletter-eyebrow::before, .newsletter-eyebrow::after { content: ''; display: inline-block; width: 2rem; height: 1px; background: var(--primary); }
.newsletter-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.newsletter-title .em { color: var(--primary); }
.newsletter-desc { font-size: 1rem; line-height: 1.7; opacity: 0.7; margin: 0 auto 3rem; max-width: 50ch; }
.newsletter-form { display: flex; background: var(--cream); border: 1px solid var(--ink); align-items: stretch; max-width: 540px; margin: 0 auto; }
.newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1.2rem 1.5rem;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.newsletter-input::placeholder { color: var(--ink); opacity: 0.4; }
.newsletter-btn {
  background: var(--primary);
  color: var(--cream);
  border: none;
  padding: 0 2rem;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 300ms;
}
.newsletter-btn:hover { background: var(--primary-deep); }
.newsletter-fine { margin-top: 1.5rem; font-family: 'IBM Plex Mono', 'Vazirmatn', monospace; font-size: 0.7rem; opacity: 0.5; }

/* ---------------- Footer ---------------- */
.footer { position: relative; z-index: 2; background: var(--forest-deep); color: var(--cream); padding: 6rem 2rem 2rem; }
.footer-inner { max-width: 1600px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo-mark::after { background: var(--forest-deep); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.7; max-width: 34ch; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.7rem;
  transition: all 300ms;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); }
.footer-col h4, .footer-col .widget-title {
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.72rem;
  opacity: 0.55;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.footer-col a { color: var(--cream); font-size: 0.9rem; opacity: 0.85; transition: color 300ms, opacity 300ms; }
.footer-col a:hover { color: var(--primary-soft); opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.7rem;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom .pay { display: flex; gap: 0.8rem; }
.footer-bottom .pay span { border: 1px solid var(--line-dark); padding: 0.2rem 0.6rem; }

/* ---------------- Pagination ---------------- */
.pagination {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.page-btn, .pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: 'IBM Plex Mono', 'Vazirmatn', monospace;
  font-size: 0.8rem;
  color: var(--ink);
  transition: all 300ms;
}
.pagination a:hover, .page-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current, .page-btn.is-active { background: var(--primary); border-color: var(--primary); color: var(--cream); }
.pagination .dots, .page-dots { border: none; background: none; cursor: default; opacity: 0.4; }
.page-arrow { width: auto; padding: 0 1.2rem; gap: 0.5rem; }
.page-arrow:hover { gap: 0.8rem; }

/* ---------------- Entry content (posts / pages / product description) ---------------- */
.entry-content { font-size: 1rem; line-height: 1.9; }
.entry-content p { margin-bottom: 1.4rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-weight: 800; margin: 2.2rem 0 1rem; line-height: 1.3; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content ul, .entry-content ol { padding-right: 1.4rem; margin-bottom: 1.4rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content blockquote { border-right: 3px solid var(--primary); padding-right: 1.2rem; opacity: 0.8; margin: 1.6rem 0; }
.entry-content img { border-radius: 0; }
.entry-content a { color: var(--primary); border-bottom: 1px solid var(--primary); }
.entry-content code { font-family: 'IBM Plex Mono', monospace; background: var(--bg-warm); padding: 0.1rem 0.4rem; font-size: 0.9em; }

/* comments (product reviews) */
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.comment-list .comment { border: 1px solid var(--line); background: var(--cream); padding: 1.5rem; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.comment-form p.comment-form-comment, .comment-form p.form-submit, .comment-form p.comment-notes { grid-column: 1 / -1; }
.comment-form label { display: block; font-size: 0.8rem; opacity: 0.7; margin-bottom: 0.4rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
  background: var(--cream); border: 1px solid var(--line-warm); padding: 0.8rem 1rem; outline: none; width: 100%;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .product-grid, .featured-row, .related-grid, .cross-sell-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; } /* logo right, actions left (RTL) */
  .nav-actions { justify-self: end; }
  .bento-grid { grid-template-columns: 1fr; grid-template-rows: 320px auto auto; height: auto; max-height: none; }
  .bento-slideshow { grid-row: auto; }
}
@media (max-width: 700px) {
  .section-pad { padding: 5rem 1.5rem; }
  .product-grid, .featured-row, .related-grid, .cross-sell-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-aside { text-align: left; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .features-inner { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-btn { padding: 1rem; }
  .announce { font-size: 0.6rem; gap: 1rem; padding: 0.6rem 1rem; }
  .hero-bento { padding: 1rem; }
  .slide-overlay { padding: 2rem 1.5rem; }
  .slide-title { font-size: 1.5rem; }
  .slide-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta, .hero-cta-ghost { justify-content: center; }
  .bento-stats { grid-template-columns: 1fr; }
  .bento-foot { flex-direction: column; align-items: flex-start; }
  .bento-thumb { display: none; }
  .slide-counter, .slideshow-nav { font-size: 0.6rem; }
  .cat-card { flex: 0 0 180px; min-height: 160px; }
  .comment-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
