:root {
  --bg: #f6f8fc;
  --ink: #0c1220;
  --muted: #566173;
  --accent: #1f4bd8;
  --accent-2: #00a38b;
  --card: #ffffff;
  --line: #d6dde6;
  --shadow: 0 20px 40px rgba(12, 18, 32, 0.12);
  --soft: rgba(31, 75, 216, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(120% 120% at 20% 0%, #ffffff 0%, #f4f7fb 40%, #e9eef7 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

.site-main {
  background: transparent;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.swiper {
  width: 100%;
  max-width: 100%;
}

.swiper-wrapper {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 4vw;
  margin: 0 auto;
}

.container.narrow {
  width: 100%;
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--accent);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.site-header a {
  color: #fff;
}

.nav-list,
.footer__list,
.nav-panel__list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-weight: 500;
  color: #fff;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list {
  position: relative;
}

.menu-item--top {
  position: static;
}

.menu-item--top > .menu-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 6px;
}

.mega-panel {
  position: absolute;
  left: 50%;
  width: 100vw;
  top: calc(100% + 14px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.menu-item--top:hover .mega-panel,
.menu-item--top:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-panel__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.6fr;
  gap: 24px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: min(1200px, 96vw);
  margin: 0 auto;
}

.mega-panel h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mega-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.mega-col a {
  color: var(--ink);
  font-weight: 500;
}

.mega-products {
  display: grid;
  gap: 12px;
}

.mega-product {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  color: var(--ink);
}

.mega-product img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  width: 44px;
  height: 38px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
}

.nav-toggle__icon {
  width: 20px;
  height: 20px;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(78vw, 360px);
  padding: 88px 24px 24px;
  background: var(--accent);
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  box-shadow: 20px 0 40px rgba(16, 20, 24, 0.18);
}

.nav-panel__list {
  flex-direction: column;
  gap: 12px;
}

.nav-panel__list a {
  display: block;
  padding: 10px 6px;
  font-weight: 500;
  color: #fff;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: rgba(255, 255, 255, 0.85);
}

.nav-panel__list a:hover,
.nav-panel__list a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

/* WordPress admin bar to match white header */
#wpadminbar {
  background: #ffffff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

#wpadminbar .ab-item,
#wpadminbar a.ab-item,
#wpadminbar .ab-label,
#wpadminbar .ab-icon,
#wpadminbar .ab-icon:before {
  color: var(--ink) !important;
}

#wpadminbar .ab-top-menu > li:hover > .ab-item,
#wpadminbar .ab-top-menu > li > .ab-item:focus {
  color: var(--accent) !important;
}

