/*
Theme Name: Pinery
Theme URI: https://best.uvonokay.com
Author: PineryPicks
Author URI: https://best.uvonokay.com
Description: A refined, elegant theme for blogs and affiliate content. Features masonry grid, lightbox product preview, one-click affiliate purchase flow, and live customizer.
Version: 1.2.4
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pinery
Tags: blog, grid-layout, custom-logo, custom-menu, featured-images, custom-colors, editor-style, right-sidebar, two-columns, three-columns, threaded-comments, translation-ready, rtl-language-support, theme-options, custom-header
*/

:root {
  --cream: #faf7f4;
  --warm-white: #fff9f5;
  --linen: #f0ebe4;
  --sand: #e8dfd5;
  --taupe: #c4b8ac;
  --brown: #8c7b6e;
  --dark: #2c2420;
  --accent: #b07d62;
  --accent-light: #d4a088;
  --text: #3d3028;
  --text-light: #7a6a60;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', sans-serif;
  --max-width: 1200px;
  --radius: 2px;
  --shadow: 0 4px 24px rgba(44,36,32,0.08);
  --shadow-hover: 0 8px 40px rgba(44,36,32,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── HEADER ── */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.site-logo span {
  color: var(--accent);
  font-style: italic;
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--accent); }

.header-search {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.4rem;
  transition: color 0.2s;
}
.header-search:hover { color: var(--accent); }

/* ── HERO BANNER ── */
.hero {
  background: var(--linen);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--cream);
  padding: 0.85rem 2.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.hero-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
}

.hero-img:first-child {
  grid-row: 1 / 3;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* ── CATEGORY NAV ── */
.category-nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--sand);
  padding: 0;
}

.category-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-link {
  display: block;
  padding: 1rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.cat-link:hover, .cat-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── SECTION TITLES ── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.2;
}

/* ── FEATURED POSTS ── */
.featured-posts {
  padding: 2rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.posts-grid {
  columns: 2;
  column-gap: 0.9rem;
}

@media (min-width: 900px) {
  .posts-grid { columns: 3; column-gap: 1.2rem; }
}

/* ── POST CARD ── */
.post-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  break-inside: avoid;
  margin-bottom: 0.9rem;
  display: inline-block;
  width: 100%;
  cursor: pointer;
  background: var(--warm-white);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.post-card-image {
  overflow: hidden;
  background: var(--linen);
  position: relative;
}

/* Price + Rating overlay (Pinery Flow) */
.post-card-price-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  padding: 28px 12px 10px;
  display: flex;
  align-items: flex-end;
  font-weight: 600;
  font-family: var(--font-body);
  pointer-events: none;
  z-index: 2;
}
.overlay-price,
.overlay-rating {
  width: 50%;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.overlay-price { text-align: center; }
.overlay-rating { text-align: center; }

.post-card-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img { transform: scale(1.03); }

.post-card-body {
  padding: 0.6rem 0.5rem 0.4rem;
}

.post-card-cat { display: none; }
.post-card-excerpt { display: none; }
.post-card-meta { display: none; }

.post-card-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-light);
  margin: 0;
  text-align: center;
}

.post-card-title a { color: var(--text-light); }
.post-card-title a:hover { color: var(--accent); }

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--dark);
  padding: 5rem 2rem;
  text-align: center;
}

.newsletter-inner { max-width: 560px; margin: 0 auto; }

.newsletter-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 1rem;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.newsletter-title em { font-style: italic; color: var(--accent-light); }

.newsletter-desc {
  font-size: 0.9rem;
  color: var(--taupe);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
}

.newsletter-form input::placeholder { color: var(--taupe); }

.newsletter-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--accent-light); }

/* ── FOOTER ── */
.site-footer {
  background: var(--linen);
  border-top: 1px solid var(--sand);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-logo { font-size: 1.4rem; margin-bottom: 1rem; }

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-light);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--sand);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--taupe);
}

