.bg-surface { background: var(--bg-surface); }
.bg-primary-alt { background: var(--bg-primary); }

.gold-divider {
  width: 60px;
  height: 2px;
  background: var(--accent-gold);
  margin-bottom: 24px;
}

.page-hero {
  padding: 80px 0 60px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--accent-stone);
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* Homepage — full-width sections, centered content (sanjab-style) */
.home-page {
  background: var(--bg-sanjab-cream);
}

.home-page__hero {
  width: 100%;
  border-radius: 0;
}

.home-page__canvas,
.home-page__canvas > .home-secondary {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-page__canvas .fargah-container,
.home-page > section:not(.studio-hero-combined) .fargah-container,
.home-secondary .fargah-container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* Soft horizontal section rhythm — no vertical gutter lines */
.home-page section:not(.studio-hero-combined):not(.final-cta-section) {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-sanjab-cream-deep) 22%, var(--bg-sanjab-cream)) 0%,
    var(--bg-sanjab-cream) 14%,
    var(--bg-sanjab-cream) 86%,
    color-mix(in srgb, var(--bg-sanjab-cream-deep) 16%, var(--bg-sanjab-cream)) 100%
  );
}

.home-page__canvas > section + section::before,
.home-secondary > section + section::before,
.home-page > section + section:not(.studio-hero-combined)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg-sanjab-cream-deep) 28%, transparent) 0%,
    transparent 100%
  );
}

.home-page section:not(.studio-hero-combined):not(:first-of-type):not(.final-cta-section)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg-sanjab-cream-deep) 28%, transparent) 0%,
    transparent 100%
  );
}

.home-page section:not(.studio-hero-combined):not(.final-cta-section)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 720px);
  height: 1px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 169, 110, 0.1) 18%,
    rgba(200, 169, 110, 0.2) 50%,
    rgba(200, 169, 110, 0.1) 82%,
    transparent 100%
  );
}

.home-page section:not(.studio-hero-combined) .fargah-container,
.home-page section:not(.studio-hero-combined) > * {
  position: relative;
  z-index: 1;
}

.home-page .sanjab-form-section {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-sanjab-cream-light) 40%, rgb(243, 240, 215)) 0%,
    rgb(243, 240, 215) 20%,
    rgb(243, 240, 215) 80%,
    color-mix(in srgb, var(--bg-sanjab-cream-deep) 18%, rgb(243, 240, 215)) 100%
  );
}

.article-feed--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 992px) {
  .article-feed--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-page__canvas .fargah-container,
  .home-page > section:not(.studio-hero-combined) .fargah-container,
  .home-secondary .fargah-container {
    padding-inline: 16px;
  }

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

/* Trust strip */
.trust-strip {
  background: var(--bg-primary);
  padding: 32px 0 40px;
  margin-top: -24px;
  position: relative;
  z-index: 3;
}

.trust-strip__panel {
  background: color-mix(in srgb, var(--bg-sanjab-cream-light) 55%, var(--bg-sanjab-cream));
  border: none;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: 0 4px 28px rgba(84, 65, 42, 0.05);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.trust-strip__panel:hover {
  box-shadow: 0 8px 32px rgba(84, 65, 42, 0.08);
  transform: translateY(-1px);
}

[data-theme="dark"] .trust-strip__panel {
  background: var(--bg-elevated);
  border-color: var(--accent-gold);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.trust-strip__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-strip__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--accent-gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.trust-strip__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.trust-strip__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.trust-strip__footer {
  text-align: center;
  margin-top: 24px;
}

@media (max-width: 992px) {
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .trust-strip__grid { grid-template-columns: 1fr; }
}

/* Premium cards */
.card-premium {
  background: color-mix(in srgb, var(--bg-sanjab-cream-light) 70%, var(--bg-sanjab-cream));
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(84, 65, 42, 0.05);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-premium:hover,
.card-premium:focus-within {
  box-shadow: 0 12px 32px rgba(84, 65, 42, 0.09);
  transform: translateY(-4px);
}

.card-premium__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-stone-soft);
}

.card-premium__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card-premium:hover .card-premium__image img {
  transform: scale(1.04);
}

.card-premium__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-premium__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card-premium__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
  flex: 1;
}

.card-premium__number {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-surface);
  z-index: 2;
}

