/* ── Inner pages — shared ─────────────────────────────────── */

.page-hero {
  position: relative;
  padding: 2rem 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(243, 112, 33, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(51, 163, 220, 0.06), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .page-hero {
    padding: 1rem 0;
  }
}

.page-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.page-hero__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.page-hero__desc {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  max-width: 100%;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.page-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.listing-toolbar__count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.listing-toolbar__count strong {
  color: var(--foreground);
}

.listing-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.listing-select {
  appearance: none;
  background: var(--secondary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235A6E8A' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") no-repeat left 0.75rem center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem 0.5rem 2rem;
  font-size: 0.8125rem;
  font-family: inherit;
  color: var(--foreground);
  min-width: 9rem;
}

.filter-chips-bar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-chips-swiper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.filter-chips-swiper .swiper-slide {
  width: auto;
  height: auto;
}

.filter-chips-bar .btn-nst-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
}

.filter-chips-bar .btn-nst-icon.swiper-button-lock,
.filter-chips-bar .btn-nst-icon.is-hidden {
  display: none;
}

.filter-select {
  display: block;
  width: 100%;
  min-width: 0;
  margin-bottom: 1.5rem;
  padding-block: 0.75rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .filter-chips-bar {
    display: flex;
  }

  .filter-select {
    display: none;
  }
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding-block: 0.35rem;
  padding-inline: 0.95rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(10, 31, 61, 0.04);
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.filter-chip__label {
  line-height: 1.2;
}

.filter-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding-inline: 0.4rem;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.filter-chip:hover {
  border-color: var(--orange-border-40);
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(243, 112, 33, 0.08);
}

.filter-chip:hover .filter-chip__count {
  background: var(--orange-soft-15);
  color: var(--accent);
}

.filter-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--orange-soft-10);
  box-shadow: 0 4px 14px rgba(243, 112, 33, 0.12);
}

.filter-chip.is-active .filter-chip__count {
  background: var(--accent);
  color: #fff;
}

.listing-sidebar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--site-offset) + 1rem);
}

.listing-sidebar__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.listing-sidebar__group {
  margin-bottom: 1.25rem;
}

.listing-sidebar__group:last-child {
  margin-bottom: 0;
}

.listing-sidebar__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.625rem;
}

.listing-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.listing-check input {
  accent-color: var(--accent);
}

.pagination-nst {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pagination-nst a,
.pagination-nst span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  text-decoration: none;
  transition: all 0.2s;
}

.pagination-nst a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-nst .is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination-nst .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Category grid cards (product / article categories) */
.cat-grid-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
}

.cat-grid-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.cat-grid-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--secondary);
}

.cat-grid-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s;
}

.cat-grid-card:hover .cat-grid-card__img img {
  transform: scale(1.04);
}

.cat-grid-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cat-grid-card__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.cat-grid-card__icon img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
}

.cat-grid-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cat-grid-card__desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.cat-grid-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.cat-grid-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Product list card as link */
a.product-card {
  text-decoration: none;
  color: inherit;
}

a.product-card:hover {
  color: inherit;
}

/* Article detail */
.article-detail {
  padding-bottom: 3rem;
}

.article-detail__cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
  /* aspect-ratio: 21 / 9; */
  background: var(--secondary);
  margin-bottom: 1rem;
}

.article-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.article-detail__title {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.article-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-detail__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.article-detail__body {
  font-size: 0.975rem;
  line-height: 1.9;
  color: var(--foreground);
}

.article-detail__body p {
  margin-bottom: 1.25rem;
}

.article-detail__body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.article-detail__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

.article-detail__body ul {
  margin-bottom: 1.25rem;
  padding-right: 1.25rem;
}

.article-detail__body li {
  margin-bottom: 0.4rem;
}

.article-aside {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--site-offset) + 1rem);
}

.article-aside__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.article-aside__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.article-aside__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.article-aside__item img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.article-aside__item-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.article-aside__item-date {
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Search page */
.search-page-form {
  display: flex;
  gap: 0.75rem;
  max-width: 40rem;
  margin-top: 1.5rem;
}

.search-page-form__input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: #fff;
  color: var(--foreground);
}

.search-page-form__input:focus {
  outline: 2px solid var(--orange-border-40);
  border-color: var(--accent);
}

.search-result {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  height: 100%;
}

.search-result:hover {
  box-shadow: var(--shadow-md);
  color: inherit;
}

.search-result__img {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--secondary);
}

.search-result__type {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.search-result__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.search-result__excerpt {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* About page */
.about-page__lead {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.about-page__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-page__media img {
  width: 100%;
  height: auto;
  display: block;
}

.about-value {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  height: 100%;
}

.about-value__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--orange-soft-10);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.about-value__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-value__desc {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin: 0;
}

/* Contact page */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  height: 100%;
}

.contact-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--orange-soft-10);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.contact-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-card__text {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0;
}

.contact-card__text a {
  color: var(--foreground);
  text-decoration: none;
}

.contact-card__text a:hover {
  color: var(--accent);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
}

.contact-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.contact-form__input,
.contact-form__textarea,
.contact-form__select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--background);
  color: var(--foreground);
  margin-bottom: 1rem;
}

.contact-form__textarea {
  resize: vertical;
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
  outline: 2px solid var(--orange-border-40);
  border-color: var(--accent);
  background: #fff;
}

.contact-map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--secondary);
  min-height: 24.5rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 24.5rem;
  border: 0;
  display: block;
}

@media (max-width: 991.98px) {

  .listing-sidebar,
  .article-aside {
    position: static;
  }

  .article-detail__cover {
    aspect-ratio: 16 / 9;
  }

  .search-result {
    flex-direction: column;
  }

  .search-result__img {
    width: 100%;
    height: 10rem;
  }
}