/* ==============================================
   SINGLE AUCTION PAGE — Seven Seas Auction
   ============================================== */

/* ---- Shared overrides ---- */
/* Custom Scrollbars */
.sa-gallery__thumbs,
.sa-history-list {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(40, 14, 16, 0.3) transparent;
}

.sa-gallery__thumbs::-webkit-scrollbar,
.sa-history-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sa-gallery__thumbs::-webkit-scrollbar-track,
.sa-history-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.sa-gallery__thumbs::-webkit-scrollbar-thumb,
.sa-history-list::-webkit-scrollbar-thumb {
    background: rgba(40, 14, 16, 0.3);
    border-radius: 10px;
}

.sa-gallery__thumbs::-webkit-scrollbar-thumb:hover,
.sa-history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(40, 14, 16, 0.6);
}

.ss-mobile-toggle {
    border: none;
    box-shadow: none !important;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--ss-white);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.ss-mobile-menu {
    width: min(380px, 100vw);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    background: #f4f2f2;
    padding: 32px 24px;
}

.ss-mobile-menu__top {
    margin-bottom: 48px;
}

.ss-menu-close {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(40, 14, 16, 0.6);
    background: transparent;
    color: var(--ss-primary);
    display: grid;
    place-items: center;
    font-size: 16px;
}

.ss-mobile-nav {
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.ss-mobile-nav a {
    font-size: 18px;
    color: var(--ss-body);
}

.ss-mobile-menu__actions .ss-btn {
    min-height: 46px;
}

.ss-btn-outline-dark {
    color: var(--ss-primary);
    border: 1px solid rgba(40, 14, 16, 0.5);
    background: transparent;
}

.ss-brand-coin {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

/* ---- Title Bar ---- */
.sa-title-bar {
    padding-top: 200px;
    /* padding-bottom: 28px; */


}

.sa-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.sa-title-left {
    flex: 1;
    min-width: 0;
}

.sa-title {
    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: 700;
    line-height: 1.28;
    color: var(--ss-body);
    margin: 0 0 8px;
}

.sa-breadcrumbs {
    color: var(--ss-muted);
}

.sa-breadcrumbs a,
.sa-breadcrumbs span {
    color: var(--ss-muted);
    font-size: 13px;
}

.sa-breadcrumbs a:hover {
    color: var(--ss-primary);
}

.sa-title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-top: 4px;
}

.sa-saved-btn {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--ss-primary);
    border: 1px solid var(--ss-primary);
    transition: all 0.2s ease;
}

.sa-saved-btn:hover {
    background: rgba(40, 14, 16, 0.05);
}

.sa-saved-btn.is-active,
.sa-saved-btn.active {
    background: var(--ss-primary);
    color: var(--ss-white);
    border-color: var(--ss-primary);
    box-shadow: 0 4px 12px rgba(40, 14, 16, 0.2);
}

.sa-saved-btn.is-active:hover,
.sa-saved-btn.active:hover {
    background: var(--ss-primary-2);
    border-color: var(--ss-primary-2);
}

.sa-share-btn {
    border: 1px solid var(--ss-border);
    border-radius: 999px;
    background: var(--ss-white);
    color: var(--ss-body);
    font-size: 12px;
    font-weight: 500;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.5s ease;
}

.sa-share-btn:hover {
    background: var(--ss-primary);
    color: var(--ss-white);
}

/* ---- Gallery ---- */
.sa-gallery {
    /* background: var(--ss-white);
    border: 1px solid #e0e0e0; */
    border-radius: 10px;
    padding: 20px;
}


.sa-gallery {
    display: flex;
    gap: 15px;
    align-items: center;
}


.sa-gallery__main {
    flex: 2;
}

.sa-gallery__main img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}


.sa-gallery__thumbs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 100vh;
    overflow: hidden;
    overflow-y: auto;
    padding-right: 12px;
}


.sa-thumb {
    background: none;
    border: 1px solid transparent;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.sa-thumb img {
    width: 100%;
    height: auto;
    display: block;
}





@media (max-width: 767px) {
    .sa-gallery {
        flex-direction: column;
        gap: 20px;
    }


    .sa-gallery__main {
        width: 100%;
    }

    .sa-gallery__thumbs {
        flex-direction: column;
        justify-content: space-around;
        width: 100%;
    }

    .sa-gallery__thumbs>div {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }

    .sa-gallery__main img {
        width: 100%;
        height: 100vw;
        object-fit: contain;
        display: block;
    }


    .sa-thumb {
        flex: 1;

    }
}

/* ---- Description (floating gap) ---- */
.sa-description {
    /* background: var(--ss-white);
    border: 1px solid #e0e0e0; */
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
}

.sa-desc-label {
    font-size: 12px;
    color: var(--ss-muted);
    margin-bottom: 12px;
    padding-bottom: 10px;
    /* border-bottom: 1px solid var(--ss-border); */
}

.sa-description p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ss-body);
    margin-bottom: 6px;
}

/* ---- Bid Panel ---- */
.sa-bid-panel {
    background: var(--ss-white);
    border: 1px solid var(--ss-border);
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 90px;
}

/* Countdown */
.sa-countdown-bar {
    border-bottom: 0px solid #e0e0e0;
}

.sa-progress-bar {
    width: 100%;
    height: 4px;
    background-color: transparent;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

.sa-progress-fill {
    height: 4px;
    width: 0%;
    background-color: #2c1414;
    transition: width 1s linear;
}

.sa-countdown-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 11px;
    color: #666;
    background: #f4f4f4;
    padding: 12px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.sa-countdown-label i {
    font-size: 13px;
}

.sa-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
}

