#gry-sticky-cart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #0d0d0d;
    border-bottom: 1px solid #db26ff;
    box-shadow: 0 4px 12px rgba(230, 38, 255, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}



#gry-sticky-cart.active {
    transform: translateY(0);
}



.gry-cart-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 15px;
    padding: 16px 16px; 
}

.gry-cart-inner img {
    width: 50px;
    height: auto;
}

.gry-cart-info {
    flex: 1;
}

.gry-title {
    display: block;
    font-weight: 600;
}

.gry-cart-action form {
    margin: 0;
}




body.admin-bar #gry-sticky-cart.active {
    top: 32px;
}

@media (max-width: 768px) {

    /* 1. REMOVE PRODUCT VISUAL CLUTTER */
    #gry-sticky-cart .gry-cart-inner img,
    #gry-sticky-cart .gry-cart-info {
        display: none !important;
    }

    /* 2. ACTION AREA FULL WIDTH */
    #gry-sticky-cart .gry-cart-action {
        width: 100%;
    }

    /* 3. SINGLE ROW FLEX LAYOUT */
    #gry-sticky-cart .gry-cart-action form {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* 4. ORDER (LOCKED) */
    #gry-sticky-cart .quantity {
        order: 1;
        flex-shrink: 0;
    }

    #gry-sticky-cart .single_add_to_cart_button {
        order: 2;
        flex: 1;               /* fills remaining space */
        min-width: 0;
    }

    #gry-sticky-cart .gry-buy-now {
        order: 3;
        flex-shrink: 0;
    }

    /* 5. NORMALIZE HEIGHT + CENTER TEXT */
    #gry-sticky-cart button,
    #gry-sticky-cart input[type="number"] {
        height: 38px;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1;
        white-space: nowrap;
    }

    /* 6. QUANTITY COMPACT */
    #gry-sticky-cart .quantity input {
        width: 52px;
        padding: 0;
        text-align: center;
    }

    /* 7. BUY NOW VISUAL (SECONDARY CTA) */
    #gry-sticky-cart .gry-buy-now {
        background: #ffffff;
        color: #000000;
        border: 1px solid #ccc;
        padding: 0 14px;
    }

    /* 8. HIDE ANY THEME / PLUGIN BUY NOW (SAFETY NET) */
    .buy-now,
    .buy_now_button,
    .wc-buy-now,
    [name="buy-now"] {
        display: none !important;
    }
}