[dir="rtl"] .card-premium__number {
  left: auto;
  right: 16px;
}

.card-premium { position: relative; }

/* Category card */
.category-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  height: 100%;
}

.category-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-soft);
}

.category-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card__body {
  padding: 20px 24px 24px;
}

.category-card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.category-card__link {
  color: var(--accent-gold-text);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Product inquiry card — sanjab-style PNG product stage */
.product-inquiry-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-sanjab);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.product-inquiry-card:hover,
.product-inquiry-card:focus-within {
  border-color: color-mix(in srgb, var(--accent-gold) 55%, var(--border-sanjab));
  box-shadow: 0 8px 24px rgba(84, 65, 42, 0.1);
  transform: translateY(-3px);
}

.product-inquiry-card__image {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: transparent;
  overflow: hidden;
}

.product-inquiry-card__image img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-inquiry-card:hover .product-inquiry-card__image img,
.product-inquiry-card:focus-within .product-inquiry-card__image img {
  transform: scale(1.15);
}

.product-inquiry-card__body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border-sanjab);
}

.product-inquiry-card__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--badge-bg);
  color: var(--accent-gold-text);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  width: fit-content;
}

.product-inquiry-card__category {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-inquiry-card__app {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  flex: 1;
}

.product-inquiry-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

/* Ready projects asymmetric */
.ready-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

[dir="ltr"] .ready-showcase {
  grid-template-columns: 1fr 1.2fr;
}

.ready-showcase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ready-featured {
  background: color-mix(in srgb, var(--bg-sanjab-cream-light) 65%, var(--bg-sanjab-cream));
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(84, 65, 42, 0.06);
}

.ready-featured__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ready-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ready-featured__body { padding: 28px; flex: 1; }

.ready-mini-card {
  background: color-mix(in srgb, var(--bg-sanjab-cream-light) 55%, var(--bg-sanjab-cream));
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(84, 65, 42, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ready-mini-card:hover,
.ready-mini-card:focus-visible {
  box-shadow: 0 8px 22px rgba(84, 65, 42, 0.08);
  transform: translateY(-2px);
}

.ready-mini-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.ready-mini-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ready-mini-card__body { padding: 16px; }

.ready-mini-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .ready-showcase { grid-template-columns: 1fr; }
}

/* Sanjab-style design order form (فرم همکاری و فروش عمده layout) */
.sanjab-form-section {
  background: rgb(243, 240, 215);
  padding: 72px 0 80px;
  color: #54412a;
}

[data-theme="dark"] .sanjab-form-section {
  background: #1a1814;
  color: #d8d1c4;
}

.sanjab-form-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.sanjab-form-section__title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.sanjab-form-section__ornament-img {
  flex-shrink: 0;
  opacity: 0.85;
}

.sanjab-form-section__ornament-img--flip {
  transform: scaleX(-1);
}

.sanjab-form-section__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  margin: 0;
  color: #54412a;
  line-height: 1.4;
}

[data-theme="dark"] .sanjab-form-section__title {
  color: #f0ebe0;
}

.sanjab-form-section__subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  margin: 0;
  color: #54412a;
}

[data-theme="dark"] .sanjab-form-section__subtitle {
  color: #b8b0a3;
}

.sanjab-form-section__grid {
  display: grid;
  grid-template-columns: minmax(260px, 42%) minmax(320px, 1fr);
  gap: 40px 48px;
  align-items: start;
}

