/*
Theme Name: Рибалка Pro
Theme URI: https://tvoyarybalkashop.com.ua
Author: tvoyarybalkashop.com.ua
Description: Тема для риболовного блогу з магазином, автозмістом, Customizer.
Version: 2.0.0
Requires PHP: 7.4
Requires at least: 6.0
Text Domain: rybalka-pro
*/

/* ═══════════════════════════════════════════════
   ЗМІННІ
═══════════════════════════════════════════════ */
:root {
  --green:   #1b3d2f;
  --blue:    #1e4d6b;
  --amber:   #c8762a;
  --amber2:  #e09040;
  --cream:   #f4efe6;
  --cream2:  #eae3d5;
  --white:   #ffffff;
  --text:    #1c1c1c;
  --text2:   #5a5a5a;
  --text3:   #888888;
  --border:  #d5cfc4;
  --border2: #ece7de;

  --ff-head: 'Playfair Display', Georgia, serif;
  --ff-body: 'Lora', Georgia, serif;
  --ff-ui:   'Nunito Sans', system-ui, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;

  --sh-sm: 0 2px 6px rgba(0,0,0,.06);
  --sh-md: 0 4px 18px rgba(0,0,0,.10);
  --sh-lg: 0 10px 40px rgba(0,0,0,.14);
  --sh-xl: 0 24px 60px rgba(0,0,0,.20);

  --ease: .28s cubic-bezier(.4,0,.2,1);
  --max-w: 1260px;
}

/* ═══════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; max-width: 100%; }
html {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
}
body {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--amber); }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-head);
  line-height: 1.2;
  color: var(--green);
  font-weight: 700;
}
p { margin-bottom: 1.25em; }
ul,ol { padding-left: 1.5em; margin-bottom: 1.25em; }

/* ═══════════════════════════════════════════════
   УТИЛІТИ
═══════════════════════════════════════════════ */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}
.sr-only {
  position: absolute; width:1px; height:1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .6em 1.5em;
  border-radius: 100px;
  font-family: var(--ff-ui);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber2); color: #fff; transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--amber); color: #fff; }
.btn-sm { padding: .4em 1em; font-size: .78rem; }

/* Тег */
.badge {
  display: inline-block;
  padding: .18em .75em;
  background: var(--amber);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 100px;
}

/* Заголовок секції */
.sec-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--green);
  padding-bottom: .6em;
  margin-bottom: 1.75rem;
  position: relative;
}
.sec-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 56px; height: 4px;
  background: var(--amber);
  border-radius: 2px;
}

/* Хлібні крихти */
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .4rem;
  font-family: var(--ff-ui);
  font-size: .78rem;
  color: var(--text3);
  padding: .9rem 0;
}
.crumbs a { color: var(--text2); }
.crumbs a:hover { color: var(--amber); }
.crumbs .sep { color: var(--border); }

/* Пагінація */
.pager {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}
.pager a, .pager span {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  font-family: var(--ff-ui);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--ease);
}
.pager a { color: var(--text); background: var(--white); box-shadow: var(--sh-sm); }
.pager a:hover { background: var(--green); color: #fff; }
.pager .current { background: var(--amber); color: #fff; }
.pager .dots { color: var(--text3); }

/* ═══════════════════════════════════════════════
   ШАПКА
═══════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--green);
  box-shadow: var(--sh-lg);
}
.admin-bar .site-header { top: 32px; }

/* Топбар */
.topbar {
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: .4rem 0;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-info {
  display: flex; gap: 1.5rem;
  font-family: var(--ff-ui);
  font-size: .76rem;
  color: rgba(255,255,255,.6);
}
.topbar-info a { color: inherit; }
.topbar-info a:hover { color: var(--amber2); }
.topbar-info span { display: flex; align-items: center; gap: .3em; }
.topbar-social { display: flex; gap: .65rem; }
.topbar-social a {
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  transition: all var(--ease);
}
.topbar-social a:hover { color: var(--amber2); transform: scale(1.15); }

/* Головний рядок */
.header-row { padding: .55rem 0; }
.header-row .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
}

/* Логотип */
.site-logo {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none; flex-shrink: 0;
}
.site-logo img { height: 50px; width: auto; }
.logo-name {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.logo-tag {
  display: block;
  font-family: var(--ff-ui);
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber2);
}

/* Навігація */
.site-nav { display: flex; align-items: center; justify-content: center; }
.site-nav ul { display: flex; list-style: none; gap: .2rem; }
.site-nav a {
  display: flex; align-items: center; gap: .25em;
  padding: .42em .68em;
  font-family: var(--ff-ui);
  font-size: .79rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: all var(--ease);
}
.site-nav a:hover,
.site-nav .current-menu-item > a { background: rgba(255,255,255,.1); color: #fff; }
.site-nav .menu-has-children > a::after { content: '▾'; font-size: .6em; opacity: .7; margin-left: .15em; }

/* Dropdown */
.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  min-width: 210px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--sh-xl);
  padding: .4rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--ease);
  z-index: 200;
}
.site-nav li { position: relative; }
.site-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a {
  color: var(--text);
  padding: .48em .9em;
  font-size: .82rem;
  border-radius: var(--r-sm);
}
.site-nav .sub-menu a:hover { background: var(--cream); color: var(--green); }

