@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;500;600;700&display=swap");

:root {
  --navy: #1b2430;
  --blue: #2f6bff;
  --blue-hover: #2458e0;
  --green: #2fbf6b;
  --green-hover: #27a85c;
  --text: #1c2430;
  --muted: #8a9099;
  --line: #eceff3;
  --soft: #f3f5f7;
  --card: #f7f8fa;
  --ok: #1f9a55;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Noto Sans Armenian", "Noto Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #fff;
}

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

button,
input {
  font-family: inherit;
}

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy);
  color: #c9d0d8;
  font-size: 13px;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-btn {
  background: #2a3340;
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
}

.hot {
  display: inline-block;
  margin-left: 4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  padding: 1px 5px;
  vertical-align: 1px;
}

.header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.menu-btn,
.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #5b6470;
  cursor: pointer;
}

.menu-btn {
  background: var(--soft);
  border-color: transparent;
}

.search {
  display: flex;
  align-items: center;
  height: 44px;
  background: var(--soft);
  border-radius: 12px;
  padding: 0 12px;
  gap: 8px;
  color: #9aa1ab;
}

.search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  color: var(--text);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.btn.ghost {
  background: #fff;
  border: 1px solid #d7dde8;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 18px;
}

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

.btn.blue:hover {
  background: var(--blue-hover);
}

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

.btn.green:hover {
  background: var(--green-hover);
}

.btn.full {
  flex: 1;
}

.btn:disabled {
  opacity: 0.65;
}

.page {
  padding: 16px 0 40px;
}

.crumbs {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.listing {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.78fr);
  gap: 28px;
  align-items: start;
}

.gallery {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #e9edf2;
  cursor: pointer;
}

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

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.dots button.active {
  background: #fff;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #7b838c;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.14);
}

.nav-arrow svg {
  width: 18px;
  height: 18px;
}

.nav-arrow.prev {
  left: 12px;
}

.nav-arrow.next {
  right: 12px;
}

.gallery:hover .nav-arrow {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .nav-arrow {
    opacity: 1;
    pointer-events: auto;
  }
}

.zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(28, 36, 48, 0.42);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}

.zoom-hint svg {
  width: 16px;
  height: 16px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  grid-template-rows: 48px 1fr;
  background: #1b1b1b;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-bar {
  display: grid;
  place-items: center;
  color: #e8e8e8;
  font-size: 14px;
  background: #111;
}

.lightbox-body {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  min-height: 0;
}