.sanjab-form-section__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sanjab-form-section__visual img {
  width: 100%;
  max-width: 525px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .sanjab-form-section__visual img {
  mix-blend-mode: normal;
  border-radius: var(--radius-lg);
}

.sanjab-form-section__steps {
  list-style: none;
  padding: 0;
  margin: 48px auto 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}

.sanjab-form-section__steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #54412a;
}

[data-theme="dark"] .sanjab-form-section__steps li {
  color: #d8d1c4;
}

.sanjab-form-section__step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #c8a96e;
  color: #8a6a2f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.sanjab-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sanjab-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.sanjab-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sanjab-form__label {
  font-size: 0.92rem;
  font-weight: 500;
  color: #54412a;
  margin: 0;
}

[data-theme="dark"] .sanjab-form__label {
  color: #e8e2d6;
}

.sanjab-form__required {
  color: #c45c3e;
  margin-inline-start: 2px;
}

.sanjab-form__input,
.sanjab-form__select,
.sanjab-form__textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #d9d4c0;
  border-radius: 16px;
  background: #ffffff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sanjab-form__textarea {
  min-height: 100px;
  resize: vertical;
  padding-top: 12px;
}

.sanjab-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2354412a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-inline-start: 16px;
  padding-inline-end: 40px;
}

[dir="ltr"] .sanjab-form__select {
  background-position: right 16px center;
}

.sanjab-form__input:focus,
.sanjab-form__select:focus,
.sanjab-form__textarea:focus {
  outline: none;
  border-color: #c8a96e;
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.2);
}

[data-theme="dark"] .sanjab-form__input,
[data-theme="dark"] .sanjab-form__select,
[data-theme="dark"] .sanjab-form__textarea {
  background: #262320;
  border-color: #3a352a;
  color: #f0ebe0;
}

.sanjab-form__field--checkbox {
  margin-top: 4px;
}

.sanjab-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #54412a;
  margin: 0;
}

[data-theme="dark"] .sanjab-form__checkbox {
  color: #d8d1c4;
}

.sanjab-form__checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sanjab-form__checkbox-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid #c8a96e;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background 0.2s ease;
}

.sanjab-form__checkbox input:checked + .sanjab-form__checkbox-box {
  background: #c8a96e;
}

.sanjab-form__checkbox input:checked + .sanjab-form__checkbox-box::after {
  content: '✓';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.sanjab-form__checkbox-text {
  line-height: 1.6;
}

.sanjab-form__submit {
  align-self: flex-start;
  min-width: 160px;
  min-height: 42px;
  padding: 10px 32px;
  border: none;
  border-radius: 21px;
  background: rgb(234, 154, 60);
  color: #ffffff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  margin-top: 4px;
}

.sanjab-form__submit:hover {
  background: rgb(218, 138, 48);
  transform: translateY(-1px);
}

.sanjab-form__submit:active {
  transform: translateY(0);
}

@media (max-width: 992px) {
  .sanjab-form-section {
    padding: 56px 0 64px;
  }

  .sanjab-form-section__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sanjab-form-section__visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .sanjab-form-section__steps {
    grid-template-columns: 1fr;
  }

  .sanjab-form__submit {
    width: 100%;
    align-self: stretch;
  }
}

/* Technical proof */
.tech-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-proof-card {
  background: color-mix(in srgb, var(--bg-sanjab-cream-light) 50%, var(--bg-sanjab-cream));
  border: none;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(84, 65, 42, 0.04);
}

.tech-proof-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--badge-bg);
  color: var(--accent-gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

@media (max-width: 992px) {
  .tech-proof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .tech-proof-grid { grid-template-columns: 1fr; }
}

/* Executed with overlay */
.executed-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-soft);
}

.executed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.executed-card:hover img { transform: scale(1.05); }

.executed-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--overlay-dark), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFFFFF;
}

.executed-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.executed-card__cta {
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 600;
}

.executed-card__cta span { color: var(--accent-gold); }

