/* Auction detail page */

.auction-detail__card {
    background: var(--ho-ho_white);
    border: 1px solid #ececeb;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(34, 36, 36, 0.06);
    padding: 24px;
}

.auction-detail__seller {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}

.auction-detail__seller-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ededed;
    color: #a9a9a9;
    font-size: 14px;
    flex-shrink: 0;
}

.auction-detail__seller-name {
    color: var(--ho-ho_darkgrey);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    word-break: break-word;
}

.auction-detail__status-wrap {
    margin-bottom: 14px;
}

.auction-detail__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(73, 193, 186, 0.16);
    color: var(--ho-ho_darkgreen);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.auction-detail__status--finished {
    background: rgba(94, 96, 96, 0.12);
    color: var(--ho-ho_darkgrey);
}

.auction-detail__status span {
    font-size: 12px;
    line-height: 1;
}

.auction-detail__title {
    margin: 0 0 14px;
    color: var(--ho-ho_black);
    font-family: var(--ho-ho_font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.auction-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.auction-detail__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f0efed;
    color: var(--ho-ho_darkgrey);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.auction-detail__badge:hover,
.auction-detail__badge:focus {
    background: #e6e4e1;
    color: var(--ho-ho_black);
    text-decoration: none;
}

.auction-detail__badge--primary {
    background: rgba(73, 193, 186, 0.18);
    color: var(--ho-ho_darkgreen);
}

.auction-detail__badge--primary:hover,
.auction-detail__badge--primary:focus {
    background: rgba(73, 193, 186, 0.28);
    color: var(--ho-ho_darkgreen);
}

.auction-detail__offer {
    margin-bottom: 18px;
}

.auction-detail__offer-label {
    display: block;
    margin-bottom: 4px;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.auction-detail__offer-value {
    display: block;
    color: var(--ho-ho_orange);
    font-family: var(--ho-ho_font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
}

.auction-detail__offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.4;
}

.auction-detail__timer {
    margin-bottom: 20px;
}

.auction-detail__timer-label {
    display: block;
    margin-bottom: 8px;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.auction-detail__progress {
    height: 6px;
    margin-bottom: 14px;
    border-radius: 99px;
    background-color: #e8e8e8;
    overflow: hidden;
}

.auction-detail__progress .progress-bar {
    border-radius: 99px;
    background-color: var(--ho-ho_lightgreen);
    font-size: 0;
}

.auction-detail__countdown {
    display: flex;
    width: 100%;
    margin: 0;
}

.auction-detail__countdown .countdown_box {
    float: none;
    width: 25%;
    padding: 0 10px;
}

.auction-detail__countdown.countdown_style1 .countdown_box::before {
    content: ":";
    font-size: 28px;
    font-weight: 700;
    color: #b0b0b0;
    position: absolute;
    right: -4px;
    top: 0;
    line-height: 1.1;
}

.auction-detail__countdown.countdown_style1 .countdown_box:last-child::before {
    content: none;
}

.auction-detail__countdown .countdown-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.auction-detail__countdown .countdown {
    color: var(--ho-ho_lightgreen);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.auction-detail__countdown .cd_text {
    color: var(--ho-ho_darkgrey);
    font-size: 12px;
    line-height: 1.2;
    margin-top: 4px;
}

.auction-detail__alerts {
    margin-bottom: 16px;
}

.auction-detail__alerts .alert {
    margin-bottom: 10px;
}

.auction-detail__alerts .alert:last-child {
    margin-bottom: 0;
}

.auction-detail__bid-box {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #ececeb;
    border-radius: 14px;
    background: #f7f6f4;
}

.auction-detail__bid-label {
    display: block;
    margin-bottom: 10px;
    color: var(--ho-ho_black);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.auction-detail__bid-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.auction-detail__bid-input {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: var(--ho-ho_white);
    color: var(--ho-ho_darkgrey);
    font-size: 15px;
    font-weight: 500;
}

.auction-detail__bid-input:focus {
    border-color: var(--ho-ho_lightgreen);
    box-shadow: 0 0 0 0.2rem rgba(73, 193, 186, 0.2);
}

.auction-detail__bid-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    background-color: var(--ho-ho_orange) !important;
    border-color: var(--ho-ho_orange) !important;
    color: var(--ho-ho_white) !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.auction-detail__bid-submit:hover,
.auction-detail__bid-submit:focus {
    background-color: #da5d1a !important;
    border-color: #da5d1a !important;
    color: var(--ho-ho_white) !important;
    text-decoration: none;
}

.auction-detail__bid-hint {
    display: block;
    margin-top: 10px;
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.45;
}

.auction-detail__bid-hint b {
    color: var(--ho-ho_darkgrey);
    font-weight: 700;
}

.auction-detail__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 18px;
    padding-top: 18px;
    border-top: 1px solid #ececeb;
}

.auction-detail__meta-label {
    display: block;
    margin-bottom: 4px;
    color: #9a9a9a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.auction-detail__meta-value {
    display: block;
    color: var(--ho-ho_black);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.auction-detail__description {
    margin: 0;
    color: var(--ho-ho_darkgrey);
    font-size: 15px;
    line-height: 1.6;
}

.auction-detail__gallery .product_img_box {
    border-radius: 14px;
    overflow: hidden;
}

/* Bids history */

.auction-bids__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ececeb;
}

.auction-bids__title {
    margin: 0 0 4px;
    color: var(--ho-ho_black);
    font-family: var(--ho-ho_font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.auction-bids__subtitle {
    margin: 0;
    color: #9a9a9a;
    font-size: 13px;
    line-height: 1.4;
}

.auction-bids__count {
    flex-shrink: 0;
    color: #9a9a9a;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

.auction-bids__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auction-bids__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f2f1ef;
}

.auction-bids__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.auction-bids__user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.auction-bids__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.auction-bids__user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.auction-bids__user-name {
    color: var(--ho-ho_black);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.auction-bids__time {
    color: #9a9a9a;
    font-size: 12px;
    line-height: 1.35;
}

.auction-bids__amount-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.auction-bids__badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(73, 193, 186, 0.18);
    color: var(--ho-ho_darkgreen);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.auction-bids__amount {
    color: var(--ho-ho_orange);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.auction-bids__empty {
    margin: 16px 0 0;
    color: var(--ho-ho_darkgrey);
    font-size: 14px;
    line-height: 1.5;
}

/* Perks */

.auction-perks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.auction-perk {
    padding: 20px 18px;
    border-radius: 16px;
}

.auction-perk__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 50%;
    color: var(--ho-ho_white);
    font-size: 16px;
}

.auction-perk__title {
    margin: 0 0 8px;
    color: var(--ho-ho_black);
    font-family: var(--ho-ho_font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.auction-perk__text {
    margin: 0;
    color: var(--ho-ho_darkgrey);
    font-size: 13px;
    line-height: 1.55;
}

.auction-perk__text a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.auction-perk--shipping {
    background: rgba(243, 108, 37, 0.12);
}

.auction-perk--shipping .auction-perk__icon {
    background: var(--ho-ho_orange);
}

.auction-perk--secure {
    background: rgba(73, 193, 186, 0.14);
}

.auction-perk--secure .auction-perk__icon {
    background: var(--ho-ho_lightgreen);
}

.auction-perk--support {
    background: rgba(40, 167, 69, 0.12);
}

.auction-perk--support .auction-perk__icon {
    background: var(--ho-ho_payment-success);
}

.auction-perk--contactless {
    background: rgba(221, 31, 53, 0.1);
}

.auction-perk--contactless .auction-perk__icon {
    background: var(--ho-ho_red);
}

/* FAQ */

.auction-faq {
    margin-top: 32px;
}

.auction-faq__title {
    margin: 0 0 16px;
    color: var(--ho-ho_black);
    font-family: var(--ho-ho_font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.auction-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auction-faq__item {
    padding: 18px 20px;
    border: 1px solid #ececeb;
    border-radius: 14px;
    background: var(--ho-ho_white);
    box-shadow: 0 4px 14px rgba(34, 36, 36, 0.04);
}

.auction-faq__item-title {
    margin: 0 0 8px;
    color: var(--ho-ho_black);
    font-family: var(--ho-ho_font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.auction-faq__item-text {
    margin: 0;
    color: var(--ho-ho_darkgrey);
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .auction-detail__title {
        font-size: 24px;
    }

    .auction-detail__offer-value {
        font-size: 34px;
    }

    .auction-detail__countdown .countdown {
        font-size: 26px;
    }

    .auction-detail__countdown.countdown_style1 .countdown_box::before {
        font-size: 24px;
    }

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

@media (max-width: 575.98px) {
    .auction-detail__card {
        padding: 16px;
        border-radius: 16px;
    }

    .auction-detail__title {
        font-size: 22px;
    }

    .auction-detail__offer-value {
        font-size: 30px;
    }

    .auction-detail__countdown .countdown {
        font-size: 22px;
    }

    .auction-detail__countdown.countdown_style1 .countdown_box::before {
        font-size: 20px;
    }

    .auction-detail__countdown .cd_text {
        font-size: 11px;
    }

    .auction-detail__meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .auction-detail__bid-row {
        flex-direction: column;
    }

    .auction-detail__bid-submit {
        width: 100%;
        min-width: 0;
    }

    .auction-bids__header {
        flex-direction: column;
        gap: 6px;
    }

    .auction-bids__item {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .auction-bids__amount-wrap {
        width: 100%;
        justify-content: space-between;
        padding-left: 48px;
    }

    .auction-perks,
    .auction-faq__grid {
        grid-template-columns: 1fr;
    }

    .auction-faq__title {
        font-size: 22px;
    }
}
