/* ===== Страница одного лота lot.css ===== */
.lot-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  padding: 4rem 2rem;
  flex-wrap: wrap;
}

.lot-gallery {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

/* === Вертикальная колонка миниатюр со стрелками === */
.lot-thumbs-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.thumb-nav {
  background: transparent;
  border: none;
  color: #b6894b;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.thumb-nav:hover {
  color: #d2aa67;
  transform: scale(1.15);
}

/* Контейнер миниатюр */
.lot-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 500px;
  overflow: hidden;
}

/* Миниатюры */
.lot-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0.8;
}
.lot-thumbs img.active {
  border: 2px solid #b6894b;
  opacity: 1;
  box-shadow: 0 0 8px rgba(182, 137, 75, 0.6);
}
.lot-thumbs img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* Основное фото */
.lot-main-image img {
  width: 450px;
  height: 720px; /*800*/
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.lot-main-image video {
  object-position: top center;
  width: 450px;
  height: 720px; /*800*/
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* Правая часть */
.lot-info {
  max-width: 90%;
  flex: 1;
}

.lot-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c1b0c;
  font-family: "Inter", "Cormorant Garamond", serif;
}

.lot-info .price {
  font-size: 1.6rem;
  font-weight: bold;
  color: #b6894b;
  margin-bottom: 1rem;
}

.lot-description {
  margin-top: 1.5rem;
  line-height: 1.6;
  color: #3b2a14;
  white-space: pre-line;
}

.lot-info .btn-cart {
  position: relative;
  margin-right: 40px;
  overflow: hidden;
  background: linear-gradient(120deg, #b6894b, #d2aa67, #b6894b);
  background-size: 200% 200%;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
  animation: goldFlow 3s linear infinite;
  cursor: pointer;
  max-width: 300px;
  height: 45px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

/* Эффект движущегося блика */
.lot-info .btn-cart::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
  transform: skewX(-25deg);
  transition: opacity 0.3s;
}

/* При наведении — плавный подъём и усиление блика */
.lot-info .btn-cart:hover {
  transform: translateY(-2px);
}

.lot-info .btn-cart:hover::before {
  animation: shine 1.5s ease-in-out;
  opacity: 1;
}

/* Плавная “живая” смена оттенков */
@keyframes goldFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Быстрый проход блика */
@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.lot-main-image {
  position: relative; /* ключевая строка! */
  display: inline-block;
}

/* Адаптив */
@media (max-width: 780px) {
  .lot-gallery {
    flex-direction: column;
    align-items: center;
  }

  .lot-main-image {
    width: 100%;
    /* height: 350px;
    object-fit: cover; */
    /* height: auto; */
  }

  .lot-main-image img {
    width: 100%;
    height: 100%;
    min-height: 490px;
    object-fit: cover;
    /* height: auto; */
  }
  .lot-main-image video {
    width: 100%;
    height: 100%;
    min-height: 490px;
    object-fit: cover;
  }

  .lot-thumbs-wrapper {
    flex-direction: row;
    gap: 1rem;
  }

  .thumb-nav {
    display: none;
  }

  .lot-thumbs {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
  }

  .lot-thumbs img {
    width: 80px;
    height: 80px;
  }
}

/* Метка зарезервированного лота */
.lot-reserved {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(150, 30, 30, 0.85);
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Неактивная кнопка при броне */
.btn-cart.reserved {
  background: #888;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.btn-cart.reserved:hover {
  background: #888;
  transform: none;
}

.lot-main-image img {
  transition: filter 0.3s ease;
}
.lot-main-image img + .lot-reserved ~ img {
  filter: grayscale(80%) brightness(0.6);
}

.abs-btns {
  position: absolute;
  top: 10px;
  right: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px;
  z-index: 999;
}

.btn-share {
  background: #b6894b;
  color: #fff;

  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-share::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("../../images/share1.svg") no-repeat center/contain;
}

.btn-share:hover {
  background: #d2aa67;
}

.btn-cat-edit-lot {
  position: absolute;
  top: 50px;
  right: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #b6894b;
  color: #fff;
  padding: 3px 4px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.btn-cat-edit-lot:hover {
  background: #d2aa67;
}

.btn-fav {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 40%;
  /* background: rgba(255, 255, 255, 0.5); полупрозрачная подложка */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);

  background: url("../../images/heart-off.svg") center/contain no-repeat;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.5s, transform 0.5s;
}
.btn-fav:hover {
  opacity: 1;
  transform: scale(1.15);
}

.btn-fav.active {
  background: url("../../images/heart-on.png") center/contain no-repeat;
  opacity: 0.8;
  transform: scale(1);
}

.btn-fav.active:hover {
  opacity: 1;
  transform: scale(1.25);
}

.spec-list {
  margin: 1rem 0;
  padding-left: 1.2rem;
  list-style: none;
}

.spec-list li {
  margin-bottom: 0.4rem;
  padding: 8px 12px;
  background: #f8f4ed;
  border-radius: 8px;
  border-left: 4px solid #b6894b; /* золотистая полоса */
  font-size: 15px;
  color: #3b2a14;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}
