/* ════════════════════════════════════════════════════════
   Eurosmak — main.css
   Generated from prototypes: smak24-home, category-archive, product-card
   ════════════════════════════════════════════════════════ */

/* ── 0. Custom Properties ──────────────────────────────── */
:root {
  --accent:       #16a34a;
  --accent-hover: #15803d;
  --accent-light: #dcfce7;
  --accent-text:  #15803d;
  --red:          #dc2626;
  --red-light:    #fee2e2;
  --red-text:     #b91c1c;
  --health:       #0ea5e9;
  --health-light: #e0f2fe;
  --health-text:  #0369a1;
  --health-dark:  #075985;
  --bg:           #f6f6f6;
  --surface:      #ffffff;
  --surface2:     #f3f2ef;
  --border:       #e5e4e0;
  --border2:      #d1d0cc;
  --text:         #1a1a18;
  --text2:        #6b6b67;
  --text3:        #9a9a96;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;
  --shadow:       0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg:    0 2px 8px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.10);
}

/* ── 1. Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── 2. Container ──────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── 3. Header ─────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  transition: box-shadow .2s;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
}

/* Logo */
.logo {
  font-family: 'Geologica', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-img { height: 38px; width: auto; object-fit: contain; }
.logo-text { font-family: 'Geologica', sans-serif; font-weight: 700; }

/* Search */
.search-wrap { flex: 1; max-width: 520px; position: relative; }
.search-wrap form { display: flex; align-items: center; }
.search-wrap input[type="search"],
.search-wrap input[type="text"] {
  width: 100%; height: 40px;
  padding: 0 44px 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface2);
  font-size: 14px; font-family: inherit;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.search-wrap input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.search-wrap input::placeholder { color: var(--text3); }
.search-btn {
  position: absolute; right: 0; top: 0;
  width: 40px; height: 40px;
  background: var(--accent); border: none;
  border-radius: 0 20px 20px 0;
  color: white;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.search-btn:hover { background: var(--accent-hover); }
.search-btn svg { width: 16px; height: 16px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.h-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: none; border: none; color: var(--text2);
  font-size: 10px; font-family: inherit;
  transition: color .15s, background .15s;
  position: relative;
}
.h-btn:hover { color: var(--text); background: var(--surface2); }
.h-btn svg    { width: 22px; height: 22px; }
.h-badge {
  position: absolute; top: 2px; right: 6px;
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* ── 4. Navbar ─────────────────────────────────────────── */
.site-navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 62px;
  z-index: 190;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 46px;
}

.btn-categories {
  display: flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px;
  background: var(--red); color: white;
  border: none; font-size: 13px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; flex-shrink: 0; margin-right: 4px;
  transition: background .15s;
}
.btn-categories:hover { background: #b91c1c; }
.btn-categories svg   { width: 16px; height: 16px; }

/* Nav links — WP menu renders ul>li>a */
.nav-links,
.nav-links ul {
  display: flex; align-items: center; list-style: none; margin: 0; padding: 0;
}
.nav-links li { position: relative; }
.nav-links li a,
.nav-links > a {
  display: flex; align-items: center; height: 46px; padding: 0 13px;
  font-size: 14px; color: var(--text2);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s; white-space: nowrap;
}
.nav-links li a:hover,
.nav-links li.current-menu-item > a,
.nav-links li.current-page-ancestor > a,
.nav-links li.current-menu-ancestor > a {
  color: var(--text);
}
.nav-links li.current-menu-item > a {
  color: var(--red); border-bottom-color: var(--red); font-weight: 600;
}

/* Language switcher */
.nav-lang { margin-left: auto; display: flex; gap: 2px; }
.lang-btn {
  padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 600;
  border: none; background: none; color: var(--text3); transition: all .15s; cursor: pointer;
}
.lang-btn:hover { color: var(--text); background: var(--surface2); }
.lang-btn.active { background: var(--surface2); color: var(--text); }

/* Categories dropdown */
#categories-menu {
  display: none;
  position: absolute; top: 108px; left: 0; right: 0; z-index: 180;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 24px 0;
}
#categories-menu.is-open { display: block; }
#categories-menu .container > ul {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; list-style: none;
}
#categories-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text2); transition: background .15s, color .15s;
}
#categories-menu a:hover { background: var(--surface2); color: var(--accent); }
#categories-menu .cat-icon-tiny {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: var(--surface); overflow-y: auto;
  padding: 20px;
  transform: translateX(-100%); transition: transform .3s;
}
#mobile-menu.is-open { display: block; transform: translateX(0); }
body.menu-open { overflow: hidden; }
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 299;
  background: rgba(0,0,0,.5);
}
.mobile-menu-overlay.is-open { display: block; }
.js-mobile-menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; background: none; color: var(--text); margin-left: auto;
}
.js-mobile-menu-toggle svg { width: 22px; height: 22px; }

