/*
Theme Name: Varsiimuri.fi Tech Clean
Theme URI: https://varsiimuri.fi/
Author: Trident Web Solutions SRL
Author URI: https://tridentwebsolutions.ro/
Description: A fast, responsive Finnish WordPress theme for stick-vacuum reviews, guides, product blocks, contact messages, and editorial tech content.
Version: 1.0.8
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: varsiimuri-fi
Tags: blog, custom-logo, custom-menu, featured-images, footer-widgets, one-column, two-columns, grid-layout, block-styles, wide-blocks
*/

:root {
  --vfi-ink: #111116;
  --vfi-ink-soft: #30303a;
  --vfi-muted: #676777;
  --vfi-border: #e9ecf3;
  --vfi-surface: #ffffff;
  --vfi-soft: #f7f9fc;
  --vfi-soft-blue: #eef3ff;
  --vfi-header-gradient: linear-gradient(135deg, #f5fffb 0%, #eefaf6 46%, #edf3ff 100%);
  --vfi-footer-gradient: linear-gradient(135deg, #f5fffb 0%, #eafaf4 48%, #e9f0ff 100%);
  --vfi-mint: #5bc0a6;
  --vfi-mint-dark: #32977d;
  --vfi-violet: #5638ff;
  --vfi-violet-dark: #3218d8;
  --vfi-lilac: #eff0ff;
  --vfi-shadow: 0 18px 50px rgba(17, 17, 22, .08);
  --vfi-radius-xl: 30px;
  --vfi-radius-lg: 22px;
  --vfi-radius-md: 16px;
  --vfi-container: 1180px;
  --vfi-content: 1080px;
  --vfi-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vfi-display: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vfi-ink);
  background: var(--vfi-surface);
  font-family: var(--vfi-font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--vfi-violet); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--vfi-violet-dark); }
