/* ===== ITEM DETAIL PAGE ===== */

.item-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 32px 48px;
}

.item-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.item-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.item-breadcrumb a:hover { color: var(--gold); }

/* Main Layout */
.item-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

/* Image Gallery */
.item-gallery {}

.gallery-main {
  position: relative;
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  height: 400px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.gallery-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.gallery-wishlist:hover { color: #e74c3c; border-color: #e74c3c; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text);
  transition: background 0.2s;
}

.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumb {
  width: 80px;
  height: 70px;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s;
  flex-shrink: 0;
}

.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb:hover { border-color: var(--gold); }

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* Bid Panel */
.item-bid-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: sticky;
  top: 120px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e74c3c;
  padding: 14px 20px 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.item-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  padding: 8px 20px 6px;
}

.item-number {
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 20px 12px;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.item-meta-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
}

.item-meta-stat svg { color: var(--gold); }

.item-bid-area {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.current-bid-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.current-bid-amount {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}

.reserve-progress {
  height: 4px;
  background: #e8e8e8;
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}

.reserve-progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
}

.reserve-status {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.max-bid-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.max-bid-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.max-bid-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}

.max-bid-input-wrap span {
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
}

.max-bid-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text);
  padding: 0 10px;
}

.max-bid-input-wrap input::placeholder { color: var(--text-muted); }

.btn-place-bid {
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 20px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  height: 40px;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-place-bid:hover { background: var(--gold-dark); }

.max-bid-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.panel-alt-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.panel-divider::before,
.panel-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 11px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-buy-now:hover { background: #219a55; }

.btn-make-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-make-offer:hover { border-color: var(--gold); color: var(--gold); }

.item-panel-info {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.panel-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.panel-info-row svg { color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }

.panel-info-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1px;
}

.panel-info-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.panel-info-text .verified { color: #27ae60; font-size: 12px; font-weight: 600; }

.btn-watch-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 40px);
  margin: 14px 20px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-watch-item:hover { border-color: var(--gold); color: var(--gold); }

/* Item Detail Sections */
.item-detail-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.detail-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 18px;
}

.item-description p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}

.item-description ul {
  list-style: disc;
  padding-left: 18px;
  margin-bottom: 14px;
}

.item-description ul li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.item-description .legal-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.auction-details-table {
  width: 100%;
  border-collapse: collapse;
}

.auction-details-table tr {
  border-bottom: 1px solid var(--border);
}

.auction-details-table td {
  padding: 10px 0;
  font-size: 13px;
  vertical-align: top;
}

.auction-details-table td:first-child {
  color: var(--text-muted);
  width: 45%;
  padding-right: 12px;
}

.auction-details-table td:last-child {
  color: var(--dark);
  font-weight: 500;
}

.auction-details-table td .seller-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.auction-details-table td .seller-link:hover { text-decoration: underline; }

/* Bid History + Time Left */
.item-lower-sections {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin-bottom: 48px;
}

.bid-history-table {
  width: 100%;
  border-collapse: collapse;
}

.bid-history-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 2px solid var(--border);
  text-align: left;
}

.bid-history-table td {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.bid-history-table tr:last-child td { border-bottom: none; }

.time-left-panel {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.time-left-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.countdown {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 24px;
}

.countdown-unit {
  text-align: center;
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: #e74c3c;
  line-height: 1;
}

.countdown-sep {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: #e74c3c;
  line-height: 1;
  padding-bottom: 4px;
}

.countdown-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-place-bid-large {
  display: block;
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 13px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s;
  text-align: center;
}

.btn-place-bid-large:hover { background: var(--gold-dark); }

.btn-watch-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-watch-large:hover { border-color: var(--gold); color: var(--gold); }

/* You May Also Like */
.you-may-like {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

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

.you-may-like-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
}

.you-may-like-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.like-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}

.like-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.like-card-img {
  position: relative;
  height: 140px;
  background: #f5f5f5;
  overflow: hidden;
}

.like-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.like-card-img .card-timer {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.like-card-img .card-wishlist {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
}

.like-card-body {
  padding: 12px;
}

.like-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.like-card-bid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.like-card-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.like-card-bids {
  font-size: 11px;
  color: var(--text-muted);
}

/* Bottom Trust Bar */
.item-trust-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
}

.item-trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-bar-icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(200,134,26,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-bar-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  margin-bottom: 2px;
}

.trust-bar-text span {
  font-size: 11px;
  color: var(--text-muted);
}
