/* Lot detail */
.lot-detail-shell.ss-auctions-hero {
    min-height: auto;
    margin-top: 0;
    align-items: stretch;
    padding: 42px 0 36px;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--ss-white);
    min-height: 200px;
    /* justify-content: center; */
    align-items: center;
}

.lot-detail-shell.ss-auctions-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(25, 10, 12, 0.88) 0%, rgba(25, 10, 12, 0.72) 45%, rgba(25, 10, 12, 0.35) 100%);
}

.lot-detail-content,
.lot-detail-related {
    padding-bottom: 28px;
}

.lot-detail-breadcrumbs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
}

.lot-detail-breadcrumbs a {
    color: inherit;
}

.lot-detail-grid {
    display: grid;
    gap: 14px;
    align-items: start;
}

.lot-detail-grid--hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
}

.lot-gallery-card,
.lot-detail-card {
    background: #fff;
    border: 1px solid rgba(40, 14, 16, 0.08);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(40, 14, 16, 0.08);
}

.lot-gallery-stage {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #faf7f5 0%, #f0e8e2 100%);
    aspect-ratio: 1 / 1;
    margin-bottom: 18px;
}

.lot-gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.lot-gallery-stage:hover img {
    transform: scale(1.02);
}

.lot-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 12px;
}

.lot-gallery-thumb {
    border: 1px solid rgba(40, 14, 16, 0.12);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lot-gallery-thumb.is-active {
    border-color: rgba(40, 14, 16, 0.6);
    box-shadow: 0 12px 25px rgba(40, 14, 16, 0.12);
}

.lot-gallery-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.lot-detail-summary {
    position: sticky;
    top: 138px;
}

.lot-detail-summary__eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.lot-detail-summary__eyebrow span,
.lot-detail-summary__eyebrow a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f5efeb;
    color: #4b302f;
    font-size: 0.92rem;
}

.lot-detail-summary h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.05;
    margin-bottom: 12px;
    color: #221113;
}

.lot-detail-summary__subtitle {
    color: #6f6361;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.lot-detail-summary__lead {
    color: #594847;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.lot-current-bid-card {
    border-radius: 11px;
    background: linear-gradient(135deg, #f8f2ed 0%, #f3e6d8 100%);
    padding: 20px;
    margin-bottom: 24px;
}

.lot-current-bid-card__label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7d6d6b;
    margin-bottom: 8px;
}

.lot-current-bid-card strong {
    display: block;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1;
    color: #2b1718;
    margin-bottom: 10px;
}

.lot-current-bid-card p {
    color: #675756;
}

.lot-current-bid-card__proxy {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(40, 14, 16, 0.12);
}

.lot-current-bid-card__proxy-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7d6d6b;
    margin-bottom: 6px;
}

.lot-current-bid-card__proxy-amount {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2b1718;
}

.lot-action-panel {
    border-top: 1px solid rgba(40, 14, 16, 0.08);
    padding-top: 24px;
}

.lot-action-panel__helper {
    color: #5f504f;
    line-height: 1.7;
    margin-bottom: 16px;
}

.lot-action-panel__helper--soft {
    font-size: 0.95rem;
}

.lot-action-panel__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 12px;
}

.lot-action-panel__row .form-control {
    min-height: 52px;
    border-radius: 16px;
    border-color: rgba(40, 14, 16, 0.12);
}

.lot-bid-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lot-bid-suggestions .btn {
    border-radius: 999px;
}

.lot-action-panel__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.lot-action-panel__footer .btn {
    min-height: auto;
    border-radius: 7px;
    padding-inline: 14px;
}

.lot-action-panel__utility-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding-inline: 0;
}

.lot-action-panel__utility-btn i {
    font-size: 0.95rem;
}

.lot-watchlist-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: absolute;
    right: 18px;
    top: 18px;
    border-radius: 9px;
}

html[dir="rtl"] .lot-watchlist-button {
    right: auto;
    left: 18px;
}

.lot-watchlist-button i {
    font-size: 0.95rem;
}

.lot-watchlist-button.is-active,
.lot-watchlist-button.active {
    background: #280e10;
    border-color: #280e10;
    color: #fff;
    box-shadow: 0 12px 24px rgba(40, 14, 16, 0.16);
}

.lot-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.lot-tab-button {
    border: 1px solid rgba(40, 14, 16, 0.12);
    background: #fff;
    color: #4e3838;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lot-tab-button.is-active {
    background: #280e10;
    border-color: #280e10;
    color: #fff;
    box-shadow: 0 10px 24px rgba(40, 14, 16, 0.16);
}

.lot-tab-panel[hidden] {
    display: none !important;
}

.lot-copy-block+.lot-copy-block,
.lot-info-section+.lot-info-section {
    margin-top: 28px;
}

.lot-detail-card h2,
.lot-section-heading h2,
.lot-history-modal h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #221113;
}

.lot-copy-block p:last-child,
.lot-copy-block ul:last-child {
    margin-bottom: 0;
}

.lot-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.lot-info-item,
.lot-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8f4f1;
}

.lot-info-item span {
    color: #7a6a68;
    font-size: 0.95rem;
}

.lot-info-item strong,
.lot-history-item strong {
    color: #2b1718;
    text-align: end;
}

.lot-history-list {
    display: grid;
    gap: 12px;
}

.lot-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.lot-history-modal {
    border: 1px solid rgba(40, 14, 16, 0.08);
    border-radius: 24px;
}

.lot-history-modal .modal-header,
.lot-history-modal .modal-body {
    padding-inline: 24px;
}

.lot-history-modal__eyebrow {
    color: #8a7775;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@media (max-width: 1399.98px) {
    .lot-related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .lot-detail-grid--hero {
        grid-template-columns: 1fr;
    }

    .lot-detail-summary {
        position: static;
    }

    .lot-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .lot-detail-shell.ss-auctions-hero {
        padding: 28px 0 24px;
    }

    .lot-gallery-card,
    .lot-detail-card {
        border-radius: 22px;
        padding: 18px;
    }

    .lot-action-panel__row,
    .lot-info-grid,
    .lot-related-grid {
        grid-template-columns: 1fr;
    }

    .lot-gallery-thumbs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .lot-gallery-thumb {
        min-width: 88px;
    }

    .lot-action-panel__footer,
    .lot-tabs-nav {
        flex-direction: column;
    }

    .lot-action-panel__footer .btn,
    .lot-tab-button {
        width: 100%;
    }
}