/* Catalog panel */
.catalog-panel {
  background: var(--bg-surface);
  border: 1px solid var(--accent-stone);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.catalog-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Final CTA */
.final-cta-section {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-sanjab-cream-deep) 35%, var(--bg-sanjab-cream)) 0%,
    #2A241A 18%,
    #1A1A1A 100%
  );
  color: #FFFFFF;
  text-align: center;
}

[data-theme="dark"] .final-cta-section {
  background: linear-gradient(135deg, #050505, #1D1609);
}

.final-cta-section .section-subtitle {
  color: #D8D1C4;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.btn-fargah--outline-light {
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: #F1E5C8;
}

.btn-fargah--outline-light:hover {
  background: rgba(200, 169, 110, 0.12);
  color: #F1E5C8;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--accent-stone);
  text-align: right;
}

[dir="ltr"] .spec-table th,
[dir="ltr"] .spec-table td {
  text-align: left;
}

.spec-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 35%;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--accent-stone);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb-fargah {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumb-fargah a:hover {
  color: var(--accent-gold);
}

.breadcrumb-fargah span {
  color: var(--accent-stone);
}

.form-fargah .form-control.is-invalid,
.form-fargah .form-control:invalid:not(:placeholder-shown) {
  border-color: var(--status-error);
}

.form-fargah .invalid-feedback,
.form-fargah .form-error {
  color: var(--status-error);
  font-size: 0.8125rem;
  margin-top: 6px;
}

.alert-fargah--success {
  background: rgba(92, 122, 94, 0.12);
  border-color: var(--status-success);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 0;
}

.section-cta-center {
  text-align: center;
  margin-top: 48px;
}

.header-whatsapp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.header-whatsapp:hover {
  background: rgba(200, 169, 110, 0.1);
  color: var(--accent-gold);
}

/* Catalog page (mockup ref) */
.catalog-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height, 88px));
  padding-top: var(--header-height, 88px);
}

.catalog-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.catalog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.75), rgba(26, 26, 26, 0.2));
}

.catalog-hero__content {
  position: relative;
  z-index: 2;
  padding: 64px 0 48px;
}

.catalog-hero__title {
  color: #FFFFFF;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.catalog-hero__subtitle {
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.catalog-sidebar {
  background: var(--bg-primary);
  border: 1px solid var(--accent-stone);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
}

.catalog-sidebar__title {
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent-stone);
}

.catalog-filter-group {
  margin-bottom: 24px;
}

.catalog-filter-group__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.catalog-filter-link {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.catalog-filter-link:hover,
.catalog-filter-link.active {
  color: var(--accent-gold-text);
}

.catalog-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  cursor: default;
}

.catalog-checkbox input { accent-color: var(--accent-gold); }

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--accent-stone);
}

.catalog-product-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-sanjab);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.catalog-product-card:hover,
.catalog-product-card:focus-within {
  border-color: color-mix(in srgb, var(--accent-gold) 55%, var(--border-sanjab));
  box-shadow: 0 8px 24px rgba(84, 65, 42, 0.1);
  transform: translateY(-3px);
}

.catalog-product-card__image-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.catalog-product-card__image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.catalog-product-card:hover .catalog-product-card__image-wrap img,
.catalog-product-card:focus-within .catalog-product-card__image-wrap img {
  transform: scale(1.15);
}

[data-theme="dark"] .catalog-product-card__image-wrap img,
[data-theme="dark"] .product-inquiry-card__image img {
  mix-blend-mode: normal;
}

.catalog-product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: var(--badge-bg);
  color: var(--accent-gold-text);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

[dir="ltr"] .catalog-product-card__badge {
  right: auto;
  left: 12px;
}

.catalog-product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--border-sanjab);
}

.catalog-product-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.catalog-product-card__material {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex: 1;
}

