/* Setting Global Style */
html body,
html body.auction-detail,
body.auction-detail {
    background: #ffffff !important;
}

/* Wrapper Luar */
.auction-detail {
    padding-top: 70px;
    padding-bottom: 60px;
}

.auction-wrapper {
    width: 92%;
    max-width: 1280px;
    margin: auto;
}

/* Layout grid 2 kolom */
.auction-grid {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 32px;
    margin-top: 25px;
}

.auction-right {
    position: relative;
    height: 100%; /* Agar tingginya sama dengan kolom kiri (deskripsi) */
}

.auction-right {
    position: relative;
}

/* Image Utama dan Thumbs Style */
.main-box img {
    border-radius: 12px;
    height: 560px;
    width: 100%;
    object-fit: cover;
}

.thumb-row {
    margin-top: 16px;
    display: flex;
    gap: 14px;
}

.thumb-item {
    width: 220px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: #63c6c9;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* transisi saat swap */
.main-box img,
.thumb-item img {
    transition: opacity 220ms ease, transform 220ms ease;
    display: block;
}

.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

.fade-in {
    opacity: 1;
    transform: scale(1);
}

.thumb-item.active {
    outline: 2px solid #63c6c9;
}

/* Bidding Style Kanan */
.bid-sticky-container {
    position: relative;
    height: 100%; /* Ubah dari auto ke 100% */
    min-height: 100vh; /* Opsional: Memastikan minimal setinggi layar */
}

.bid-card-wrapper {
    position: -webkit-sticky; /* Untuk support Safari */
    position: sticky;
    top: 110px; /* Jarak berhenti dari atas layar */
    z-index: 20;
    align-self: start; /* Penting agar tidak stretch di dalam flex/grid */
}

.bid-card-blur {
    position: absolute;
    inset: 0;
    background: #fff;
    border-radius: 12px;
    filter: blur(7.6px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    z-index: 1;
    margin-top: -10px;
}

.bid-card {
    position: relative;
    z-index: 2;
    width: 441px;
    margin: 30px auto 0;
    background: white;
    padding: 22px 0;
    border-radius: 12px;
}

.bid-title {
    font-size: 40px;
    font-weight: 700;
}

.bid-sub {
    font-size: 24px;
    color: #777;
}

.timer-wrap {
    border: 1px solid #dce7e7;
    border-radius: 10px;
    margin-top: 14px;
    overflow: hidden;
}

.timer-top {
    background: #63c6c9;
    color: white;
    padding: 10px;
    text-align: center;
}

.timer-body {
    text-align: center;
    padding: 18px;
    font-size: 36px;
    font-weight: 700;
}

.highest-label {
    font-size: 16px;
    margin-top: 20px;
    color: #777;
}

.highest-price {
    font-size: 36px;
    font-weight: 800;
    color: #0da7a0;
}

.btn-bid-now {
    width: 100%;
    margin-top: 14px;
    background: #0d223f;
    color: white;
    border-radius: 8px;
    padding: 12px;
}

/* Deskripsi Lelang */
.details-section h4,
.shipping-title {
    color: black;
    font-size: 24px;
    font-family: Helvetica;
    font-weight: 700;
    line-height: 30px;
    word-wrap: break-word;
}

.shipping-section {
    margin-top: 30px;
    margin-left: 30px;
}

.shipping-label {
    color: #828282;
    font-size: 20px;
    font-family: Helvetica;
    font-weight: 700;
}

.shipping-value {
    color: #828282;
    font-size: 20px;
    font-family: Helvetica;
    font-weight: 400;
}

.details-section {
    margin-top: 60px;
    padding-left: 32px;
}

.detail-desc {
    font-size: 20px;
    text-align: justify;
    color: #828282;
}

.details-grid {
    display: flex;
    gap: 40px;
    margin-top: 12px;
    font-size: 20px;
    color: #828282;
    /* border: 1px solid crimson; */
}
/* .details-grid p {
    border: 1px solid blue;
} */

.label-teal {
    color: #0da7a0;
    font-weight: 700;
}

.history-box {
    margin-top: 38px;
    margin-left: 30px;
}

.history-head {
    background: #63c6c9;
    color: white;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-size: 24px;
}

.history-body {
    background: white;
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.06);
}

/* Related Lelang */
/* ===============================
   RELATED PRODUCT (MODERN)
   =============================== */

.related-title {
    font-size: 28px;
    font-weight: 700;
    margin-top: 40px;
}

.related-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.related-link {
    text-decoration: none;
    color: inherit;
}

.related-card-modern {
    overflow: hidden;
}

/* IMAGE */
.related-image-wrap {
    position: relative;
}

.related-image-wrap img {
    width: 100%;
    border-radius: 14px;
    height: fit-content;
    object-fit: cover;
}

/* TIMER BADGE */
.related-timer {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #63c6c9;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

/* CONTENT */
.related-content {
    padding: 12px;
}

.related-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.related-sub {
    font-size: 13px;
    color: #777;
}

.related-price {
    font-size: 18px;
    font-weight: 800;
    color: #63c6c9;
    margin-top: 4px;
}

/* BUTTON */
.related-more-wrap {
    margin-top: 26px;
    text-align: center;
}

.btn-related-more {
    display: inline-block;
    width: 100%;
    max-width: 420px;
    padding: 12px 0;
    border: 1.5px solid #051a36;
    border-radius: 10px;
    color: #051a36;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
}

.btn-related-more:hover {
    background: #0d223f;
    color: #fff;
}

@media (max-width: 768px) {
    .auction-detail {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .auction-grid {
        grid-template-columns: 1fr;
    }

    /* MATIKAN STICKY */
    .bid-card-wrapper {
        position: relative;
        top: auto;
    }

    .bid-sticky-container {
        min-height: auto;
        height: auto;
    }

    .bid-card {
        width: 100%;
        margin: 0;
        padding: 18px 16px;
    }

    /* IMAGE */
    .main-box img {
        height: 360px;
    }

    /* THUMB */
    .thumb-row {
        overflow-x: auto;
        gap: 10px;
    }

    .thumb-item {
        width: 110px;
        height: 120px;
        flex: 0 0 auto;
    }

    /* ==========================
       GLOBAL MOBILE PADDING
       ========================== */
    .auction-wrapper {
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .details-section,
    .history-box,
    .shipping-section {
        padding-left: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* ==========================
       FONT SIZE MOBILE
       ========================== */

    /* BID */
    .bid-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .bid-sub {
        font-size: 14px;
    }

    .timer-body {
        font-size: 24px;
    }

    .highest-label {
        font-size: 14px;
    }

    .highest-price {
        font-size: 26px;
    }

    .btn-bid-now {
        font-size: 15px;
        padding: 12px;
    }

    /* DESKRIPSI */

    /* Judul Deskripsi */
    .details-section h4,
    .shipping-title {
        font-size: 20px;
        line-height: 1.4;
    }

    /* Isi Deskripsi */
    .detail-desc {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
        color: #828282;
        margin-bottom: 18px;
    }

    /* Paragraf di dalam deskripsi */
    .detail-desc p {
        margin-bottom: 14px;
    }

    /* List di deskripsi */
    .detail-desc ul,
    .detail-desc ol {
        padding-left: 18px;
        margin-bottom: 14px;
    }

    .detail-desc li {
        margin-bottom: 8px;
        line-height: 1.6;
    }

    /* Grid info detail */
    .details-grid {
        flex-direction: column;
        gap: 14px;
        font-size: 15px;
        margin-top: 16px;
    }

    /* Label & value detail */
    .details-grid p {
        margin: 0;
        line-height: 1.6;
    }

    .label-teal {
        font-size: 15px;
    }

    .shipping-label,
    .shipping-value {
        font-size: 15px;
        line-height: 1.5;
    }

    /* ==========================
       SPACING SECTION MOBILE
       ========================== */
    .details-section,
    .history-box,
    .shipping-section,
    .related-grid-modern {
        margin-top: 24px;
    }

    .related-title {
        font-size: 20px;
        margin-top: 28px;
    }

    .related-grid-modern {
        gap: 12px;
    }

    .related-image-wrap img {
        height: 150px;
    }

    .related-name {
        font-size: 14px;
    }

    .related-price {
        font-size: 16px;
    }

    .related-timer {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Efek animasi harga tertinggi */
.highest-price-animate {
    animation: priceFlash 0.8s ease-out;
}

@keyframes priceFlash {
    0% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-3px);
    }
    100% {
        background-color: transparent;
        transform: translateY(0);
    }
}
