/* ============================================
   Painting Artist Carousel — Dark Unified Style (no background)
   ============================================ */

.pac-root {
  font-family: Arial, Helvetica, sans-serif;
  background: transparent !important; /* фон убран */
  color: #e8e8e8;
  padding: 30px 0;
  border-top: none;
  border-bottom: none;
}

.pac-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  padding: 10px 0;
}

/* === Arrows (desktop) === */
.pac-prev, .pac-next {
  background: rgba(188,164,111,0.15);
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: rgba(255,255,255,0.85);
  transition: all 0.22s ease;
  opacity: 1;
}
.pac-prev:hover, .pac-next:hover {
  background: rgba(188,164,111,0.35);
  color: #fff;
  transform: scale(1.06);
}
.pac-prev:focus, .pac-next:focus {
  outline: none;
  box-shadow: none;
}

/* === Carousel Track === */
.pac-track-wrap {
  overflow: hidden;
  flex: 1;
}
.pac-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
  padding: 8px 12px;
}

/* === Card === */
.pac-item {
  width: 230px;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.pac-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.36);
}

/* === Thumbnail === */
.pac-thumb-wrap {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  display: block;
  background: #222;
  position: relative;
}
.pac-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.pac-thumb:hover { transform: scale(1.05); }
.pac-no-thumb {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  color: #777;
}

/* === Meta === */
.pac-meta {
  width: 100%;
  padding-top: 8px;
  text-align: center;
}
.pac-artist a {
  font-weight: 700;
  color: #c8b47a;
  text-decoration: none;
  transition: color 0.25s ease;
}
.pac-artist a:hover { color: #e6d398; }

.pac-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-top: 6px;
}
.pac-year {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
.pac-price {
  margin-top: 8px;
  color: #e8e8e8;
}

/* === Buttons (status) === */
.pg-sold {
  background: #a03a3a;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  display: inline-block;
}
.pg-request.pg-normal {
  background: #3e6faf;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
}
.pg-request.pg-reserved {
  background: #c1a13b;
  color: #000;
  border-radius: 6px;
  padding: 6px 10px;
}
.pg-request.pg-auction {
  background: #6f42c1;
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
}

/* === Empty State === */
.pac-empty {
  padding: 20px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* === Desktop: show arrows only when hovering a .pac-item === */
.pac-root:not(.pac-show-arrows) .pac-prev,
.pac-root:not(.pac-show-arrows) .pac-next {
  opacity: 0.12;
  transform: scale(0.98);
}
@media (min-width: 801px) {
  .pac-root.pac-show-arrows .pac-prev,
  .pac-root.pac-show-arrows .pac-next {
    opacity: 1;
    transform: scale(1);
  }
  .pac-prev, .pac-next {
    z-index: 5;
  }
}

/* === Mobile: full-width cards, hide global arrows === */
@media (max-width:800px){
  .pac-root {
    background: transparent !important;
  }
  .pac-prev, .pac-next { display: none !important; }
  .pac-item {
    width: calc(100% - 28px);
    min-width: calc(100% - 28px);
  }
  .pac-thumb-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .pac-track {
    gap: 12px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* === Desktop sizing tweaks === */
@media (min-width: 801px) {
  .pac-item { width: 230px; }
  .pac-thumb-wrap { width: 200px; height: 200px; }
}
