/* OBDPRICE Desktop Sticky Buy Bar */

@media screen and (min-width: 1025px) {

    #obd-desktop-buybar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;

        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.07);

        transform: translateY(110%);
        opacity: 0;
        visibility: hidden;

        transition:
            transform .25s ease,
            opacity .25s ease,
            visibility .25s ease;
    }

    #obd-desktop-buybar.is-visible {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Main container */
    .obd-desktop-buybar-inner {
        width: 100%;
        max-width: 1350px;
        min-height: 76px;
        margin: 0 auto;
        padding: 10px 12px;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        box-sizing: border-box;
    }

    /* Left product information */
    .obd-desktop-buybar-product {
        display: flex;
        align-items: center;
        gap: 12px;

        flex: 1 1 auto;
        min-width: 0;
        max-width: 460px;
    }

    .obd-desktop-buybar-image {
        width: 56px;
        height: 56px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .obd-desktop-buybar-title {
        font-size: 14px;
        font-weight: 600;
        line-height: 1.4;
        color: #222;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Price */
    .obd-desktop-buybar-price {
        min-width: 135px;
        margin-left: auto;
        text-align: right;
        flex-shrink: 0;
    }

    .obd-desktop-buybar-current {
        font-size: 19px;
        font-weight: 700;
        color: #d91e18;
        white-space: nowrap;
    }

    .obd-desktop-buybar-compare {
        font-size: 12px;
        color: #999;
        text-decoration: line-through;
    }

    /* Buttons */
    .obd-desktop-buybar-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .obd-desktop-buybar-btn {
        width: 160px;
        height: 42px;
        padding: 0 12px;
        border-radius: 24px;

        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background .2s ease;
    }

    .obd-desktop-buybar-cart {
        background: #fff;
        color: #d91e18;
        border: 1px solid #d91e18;
    }

    .obd-desktop-buybar-cart:hover {
        background: #fff4f3;
    }

    .obd-desktop-buybar-buy {
        background: #d91e18;
        color: #fff;
        border: 1px solid #d91e18;
    }

    .obd-desktop-buybar-buy:hover {
        background: #b91914;
    }

    .obd-desktop-buybar-btn:disabled {
        opacity: .5;
        cursor: not-allowed;
    }
}

/* Hide desktop bar on mobile */
@media screen and (max-width: 1024px) {
    #obd-desktop-buybar {
        display: none;
    }
}