/*
 * Vine & Hammer – Lot Page Styles
 * File: wp-content/themes/YOUR-CHILD-THEME/css/vh-lot-page.css
 */

:root {
  --vh-navy:        #0f1b2d;
  --vh-navy-mid:    #1a2a3a;
  --vh-navy-light:  #243347;
  --vh-gold:        #c9a96e;
  --vh-gold-light:  #e8d5b0;
  --vh-cream:       #f7f4ef;
  --vh-cream-mid:   #ede9e2;
  --vh-burgundy:    #7a2234;
  --vh-green:       #2a6b47;
  --vh-green-light: #e8f3ed;
  --vh-red:         #c0392b;
  --vh-text:        #1a1a1a;
  --vh-text-mid:    #4a4a4a;
  --vh-text-muted:  #7a7a7a;
  --vh-border:      #ddd8d0;
  --vh-border-light:#ede9e2;
  --vh-white:       #ffffff;
}

/* ── RESET WOOCOMMERCE DEFAULTS ── */
.vh-lot-page .woocommerce-breadcrumb,
.vh-lot-page .product_title,
.vh-lot-page .woocommerce-product-gallery,
.vh-lot-page .summary,
.vh-lot-page .woocommerce-tabs,
.single-product div.product { all: unset; }

.vh-lot-page *, .vh-lot-page *::before, .vh-lot-page *::after { box-sizing: border-box; }

/* ── LOT PAGE WRAPPER ── */
.vh-lot-page {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: var(--vh-cream);
  font-size: 14px;
  line-height: 1.6;
}

/* ── LOT TITLE BAR ── */
.vh-lot-title-bar {
  background: var(--vh-white);
  border-bottom: 1px solid var(--vh-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 52px;
  gap: 1rem;
}
.vh-lot-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--vh-text) !important;
  min-width: 2rem;
  padding: 0 1rem 0 0;
  margin-right: 0.5rem;
  border-right: 1px solid var(--vh-border);
  flex-shrink: 0;
  white-space: nowrap;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.vh-lot-title-text {
  font-size: 15px;
  font-weight: 500;
  color: #111111;
  flex: 1;
  letter-spacing: 0.01em;
}
.vh-lot-nav-actions { display: flex; gap: 0.5rem; align-items: center; margin-left: auto; }

.vh-btn-watch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--vh-border);
  background: var(--vh-white);
  color: #2a2a2a;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  text-transform: uppercase;
  transition: all 0.2s;
}
.vh-btn-watch:hover { border-color: var(--vh-gold); color: var(--vh-gold); }
.vh-btn-watch svg { width: 14px; height: 14px; }