/* Пошук */
.header-search { display: flex; align-items: center; }
.header-search form {
  display: flex;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  overflow: hidden;
  transition: all var(--ease);
}
.header-search form:focus-within { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.header-search input {
  background: none; border: none;
  padding: .42em 1em;
  color: #fff;
  font-family: var(--ff-ui);
  font-size: .83rem;
  width: 170px; outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,.4); }
.header-search button {
  background: none; border: none;
  padding: .42em .8em;
  color: rgba(255,255,255,.55);
  cursor: pointer; font-size: .9rem;
  transition: color var(--ease);
}
.header-search button:hover { color: var(--amber2); }

/* Бургер */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--ease);
}
.nav-toggle:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* Мобільне меню */
.mob-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 8000;
}
.mob-overlay.open { display: block; }
.mob-menu {
  position: fixed;
  top: 0; left: 0;
  width: min(340px, 88vw);
  height: 100dvh;
  background: var(--green);
  z-index: 8001;
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}
.mob-menu.open { transform: none; }
.mob-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mob-close {
  background: none; border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.4rem; cursor: pointer;
  transition: all var(--ease);
}
.mob-close:hover { color: #fff; transform: rotate(90deg); }
.mob-nav { list-style: none; }
.mob-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
.mob-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
  color: rgba(255,255,255,.85);
  font-family: var(--ff-ui);
  font-size: .97rem;
  font-weight: 600;
}
.mob-nav a:hover { color: var(--amber2); }
.mob-nav .sub-menu { list-style: none; display: none; padding: 0 0 .5rem .75rem; }
.mob-nav .sub-menu.open { display: block; }
.mob-nav .sub-menu a { font-size: .88rem; font-weight: 400; color: rgba(255,255,255,.6); padding: .4rem 0; }

/* ═══════════════════════════════════════════════
   HERO БАНЕР
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--green);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 12s ease;
}
.hero:hover .hero-bg { transform: scale(1.04); }
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(27,61,47,.8);
  z-index: 1;
}
.hero-body {
  position: relative; z-index: 2;
  max-width: 680px;
  padding: 80px 0;
  animation: fadeUp .9s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber2);
  background: rgba(200,118,42,.15);
  border: 1px solid rgba(200,118,42,.3);
  padding: .28em .9em;
  border-radius: 100px;
  margin-bottom: .85rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  color: #fff; line-height: 1.1;
  margin-bottom: .85rem;
}
.hero-title em { color: var(--amber2); font-style: normal; }
.hero-sub {
  font-family: var(--ff-ui);
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 500px;
}
.hero-btns { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 56px; }

/* ═══════════════════════════════════════════════
   СТАТИСТИКА
═══════════════════════════════════════════════ */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border2);
  padding: 1.5rem 0;
  width: 100%;
}
.stats-bar .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.stat-item {
  text-align: center;
  padding: .75rem 1rem;
  border-right: 1px solid var(--border2);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-txt {
  font-family: var(--ff-ui);
  font-size: .78rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ═══════════════════════════════════════════════
   КАТЕГОРІЇ
═══════════════════════════════════════════════ */
.cats-section { padding: 72px 0; width: 100%; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.15rem;
  min-width: 0;
}
.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 195px;
  cursor: pointer;
  box-shadow: var(--sh-md);
  transition: all var(--ease);
  text-decoration: none;
  display: block;
}
.cat-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--sh-xl); }
.cat-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.cat-card:hover .cat-card-img { transform: scale(1.08); }
.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,61,47,.92) 0%, rgba(27,61,47,.4) 55%, transparent 100%);
  transition: all var(--ease);
}
.cat-card:hover .cat-card-overlay { background: linear-gradient(to top, rgba(27,61,47,.96) 0%, rgba(27,61,47,.55) 60%, transparent 100%); }
.cat-card-icon {
  position: absolute;
  top: 14px; left: 14px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  transition: all var(--ease);
}
.cat-card:hover .cat-card-icon { background: var(--amber); border-color: var(--amber); }
.cat-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.1rem;
}
.cat-card-name {
  font-family: var(--ff-head);
  font-size: 1.1rem; font-weight: 700;
  color: #fff; line-height: 1.2;
  margin-bottom: .25rem;
}
.cat-card-count {
  font-family: var(--ff-ui);
  font-size: .72rem;
  color: rgba(255,255,255,.58);
}

/* ═══════════════════════════════════════════════
   КАРТКИ СТАТЕЙ
═══════════════════════════════════════════════ */
.posts-section { padding: 0 0 72px; width: 100%; }

/* Grid головна: 2/3 + 1/3 */
.posts-duo {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.6rem;
  align-items: start;
  min-width: 0;
}
.posts-duo > * { min-width: 0; }

/* Велика картка */
.card-big {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-md);
  transition: all var(--ease);
}
.card-big:hover { transform: translateY(-4px); box-shadow: var(--sh-xl); }
.card-big .card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--green);
}
.card-big .card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.card-big:hover .card-img img { transform: scale(1.05); }
.card-big .card-body { padding: 1.75rem; }
.card-big .card-title { font-size: 1.5rem; margin-bottom: .5rem; }

