/* ============================================================
   iPhoneGuia – style.css
   Design: Apple-inspired — dark, clean, minimal
   Fonts: DM Sans (body) + DM Serif Display (headings)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --c-bg:        #f5f5f7;
  --c-surface:   #ffffff;
  --c-border:    #d2d2d7;
  --c-text:      #1d1d1f;
  --c-muted:     #86868b;
  --c-accent:    #0066cc;
  --c-accent-dk: #004999;
  --c-accent-lt: #f0f6ff;
  --c-dark:      #1d1d1f;
  --c-darker:    #000000;
  --c-green:     #34c759;
  --c-yellow:    #ffcc00;

  --font-body:    'DM Sans', 'Inter', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  --max-w:    1100px;
  --max-w-sm:  720px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.10);

  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
ul, ol { list-style: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--c-text);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 400; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.section-label {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .75rem 1.5rem;
  border-radius: 99px;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: all .25s var(--ease-out);
  border: none;
  text-decoration: none !important;
  letter-spacing: 0;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--c-accent-dk); }
.btn-ghost {
  color: var(--c-accent);
  background: transparent;
}
.btn-ghost:hover { background: var(--c-accent-lt); color: var(--c-accent-dk); }
.btn-outline {
  border: 1px solid var(--c-border);
  color: var(--c-text);
  background: var(--c-surface);
}
.btn-outline:hover { border-color: #aaa; }
.btn-affiliate {
  background: var(--c-text);
  color: #fff;
  width: 100%;
  justify-content: center;
  margin-top: .75rem;
  font-weight: 500;
}
.btn-affiliate:hover { background: #000; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(29,29,31,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding-block: .65rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo { flex-shrink: 0; }
.site-logo img {
  height: 30px;
  width: auto;
  display: block;
  filter: invert(1);
}

.nav-list { display: flex; gap: .25rem; }
.nav-link {
  padding: .4rem .85rem;
  border-radius: 99px;
  font-size: .82rem;
  font-weight: 500;
  color: #c7c7cc;
  transition: all .2s var(--ease-out);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-link--active { color: #fff; background: rgba(255,255,255,.12); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .25s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  background: rgba(29,29,31,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: .5rem 2rem 1rem;
}
.mobile-menu.is-open { display: block; }
.mobile-nav-link {
  display: block;
  padding: .7rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav-link:last-child { border-bottom: none; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  background: var(--c-darker);
  color: #fff;
  text-align: center;
}
.hero-inner { max-width: 680px; margin-inline: auto; }
.hero-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.025em;
}
.hero-title em { font-style: italic; color: var(--c-accent); }
.hero-subtitle {
  font-size: 1.1rem;
  color: #a1a1a6;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.55;
}
.hero-cta-group { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.hero-cta-group .btn-ghost { color: var(--c-accent); }
.hero-cta-group .btn-ghost:hover { background: rgba(0,102,204,.15); }

/* ── Categories strip ──────────────────────────────────────── */
.categories-strip {
  padding: 1rem 0;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.categories-strip::-webkit-scrollbar { display: none; }
.categories-list {
  display: flex;
  gap: .5rem;
  flex-wrap: nowrap;
  min-width: max-content;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  background: var(--c-bg);
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
  transition: all .2s var(--ease-out);
}
.cat-pill:hover { background: var(--c-darker); color: #fff; border-color: var(--c-darker); text-decoration: none; }
.cat-pill svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Article Cards ─────────────────────────────────────────── */
.latest-articles { padding: 4rem 0; }
.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.article-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  cursor: pointer;
}
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.article-card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.article-card-footer .read-more { position: relative; z-index: 2; }
.article-card-image {
  width: 100%;
  height: 200px;
  background: var(--c-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.article-card:hover .article-card-image img { transform: scale(1.04); }
.article-card-image svg {
  width: 36px;
  height: 36px;
  color: rgba(255,255,255,.2);
}
.article-card-body { padding: 1.5rem 1.75rem 1.75rem; }
.article-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .72rem;
  color: var(--c-muted);
  margin-bottom: .5rem;
  font-weight: 500;
}
.article-card-category {
  background: var(--c-dark);
  color: #fff;
  padding: .15rem .6rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.article-card-title { font-size: 1.15rem; margin-bottom: .5rem; line-height: 1.3; font-weight: 400; }
.article-card-title a { color: var(--c-text); }
.article-card-title a:hover { color: var(--c-accent); text-decoration: none; }
.article-card-excerpt { color: var(--c-muted); font-size: .88rem; margin-bottom: 1.1rem; line-height: 1.5; }
.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
}
.reading-time { color: var(--c-muted); }
.read-more { font-weight: 500; color: var(--c-accent); }
.read-more:hover { text-decoration: underline; }

.view-all-wrap { text-align: center; margin-top: 2.5rem; }

/* ── Categories feature grid ────────────────────────────────── */
.categories-feature {
  padding: 4.5rem 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: all .3s var(--ease-out);
  color: var(--c-text);
  text-decoration: none;
}
.category-card:hover {
  background: var(--c-darker);
  color: #fff;
  border-color: var(--c-darker);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--c-darker);
  transition: background .3s;
}
.category-card:hover .category-card-icon {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.category-card-icon svg { width: 22px; height: 22px; }
.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: .3rem;
  letter-spacing: 0;
}
.category-card:hover h3 { color: #fff; }
.category-card p { font-size: .84rem; color: var(--c-muted); line-height: 1.5; }
.category-card:hover p { color: #d1d1d6; }

/* ── Trust strip ───────────────────────────────────────────── */
.trust-strip {
  padding: 2rem 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Category page ─────────────────────────────────────────── */
.category-hero {
  padding: 4rem 0 3rem;
  background: var(--c-darker);
  color: #fff;
  margin-bottom: 3rem;
}
.category-title { color: #fff; margin-bottom: .75rem; font-weight: 400; }
.category-description { font-size: 1.05rem; color: #a1a1a6; max-width: 600px; line-height: 1.55; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.featured-card {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  color: var(--c-text);
  transition: all .3s var(--ease-out);
}
.featured-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); text-decoration: none; }
.featured-category {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-accent);
  display: block;
  margin-bottom: .6rem;
}
.featured-title { font-size: 1.1rem; font-weight: 400; margin-bottom: .5rem; }
.featured-excerpt { font-size: .85rem; color: var(--c-muted); margin-bottom: .85rem; line-height: 1.5; }
.featured-cta { font-size: .82rem; font-weight: 500; color: var(--c-accent); }

.articles-section { margin-bottom: 4rem; }

/* ── Reading progress bar ───────────────────────────────────── */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 3px;
  background: var(--c-accent);
  width: 0%;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(0,102,204,.4);
}

/* ── Article single ────────────────────────────────────────── */
.article-header {
  padding: 4rem 0 3rem;
  background: var(--c-darker);
  color: #fff;
  margin-bottom: 2.5rem;
}
.category-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: .25rem .75rem;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
  transition: background .2s;
}
.category-badge:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.article-title { color: #fff; max-width: var(--max-w-sm); margin-bottom: .75rem; letter-spacing: -0.025em; margin-left: 0; margin-right: 0; }
.article-title:not(.container .article-title) { padding-inline: 0; }
.article-subtitle { font-size: 1.15rem; color: #a1a1a6; max-width: 600px; margin-bottom: .85rem; line-height: 1.5; }
.article-meta {
  font-size: .78rem;
  color: #a1a1a6;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}
.article-lead { font-size: 1.05rem; color: #a1a1a6; max-width: 600px; line-height: 1.6; }

.disclaimer-box {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: var(--radius);
  padding: .9rem 1.2rem;
  font-size: .82rem;
  color: var(--c-muted);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}
.disclaimer-box svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--c-muted); }

/* ── Table of Contents ─────────────────────────────────────── */
.toc {
  max-width: var(--max-w-sm);
  margin-inline: auto;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}
.toc-heading {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.toc nav > ul {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.toc ul {
  padding-left: 1.25rem;
  margin-top: .35rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.toc li {
  list-style: none;
  font-size: .88rem;
  counter-increment: toc-counter;
}
.toc nav > ul > li { font-size: .92rem; }
.toc a {
  color: var(--c-text);
  transition: color .15s;
  display: block;
  padding: .15rem 0;
  font-weight: 400;
}
.toc a:hover { color: var(--c-accent); text-decoration: none; }
.toc ul ul a {
  font-size: .82rem;
  color: var(--c-muted);
  padding-left: .5rem;
}

.quick-picks { margin-bottom: 3rem; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Product card ──────────────────────────────────────────── */
.product-card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.product-badge {
  position: absolute;
  top: .85rem;
  right: .85rem;
  z-index: 2;
  background: var(--c-dark);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .6rem;
  border-radius: 99px;
}

.product-card-image {
  width: 100%;
  height: 200px;
  background: var(--c-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-image img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-card-image svg { width: 36px; height: 36px; color: rgba(255,255,255,.2); }

.product-card-body { padding: 1.5rem 1.5rem 0; flex: 1; }
.product-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--c-text);
}
.product-desc { font-size: .82rem; color: var(--c-muted); margin-bottom: .85rem; line-height: 1.5; }

.product-pros { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.product-pros li {
  font-size: .82rem;
  display: flex;
  gap: .45rem;
  align-items: flex-start;
  color: var(--c-muted);
}
.pro-check { color: var(--c-green); font-weight: 700; flex-shrink: 0; }

.product-rating { display: flex; align-items: center; gap: .12rem; margin-bottom: .85rem; }
.star { color: #e5e5ea; font-size: .95rem; }
.star--filled { color: var(--c-yellow); }
.rating-num { font-size: .76rem; color: var(--c-muted); margin-left: .25rem; }

.product-card-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-text);
}

/* ── Article body typography ────────────────────────────────── */
.article-body {
  max-width: var(--max-w-sm);
  margin-inline: auto;
  padding-block: 2.5rem;
}
.article-body h2 { margin: 2.5rem 0 .85rem; font-size: 1.5rem; font-weight: 400; }
.article-body h3 { margin: 1.75rem 0 .55rem; font-size: 1.15rem; font-weight: 400; }
.article-body p { margin-bottom: 1.35rem; line-height: 1.75; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.35rem; }
.article-body li { margin-bottom: .45rem; list-style: disc; color: var(--c-text); }
.article-body ol li { list-style: decimal; }
.article-body a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--c-accent-dk); }
.article-body strong { font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--c-accent);
  margin: 1.75rem 0;
  padding: .75rem 1.25rem;
  background: var(--c-accent-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--c-muted);
  font-style: italic;
}
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
.article-body th { background: var(--c-bg); padding: .7rem 1rem; text-align: left; font-weight: 600; border-bottom: 2px solid var(--c-border); }
.article-body td { padding: .65rem 1rem; border-bottom: 1px solid var(--c-border); }
.article-body img { border-radius: var(--radius-lg); margin: 1.5rem 0; width: 100%; }

/* ── Related articles ───────────────────────────────────────── */
.related-articles { padding: 3rem 0 3.5rem; border-top: 1px solid var(--c-border); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.25rem 1.4rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  transition: all .25s var(--ease-out);
}
.related-card:hover { border-color: var(--c-accent); transform: translateY(-2px); text-decoration: none; }
.related-category { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent); }
.related-title { font-size: .9rem; font-weight: 500; line-height: 1.35; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--c-darker);
  color: #a1a1a6;
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand img {
  filter: invert(1);
  height: 26px;
  width: auto;
  margin-bottom: .85rem;
  display: block;
}
.footer-tagline { font-size: .82rem; line-height: 1.5; }

.footer-nav-title {
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: .85rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a { font-size: .84rem; color: #a1a1a6; transition: color .2s; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.35rem 0;
}
.footer-disclaimer { font-size: .74rem; color: #6e6e73; margin-bottom: .55rem; line-height: 1.5; }
.footer-copy { font-size: .74rem; color: #48484a; }

/* ── Pagination ────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: .5rem; padding: 2.5rem 0; }
.page-item a, .page-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 .5rem;
  border-radius: 99px;
  border: 1px solid var(--c-border);
  font-size: .84rem;
  font-weight: 500;
  color: var(--c-text);
  transition: all .2s;
}
.page-item.active span,
.page-item a:hover {
  background: var(--c-darker);
  border-color: var(--c-darker);
  color: #fff;
  text-decoration: none;
}
.page-item.disabled span { color: var(--c-muted); opacity: .4; }

.footer-hidden { display: none !important; }

/* ── Back to top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-darker);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #000; transform: translateY(-2px); }
.back-to-top.is-visible:hover { transform: translateY(-2px); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero-title { font-size: 2rem; }

  .articles-list { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  .article-body { padding-inline: 1rem; }
  .article-header { padding: 2.5rem 0 2rem; }

  .featured-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { justify-content: center; }
  .articles-list { padding-inline: 0; }
}
