/* Ad detail page. Scoped so the rest of the site keeps its own skin. */
.np-item {
  --ink: #1c1915;
  --muted: #6d655c;
  --line: #e6dfd3;
  --paper: #f4f0e8;
  --card: #fffdfb;
  --gold: #9a6b24;
  --gold-deep: #7c5416;
  --gold-soft: #f8efdc;
  --ink-card: #1b1916;
  --ok: #1d6b45;
  --danger: #8d2d38;
  --shadow: 0 16px 40px rgba(48, 36, 16, 0.08);
  background:
    radial-gradient(900px 280px at 100% 0, rgba(198, 161, 90, 0.22), transparent 60%),
    var(--paper);
  color: var(--ink);
  padding: 22px 0 56px;
  border-top: 1px solid #eadfcd;
}

.np-item,
.np-item * {
  box-sizing: border-box;
  -webkit-user-select: text;
  user-select: text;
}

.np-item h1,
.np-item h2,
.np-item h3,
.np-item p {
  margin: 0;
  font-weight: normal;
}

.np-item a {
  color: inherit;
}

.np-item__wrap {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.np-item__crumbs {
  margin-bottom: 18px;
}

.np-item__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-item__crumbs li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.np-item__crumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: #c3b8a6;
}

.np-item__crumbs a:hover {
  color: var(--gold-deep);
}

.np-item__crumbs [aria-current="page"] {
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-item,
.np-item__wrap,
.np-item__grid {
  overflow: visible;
}

.np-item__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 22px;
  align-items: start;
}

.np-item__main {
  min-width: 0;
}

.np-item__aside {
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

body:has(.np-item) {
  overflow-x: clip !important;
}

.np-item__panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.np-item__intro,
.np-item__section {
  padding: 22px;
}

.np-item__intro {
  margin-bottom: 16px;
}

.np-item__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.np-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.np-item__badge--gold {
  background: linear-gradient(180deg, #f8e7c2, #e7c98a);
  color: #5c3f0d;
}

.np-item__badge--plain {
  background: #efeae2;
  color: #514a42;
}

.np-item__badge--gem {
  background: #eef3fb;
  color: #24508f;
}

.np-item .ad-rank {
  margin-right: 2px;
}

.np-item h1 {
  color: var(--ink);
  font-family: var(--font-medium), Tahoma, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.55;
}

.np-item__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.np-item__facts div {
  min-width: 0;
  padding: 10px 12px;
  background: #faf7f2;
  border: 1px solid #efe8dc;
  border-radius: 14px;
}

.np-item__facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.np-item__facts dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-item__facts a:hover {
  color: var(--gold-deep);
}

.np-item__stage {
  display: block;
  position: relative;
  float: left;
  width: auto;
  max-width: 100%;
  margin: 0 16px 12px 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.np-item__stage > a {
  display: inline-block;
  position: relative;
  width: auto;
  max-width: 100%;
}

.np-item__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
}

.np-item__stage--empty {
  min-height: 180px;
}

.np-item__stage--empty p {
  color: var(--muted);
  text-align: center;
}

.np-item__zoom {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(28, 25, 21, 0.72);
  border-radius: 999px;
  font-size: 12px;
  pointer-events: none;
}

.np-item__gallery {
  float: left;
  width: auto;
  max-width: 100%;
  margin: 0 16px 12px 0;
}

.np-item__gallery ._carousel {
  display: none !important;
}

.np-item__gallery ul.sp-gallary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-item__gallery ul.sp-gallary li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-item__gallery ul.sp-gallary li:first-child {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

.np-item__gallery ul.sp-gallary li:first-child a {
  display: inline-block;
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.np-item__gallery ul.sp-gallary li:first-child img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.np-item__gallery ul.sp-gallary li:not(:first-child) {
  width: 84px;
  height: 72px;
}

.np-item__gallery ul.sp-gallary li:not(:first-child) a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.np-item__gallery ul.sp-gallary li:not(:first-child) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-item__gallery ul.sp-gallary a:hover {
  border-color: #d7b56a;
}

.np-item__section + .np-item__section,
.np-item__panel + .np-item__panel {
  margin-top: 16px;
}

.np-item__section h2,
.np-item__block-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-medium), Tahoma, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.np-item__story {
  display: flow-root;
}

.np-item__desc {
  position: relative;
  color: #2c2824;
  font-size: 15px;
  line-height: 2;
}

.np-item__desc.is-clamped {
  max-height: 320px;
  overflow: hidden;
}

.np-item__desc.is-clamped::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  background: linear-gradient(to bottom, rgba(255, 253, 251, 0), var(--card));
  pointer-events: none;
}

.np-item__desc p,
.np-item__desc .AdDesc {
  color: #2c2824;
  line-height: 2;
  text-align: justify;
}

.np-item__desc .AdDesc > :first-child {
  margin-top: 0;
}

.np-item__desc .AdDesc img {
  float: left;
  clear: left;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  margin: 0 16px 10px 0;
  border-radius: 0;
}

.np-item__desc table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.np-item__desc a {
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(154, 107, 36, 0.35);
}

.np-item__desc h1,
.np-item__desc h2,
.np-item__desc h3 {
  margin: 12px 0 6px;
  font-size: 16px;
  line-height: 1.7;
}

.np-item__alert,
.np-item__desc .Warning-ads {
  margin-bottom: 14px;
  padding: 14px 16px;
  color: var(--danger);
  background: #fff5f4;
  border: 1px solid #f0cdc8;
  border-radius: 16px;
}

.np-item__alert-title,
.np-item__desc .Warning-ads h1 {
  margin: 0 0 4px;
  color: var(--danger);
  font-family: var(--font-medium), Tahoma, sans-serif;
  font-size: 15px;
}

.np-item__more {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 0;
  color: var(--gold-deep);
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.np-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-item__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  color: #3f3831;
  background: var(--gold-soft);
  border-radius: 999px;
  font-size: 13px;
}

.np-item__tags a:hover {
  background: #f3e2c0;
  color: #3f3831;
}

.np-item__share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.np-item__share a,
.np-item__share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: #faf7f2;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.np-item__share a:hover,
.np-item__share button:hover {
  border-color: #d7b56a;
  color: var(--ink);
}

.np-item__related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.np-item__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.np-item__card:hover {
  border-color: #e0c48a;
  color: var(--ink);
  transform: translateY(-2px);
}

.np-item__card-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3eee6;
}

.np-item__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-item__card-flag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  color: #5c3f0d;
  background: #f4e2b8;
  border-radius: 999px;
  font-size: 11px;
}