/* Список карток (compact) */
.cards-list { display: flex; flex-direction: column; gap: .9rem; }
.card-sm {
  display: flex; gap: .9rem;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  text-decoration: none; color: inherit;
  transition: all var(--ease);
}
.card-sm:hover { transform: translateX(4px); box-shadow: var(--sh-md); }
.card-sm .card-img {
  width: 112px; flex-shrink: 0;
  overflow: hidden;
  background: var(--green);
}
.card-sm .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card-sm:hover .card-img img { transform: scale(1.08); }
.card-sm .card-body { padding: .8rem; display: flex; flex-direction: column; justify-content: center; }
.card-sm .card-title { font-size: .92rem; line-height: 1.3; margin-bottom: .25rem; }

/* Спільні */
.card-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .55rem; margin-bottom: .7rem;
}
.card-date {
  font-family: var(--ff-ui);
  font-size: .73rem;
  color: var(--text3);
}
.card-title { font-family: var(--ff-head); font-weight: 700; color: var(--green); line-height: 1.25; }
.card-title:hover { color: var(--blue); }
.card-excerpt { font-size: .88rem; color: var(--text2); line-height: 1.6; margin-bottom: .85rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-rt { font-family: var(--ff-ui); font-size: .72rem; color: var(--text3); }
.card-no-img {
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  font-size: 2.5rem;
  color: rgba(255,255,255,.2);
}

/* Сітка 3 колонки */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  min-width: 0;
}
.grid-3 > * { min-width: 0; }
.card-std {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: all var(--ease);
  display: flex; flex-direction: column;
}
.card-std:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card-std .card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--green); }
.card-std .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-std:hover .card-img img { transform: scale(1.05); }
.card-std .card-body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; }
.card-std .card-title { font-size: 1.05rem; }
.card-std .card-excerpt { font-size: .83rem; flex: 1; }

/* ═══════════════════════════════════════════════
   БАНЕР МАГАЗИНУ
═══════════════════════════════════════════════ */
.promo {
  margin-bottom: 72px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  padding: 56px 60px;
  display: flex; align-items: center; gap: 2rem;
  position: relative;
  min-width: 0;
}
.promo::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 280px; height: 280px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.promo-body { position: relative; z-index: 1; flex: 1; }
.promo-eyebrow {
  font-family: var(--ff-ui);
  font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber2); margin-bottom: .65rem;
}
.promo-title { font-size: 1.9rem; color: #fff; margin-bottom: .6rem; }
.promo-text { font-family: var(--ff-ui); color: rgba(255,255,255,.72); margin-bottom: 1.4rem; max-width: 420px; }
.promo-img { position: relative; z-index: 1; flex-shrink: 0; width: 260px; }
.promo-img img { border-radius: var(--r-lg); box-shadow: var(--sh-xl); }

/* ═══════════════════════════════════════════════
   ПІДПИСКА
═══════════════════════════════════════════════ */
.newsletter {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  padding: 56px 0;
  text-align: center;
  position: relative; overflow: hidden;
  width: 100%;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.05), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,.04), transparent 40%);
}
.newsletter .wrap { position: relative; z-index: 1; }
.newsletter-sub-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; margin-bottom: .6rem; }
.newsletter-desc { font-family: var(--ff-ui); color: rgba(255,255,255,.68); margin-bottom: 1.75rem; }
.nl-form {
  display: flex; gap: .65rem;
  max-width: 420px; margin: 0 auto;
}
.nl-form input {
  flex: 1;
  padding: .7rem 1.15rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.13);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: .88rem; outline: none;
}
.nl-form input::placeholder { color: rgba(255,255,255,.45); }
.nl-form input:focus { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.38); }

/* ═══════════════════════════════════════════════
   ЗАПИС (single.php)
═══════════════════════════════════════════════ */

/* Hero фото */
.post-hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1075/540;
  width: 100%;
  max-height: 540px;
}
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-blank {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,61,47,.82) 0%, transparent 52%);
}
.post-hero-cap {
  position: absolute;
  bottom: 1.75rem; left: 2rem; right: 2rem;
}
.post-hero-title {
  font-size: clamp(1.55rem, 3.5vw, 2.5rem);
  color: #fff; line-height: 1.15;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

/* Основний layout */
.single-wrap {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 2.5rem;
  padding: 2rem 0 72px;
}

/* Мета */
.post-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  margin-bottom: 1.75rem;
}
.post-meta-item {
  display: flex; align-items: center; gap: .35em;
  font-family: var(--ff-ui);
  font-size: .8rem;
  color: var(--text2);
}
.post-meta-item .ico { color: var(--amber); }

