.elt-single {
  --elt-header-offset: 150px;
  --elt-accent: #fef200;
  --elt-accent-hover: #e5dc00;
  --elt-turquoise: #12a7a1;
  --elt-black: #313131;
  --elt-dark: #2a3036;
  --elt-text: #232830;
  --elt-muted: #68737f;
  --elt-border: #dfe4ea;
  --elt-bg: #f3f5f7;
  --elt-card: #ffffff;
  --elt-soft: #f8f9fb;
  --elt-radius: 6px;
  --elt-shadow: 0 6px 20px rgba(16, 24, 32, .07);
  padding: calc(var(--elt-header-offset, 150px) + 20px) 16px 42px;
  color: var(--elt-text);
  background: var(--elt-bg);
  font-family: Arial, Helvetica, sans-serif;
}

.elt-single,
.elt-single * {
  box-sizing: border-box;
}

.elt-single a {
  color: inherit;
}

.elt-container {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.elt-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--elt-muted);
  font-size: 14px;
}

.elt-breadcrumbs a {
  text-decoration: none;
}

.elt-breadcrumbs a:hover {
  color: var(--elt-black);
}

.elt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 18px;
  align-items: start;
}

.elt-left-column,
.elt-right-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.elt-card,
.elt-side-card,
.elt-listing-card {
  background: var(--elt-card);
  border: 1px solid var(--elt-border);
  border-radius: var(--elt-radius);
  box-shadow: var(--elt-shadow);
}

.elt-gallery-card {
  overflow: hidden;
}

.elt-photo-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #edf1f4;
  border-bottom: 1px solid var(--elt-border);
  overflow: hidden;
  cursor: zoom-in;
}

.elt-main-photo-slot {
  width: 100%;
  height: 100%;
  transition: opacity .12s ease;
}

.elt-photo-real {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.elt-photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 58px 24px 32px;
  background:
    linear-gradient(135deg, rgba(18,20,22,.035) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(180deg, #f4f6f8 0%, #e9edf1 100%);
  color: var(--elt-text);
  text-align: center;
}

.elt-photo-placeholder-box {
  max-width: 360px;
  padding: 16px 18px;
  border: 1px dashed #bcc5ce;
  border-radius: 6px;
  background: rgba(255,255,255,.6);
}

.elt-photo-placeholder-title {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.elt-photo-placeholder-subtitle {
  color: var(--elt-muted);
  font-size: 13px;
  line-height: 1.35;
}

.elt-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}

.elt-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--elt-border);
  color: var(--elt-black);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(16,24,32,.05);
}

.elt-badge-primary {
  background: var(--elt-accent);
  border-color: var(--elt-accent);
}

.elt-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 36px;
  height: 42px;
  border: 1px solid var(--elt-border);
  transform: translateY(-50%);
  background: rgba(255,255,255,.96);
  color: var(--elt-black);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.elt-arrow:hover {
  background: var(--elt-accent);
  border-color: var(--elt-accent);
}

.elt-prev { left: 10px; }
.elt-next { right: 10px; }

.elt-thumbs-shell {
  position: relative;
  display: block;
  padding: 10px 52px;
  background: #fff;
}

.elt-thumbs {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--elt-accent) #eef1f4;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.elt-thumbs::-webkit-scrollbar {
  height: 7px;
}

.elt-thumbs::-webkit-scrollbar-track {
  background: #eef1f4;
  border-radius: 999px;
}

.elt-thumbs::-webkit-scrollbar-thumb {
  background: var(--elt-accent);
  border-radius: 999px;
}

.elt-thumb {
  flex: 0 0 122px;
  height: 74px;
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 0;
  background: #eef1f4;
  overflow: hidden;
  cursor: pointer;
}

.elt-thumb.is-active {
  border-color: var(--elt-accent);
}

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

.elt-thumbs-nav {
  position: absolute;
  top: 10px;
  bottom: 12px;
  z-index: 2;
  width: 34px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--elt-border);
  border-radius: 5px;
  background: #fff;
  color: var(--elt-black);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.elt-thumbs-prev { left: 10px; }
.elt-thumbs-next { right: 10px; }

.elt-thumbs-nav:hover {
  background: var(--elt-accent);
  border-color: var(--elt-accent);
}

.elt-thumbs-nav.is-hidden {
  visibility: hidden;
}

.elt-thumbs-nav.is-disabled,
.elt-thumbs-nav:disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
}

.elt-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 6px;
  background:
    linear-gradient(135deg, rgba(18,20,22,.035) 25%, transparent 25%) 0 0 / 14px 14px,
    #f1f3f5;
  color: #4e5964;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.elt-summary-card {
  padding: 20px;
}