/* ── 4b. Categories dropdown ──────────────────────────────── */
.categories-dropdown {
  display: none;
  position: absolute;
  top: 108px; /* header 62px + navbar 46px */
  left: 0; right: 0;
  z-index: 180;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.categories-dropdown.is-open { display: block; }
.categories-dropdown__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.cat-dropdown-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.cat-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text2);
  transition: background .15s, color .15s;
}
.cat-dropdown-item:hover { background: var(--surface2); color: var(--accent); }
.cat-dropdown-item small {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
}
.cat-dropdown-img {
  width: 28px; height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
@media (max-width: 1024px) { .cat-dropdown-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .cat-dropdown-list { grid-template-columns: repeat(2, 1fr); } }

/* ── 5. Sections layout ────────────────────────────────── */
.section {
  max-width: 1200px; margin: 40px auto 0; padding: 0 20px;
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: 'Geologica', sans-serif;
  font-size: 20px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; display: block;
  width: 4px; height: 22px; border-radius: 2px;
  background: var(--accent); flex-shrink: 0;
}
.section-title.red::before,
.section-title--red::before    { background: var(--red); }
.section-title.blue::before,
.section-title--blue::before   { background: var(--health); }
.section-link {
  font-size: 13px; color: var(--text2);
  display: flex; align-items: center; gap: 4px;
  transition: color .15s;
}
.section-link:hover { color: var(--accent); }
.section-link svg { width: 14px; height: 14px; }

/* ── 6. Hero ───────────────────────────────────────────── */
.hero {
  max-width: 1200px; margin: 20px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 320px; gap: 16px;
}
.hero-main {
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; height: 360px; background: #1a3a2a;
}

/* Prototype-style pure CSS slider */
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 36px;
  opacity: 0; transition: opacity .5s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-slide-overlay { position: absolute; inset: 0; }
.hero-content {
  position: relative; z-index: 1; color: white; max-width: 420px;
}
.hero-tag {
  display: inline-block; background: var(--red); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 10px;
}
.hero-title {
  font-family: 'Geologica', sans-serif;
  font-size: 28px; font-weight: 700; line-height: 1.25; margin-bottom: 10px;
}
.hero-sub { font-size: 14px; opacity: .85; margin-bottom: 20px; line-height: 1.5; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; background: var(--accent); color: white;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; border: none;
  transition: background .15s, transform .1s;
}
.hero-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Dots */
.hero-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.4); border: none; padding: 0;
  transition: width .3s, background .3s; cursor: pointer;
}
.hero-dot.active { width: 20px; background: white; }

/* Hero side banners */
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-side-banner {
  flex: 1; border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer; min-height: 0;
  display: block;
}
.hsb-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hsb-overlay { position: absolute; inset: 0; }
.hsb-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}
.hsb-tag { font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; margin-bottom: 4px; max-width: 120px;
  display: flex;
  justify-content: center;}
.hsb-title { font-family: 'Geologica', sans-serif; font-size: 16px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.hsb-subtitle { font-size: 12px; opacity: .75; margin-bottom: 8px; }
.hsb-cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 6px; border: none;
  width: fit-content; transition: opacity .15s; cursor: pointer;
}
.hsb-cta:hover { opacity: .85; }

