/* ==========================================================
   Got Hot Wheels - Listing/Auction Detail UI v10
   ========================================================== */

.ghw-detail-v10 {
    background:
        radial-gradient(circle at 70% 0%, rgba(237, 17, 28, .12), transparent 34rem),
        radial-gradient(circle at 18% 18%, rgba(255, 157, 0, .08), transparent 26rem),
        #050505;
    color: #fff;
    padding: 34px 0 58px;
    min-height: 70vh;
}

.ghw-detail-wrap {
    width: min(1320px, calc(100% - 40px));
    margin: 0 auto;
}

.ghw-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #ffcf54;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 13px;
    text-decoration: none;
}

.ghw-detail-back:hover { color: #fff; }

.ghw-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 430px;
    gap: 26px;
    align-items: stretch;
}

.ghw-detail-media-card,
.ghw-detail-buy-card,
.ghw-detail-panel {
    border: 1px solid rgba(255,255,255,.13);
    background:
        radial-gradient(circle at top left, rgba(255,157,0,.08), transparent 20rem),
        linear-gradient(180deg, #121821, #07090d);
    box-shadow: 0 22px 54px rgba(0,0,0,.45);
    border-radius: 18px;
}

.ghw-detail-media-card {
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.ghw-detail-media-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 65%;
    background: radial-gradient(circle, rgba(237,17,28,.18), transparent 58%);
    pointer-events: none;
}

.ghw-detail-status-row {
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ghw-detail-status,
.ghw-detail-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ghw-detail-status.live {
    background: linear-gradient(180deg, #ff2630, #c90610);
    color: #fff;
    box-shadow: 0 0 22px rgba(237,17,28,.48);
}

.ghw-detail-status.closed {
    background: rgba(255,255,255,.12);
    color: #dce4ee;
}

.ghw-detail-live {
    background: rgba(0,0,0,.55);
    color: #ffcf54;
    border: 1px solid rgba(255,157,0,.36);
}

.ghw-detail-live i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff111f;
    box-shadow: 0 0 14px #ff111f;
    animation: ghwListingPulse 1s infinite ease-in-out;
}

@keyframes ghwListingPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.85); }
}

.ghw-detail-image-frame {
    min-height: 520px;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background:
        radial-gradient(circle at 50% 40%, rgba(255,255,255,.06), transparent 20rem),
        linear-gradient(180deg, #050505, #020202);
    overflow: hidden;
    position: relative;
}

.ghw-detail-image-frame img {
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 18px 34px rgba(0,0,0,.75));
}

.ghw-detail-buy-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ghw-detail-kicker {
    display: inline-flex;
    width: max-content;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(237,17,28,.18);
    border: 1px solid rgba(237,17,28,.55);
    color: #ffd45a;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ghw-detail-buy-card h1 {
    margin: 0 0 12px;
    color: #fff;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(34px, 4vw, 52px);
    font-style: italic;
    line-height: .95;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-shadow: 4px 4px 0 #000;
}

.ghw-detail-seller {
    margin-bottom: 22px;
    color: #cbd5e1;
    font-size: 15px;
}