.footer-bottom a { color: var(--taupe); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent); }

.sidebar-cat-link {
  font-size:0.88rem; color:var(--text-light); display:flex; justify-content:space-between; padding:0.3rem 0; border-bottom:1px solid var(--sand); transition:color 0.2s;
}
.sidebar-cat-link:hover { color: var(--accent); }
.sidebar-cat-list { list-style: none; }
.sidebar-cat-list li { margin-bottom: 0.5rem; }
.sidebar-cat-count { color: var(--taupe); font-size: 0.78rem; }

/* ── TAG LINKS ── */
.tag-link {
  font-size:0.75rem; letter-spacing:0.1em; text-transform:uppercase; padding:0.4rem 0.9rem; border:1px solid var(--sand); color:var(--text-light); transition:all 0.2s;
}
.tag-link:hover { border-color: var(--accent); color: var(--accent); }

/* ── BREADCRUMBS ── */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: 0.78rem;
  color: var(--taupe);
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--dark); }
.breadcrumbs .separator { padding: 0 0.5rem; }

/* ── SINGLE POST ── */
.post-hero {
  background: var(--linen);
  padding: 4rem 2rem;
  text-align: center;
}

.post-hero-inner { max-width: 760px; margin: 0 auto; }

.post-category {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--taupe);
}

.post-featured-image {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-top: -2rem;
  position: relative;
  z-index: 1;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-content-wrap {
  max-width: 760px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dark);
  margin: 2rem 0 0.8rem;
}

.post-content p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.post-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-light);
  transition: border-color 0.2s;
}

.post-content a:hover { border-color: var(--accent); }

.post-content ul, .post-content ol {
  margin: 1.2rem 0 1.5rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--linen);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--brown);
}

/* ── PRODUCT BOX ── */
.product-box {
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  background: var(--warm-white);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.product-box img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.product-box-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.product-box-info p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.btn-amazon {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.6rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.btn-amazon:hover { background: var(--dark); }

/* ── SIDEBAR ── */
.content-sidebar-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
}

.widget {
  margin-bottom: 2.5rem;
}

.widget-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--sand);
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 2rem;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0.85rem;
  border: 1px solid var(--sand);
  color: var(--text-light);
  transition: all 0.2s;
}

.pagination a:hover, .pagination .current {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-image-grid { grid-template-rows: 160px 160px; }
  .posts-grid { columns: 2; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
}

/* ── LIGHTBOX OVERLAY ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.35);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover { opacity: 0.7; }

.lightbox-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.lightbox-img--next {
  transform: translateY(100%);
}

.lightbox-nav-hint {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 3;
  text-align: center;
  display: none;
}

@media (max-width: 768px) {
  .lightbox-nav-hint { display: block; }
}

.lightbox-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 2rem 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.lightbox-content > * {
  pointer-events: auto;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.8rem;
  text-align: center;
}

.lightbox-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
.lightbox-price {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}
.lightbox-rating {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffd700;
}

.lightbox-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lightbox-btn {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.lightbox-btn:hover {
  transform: translateY(-1px);
}

.lightbox-btn--detail {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(4px);
}
.lightbox-btn--detail:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.lightbox-btn--buy {
  background: var(--accent);
  color: #fff;
}
.lightbox-btn--buy:hover {
  background: var(--dark);
}

@media (max-width: 600px) {
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-content { padding: 60px 1.2rem 2rem; }
  .lightbox-title { font-size: 1.2rem; }
  .lightbox-price { font-size: 1.1rem; }
  .lightbox-rating { font-size: 1.1rem; }
  .lightbox-btn { padding: 0.75rem 1.8rem; font-size: 0.78rem; }
}

@media (max-width: 600px) {
  .main-nav { display: none; }
  .posts-grid { columns: 2; column-gap: 0.8rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-right: 1px solid rgba(255,255,255,0.15); border-bottom: none; }
  .hero-image-grid { display: none; }
}

/* ── GRID LAYOUT ── */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols-desktop), 1fr);
  gap: 1.2rem;
}
.layout-grid .post-card { margin-bottom: 0; }

