.arabian-product-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-right: 0;
    margin-left: auto;
    font-family: 'Cairo', sans-serif;
    direction: ltr !important; /* Keep visual order of buttons fixed */
}

/* Row 1: Quantity - Aligned to Right */
.arabian-qty-wrapper {
    background-color: #D8A862 !important;
    border-radius: 300px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 10px !important;
    width: 162px !important;
    height: 74px !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
    margin-left: auto !important; /* Push to right in LTR */
}

/* Row 2: Action Buttons */
.arabian-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}

.qty-btn {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 30px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.qty-input {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    flex: 1 !important;
    width: 100% !important;
    min-width: 30px !important;
    max-width: 60px !important;
    text-align: center !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    text-indent: 0 !important;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.arabian-whatsapp-btn {
    background-color: #25D366;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.arabian-buy-now {
    background: #FFFFFF !important;
    color: #000 !important;
    border: 1px solid #000;
    flex: 1;
    width: 100%;
    height: 70px;
    border-radius: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    transition: all 0.3s ease;
}

.arabian-add-to-cart {
    background-color: #D8A862 !important;
    color: #FFFFFF !important;
    border: 1px solid #D8A862;
    flex: 1;
    width: 100%;
    height: 70px;
    border-radius: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arabian-whatsapp-btn:hover,
.arabian-buy-now:hover,
.arabian-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Media Query - Target phones only */
@media (max-width: 767px) {
    .arabian-product-actions-wrapper {
        display: grid; 
        grid-template-areas: 
            "add add add qty qty"
            "buy buy buy buy wa";
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        max-width: 100%;
    }

    .arabian-buttons-container {
        display: contents; /* Allows buttons to be direct children of the grid */
    }

    .arabian-qty-wrapper {
        grid-area: qty;
        margin-left: 0 !important;
    }
    .arabian-add-to-cart { grid-area: add; }
    .arabian-buy-now { grid-area: buy; }
    .arabian-whatsapp-btn { grid-area: wa; }

    .arabian-qty-wrapper,
    .arabian-buy-now,
    .arabian-add-to-cart {
        width: 100% !important;
        height: 60px !important;
        font-size: 18px !important;
    }

    .arabian-whatsapp-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 30px !important;
        margin: 0 auto;
    }
}
