/* Auctions listing page */

.auctions-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.auctions-page__title .heading-emoji {
    margin-right: 8px;
    font-style: normal;
}

.auctions-page__description {
    margin: 0 0 0.5rem;
    max-width: 40rem;
    color: var(--ho-ho_darkgrey);
    font-size: 0.95rem;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .auctions-page__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Auction cards — horizontal layout (shared with home) */

.auction-card {
    background: var(--ho-ho_white);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    height: 100%;
    padding: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.auction-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.auction-card__img-link {
    display: block;
    flex: 0 0 38%;
    max-width: 180px;
    overflow: hidden;
}

.auction-card__img-wrap {
    width: 100%;
    height: 100%;
    min-height: 140px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f7f7f7;
}

.auction-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.auction-card:hover .auction-card__img-wrap img {
    transform: scale(1.04);
}

.auction-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 2px 0 0;
}

.auction-card__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ho-ho_black);
}

.auction-card__title a {
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-decoration: none;
}

.auction-card__title a:hover {
    color: var(--ho-ho_darkgreen);
}

.auction-card__price {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ho-ho_orange);
}

.auction-card__progress {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auction-card__progress-label {
    font-size: 12px;
    color: var(--ho-ho_darkgrey);
}

.auction-card__progress .progress {
    height: 5px;
    border-radius: 99px;
    background-color: #e8e8e8;
    overflow: hidden;
}

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

.auction-card__countdown {
    display: flex;
    width: 100%;
    margin: 2px 0 0;
}

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

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

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

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

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

.auction-card__countdown .cd_text {
    color: var(--ho-ho_darkgrey);
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
}

.auction-card__cta {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 8px 20px;
    border-radius: 24px;
    background-color: var(--ho-ho_lightgreen);
    color: var(--ho-ho_white);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.auction-card__cta:hover,
.auction-card__cta:focus {
    background-color: var(--ho-ho_darkgreen);
    color: var(--ho-ho_white);
    text-decoration: none;
}

@media (min-width: 768px) {
    .auction-card {
        gap: 16px;
        padding: 16px;
    }

    .auction-card__img-link {
        flex-basis: 42%;
        max-width: 200px;
    }

    .auction-card__title {
        font-size: 16px;
    }

    .auction-card__countdown .countdown {
        font-size: 18px;
    }

    .auction-card__countdown.countdown_style1 .countdown_box::before {
        font-size: 18px;
    }

    .auction-card__countdown .cd_text {
        font-size: 10px;
    }
}

@media (min-width: 1200px) {
    .auction-card__countdown .countdown {
        font-size: 24px;
    }

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

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

@media (max-width: 575.98px) {
    .auction-card {
        gap: 10px;
        padding: 10px;
        border-radius: 14px;
    }

    .auction-card__img-link {
        flex-basis: 34%;
        max-width: 110px;
    }

    .auction-card__img-wrap {
        min-height: 110px;
        border-radius: 10px;
    }

    .auction-card__title {
        font-size: 13px;
    }

    .auction-card__price {
        font-size: 12px;
    }

    .auction-card__countdown .countdown {
        font-size: 16px;
    }

    .auction-card__countdown.countdown_style1 .countdown_box::before {
        font-size: 16px;
    }

    .auction-card__countdown .cd_text {
        font-size: 9px;
    }

    .auction-card__cta {
        min-width: 120px;
        padding: 7px 14px;
        font-size: 13px;
    }
}