@media (max-width: 900px) {
  .layout-grid { grid-template-columns: repeat(var(--cols-tablet), 1fr); }
}
@media (max-width: 600px) {
  .layout-grid { grid-template-columns: repeat(var(--cols-mobile), 1fr); }
  .layout-grid { gap: 0.8rem; }
}

/* ── MIXED LAYOUT ── */
.layout-mixed { columns: unset; display: unset; }
.layout-mixed .post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  background: var(--warm-white);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.layout-mixed .post-card--featured .post-card-image { margin: 0; }
.layout-mixed .post-card--featured .post-card-image img { height: 100%; object-fit: cover; }
.layout-mixed .post-card--featured .post-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.layout-mixed .post-card--featured .post-card-title { font-size: 1.4rem; }
.layout-mixed .post-card--featured .post-card-cat { display: block; }
.layout-mixed .post-card--featured .post-card-excerpt { display: block; }

/* Rest of mixed layout falls back to masonry */
@media (max-width: 768px) {
  .layout-mixed .post-card--featured {
    grid-template-columns: 1fr;
  }
}

/* ── AD ZONES ── */
.ad-zone {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
  text-align: center;
}
.ad-zone--between_posts {
  break-inside: avoid;
  display: block;
  width: 100%;
  padding: 0.5rem 0 1.2rem;
}
.layout-grid .ad-zone--between_posts {
  grid-column: 1 / -1;
}

/* ── LIGHTBOX OUTLINE BUTTON ── */
.lightbox-btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.lightbox-btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ── MASONRY WITH CUSTOM COLUMNS ── */
.layout-masonry { columns: var(--cols-desktop); }
@media (max-width: 900px) {
  .layout-masonry { columns: var(--cols-tablet); }
}
@media (max-width: 600px) {
  .layout-masonry { columns: var(--cols-mobile); }
}

/* ── CUSTOM LOGO ── */
.site-logo .custom-logo-link { display: block; }
.site-logo .custom-logo { max-height: 50px; width: auto; }

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.97);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.search-overlay.active {
  opacity: 1;
  visibility: visible;
}
.search-overlay-inner {
  width: 90%;
  max-width: 500px;
}
.search-overlay-inner .search-form {
  display: flex;
}
.search-overlay-inner .search-field {
  flex: 1;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-right: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}
.search-overlay-inner .search-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ── PAGE HEADER (archive/search/404 banner) ── */
.page-header {
  background: var(--linen);
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--sand);
}
.page-header--large {
  padding: 5rem 2rem;
}
.page-header-inner {
  max-width: 600px;
  margin: 0 auto;
}
.page-header--large .page-header-inner {
  max-width: 560px;
}
.page-header-icon {
  font-size: 5rem;
  font-family: var(--font-display);
  color: var(--accent);
  margin-bottom: 1rem;
}
.page-header-title {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 1rem;
}
.page-header-desc {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ── POST CARD PLACEHOLDER ── */
.post-card-placeholder {
  width: 100%;
  height: 200px;
  background: var(--linen);
}

/* ── SINGLE POST META ── */
.post-footer-meta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sand);
}
.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ── RELATED POSTS ── */
.related-posts-section {
  margin-top: 3rem;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.related-post-title {
  font-size: 1rem;
}
.related-post-date {
  font-size: 0.78rem;
  color: var(--taupe);
}

/* ── SEARCH FORM WRAPPER ── */
.search-form-wrap {
  max-width: 400px;
  margin: 0 auto 3rem;
}

/* ── NOTHING FOUND ── */
.nothing-found {
  text-align: center;
  padding: 4rem 2rem;
}
.nothing-found-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 1rem;
}
.nothing-found-desc {
  color: var(--text-light);
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}
