/* Version 2 Product Card Styles */

.version2-product-card {
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1 0 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;

    border-radius: 16px;
    border: 1px solid rgba(234, 236, 239, 0.04);
    background-image: url("../../img/version2/product-card-bg.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.version2-product-card:hover {
    border-color: #f0890b;
    box-shadow: 0 8px 24px rgba(240, 137, 11, 0.15);
}

/* Header Section */
.version2-product-card-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.version2-product-card-lot {
    color: var(--Muted-Gray, #8b949e);
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    align-self: stretch;
}

.version2-product-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    align-self: stretch;
    overflow: hidden;
    color: var(--Silver-White, #eaecef);
    text-align: center;
    text-overflow: ellipsis;
    font-family: Montserrat;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    text-transform: capitalize;
}

.version2-product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.version2-product-card-title a:hover {
    color: #f0890b;
}

.version2-product-card-main-timer {
    position: absolute;
    top: -12px;
    z-index: 100;
    display: inline-flex;
    padding: 4px;
    padding-right: 12px;
    padding-left: 12px;
    justify-content: center;
    align-items: flex-start;
    border-radius: 32px;
    background: var(--Night-Black, #0b0e11);
    backdrop-filter: blur(28px);
    color: var(--Silver-White, #eaecef);
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
}

/* Image Section */
.version2-product-card-image {
    margin-top: 12px;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background-color: #0b0e11;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.version2-product-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.version2-product-card-image img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* Footer Section */
.version2-product-card-footer {
    position: absolute;
    bottom: 8px;
    padding: 0 8px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version2-product-card-small-timer {
    display: flex;
    padding: 3px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 32px;
    background: var(--Graphite-Gray, #1e2329);
    backdrop-filter: blur(28px);
    gap: 4px;
    color: var(--Muted-Gray, #8b949e);
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px;
}

.version2-product-card-small-timer svg {
    flex-shrink: 0;
}

.version2-product-card-small-timer span {
    margin-top: 2px;
    font-family: "Courier New", monospace;
}

/* Price Button */
.version2-product-card-price-button {
    display: inline-flex;
    padding: 6px 8px;
    justify-content: center;
    align-items: flex-start;
    border-radius: 32px;
    background: rgba(240, 137, 11, 0.16);
    backdrop-filter: blur(28px);
    color: var(--Binance-Yellow, #f0890b);
    text-align: center;
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
}

/* Button States */
.version2-product-card-price-button--bid {
    background: #f0890b;
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px #f0890b,
        0 0 1px 1.5px rgba(0, 0, 0, 0.24), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
}

.version2-product-card-price-button--bid:hover {
    background: #ff9a1f;
    transform: translateY(-2px);
}

.version2-product-card-price-button--notstarted {
    background: #474d57;
    color: #848e9c;
    cursor: not-allowed;
}

.version2-product-card-price-button--btn_pay {
    background: #0ecb81;
    color: #fff;
}

.version2-product-card-price-button--btn_pay:hover {
    background: #12e893;
}

.version2-product-card-price-button--finished {
    background: #2b3139;
    color: #848e9c;
    cursor: not-allowed;
}

.version2-product-card-price-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.version2-product-card-price-button:active:not(:disabled) {
    transform: translateY(0);
}

/* Footer Section */
.version2-product-footer {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}

.version2-product-footer-icon {
    display: flex;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    border-radius: 32px;
    background: linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.04) 100%
        ),
        #1e2329;
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px #1e2329,
        0 0 1px 1.5px rgba(0, 0, 0, 0.24), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
    color: var(--Silver-White, #eaecef);
}
.version2-product-footer-btn {
    display: flex;
    height: 32px;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    border-radius: 32px;
    background: linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.04) 100%
        ),
        #1e2329;
    box-shadow: 0 -1px 0 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 1px #1e2329,
        0 0 1px 1.5px rgba(0, 0, 0, 0.24), 0 2px 2px 0 rgba(0, 0, 0, 0.24);
}

.version2-product-footer-btn span {
    color: var(--Silver-White, #eaecef);
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .version2-product-card {
        padding: 12px;
        gap: 8px;
    }

    .version2-product-card-header {
        gap: 6px;
    }

    .version2-product-card-lot {
        font-size: 11px;
        line-height: 16px;
    }

    .version2-product-card-title {
        font-size: 15px;
        line-height: 20px;
    }

    .version2-product-card-main-timer {
        font-size: 18px;
        line-height: 22px;
        padding: 3px 10px;
        letter-spacing: 3px;
    }

    .version2-product-card-image {
        aspect-ratio: 1 / 1;
        margin-top: 8px;
    }

    .version2-product-card-footer {
        bottom: 6px;
        padding: 0 6px;
    }

    .version2-product-card-small-timer {
        font-weight: 900;
        font-size: 16px;
        padding: 2px 6px;
        gap: 3px;
    }

    .version2-product-card-small-timer svg {
        width: 14px;
        height: 14px;
    }

    .version2-product-card-price-button {
        padding: 6px 8px;
        font-size: 16px;
        line-height: 16px;
    }

    .version2-product-footer {
        margin-top: 6px;
        gap: 6px;
    }

    .version2-product-footer-icon {
        width: 28px;
        height: 28px;
    }

    .version2-product-footer-icon svg {
        width: 14px;
        height: 14px;
    }

    .version2-product-footer-btn {
        height: 28px;
    }

    .version2-product-footer-btn span {
        font-size: 13px;
        line-height: 18px;
    }
}

@media (max-width: 480px) {
    .version2-product-card {
        padding: 10px;
        gap: 6px;
    }

    .version2-product-card-lot {
        font-size: 10px;
        line-height: 14px;
    }

    .version2-product-card-title {
        font-size: 14px;
        line-height: 18px;
    }

    .version2-product-card-main-timer {
        font-size: 16px;
        line-height: 20px;
        padding: 2px 8px;
        letter-spacing: 2px;
    }

    .version2-product-card-small-timer {
        font-size: 11px;
        padding: 2px 5px;
    }

    .version2-product-card-small-timer svg {
        width: 12px;
        height: 12px;
    }

    .version2-product-card-price-button {
        font-size: 11px;
        line-height: 16px;
        padding: 2px 5px;
    }

    .version2-product-footer-icon {
        width: 26px;
        height: 26px;
    }

    .version2-product-footer-icon svg {
        width: 12px;
        height: 12px;
    }

    .version2-product-footer-btn {
        height: 26px;
        font-size: 11px;
        line-height: 16px;
    }

    .version2-product-footer-btn span {
        font-size: 12px;
        line-height: 16px;
    }
}

@media (max-width: 360px) {
    .version2-product-card {
        padding: 8px;
    }

    .version2-product-card-title {
        font-size: 13px;
        line-height: 17px;
    }

    .version2-product-card-main-timer {
        font-size: 13px;
        line-height: 19px;
    }

    .version2-product-footer-btn span {
        font-size: 11px;
    }
}