.vh-btn-nav {
  width: 32px; height: 32px;
  border: 1px solid var(--vh-border);
  background: var(--vh-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.vh-btn-nav:hover { background: var(--vh-cream); border-color: var(--vh-navy); }
.vh-btn-nav svg { width: 12px; height: 12px; color: #2a2a2a; }

/* ── BREADCRUMB BAR ── */
.vh-breadcrumb-bar {
  background: var(--vh-cream);
  border-bottom: 1px solid var(--vh-border-light);
  padding: 8px 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vh-breadcrumb-back {
  font-size: 12px;
  color: #2a2a2a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.vh-breadcrumb-back:hover { color: var(--vh-navy); }

.vh-lot-jump { display: flex; gap: 8px; align-items: center; }
.vh-lot-jump input {
  width: 80px;
  height: 30px;
  border: 1px solid var(--vh-border);
  padding: 0 10px;
  font-size: 12px;
  font-family: 'Jost', sans-serif;
  background: var(--vh-white);
  color: var(--vh-text);
}
.vh-lot-jump button {
  height: 30px;
  padding: 0 14px;
  background: var(--vh-navy);
  color: var(--vh-white);
  border: none;
  font-size: 11px;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.vh-lot-jump button:hover { background: var(--vh-navy-light); }

/* ── MAIN CONTENT GRID ── */
.vh-lot-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ── IMAGE PANEL ── */
.vh-image-badge {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vh-white);
}
.vh-image-badge.live { background: #1a2e4a !important; color: #ffffff !important; }
.vh-image-badge.ended { background: #555 !important; color: #ffffff !important; }

.vh-main-image {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vh-cream-mid);
  border: 1px solid var(--vh-border);
  overflow: hidden;
}
.vh-main-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vh-no-image { color: #555555; font-size: 13px; }

.vh-thumbnails { display: flex; gap: 8px; margin-top: 10px; }
.vh-thumb {
  width: 76px; height: 76px;
  border: 1px solid var(--vh-border);
  background: var(--vh-cream-mid);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.vh-thumb:hover, .vh-thumb.active { border-color: var(--vh-navy); }
.vh-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* ── DETAILS PANEL ── */
.vh-lot-status-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.vh-lot-status-label {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.vh-badge-reserve {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  text-transform: uppercase;
  border: 1px solid;
}
.vh-badge-reserve.met { border-color: #1a2e4a; color: #1a2e4a; }
.vh-badge-reserve.not-met { border-color: #555555; color: #555555; }

.vh-price-row { font-size: 13px; color: #555555; margin-bottom: 1.25rem; }

.vh-auction-ref {
  font-size: 12px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555555;
}
.vh-auction-ref svg { width: 14px; height: 14px; flex-shrink: 0; }
.vh-auction-ref a { color: var(--vh-navy); text-decoration: none; font-weight: 500; font-size: 13px; }
.vh-auction-ref a:hover { color: var(--vh-gold); }

/* Bid box */
.vh-bid-box {
  border: 1px solid var(--vh-border);
  background: var(--vh-white);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.vh-bid-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #555555; margin-bottom: 4px; }
.vh-bid-amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--vh-text);
  margin-bottom: 6px;
}
.vh-bid-meta { font-size: 13px; color: #2a2a2a; font-weight: 500; letter-spacing: 0.03em; }

/* Countdown */
.vh-countdown-section { margin-bottom: 1.5rem; }
.vh-countdown-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #555555; margin-bottom: 8px; }
.vh-countdown-blocks { display: flex; gap: 8px; }
.vh-countdown-block {
  flex: 1;
  background: #1a2e4a;
  color: #fff;
  text-align: center;
  padding: 12px 4px 10px;
}
.vh-cd-num { font-size: 26px; font-weight: 600; display: block; line-height: 1; color: #ffffff !important; }
.vh-cd-unit { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #ffffff !important; opacity: 1 !important; margin-top: 6px; display: block; font-weight: 600; }

/* Bid input */
.vh-bid-input-section { margin-bottom: 1rem; }
.vh-bid-input-label { font-size: 12px; color: #2a2a2a; margin-bottom: 8px; }
.vh-bid-input-row { display: flex; }
.vh-bid-currency {
  background: var(--vh-cream-mid);
  border: 1px solid var(--vh-border);
  border-right: none;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #2a2a2a;
  font-family: 'Cormorant Garamond', serif;
}
.vh-bid-input {
  flex: 1;
  height: 46px;
  border: 1px solid var(--vh-border);
  border-right: none;
  padding: 0 14px;
  font-size: 18px;
  font-family: 'Cormorant Garamond', serif;
  color: var(--vh-text);
  background: var(--vh-white);
  outline: none;
}
.vh-bid-input:focus { border-color: var(--vh-navy); }
.vh-btn-bid {
  height: 46px;
  padding: 0 24px;
  background: #1a2e4a;
  color: #fff;
  border: none;
  font-size: 12px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.vh-btn-bid:hover { background: #1a2a3a !important; }
.vh-btn-bid { background: #1a2e4a !important; }
.vh-countdown-block { background: #1a2e4a !important; }

.vh-btn-buy-now {
  width: 100%;
  height: 42px;
  background: var(--vh-white);
  color: var(--vh-text);
  border: 1px solid var(--vh-border);
  font-size: 12px;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1rem;
}
.vh-btn-buy-now:hover { border-color: var(--vh-navy); background: var(--vh-cream); }
.vh-btn-buy-now strong { color: var(--vh-navy); }

.vh-watchlist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #555555;
  margin-bottom: 1.5rem;
  cursor: pointer;
  width: fit-content;
}
.vh-watchlist-row:hover { color: var(--vh-text); }
.vh-watchlist-row svg { width: 16px; height: 16px; }

.vh-login-prompt {
  background: var(--vh-cream);
  border: 1px solid var(--vh-border-light);
  padding: 1rem;
  text-align: center;
  font-size: 13px;
  margin-bottom: 1.5rem;
}
.vh-login-prompt a { color: var(--vh-navy); font-weight: 500; text-decoration: none; }
.vh-login-prompt a:hover { color: var(--vh-gold); }

/* Seller */
.vh-seller-block {
  border: 1px solid var(--vh-border);
  background: var(--vh-white);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.vh-seller-avatar {
  width: 40px; height: 40px;
  background: #1a2e4a;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  font-weight: 600 !important;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.vh-seller-info { flex: 1; }
.vh-seller-name { font-size: 13px; font-weight: 500; }
.vh-seller-meta { font-size: 11px; color: #555555; }
.vh-seller-verified { font-size: 11px; color: var(--vh-green); display: flex; align-items: center; gap: 3px; margin-top: 2px; }

/* Escrow */
.vh-escrow-strip {
  background: var(--vh-cream);
  border: 1px solid var(--vh-border-light);
  padding: 10px 14px;
  font-size: 11px;
  color: #555555;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.25rem;
}
.vh-escrow-strip svg { width: 14px; height: 14px; color: var(--vh-green); flex-shrink: 0; }

/* Detail fields */
.vh-detail-block { margin-bottom: 1rem; border-top: 1px solid var(--vh-border-light); padding-top: 0.875rem; }
.vh-detail-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: #111111;
  margin-bottom: 3px;
}
.vh-detail-value { font-size: 13px; color: #2a2a2a; line-height: 1.5; }
.vh-detail-value a { color: var(--vh-navy); text-decoration: none; }
.vh-detail-value a:hover { color: var(--vh-gold); }

/* ── TABS ── */
.vh-lot-tabs-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}
.vh-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--vh-border);
  margin-bottom: 1.5rem;
  gap: 2px;
}
.vh-tab-btn {
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a2a2a;
  background: var(--vh-cream-mid);
  border: 1px solid var(--vh-border);
  border-bottom: 1px solid var(--vh-border);
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.vh-tab-btn.active {
  color: var(--vh-white) !important;
  background: #0f1b2d !important;
  border-color: #0f1b2d !important;
  border-bottom-color: #0f1b2d !important;
}
.vh-tab-btn:hover:not(.active) {
  color: var(--vh-white) !important;
  background: #0f1b2d !important;
  border-color: #0f1b2d !important;
}

.vh-tab-content { display: none; }
.vh-tab-content.active { display: block; }

.vh-bids-table { width: 100%; border-collapse: collapse; }
.vh-bids-table th {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #555555; padding: 8px 0;
  border-bottom: 1px solid var(--vh-border); text-align: left; font-weight: 500;
}
.vh-bids-table td {
  padding: 10px 0; border-bottom: 1px solid var(--vh-border-light);
  font-size: 13px; color: #2a2a2a;
}
.vh-bids-table tbody tr:first-child td { color: var(--vh-text); font-weight: 500; }

.vh-no-bids { font-size: 13px; color: #555555; padding: 1rem 0; }

.vh-shipping-block { max-width: 640px; }
.vh-shipping-block p { font-size: 13px; color: #2a2a2a; margin-bottom: 0.75rem; line-height: 1.7; }
.vh-shipping-block strong { color: var(--vh-text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .vh-lot-main { grid-template-columns: 1fr; }
  .vh-lot-title-bar { flex-wrap: wrap; height: auto; padding: 10px 1rem; }
  .vh-breadcrumb-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .vh-lot-tabs-section { padding: 0 1rem 3rem; }
  .vh-lot-main { padding: 1.5rem 1rem 3rem; }
}


/* ── THEME OVERRIDE PROTECTION ── */
.vh-lot-page .vh-lot-title-bar { display: flex !important; align-items: center !important; }
.vh-lot-page .vh-lot-number { display: block !important; color: #1a1a1a !important; font-size: 22px !important; }
.vh-lot-page .vh-lot-title-text { display: block !important; }

/* ── LOT DETAILS TAB GRID ── */
.vh-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--vh-border-light);
}
.vh-field-row {
  padding: 0.875rem 1rem 0.875rem 0;
  border-bottom: 1px solid var(--vh-border-light);
}
.vh-field-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--vh-text);
  margin-bottom: 4px;
}
.vh-field-value {
  font-size: 13px;
  color: #2a2a2a;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .vh-fields-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .vh-fields-grid { grid-template-columns: 1fr; }
}


/* ── GLOBAL TEXT VISIBILITY OVERRIDES ── */
.vh-lot-page,
.vh-lot-page p,
.vh-lot-page div,
.vh-lot-page span,
.vh-lot-page li,
.vh-lot-page td,
.vh-lot-page th { color: #2a2a2a; }

.vh-bid-label,
.vh-countdown-label,
.vh-detail-label,
.vh-field-label,
.vh-lot-title-text,
.vh-lot-number { color: #111111 !important; font-weight: 600 !important; }

.vh-bid-meta,
.vh-bid-input-label,
.vh-detail-value,
.vh-field-value,
.vh-seller-meta,
.vh-seller-name,
.vh-price-row,
.vh-escrow-strip,
.vh-no-bids,
.vh-shipping-block p,
.vh-bids-table td,
.vh-watchlist-row { color: #333333 !important; }

.vh-breadcrumb-back,
.vh-auction-ref { color: #444444 !important; }

.vh-tab-btn:not(.active) { color: #2a2a2a !important; }

/* ── SPECIFIC ELEMENT TEXT FIXES ── */
.vh-bid-input-label { color: #111111 !important; font-size: 13px !important; font-weight: 500 !important; }
.vh-watchlist-row, .vh-watchlist-row span { color: #333333 !important; font-size: 13px !important; }
.vh-escrow-strip, .vh-escrow-strip * { color: #333333 !important; font-size: 12px !important; }
.vh-seller-name { color: #111111 !important; font-size: 14px !important; font-weight: 600 !important; }
.vh-seller-meta { color: #333333 !important; font-size: 12px !important; }
.vh-seller-verified { color: #2a6b47 !important; font-size: 12px !important; }
.vh-seller-block div[style] { color: #333333 !important; font-size: 12px !important; }
.vh-shipping-block p,
.vh-shipping-block strong,
.vh-shipping-block * { color: #222222 !important; font-size: 13px !important; line-height: 1.7 !important; }

/* ── WATCHLIST + ESCROW FORCE DARK ── */
.vh-watchlist-row,
.vh-watchlist-row * { color: #111111 !important; }
.vh-escrow-strip,
.vh-escrow-strip * { color: #111111 !important; }