.ghw-detail-seller strong { color: #fff; }
.ghw-blue-check { color: #159aff; font-size: 11px; margin-left: 4px; }

.ghw-detail-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.ghw-price-box {
    min-height: 94px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(0,0,0,.32);
    border: 1px solid rgba(255,255,255,.12);
}

.ghw-price-box.primary {
    border-color: rgba(0,255,136,.32);
    box-shadow: inset 0 0 22px rgba(0,255,136,.06);
}

.ghw-price-box.buy-now {
    grid-column: 1 / -1;
    border-color: rgba(255,157,0,.55);
    box-shadow: inset 0 0 22px rgba(255,157,0,.08);
}

.ghw-price-box span {
    display: block;
    margin-bottom: 8px;
    color: #9fb0c4;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ghw-price-box strong {
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.ghw-price-box.primary strong { color: #00ff88; }
.ghw-price-box.buy-now strong { color: #ffd45a; }

.ghw-owner-alert,
.ghw-bid-note {
    padding: 14px 15px;
    margin: 0 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,157,0,.35);
    background: rgba(255,157,0,.09);
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.ghw-owner-alert.warning {
    border-color: rgba(255,70,80,.45);
    background: rgba(237,17,28,.12);
}

.ghw-detail-actions {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.ghw-detail-btn,
.ghw-bid-form button,
.ghw-buy-now-form button {
    min-height: 52px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ghw-detail-btn.primary,
.ghw-bid-form button {
    background: linear-gradient(180deg, #ff2630, #c90610);
    box-shadow: 0 0 24px rgba(237,17,28,.34);
}

.ghw-detail-btn.ghost {
    border: 1px solid rgba(255,157,0,.42);
    background: rgba(0,0,0,.28);
}

.ghw-detail-btn.full { width: 100%; }

.ghw-detail-btn:hover,
.ghw-bid-form button:hover,
.ghw-buy-now-form button:hover {
    transform: translateY(-1px);
    color: #fff;
}

.ghw-bid-form {
    display: grid;
    gap: 9px;
    margin-bottom: 12px;
}

.ghw-bid-form label {
    color: #fff;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ghw-bid-inline {
    display: grid;
    grid-template-columns: 1fr 140px;
    gap: 10px;
}

.ghw-bid-inline input {
    min-height: 52px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.16);
    background: #05080d;
    color: #fff;
    padding: 0 14px;
    font-size: 17px;
    font-weight: 900;
}

.ghw-buy-now-form { margin-bottom: 12px; }
.ghw-buy-now-form button {
    width: 100%;
    background: linear-gradient(180deg, #ffbf22, #ff8a00);
    color: #050505;
    box-shadow: 0 0 24px rgba(255,157,0,.32);
}

.ghw-detail-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 22px;
    margin-top: 24px;
}

.ghw-detail-panel {
    padding: 24px;
}

.ghw-detail-bids-panel {
    grid-column: 1 / -1;
}

.ghw-panel-title {
    margin-bottom: 18px;
    color: #fff;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 28px;
    font-style: italic;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ghw-detail-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ghw-detail-specs div {
    padding: 14px;
    border-radius: 12px;
    background: rgba(0,0,0,.26);
    border: 1px solid rgba(255,255,255,.1);
}

.ghw-detail-specs span {
    display: block;
    margin-bottom: 6px;
    color: #9fb0c4;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ghw-detail-specs strong {
    display: block;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
}

.ghw-detail-description {
    margin: 0;
    color: #dce4ee;
    font-size: 16px;
    line-height: 1.7;
}

.ghw-empty-box {
    padding: 18px;
    border-radius: 12px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.1);
    color: #cbd5e1;
}

.ghw-bid-history-list {
    display: grid;
    gap: 10px;
}

.ghw-bid-history-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.1);
}

.ghw-bid-history-row strong { color: #00ff88; font-size: 18px; }
.ghw-bid-history-row span { color: #fff; }
.ghw-bid-history-row em { color: #9fb0c4; font-style: normal; }

@media (max-width: 1050px) {
    .ghw-detail-shell { grid-template-columns: 1fr; }
    .ghw-detail-image-frame { min-height: 360px; }
    .ghw-detail-image-frame img { max-height: 420px; }
    .ghw-detail-lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .ghw-detail-v10 { padding: 22px 0 42px; }
    .ghw-detail-wrap { width: min(100% - 24px, 100%); }
    .ghw-detail-media-card, .ghw-detail-buy-card, .ghw-detail-panel { border-radius: 14px; }
    .ghw-detail-buy-card { padding: 20px; }
    .ghw-detail-buy-card h1 { font-size: 34px; }
    .ghw-detail-price-grid { grid-template-columns: 1fr; }
    .ghw-price-box.buy-now { grid-column: auto; }
    .ghw-bid-inline { grid-template-columns: 1fr; }
    .ghw-detail-specs { grid-template-columns: 1fr; }
    .ghw-bid-history-row { grid-template-columns: 1fr; gap: 4px; }
    .ghw-detail-status-row { position: static; margin-bottom: 12px; }
    .ghw-detail-image-frame { min-height: 260px; }
    .ghw-detail-image-frame img { max-height: 320px; }
}