.catalog-product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.catalog-product-card__details-link {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.catalog-product-card__details-link:hover {
  color: var(--accent-gold-text);
}

.catalog-product-card__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.catalog-product-card__title-link:hover {
  color: var(--accent-gold-text);
}

/* Sanjab-style featured products — PNG cutout on page background */
.featured-products-section {
  background: transparent;
}

.featured-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.catalog-product-card--sanjab {
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: center;
  box-shadow: none;
}

.catalog-product-card--sanjab:hover,
.catalog-product-card--sanjab:focus-within {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-5px);
}

.catalog-product-card--sanjab:hover .catalog-product-card__image-wrap img,
.catalog-product-card--sanjab:focus-within .catalog-product-card__image-wrap img {
  transform: scale(1.22);
}

.catalog-product-card:hover .catalog-product-card__title-link,
.catalog-product-card:focus-within .catalog-product-card__title-link,
.catalog-product-card:hover .catalog-product-card__inquiry,
.catalog-product-card:focus-within .catalog-product-card__inquiry {
  color: var(--accent-gold-text);
}

.catalog-product-card--sanjab .catalog-product-card__image-wrap {
  aspect-ratio: 1 / 1;
  padding: clamp(8px, 1.5vw, 16px);
  background: transparent;
}

.catalog-product-card--sanjab .catalog-product-card__image-wrap img {
  max-height: 200px;
}

.catalog-product-card--sanjab .catalog-product-card__body {
  border-top: none;
  padding: 10px 6px 0;
}

.catalog-product-card--sanjab .catalog-product-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 6px;
}

.catalog-product-card--sanjab .catalog-product-card__actions {
  margin-top: 0;
}

.catalog-product-card__inquiry {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.catalog-product-card__inquiry:hover {
  color: var(--accent-gold-text);
}

@media (max-width: 992px) {
  .featured-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .featured-products-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-pagination {
  margin-top: 48px;
}

.pagination-fargah__list .page-link {
  min-width: 40px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border-color: var(--accent-stone);
  border-radius: var(--radius-sm) !important;
  margin: 0 3px;
  padding: 8px 14px;
  font-size: 0.88rem;
}

.pagination-fargah__list .page-item:first-child .page-link,
.pagination-fargah__list .page-item:last-child .page-link {
  border-radius: var(--radius-sm) !important;
}

.pagination-fargah__list .page-link:hover {
  color: var(--accent-gold-text);
  background: color-mix(in srgb, var(--accent-gold) 8%, var(--bg-primary));
  border-color: var(--accent-gold);
}

.pagination-fargah__list .page-item.active .page-link {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #FFFFFF;
}

.pagination-fargah__list .page-item.disabled .page-link {
  color: var(--text-muted);
  background: var(--bg-surface);
  opacity: 0.6;
}

.catalog-consult-bar {
  background: var(--bg-stone-soft);
  border-top: 1px solid var(--accent-stone);
  padding: 28px 0;
}

.catalog-consult-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-fargah--sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

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

@media (max-width: 768px) {
  .catalog-hero {
    min-height: 220px;
    margin-top: 0;
    padding-top: 0;
  }

  .catalog-hero__content {
    padding: 40px 0 28px;
  }

  .catalog-hero__title {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .catalog-hero__subtitle {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .catalog-mobile-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 20px;
  }

  .catalog-mobile-filters::-webkit-scrollbar {
    display: none;
  }

  .catalog-mobile-filters .btn-fargah {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .catalog-product-card__image-wrap {
    padding: 12px;
  }

  .catalog-product-card__body {
    padding: 14px;
  }
}
.add-to-cart-form { margin: 0; }

/* Decorative section headings — sanjab-style ornaments */
.section-heading-decor {
  text-align: start;
  margin-bottom: 40px;
}

.section-heading-decor--center {
  text-align: center;
}

.section-heading-decor__ornament {
  display: block;
  margin: 0 auto 16px;
  opacity: 0.9;
}

.section-heading-decor .section-subtitle {
  max-width: 620px;
}

/* Testimonials — vividvisual-style slideshow */
.testimonials-section {
  padding: 72px 0;
  background: transparent;
}

.testimonials-slider {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.testimonials-slider__track {
  position: relative;
  min-height: 280px;
}

.testimonials-slider__slide {
  margin: 0;
  padding: 12px 8px 0;
  text-align: center;
  animation: testimonialFade 0.5s ease;
}

@keyframes testimonialFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.testimonials-slider__quote-mark {
  display: block;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--studio-gold, #C5A46E);
  opacity: 0.55;
  margin-bottom: 8px;
  font-family: Georgia, serif;
}

.testimonials-slider__text {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 2;
  color: var(--text-primary);
  margin: 0 0 28px;
  font-weight: 500;
}

.testimonials-slider__author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-style: normal;
}

.testimonials-slider__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4B87A, #C5A46E);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(197, 164, 110, 0.35);
}

.testimonials-slider__name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.testimonials-slider__role {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonials-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.testimonials-slider__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--accent-stone);
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.testimonials-slider__arrow:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: #fff;
}

[dir="rtl"] .testimonials-slider__arrow--prev svg,
[dir="rtl"] .testimonials-slider__arrow--next svg {
  transform: scaleX(-1);
}

.testimonials-slider__dots {
  display: flex;
  gap: 8px;
}

.testimonials-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent-stone);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.testimonials-slider__dot.is-active {
  background: var(--accent-gold);
  transform: scale(1.25);
}

/* Where to buy — EQX GOLDRUSH inspired (black + gold luxury) */
.goldrush-locations {
  position: relative;
  padding: 88px 0;
  background: #080808;
  color: #f5f0e6;
  overflow: hidden;
}

.goldrush-locations__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 50%, rgba(201, 168, 76, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 30%, rgba(201, 168, 76, 0.06), transparent 65%);
  pointer-events: none;
}