/* ── 7. Categories grid ────────────────────────────────── */
.cats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.cat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 12px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--accent); }
.cat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0; overflow: hidden;
}
.cat-icon img { width: 32px; height: 32px; object-fit: contain; }
.cat-name  { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cat-count { font-size: 11px; color: var(--text3); }

/* ── 8. Product cards ──────────────────────────────────── */
.products-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.prod-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.prod-img-wrap {
  aspect-ratio: 1; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.prod-img-wrap img,
.prod-img {
  width: 72%; height: 72%; object-fit: contain;
  transition: transform .3s;
}
.prod-card:hover .prod-img { transform: scale(1.06); }

.prod-labels {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px; z-index: 1;
}
.prod-label {
  display: inline-flex; padding: 2px 7px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.4;
}
.lbl-new    { background: var(--accent-light); color: var(--accent-text); }
.lbl-sale   { background: var(--red-light);    color: var(--red-text);    }
.lbl-hot    { background: #fef3c7;             color: #92400e;            }
.lbl-health { background: var(--health-light); color: var(--health-text); }

.prod-fav {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); transition: all .15s; opacity: 0; z-index: 1;
}
.prod-card:hover .prod-fav { opacity: 1; }
.prod-fav:hover,
.prod-fav.is-active {
  color: var(--red); border-color: var(--red); background: var(--red-light);
}
.prod-fav svg { width: 14px; height: 14px; }

.prod-body { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; }
.prod-brand { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.prod-name  { font-size: 13px; line-height: 1.4; color: var(--text); flex: 1; margin-bottom: 10px; }
.prod-name a { color: inherit; }
.prod-name a:hover { color: var(--accent); }

.prod-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.star {
  width: 12px; height: 12px; color: #f59e0b;
}
.star--fill { color: #f59e0b; }
.prod-rating-count { font-size: 11px; color: var(--text3); margin-left: 2px; }

.prod-price-row { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.prod-price {
  font-family: 'Geologica', sans-serif; font-size: 17px; font-weight: 600; color: var(--text);
}
/* WooCommerce price HTML structure overrides */
.prod-price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }
.prod-price ins  { text-decoration: none; color: var(--red); }
.prod-price del  { font-size: 12px; color: var(--text3); font-weight: 400; }
.prod-price del .woocommerce-Price-amount { color: var(--text3); font-size: 12px; }

.prod-buy {
  width: 100%; height: 34px;
  background: var(--accent); color: white; border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, border-color .15s; cursor: pointer;
}
.prod-buy:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.prod-buy.loading { opacity: .6; pointer-events: none; }
.prod-buy svg { width: 14px; height: 14px; }

/* ── 9. Promo strip ────────────────────────────────────── */
.promo-strip {
  max-width: 1200px; margin: 40px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  overflow: visible;
}
.promo-banner {
  border-radius: var(--radius); overflow: hidden;
  position: relative; height: 180px;
  display: block;
}
.promo-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.promo-overlay   { position: absolute; inset: 0; }
.promo-content {
  position: relative; z-index: 1; padding: 28px;
  height: 100%; display: flex; flex-direction: column; justify-content: center; color: white;
}
.promo-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  opacity: .8; margin-bottom: 6px;
}
.promo-title { font-family: 'Geologica', sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.promo-sub { font-size: 13px; opacity: .8; margin-bottom: 14px; }
.promo-btn {
  display: inline-flex; align-items: center;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; border: 2px solid white;
  color: white; background: transparent; width: fit-content;
  transition: background .15s, color .15s; cursor: pointer;
}
.promo-btn:hover { background: white; color: var(--text); }

/* Promo banner: image floating above block */
.promo-banner--img-overlay,
.hero-side-banner--img-overlay {
  overflow: visible;
}
/* Restore rounded corners on inner layers (parent overflow:visible breaks clipping) */
.promo-banner--img-overlay .promo-banner-bg,
.promo-banner--img-overlay .promo-overlay {
  border-radius: var(--radius);
}
.hero-side-banner--img-overlay .hsb-bg,
.hero-side-banner--img-overlay .hsb-overlay {
  border-radius: var(--radius);
}
.promo-img-float {
  position: absolute;
  bottom: 0; right: -5px;
  height: calc(100% + 28px);
  width: auto; max-width: 48%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.25));
}
/* Rotate variants — обрати в адмін-панелі банера */
.promo-img-float--r0   { transform: rotate(0deg); }
.promo-img-float--r5   { transform: rotate(5deg); }
.promo-img-float--r10  { transform: rotate(10deg); }
.promo-img-float--r15  { transform: rotate(15deg); }
.promo-img-float--r20  { transform: rotate(20deg); }
.promo-img-float--rm5  { transform: rotate(-5deg); }
.promo-img-float--rm10 { transform: rotate(-10deg); }
.promo-img-float--rm15 { transform: rotate(-15deg); }
.promo-img-float--rm20 { transform: rotate(-20deg); }
/* Clip siblings above the float so content text doesn't overlap */
.promo-banner--img-overlay .promo-content,
.hero-side-banner--img-overlay .hsb-content {
  max-width: 58%;
}

/* ── 10. Health section ────────────────────────────────── */
.health-section {
  max-width: 1200px; margin: 48px auto 0; padding: 0 20px;
}
.health-banner {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
  border-radius: var(--radius-lg); padding: 36px 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.health-banner::before {
  content: ''; position: absolute; top: -60px; right: 200px;
  width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.05);
  pointer-events: none;
}
.health-banner::after {
  content: ''; position: absolute; bottom: -80px; right: 80px;
  width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06);
  pointer-events: none;
}
.health-left { position: relative; z-index: 1; }
.health-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 14px;
}
.health-tag svg { width: 13px; height: 13px; }
.health-title {
  font-family: 'Geologica', sans-serif;
  font-size: 26px; font-weight: 700; color: white; line-height: 1.3; margin-bottom: 10px;
}
.health-sub {
  font-size: 14px; color: rgba(255,255,255,.75);
  line-height: 1.6; margin-bottom: 22px; max-width: 500px;
}
.health-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.health-pill {
  background: rgba(255,255,255,.15); color: white;
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
}
.health-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; background: white; color: var(--health-dark);
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; border: none;
  transition: transform .15s, box-shadow .15s; cursor: pointer;
}
.health-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.health-cta svg { width: 16px; height: 16px; }
.health-stats {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.health-stat {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 14px 20px; text-align: center; min-width: 130px;
}
.health-stat-num {
  font-family: 'Geologica', sans-serif;
  font-size: 26px; font-weight: 700; color: white; line-height: 1;
}
.health-stat-label { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 4px; }
.health-products { margin-top: 24px; }

/* Pulse icon for health tag */
.icon-pulse { display: inline-flex; align-items: center; }

/* ── 11. Articles ──────────────────────────────────────── */
.articles-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.article-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.article-img {
  aspect-ratio: 16/9; background: var(--surface2);
  display: block; overflow: hidden;
}
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .article-img img { transform: scale(1.04); }
.article-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.article-cat {
  display: inline-block; margin-bottom: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 8px; border-radius: 4px;
  background: var(--accent-light); color: var(--accent-text);
}
.article-title {
  font-family: 'Geologica', sans-serif;
  font-size: 15px; font-weight: 500; line-height: 1.4; margin-bottom: 8px; color: var(--text);
  flex: 1;
}
.article-title a { color: inherit; }
.article-title a:hover { color: var(--accent); }
.article-excerpt { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }
.article-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; gap: 8px;
}
.article-date {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text3);
}
.article-date svg { width: 12px; height: 12px; }
.article-link {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--accent); transition: gap .15s;
}
.article-link:hover { gap: 6px; }
.article-link svg { width: 12px; height: 12px; }