img, svg, video { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { top: 10px; left: 10px; z-index: 9999; width: auto; height: auto; padding: 10px 14px; background: #fff; clip: auto; }

.vfi-container {
  width: min(calc(100% - 36px), var(--vfi-container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  background: var(--vfi-header-gradient);
  border-bottom: 1px solid rgba(91, 192, 166, .28);
  box-shadow: 0 10px 34px rgba(17, 17, 22, .045);
}
.site-header::before { content: none; }
.header-inner {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 18px 0;
}
.site-branding { align-self: center; }
.custom-logo-link, .fallback-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  color: var(--vfi-ink);
  text-decoration: none;
}
.custom-logo { width: min(252px, 44vw); max-height: 64px; object-fit: contain; }
.fallback-logo img { width: min(252px, 48vw); max-height: 64px; display: block; }
.site-description { margin: 6px 0 0; color: var(--vfi-muted); font-size: .78rem; }
.header-nav-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 22px; }
.primary-menu,
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-menu { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0; }
.primary-menu > li { display: inline-flex; align-items: center; }
.primary-menu > li + li::before { content: "/"; margin: 0 17px; color: var(--vfi-ink); font-weight: 700; }
.primary-menu a { color: var(--vfi-ink); text-decoration: none; font-weight: 650; font-size: 1.02rem; line-height: 1.25; }
.primary-menu a:hover { color: var(--vfi-violet); }
.header-socials { display: flex; align-items: center; gap: 10px; }
.vfi-social {
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 2px solid var(--vfi-mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vfi-ink);
  text-decoration: none;
  font-weight: 900;
  font-size: .9rem;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.vfi-social:hover { transform: translateY(-2px); background: var(--vfi-mint); color: #fff; }
.site-header .vfi-social { background: rgba(255,255,255,.54); }
.menu-toggle {
  display: none;
  border: 0;
  background: var(--vfi-ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
}
.menu-toggle .bars { display: inline-grid; gap: 4px; margin-right: 9px; vertical-align: middle; }
.menu-toggle .bars span { width: 18px; height: 2px; background: currentColor; display: block; }

/* Common */
.vfi-pill,
.wp-block-button__link,
.vfi-button,
button[type="submit"] {
  border: 0;
  border-radius: 999px;
  padding: 14px 25px;
  background: var(--vfi-mint);
  color: #fff;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.1;
  box-shadow: 0 14px 24px rgba(91, 192, 166, .24);
}
.vfi-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover { background: var(--vfi-mint-dark); color: #fff; }
.vfi-button.is-dark { background: var(--vfi-ink); }
.vfi-button.is-dark:hover { background: #000; }
.vfi-section { padding: clamp(48px, 8vw, 96px) 0; }
.vfi-section-header { max-width: 820px; margin: 0 auto 32px; text-align: center; }
.vfi-kicker,
.vfi-meta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--vfi-violet);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.vfi-kicker::before,
.vfi-kicker::after,
.vfi-meta-kicker::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  line-height: 1;
}
.vfi-section-title,
.entry-title,
.archive-title,
.page-title {
  font-family: var(--vfi-display);
  font-size: clamp(2.2rem, 5vw, 4.85rem);
  line-height: .95;
  letter-spacing: -.07em;
  margin: 14px 0;
  text-wrap: balance;
}
.vfi-section-lead { color: var(--vfi-muted); font-size: clamp(1.03rem, 1.6vw, 1.25rem); max-width: 720px; margin-inline: auto; }

/* Homepage */
.vfi-hero {
  padding: clamp(56px, 9vw, 136px) 0 clamp(42px, 7vw, 92px);
  background:
    radial-gradient(circle at 72% 20%, rgba(91, 192, 166, .22), transparent 28%),
    radial-gradient(circle at 12% 78%, rgba(86, 56, 255, .10), transparent 26%),
    #fff;
}
.vfi-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.vfi-hero h1 { font-family: var(--vfi-display); font-size: clamp(2.8rem, 7vw, 6.1rem); line-height: .9; letter-spacing: -.082em; margin: 0 0 20px; }
.vfi-hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--vfi-ink-soft); max-width: 680px; }
.vfi-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.vfi-hero-card {
  position: relative;
  min-height: 450px;
  border-radius: 44px;
  background: linear-gradient(140deg, #ffffff 0%, #f2fbf7 48%, #e9f0ff 100%);
  box-shadow: var(--vfi-shadow);
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
}
.vfi-hero-card::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 38px;
  background:
    radial-gradient(circle, rgba(91, 192, 166, .42) 0 14%, transparent 15% 100%) 0 0 / 72px 72px,
    radial-gradient(circle, rgba(86, 56, 255, .16) 0 18%, transparent 19% 100%) 35px 28px / 98px 98px;
  opacity: .85;
}
.vfi-hero-vacuum {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  width: min(78%, 360px);
  filter: drop-shadow(0 24px 24px rgba(86, 56, 255, .22));
}
.vfi-floating-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(280px, calc(100% - 48px));
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(12px);
  box-shadow: var(--vfi-shadow);
  font-weight: 750;
}
.vfi-floating-note span { color: var(--vfi-violet); }

/* Cards and grids */
.vfi-grid,
.posts-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card,
.vfi-card {
  background: #fff;
  border: 1px solid var(--vfi-border);
  border-radius: var(--vfi-radius-xl);
  box-shadow: 0 16px 40px rgba(17,17,22,.06);
  overflow: hidden;
}
.post-card { display: flex; flex-direction: column; min-height: 100%; }
.post-card-thumb { display: block; aspect-ratio: 16/10; background: var(--vfi-soft-blue); overflow: hidden; border-radius: 24px; margin: 14px 14px 0; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.035); }
.post-card-body { padding: 21px 22px 24px; }
.post-card-title { font-family: var(--vfi-display); font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.05; letter-spacing: -.05em; margin: 6px 0 12px; }
.post-card-title a { color: var(--vfi-ink); text-decoration: none; }
.post-card-title a:hover { color: var(--vfi-violet); }
.post-card-meta,
.entry-meta { color: var(--vfi-muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.post-card-excerpt { color: var(--vfi-ink-soft); margin: 12px 0 0; }

/* Product cards */
.vfi-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 390px));
  gap: 18px;
  justify-content: center;
  align-items: start;
}
.vfi-product-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "badge"
    "image"
    "title"
    "bestfor"
    "specs"
    "price"
    "stars"
    "cta";
  row-gap: 8px;
  align-items: start;
  min-height: 0;
  max-width: 390px;
  width: 100%;
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17,17,22,.065);
  border: 1px solid var(--vfi-border);
  overflow: hidden;
  justify-self: center;
  text-align: center;
}
.vfi-product-badge {
  grid-area: badge;
  justify-self: start;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--vfi-lilac);
  color: #4058a6;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.vfi-product-image {
  grid-area: image;
  aspect-ratio: 1 / 1;
  width: 148px;
  max-width: 48%;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 7px;
  margin: 0 auto 2px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5fffb 0%, #eef6ff 100%);
  border: 1px solid rgba(64,88,166,.12);
}
.vfi-product-image img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.vfi-product-title {
  grid-area: title;
  font-family: var(--vfi-display);
  font-size: clamp(1.16rem, 1.5vw, 1.36rem);
  line-height: 1.05;
  letter-spacing: -.045em;
  text-align: center;
  margin: 1px 0 0;
}
.vfi-product-bestfor {
  grid-area: bestfor;
  text-align: center;
  color: var(--vfi-violet);
  font-weight: 850;
  font-size: .74rem;
  line-height: 1.2;
  margin: 0;
}
.vfi-product-specs,
.vfi-check-list { list-style: none; padding: 0; margin: 0 0 10px; }
.vfi-product-specs {
  grid-area: specs;
  margin: 2px auto 0;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}