.np-item__card h3 {
  margin: 0;
  padding: 12px 12px 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

.np-item__card p {
  padding: 4px 12px 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.np-item__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  background:
    linear-gradient(135deg, rgba(255, 253, 251, 0.4), rgba(255, 253, 251, 0.4)),
    linear-gradient(135deg, #f8efdc, #fff);
}

.np-item__cta h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.np-item__cta p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: right;
}

.np-item__seller {
  position: relative;
  padding: 20px;
  color: #f6f1e7;
  background:
    radial-gradient(280px 140px at 100% 0, rgba(216, 176, 106, 0.28), transparent 70%),
    var(--ink-card);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(28, 25, 21, 0.18);
}

.np-item__seller-label {
  margin-bottom: 4px;
  color: #cbbfaa;
  font-size: 12px;
}

.np-item__seller h2 {
  margin-bottom: 14px;
  color: #fff;
  font-family: var(--font-medium), Tahoma, sans-serif;
  font-size: 20px;
  line-height: 1.6;
}

.np-item__price {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.np-item__price span {
  display: block;
  margin-bottom: 2px;
  color: #cbbfaa;
  font-size: 12px;
}

.np-item__price strong {
  display: block;
  color: #f6e2b6;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.np-item__calls {
  display: grid;
  gap: 8px;
}

.np-item__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 15px;
  text-align: center;
}

.np-item__btn b {
  font-weight: 700;
}

.np-item a.np-item__btn--gold,
.np-item a.np-item__btn--gold:hover,
.np-item a.np-item__btn--gold:focus,
.np-item a.np-item__btn--gold span,
.np-item a.np-item__btn--gold b {
  color: #1a1208;
  font-weight: 700;
}

.np-item a.np-item__btn--gold {
  background: linear-gradient(180deg, #f3d48a, #d7ae55);
}

.np-item a.np-item__btn--gold:hover {
  filter: brightness(1.04);
}

.np-item a.np-item__btn--ghost {
  margin-top: 8px;
  background: transparent;
  border: 1px solid rgba(246, 241, 231, 0.28);
}

.np-item a.np-item__btn--ghost,
.np-item a.np-item__btn--ghost span,
.np-item a.np-item__btn--ghost b {
  color: #f6f1e7;
}

.np-item a.np-item__btn--ghost:hover,
.np-item a.np-item__btn--ghost:focus,
.np-item a.np-item__btn--ghost:hover span,
.np-item a.np-item__btn--ghost:hover b {
  color: #fff;
  border-color: #e0be73;
}

.np-item a.np-item__btn--ink,
.np-item a.np-item__btn--ink:hover,
.np-item a.np-item__btn--ink:focus,
.np-item a.np-item__btn--ink span,
.np-item a.np-item__btn--ink b {
  color: #fff;
}

.np-item a.np-item__btn--ink {
  background: #4a433c;
}

.np-item a.np-item__btn--ink:hover {
  background: #3f3933;
}

#main-search-button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 46px !important;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.np-item__rows {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.np-item__rows li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  line-height: 1.7;
}

.np-item__rows span {
  color: #cbbfaa;
}

.np-item__rows strong,
.np-item__rows a {
  min-width: 0;
  color: #fff;
  font-weight: normal;
  overflow-wrap: anywhere;
}

.np-item__rows a:hover {
  color: #f0d7a2;
}

.np-item__mail {
  display: inline-block;
  padding: 2px;
  background: #fff;
  border-radius: 6px;
  line-height: 0;
}

.np-item__qr {
  margin-top: 16px;
  padding: 18px;
  text-align: center;
}

.np-item__qr h2 {
  margin-bottom: 6px;
  font-size: 16px;
}

.np-item__qr p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.np-item__qr img {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  image-rendering: pixelated;
}

.np-item__banners {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.np-item__banners h2 {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.np-item__banners a {
  display: block;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.np-item__banners img {
  display: block;
  width: 100%;
  height: auto;
}

.np-item__banners p,
.np-item__banners cite {
  display: block;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.7;
  text-align: right;
}

.np-item__banners cite {
  padding-bottom: 12px;
}

.np-item__dock {
  display: none;
}

.np-item--status {
  min-height: 52vh;
}

.np-item__status {
  width: min(560px, calc(100% - 28px));
  margin: 28px auto;
  padding: 32px 26px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.np-item__status-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-size: 22px;
}

.np-item__status--info .np-item__status-mark {
  color: #24508f;
  background: #e8f0fb;
}

.np-item__status--warn .np-item__status-mark {
  color: #8a5a10;
  background: #f8efdc;
}

.np-item__status--danger .np-item__status-mark {
  color: var(--danger);
  background: #fdeceb;
}

.np-item__status h1 {
  margin-bottom: 8px;
  font-size: 24px;
}

.np-item__status p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.np-item__status-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.np-item__status .np-item__btn {
  min-width: 140px;
}

.np-item [hidden] {
  display: none !important;
}

.np-item a:focus-visible,
.np-item button:focus-visible {
  box-shadow: 0 0 0 3px rgba(154, 107, 36, 0.35);
}

@media (max-width: 960px) {
  body:has(.np-item) {
    padding-top: var(--mobile-header, 55px);
    padding-bottom: 84px;
  }

  .np-item {
    padding-bottom: 28px;
  }

  .np-item__grid,
  .np-item__facts,
  .np-item__related {
    grid-template-columns: 1fr;
  }

  .np-item__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .np-item h1,
  .np-item__status h1 {
    font-size: 22px;
  }

  .np-item__aside {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .np-item__qr {
    display: none;
  }

  .np-item__seller {
    position: static;
  }

  .np-item__related {
    display: flex;
    gap: 12px;
    margin: 0 -4px;
    padding-bottom: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .np-item__card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .np-item__dock {
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 251, 0.94);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(28, 25, 21, 0.06);
    backdrop-filter: blur(10px);
  }

  .np-item__dock-who {
    min-width: 0;
    flex: 1;
  }

  .np-item__dock-who strong,
  .np-item__dock-who span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .np-item__dock-who strong {
    font-size: 14px;
  }

  .np-item__dock-who span {
    color: var(--muted);
    font-size: 12px;
  }

  .np-item__dock .np-item__btn {
    flex: 0 0 auto;
    min-width: 92px;
    min-height: 44px;
    margin: 0;
  }

  .cd-top,
  .material-menu {
    bottom: 86px !important;
  }
}

@media (max-width: 640px) {
  .np-item__intro,
  .np-item__section {
    padding: 16px;
  }

  .np-item__panel,
  .np-item__stage,
  .np-item__gallery ul.sp-gallary li:first-child a,
  .np-item__seller {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-item__card,
  .np-item__card:hover {
    transition: none;
    transform: none;
  }
}

@media print {
  .np-item {
    background: #fff;
    padding: 0;
  }

  .np-item__dock,
  .np-item__share,
  .np-item__banners,
  .np-item__cta,
  .material-menu {
    display: none !important;
  }

  .np-item__seller,
  .np-item__grid {
    position: static;
    display: block;
  }
}