.elt-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: #846100;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.elt-category::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--elt-accent);
}

.elt-title {
  margin: 0 0 13px;
  color: var(--elt-black);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.elt-price-box {
  margin-bottom: 12px;
  padding: 14px;
  border: 2px solid var(--elt-accent);
  border-radius: var(--elt-radius);
  background: #fffef0;
}

.elt-price-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 9px;
}

.elt-price-main:last-child {
  margin-bottom: 0;
}

.elt-price-usd {
  color: var(--elt-black);
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.025em;
}

.elt-price-uah {
  color: var(--elt-muted);
  font-size: 15px;
  font-weight: 800;
}

.elt-price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.elt-price-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--elt-accent);
  border: 1px solid var(--elt-accent);
  color: var(--elt-black);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.elt-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.elt-spec {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--elt-border);
  border-radius: 5px;
  background: var(--elt-soft);
}

.elt-spec-label {
  margin-bottom: 5px;
  color: var(--elt-muted);
  font-size: 12px;
  line-height: 1.2;
}

.elt-spec-value {
  color: var(--elt-black);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 900;
}

.elt-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.elt-btn,
.elt-single a.elt-btn,
.elt-single button.elt-btn {
  min-height: 46px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 0 14px;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  line-height: 1 !important;
  vertical-align: middle;
}

.elt-btn-primary,
.elt-single a.elt-btn-primary {
  background: var(--elt-accent);
  color: var(--elt-black);
}

.elt-btn-primary:hover {
  background: var(--elt-accent-hover);
  color: var(--elt-black);
}

.elt-single a.elt-btn-primary:hover {
    background-color: #000 !important;
    color: #fef200 !important;
    border: 1px solid #fef200 !important;
}

.elt-btn-secondary {
  background: var(--elt-dark);
  color: #fff;
}

.elt-btn-secondary:hover {
  background: var(--elt-black);
}

.elt-content-card {
  padding: 24px;
}

.elt-section-title {
  margin: 0 0 16px;
  color: var(--elt-black);
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.elt-seller-text {
  color: #303741;
  font-size: 16px;
  line-height: 1.62;
}

.elt-seller-text p {
  margin: 0 0 12px;
}

.elt-seller-text ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.elt-seller-text li {
  margin-bottom: 7px;
}

.elt-phone-link,
.elt-seller-text a.elt-phone-link {
  color: var(--elt-turquoise) !important;
  text-decoration: none;
  font-weight: 900;
}

.elt-phone-link:hover,
.elt-seller-text a.elt-phone-link:hover {
  text-decoration: underline;
}

.elt-details {
  margin-top: 24px;
}

.elt-details-table {
  border-top: 1px solid var(--elt-border);
}

.elt-detail-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--elt-border);
}

.elt-detail-label {
  color: var(--elt-muted);
  font-size: 14px;
}

.elt-detail-value {
  color: var(--elt-black);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.elt-side-card {
  padding: 17px;
}

.elt-side-card-accent {
  border-top: 4px solid var(--elt-accent);
}

.elt-side-card h3 {
  margin: 0 0 10px;
  color: var(--elt-black);
  font-size: 21px;
  line-height: 1.15;
}

.elt-side-card p {
  margin: 0 0 14px;
  color: var(--elt-muted);
  font-size: 15px;
  line-height: 1.5;
}

.elt-vin-code {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border-radius: 5px;
  background: var(--elt-soft);
  color: var(--elt-black);
  font-size: 14px;
  font-weight: 900;
  word-break: break-word;
}

.elt-listing-meta {
  display: grid;
  gap: 8px;
  color: var(--elt-muted);
  font-size: 14px;
  line-height: 1.35;
}

.elt-listing-meta strong {
  color: var(--elt-black);
}

.elt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
}

.elt-lightbox.is-open {
  display: flex;
}

.elt-lightbox-content {
  width: min(1080px, 96vw);
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}

.elt-lightbox-content img,
.elt-lightbox-content .elt-photo-placeholder {
  width: 100%;
  height: 100%;
}

.elt-lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.elt-archive-header {
  margin-bottom: 18px;
}

.elt-archive-title {
  margin: 0;
  color: var(--elt-black);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.elt-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  gap: 18px;
  align-items: start;
  justify-content: start;
}

.elt-listing-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-width: 360px;
}

.elt-listing-photo {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #edf1f4;
  text-decoration: none;
}

.elt-listing-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.elt-card-badges {
  top: 10px;
  left: 10px;
  right: 10px;
}

.elt-listing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.elt-listing-card .elt-category {
  margin-bottom: 8px;
  font-size: 11px;
}