/* ── 12. Trust strip ───────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 48px 0 0;
}
.trust-inner {
  max-width: 1200px; margin: 0 auto; padding: 24px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-icon {
width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.trust-icon svg { width: 20px; height: 20px; }
.trust-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.trust-sub   { font-size: 12px; color: var(--text2); line-height: 1.4; }

/* ── 13. Footer ────────────────────────────────────────── */
.site-footer { background: #18181b; padding: 48px 0 24px;}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top {
  display: grid; grid-template-columns: 240px 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid #27272a;
}
.footer-logo {
  display: block; margin-bottom: 10px;
  font-family: 'Geologica', sans-serif; font-size: 22px; font-weight: 700; color: #ef4444;
}
.footer-logo-img { height: 40px; width: auto; object-fit: contain; }
.footer-desc { font-size: 13px; color: #71717a; line-height: 1.6; margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: #27272a; border: none; color: #a1a1aa;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.social-btn:hover { background: var(--accent); color: white; }
.social-btn svg { width: 15px; height: 15px; }
.footer-col-title {
  font-size: 13px; font-weight: 700; color: #e4e4e7;
  margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a,
.footer-links li a { font-size: 13px; color: #71717a; transition: color .15s; }
.footer-links a:hover { color: #e4e4e7; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #71717a; text-decoration: none;
}
.footer-contact-item:hover { color: #a1a1aa; }
.footer-contact-item svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-schedule { display: flex; flex-direction: column; gap: 6px; }
.footer-schedule-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #71717a;
}
.footer-schedule-row span:last-child { color: #a1a1aa; }
.footer-bottom {
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: #52525b; }
.footer-pay  { display: flex; align-items: center; gap: 8px; }
.pay-logo {
  height: 22px; padding: 4px 8px; background: #27272a; border-radius: 4px;
  font-size: 10px; font-weight: 700; color: #a1a1aa;
  display: flex; align-items: center;
}

/* ── 14. Scroll to top ─────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(22,163,74,.4);
  transition: opacity .3s, transform .3s;
  opacity: 0; pointer-events: none;
}
.scroll-top.visible   { opacity: 1; pointer-events: auto; }
.scroll-top:hover     { transform: translateY(-2px); }
.scroll-top svg       { width: 20px; height: 20px; }

/* ── 15. Breadcrumb ────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text3); flex-wrap: wrap;
  padding: 14px 0;
}
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border2); }

/* ── 16. Pagination ────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 4px;
  margin: 32px 0; flex-wrap: wrap;
}
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text2);
  transition: background .15s, border-color .15s, color .15s;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: white; }
.pagination .dots { border-color: transparent; pointer-events: none; }

/* ── 17. Category page (WooCommerce archive) ───────────── */
.cat-page { padding: 0 0 40px; margin-top: 0; }
.cat-page-header { padding: 16px 0 0; }
.woocommerce-products-header .page-title {
  font-family: 'Geologica', sans-serif;
  font-size: 24px; font-weight: 700; margin-bottom: 10px;
}
.woocommerce-products-header__image { display: none; } /* hide large header image if set */
.term-description {
  font-size: 14px; color: var(--text2); line-height: 1.6; max-width: 700px;
  margin-bottom: 20px;
}
.cat-page-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  align-items: start;
}
.cat-sidebar { position: sticky; top: 130px; }
.cat-main {}

/* Sort bar */
.woocommerce-ordering,
.sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.woocommerce-result-count {
  font-size: 13px; color: var(--text2); margin: 0;
}
.woocommerce-ordering select,
.sort-select {
  height: 36px; padding: 0 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  font-size: 13px; font-family: inherit; color: var(--text);
  outline: none; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b67' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
  padding-right: 30px;
}

/* Products grid on category page */
.products-grid { width: 100%; }
.products-grid ul.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.products-grid ul.products li.product {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.products-grid ul.products li.product:hover {
  box-shadow: var(--shadow-lg); transform: translateY(-3px);
}

/* Sidebar filter */
.category-filter,
.widget.woocommerce-widget-layered-nav,
.widget.widget_price_filter,
.widget.woocommerce-widget-layered-nav-filters {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin-bottom: 16px;
}
.widget-title {
  font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--text); font-family: 'Geologica', sans-serif;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; font-size: 14px; color: var(--text2);
}
.widget ul li a { color: var(--text2); transition: color .15s; }
.widget ul li a:hover { color: var(--accent); }
.widget ul li.chosen > a { color: var(--accent); font-weight: 600; }
.widget .count { font-size: 12px; color: var(--text3); margin-left: auto; }
.price_slider_wrapper { padding: 4px 0; }
.price_slider.ui-slider {
  background: var(--surface2); border-radius: 4px; height: 4px; border: none; margin: 10px 0;
}
.price_slider .ui-slider-range { background: var(--accent); border: none; }
.price_slider .ui-slider-handle {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); top: -6px; outline: none;
}
.price_label { font-size: 13px; color: var(--text2); margin-bottom: 10px; }

/* ── 18. Single post (blog) ────────────────────────────── */
.single-post-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px 60px; }
.post-header { margin-bottom: 24px; }
.post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.post-cat {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  background: var(--accent-light); color: var(--accent-text); letter-spacing: .04em;
}
.post-title {
  font-family: 'Geologica', sans-serif;
  font-size: 32px; font-weight: 700; line-height: 1.3; margin-bottom: 14px;
}
.post-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text2);
}
.post-meta-item { display: flex; align-items: center; gap: 5px; }
.post-meta-item svg { width: 14px; height: 14px; color: var(--text3); }
.post-feat-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.post-feat-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.post-content h2 { font-family: 'Geologica', sans-serif; font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.post-content h3 { font-family: 'Geologica', sans-serif; font-size: 18px; font-weight: 600; margin: 22px 0 10px; }
.post-content p  { margin-bottom: 16px; }
.post-content ul { margin: 0 0 16px 20px; }
.post-content ol { margin: 0 0 16px 20px; }
.post-content li { margin-bottom: 6px; }
.post-content img { border-radius: var(--radius-sm); margin: 16px 0; }
.post-content a { color: var(--accent); }
.post-content a:hover { text-decoration: underline; }
.post-content blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px;
  background: var(--accent-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; font-style: italic;
}

/* ── 19. Page templates ────────────────────────────────── */
.page-wrap { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; }
.page-title-wrap { margin-bottom: 24px; }
.page-title-wrap h1 {
  font-family: 'Geologica', sans-serif; font-size: 28px; font-weight: 700;
}
.entry-content { font-size: 16px; line-height: 1.7; }
.entry-content p { margin-bottom: 14px; }
.entry-content h2 { font-family: 'Geologica', sans-serif; font-size: 22px; font-weight: 700; margin: 24px 0 10px; }

/* ── 20. 404 / not found ───────────────────────────────── */
.error-page {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px;
}
.error-code {
  font-family: 'Geologica', sans-serif;
  font-size: 100px; font-weight: 700; color: var(--border2); line-height: 1;
}
.error-title {
  font-family: 'Geologica', sans-serif;
  font-size: 28px; font-weight: 700; margin: 16px 0 12px;
}
.error-text { font-size: 16px; color: var(--text2); margin-bottom: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--accent); color: white;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; border: none;
  transition: background .15s; cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); }