.sa-time-unit {
    text-align: center;
    flex: 1;
    border-right: 1px solid #eee;
}

.sa-time-unit:first-of-type {
    padding-left: 0;
}

.sa-time-unit:last-of-type {
    border-right: 0;
    padding-right: 0;
}

.sa-time-sep {
    display: none;
}

.sa-time-unit strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
}

.sa-time-unit small {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 4px;
    text-transform: capitalize;
}

/* Current Bid */
.sa-price-block {
    padding: 20px 24px 16px;
    border-bottom: 0;
}

.sa-price-tag {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
}

.sa-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sa-price-dollar {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

.sa-price-value {
    font-size: 32px;
    font-weight: 800;
    color: #000;
    line-height: 1;
}

/* Bid Input */
.sa-bid-input-wrap {
    padding: 0 24px;
}

.sa-bid-input-field {
    display: flex;
    align-items: center;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    padding: 0 16px;
    height: 44px;
    background: var(--ss-white);
    transition: border-color 0.2s ease;
}

.sa-bid-input-field:focus-within {
    border-color: #2c1414;
}

.sa-bid-input-prefix {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-right: 8px;
    flex-shrink: 0;
}

.sa-bid-input {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #000;
    width: 100%;
    height: 100%;
}

.sa-bid-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Quick Bid Amounts */
.sa-bid-amounts {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
}

.sa-amount-btn {
    flex: 1;
    border: 1px solid #5a2e2e;
    border-radius: 999px;
    background: var(--ss-white);
    color: #5a2e2e;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sa-amount-btn:hover {
    background: var(--ss-primary);
    color: var(--ss-white);
}

.sa-amount-btn.is-active {
    background: #2c1414;
    border-color: #2c1414;
    color: var(--ss-white);
}

/* Bid Submit */
.sa-bid-submit-wrap {
    padding: 0 24px 24px;
    border-bottom: 1px solid #eee;
}

.sa-bid-submit {
    width: 100%;
    border-radius: 999px;
    min-height: 46px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: #1c0d0d;
    color: var(--ss-white);
    border: 1px solid #1c0d0d;
    transition: 0.2s ease;
    text-transform: uppercase;
}

.sa-bid-submit:hover {
    background: #3a1a1a;
    border-color: #3a1a1a;
    color: var(--ss-white);
}

/* History Banner */
.sa-history-banner {
    background: #eee;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 11px;
    color: #555;
    margin-bottom: 12px;
    text-align: left;
}

.sa-history-banner strong {
    font-weight: 700;
    color: #111;
    margin-right: 4px;
}

/* Bid History */
.sa-bid-history {
    padding: 24px;
}

.sa-history-list {
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow: hidden;
    overflow-y: auto;
    padding-right: 12px;
}

.sa-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sa-history-row:last-child {
    border-bottom: 1px solid #eee;
}

.sa-history-row strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.sa-history-row small {
    display: block;
    font-size: 11px;
    color: #999;
    text-align: left;
    margin-top: 2px;
}

.sa-history-amount {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-align: right;
}

.sa-see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #7a2626;
    margin-top: 16px;
    text-decoration: none;
    width: 100%;
}

.sa-see-all:hover {
    text-decoration: underline;
}

/* Payment */
.sa-payment {
    border-top: 1px solid #eee;
    padding: 24px;
}

.sa-payment-label {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 14px;
    text-align: left;
}

.sa-payment-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sa-pay-img {
    height: auto;
    width: auto;
    object-fit: contain;
}

/* ---- Other Objects — Floating Card Architecture ---- */
.sa-other .ss-auction-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sa-other .ss-auction-card__media {
    border-radius: 8px;
    overflow: hidden;
    background: #e8e4e4;
}

.sa-other .ss-auction-card__media img {
    object-fit: cover;
}

.sa-other .ss-auction-card__body {
    background: var(--ss-white);
    border-radius: 8px;
    padding: 14px 14px 16px;
    margin-top: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.auction-title {
    width: 185px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000 !important;
}

.sa-bid-confirm-modal {
    border: 1px solid rgba(40, 14, 16, 0.12);
    border-radius: 20px;
}

.sa-bid-confirm-modal__amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #280E10;
}

.sa-detail .container .col-lg-8 {
    min-height: 0;
}

.single-auc-main {
    background-color: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .sa-title-bar {
        padding-top: 130px;
    }

    .sa-bid-panel {
        position: static;
    }

    .ss-breadcrumbs a {
        width: 45px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ss-breadcrumbs .auction-title {
        width: 120px;
    }





    .sa-title-row {
        flex-direction: column;
        gap: 14px;
    }

    .sa-gallery {
        padding: 14px;
    }

    .sa-description {
        padding: 14px;
    }

    .sa-title-left {
        order: 2;
    }

    .sa-title-actions {
        order: 1;
    }
}

@media (max-width: 767.98px) {
    .sa-title {
        font-size: 18px;
    }

    .sa-countdown .sa-time-unit strong {
        font-size: 22px;
    }

    .sa-price-value {
        font-size: 28px;
    }

    .sa-price-dollar {
        font-size: 18px;
    }

    .sa-bid-amounts {
        flex-wrap: wrap;
    }

    .sa-amount-btn {
        flex: 1 1 calc(33.333% - 8px);
    }


}

@media (max-width: 575.98px) {


    .sa-countdown-bar,
    .sa-price-block,
    .sa-bid-input-wrap,
    .sa-bid-amounts,
    .sa-bid-submit-wrap,
    .sa-bid-history,
    .sa-payment {
        /* padding-left: 16px;
        padding-right: 16px; */
    }
}
