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

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  border-bottom: 1px solid #e0e0e0;
  background: white;
  z-index: 100;
}

.header-main {
  padding: 15px 0;
}

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

.logo-img {
  height: 40px;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 40px;
}

.nav-item {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-item.active,
.nav-item:hover {
  border-bottom-color: #333;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 20px;
}

.header-actions i {
  font-size: 20px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-actions i:hover {
  transform: scale(1.1);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Sticky Header */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 200;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sticky-header.visible {
  transform: translateY(0);
}

.sticky-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.sticky-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sticky-lot-image {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.sticky-lot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticky-lot-info {
  display: flex;
  flex-direction: column;
}

.sticky-lot-number {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.sticky-lot-subtitle {
  font-size: 13px;
  color: #666;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sticky-bid-info {
  text-align: right;
}

.sticky-bid-label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sticky-bid-amount {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.sticky-register-btn {
  background: #1a365d;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.sticky-register-btn:hover {
  background: #2a4a6b;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: white;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: #f0f0f0;
  color: #333;
}

.mobile-nav-item {
  display: block;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
  transition: color 0.3s ease;
  margin-top: 60px;
}

.mobile-nav-item:first-of-type {
  margin-top: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #1a365d;
}

/* Breadcrumb */
.breadcrumb {
  background-color: #ffffff;
  padding: 16px 0;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.breadcrumb .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breadcrumb-left {
  display: flex;
  align-items: center;
  color: #333;
  font-weight: 500;
}

.lot-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lot-selector {
  position: relative;
}

.lot-dropdown {
  appearance: none;
  background: white;
  border: 2px solid #333;
  border-radius: 25px;
  padding: 8px 40px 8px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  min-width: 120px;
  transition: all 0.3s ease;
}

.lot-dropdown:hover {
  background: #f8f8f8;
}

.lot-dropdown:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.lot-selector::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #333;
  pointer-events: none;
}

.nav-arrows {
  display: flex;
  gap: 10px;
}

.nav-arrows i {
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 16px;
}

.nav-arrows i:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

.lot-actions {
  display: flex;
  gap: 15px;
}

.lot-actions i {
  color: #333;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 18px;
}

.lot-actions i:hover {
  background: #f0f0f0;
  transform: scale(1.1);
}

/* Main Content */
.main-content {
  padding: 40px 0;
}

.lot-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  margin-bottom: 60px;
  align-items: start;
}

/* Lot Images */
.lot-images {
  position: relative;
}

.main-image {
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.main-img {
  width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  object-fit: contain; /* Changed from cover to contain */
  background: #f8f8f8; /* Add background for better visibility */
}

.main-image:hover .main-img {
  transform: none; /* Remove zoom effect */
  opacity: 0.9; /* Slight opacity change on hover instead */
}

/* Image Navigation Arrows - NEW */
.image-nav-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10;
}

.main-image:hover .image-nav-arrows {
  opacity: 1;
}

.image-nav-arrows:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.image-nav-prev {
  left: 10px;
}

.image-nav-next {
  right: 10px;
}

.thumbnail-list {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.thumbnail.active {
  border-color: #333;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.view-all-btn {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #e8e8e8;
  transform: scale(1.05);
}

/* Lot Sidebar - Sticky */
.lot-sidebar {
  position: relative;
}

.lot-sidebar-sticky {
  position: sticky;
  top: 120px;
  background: white;
  padding: 0;
}

.lot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.currency-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.currency-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 20px;
}

.currency-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.currency-flag svg {
  width: 100%;
  height: 100%;
}

.currency-text {
  font-size: 12px;
  font-weight: bold;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 15px;
}

.header-actions i {
  font-size: 16px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.header-actions i:hover {
  color: #333;
  transform: scale(1.1);
}

.lot-category {
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 0;
}

.lot-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
}

.lot-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.lot-meta {
  margin-bottom: 30px;
}

.lot-meta-item {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.lot-meta-item:last-child .divider {
  display: none;
}

.label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.value {
  font-size: 16px;
  font-weight: 500;
}

/* Current Bid Section */
.current-bid-section .current-bid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.bid-count {
  font-size: 11px;
  color: #666;
  background: #f0f0f0;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 500;
}

/* Countdown Timer - Elegant & Compact */
.countdown-container {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.countdown-time {
  font-size: 16px;
  font-weight: 700;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  color: #fef2f2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.countdown-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.countdown-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #fef2f2;
  line-height: 1;
}

.countdown-sublabel {
  font-size: 9px;
  opacity: 0.8;
  font-weight: 400;
  color: #fecaca;
  line-height: 1;
  margin-top: 1px;
}

/* Delivery Info - Subtle */
.delivery-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  color: #495057;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.delivery-info:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.delivery-info i {
  font-size: 14px;
  color: #6c757d;
}

.delivery-text {
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.delivery-info:hover .delivery-text {
  text-decoration: underline;
  color: #333;
}

.register-btn {
  background: #1a365d;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.register-btn:hover {
  background: #2a4a6b;
  transform: translateY(-2px);
}

.payment-info {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #666;
  line-height: 1.3;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 2px solid #1a365d;
}

.payment-info a {
  color: #1a365d;
}

/* Bidding Info - Compact Grid */
.bidding-info {
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid #e0e0e0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.info-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #666;
  font-size: 12px;
}

.info-item:hover .info-icon {
  background: linear-gradient(135deg, #1a365d, #2a4a6b);
  color: white;
}

.info-content {
  flex: 1;
}

.info-content h5 {
  font-size: 12px;
  margin-bottom: 2px;
  color: #333;
  font-weight: 600;
}

.info-content p {
  font-size: 10px;
  color: #666;
  margin: 0;
}

/* Delivery Modal */
.delivery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.delivery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.delivery-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.delivery-modal.active .delivery-modal-content {
  transform: scale(1);
}

.delivery-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #e0e0e0;
}

.delivery-modal-header h3 {
  font-size: 20px;
  color: #333;
}

.delivery-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.delivery-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.delivery-modal-body {
  padding: 25px;
  text-align: center;
}

.delivery-modal-body .delivery-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 32px;
}

.delivery-modal-body h4 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.delivery-modal-body p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.delivery-features {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.delivery-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.delivery-feature i {
  color: #10b981;
  font-size: 16px;
  width: 20px;
}

.delivery-feature span {
  font-size: 14px;
  color: #333;
}

/* You May Also Like */
.you-may-like {
  margin: 60px 0;
  padding: 40px 0;
  border-top: 1px solid #e0e0e0;
}

.you-may-like h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.you-may-like-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.you-may-like-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.you-may-like-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.you-may-like-image {
  height: 200px;
  overflow: hidden;
}

.you-may-like-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.you-may-like-item:hover .you-may-like-image img {
  transform: scale(1.05);
}

.you-may-like-info {
  padding: 20px;
}

.you-may-like-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

.you-may-like-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
}

.you-may-like-pricing {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.you-may-like-pricing .current-bid {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.you-may-like-pricing .estimate {
  font-size: 13px;
  color: #666;
}

/* Lot Details Left */
.lot-details-left {
  grid-column: 1 / -1;
  border-top: 1px solid #e0e0e0;
  padding-top: 40px;
  margin-bottom: 60px;
}

.lot-details-section h2 {
  font-size: 24px;
  margin-bottom: 30px;
}

.details-content h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.description p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.expandable-section {
  border-top: 1px solid #e0e0e0;
  margin-top: 20px;
}

.expand-btn {
  appearance: none;
  all: unset;
  -webkit-appearance: none;
  background: none;
  border: none;
  color: black;
  font: inherit;
  text-align: left;
  padding: 20px 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
}

.expand-btn i {
  transition: transform 0.3s ease;
}

.expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.expanded-content.active {
  max-height: 1500px;
  padding-bottom: 20px;
}

.expanded-content p {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Related Lots */
.related-lots {
  position: relative;
}

.related-lots h2 {
  font-size: 24px;
  margin-bottom: 30px;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.related-grid {
  display: flex;
  gap: 30px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.related-item {
  flex: 0 0 280px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.related-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-image {
  height: 200px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-item:hover .related-image img {
  transform: scale(1.05);
}

.related-info {
  padding: 20px;
}

.related-info h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.related-info p {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 10px;
}

.related-pricing {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.related-pricing .current-bid {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.related-pricing .estimate {
  font-size: 13px;
  color: #666;
}

.carousel-nav {
  /* ОБЩИЕ стили стрелок */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .3s;
  z-index: 15; /* ← стрелки теперь выше карточек */
}

.carousel-nav:hover {
  background: #f8f8f8;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.carousel-nav.prev {
  left: 10px;
} /* НЕ -20px за пределами контейнера */

.carousel-nav.next {
  right: 10px;
} /* ― // ― */

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  opacity: 1;
}

.gallery-modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.gallery-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 10;
}

.gallery-close:hover {
  transform: scale(1.1);
}

.gallery-main {
  position: relative;
  max-width: 80%;
  max-height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gallery-nav.prev {
  left: -70px;
}

.gallery-nav.next {
  right: -70px;
}

.gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px;
}

.gallery-thumb {
  flex: 0 0 60px;
  height: 60px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.gallery-thumb.active {
  border-color: white;
}

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

/* Footer */
.footer {
  background-color: #f8f8f8;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #666;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #333;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #666;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #333;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
}

.footer-bottom a {
  color: #1a365d;
}

/* Condition Rating Component - NEW */
.condition-rating {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.condition-rating-scale {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.condition-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 8px;
}

.condition-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d1d5db;
  border: 2px solid #9ca3af;
  transition: all 0.3s ease;
  position: relative;
}

.condition-option.active .condition-circle {
  background: #3b82f6;
  border-color: #2563eb;
}

.condition-option.active .condition-circle::after {
  content: "★";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.condition-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

.condition-option.active .condition-label {
  color: #1f2937;
  font-weight: 600;
}

.condition-connector {
  width: 30px;
  height: 2px;
  background: #d1d5db;
  margin: 0 -5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-content {
    padding: 15px 20px;
  }

  .logo-img {
    height: 32px;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .breadcrumb {
    padding: 12px 0;
  }

  .breadcrumb .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .lot-nav {
    align-self: stretch;
    justify-content: space-between;
  }

  .lot-dropdown {
    font-size: 14px;
    padding: 6px 30px 6px 12px;
    min-width: 100px;
  }

  .nav-arrows i {
    padding: 6px;
    font-size: 14px;
  }

  .lot-actions i {
    padding: 6px;
    font-size: 16px;
  }

  .lot-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .lot-sidebar-sticky {
    position: static;
    top: auto;
  }

  .lot-title {
    font-size: 24px;
  }

  .sticky-header-content {
    padding: 8px 0;
  }

  .sticky-lot-subtitle {
    max-width: 200px;
  }

  .sticky-register-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .related-grid {
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
  }

  .related-grid::-webkit-scrollbar {
    height: 6px;
  }

  .related-grid::-webkit-scrollbar-track {
    background: #f8f8f8;
  }

  .related-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
  }

  .related-item {
    flex: 0 0 250px;
    scroll-snap-align: start;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

  .carousel-nav {
    display: none;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-nav.prev {
    left: -50px;
  }

  .gallery-nav.next {
    right: -50px;
  }

  .desktop-only {
    display: none;
  }

  .sticky-header-left {
    gap: 10px;
  }

  .countdown-time {
    font-size: 14px;
  }

  .countdown-display {
    gap: 8px;
  }

  .you-may-like-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .condition-rating {
    flex-direction: column;
    gap: 15px;
  }

  .condition-rating-scale {
    gap: 10px;
  }

  .condition-option {
    padding: 8px;
  }

  .condition-circle {
    width: 16px;
    height: 16px;
  }

  .condition-label {
    font-size: 10px;
  }

  .condition-connector {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .related-item {
    flex: 0 0 220px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .thumbnail-list {
    flex-wrap: wrap;
  }

  .lot-meta > div {
    margin-bottom: 20px;
  }

  .register-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .gallery-nav {
    display: none;
  }
}

/* BID MODAL - CLEAN STYLE */
.bid-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bid-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.bid-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.bid-modal.active .bid-modal-content {
  transform: scale(1);
}

.bid-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.bid-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.bid-modal-close {
  background: none;
  border: none;
  color: #666;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.bid-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.bid-modal-body {
  padding: 20px;
}

.current-bid-info,
.minimum-bid-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.current-bid-info:last-of-type,
.minimum-bid-info:last-of-type {
  border-bottom: none;
}

.current-bid-label,
.minimum-bid-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.current-bid-amount,
.minimum-bid-amount {
  font-weight: 500;
  font-size: 16px;
  color: #333;
}

.bid-input-section {
  margin: 20px 0;
}

.bid-input-section label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bid-input-wrapper {
  position: relative;
}

.bid-input {
  width: 100%;
  padding: 12px 60px 12px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.3s ease;
  background: white;
}

.bid-input:focus {
  outline: none;
  border-color: #1a365d;
}

.bid-currency {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  color: #666;
  font-size: 14px;
}

.quick-bid-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 15px 0;
}

.quick-bid-btn {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #333;
}

.quick-bid-btn:hover {
  border-color: #1a365d;
  background: #f8f8f8;
}

.quick-bid-btn.active {
  background: #1a365d;
  color: white;
  border-color: #1a365d;
}

.bid-modal-footer {
  display: flex;
  gap: 10px;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f8f8;
}

.btn-cancel {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #e0e0e0;
  background: white;
  color: #666;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  border-color: #ccc;
  color: #333;
}

.btn-place-bid {
  flex: 2;
  padding: 12px 20px;
  background: #1a365d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-place-bid:hover {
  background: #2a4a6b;
}

.btn-place-bid:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.bid-info-text {
  font-size: 11px;
  color: #666;
  line-height: 1.3;
  margin-top: 15px;
  padding: 10px 12px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 2px solid #1a365d;
}

.bid-info-text a {
  color: #1a365d;
}

/* Mobile */
@media (max-width: 768px) {
  .bid-modal-content {
    width: 95%;
    margin: 20px;
  }

  .quick-bid-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .bid-modal-header,
  .bid-modal-body,
  .bid-modal-footer {
    padding: 15px;
  }
}

/* ERROR & SUCCESS MESSAGES */
.bid-message {
  padding: 12px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 500;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.bid-message.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.bid-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-left: 3px solid #dc2626;
}

.bid-message.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-left: 3px solid #16a34a;
}

.bid-message i {
  margin-right: 8px;
}

/* Loading state for button */
.btn-place-bid.loading {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

.btn-place-bid.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Режим «touch-scroll» мы будем включать JS-ом */
.touch-scroll {
  overflow-x: auto; /* естественный скролл */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; /* плавная фиксация карточек */
}

/* На мобильном transform должен быть отключён,
   иначе он «фиксирует» ленту и она уезжает влево */
@media (max-width: 768px) {
  .related-grid {
    transform: none !important;
  }
  .carousel-nav {
    display: none;
  } /* стрелки не нужны — свайпами проще */
}

/* ==== SCOPED: lot nav only ==== */
.breadcrumb .lot-nav {
  flex-wrap: nowrap;
  min-width: 0;
}
.breadcrumb .lot-nav > i {
  flex: 0 0 auto;
}

/* компактная кнопка + обрезка текста */
.breadcrumb .lot-nav .lot-picker {
  position: relative;
  min-width: 0;
  max-width: 220px;
  flex: 0 1 220px;
}
.breadcrumb .lot-nav .lot-picker-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: #fff;
  border: 2px solid #333;
  border-radius: 14px;
  padding: 5px 26px 5px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #333;
  cursor: pointer;
}
.breadcrumb .lot-nav #lotPickerLabel {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; /* … в кнопке */
}
.breadcrumb .lot-nav .lot-picker-trigger i {
  position: absolute;
  right: 10px;
  font-size: 12px;
  color: #333;
  pointer-events: none;
}
.breadcrumb .lot-nav .lot-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: 6px;
  z-index: 1000;
}
.breadcrumb .lot-nav .lot-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: .15s;
}
.breadcrumb .lot-nav .lot-option:hover {
  background: #f8f8f8;
  transform: translateY(-1px);
}
.breadcrumb .lot-nav .lot-option.active {
  background: #f0f0f0;
}
.breadcrumb .lot-nav .lot-option img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #eee;
  background: #fafafa;
  flex-shrink: 0;
}
.breadcrumb .lot-nav .lot-option-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.breadcrumb .lot-nav .lot-option-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* … в списке */
}
.breadcrumb .lot-nav .lot-option-meta {
  font-size: 11px;
  color: #666;
}
@media (max-width: 768px) {
  .breadcrumb .lot-nav .lot-picker {
    max-width: 100%;
    flex: 1;
  }
  .breadcrumb .lot-nav .lot-picker-trigger {
    font-size: 12px;
    padding: 6px 26px 6px 10px;
  }
}

/* AUCTION ENDED MODAL */
.auction-ended-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auction-ended-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.auction-ended-modal-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 480px;
  height: 550px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.auction-ended-modal.active .auction-ended-modal-content {
  transform: scale(1) translateY(0);
}

.auction-ended-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px 0;
}

.auction-ended-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.auction-ended-modal-close {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auction-ended-modal-close:hover {
  background: #f1f5f9;
  color: #334155;
  transform: scale(1.05);
}

.auction-ended-modal-body {
  padding: 32px;
  text-align: center;
}

.auction-ended-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: white;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

.auction-ended-title {
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 24px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.auction-ended-final-bid {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}

.auction-ended-final-bid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #059669);
}

.final-bid-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.final-bid-amount {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #059669;
  letter-spacing: -0.025em;
}

.auction-ended-description {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}

.auction-ended-modal-footer {
  padding: 24px 32px 32px;
  display: flex;
  gap: 16px;
}

.auction-ended-btn-secondary {
  flex: 1;
  padding: 14px 24px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auction-ended-btn-secondary:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
  transform: translateY(-1px);
}

.auction-ended-btn-primary {
  flex: 2;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px 0 rgba(30, 64, 175, 0.3);
}

.auction-ended-btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(30, 64, 175, 0.4);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .auction-ended-modal-content {
    width: 95%;
    margin: 20px;
  }

  .auction-ended-modal-header {
    padding: 24px 24px 0;
  }

  .auction-ended-modal-header h3 {
    font-size: 20px;
  }

  .auction-ended-modal-body {
    padding: 24px;
  }

  .auction-ended-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .auction-ended-title {
    font-size: 18px;
  }

  .final-bid-amount {
    font-size: 24px;
  }

  .auction-ended-modal-footer {
    padding: 20px 24px 24px;
    flex-direction: column;
  }

  .auction-ended-btn-secondary,
  .auction-ended-btn-primary {
    flex: none;
  }
}

/* Обычный таймер (больше 15 минут) */
.countdown-container.normal-timer {
  background: #314975 !important;
  box-shadow: #314975 !important;
}

.countdown-container.normal-timer .countdown-time,
.countdown-container.normal-timer .countdown-label,
.countdown-container.normal-timer .countdown-sublabel {
  color: #ffffff !important;
}

/* Bid History Styles */
.bid-history-toggle {
  margin-top: 12px;
}

.bid-history-toggle .expand-btn {
  appearance: none;
  all: unset;
  -webkit-appearance: none;
  background: none;
  border: none;
  color: #666;
  font: inherit;
  text-align: left;
  padding: 8px 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bid-history-toggle .expand-btn:hover {
  color: #333;
}

.bid-history-toggle .expand-btn i {
  transition: transform 0.3s ease;
  font-size: 10px;
}

.bid-history-toggle .expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.bid-history-toggle .expanded-content.active {
  max-height: 400px;
  padding-top: 12px;
}

.bid-history-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.bid-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
    background: rgba(248, 250, 252, 0.5);
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 6px;
}


.bid-history-item:last-child {
  margin-bottom: 0;
}

.bid-history-item.latest-bid {
  background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
  border-color: #10b981;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.bid-history-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bid-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bid-amount {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.latest-bid .bid-amount {
  color: #059669;
}

.bid-details {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bidder-name {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

.bid-increment {
  font-size: 10px;
  color: #10b981;
  background: #e8f5e8;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
}

.bid-time {
  font-size: 10px;
  color: #999;
  font-weight: 500;
  white-space: nowrap;
}

/* Custom scrollbar for bid history */
.bid-history-list::-webkit-scrollbar {
  width: 4px;
}

.bid-history-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.bid-history-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.bid-history-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .bid-history-item {
    padding: 6px 8px;
  }

  .bid-amount {
    font-size: 13px;
  }

  .bidder-name {
    font-size: 10px;
  }

  .bid-increment {
    font-size: 9px;
    padding: 1px 4px;
  }

  .bid-time {
    font-size: 9px;
  }
}
/* Added comprehensive styles for bid history functionality */

/* Bid History Toggle Button */
.bid-history-toggle {
  margin-top: 12px;
}

.expand-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s ease;
}

.expand-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.expand-btn i {
  transition: transform 0.2s ease;
  color: #64748b;
}

/* Expanded Content */
.expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8fafc;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e2e8f0;
  border-top: none;
}

.expanded-content.active {
  max-height: 400px;
  overflow-y: auto;
}

/* Bid History List */
.bid-history-list {
  padding: 16px;
  max-height: 350px;
  overflow-y: auto;
}

.bid-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.2s ease;
}

.bid-history-item:last-child {
  border-bottom: none;
}



/* Latest Bid Highlighting */
.bid-history-item.latest-bid {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  margin: 0 -8px 8px -8px;
  padding: 12px 16px;
}

.bid-history-item.latest-bid .bid-amount {
  color: #059669;
  font-weight: 600;
}

/* Bid Info */
.bid-info {
  flex: 1;
}

.bid-amount {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.bid-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.bidder-name {
  color: #64748b;
  font-weight: 500;
}

.bid-increment {
  background: #dbeafe;
  color: #1d4ed8;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.latest-bid .bid-increment {
  background: #dcfce7;
  color: #059669;
}

/* Bid Time */
.bid-time {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 12px;
}

/* Scrollbar Styling */
.bid-history-list::-webkit-scrollbar {
  width: 6px;
}

.bid-history-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.bid-history-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.bid-history-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Empty State */
.bid-history-empty {
  text-align: center;
  padding: 24px 16px;
  color: #64748b;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bid-history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .bid-time {
    margin-left: 0;
    align-self: flex-end;
  }

  .bid-details {
    flex-wrap: wrap;
  }
}

/* Animation for new bids */
@keyframes newBidPulse {
  0% {
    background: #ecfdf5;
    transform: scale(1);
  }
  50% {
    background: #d1fae5;
    transform: scale(1.02);
  }
  100% {
    background: #ecfdf5;
    transform: scale(1);
  }
}

.bid-history-item.new-bid {
  animation: newBidPulse 0.6s ease-in-out;
}
.no-bids-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
}

.no-bids-icon {
  margin-bottom: 16px;
}

.no-bids-icon i {
  font-size: 48px;
  color: #cbd5e1;
}

.no-bids-text h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #475569;
}

.no-bids-text p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}