/* ── 21. Search results ────────────────────────────────── */
.search-page-wrap  { padding-bottom: 60px; }
.search-page-title { font-family: 'Geologica', sans-serif; font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.search-page-title em { font-style: normal; color: var(--accent); }

/* ── 22. WordPress alignment helpers ──────────────────── */
.alignnone  { margin: 0 0 16px; }
.alignleft  { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--text3); text-align: center; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; margin: 0;
  overflow: visible; width: auto;
  background: var(--surface); padding: 10px 20px;
  top: 0; left: 0; position: fixed; z-index: 9999;
}

/* ── 23. Responsive ────────────────────────────────────── */
@media (max-width: 1100px) {
  .cats-grid     { grid-template-columns: repeat(5, 1fr); }
  .products-row  { grid-template-columns: repeat(4, 1fr); }
  .health-products .products-row { grid-template-columns: repeat(4, 1fr); }
  .footer-top    { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 1024px) {
  .cats-grid    { grid-template-columns: repeat(4, 1fr); }
  .cat-page-layout { grid-template-columns: 230px 1fr; }
  .products-grid ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .hero                  { grid-template-columns: 1fr; }
  .hero-side             { flex-direction: row; height: 140px; }
  .hero-side-banner      { flex: 1; min-height: unset; }
  .hero-main             { height: 280px; }
  .hero-slide            { height: 280px; }
  .cats-grid             { grid-template-columns: repeat(3, 1fr); }
  .products-row          { grid-template-columns: repeat(3, 1fr); }
  .promo-strip           { grid-template-columns: 1fr; }
  .articles-grid         { grid-template-columns: 1fr 1fr; }
  .trust-inner           { grid-template-columns: repeat(2, 1fr); }
  .health-banner         { grid-template-columns: 1fr; }
  .health-stats          { flex-direction: row; }
  .health-products .products-row { grid-template-columns: repeat(3, 1fr); }
  .footer-top            { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cat-page-layout       { grid-template-columns: 1fr; }
  .cat-sidebar           { position: static; display: none; } /* replaced by accordion on mobile */
  .products-grid ul.products { grid-template-columns: repeat(3, 1fr); }
  .post-title            { font-size: 24px; }
  .nav-links li a        { padding: 0 9px; font-size: 13px; }
}

@media (max-width: 640px) {
  .hero-main             { height: 220px; }
  .hero-slide            { height: 220px; padding: 20px; }
  .hero-title            { font-size: 20px; }
  .cats-grid             { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-icon              { width: 42px; height: 42px; font-size: 20px; }
  .products-row          { grid-template-columns: repeat(2, 1fr); }
  .health-products .products-row { grid-template-columns: repeat(2, 1fr); }
  .articles-grid         { grid-template-columns: 1fr; }
  .trust-inner           { grid-template-columns: 1fr; }
  .nav-links             { display: none; }
  .js-mobile-menu-toggle { display: flex; }
  .footer-top            { grid-template-columns: 1fr; }
  .health-banner         { padding: 24px 20px; }
  .health-title          { font-size: 20px; }
  .h-btn span            { display: none; }
  .promo-strip           { gap: 10px; }
  .products-grid ul.products { grid-template-columns: repeat(2, 1fr); }
  .btn-categories span   { display: none; }
  .btn-categories        { padding: 0 14px; }
}