.nav-panel.is-open {
  transform: translateX(0);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 16, 31, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-overlay.is-open {
  opacity: 1;
}

.nav-open {
  overflow: hidden;
}

.hero {
  padding: 72px 0 40px;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-size: 0.75rem;
}

.section {
  padding: 64px 0;
  overflow-x: hidden;
}

.section--muted {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tint {
  background: linear-gradient(180deg, #f4f7fc 0%, #eef2f8 100%);
  border-top: 1px solid rgba(31, 75, 216, 0.08);
  border-bottom: 1px solid rgba(31, 75, 216, 0.08);
}

.section--cool {
  background: linear-gradient(180deg, #f5f6f8 0%, #f1f3f6 100%);
  border-top: 1px solid rgba(18, 20, 24, 0.06);
  border-bottom: 1px solid rgba(18, 20, 24, 0.06);
}

.section--warm {
  background: linear-gradient(180deg, #f3f4f6 0%, #eef1f4 100%);
  border-top: 1px solid rgba(18, 20, 24, 0.06);
  border-bottom: 1px solid rgba(18, 20, 24, 0.06);
}

.section--newsletter {
  background: #0b5fb5;
  color: #ffffff;
}

.newsletter {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 14px;
}

.newsletter__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 18px;
}

.newsletter h2 {
  margin: 0;
  color: #ffffff;
}

.newsletter p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.newsletter__form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter__form input {
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  min-width: 260px;
}

.newsletter__form button {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  color: #0b5fb5;
  font-weight: 600;
}

.newsletter__note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer--dark {
  background: #0b0f18;
  color: #c2cad6;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.8fr);
  gap: 32px;
  padding: 48px 0 32px;
}

.footer__logo {
  width: 140px;
  height: auto;
  margin-bottom: 12px;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer__col h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 0.95rem;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer__col a {
  color: #c2cad6;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__social {
  display: flex;
  gap: 18px;
}

.footer__social a {
  color: #c2cad6;
}

.news-hero {
  border-bottom: 1px solid var(--line);
}

.news-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 10px 0 18px;
}

.news-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-pill {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.news-pill.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.news-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.news-feature__media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.news-feature__body h2 {
  margin: 8px 0 12px;
  font-size: 1.6rem;
}

.news-meta {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  align-items: center;
  margin: 12px 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-card__body {
  padding: 16px;
}

.news-card__body h3 {
  margin: 8px 0 10px;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .news-feature {
    grid-template-columns: 1fr;
  }

  .news-feature__media img {
    height: 240px;
  }
}

.catalog-section {
  padding-top: 40px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 32px;
}

.catalog-sidebar {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
  align-self: start;
}

.catalog-sidebar h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
}

.cat-list li.is-active {
  background: rgba(31, 75, 216, 0.08);
}

.cat-count {
  background: #eef2f7;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}

.catalog-main {
  display: grid;
  gap: 20px;
}

.filter-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.filter-actions {
  display: flex;
  gap: 12px;
}

.filter-select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: #ffffff;
}

@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .footer__main {
    grid-template-columns: 1fr;
  }

  .footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lift-on-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lift-on-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(15, 23, 43, 0.18);
}

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s ease;
}

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

.section__header--split {
  align-items: center;
}

.section__title h2 {
  margin-bottom: 6px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.trend-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}

.trend-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.trend-card__body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
}

.trend-card__body h3 {
  margin: 0;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.top-rated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.top-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.top-card .badge {
  width: fit-content;
}

.top-card__media {
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

.top-card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.top-card__body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f5a623;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.spec-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.price {
  font-weight: 700;
}

.latest-articles {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
}

.latest-feature {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
}

.latest-feature__media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.latest-feature__body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 10px;
}

.latest-feature__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.latest-list {
  display: grid;
  gap: 16px;
}

.latest-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  box-shadow: var(--shadow);
}

.latest-item__thumb img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.latest-item__body h4 {
  margin: 6px 0 8px;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.brand-pill {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  text-align: center;
  box-shadow: var(--shadow);
}

.brand-pill__name {
  font-weight: 600;
}

.brand-pill__count {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .latest-articles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .latest-feature__media img {
    height: 240px;
  }

  .latest-item {
    grid-template-columns: 72px 1fr;
  }

  .latest-item__thumb img {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 720px) {
  .trend-card__media img {
    height: 150px;
  }
}

.card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card--flat {
  box-shadow: none;
}

.card__body {
  padding: 20px;
}

.article__header {
  margin-bottom: 24px;
}

.article--news {
  display: grid;
  gap: 20px;
  max-width: 100%;
}

.article__header--news h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 1.6vw + 1.4rem, 3rem);
}

.article__lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.article-meta__author {
  display: flex;
  gap: 12px;
  align-items: center;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.article-meta__stats {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-actions {
  display: flex;
  gap: 10px;
}

.article__content {
  font-size: 1.05rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.article__content > * {
  max-width: 100%;
}

.article__content img,
.article__content video,
.article__content iframe,
.article__content embed,
.article__content object {
  max-width: 100%;
  height: auto;
}

.article__content figure,
.article__content .wp-block-image,
.article__content .wp-block-embed,
.article__content .wp-block-gallery {
  max-width: 100%;
}

.article__content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

.article__content .wp-block-table table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

.article__content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.article__content th,
.article__content td {
  white-space: nowrap;
}

.article__content pre,
.article__content code {
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.product-hero {
  padding: 48px 0 24px;
}

.product-hero--showcase {
  padding-top: 60px;
}

.product-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.breadcrumbs {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.product-media {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
}

.product-media__main {
  border-radius: 16px;
  overflow: hidden;
  background: #f4f6f9;
}

.product-media__main img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
}

.product-media__placeholder {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.product-media__thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
}

.product-thumb {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  background: #ffffff;
  cursor: pointer;
}

.product-thumb img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  display: block;
}

.product-summary h1 {
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 1.2vw + 1.4rem, 2.6rem);
}

.product-summary--clean h1 {
  margin-top: 8px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f5a623;
  font-weight: 600;
}

.rating-stars {
  letter-spacing: 2px;
}

.rating-score {
  color: var(--ink);
}

.rating-count {
  color: var(--muted);
  font-weight: 500;
}

.price-line {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 12px 0 16px;
}

.option-group {
  margin-bottom: 16px;
}

.option-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.option-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-pill {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.option-pill.is-active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 16px rgba(31, 75, 216, 0.18);
}

.option-pills--colors .option-pill {
  font-weight: 500;
}

.highlight-box {
  background: #f4f7fb;
  border-radius: 16px;
  padding: 16px;
  margin: 18px 0 20px;
}

.highlight-box h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.highlight-box ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.spec-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0 20px;
}

.spec-tab {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.spec-tab.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.spec-panel {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 18px;
  box-shadow: var(--shadow);
}

.spec-group {
  display: none;
}

.spec-group.is-active {
  display: block;
}

.spec-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-group li {
  display: flex;
  justify-content: space-between;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(15, 23, 43, 0.08);
}

.spec-group li:last-child {
  border-bottom: none;
}

.spec-group li strong {
  font-weight: 600;
  color: var(--ink);
}

.spec-group li span {
  color: var(--muted);
}
.product-lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.product-actions {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.product-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-badges span {
  background: #eef2f7;
  padding: 6px 10px;
  border-radius: 999px;
}

.product-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.product-aside {
  position: sticky;
  top: 110px;
  align-self: start;
}

.spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

@media (max-width: 1024px) {
  .product-hero__grid {
    grid-template-columns: 1fr;
  }

  .product-media__main img,
  .product-media__placeholder {
    height: 360px;
  }

  .product-content {
    grid-template-columns: 1fr;
  }

  .product-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .product-media__main img,
  .product-media__placeholder {
    height: 300px;
  }

  .product-media {
    padding: 14px;
  }

  .spec-tabs {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
}

.article-hero {
  margin: 18px 0 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.article-tags {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.article-tags--bottom {
  margin-top: 18px;
}

.article-tags h3 {
  margin: 0;
  font-size: 1rem;
}

.reading-guide {
  position: relative;
  background: linear-gradient(135deg, rgba(31, 75, 216, 0.08), rgba(14, 165, 233, 0.06));
  border: 1px solid rgba(31, 75, 216, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 16px 32px rgba(15, 23, 43, 0.08);
  max-width: 100%;
  overflow: hidden;
}

.reading-guide::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 6px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(180deg, #1f4bd8 0%, #22c1f0 100%);
}

.reading-guide__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.reading-guide__head h3 {
  padding-left: 18px;
}

.toc--compact a {
  font-size: 0.92rem;
  padding: 6px 10px 6px 16px;
  border-left: 2px solid transparent;
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.toc--columns {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f4f7fb;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.tag--solid {
  background: rgba(30, 79, 215, 0.12);
  border-color: transparent;
  color: var(--ink);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
}

.article-aside {
  position: sticky;
  top: 110px;
  align-self: start;
}

.side-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.toc {
  display: grid;
  gap: 8px;
}

.toc a {
  color: var(--muted);
  font-size: 0.95rem;
  display: block;
  line-height: 1.5;
}

.toc a:hover {
  color: var(--accent);
  background: rgba(31, 75, 216, 0.08);
  border-left-color: rgba(31, 75, 216, 0.6);
}

.toc a.is-active {
  color: var(--accent);
  font-weight: 600;
  background: rgba(31, 75, 216, 0.12);
  border-left-color: var(--accent);
}

.toc a.toc__sub {
  padding-left: 12px;
  font-size: 0.9rem;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.article-nav__item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.article-nav__item--next {
  text-align: right;
}

.article-nav__label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-nav__title {
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-related {
  margin-top: 28px;
  max-width: 100%;
  overflow: hidden;
}

.article-related__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-related__nav {
  display: flex;
  gap: 10px;
}

.slider-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.article-related__slider {
  padding-bottom: 10px;
  overflow: hidden;
  max-width: 100%;
}

.article-related__slider .swiper-wrapper {
  max-width: 100%;
}

.article-related__slider .swiper-slide {
  height: auto;
}

.article-related h3 {
  margin: 0 0 16px;
}

.key-points {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
}

.article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.article__content th,
.article__content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.article__content tbody tr:hover {
  background: rgba(30, 79, 215, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--ghost {
  background: transparent;
}

.hero--banner .btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero--banner .text-link {
  color: #ffffff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 18, 18, 0.15);
}

.score {
  display: inline-flex;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 16px;
}

.text-link {
  position: relative;
  color: var(--accent);
  font-weight: 600;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}

.swiper {
  overflow: visible;
}

.swiper-slide {
  height: auto;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
  }

  .mega-panel {
    display: none;
  }
}

/* Banner slider override */
.hero--banner {
  background: #f5f7fb;
  border-bottom: 1px solid var(--line);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.hero-carousel {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 43, 0.18);
  max-width: 100%;
  aspect-ratio: 16 / 9;
}

.hero-carousel .swiper-wrapper,
.hero-carousel .swiper-slide {
  height: 100%;
}

.hero-slide {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 100%;
  background: #0d1324;
  width: 100%;
}

.hero-slide__media {
  display: block;
  height: 100%;
  width: 100%;
}

.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide__media--placeholder {
  height: 100%;
  background: linear-gradient(135deg, #0e1426 0%, #13203a 100%);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  background: linear-gradient(180deg, rgba(10, 15, 24, 0.05) 0%, rgba(8, 12, 20, 0.85) 100%);
  color: #ffffff;
}

.hero-slide__overlay h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  color: #ffffff;
}

.hero-slide__overlay a {
  color: inherit;
}

.hero-slide__overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.hero-slide__meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 75, 216, 0.85);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: fit-content;
}

.badge--ghost {
  background: rgba(31, 75, 216, 0.12);
  color: var(--accent);
}

.hero-side {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  height: 100%;
}

.hero-side h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-side__list {
  display: grid;
  gap: 16px;
}

.side-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.side-item__thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.side-item__thumb--placeholder {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31, 75, 216, 0.25), rgba(0, 163, 139, 0.25));
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.side-item__body h4 {
  margin: 6px 0 4px;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-item__body .muted {
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-carousel {
    aspect-ratio: 1 / 1;
  }

  .hero-side {
    padding: 16px;
  }
}