.vfi-product-specs li,
.vfi-check-list li { position: relative; padding-left: 22px; margin: 3px 0; color: var(--vfi-ink-soft); }
.vfi-product-specs li { font-size: .80rem; line-height: 1.22; }
.vfi-product-specs li::before,
.vfi-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--vfi-mint-dark);
  font-weight: 900;
  font-size: 1rem;
}
.vfi-stars {
  grid-area: stars;
  color: #4052a7;
  text-align: center;
  letter-spacing: 1.1px;
  font-size: .92rem;
  margin: 0;
}
.vfi-product-cta {
  grid-area: cta;
  display: flex;
  justify-content: stretch;
  margin-top: 2px;
}
.vfi-product-cta .vfi-button {
  width: 100%;
  min-width: 0;
  padding-top: 9px;
  padding-bottom: 9px;
  font-size: .80rem;
}
.vfi-product-price {
  grid-area: price;
  margin-top: 0;
  padding-top: 6px;
  border-top: 1px solid var(--vfi-border);
  color: var(--vfi-muted);
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 750;
  text-align: center;
}

/* Top-level product cards: keep two cards in a centered row even if they were inserted separately,
   not inside the Product Grid wrapper. */
.entry-content:has(> .wp-block-varsiimuri-fi-product-card.vfi-product-card),
.entry-content:has(> .vfi-product-card) {
  text-align: center;
}
.entry-content:has(> .wp-block-varsiimuri-fi-product-card.vfi-product-card) > :not(.wp-block-varsiimuri-fi-product-card):not(.vfi-product-card),
.entry-content:has(> .vfi-product-card) > :not(.wp-block-varsiimuri-fi-product-card):not(.vfi-product-card) {
  text-align: left;
}
.entry-content > .wp-block-varsiimuri-fi-product-card.vfi-product-card,
.entry-content > .vfi-product-card {
  display: inline-grid;
  width: min(calc(50% - 18px), 390px);
  max-width: 390px;
  margin: 0 9px 20px;
  vertical-align: top;
}
.entry-content > .wp-block-varsiimuri-fi-product-card.vfi-product-card + :not(.wp-block-varsiimuri-fi-product-card) {
  clear: both;
}