.goldrush-locations__container {
  position: relative;
  z-index: 1;
}

.goldrush-locations__header {
  max-width: 640px;
  margin-bottom: 48px;
}

.goldrush-locations__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 16px;
}

.goldrush-locations__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.2;
}

.goldrush-locations__subtitle {
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(245, 240, 230, 0.62);
  margin: 0;
}

.goldrush-locations__split {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 0;
  min-height: 480px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.goldrush-locations__panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
  border-inline-end: 1px solid rgba(201, 168, 76, 0.15);
  overflow-y: auto;
  max-height: 520px;
}

.goldrush-locations__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  width: 100%;
  padding: 24px 22px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  text-align: start;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  color: inherit;
}

.goldrush-locations__item:last-child {
  border-bottom: none;
}

.goldrush-locations__item:hover,
.goldrush-locations__item.is-active {
  background: rgba(201, 168, 76, 0.08);
}

.goldrush-locations__item.is-active {
  border-inline-start: 2px solid #c9a84c;
  padding-inline-start: 20px;
}

[dir="rtl"] .goldrush-locations__item.is-active {
  border-inline-start: none;
  border-inline-end: 2px solid #c9a84c;
  padding-inline-start: 22px;
  padding-inline-end: 20px;
}

.goldrush-locations__index {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(201, 168, 76, 0.55);
  padding-top: 4px;
}

.goldrush-locations__item.is-active .goldrush-locations__index {
  color: #c9a84c;
}

.goldrush-locations__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.goldrush-locations__city {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.goldrush-locations__badge {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: linear-gradient(135deg, #d4b87a, #c9a84c);
  border-radius: 2px;
}

.goldrush-locations__address,
.goldrush-locations__hours {
  font-size: 0.86rem;
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.55);
}

.goldrush-locations__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.goldrush-locations__phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: #c9a84c;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: isolate;
}

.goldrush-locations__phone:hover {
  color: #e0c88a;
}

.goldrush-locations__directions {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.goldrush-locations__directions:hover {
  color: #c9a84c;
  border-color: #c9a84c;
}

.goldrush-locations__map-wrap {
  position: relative;
  min-height: 480px;
  background: #111;
}

.goldrush-locations__map-frame {
  position: absolute;
  inset: 0;
}

.goldrush-locations__map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #111;
  filter: saturate(0.85) contrast(1.05);
}