.lightbox-stage {
  position: relative;
  height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  margin: 0;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: calc(100vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox-brand {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.lightbox-brand img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.lightbox-arrow {
  width: 48px;
  height: 72px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.85;
}

.lightbox-arrow svg {
  width: 28px;
  height: 28px;
}

.lightbox-arrow:hover {
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

.title-row {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.heart-photo {
  display: none;
}

.search-menu,
.cart-btn,
.sticky-cta {
  display: none;
}

.crumbs-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.crumbs-report {
  color: #9aa3ad;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.heart {
  color: #c5cad3;
  background: none;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.price {
  margin: 8px 0 16px;
  font-size: 32px;
  font-weight: 700;
}

.price small {
  font-size: 16px;
  color: #9aa3ad;
  font-weight: 500;
}

.seller {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.seller-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

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

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #8b4dff;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
}

.who strong {
  display: block;
  font-size: 16px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

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

.quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.quick {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px 10px;
  text-align: center;
  font-size: 13px;
  color: #4b5563;
}

.quick .q-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.loc {
  margin-top: 16px;
  background: #f2f6fa;
  color: var(--blue);
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vin-pill {
  display: inline-block;
  margin: 14px 0 8px;
  background: #e7f8ee;
  color: var(--ok);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: 26px 0 4px;
}

.section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
}

.spec {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  color: #4b5563;
}

.spec b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  word-break: break-word;
}

.spec .muted {
  display: block;
  margin-top: 1px;
}

.ok {
  color: var(--ok);
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c9b18a;
  display: block;
}

.desc {
  max-width: 760px;
  line-height: 1.7;
  font-size: 15px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}

.banner {
  margin: 28px 0 8px;
  height: 148px;
  border-radius: 18px;
  overflow: hidden;
  background: #d7ecff center / cover no-repeat;
}

.footer-flag {
  display: none;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

body.price-locked {
  overflow: hidden;
}

body.price-locked .topbar,
body.price-locked .header,
body.price-locked .page,
body.price-locked .footer,
body.price-locked .sticky-cta {
  pointer-events: none;
}

.price-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(120, 128, 138, 0.42);
}

.price-gate[hidden] {
  display: none;
}

.price-card {
  width: min(620px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.16);
}

.price-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  color: #1c2430;
}

.lang-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lang-btn {
  appearance: none;
  border: 2px solid transparent;
  background: #f4f5f7;
  border-radius: 16px;
  min-height: 118px;
  padding: 18px 10px 16px;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #1c2430;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.lang-btn:hover {
  background: #eef0f3;
}

.lang-btn.selected {
  background: #fff;
  border-color: #2f6bff;
}

.lang-flag {
  font-size: 28px;
  line-height: 1;
}

.lang-btn:disabled {
  opacity: 1;
  cursor: wait;
}

@media (max-width: 900px) {
  .desktop-only {
    display: none !important;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .topbar {
    font-size: 12px;
  }

  .topbar .wrap {
    min-height: 34px;
  }

  .header .wrap {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "logo cart login"
      "search search search";
    gap: 10px 8px;
    padding: 10px 0 12px;
  }

  .brand {
    grid-area: logo;
  }

  .logo {
    font-size: 26px;
  }

  .logo img {
    width: 28px;
    height: 28px;
  }

  .actions {
    display: contents;
  }

  .cart-btn {
    grid-area: cart;
    display: grid;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
  }

  .login-btn {
    grid-area: login;
    background: var(--blue);
    color: #fff;
    border-color: transparent;
    border-radius: 999px;
    padding: 8px 16px;
    height: 40px;
  }

  .search {
    grid-area: search;
    height: 46px;
  }

  .search-menu {
    display: grid;
    width: 36px;
    height: 36px;
    border: 0;
    background: #e8ecf0;
    border-radius: 10px;
    flex: 0 0 36px;
  }

  .search-icon {
    display: none;
  }

  .page {
    display: flex;
    flex-direction: column;
    padding: 8px 0 108px;
  }

  .listing,
  .side,
  .crumbs-row {
    display: contents;
  }

  .crumbs-path {
    order: 1;
    margin: 4px 0 10px;
  }

  .gallery {
    order: 2;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    border-radius: 0;
  }

  .gallery img {
    height: min(72vw, 320px);
  }

  .zoom-hint {
    display: none;
  }

  .heart-photo {
    display: grid;
    place-items: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #c5cad3;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.12);
  }

  .nav-arrow {
    width: 36px;
    height: 36px;
  }

  .listing-head {
    order: 3;
  }

  .title-row {
    font-size: 22px;
    margin-top: 14px;
  }

  .price {
    font-size: 28px;
    margin: 8px 0 12px;
  }

  .loc {
    order: 4;
  }

  .vin-pill {
    order: 5;
  }

  .section {
    order: 6;
    padding: 22px 0 2px;
  }

  .section h2 {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .banner {
    order: 7;
    height: 110px;
    margin: 20px 0 6px;
    border-radius: 14px;
  }

  .crumbs-report {
    order: 8;
    color: #ff4d4f;
    font-weight: 600;
    margin: 10px 0 16px;
  }

  .seller {
    order: 9;
  }

  .seller-actions {
    display: none;
  }

  .seller-top {
    margin-bottom: 0;
  }

  .quick-row {
    order: 10;
    margin: 12px 0 8px;
  }

  .sticky-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.1);
  }

  .sticky-cta .btn {
    flex: 1;
    height: 48px;
    border-radius: 12px;
    font-size: 16px;
  }

  body.lightbox-open .sticky-cta,
  body.price-locked .sticky-cta {
    display: none;
  }

  .footer {
    padding: 16px 0 24px;
  }

  .footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-flag {
    display: inline;
    margin-right: 4px;
  }

  .price-gate {
    align-items: end;
    justify-items: stretch;
    padding: 0;
    background: rgba(90, 98, 108, 0.4);
  }

  .price-card {
    width: 100%;
    max-width: none;
    border-radius: 28px 28px 0 0;
    padding: 28px 20px calc(36px + env(safe-area-inset-bottom));
    text-align: left;
    box-shadow: 0 -12px 40px rgba(16, 24, 40, 0.12);
  }

  .price-card h2 {
    font-size: 26px;
    text-align: left;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
  }

  .lang-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .lang-btn {
    min-height: 112px;
    padding: 16px 8px 14px;
    font-size: 15px;
    border-radius: 18px;
    gap: 10px;
  }

  .lang-flag {
    font-size: 34px;
  }

  .lightbox-body {
    grid-template-columns: 36px 1fr 36px;
  }

  .lightbox-brand {
    top: 10px;
    right: 10px;
    font-size: 20px;
  }
}