/* Affiliate / modern block */
.vfi-affiliate-block {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: center;
  border-radius: 34px;
  padding: clamp(22px, 4vw, 42px);
  margin: 32px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #ecfff8 100%);
  border: 1px solid rgba(86,56,255,.10);
  box-shadow: 0 18px 45px rgba(17,17,22,.07);
}
.vfi-affiliate-block.is-dark { background: linear-gradient(135deg, #121217 0%, #282344 100%); color: #fff; }
.vfi-affiliate-image { border-radius: 26px; background: rgba(255,255,255,.74); display: grid; place-items: center; min-height: 230px; overflow: hidden; }
.vfi-affiliate-image img { width: 100%; height: 100%; object-fit: cover; }
.vfi-affiliate-title { font-family: var(--vfi-display); font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: .96; letter-spacing: -.06em; margin: 0 0 14px; }
.vfi-affiliate-desc { color: inherit; opacity: .82; margin: 0 0 22px; }

/* Tips and reviews */
.vfi-tip-card,
.vfi-review-card {
  background: #fff;
  border: 1px solid var(--vfi-border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 14px 34px rgba(17,17,22,.055);
}
.vfi-tip-card { background: linear-gradient(145deg, #fff 0%, #f1fff9 54%, #f2f3ff 100%); }
.vfi-tip-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--vfi-ink);
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.vfi-tip-title,
.vfi-review-name { font-family: var(--vfi-display); font-size: 1.45rem; line-height: 1.05; letter-spacing: -.04em; margin: 0 0 10px; }
.vfi-tip-text,
.vfi-review-text { color: var(--vfi-ink-soft); margin: 0; }
.vfi-review-card { position: relative; }
.vfi-review-card::before { content: "“"; position: absolute; top: 8px; right: 22px; color: rgba(86,56,255,.13); font-size: 7rem; font-family: Georgia, serif; line-height: 1; }
.vfi-review-role { color: var(--vfi-muted); font-size: .92rem; margin-bottom: 14px; }

/* Content */
.site-main { min-height: 50vh; }
.archive-header,
.single-header,
.page-header { padding: clamp(44px, 8vw, 92px) 0 28px; }
.single-header .entry-title { max-width: 980px; }
.single-featured-image { margin: 0 auto 42px; width: min(calc(100% - 36px), var(--vfi-container)); border-radius: 34px; overflow: hidden; box-shadow: var(--vfi-shadow); }
.single-featured-image img { width: 100%; display: block; object-fit: cover; max-height: 660px; }
.content-wrap { width: min(calc(100% - 36px), var(--vfi-content)); margin-inline: auto; }
.entry-content { color: var(--vfi-ink-soft); }
.entry-content > * { max-width: var(--vfi-content); }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--vfi-ink);
  font-family: var(--vfi-display);
  letter-spacing: -.05em;
  line-height: 1.05;
  margin-top: 1.25em;
  margin-bottom: .32em;
  text-wrap: balance;
}
.entry-content h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.entry-content h3 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.entry-content .vfi-product-title { font-size: clamp(1.16rem, 1.5vw, 1.36rem); line-height: 1.05; margin: 1px 0 0; }
.entry-content p { margin: .78em 0; }
.entry-content strong { color: var(--vfi-ink); font-weight: 850; }
.entry-content em { color: #454154; }
.entry-content ul,
.entry-content ol { padding-left: 1.35em; }
.entry-content li { margin: .32em 0; }
.entry-content blockquote {
  position: relative;
  margin: 34px 0;
  padding: 26px 28px 26px 78px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--vfi-soft-blue), #f3fff9);
  color: var(--vfi-ink);
  font-size: 1.12rem;
  font-weight: 650;
}
.entry-content blockquote::before {
  content: "";
  position: absolute;
  left: 23px; top: 25px;
  width: 36px; height: 36px;
  background: url('assets/img/fav-vacuum.svg') center / contain no-repeat;
}
.entry-content blockquote cite { display: block; margin-top: 10px; color: var(--vfi-muted); font-style: normal; font-size: .9rem; }
.entry-content .has-small-font-size { font-size: .9rem; }
.entry-content .has-medium-font-size { font-size: 1.18rem; }
.entry-content .has-large-font-size { font-size: 1.42rem; }
.entry-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  border-spacing: 0;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  margin: 28px 0;
  border: 1px solid var(--vfi-border);
  border-radius: 18px;
}
.entry-content th,
.entry-content td { padding: 14px 16px; border-bottom: 1px solid var(--vfi-border); text-align: left; }
.entry-content th { background: var(--vfi-soft-blue); color: var(--vfi-ink); font-weight: 850; }
.entry-content tr:last-child td { border-bottom: 0; }
.wp-block-image img { border-radius: 24px; }
.wp-block-separator { border: 0; height: 1px; background: var(--vfi-border); margin: 42px 0; }

.related-posts { padding: 62px 0 86px; background: var(--vfi-soft); margin-top: 64px; }
.related-posts h2 { font-family: var(--vfi-display); font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.06em; line-height: 1; margin: 0 0 28px; }

/* Contact */
.vfi-contact-shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 34px; align-items: start; padding-bottom: 80px; }
.vfi-contact-card,
.vfi-form-card { border-radius: 30px; background: #fff; border: 1px solid var(--vfi-border); box-shadow: var(--vfi-shadow); padding: clamp(24px, 4vw, 38px); }
.vfi-form-row { margin-bottom: 16px; }
.vfi-form-row label { display: block; font-weight: 800; margin-bottom: 7px; color: var(--vfi-ink); }
.vfi-form-row input,
.vfi-form-row textarea {
  width: 100%;
  border: 1px solid var(--vfi-border);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fbfcff;
  color: var(--vfi-ink);
}
.vfi-form-row textarea { min-height: 170px; resize: vertical; }
.vfi-form-status { border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; font-weight: 750; }
.vfi-form-status.success { background: #e8fff7; color: #12604e; }
.vfi-form-status.error { background: #fff0f0; color: #9a1a1a; }
.vfi-honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--vfi-footer-gradient);
  color: var(--vfi-ink-soft);
  padding: clamp(54px, 8vw, 92px) 0 46px;
  border-top: 1px solid rgba(91, 192, 166, .28);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 192, 166, .22), transparent 68%);
  pointer-events: none;
}
.footer-top { position: relative; display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; margin-bottom: 42px; }
.footer-branding .custom-logo,
.footer-branding .fallback-logo img { width: min(252px, 70vw); max-height: 64px; object-fit: contain; }
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer .vfi-social { color: var(--vfi-mint-dark); border-color: var(--vfi-mint); background: rgba(255,255,255,.58); }
.site-footer .vfi-social:hover { color: #fff; background: var(--vfi-mint); }
.footer-menus { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; border-top: 1px solid rgba(17,17,22,.10); padding-top: 34px; }
.footer-menu-title { color: var(--vfi-ink); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; margin: 0 0 16px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 10px 0; }
.footer-menu li { display: inline-flex; align-items: center; }
.footer-menu li + li::before { content: "|"; margin: 0 14px; color: rgba(17,17,22,.32); }
.footer-menu a { color: var(--vfi-ink-soft); text-decoration: none; font-weight: 700; }
.footer-menu a:hover { color: var(--vfi-mint-dark); }
.footer-bottom { position: relative; margin-top: 34px; color: var(--vfi-muted); font-size: .92rem; }
.footer-bottom a { color: var(--vfi-ink); }

/* Pagination */
.navigation.pagination { margin: 44px 0 74px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 42px; height: 42px; display: inline-flex; justify-content: center; align-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--vfi-border); color: var(--vfi-ink); text-decoration: none; font-weight: 800; }
.page-numbers.current,
.page-numbers:hover { background: var(--vfi-ink); color: #fff; }

/* 404 */
.vfi-404 { text-align: center; padding: clamp(60px, 10vw, 130px) 0; }
.vfi-404-icon { width: 150px; height: 150px; margin: 0 auto 26px; background: linear-gradient(135deg, #eafff7, #eff0ff); border-radius: 46px; display: grid; place-items: center; box-shadow: var(--vfi-shadow); }
.vfi-404-icon img { width: 92px; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 92px; align-items: center; }
  .header-nav-wrap { grid-column: 1 / -1; display: none; align-items: stretch; flex-direction: column; background: rgba(255,255,255,.94); padding: 16px; border-radius: 24px; box-shadow: var(--vfi-shadow); border: 1px solid var(--vfi-border); }
  .header-nav-wrap.is-open { display: flex; }
  .primary-menu { display: block; }
  .primary-menu > li { display: block; }
  .primary-menu > li + li::before { content: none; }
  .primary-menu a { display: block; padding: 12px 4px; font-size: 1.15rem; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .vfi-hero-grid,
  .vfi-contact-shell,
  .vfi-affiliate-block { grid-template-columns: 1fr; }
  .vfi-grid,
  .posts-grid,
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vfi-product-grid { grid-template-columns: repeat(2, minmax(270px, 390px)); justify-content: center; }
}

@media (max-width: 680px) {
  body { font-size: 18px; line-height: 1.68; }
  .vfi-container, .content-wrap, .single-featured-image { width: min(calc(100% - 28px), var(--vfi-container)); }
  .site-header::before { content: none; }
  .header-inner { padding: 14px 0; min-height: 82px; gap: 14px; }
  .custom-logo { max-height: 52px; }
  .fallback-logo img { max-height: 52px; width: min(218px, 56vw); }
  .menu-toggle { padding: 11px 13px; font-size: .88rem; }
  .vfi-social { width: 39px; height: 39px; }
  .vfi-hero { padding-top: 42px; }
  .vfi-hero h1 { font-size: clamp(2.45rem, 13vw, 4.4rem); }
  .vfi-hero-card { min-height: 390px; border-radius: 32px; }
  .vfi-hero-actions { flex-direction: column; }
  .vfi-hero-actions .vfi-button,
  .wp-block-buttons .wp-block-button,
  .wp-block-buttons .wp-block-button__link { width: 100%; }
  .vfi-grid,
  .posts-grid,
  .related-grid { grid-template-columns: 1fr; }
  .post-card-thumb { margin: 10px 10px 0; border-radius: 20px; }
  .post-card-body { padding: 18px 18px 22px; }
  .vfi-product-card { border-radius: 18px; padding: 12px; max-width: 390px; row-gap: 7px; }
  .vfi-product-image { width: 132px; max-width: 52%; padding: 7px; }
  .vfi-product-card .vfi-product-title { font-size: 1.14rem; }
  .vfi-product-bestfor { font-size: .72rem; }
  .vfi-product-specs li { font-size: .80rem; }
  .vfi-product-grid { grid-template-columns: minmax(0, 390px); justify-content: center; }
  .entry-content > .wp-block-varsiimuri-fi-product-card.vfi-product-card,
  .entry-content > .vfi-product-card { display: grid; width: 100%; max-width: 390px; margin: 0 auto 18px; }
  .entry-content blockquote { padding: 22px 20px 22px 66px; }
  .entry-content blockquote::before { left: 18px; top: 23px; width: 32px; height: 32px; }
  .footer-top { flex-direction: column; }
  .footer-menus { grid-template-columns: 1fr; }
  .footer-menu { display: block; }
  .footer-menu li { display: block; margin: 10px 0; }
  .footer-menu li + li::before { content: none; }
}

/* Gutenberg pattern helpers */
.entry-content > .alignfull,
.entry-content > .vfi-hero {
  max-width: none;
  width: 100%;
}
.entry-content > .vfi-product-grid,
.entry-content > .vfi-grid,
.entry-content > .wp-block-group.vfi-product-grid,
.entry-content > .wp-block-group.vfi-grid {
  max-width: var(--vfi-container);
  width: min(calc(100% - 36px), var(--vfi-container));
  margin-left: auto;
  margin-right: auto;
}
.entry-content > .vfi-section-title,
.entry-content > .wp-block-heading.vfi-section-title {
  max-width: min(var(--vfi-content), calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}
.entry-content > p:not(.vfi-kicker),
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > figure,
.entry-content > table,
.entry-content > .wp-block-buttons {
  margin-left: auto;
  margin-right: auto;
  width: min(calc(100% - 36px), var(--vfi-content));
}

.entry-content > .vfi-product-grid,
.entry-content > .wp-block-group.vfi-product-grid {
  max-width: 840px;
  width: min(calc(100% - 36px), 840px);
  margin-left: auto;
  margin-right: auto;
}
.vfi-product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 2px dashed var(--vfi-border);
  border-radius: 16px;
  color: var(--vfi-muted);
  padding: 8px;
  text-align: center;
  font-size: .82rem;
  line-height: 1.25;
}