.elt-listing-title {
  margin: 0 0 10px;
  color: var(--elt-black);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.elt-listing-title a {
  color: inherit;
  text-decoration: none;
}

.elt-listing-title a:hover {
  color: #846100;
}

.elt-listing-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
}

.elt-listing-price-usd {
  color: var(--elt-black);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
}

.elt-listing-price-uah {
  color: var(--elt-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.elt-card-btn {
  margin-top: auto;
  min-height: 42px;
}

.elt-pagination {
  margin-top: 22px;
}

.elt-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.elt-pagination .page-numbers {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--elt-border);
  border-radius: 5px;
  background: #fff;
  color: var(--elt-black);
  text-decoration: none;
  font-weight: 800;
}

.elt-pagination .page-numbers.current,
.elt-pagination .page-numbers:hover {
  background: var(--elt-accent);
  border-color: var(--elt-accent);
}

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

  .elt-right-column {
    order: 1;
  }

  .elt-left-column {
    order: 2;
  }

  .elt-spec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .elt-listing-grid {
    grid-template-columns: 1fr;
  }

  .elt-listing-card {
    max-width: none;
  }
}

@media (max-width: 640px) {
  /*.elt-single {
    padding: calc(var(--elt-header-offset, 150px) + 14px) 10px 34px;
  }
  */

  .elt-summary-card,
  .elt-content-card,
  .elt-side-card {
    padding: 16px;
  }

  .elt-photo-area {
    aspect-ratio: 4 / 3;
  }

  .elt-thumbs-shell {
    padding: 8px 44px;
  }

  .elt-thumbs-nav {
    top: 8px;
    bottom: 10px;
    width: 30px;
  }

  .elt-thumbs-prev { left: 8px; }
  .elt-thumbs-next { right: 8px; }

  .elt-thumb {
    flex-basis: 98px;
    height: 66px;
  }

  .elt-spec-grid {
    grid-template-columns: 1fr;
  }

  .elt-detail-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* v1.1.2: archive cards stay compact; all selected photo badges are shown on the image only. */
.elt-archive .elt-listing-card {
  max-width: 360px;
}

.elt-archive .elt-listing-photo .elt-badges {
  align-content: flex-start;
  max-height: calc(100% - 20px);
  overflow: hidden;
}

.elt-archive .elt-card-price-tags {
  margin: -4px 0 14px;
}

.elt-archive .elt-card-price-tags .elt-price-tag {
  min-height: 26px;
  padding: 4px 7px;
  font-size: 11px;
}


/* v1.1.3: fixed mini-gallery navigation and exact site yellow for buttons/primary badges. */
.elt-single .elt-btn-primary,
.elt-single .elt-badge-primary,
.elt-single .elt-price-tag,
.elt-single .elt-pagination .page-numbers.current,
.elt-single .elt-pagination .page-numbers:hover {
  background: #fef200;
  border-color: #fef200;
  color: var(--elt-black);
}

.elt-single .elt-btn-primary:hover,
.elt-single .elt-arrow:hover,
.elt-single .elt-thumbs-nav:hover {
  background: #e5dc00;
  border-color: #e5dc00;
  color: var(--elt-black);
}

.elt-single .elt-thumb.is-active,
.elt-single .elt-price-box {
  border-color: #fef200;
}

.elt-archive .elt-listing-card {
  width: 100%;
  max-width: 360px;
}

@media (max-width: 720px) {
  .elt-archive .elt-listing-card {
    max-width: 360px;
  }
}

/* v1.1.15: mobile-only gallery placement fix. Desktop layout is not affected. */
@media (max-width: 767px) {
  .elt-single {
    --elt-header-offset: 0px !important;
    padding-top: 14px !important;
  }

  .elt-layout,
  .elt-left-column,
  .elt-right-column,
  .elt-summary-card {
    min-width: 0;
  }

  .elt-summary-card {
    padding: 16px;
  }

  .elt-summary-card > .elt-gallery-card {
    width: calc(100% + 32px);
    max-width: none;
    margin: 14px -16px 16px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .elt-summary-card > .elt-gallery-card .elt-photo-area {
    aspect-ratio: auto;
    height: auto;
  }

  .elt-summary-card > .elt-gallery-card .elt-main-photo-slot {
    height: auto;
  }

  .elt-summary-card > .elt-gallery-card .elt-photo-real {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .elt-summary-card > .elt-gallery-card .elt-badges {
    left: 8px;
    right: auto;
    top: 8px;
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0 6px;
    pointer-events: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .elt-summary-card > .elt-gallery-card .elt-badges::-webkit-scrollbar {
    display: none;
  }

  .elt-summary-card > .elt-gallery-card .elt-badge {
    flex: 0 0 auto;
    min-height: 28px;
    white-space: nowrap;
    pointer-events: none;
  }
}