.goldrush-locations__map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.35) 0%, transparent 28%);
}

[dir="rtl"] .goldrush-locations__map-overlay {
  background: linear-gradient(270deg, rgba(8, 8, 8, 0.35) 0%, transparent 28%);
}

.goldrush-locations__marker {
  background: transparent;
  border: none;
}

.goldrush-locations__marker span {
  display: block;
  width: 20px;
  height: 20px;
  margin: 6px;
  background: radial-gradient(circle at 35% 35%, #e8d5a0, #c9a84c 55%, #8a6a2f);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.35), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.goldrush-locations--compact {
  padding: 0;
}

.goldrush-locations--compact .goldrush-locations__split {
  border-radius: 0;
  border-inline: none;
}

.contact-form-section {
  background: var(--bg-primary);
}

.consultation-panel--contact {
  max-width: 720px;
  margin: 0 auto;
}

.leaflet-container {
  background: #111;
  font-family: inherit;
}

.leaflet-popup-content-wrapper {
  background: #141414;
  color: #f5f0e6;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content a {
  color: #c9a84c;
}

.leaflet-popup-tip {
  background: #141414;
}

@media (max-width: 992px) {
  .goldrush-locations {
    padding: 64px 0;
  }

  .goldrush-locations__split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .goldrush-locations__panel {
    border-inline-end: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .goldrush-locations__item {
    min-width: 300px;
    scroll-snap-align: start;
    border-bottom: none;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
  }

  .goldrush-locations__map-wrap {
    min-height: 340px;
  }

  .goldrush-locations__map-overlay {
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.25) 0%, transparent 22%);
  }
}

@media (max-width: 768px) {
  .testimonials-slider__track {
    min-height: 320px;
  }

  .testimonials-section,
  .goldrush-locations {
    padding: 56px 0;
  }
}

/* Articles — Medium-style reading experience */
.articles-hub {
  padding: 56px 0 80px;
  background: var(--bg-primary);
}

.articles-hub__intro {
  max-width: 680px;
  margin-bottom: 48px;
}

.articles-hub__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.articles-hub__subtitle {
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0;
}

.articles-hub__pagination {
  margin-top: 48px;
}

.article-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  margin-bottom: 48px;
  background: var(--bg-primary);
  border: 1px solid var(--border-sanjab);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.article-featured:hover,
.article-featured:focus-within {
  border-color: color-mix(in srgb, var(--accent-gold) 55%, var(--border-sanjab));
  box-shadow: 0 10px 28px rgba(84, 65, 42, 0.1);
  transform: translateY(-3px);
}

.article-featured__image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.article-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-featured:hover .article-featured__image img,
.article-featured:focus-within .article-featured__image img {
  transform: scale(1.06);
}

.article-featured:hover .article-featured__title {
  color: var(--accent-gold-text);
}

.article-featured__label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold-text);
}

.article-featured__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

.article-featured__excerpt {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-featured__meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.article-feed {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-feed--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-feed-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--bg-sanjab-cream-light) 65%, var(--bg-sanjab-cream));
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 16px rgba(84, 65, 42, 0.05);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.article-feed-card:hover,
.article-feed-card:focus-within {
  box-shadow: 0 10px 28px rgba(84, 65, 42, 0.09);
  transform: translateY(-3px);
}

.article-feed-card__image {
  aspect-ratio: 4 / 3;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}

.article-feed-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-sm);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-feed-card:hover .article-feed-card__image img,
.article-feed-card:focus-within .article-feed-card__image img {
  transform: scale(1.08);
}

.article-feed-card:hover .article-feed-card__title {
  color: var(--accent-gold-text);
}

.article-feed-card__body {
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  border-top: none;
}

.article-feed-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  transition: color 0.25s ease;
}

.article-feed-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
  flex: 1;
}