/* ТОС */
.toc {
  background: var(--cream2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  margin-bottom: 1.75rem;
}
.toc-head {
  font-family: var(--ff-head);
  font-size: .97rem; font-weight: 700;
  color: var(--green);
  display: flex; align-items: center; gap: .45em;
  cursor: pointer; user-select: none;
  margin-bottom: .85rem;
}
.toc-head .toc-toggle { margin-left: auto; font-size: .68rem; color: var(--text3); transition: transform var(--ease); }
.toc.collapsed .toc-toggle { transform: rotate(-90deg); }
.toc.collapsed .toc-links { display: none; }
.toc-links { list-style: none; padding: 0; margin: 0; }
.toc-links li { margin-bottom: .28rem; }
.toc-links a {
  font-family: var(--ff-ui);
  font-size: .83rem;
  color: var(--text2);
  display: flex; align-items: flex-start; gap: .4em;
  padding: .18em .35em;
  border-radius: var(--r-sm);
  line-height: 1.4;
  transition: all var(--ease);
}
.toc-links a::before { content: '•'; color: var(--amber); flex-shrink: 0; }
.toc-links a:hover { color: var(--green); background: var(--border2); }
.toc-links a.active { color: var(--amber); font-weight: 700; }
.toc-links .toc-h3 { padding-left: 1.1em; }
.toc-links .toc-h4 { padding-left: 2.2em; }

/* Тіло */
.post-body {
  font-size: 1.04rem;
  line-height: 1.82;
  color: var(--text);
}
.post-body h2 {
  font-size: 1.6rem;
  margin: 2.2em 0 .65em;
  padding-bottom: .5em;
  border-bottom: 2px solid var(--border2);
  color: var(--green);
}
.post-body h3 { font-size: 1.25rem; margin: 1.75em 0 .55em; color: var(--blue); }
.post-body h4 { font-size: 1.06rem; margin: 1.5em 0 .45em; }
.post-body ul { list-style: none; padding-left: 0; }
.post-body ul li { padding-left: 1.4em; position: relative; margin-bottom: .48em; }
.post-body ul li::before { content: '→'; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.post-body blockquote {
  border-left: 4px solid var(--amber);
  padding: .9rem 1.35rem;
  background: var(--cream2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--green);
}
.post-body figure { margin: 2em 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.post-body figcaption { text-align: center; font-size: .8rem; color: var(--text3); padding: .5rem; background: var(--cream2); font-family: var(--ff-ui); }
.post-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { color: var(--green); }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .88rem; font-family: var(--ff-ui); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
.post-body th { background: var(--green); color: #fff; padding: .7em 1em; text-align: left; }
.post-body td { padding: .6em 1em; border-bottom: 1px solid var(--border2); }
.post-body tr:nth-child(even) td { background: var(--cream2); }
.post-body tr:last-child td { border-bottom: none; }
.post-body code { background: var(--cream2); border: 1px solid var(--border); border-radius: 4px; padding: .1em .35em; font-size: .87em; color: var(--blue); }
.post-body pre { background: var(--green); color: #d4f5d4; border-radius: var(--r-md); padding: 1.4rem; overflow-x: auto; margin: 1.5em 0; }

/* Теги */
.post-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2.25rem 0; }
.post-tags a {
  display: inline-block;
  padding: .28em .85em;
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--ff-ui);
  font-size: .76rem;
  color: var(--text2);
  transition: all var(--ease);
}
.post-tags a:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* Share */
.share-row { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; margin-bottom: 2rem; }
.share-label { font-family: var(--ff-ui); font-size: .78rem; color: var(--text3); }
.share-btn {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .38em .9em;
  border-radius: 100px;
  font-family: var(--ff-ui);
  font-size: .8rem; font-weight: 600;
  transition: all var(--ease);
  text-decoration: none;
}
.share-fb { background: #1877f2; color: #fff; }
.share-tg { background: #0088cc; color: #fff; }
.share-tw { background: #000; color: #fff; }
.share-vb { background: #7360f2; color: #fff; }
.share-btn:hover { opacity: .85; transform: translateY(-2px); }

/* Автор */
.post-author {
  display: flex; align-items: center; gap: 1.35rem;
  background: var(--cream2);
  border-radius: var(--r-xl);
  padding: 1.6rem 1.85rem;
  margin: 2.25rem 0;
  border: 1px solid var(--border2);
}
.post-author img { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--amber); flex-shrink: 0; object-fit: cover; }
.author-name { font-family: var(--ff-head); font-size: 1.08rem; font-weight: 700; color: var(--green); margin-bottom: .2rem; }
.author-role { font-family: var(--ff-ui); font-size: .72rem; color: var(--amber); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .4rem; }
.author-bio { font-size: .86rem; color: var(--text2); margin: 0; }

/* Навігація prev/next */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 2rem 0;
}
.post-nav a {
  display: block; padding: 1.1rem;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  text-decoration: none;
  transition: all var(--ease);
  font-family: var(--ff-ui);
}
.post-nav a:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.post-nav-dir { font-size: .7rem; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .3rem; }
.post-nav-title { font-family: var(--ff-head); font-size: .92rem; color: var(--green); line-height: 1.3; }
.post-nav .next { text-align: right; }

/* Схожі статті */
.related { margin-top: 2.75rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Sidebar */
.post-aside { position: sticky; top: 88px; }
.aside-box {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  margin-bottom: 1.35rem;
}
.aside-head {
  background: var(--green);
  padding: .9rem 1.15rem;
  display: flex; align-items: center; gap: .45rem;
}
.aside-head-title {
  font-family: var(--ff-head);
  font-size: .95rem; font-weight: 700;
  color: #fff; margin: 0;
}
.aside-head .ico { color: var(--amber2); }
.aside-body { padding: 1.1rem; }

.aside-post {
  display: flex; gap: .7rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border2);
  text-decoration: none; color: inherit;
  transition: color var(--ease);
}
.aside-post:last-child { border-bottom: none; padding-bottom: 0; }
.aside-post:hover { color: var(--blue); }
.aside-post img { width: 66px; height: 66px; border-radius: var(--r-md); object-fit: cover; flex-shrink: 0; }
.aside-post-title { font-family: var(--ff-head); font-size: .82rem; font-weight: 700; line-height: 1.3; color: var(--green); margin-bottom: .18rem; }
.aside-post:hover .aside-post-title { color: var(--blue); }
.aside-post-date { font-family: var(--ff-ui); font-size: .7rem; color: var(--text3); }

.aside-cats { list-style: none; padding: 0; margin: 0; }
.aside-cats li { border-bottom: 1px solid var(--border2); }
.aside-cats li:last-child { border-bottom: none; }
.aside-cats a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 0;
  font-family: var(--ff-ui);
  font-size: .86rem;
  color: var(--text);
  transition: all var(--ease);
}
.aside-cats a:hover { color: var(--amber); padding-left: .4rem; }
.aside-cnt { background: var(--cream2); border-radius: 100px; padding: .1em .6em; font-size: .7rem; color: var(--text3); }

/* ═══════════════════════════════════════════════
   АРХІВ КАТЕГОРІЇ
═══════════════════════════════════════════════ */
.cat-hero {
  position: relative;
  min-height: 320px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  margin-bottom: 56px;
}
.cat-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,61,47,.92) 0%, rgba(27,61,47,.3) 60%, transparent 100%); }
.cat-hero-body { position: relative; z-index: 1; padding: 2.25rem; }
.cat-hero-icon { font-size: 2.75rem; margin-bottom: .4rem; }
.cat-hero-name { font-size: clamp(1.9rem, 5vw, 3rem); color: #fff; margin-bottom: .4rem; }
.cat-hero-desc { color: rgba(255,255,255,.72); font-size: .95rem; font-family: var(--ff-ui); max-width: 480px; margin: 0; }

.cat-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 72px;
}

/* ═══════════════════════════════════════════════
   ТЕГ
═══════════════════════════════════════════════ */
.tag-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  padding: 2.25rem 0;
}
.tag-hero-inner { display: flex; align-items: center; gap: 1.15rem; margin-top: .6rem; }
.tag-hero-icon { font-size: 2.75rem; flex-shrink: 0; line-height: 1; }
.tag-hero-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: .18rem; }
.tag-hero-title { font-size: clamp(1.45rem, 3vw, 2.1rem); color: #fff; margin-bottom: .22rem; }
.tag-hero-count { font-family: var(--ff-ui); font-size: .87rem; color: rgba(255,255,255,.7); }

.tag-layout {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}
.tag-aside { position: sticky; top: 88px; }
.tag-box {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--sh-sm);
}
.tag-box-title {
  font-size: .88rem; font-weight: 700;
  color: var(--green);
  margin-bottom: .85rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--amber);
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: .38rem; }
.tag-chip {
  display: inline-flex; align-items: center; gap: .28rem;
  padding: .28rem .7rem;
  border-radius: 100px;
  background: rgba(27,61,47,.07);
  color: var(--green);
  font-size: .78rem; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--ease);
}
.tag-chip:hover, .tag-chip.on { background: var(--green); color: #fff; }
.tag-chip-n { font-size: .62rem; opacity: .65; }
.tag-cat-list { list-style: none; padding: 0; }
.tag-cat-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .52rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .86rem; color: var(--text);
  transition: color var(--ease);
}
.tag-cat-list li:last-child a { border-bottom: none; }
.tag-cat-list li a:hover { color: var(--green); }
.tag-cnt { background: rgba(27,61,47,.08); border-radius: 100px; padding: .1rem .42rem; font-size: .7rem; font-weight: 700; color: var(--green); }
.tag-pop { display: flex; align-items: flex-start; gap: .68rem; padding: .6rem 0; border-bottom: 1px solid rgba(0,0,0,.05); text-decoration: none; color: var(--text); transition: color var(--ease); }
.tag-pop:last-child { border-bottom: none; }
.tag-pop:hover { color: var(--green); }
.tag-pop-n { width: 22px; height: 22px; background: var(--amber); color: #fff; border-radius: 50%; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .12rem; }
.tag-pop-t { font-size: .83rem; font-weight: 600; line-height: 1.32; }
.tag-pop-d { font-size: .7rem; color: var(--text3); margin-top: .18rem; }

/* ═══════════════════════════════════════════════
   АРХІВ / ПОШУК
═══════════════════════════════════════════════ */
.arch-hero {
  background: var(--green);
  min-height: 260px;
  display: flex; align-items: center;
  padding: 2.75rem 0;
}
.arch-hero .wrap { color: #fff; }
.arch-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; margin: .4rem 0; }
.arch-desc { color: rgba(255,255,255,.72); font-family: var(--ff-ui); }

.arch-layout {
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 2.5rem;
  padding: 2.75rem 0 72px;
  align-items: start;
}

/* Sidebar */
.arch-side { position: sticky; top: 88px; }
.side-box {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--sh-sm);
}
.side-box-title {
  font-size: .88rem; font-weight: 700;
  color: var(--green);
  margin: 0 0 1rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--amber);
  display: flex; align-items: center; gap: .4rem;
}
.side-pop { display: flex; align-items: flex-start; gap: .65rem; padding: .58rem 0; border-bottom: 1px solid var(--border2); text-decoration: none; color: inherit; transition: color var(--ease); }
.side-pop:last-child { border-bottom: none; }
.side-pop:hover { color: var(--blue); }
.side-pop-n { width: 24px; height: 24px; background: var(--amber); color: #fff; border-radius: 50%; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.side-pop-t { font-size: .84rem; font-weight: 600; line-height: 1.33; }
.side-pop-d { font-size: .7rem; color: var(--text3); }
.side-cats { list-style: none; padding: 0; }
.side-cats li { border-bottom: 1px solid var(--border2); }
.side-cats li:last-child { border-bottom: none; }
.side-cats a { display: flex; align-items: center; gap: .5rem; padding: .6rem 0; font-size: .86rem; color: var(--text); transition: color var(--ease); }
.side-cats a:hover { color: var(--green); }
.side-cats .cnt { margin-left: auto; background: var(--cream2); border-radius: 100px; padding: .1em .5em; font-size: .7rem; color: var(--text3); }

/* Немає постів */
.no-posts { text-align: center; padding: 3.5rem 1rem; }
.no-posts-icon { font-size: 3rem; margin-bottom: .85rem; }
.no-posts h2 { color: var(--green); margin-bottom: .6rem; }
.no-posts p { color: var(--text2); }

/* ═══════════════════════════════════════════════
   КОМЕНТАРІ
═══════════════════════════════════════════════ */
.comments-wrap { margin-top: 2.75rem; padding-top: 2rem; border-top: 2px solid var(--border2); }
.comments-title { font-size: 1.4rem; color: var(--green); margin-bottom: 1.75rem; }
.comment-list { list-style: none; }
.comment-list .children { list-style: none; padding-left: 1.75rem; }
.comment-body { background: var(--white); border-radius: var(--r-lg); padding: 1.15rem; margin-bottom: .85rem; box-shadow: var(--sh-sm); }
.comment-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .75rem; }
.comment-head img { border-radius: 50%; }
.comment-author { font-weight: 700; color: var(--green); font-family: var(--ff-head); }
.comment-date { font-size: .76rem; color: var(--text3); font-family: var(--ff-ui); }
.comment-text { font-size: .93rem; line-height: 1.7; }
.comment-text p:last-child { margin: 0; }
.comment-reply-link a { font-size: .79rem; color: var(--blue); font-weight: 600; }