.article-feed-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Single article — Medium layout */
.article-medium {
  background: var(--bg-primary);
  padding-bottom: 72px;
}

.article-medium__header {
  padding: 48px 0 24px;
}

.article-medium__header-inner {
  max-width: 740px;
}

.article-medium__back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.article-medium__back:hover {
  color: var(--accent-gold-text);
}

.article-medium__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.article-medium__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-medium__author {
  font-weight: 600;
  color: var(--text-primary);
}

.article-medium__dot {
  opacity: 0.5;
}

.article-medium__cover {
  margin-bottom: 40px;
}

.article-medium__cover-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #EDE8DF;
}

.article-medium__cover-frame img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.article-medium__body {
  max-width: 680px;
  margin: 0 auto;
}

.article-prose {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-primary);
}

.article-prose > *:first-child {
  margin-top: 0;
}

.article-prose p {
  margin-bottom: 1.5em;
}

.article-prose h2,
.article-prose h3,
.article-prose h4 {
  font-weight: 800;
  line-height: 1.35;
  margin: 2em 0 0.75em;
  letter-spacing: -0.02em;
}

.article-prose h2 { font-size: 1.65rem; }
.article-prose h3 { font-size: 1.35rem; }
.article-prose h4 { font-size: 1.15rem; }

.article-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2em 0;
}

.article-prose figure {
  margin: 2em 0;
}

.article-prose figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

.article-prose blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 20px;
  border-inline-start: 3px solid var(--accent-gold);
  font-style: italic;
  color: var(--text-secondary);
}

.article-prose ul,
.article-prose ol {
  margin-bottom: 1.5em;
  padding-inline-start: 1.4em;
}

.article-prose li {
  margin-bottom: 0.5em;
}

.article-prose a {
  color: var(--accent-gold-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose iframe,
.article-prose video {
  max-width: 100%;
  border-radius: var(--radius-md);
}

.article-medium__footer {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--accent-stone);
}

.article-medium__cta-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article-medium__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.article-medium__related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--accent-stone);
  background: var(--bg-surface);
}

.article-medium__related-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 28px;
}

[dir="ltr"] .article-medium__back {
  direction: ltr;
}

@media (max-width: 992px) {
  .article-feed--grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .articles-hub {
    padding: 40px 0 64px;
  }

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

  .article-medium__header {
    padding-top: 32px;
  }

  .article-prose {
    font-size: 1.05rem;
    line-height: 1.85;
  }

  .article-medium__cta-actions {
    flex-direction: column;
  }

  .article-medium__cta-actions .btn-fargah {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-product-card,
  .catalog-product-card__image-wrap img,
  .product-inquiry-card,
  .product-inquiry-card__image img,
  .article-feed-card,
  .article-feed-card__image img,
  .article-featured,
  .article-featured__image img,
  .card-premium,
  .card-premium__image img,
  .trust-strip__panel {
    transition: none !important;
    transform: none !important;
  }

  .catalog-product-card:hover,
  .catalog-product-card:focus-within,
  .product-inquiry-card:hover,
  .product-inquiry-card:focus-within,
  .article-feed-card:hover,
  .article-feed-card:focus-within,
  .article-featured:hover,
  .article-featured:focus-within,
  .card-premium:hover,
  .card-premium:focus-within,
  .catalog-product-card--sanjab:hover,
  .catalog-product-card--sanjab:focus-within {
    transform: none !important;
  }

  .catalog-product-card:hover .catalog-product-card__image-wrap img,
  .catalog-product-card:focus-within .catalog-product-card__image-wrap img,
  .product-inquiry-card:hover .product-inquiry-card__image img,
  .article-feed-card:hover .article-feed-card__image img,
  .article-featured:hover .article-featured__image img,
  .card-premium:hover .card-premium__image img,
  .catalog-product-card--sanjab:hover .catalog-product-card__image-wrap img {
    transform: none !important;
  }
}