.comment-form-title { font-size: 1.25rem; color: var(--green); margin: 1.75rem 0 1.1rem; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .38rem; color: var(--text); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .93rem;
  font-family: inherit;
  background: var(--white);
  transition: border-color var(--ease);
  color: var(--text);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--green); }
.comment-form textarea { resize: vertical; min-height: 128px; }
.comment-form .submit { background: var(--green); color: #fff; border: none; padding: .72rem 2rem; border-radius: var(--r-md); font-size: .97rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background var(--ease); }
.comment-form .submit:hover { background: var(--blue); }

/* ═══════════════════════════════════════════════
   СТОРІНКА (page.php)
═══════════════════════════════════════════════ */
.page-hero {
  min-height: 340px;
  background-size: cover; background-position: center;
  position: relative;
  display: flex; align-items: flex-end;
  padding-bottom: 2.25rem;
}
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 40%, rgba(0,0,0,.18)); }
.page-hero .wrap { position: relative; z-index: 1; color: #fff; }
.page-hero-title { font-size: clamp(1.75rem, 4vw, 2.7rem); color: #fff; margin: .45rem 0 0; }
.page-title-bar { background: var(--green); padding: 2.25rem 0; }
.page-title { color: #fff; font-size: 1.9rem; margin: .4rem 0 0; }
.page-layout { display: grid; grid-template-columns: 1fr 288px; gap: 2.5rem; padding: 2.75rem 0 72px; align-items: start; }
.page-content { font-size: 1.03rem; line-height: 1.82; }
.page-content h2 { color: var(--green); margin: 1.9rem 0 .7rem; }
.page-content h3 { color: var(--blue); margin: 1.5rem 0 .5rem; }
.page-content img { max-width: 100%; border-radius: var(--r-lg); margin: 1.5rem 0; }
.page-content blockquote { border-left: 4px solid var(--amber); margin: 1.5rem 0; padding: .7rem 1.2rem; background: rgba(200,118,42,.07); border-radius: 0 var(--r-md) var(--r-md) 0; font-style: italic; }

/* ═══════════════════════════════════════════════
   МАГАЗИН
═══════════════════════════════════════════════ */
.shop-hero { background: var(--green); padding: 2.5rem 0; }
.shop-hero .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.shop-hero-title { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; margin: .3rem 0; }
.shop-hero-meta { color: rgba(255,255,255,.65); font-family: var(--ff-ui); font-size: .85rem; }
.shop-sort select { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: .48rem .9rem; border-radius: var(--r-md); font-size: .83rem; cursor: pointer; }
.shop-sort select option { background: var(--green); }

.shop-wrap { display: grid; grid-template-columns: 268px 1fr; gap: 2rem; padding: 2.5rem 0 72px; align-items: start; }

/* Фільтри */
.shop-filters {
  position: sticky; top: 88px;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  box-shadow: var(--sh-sm);
}
.shop-filters-head { display: flex; align-items: center; justify-content: space-between; font-size: .97rem; font-weight: 700; color: var(--green); margin-bottom: 1.1rem; padding-bottom: .65rem; border-bottom: 2px solid var(--amber); }
.filter-reset { font-size: .73rem; font-weight: 400; color: var(--amber); cursor: pointer; background: none; border: none; text-decoration: underline; }
.filter-group { margin-bottom: 1.35rem; }
.filter-group-lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); font-weight: 700; margin-bottom: .65rem; }
.filter-opts { display: flex; flex-direction: column; gap: .4rem; }
.filter-opt { display: flex; align-items: center; gap: .55rem; cursor: pointer; font-size: .88rem; color: var(--text); padding: .28rem 0; transition: color var(--ease); }
.filter-opt:hover { color: var(--green); }
.filter-opt input[type="checkbox"], .filter-opt input[type="radio"] { accent-color: var(--green); width: 15px; height: 15px; cursor: pointer; }
.filter-opt-n { margin-left: auto; font-size: .72rem; color: var(--text3); background: var(--cream2); padding: .1rem .4rem; border-radius: 100px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .65rem; }
.price-inputs input { width: 100%; padding: .42rem .6rem; border: 1.5px solid var(--border); border-radius: var(--r-md); font-size: .83rem; text-align: center; }
.price-inputs input:focus { outline: none; border-color: var(--green); }

/* Товари */
.shop-main {}
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; flex-wrap: wrap; gap: .65rem; }
.shop-count { font-size: .85rem; color: var(--text2); }
.shop-count strong { color: var(--green); }
.shop-views { display: flex; gap: .35rem; }
.view-btn { width: 32px; height: 32px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .88rem; transition: all var(--ease); }
.view-btn.on { background: var(--green); border-color: var(--green); color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.products-grid.list-view { grid-template-columns: 1fr; }

.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: all var(--ease);
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.product-card[data-hidden] { display: none; }
.product-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--cream2); }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-badge { position: absolute; top: .68rem; left: .68rem; z-index: 1; }
.product-badge span { display: inline-block; padding: .17em .55em; border-radius: 100px; font-family: var(--ff-ui); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.product-badge .new { background: var(--blue); }
.product-badge .sale { background: #e74c3c; }
.product-badge .hit { background: var(--amber); }
.product-wish { position: absolute; top: .68rem; right: .68rem; z-index: 1; width: 30px; height: 30px; background: rgba(255,255,255,.9); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: all var(--ease); }
.product-wish:hover { background: #fff; transform: scale(1.12); }
.product-card-body { padding: .95rem 1rem 1.1rem; }
.product-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--amber); font-weight: 700; margin-bottom: .25rem; display: block; }
.product-name { font-family: var(--ff-head); font-size: .97rem; font-weight: 700; color: var(--green); margin: 0 0 .45rem; line-height: 1.28; }
.product-name a { color: inherit; }
.product-name a:hover { color: var(--blue); }
.product-desc { font-size: .8rem; color: var(--text2); line-height: 1.5; margin-bottom: .8rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.product-price { font-family: var(--ff-head); font-size: 1.18rem; font-weight: 800; color: var(--green); }
.product-old { font-size: .82rem; color: var(--text3); text-decoration: line-through; margin-left: .3rem; }
.product-buy { background: var(--green); color: #fff; border: none; padding: .48rem .9rem; border-radius: var(--r-md); font-size: .8rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .35em; transition: background var(--ease); white-space: nowrap; font-family: inherit; }
.product-buy:hover { background: var(--blue); color: #fff; }

.products-grid.list-view .product-card { display: grid; grid-template-columns: 240px 1fr; }
.products-grid.list-view .product-card-img { aspect-ratio: auto; min-height: 190px; }

.no-products { grid-column: 1/-1; text-align: center; padding: 3.5rem 1rem; }

/* Single product */
.product-single-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: 2.5rem 0 72px; }
.product-gallery-main { aspect-ratio: 4/3; border-radius: var(--r-xl); overflow: hidden; background: var(--cream2); margin-bottom: .85rem; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.product-thumb { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color var(--ease); }
.product-thumb.on { border-color: var(--amber); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info-cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber); font-weight: 700; margin-bottom: .45rem; }
.product-info-title { font-size: clamp(1.45rem, 3vw, 1.95rem); color: var(--green); margin-bottom: .85rem; }
.product-info-price { display: flex; align-items: baseline; gap: .85rem; margin-bottom: 1.35rem; }
.product-info-price .price { font-size: 1.95rem; font-weight: 800; color: var(--green); }
.product-info-price .old { font-size: 1.05rem; color: var(--text3); text-decoration: line-through; }
.product-info-price .pct { background: #e74c3c; color: #fff; border-radius: 100px; padding: .14rem .55rem; font-size: .75rem; font-weight: 700; }
.product-info-desc { color: var(--text); line-height: 1.78; margin-bottom: 1.4rem; }
.product-info-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.product-meta-row { display: flex; gap: .9rem; margin-bottom: .45rem; font-size: .86rem; }
.product-meta-lbl { color: var(--text3); width: 115px; flex-shrink: 0; }
.product-meta-val { color: var(--text); font-weight: 500; }
.product-meta-val a { color: var(--blue); }

/* ═══════════════════════════════════════════════
   404
═══════════════════════════════════════════════ */
.page-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 72px 20px; }
.e404-num { font-family: var(--ff-head); font-size: 9rem; font-weight: 900; color: var(--border2); line-height: 1; margin-bottom: .85rem; }
.e404-title { font-size: 2rem; margin-bottom: .85rem; }
.e404-text { color: var(--text2); margin-bottom: 1.75rem; }
.e404-btns { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.cat-pills { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; margin-top: .9rem; }
.cat-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .85rem; background: rgba(27,61,47,.07); border-radius: 100px; font-size: .82rem; color: var(--green); text-decoration: none; transition: background var(--ease); }
.cat-pill:hover { background: rgba(27,61,47,.15); }

/* ═══════════════════════════════════════════════
   ПІДВАЛ
═══════════════════════════════════════════════ */
.site-footer { background: var(--green); color: rgba(255,255,255,.78); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 2.75rem; padding-bottom: 56px; }
.footer-brand-logo { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; text-decoration: none; }
.footer-brand-logo img { height: 44px; }
.footer-brand-name { font-family: var(--ff-head); font-size: 1.2rem; color: #fff; font-weight: 700; }
.footer-brand-tag { font-size: .65rem; color: var(--amber2); letter-spacing: .1em; text-transform: uppercase; }
.footer-desc { font-family: var(--ff-ui); font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.58); margin-bottom: 1.35rem; }
.footer-social { display: flex; gap: .65rem; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); border-radius: var(--r-md); color: rgba(255,255,255,.6); font-size: .87rem; transition: all var(--ease); }
.footer-social a:hover { background: var(--amber); color: #fff; transform: translateY(-2px); }
.footer-col-title { font-family: var(--ff-head); font-size: .92rem; font-weight: 700; color: #fff; margin-bottom: 1.15rem; position: relative; padding-bottom: .55rem; }
.footer-col-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--amber); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { font-family: var(--ff-ui); font-size: .85rem; color: rgba(255,255,255,.58); display: flex; align-items: center; gap: .35em; transition: all var(--ease); }
.footer-links a::before { content: '›'; font-size: .95rem; }
.footer-links a:hover { color: var(--amber2); padding-left: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 1.35rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-copy { font-family: var(--ff-ui); font-size: .77rem; color: rgba(255,255,255,.38); }
.footer-bot-links { display: flex; gap: 1.35rem; list-style: none; }
.footer-bot-links a { font-family: var(--ff-ui); font-size: .75rem; color: rgba(255,255,255,.38); }
.footer-bot-links a:hover { color: rgba(255,255,255,.75); }

/* ═══════════════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .wrap { padding-inline: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .header-search input { width: 140px; }
}
@media (max-width: 900px) {
  .posts-duo { grid-template-columns: 1fr; }
  .cat-layout, .arch-layout, .page-layout, .tag-layout, .single-wrap { grid-template-columns: 1fr; }
  .post-aside, .arch-side, .tag-aside { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .promo { flex-direction: column; padding: 2.5rem; text-align: center; }
  .promo-img { width: 100%; max-width: 280px; margin: 0 auto; }
  .stats-bar .wrap { grid-template-columns: 1fr 1fr; }
  .product-single-layout { grid-template-columns: 1fr; }
  .shop-wrap { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
}
@media (max-width: 768px) {
  .topbar { display: none; }
  .site-nav { display: none; }
  .header-search { display: none; }
  .nav-toggle { display: flex !important; }
  .header-row .wrap { grid-template-columns: auto 1fr auto; }
  .post-hero { max-height: 300px; }
  .hero { min-height: 380px; }
  .hero-title { font-size: 1.8rem; }
  .cats-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .grid-3, .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-bottom { flex-direction: column; gap: .6rem; text-align: center; }
  .footer-bot-links { justify-content: center; }
  .nl-form { flex-direction: column; }
  .comment-form-row { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding-inline: 1rem; }
  .cats-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .stats-bar .wrap { grid-template-columns: 1fr 1fr; }
  .promo { padding: 1.75rem; }
  .post-author { flex-direction: column; text-align: center; }
  .e404-num { font-size: 6rem; }
  .e404-btns { flex-direction: column; align-items: center; }
  .products-grid.list-view .product-card { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .cats-grid { grid-template-columns: 1fr; }
}
